Skip to contentSkip to conversation

drm/i915: Prepare for multiple gts

PATCH Andi Shyti 1 participant 1 message Nov 10, 2021 1 message not in the archive

lore
Share & tools
lore

Andi Shyti

author
#1 lore raw
In reply to a message not in the archive

Hi,

Quoted 10 lines

Review

Quoted 5 lines
(quoted diff) +5 -0
+#define for_each_gt(i915__, id__, gt__) \
+	for ((id__) = 0; \
+	     (id__) < I915_MAX_TILES; \
+	     (id__)++) \
+		for_each_if(((gt__) = (i915__)->gts[(id__)]))

In this patch set, symbol I915_MAX_TILES is introduced.
In a later patch set of this series, I915_MAX_TILES is renamed to I915_MAX_GTS. How about using name I915_MAX_GTS consistently through the patch series?

Quoted 3 lines

It will make the history easier to understand, and should this patch series be merged in pieces, it will avoid having to do the rename in software that depends on this.

speaking of which I915_MAX_GTS is not a great choice of a name:
as Jani pointed out in one of his prevoius reviews, how do we intrepret it, GTS or GTs?

Andi