Skip to content

Commit 3f58160

Browse files
debox1jwrdegoede
authored andcommitted
platform/x86/intel/pmt: Ignore uninitialized entries
On Intel Xeon, unused PMT regions will have uninitialized discovery headers containing all 0xF. Instead of returning an error, just skip the region. Signed-off-by: David E. Box <david.e.box@linux.intel.com> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20230413012922.1521377-1-david.e.box@linux.intel.com Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1 parent efebfa8 commit 3f58160

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/platform/x86/intel/pmt/telemetry.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ static int pmt_telem_header_decode(struct intel_pmt_entry *entry,
7878
* reserved for future use. They have zero size. Do not fail
7979
* probe for these. Just ignore them.
8080
*/
81-
if (header->size == 0)
81+
if (header->size == 0 || header->access_type == 0xF)
8282
return 1;
8383

8484
return 0;

0 commit comments

Comments
 (0)