ACPI: PRM: Reduce unnecessary printing to avoid user confusion
authorZhu Qiyu <qiyuzhu2@amd.com>
Fri, 4 Jul 2025 01:41:04 +0000 (01:41 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 7 Jul 2025 16:37:15 +0000 (18:37 +0200)
commit3db5648c4d608b5483470efc1da9780b081242dd
tree7e97dbe3c880fdbcba95bfb5500788108ee91921
parentd7b8f8e20813f0179d8ef519541a3527e7661d3a
ACPI: PRM: Reduce unnecessary printing to avoid user confusion

Commit 088984c8d54c ("ACPI: PRM: Find EFI_MEMORY_RUNTIME block for PRM
handler and context") introduced non-essential printing "Failed to find
VA for GUID: xxxx, PA: 0x0" which may confuse users to think that
something wrong is going on while it is not the case.

According to the PRM Spec Section 4.1.2 [1], both static data buffer
address and ACPI parameter buffer address may be NULL if they are not
needed, so there is no need to print out the "Failed to find VA ... "
in those cases.

Link: https://uefi.org/sites/default/files/resources/Platform%20Runtime%20Mechanism%20-%20with%20legal%20notice.pdf
Signed-off-by: Zhu Qiyu <qiyuzhu2@amd.com>
Link: https://patch.msgid.link/20250704014104.82524-1-qiyuzhu2@amd.com
[ rjw: Edits in new comments, subject and changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/prmt.c