Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make cbmem work and print TCPA log #197

Merged

Commits on Jun 22, 2022

  1. soc/power9/chip.c: exclude reserved ranges from system RAM

    This way this memory will be available for mapping via /dev/mem even
    when kernel is configured with CONFIG_[IO_]STRICT_DEVMEM.  This makes
    CBMEM available in host via cbmem tool.
    
    Change-Id: I968067ebb8dfcf816fe72ea9c00985d0d10f5fbb
    Signed-off-by: Sergii Dmytruk <[email protected]>
    SergiiDmytruk committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    2ebfb7e View commit details
    Browse the repository at this point in the history
  2. lib/coreboot_table.c: export LB_TAG_TCPA_SPEC_LOG as a range

    The range needs to be filled in log-tpm.c, so it's available in
    write_tables().
    
    CBMEM_ID_TCPA_LOG_REF was added to avoid the necessity of code outside
    of log-tpm.c to know about the layout.
    
    Change-Id: I1deae6ce00d1d7a96c02358b387592c41a8ac5f8
    Signed-off-by: Sergii Dmytruk <[email protected]>
    SergiiDmytruk committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    cd27646 View commit details
    Browse the repository at this point in the history
  3. soc/power9/chip.c: export TCPA log only for skiboot

    Aligning use of the log for skiboot, cbmem and Linux drivers is pain in
    the ass not just in terms of access to reserved memory but even in terms
    of endianness.
    
    Just pass log to skiboot, which is enough for printing it via `cbmem`
    because Linux doesn't change it and
    `/sys/kernel/security/tpm0/binary_bios_measurements` is not needed.
    
    Change-Id: I4014d4944e876d34e6a392b9ce7104d0ad57b6f9
    Signed-off-by: Sergii Dmytruk <[email protected]>
    SergiiDmytruk committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    0e41de2 View commit details
    Browse the repository at this point in the history
  4. util/cbmem/: use /proc/device-tree on PowerPC

    Change-Id: I1cd89d720ba79e44b033fe5b1ee6a21bfa3584b3
    Signed-off-by: Igor Bagnucki <[email protected]>
    Signed-off-by: Sergii Dmytruk <[email protected]>
    SergiiDmytruk committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    48e2066 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2022

  1. util/cbmem/: perform endianness conversion if it doesn't match

    Detected via header_bytes field of table header.
    
    Change-Id: I6c5c15c4590a45cbcbf4c6fd11fac936a5412430
    Signed-off-by: Igor Bagnucki <[email protected]>
    Signed-off-by: Sergii Dmytruk <[email protected]>
    SergiiDmytruk committed Jun 24, 2022
    Configuration menu
    Copy the full SHA
    d7d9715 View commit details
    Browse the repository at this point in the history
  2. util/cbmem/: support parsing TCPA log in TPM1.2 and TPM2 formats

    Change-Id: I113e1b4fd5932c28075930d318b8938ab10d75c4
    Signed-off-by: Michał Żygowski <[email protected]>
    Signed-off-by: Krystian Hebel <[email protected]>
    Signed-off-by: Sergii Dmytruk <[email protected]>
    SergiiDmytruk committed Jun 24, 2022
    Configuration menu
    Copy the full SHA
    c8f357f View commit details
    Browse the repository at this point in the history
  3. payloads/external/skiboot: switch to Dasharo's fork

    Change-Id: I77df37c63b250d153f4297135bbff4333aa36696
    Signed-off-by: Sergii Dmytruk <[email protected]>
    SergiiDmytruk committed Jun 24, 2022
    Configuration menu
    Copy the full SHA
    fc36973 View commit details
    Browse the repository at this point in the history