rust: drm: tyr: Fix register name in error print
Subsystems (4)
PATCH 1/1 rust: drm: tyr: Fix register name in error print
The ..IRQ.. register is printed here. Not the ..INT.. one. Correct this.
--- drivers/gpu/drm/tyr/driver.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/tyr/driver.rs +1 -1
@@ -76,7 +76,7 @@ fn issue_soft_reset(dev: &Device<Bound>, iomem: &Devres<IoMem>) -> Result {dev_err! (dev,"GPU reset failed with errno\n" );dev_err! ( dev, -"GPU_INT_RAWSTAT is {}\n" , +"GPU_IRQ_RAWSTAT is {}\n" , regs::GPU_IRQ_RAWSTAT .read (dev, iomem)? );
Signature · 1 line
2.48.0
Quoted 2 lines · Dirk Behme
Fixes cf4fd52e3236 ("rust: drm: Introduce the Tyr driver for Arm Mali GPUs")
Perhaps not worth backporting, but it could be, so before Greg's bot replies I will add the tag for consideration here... :)
Cheers,
Miguel
Quoted 2 lines · Dirk Behme
The
..IRQ..register is printed here. Not the..INT..one. Correct this.
Hi Dirk, I was hoping to get rid of this register read since it's really just a bit of debugging, and it's the timeout error that is of more interest.
What do you think of handling this through my read_poll_timeout changes instead?
https://lore.kernel.org/rust-for-linux/[email protected]/
Thanks,
Deborah
Quoted 24 lines
Fixes cf4fd52e3236 ("rust: drm: Introduce the Tyr driver for Arm Mali GPUs")Signed-off-by Dirk Behme <[email protected]>--- drivers/gpu/drm/tyr/driver.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/tyr/driver.rs +1
-1@@ -76,7 +76,7 @@ fn issue_soft_reset(dev: &Device<Bound>, iomem: &Devres<IoMem>) -> Result {dev_err! (dev,"GPU reset failed with errno\n" );dev_err! ( dev, -"GPU_INT_RAWSTAT is {}\n" , +"GPU_IRQ_RAWSTAT is {}\n" , regs::GPU_IRQ_RAWSTAT .read (dev, iomem)? );Signature · 1 line
2.48.0
Alice Ryhl
maintainerQuoted 4 lines · Deborah Brouwer
Quoted 2 lines · Dirk Behme
The
..IRQ..register is printed here. Not the..INT..one. Correct this.
Quoted 8 lines
Hi Dirk, I was hoping to get rid of this register read since it's really just a bit of debugging, and it's the timeout error that is of more interest.
What do you think of handling this through my
read_poll_timeoutchanges instead?
We can always merge Dirk's change and then yours on top (removing said piece of code). That way, if the stable team feels like backporting the typofix, they can, and otherwise there's no harm either.
Alice
Quoted 6 lines · Dirk Behme
The
..IRQ..register is printed here. Not the..INT..one. Correct this.Fixes cf4fd52e3236 ("rust: drm: Introduce the Tyr driver for Arm Mali GPUs")Signed-off-by Dirk Behme <[email protected]>
Merged into drm-rust-next, thanks!
[aliceryhl: update commit message prefix] [aliceryhl: add cc stable as per Miguel's suggestion]