mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 04:21:09 -04:00
gpu: nova-core: remove redundant .as_ref() for dev_* print
This is now handled by the macro itself. Signed-off-by: Gary Guo <gary@garyguo.net> Link: https://patch.msgid.link/20260123175854.176735-7-gary@kernel.org Signed-off-by: Danilo Krummrich <dakr@kernel.org>
This commit is contained in:
committed by
Danilo Krummrich
parent
ef2964f11e
commit
8d1a65c2de
@@ -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();
|
||||
|
||||
@@ -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)?,
|
||||
|
||||
@@ -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(())
|
||||
|
||||
Reference in New Issue
Block a user