Skip to contentSkip to conversation

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

PATCH Stephen Rothwell 2 participants 2 messages Dec 9, 2020

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

Hi all,

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

drivers/gpu/drm/i915/gt/intel_mocs.c: In function 'get_mocs_settings':
drivers/gpu/drm/i915/gt/intel_mocs.c:363:22: error: 'GEN11_NUM_MOCS_ENTRIES' undeclared (first use in this function); did you mean 'GEN9_NUM_MOCS_ENTRIES'?

  363 |   table->n_entries = GEN11_NUM_MOCS_ENTRIES;
      |                      ^~~~~~~~~~~~~~~~~~~~~~
      |                      GEN9_NUM_MOCS_ENTRIES

drivers/gpu/drm/i915/gt/intel_mocs.c:363:22: note: each undeclared identifier is reported only once for each function it appears in

Caused by commit

2606b269234b ("drm/i915/dg1: Define MOCS table for DG1")

interacting with commit

7c5c15dffe1e ("drm/i915/gt: Declare gen9 has 64 mocs entries!")

from the drm-intel-fixes tree.

I have applied the following merge fix patch for today:

From: Stephen Rothwell <[email protected]>
Date: Wed, 9 Dec 2020 12:47:45 +1100
Subject: [PATCH] fixup for "drm/i915/gt: Declare gen9 has 64 mocs entries!"

---
 drivers/gpu/drm/i915/gt/intel_mocs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/gt/intel_mocs.c +1 -1
index c60ca62b38df..ab6870242e18 100644
@@ -360,7 +360,7 @@ static unsigned int get_mocs_settings(const struct drm_i915_private *i915,
 	if (IS_DG1(i915)) {
 		table->size = ARRAY_SIZE(dg1_mocs_table);
 		table->table = dg1_mocs_table;
-		table->n_entries = GEN11_NUM_MOCS_ENTRIES;
+		table->n_entries = GEN9_NUM_MOCS_ENTRIES;
 	} else if (INTEL_GEN(i915) >= 12) {
 		table->size  = ARRAY_SIZE(tgl_mocs_table);
 		table->table = tgl_mocs_table;
Signature · 5 lines
2.29.2

-- 
Cheers,
Stephen Rothwell

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

[Intel-gfx] ✗ Fi.CI.BAT: failure for linux-next: build failure after merge of the drm tree

== Series Details ==

== Series Details ==

Series: linux-next: build failure after merge of the drm tree
URL : https://patchwork.freedesktop.org/series/84709/
State : failure

== Summary ==

Applying: linux-next: build failure after merge of the drm tree Using index info to reconstruct a base tree...
M drivers/gpu/drm/i915/gt/intel_mocs.c
Falling back to patching base and 3-way merge...
No changes -- Patch already applied.

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx