Skip to content

Commit

Permalink
drm/xe: Remove extra xe_mmio_read32 from xe_mmio_wait32
Browse files Browse the repository at this point in the history
Commit 7aaec3a ("drm/xe: Let's return last value read on
xe_mmio_wait32.") mentions that we should return the last value read,
but we never actually return it. This breaks display which depends on
the value being actually returned where needed.

Signed-off-by: Maarten Lankhorst <[email protected]>
Cc: Rodrigo Vivi <[email protected]>
Fixes: 7aaec3a ("drm/xe: Let's return last value read on xe_mmio_wait32.")
Reviewed-by: Lucas De Marchi <[email protected]>
Reviewed-by: Mika Kuoppala <[email protected]>
Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/257
Signed-off-by: Rodrigo Vivi <[email protected]>
  • Loading branch information
mlankhorst authored and rodrigovivi committed Dec 19, 2023
1 parent a9b1a13 commit 1bd4db3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/gpu/drm/xe/xe_mmio.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ static inline int xe_mmio_wait32(struct xe_gt *gt, u32 reg, u32 val, u32 mask,
u32 read;

for (;;) {
if ((xe_mmio_read32(gt, reg) & mask) == val)
return 0;

read = xe_mmio_read32(gt, reg);
if ((read & mask) == val) {
ret = 0;
Expand Down

0 comments on commit 1bd4db3

Please sign in to comment.