public inbox for rust-for-linux@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rust: drm: tyr: Fix register name in error print
@ 2026-01-19  7:08 Dirk Behme
  2026-01-19  8:35 ` Miguel Ojeda
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Dirk Behme @ 2026-01-19  7:08 UTC (permalink / raw)
  To: rust-for-linux, daniel.almeida, aliceryhl
  Cc: dri-devel, dirk.behme, ojeda, boqun.feng, gary, a.hindborg, dakr

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

Fixes: cf4fd52e3236 ("rust: drm: Introduce the Tyr driver for Arm Mali GPUs")
Link: https://lore.kernel.org/rust-for-linux/A04F0357-896E-4ACC-BC0E-DEE8608CE518@collabora.com/
Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
---
 drivers/gpu/drm/tyr/driver.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/tyr/driver.rs b/drivers/gpu/drm/tyr/driver.rs
index 0389c558c0367..3047fd12fd849 100644
--- a/drivers/gpu/drm/tyr/driver.rs
+++ b/drivers/gpu/drm/tyr/driver.rs
@@ -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)?
         );
 
-- 
2.48.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] rust: drm: tyr: Fix register name in error print
  2026-01-19  7:08 [PATCH] rust: drm: tyr: Fix register name in error print Dirk Behme
@ 2026-01-19  8:35 ` Miguel Ojeda
  2026-01-19 20:36 ` Deborah Brouwer
  2026-01-20  9:08 ` Alice Ryhl
  2 siblings, 0 replies; 5+ messages in thread
From: Miguel Ojeda @ 2026-01-19  8:35 UTC (permalink / raw)
  To: Dirk Behme
  Cc: rust-for-linux, daniel.almeida, aliceryhl, dri-devel, ojeda,
	boqun.feng, gary, a.hindborg, dakr

On Mon, Jan 19, 2026 at 8:09 AM Dirk Behme <dirk.behme@de.bosch.com> wrote:
>
> 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... :)

    Cc: stable@vger.kernel.org

Cheers,
Miguel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] rust: drm: tyr: Fix register name in error print
  2026-01-19  7:08 [PATCH] rust: drm: tyr: Fix register name in error print Dirk Behme
  2026-01-19  8:35 ` Miguel Ojeda
@ 2026-01-19 20:36 ` Deborah Brouwer
  2026-01-20  8:07   ` Alice Ryhl
  2026-01-20  9:08 ` Alice Ryhl
  2 siblings, 1 reply; 5+ messages in thread
From: Deborah Brouwer @ 2026-01-19 20:36 UTC (permalink / raw)
  To: Dirk Behme
  Cc: rust-for-linux, daniel.almeida, aliceryhl, dri-devel, ojeda,
	boqun.feng, gary, a.hindborg, dakr

On Mon, Jan 19, 2026 at 08:08:38AM +0100, Dirk Behme wrote:
> 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/20260119202645.362457-1-deborah.brouwer@collabora.com/

Thanks,
Deborah

> 
> Fixes: cf4fd52e3236 ("rust: drm: Introduce the Tyr driver for Arm Mali GPUs")
> Link: https://lore.kernel.org/rust-for-linux/A04F0357-896E-4ACC-BC0E-DEE8608CE518@collabora.com/
> Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
> ---
>  drivers/gpu/drm/tyr/driver.rs | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/tyr/driver.rs b/drivers/gpu/drm/tyr/driver.rs
> index 0389c558c0367..3047fd12fd849 100644
> --- a/drivers/gpu/drm/tyr/driver.rs
> +++ b/drivers/gpu/drm/tyr/driver.rs
> @@ -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)?
>          );
>  
> -- 
> 2.48.0
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] rust: drm: tyr: Fix register name in error print
  2026-01-19 20:36 ` Deborah Brouwer
@ 2026-01-20  8:07   ` Alice Ryhl
  0 siblings, 0 replies; 5+ messages in thread
From: Alice Ryhl @ 2026-01-20  8:07 UTC (permalink / raw)
  To: Deborah Brouwer
  Cc: Dirk Behme, rust-for-linux, daniel.almeida, dri-devel, ojeda,
	boqun.feng, gary, a.hindborg, dakr

On Mon, Jan 19, 2026 at 12:36:34PM -0800, Deborah Brouwer wrote:
> On Mon, Jan 19, 2026 at 08:08:38AM +0100, Dirk Behme wrote:
> > 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/20260119202645.362457-1-deborah.brouwer@collabora.com/

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] rust: drm: tyr: Fix register name in error print
  2026-01-19  7:08 [PATCH] rust: drm: tyr: Fix register name in error print Dirk Behme
  2026-01-19  8:35 ` Miguel Ojeda
  2026-01-19 20:36 ` Deborah Brouwer
@ 2026-01-20  9:08 ` Alice Ryhl
  2 siblings, 0 replies; 5+ messages in thread
From: Alice Ryhl @ 2026-01-20  9:08 UTC (permalink / raw)
  To: Dirk Behme
  Cc: rust-for-linux, daniel.almeida, dri-devel, ojeda, boqun.feng,
	gary, a.hindborg, dakr

On Mon, Jan 19, 2026 at 08:08:38AM +0100, Dirk Behme wrote:
> The `..IRQ..` register is printed here. Not the `..INT..` one.
> Correct this.
> 
> Fixes: cf4fd52e3236 ("rust: drm: Introduce the Tyr driver for Arm Mali GPUs")
> Link: https://lore.kernel.org/rust-for-linux/A04F0357-896E-4ACC-BC0E-DEE8608CE518@collabora.com/
> Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>

Merged into drm-rust-next, thanks!

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-01-20  9:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-19  7:08 [PATCH] rust: drm: tyr: Fix register name in error print Dirk Behme
2026-01-19  8:35 ` Miguel Ojeda
2026-01-19 20:36 ` Deborah Brouwer
2026-01-20  8:07   ` Alice Ryhl
2026-01-20  9:08 ` Alice Ryhl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox