Skip to contentSkip to conversation

linux-next: build failure after merge of the drm-xe tree

PATCH Stephen Rothwell 1 participant 2 messages Mar 7, 2025 – Mar 11, 2025

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the drm-xe tree, today's linux-next build (x86_64 allmodconfig) failed like this:

drivers/gpu/drm/drm_gpusvm.c: In function 'drm_gpusvm_range_get_pages':
drivers/gpu/drm/drm_gpusvm.c:1404:44: error: 'struct page' has no member named 'pgmap'
1404 | if (pagemap != page->pgmap) {
| ^~
drivers/gpu/drm/drm_gpusvm.c:1410:47: error: 'struct page' has no member named 'pgmap'
1410 | pagemap = page->pgmap;
| ^~

Caused by commit

99624bdff867 ("drm/gpusvm: Add support for GPU Shared Virtual Memory")

interacting with commit

089b22f60a0f ("mm: allow compound zone device pages")

from the mm-unstable branch of the mm tree.

I have applied the following merge fix patch for today.

From: Stephen Rothwell <[email protected]>
Date: Fri, 7 Mar 2025 12:48:32 +1100
Subject: [PATCH] fix up for "drm/gpusvm: Add support for GPU Shared Virtual
Memory"

interacting with commit

089b22f60a0f ("mm: allow compound zone device pages")

from the mm-unstable branch of the mm tree.

---
 drivers/gpu/drm/drm_gpusvm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/drm_gpusvm.c +2 -2
index f314f5c4af0f..5e9b18ce65f8 100644
@@ -1401,13 +1401,13 @@ int drm_gpusvm_range_get_pages(struct drm_gpusvm *gpusvm,
 				goto err_unmap;
 			}
 			zdd = page->zone_device_data;
-			if (pagemap != page->pgmap) {
+			if (pagemap != page_pgmap(page)) {
 				if (i > 0) {
 					err = -EOPNOTSUPP;
 					goto err_unmap;
 				}
 
-				pagemap = page->pgmap;
+				pagemap = page_pgmap(page);
 				dpagemap = zdd->devmem_allocation->dpagemap;
 				if (drm_WARN_ON(gpusvm->drm, !dpagemap)) {
 					/*
Signature · 5 lines
2.45.2

-- 
Cheers,
Stephen Rothwell
#1 lore raw

Hi all,

Quoted 62 lines · On Fri, 7 Mar 2025 12:58:03 +1100 Stephen Rothwell <[email protected]> wrote:

After merging the drm-xe tree, today's linux-next build (x86_64 allmodconfig) failed like this:

drivers/gpu/drm/drm_gpusvm.c: In function 'drm_gpusvm_range_get_pages':
drivers/gpu/drm/drm_gpusvm.c:1404:44: error: 'struct page' has no member named 'pgmap'
1404 | if (pagemap != page->pgmap) {
| ^~
drivers/gpu/drm/drm_gpusvm.c:1410:47: error: 'struct page' has no member named 'pgmap'
1410 | pagemap = page->pgmap;
| ^~

Caused by commit

99624bdff867 ("drm/gpusvm: Add support for GPU Shared Virtual Memory")

interacting with commit

089b22f60a0f ("mm: allow compound zone device pages")

from the mm-unstable branch of the mm tree.

I have applied the following merge fix patch for today.

From: Stephen Rothwell <[email protected]>
Date: Fri, 7 Mar 2025 12:48:32 +1100
Subject: [PATCH] fix up for "drm/gpusvm: Add support for GPU Shared Virtual
Memory"

interacting with commit

089b22f60a0f ("mm: allow compound zone device pages")

from the mm-unstable branch of the mm tree.

---
 drivers/gpu/drm/drm_gpusvm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/drm_gpusvm.c +2 -2
index f314f5c4af0f..5e9b18ce65f8 100644
@@ -1401,13 +1401,13 @@ int drm_gpusvm_range_get_pages(struct drm_gpusvm *gpusvm,
 				goto err_unmap;
 			}
 			zdd = page->zone_device_data;
-			if (pagemap != page->pgmap) {
+			if (pagemap != page_pgmap(page)) {
 				if (i > 0) {
 					err = -EOPNOTSUPP;
 					goto err_unmap;
 				}
 
-				pagemap = page->pgmap;
+				pagemap = page_pgmap(page);
 				dpagemap = zdd->devmem_allocation->dpagemap;
 				if (drm_WARN_ON(gpusvm->drm, !dpagemap)) {
 					/*
Signature · 1 line
2.45.2

This is now a semantic conflict between the mm tree and the drm tree.

Signature · 2 lines
Cheers,
Stephen Rothwell