[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 3/3] arm/acpi: Add the TPM2.0 device under the DSDT
From: |
Ard Biesheuvel |
Subject: |
Re: [PATCH v2 3/3] arm/acpi: Add the TPM2.0 device under the DSDT |
Date: |
Fri, 8 May 2020 17:25:53 +0200 |
On Fri, 8 May 2020 at 17:24, Shannon Zhao <address@hidden> wrote:
>
> Hi,
>
> On 2020/5/5 22:44, Eric Auger wrote:
> > +static void acpi_dsdt_add_tpm(Aml *scope, VirtMachineState *vms)
> > +{
> > + hwaddr pbus_base = vms->memmap[VIRT_PLATFORM_BUS].base;
> > + PlatformBusDevice *pbus = PLATFORM_BUS_DEVICE(vms->platform_bus_dev);
> > + MemoryRegion *sbdev_mr;
> > + SysBusDevice *sbdev;
> > + hwaddr tpm_base;
> > +
> > + sbdev = (SysBusDevice *)object_dynamic_cast(OBJECT(tpm_find()),
> > + TYPE_SYS_BUS_DEVICE);
>
> Does it need to check the tpm version like you do in previous patch?
>
> tpm_get_version(tpm_find()) == TPM_VERSION_2_0
>
I don't think so. The device node could in theory be used to describe
a TPM 1.2/1.3 as well, even though we never actually do that.
- Re: [PATCH v2 1/3] acpi: Move build_tpm2() in the generic part, (continued)
[PATCH v2 2/3] arm/acpi: TPM2 ACPI table support, Eric Auger, 2020/05/05
[PATCH v2 3/3] arm/acpi: Add the TPM2.0 device under the DSDT, Eric Auger, 2020/05/05
Re: [PATCH v2 3/3] arm/acpi: Add the TPM2.0 device under the DSDT, Igor Mammedov, 2020/05/12
Re: [PATCH v2 0/3] vTPM/aarch64 ACPI support, Ard Biesheuvel, 2020/05/05