diff mbox series

[v6,03/13] kernel: resource: lookup_resource as exported symbol

Message ID 20210813063150.2938-4-alex.sierra@amd.com
State Superseded
Headers show
Series Support DEVICE_GENERIC memory in migrate_vma_* | expand

Commit Message

Sierra Guiza, Alejandro (Alex) Aug. 13, 2021, 6:31 a.m. UTC
The AMD architecture for the Frontier supercomputer will
have device memory which can be coherently accessed by
the CPU. The system BIOS advertises this memory as SPM
(special purpose memory) in the UEFI system address map.

The AMDGPU driver needs to be able to lookup this resource
in order to claim it as MEMORY_DEVICE_GENERIC using

Signed-off-by: Alex Sierra <alex.sierra@amd.com>
 kernel/resource.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series


diff --git a/kernel/resource.c b/kernel/resource.c
index ca9f5198a01f..227fc9fab573 100644
--- a/kernel/resource.c
+++ b/kernel/resource.c
@@ -772,6 +772,7 @@  struct resource *lookup_resource(struct resource *root, resource_size_t start)
 	return res;
  * Insert a resource into the resource tree. If successful, return NULL,