* [PATCH 3/4] gpu: nova-core: remove redundant `.as_ref()` for `dev_*` print
[not found] <20260120181152.3640314-1-gary@kernel.org>
@ 2026-01-20 18:11 ` Gary Guo
2026-01-20 18:11 ` [PATCH 4/4] gpu: tyr: " Gary Guo
1 sibling, 0 replies; 7+ messages in thread
From: Gary Guo @ 2026-01-20 18:11 UTC (permalink / raw)
To: Greg Kroah-Hartman, Rafael J. Wysocki, Danilo Krummrich,
Miguel Ojeda, Boqun Feng, Gary Guo, Björn Roy Baron,
Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross,
Bjorn Helgaas, Krzysztof Wilczyński, Alexandre Courbot,
David Airlie, Simona Vetter, Paul Walmsley, Palmer Dabbelt,
Albert Ou, Alexandre Ghiti, Alistair Popple, Joel Fernandes,
Lyude Paul, John Hubbard
Cc: rust-for-linux, linux-kernel, linux-pci, Timur Tabi, nouveau,
dri-devel, linux-riscv
From: Gary Guo <gary@garyguo.net>
This is now handled by the macro itself.
Signed-off-by: Gary Guo <gary@garyguo.net>
---
drivers/gpu/nova-core/driver.rs | 2 +-
drivers/gpu/nova-core/gpu.rs | 4 ++--
drivers/gpu/nova-core/gsp/boot.rs | 32 +++++++------------------------
3 files changed, 10 insertions(+), 28 deletions(-)
diff --git a/drivers/gpu/nova-core/driver.rs b/drivers/gpu/nova-core/driver.rs
index 5a4cc047bcfc..e39885c0d5ca 100644
--- a/drivers/gpu/nova-core/driver.rs
+++ b/drivers/gpu/nova-core/driver.rs
@@ -70,7 +70,7 @@ impl pci::Driver for NovaCore {
fn probe(pdev: &pci::Device<Core>, _info: &Self::IdInfo) -> impl PinInit<Self, Error> {
pin_init::pin_init_scope(move || {
- dev_dbg!(pdev.as_ref(), "Probe Nova Core GPU driver.\n");
+ dev_dbg!(pdev, "Probe Nova Core GPU driver.\n");
pdev.enable_device_mem()?;
pdev.set_master();
diff --git a/drivers/gpu/nova-core/gpu.rs b/drivers/gpu/nova-core/gpu.rs
index 9b042ef1a308..60c85fffaeaf 100644
--- a/drivers/gpu/nova-core/gpu.rs
+++ b/drivers/gpu/nova-core/gpu.rs
@@ -262,13 +262,13 @@ pub(crate) fn new<'a>(
) -> impl PinInit<Self, Error> + 'a {
try_pin_init!(Self {
spec: Spec::new(pdev.as_ref(), bar).inspect(|spec| {
- dev_info!(pdev.as_ref(),"NVIDIA ({})\n", spec);
+ dev_info!(pdev,"NVIDIA ({})\n", spec);
})?,
// We must wait for GFW_BOOT completion before doing any significant setup on the GPU.
_: {
gfw::wait_gfw_boot_completion(bar)
- .inspect_err(|_| dev_err!(pdev.as_ref(), "GFW boot did not complete\n"))?;
+ .inspect_err(|_| dev_err!(pdev, "GFW boot did not complete\n"))?;
},
sysmem_flush: SysmemFlush::register(pdev.as_ref(), bar, spec.chipset)?,
diff --git a/drivers/gpu/nova-core/gsp/boot.rs b/drivers/gpu/nova-core/gsp/boot.rs
index 581b412554dc..1582e1a65274 100644
--- a/drivers/gpu/nova-core/gsp/boot.rs
+++ b/drivers/gpu/nova-core/gsp/boot.rs
@@ -170,15 +170,10 @@ pub(crate) fn boot(
Some(libos_handle as u32),
Some((libos_handle >> 32) as u32),
)?;
- dev_dbg!(
- pdev.as_ref(),
- "GSP MBOX0: {:#x}, MBOX1: {:#x}\n",
- mbox0,
- mbox1
- );
+ dev_dbg!(pdev, "GSP MBOX0: {:#x}, MBOX1: {:#x}\n", mbox0, mbox1);
dev_dbg!(
- pdev.as_ref(),
+ pdev,
"Using SEC2 to load and run the booter_load firmware...\n"
);
@@ -190,19 +185,10 @@ pub(crate) fn boot(
Some(wpr_handle as u32),
Some((wpr_handle >> 32) as u32),
)?;
- dev_dbg!(
- pdev.as_ref(),
- "SEC2 MBOX0: {:#x}, MBOX1{:#x}\n",
- mbox0,
- mbox1
- );
+ dev_dbg!(pdev, "SEC2 MBOX0: {:#x}, MBOX1{:#x}\n", mbox0, mbox1);
if mbox0 != 0 {
- dev_err!(
- pdev.as_ref(),
- "Booter-load failed with error {:#x}\n",
- mbox0
- );
+ dev_err!(pdev, "Booter-load failed with error {:#x}\n", mbox0);
return Err(ENODEV);
}
@@ -216,11 +202,7 @@ pub(crate) fn boot(
Delta::from_secs(5),
)?;
- dev_dbg!(
- pdev.as_ref(),
- "RISC-V active? {}\n",
- gsp_falcon.is_riscv_active(bar),
- );
+ dev_dbg!(pdev, "RISC-V active? {}\n", gsp_falcon.is_riscv_active(bar),);
// Create and run the GSP sequencer.
let seq_params = GspSequencerParams {
@@ -239,8 +221,8 @@ pub(crate) fn boot(
// Obtain and display basic GPU information.
let info = commands::get_gsp_info(&mut self.cmdq, bar)?;
match info.gpu_name() {
- Ok(name) => dev_info!(pdev.as_ref(), "GPU name: {}\n", name),
- Err(e) => dev_warn!(pdev.as_ref(), "GPU name unavailable: {:?}\n", e),
+ Ok(name) => dev_info!(pdev, "GPU name: {}\n", name),
+ Err(e) => dev_warn!(pdev, "GPU name unavailable: {:?}\n", e),
}
Ok(())
--
2.51.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 4/4] gpu: tyr: remove redundant `.as_ref()` for `dev_*` print
[not found] <20260120181152.3640314-1-gary@kernel.org>
2026-01-20 18:11 ` [PATCH 3/4] gpu: nova-core: remove redundant `.as_ref()` for `dev_*` print Gary Guo
@ 2026-01-20 18:11 ` Gary Guo
2026-01-21 12:25 ` Daniel Almeida
2026-01-26 9:17 ` Alice Ryhl
1 sibling, 2 replies; 7+ messages in thread
From: Gary Guo @ 2026-01-20 18:11 UTC (permalink / raw)
To: Greg Kroah-Hartman, Rafael J. Wysocki, Danilo Krummrich,
Miguel Ojeda, Boqun Feng, Gary Guo, Björn Roy Baron,
Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross,
Bjorn Helgaas, Krzysztof Wilczyński, Daniel Almeida,
David Airlie, Simona Vetter
Cc: rust-for-linux, linux-kernel, linux-pci, dri-devel
From: Gary Guo <gary@garyguo.net>
This is now handled by the macro itself.
Signed-off-by: Gary Guo <gary@garyguo.net>
---
drivers/gpu/drm/tyr/driver.rs | 2 +-
drivers/gpu/drm/tyr/gpu.rs | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/tyr/driver.rs b/drivers/gpu/drm/tyr/driver.rs
index 2a45d0288825..fe991d8cbb4a 100644
--- a/drivers/gpu/drm/tyr/driver.rs
+++ b/drivers/gpu/drm/tyr/driver.rs
@@ -140,7 +140,7 @@ fn probe(
// We need this to be dev_info!() because dev_dbg!() does not work at
// all in Rust for now, and we need to see whether probe succeeded.
- dev_info!(pdev.as_ref(), "Tyr initialized correctly.\n");
+ dev_info!(pdev, "Tyr initialized correctly.\n");
Ok(driver)
}
}
diff --git a/drivers/gpu/drm/tyr/gpu.rs b/drivers/gpu/drm/tyr/gpu.rs
index bfbf2a1d80e6..04a0a5d5ef3a 100644
--- a/drivers/gpu/drm/tyr/gpu.rs
+++ b/drivers/gpu/drm/tyr/gpu.rs
@@ -98,7 +98,7 @@ pub(crate) fn log(&self, pdev: &platform::Device) {
};
dev_info!(
- pdev.as_ref(),
+ pdev,
"mali-{} id 0x{:x} major 0x{:x} minor 0x{:x} status 0x{:x}",
model_name,
self.gpu_id >> 16,
@@ -108,7 +108,7 @@ pub(crate) fn log(&self, pdev: &platform::Device) {
);
dev_info!(
- pdev.as_ref(),
+ pdev,
"Features: L2:{:#x} Tiler:{:#x} Mem:{:#x} MMU:{:#x} AS:{:#x}",
self.l2_features,
self.tiler_features,
@@ -118,7 +118,7 @@ pub(crate) fn log(&self, pdev: &platform::Device) {
);
dev_info!(
- pdev.as_ref(),
+ pdev,
"shader_present=0x{:016x} l2_present=0x{:016x} tiler_present=0x{:016x}",
self.shader_present,
self.l2_present,
--
2.51.2
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 4/4] gpu: tyr: remove redundant `.as_ref()` for `dev_*` print
2026-01-20 18:11 ` [PATCH 4/4] gpu: tyr: " Gary Guo
@ 2026-01-21 12:25 ` Daniel Almeida
2026-01-26 9:17 ` Alice Ryhl
1 sibling, 0 replies; 7+ messages in thread
From: Daniel Almeida @ 2026-01-21 12:25 UTC (permalink / raw)
To: Gary Guo
Cc: Greg Kroah-Hartman, Rafael J. Wysocki, Danilo Krummrich,
Miguel Ojeda, Boqun Feng, Björn Roy Baron, Benno Lossin,
Andreas Hindborg, Alice Ryhl, Trevor Gross, Bjorn Helgaas,
Krzysztof Wilczyński, David Airlie, Simona Vetter,
rust-for-linux, linux-kernel, linux-pci, dri-devel
> On 20 Jan 2026, at 15:11, Gary Guo <gary@kernel.org> wrote:
>
> From: Gary Guo <gary@garyguo.net>
>
> This is now handled by the macro itself.
>
> Signed-off-by: Gary Guo <gary@garyguo.net>
> ---
> drivers/gpu/drm/tyr/driver.rs | 2 +-
> drivers/gpu/drm/tyr/gpu.rs | 6 +++---
> 2 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/tyr/driver.rs b/drivers/gpu/drm/tyr/driver.rs
> index 2a45d0288825..fe991d8cbb4a 100644
> --- a/drivers/gpu/drm/tyr/driver.rs
> +++ b/drivers/gpu/drm/tyr/driver.rs
> @@ -140,7 +140,7 @@ fn probe(
>
> // We need this to be dev_info!() because dev_dbg!() does not work at
> // all in Rust for now, and we need to see whether probe succeeded.
> - dev_info!(pdev.as_ref(), "Tyr initialized correctly.\n");
> + dev_info!(pdev, "Tyr initialized correctly.\n");
> Ok(driver)
> }
> }
> diff --git a/drivers/gpu/drm/tyr/gpu.rs b/drivers/gpu/drm/tyr/gpu.rs
> index bfbf2a1d80e6..04a0a5d5ef3a 100644
> --- a/drivers/gpu/drm/tyr/gpu.rs
> +++ b/drivers/gpu/drm/tyr/gpu.rs
> @@ -98,7 +98,7 @@ pub(crate) fn log(&self, pdev: &platform::Device) {
> };
>
> dev_info!(
> - pdev.as_ref(),
> + pdev,
> "mali-{} id 0x{:x} major 0x{:x} minor 0x{:x} status 0x{:x}",
> model_name,
> self.gpu_id >> 16,
> @@ -108,7 +108,7 @@ pub(crate) fn log(&self, pdev: &platform::Device) {
> );
>
> dev_info!(
> - pdev.as_ref(),
> + pdev,
> "Features: L2:{:#x} Tiler:{:#x} Mem:{:#x} MMU:{:#x} AS:{:#x}",
> self.l2_features,
> self.tiler_features,
> @@ -118,7 +118,7 @@ pub(crate) fn log(&self, pdev: &platform::Device) {
> );
>
> dev_info!(
> - pdev.as_ref(),
> + pdev,
> "shader_present=0x{:016x} l2_present=0x{:016x} tiler_present=0x{:016x}",
> self.shader_present,
> self.l2_present,
> --
> 2.51.2
>
>
Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 4/4] gpu: tyr: remove redundant `.as_ref()` for `dev_*` print
2026-01-20 18:11 ` [PATCH 4/4] gpu: tyr: " Gary Guo
2026-01-21 12:25 ` Daniel Almeida
@ 2026-01-26 9:17 ` Alice Ryhl
2026-01-26 13:43 ` Danilo Krummrich
1 sibling, 1 reply; 7+ messages in thread
From: Alice Ryhl @ 2026-01-26 9:17 UTC (permalink / raw)
To: Gary Guo
Cc: Greg Kroah-Hartman, Rafael J. Wysocki, Danilo Krummrich,
Miguel Ojeda, Boqun Feng, Björn Roy Baron, Benno Lossin,
Andreas Hindborg, Trevor Gross, Bjorn Helgaas,
Krzysztof Wilczyński, Daniel Almeida, David Airlie,
Simona Vetter, rust-for-linux, linux-kernel, linux-pci, dri-devel
On Tue, Jan 20, 2026 at 06:11:09PM +0000, Gary Guo wrote:
> From: Gary Guo <gary@garyguo.net>
>
> This is now handled by the macro itself.
>
> Signed-off-by: Gary Guo <gary@garyguo.net>
Acked-by: Alice Ryhl <aliceryhl@google.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 4/4] gpu: tyr: remove redundant `.as_ref()` for `dev_*` print
2026-01-26 9:17 ` Alice Ryhl
@ 2026-01-26 13:43 ` Danilo Krummrich
2026-01-26 15:06 ` Alice Ryhl
0 siblings, 1 reply; 7+ messages in thread
From: Danilo Krummrich @ 2026-01-26 13:43 UTC (permalink / raw)
To: Alice Ryhl
Cc: Gary Guo, Greg Kroah-Hartman, Rafael J. Wysocki, Miguel Ojeda,
Boqun Feng, Björn Roy Baron, Benno Lossin, Andreas Hindborg,
Trevor Gross, Bjorn Helgaas, Krzysztof Wilczyński,
Daniel Almeida, David Airlie, Simona Vetter, rust-for-linux,
linux-kernel, linux-pci, dri-devel
On Mon Jan 26, 2026 at 10:17 AM CET, Alice Ryhl wrote:
> On Tue, Jan 20, 2026 at 06:11:09PM +0000, Gary Guo wrote:
>> From: Gary Guo <gary@garyguo.net>
>>
>> This is now handled by the macro itself.
>>
>> Signed-off-by: Gary Guo <gary@garyguo.net>
>
> Acked-by: Alice Ryhl <aliceryhl@google.com>
Given your ACK, do you want me to take this one through driver-core for this
cycle? For the nova-core one I will wait for -rc1 to be out and take it through
the drm-rust tree to avoid conflicts, Tyr should be less prone to conflicts
though.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 4/4] gpu: tyr: remove redundant `.as_ref()` for `dev_*` print
2026-01-26 13:43 ` Danilo Krummrich
@ 2026-01-26 15:06 ` Alice Ryhl
2026-01-26 17:02 ` Danilo Krummrich
0 siblings, 1 reply; 7+ messages in thread
From: Alice Ryhl @ 2026-01-26 15:06 UTC (permalink / raw)
To: Danilo Krummrich
Cc: Gary Guo, Greg Kroah-Hartman, Rafael J. Wysocki, Miguel Ojeda,
Boqun Feng, Björn Roy Baron, Benno Lossin, Andreas Hindborg,
Trevor Gross, Bjorn Helgaas, Krzysztof Wilczyński,
Daniel Almeida, David Airlie, Simona Vetter, rust-for-linux,
linux-kernel, linux-pci, dri-devel
On Mon, Jan 26, 2026 at 2:43 PM Danilo Krummrich <dakr@kernel.org> wrote:
>
> On Mon Jan 26, 2026 at 10:17 AM CET, Alice Ryhl wrote:
> > On Tue, Jan 20, 2026 at 06:11:09PM +0000, Gary Guo wrote:
> >> From: Gary Guo <gary@garyguo.net>
> >>
> >> This is now handled by the macro itself.
> >>
> >> Signed-off-by: Gary Guo <gary@garyguo.net>
> >
> > Acked-by: Alice Ryhl <aliceryhl@google.com>
>
> Given your ACK, do you want me to take this one through driver-core for this
> cycle? For the nova-core one I will wait for -rc1 to be out and take it through
> the drm-rust tree to avoid conflicts, Tyr should be less prone to conflicts
> though.
I don't mind either way, but if there are no conflicts, it would be
nice to take it off our plate now.
Alice
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 4/4] gpu: tyr: remove redundant `.as_ref()` for `dev_*` print
2026-01-26 15:06 ` Alice Ryhl
@ 2026-01-26 17:02 ` Danilo Krummrich
0 siblings, 0 replies; 7+ messages in thread
From: Danilo Krummrich @ 2026-01-26 17:02 UTC (permalink / raw)
To: Alice Ryhl
Cc: Gary Guo, Greg Kroah-Hartman, Rafael J. Wysocki, Miguel Ojeda,
Boqun Feng, Björn Roy Baron, Benno Lossin, Andreas Hindborg,
Trevor Gross, Bjorn Helgaas, Krzysztof Wilczyński,
Daniel Almeida, David Airlie, Simona Vetter, rust-for-linux,
linux-kernel, linux-pci, dri-devel
On Mon Jan 26, 2026 at 4:06 PM CET, Alice Ryhl wrote:
> I don't mind either way, but if there are no conflicts, it would be
> nice to take it off our plate now.
Applied to driver-core-testing, thanks!
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-01-26 17:02 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260120181152.3640314-1-gary@kernel.org>
2026-01-20 18:11 ` [PATCH 3/4] gpu: nova-core: remove redundant `.as_ref()` for `dev_*` print Gary Guo
2026-01-20 18:11 ` [PATCH 4/4] gpu: tyr: " Gary Guo
2026-01-21 12:25 ` Daniel Almeida
2026-01-26 9:17 ` Alice Ryhl
2026-01-26 13:43 ` Danilo Krummrich
2026-01-26 15:06 ` Alice Ryhl
2026-01-26 17:02 ` Danilo Krummrich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox