Skip to contentSkip to conversation

rust: drm: tyr: Fix register name in error print

PATCH Applied Dirk Behme 4 participants 5 messages Jan 19 – Jan 20

Subsystems (4)
lore
Share & tools
lore

Dirk Behme

author
#0 lore raw

PATCH 1/1 rust: drm: tyr: Fix register name in error print

The ..IRQ.. register is printed here. Not the ..INT.. one. Correct this.

Fixes cf4fd52e3236 ("rust: drm: Introduce the Tyr driver for Arm Mali GPUs")
---
 drivers/gpu/drm/tyr/driver.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/tyr/driver.rs +1 -1
index 0389c558c0367..3047fd12fd849 100644
@@ -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
#1 lore raw
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

#2 lore raw
In reply to Dirk Behme
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")
---
 drivers/gpu/drm/tyr/driver.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/tyr/driver.rs +1 -1
index 0389c558c0367..3047fd12fd849 100644
@@ -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
maintainer
#3 lore raw
Quoted 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_timeout changes instead?

https://lore.kernel.org/rust-for-linux/[email protected]/

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

maintainer Applied
#4 lore raw
In reply to Dirk Behme
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")

Merged into drm-rust-next, thanks!

[aliceryhl: update commit message prefix] [aliceryhl: add cc stable as per Miguel's suggestion]