]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/x86/intel/vsec: Restore BAR fallback for header walk
authorDavid E. Box <david.e.box@linux.intel.com>
Fri, 29 May 2026 18:31:49 +0000 (11:31 -0700)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 10 Jun 2026 11:44:54 +0000 (14:44 +0300)
commit375bbbbd112af028ee0b45d833a6233c23d19bbf
treecc6a1bc93327bad560f988457b2569db847f37de
parent6e9cab2247e5b243ae2d907ce7c948a8a9c8d61a
platform/x86/intel/vsec: Restore BAR fallback for header walk

The base_addr refactor changed intel_vsec_walk_header() to pass
info->base_addr as the discovery-table base address. For the PCI VSEC
driver this info comes from driver_data, but exported callers may provide
their own static headers and leave base_addr unset.

For xe, this made the discovery-table base address zero instead of the BAR
selected by header->tbir, preventing PMT endpoints from being created.

Restore the previous behavior for the header-walk path by falling back to
pci_resource_start(pdev, header->tbir) when base_addr is not specified.
Keep explicit base_addr override behavior unchanged.

This preserves the refactor structure while fixing the functional
regression in manual-header users.

Fixes: 904b333fc51c ("platform/x86/intel/vsec: Refactor base_addr handling")
Assisted-by: Claude:claude-sonnet-4-6
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Link: https://patch.msgid.link/20260529183150.129744-1-david.e.box@linux.intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel/vsec.c