Skip to content

Commit 04d0199

Browse files
vsyrjalajnikula
authored andcommitted
drm/i915: Read C0DRB3/C1DRB3 as 16 bits again
We've defined C0DRB3/C1DRB3 as 16 bit registers, so access them as such. Fixes: 1c8242c ("drm/i915: Use unchecked writes for setting up the fences") Reviewed-by: Chris Wilson <[email protected]> Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit f765a5b) Signed-off-by: Jani Nikula <[email protected]>
1 parent 4819d16 commit 04d0199

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/i915/gt/intel_ggtt_fencing.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,8 +653,8 @@ static void detect_bit_6_swizzle(struct i915_ggtt *ggtt)
653653
* banks of memory are paired and unswizzled on the
654654
* uneven portion, so leave that as unknown.
655655
*/
656-
if (intel_uncore_read(uncore, C0DRB3) ==
657-
intel_uncore_read(uncore, C1DRB3)) {
656+
if (intel_uncore_read16(uncore, C0DRB3) ==
657+
intel_uncore_read16(uncore, C1DRB3)) {
658658
swizzle_x = I915_BIT_6_SWIZZLE_9_10;
659659
swizzle_y = I915_BIT_6_SWIZZLE_9;
660660
}

0 commit comments

Comments
 (0)