acpi: tpm: Add missing device identification objects
PATCH 1/1 acpi: tpm: Add missing device identification objects
From: Stefan Berger <[email protected]>
Add missing device identification objects _STR and _UID. They will appear as files 'description' and 'uid' under Linux sysfs.
Cc Shannon Zhao <[email protected]>
Cc Michael S. Tsirkin <[email protected]>
Cc Igor Mammedov <[email protected]>
Cc Ani Sinha <[email protected]>
Fixes #708
Signed-off-by Stefan Berger <[email protected]>
--- hw/arm/virt-acpi-build.c | 1 + hw/i386/acpi-build.c | 4 ++++ 2 files changed, 5 insertions(+)
hw/arm/virt-acpi-build.c +1 -0
@@ -228,6 +228,7 @@ static void acpi_dsdt_add_tpm(Aml *scope, VirtMachineState *vms)Aml *dev =aml_device ("TPM0" );aml_append (dev,aml_name_decl ("_HID" ,aml_string ("MSFT0101" ))); +aml_append (dev,aml_name_decl ("_STR" ,aml_string ("TPM 2.0 Device" )));aml_append (dev,aml_name_decl ("_UID" ,aml_int (0 )));Aml *crs =aml_resource_template ();
hw/i386/acpi-build.c +4 -0
@@ -1808,6 +1808,10 @@ build_dsdt(GArray *table_data, BIOSLinker *linker, dev =aml_device ("TPM" );aml_append (dev,aml_name_decl ("_HID" ,aml_string ("MSFT0101" ))); +aml_append (dev, +aml_name_decl ("_STR" , +aml_string ("TPM 2.0 Device" ))); +aml_append (dev,aml_name_decl ("_UID" ,aml_int (0 ))); }else { dev =aml_device ("ISA.TPM" ); aml_append(dev, aml_name_decl("_HID",
Signature · 1 line
2.31.1
Quoted 10 lines · Stefan Berger
From: Stefan Berger <[email protected]>
Add missing device identification objects
_STRand_UID. They will appear as files 'description' and 'uid' under Linux sysfs.Cc Shannon Zhao <[email protected]>Cc Michael S. Tsirkin <[email protected]>Cc Igor Mammedov <[email protected]>Cc Ani Sinha <[email protected]>Fixes #708
https://gitlab.com/qemu-project/qemu/-/issues/708
Quoted 34 lines
Signed-off-by Stefan Berger <[email protected]>--- hw/arm/virt-acpi-build.c | 1 + hw/i386/acpi-build.c | 4 ++++ 2 files changed, 5 insertions(+)hw/arm/virt-acpi-build.c +1
-0@@ -228,6 +228,7 @@ static void acpi_dsdt_add_tpm(Aml *scope, VirtMachineState *vms)Aml *dev =aml_device ("TPM0" );aml_append (dev,aml_name_decl ("_HID" ,aml_string ("MSFT0101" ))); +aml_append (dev,aml_name_decl ("_STR" ,aml_string ("TPM 2.0 Device" )));aml_append (dev,aml_name_decl ("_UID" ,aml_int (0 )));Aml *crs =aml_resource_template ();hw/i386/acpi-build.c +4
-0@@ -1808,6 +1808,10 @@ build_dsdt(GArray *table_data, BIOSLinker *linker, dev =aml_device ("TPM" );aml_append (dev,aml_name_decl ("_HID" ,aml_string ("MSFT0101" ))); +aml_append (dev, +aml_name_decl ("_STR" , +aml_string ("TPM 2.0 Device" ))); +aml_append (dev,aml_name_decl ("_UID" ,aml_int (0 ))); }else { dev =aml_device ("ISA.TPM" ); aml_append(dev, aml_name_decl("_HID",
Hi Stefan,
Quoted 10 lines · Stefan Berger
From: Stefan Berger <[email protected]>
Add missing device identification objects
_STRand_UID. They will appear as files 'description' and 'uid' under Linux sysfs.Cc Shannon Zhao <[email protected]>Cc Michael S. Tsirkin <[email protected]>Cc Igor Mammedov <[email protected]>Cc Ani Sinha <[email protected]>Fixes #708
Reviewed-by Eric Auger <[email protected]>
Thanks
Eric
Quoted 34 lines
Signed-off-by Stefan Berger <[email protected]>--- hw/arm/virt-acpi-build.c | 1 + hw/i386/acpi-build.c | 4 ++++ 2 files changed, 5 insertions(+)hw/arm/virt-acpi-build.c +1
-0@@ -228,6 +228,7 @@ static void acpi_dsdt_add_tpm(Aml *scope, VirtMachineState *vms)Aml *dev =aml_device ("TPM0" );aml_append (dev,aml_name_decl ("_HID" ,aml_string ("MSFT0101" ))); +aml_append (dev,aml_name_decl ("_STR" ,aml_string ("TPM 2.0 Device" )));aml_append (dev,aml_name_decl ("_UID" ,aml_int (0 )));Aml *crs =aml_resource_template ();hw/i386/acpi-build.c +4
-0@@ -1808,6 +1808,10 @@ build_dsdt(GArray *table_data, BIOSLinker *linker, dev =aml_device ("TPM" );aml_append (dev,aml_name_decl ("_HID" ,aml_string ("MSFT0101" ))); +aml_append (dev, +aml_name_decl ("_STR" , +aml_string ("TPM 2.0 Device" ))); +aml_append (dev,aml_name_decl ("_UID" ,aml_int (0 ))); }else { dev =aml_device ("ISA.TPM" ); aml_append(dev, aml_name_decl("_HID",