[PATCH v8] tpm_crb: fix fTPM on AMD Zen+ CPUs

2019-10-16 Thread ivan . lazeev
From: Ivan Lazeev Bug link: https://bugzilla.kernel.org/show_bug.cgi?id=195657 cmd/rsp buffers are expected to be in the same ACPI region. For Zen+ CPUs BIOS's might report two different regions, some of them also report region sizes inconsistent with values from TPM registers. Memory

[PATCH v7] tpm_crb: fix fTPM on AMD Zen+ CPUs

2019-10-08 Thread ivan . lazeev
From: Ivan Lazeev Bug link: https://bugzilla.kernel.org/show_bug.cgi?id=195657 cmd/rsp buffers are expected to be in the same ACPI region. For Zen+ CPUs BIOS's might report two different regions, some of them also report region sizes inconsistent with values from TPM registers. Memory

[PATCH v6] tpm_crb: fix fTPM on AMD Zen+ CPUs

2019-10-02 Thread ivan . lazeev
length. Array of pointers to allocated resources is used to map the region at most once. Signed-off-by: Ivan Lazeev --- Changes in v6: - got rid of new structures - open coded helper functions - removed incorrect FW_BUG drivers/char/tpm/tpm_crb.c | 126

[PATCH v5] tpm_crb: fix fTPM on AMD Zen+ CPUs

2019-09-25 Thread ivan . lazeev
From: Ivan Lazeev Bug link: https://bugzilla.kernel.org/show_bug.cgi?id=195657 cmd/rsp buffers are expected to be in the same ACPI region. For Zen+ CPUs BIOS's might report two different regions, some of them also report region sizes inconsistent with values from TPM registers. Memory

[PATCH v4] tpm_crb: fix fTPM on AMD Zen+ CPUs

2019-09-14 Thread ivan . lazeev
From: Ivan Lazeev Bug link: https://bugzilla.kernel.org/show_bug.cgi?id=195657 cmd/rsp buffers are expected to be in the same ACPI region. For Zen+ CPUs BIOS's might report two different regions, some of them also report region sizes inconsistent with values from TPM registers. Memory

[PATCH] tpm_crb: fix fTPM on AMD Zen+ CPUs

2019-09-04 Thread ivan . lazeev
From: Ivan Lazeev Bug link: https://bugzilla.kernel.org/show_bug.cgi?id=195657 cmd/rsp buffers are expected to be in the same ACPI region. For Zen+ CPUs BIOS's might report two different regions, some of them also report region sizes inconsistent with values from TPM registers. Work around

[PATCH v2] Fix fTPM on AMD Zen+ CPUs

2019-08-11 Thread ivan . lazeev
From: Vanya Lazeev The patch is an attempt to make fTPM on AMD Zen CPUs work. Bug link: https://bugzilla.kernel.org/show_bug.cgi?id=195657 The problem seems to be that tpm_crb driver doesn't expect tpm command and response memory regions to belong to different ACPI resources. Tested on Asrock

[PATCH] Fix fTPM on AMD Zen+ CPUs

2019-08-11 Thread ivan . lazeev
From: Vanya Lazeev The patch is an attempt to make fTPM on AMD Zen CPUs work. Bug link: https://bugzilla.kernel.org/show_bug.cgi?id=195657 The problem seems to be that tpm_crb driver doesn't expect tpm command and response memory regions to belong to different ACPI resources. Tested on Asrock