https://bugzilla.kernel.org/show_bug.cgi?id=219495 --- Comment #35 from jarkko@xxxxxxxxxx --- Copy-pasting what I wrote to the header of tpm_read_log_acpi() should clear up a bit what I'm aiming for: /* * Find out the physical address range for the event log from TCPA and TPM2 * ACPI tables. If successful, sets TPM_CHIP_FLAG_EVENTLOG_ACPI. Also, * chip->bios_event_log and chip->bios_event_log_end will end up containing * physical address range, rather than virtual. This range must be mapped * with acpi_os_map_iomem(). */ int tpm_read_log_acpi(struct tpm_chip *chip) { u8 event[sizeof(struct tcg_pcr_event) + sizeof(struct tcg_efi_specid_event_head)]; struct tcg_pcr_event *event_header = (struct tcg_pcr_event *)event; struct tcg_efi_specid_event_head *efispecid = Then just tweak the code paths in eventlog/tpm2.c and that should fix this up. I read a fixed-size buffer just to open code tpm_is_tpm2_log() to the function and that way also the pre-existing code is still needed, just without the allocation part. -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.