virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] vdpa/octeon_ep: Fix format specifier for pointers in debug messages
@ 2024-09-16 16:22 Srujana Challa
  2024-09-16 17:41 ` Michael S. Tsirkin
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Srujana Challa @ 2024-09-16 16:22 UTC (permalink / raw)
  To: virtualization
  Cc: mst, jasowang, dan.carpenter, xuanzhuo, eperezma, ndabilpuram,
	vattunuru, schalla, kernel test robot

Updates the debug messages in octep_vdpa_hw.c to use the %p format
specifier for pointers instead of casting them to u64.

Fixes smatch warning:
octep_hw_caps_read() warn: argument 3 to %016llx specifier is cast
from pointer

Fixes: 8b6c724cdab8 ("virtio: vdpa: vDPA driver for Marvell OCTEON DPU devices")

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes:https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.kernel.org_r_202409160431.bRhZWhiU-2Dlkp-40intel.com_&d=DwIBAg&c=nKjWec2b6R0mOyPaz7xtfQ&r=Fj4OoD5hcKFpANhTWdwQzjT1Jpf7veC5263T47JVpnc&m=qyhlWh2lFE3SPFpB_eJ0K1RFMa5f-kcNChFHkCARDCXIkzMk__3sqspP_K7KGxaj&s=fMvS62XMmi5HESJuL9v7FX3c8RSzKCq7JM6Khcof4vM&e=
Signed-off-by: Srujana Challa <schalla@marvell.com>
---
 drivers/vdpa/octeon_ep/octep_vdpa_hw.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/vdpa/octeon_ep/octep_vdpa_hw.c b/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
index 11bd76ae18cf..1d4767b33315 100644
--- a/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
+++ b/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
@@ -475,11 +475,11 @@ int octep_hw_caps_read(struct octep_hw *oct_hw, struct pci_dev *pdev)
 		dev_err(dev, "Incomplete PCI capabilities");
 		return -EIO;
 	}
-	dev_info(dev, "common cfg mapped at: 0x%016llx\n", (u64)(uintptr_t)oct_hw->common_cfg);
-	dev_info(dev, "device cfg mapped at: 0x%016llx\n", (u64)(uintptr_t)oct_hw->dev_cfg);
-	dev_info(dev, "isr cfg mapped at: 0x%016llx\n", (u64)(uintptr_t)oct_hw->isr);
-	dev_info(dev, "notify base: 0x%016llx, notify off multiplier: %u\n",
-		 (u64)(uintptr_t)oct_hw->notify_base, oct_hw->notify_off_multiplier);
+	dev_info(dev, "common cfg mapped at: %p\n", oct_hw->common_cfg);
+	dev_info(dev, "device cfg mapped at: %p\n", oct_hw->dev_cfg);
+	dev_info(dev, "isr cfg mapped at: %p\n", oct_hw->isr);
+	dev_info(dev, "notify base: %p, notify off multiplier: %u\n",
+		 oct_hw->notify_base, oct_hw->notify_off_multiplier);
 
 	oct_hw->config_size = octep_get_config_size(oct_hw);
 	oct_hw->features = octep_hw_get_dev_features(oct_hw);
@@ -511,7 +511,7 @@ int octep_hw_caps_read(struct octep_hw *oct_hw, struct pci_dev *pdev)
 	}
 	mbox = octep_get_mbox(oct_hw);
 	octep_mbox_init(mbox);
-	dev_info(dev, "mbox mapped at: 0x%016llx\n", (u64)(uintptr_t)mbox);
+	dev_info(dev, "mbox mapped at: %p\n", mbox);
 
 	return 0;
 }
-- 
2.25.1


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

* Re: [PATCH] vdpa/octeon_ep: Fix format specifier for pointers in debug messages
  2024-09-16 16:22 [PATCH] vdpa/octeon_ep: Fix format specifier for pointers in debug messages Srujana Challa
@ 2024-09-16 17:41 ` Michael S. Tsirkin
  2024-09-16 17:43 ` Michael S. Tsirkin
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 9+ messages in thread
From: Michael S. Tsirkin @ 2024-09-16 17:41 UTC (permalink / raw)
  To: Srujana Challa
  Cc: virtualization, jasowang, dan.carpenter, xuanzhuo, eperezma,
	ndabilpuram, vattunuru, kernel test robot

On Mon, Sep 16, 2024 at 09:52:55PM +0530, Srujana Challa wrote:
> Updates the debug messages in octep_vdpa_hw.c to use the %p format
> specifier for pointers instead of casting them to u64.
> 
> Fixes smatch warning:
> octep_hw_caps_read() warn: argument 3 to %016llx specifier is cast
> from pointer
> 
> Fixes: 8b6c724cdab8 ("virtio: vdpa: vDPA driver for Marvell OCTEON DPU devices")
> 
> Reported-by: kernel test robot <lkp@intel.com>
> Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
> Closes:https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.kernel.org_r_202409160431.bRhZWhiU-2Dlkp-40intel.com_&d=DwIBAg&c=nKjWec2b6R0mOyPaz7xtfQ&r=Fj4OoD5hcKFpANhTWdwQzjT1Jpf7veC5263T47JVpnc&m=qyhlWh2lFE3SPFpB_eJ0K1RFMa5f-kcNChFHkCARDCXIkzMk__3sqspP_K7KGxaj&s=fMvS62XMmi5HESJuL9v7FX3c8RSzKCq7JM6Khcof4vM&e=

Don't do this please, just normal URLs.
https://lore.kernel.org/all/202409160431.bRhZWhiU-lkp@intel.com/

in this case.

> Signed-off-by: Srujana Challa <schalla@marvell.com>
> ---
>  drivers/vdpa/octeon_ep/octep_vdpa_hw.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/vdpa/octeon_ep/octep_vdpa_hw.c b/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> index 11bd76ae18cf..1d4767b33315 100644
> --- a/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> +++ b/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> @@ -475,11 +475,11 @@ int octep_hw_caps_read(struct octep_hw *oct_hw, struct pci_dev *pdev)
>  		dev_err(dev, "Incomplete PCI capabilities");
>  		return -EIO;
>  	}
> -	dev_info(dev, "common cfg mapped at: 0x%016llx\n", (u64)(uintptr_t)oct_hw->common_cfg);
> -	dev_info(dev, "device cfg mapped at: 0x%016llx\n", (u64)(uintptr_t)oct_hw->dev_cfg);
> -	dev_info(dev, "isr cfg mapped at: 0x%016llx\n", (u64)(uintptr_t)oct_hw->isr);
> -	dev_info(dev, "notify base: 0x%016llx, notify off multiplier: %u\n",
> -		 (u64)(uintptr_t)oct_hw->notify_base, oct_hw->notify_off_multiplier);
> +	dev_info(dev, "common cfg mapped at: %p\n", oct_hw->common_cfg);
> +	dev_info(dev, "device cfg mapped at: %p\n", oct_hw->dev_cfg);
> +	dev_info(dev, "isr cfg mapped at: %p\n", oct_hw->isr);
> +	dev_info(dev, "notify base: %p, notify off multiplier: %u\n",
> +		 oct_hw->notify_base, oct_hw->notify_off_multiplier);
>  
>  	oct_hw->config_size = octep_get_config_size(oct_hw);
>  	oct_hw->features = octep_hw_get_dev_features(oct_hw);
> @@ -511,7 +511,7 @@ int octep_hw_caps_read(struct octep_hw *oct_hw, struct pci_dev *pdev)
>  	}
>  	mbox = octep_get_mbox(oct_hw);
>  	octep_mbox_init(mbox);
> -	dev_info(dev, "mbox mapped at: 0x%016llx\n", (u64)(uintptr_t)mbox);
> +	dev_info(dev, "mbox mapped at: %p\n", mbox);
>  
>  	return 0;
>  }
> -- 
> 2.25.1


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

* Re: [PATCH] vdpa/octeon_ep: Fix format specifier for pointers in debug messages
  2024-09-16 16:22 [PATCH] vdpa/octeon_ep: Fix format specifier for pointers in debug messages Srujana Challa
  2024-09-16 17:41 ` Michael S. Tsirkin
@ 2024-09-16 17:43 ` Michael S. Tsirkin
  2024-09-17  5:59   ` [EXTERNAL] " Srujana Challa
  2024-09-16 17:43 ` Michael S. Tsirkin
  2024-09-18  9:34 ` Dan Carpenter
  3 siblings, 1 reply; 9+ messages in thread
From: Michael S. Tsirkin @ 2024-09-16 17:43 UTC (permalink / raw)
  To: Srujana Challa
  Cc: virtualization, jasowang, dan.carpenter, xuanzhuo, eperezma,
	ndabilpuram, vattunuru, kernel test robot

On Mon, Sep 16, 2024 at 09:52:55PM +0530, Srujana Challa wrote:
> Updates the debug messages in octep_vdpa_hw.c to use the %p format
> specifier for pointers instead of casting them to u64.
> 
> Fixes smatch warning:
> octep_hw_caps_read() warn: argument 3 to %016llx specifier is cast
> from pointer
> 
> Fixes: 8b6c724cdab8 ("virtio: vdpa: vDPA driver for Marvell OCTEON DPU devices")
> 
> Reported-by: kernel test robot <lkp@intel.com>
> Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
> Closes:https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.kernel.org_r_202409160431.bRhZWhiU-2Dlkp-40intel.com_&d=DwIBAg&c=nKjWec2b6R0mOyPaz7xtfQ&r=Fj4OoD5hcKFpANhTWdwQzjT1Jpf7veC5263T47JVpnc&m=qyhlWh2lFE3SPFpB_eJ0K1RFMa5f-kcNChFHkCARDCXIkzMk__3sqspP_K7KGxaj&s=fMvS62XMmi5HESJuL9v7FX3c8RSzKCq7JM6Khcof4vM&e=
> Signed-off-by: Srujana Challa <schalla@marvell.com>



This does not fix it completely.
ret is still 0 here:

8b6c724cdab85d Srujana Challa 2024-06-14  140  	val = octep_read_sig(mbox);
8b6c724cdab85d Srujana Challa 2024-06-14  141  	if ((val & 0xFFFF) != MBOX_RSP_SIG) {
8b6c724cdab85d Srujana Challa 2024-06-14  142  		dev_warn(&pdev->dev, "Invalid Signature from mbox : %d response\n", id);
8b6c724cdab85d Srujana Challa 2024-06-14 @143  		return ret;
8b6c724cdab85d Srujana Challa 2024-06-14  144  	}


which is wrong.


> ---
>  drivers/vdpa/octeon_ep/octep_vdpa_hw.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/vdpa/octeon_ep/octep_vdpa_hw.c b/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> index 11bd76ae18cf..1d4767b33315 100644
> --- a/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> +++ b/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> @@ -475,11 +475,11 @@ int octep_hw_caps_read(struct octep_hw *oct_hw, struct pci_dev *pdev)
>  		dev_err(dev, "Incomplete PCI capabilities");
>  		return -EIO;
>  	}
> -	dev_info(dev, "common cfg mapped at: 0x%016llx\n", (u64)(uintptr_t)oct_hw->common_cfg);
> -	dev_info(dev, "device cfg mapped at: 0x%016llx\n", (u64)(uintptr_t)oct_hw->dev_cfg);
> -	dev_info(dev, "isr cfg mapped at: 0x%016llx\n", (u64)(uintptr_t)oct_hw->isr);
> -	dev_info(dev, "notify base: 0x%016llx, notify off multiplier: %u\n",
> -		 (u64)(uintptr_t)oct_hw->notify_base, oct_hw->notify_off_multiplier);
> +	dev_info(dev, "common cfg mapped at: %p\n", oct_hw->common_cfg);
> +	dev_info(dev, "device cfg mapped at: %p\n", oct_hw->dev_cfg);
> +	dev_info(dev, "isr cfg mapped at: %p\n", oct_hw->isr);
> +	dev_info(dev, "notify base: %p, notify off multiplier: %u\n",
> +		 oct_hw->notify_base, oct_hw->notify_off_multiplier);
>  
>  	oct_hw->config_size = octep_get_config_size(oct_hw);
>  	oct_hw->features = octep_hw_get_dev_features(oct_hw);
> @@ -511,7 +511,7 @@ int octep_hw_caps_read(struct octep_hw *oct_hw, struct pci_dev *pdev)
>  	}
>  	mbox = octep_get_mbox(oct_hw);
>  	octep_mbox_init(mbox);
> -	dev_info(dev, "mbox mapped at: 0x%016llx\n", (u64)(uintptr_t)mbox);
> +	dev_info(dev, "mbox mapped at: %p\n", mbox);
>  
>  	return 0;
>  }
> -- 
> 2.25.1


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

* Re: [PATCH] vdpa/octeon_ep: Fix format specifier for pointers in debug messages
  2024-09-16 16:22 [PATCH] vdpa/octeon_ep: Fix format specifier for pointers in debug messages Srujana Challa
  2024-09-16 17:41 ` Michael S. Tsirkin
  2024-09-16 17:43 ` Michael S. Tsirkin
@ 2024-09-16 17:43 ` Michael S. Tsirkin
  2024-09-18  9:34 ` Dan Carpenter
  3 siblings, 0 replies; 9+ messages in thread
From: Michael S. Tsirkin @ 2024-09-16 17:43 UTC (permalink / raw)
  To: Srujana Challa
  Cc: virtualization, jasowang, dan.carpenter, xuanzhuo, eperezma,
	ndabilpuram, vattunuru, kernel test robot

On Mon, Sep 16, 2024 at 09:52:55PM +0530, Srujana Challa wrote:
> Updates the debug messages in octep_vdpa_hw.c to use the %p format
> specifier for pointers instead of casting them to u64.
> 
> Fixes smatch warning:
> octep_hw_caps_read() warn: argument 3 to %016llx specifier is cast
> from pointer
> 
> Fixes: 8b6c724cdab8 ("virtio: vdpa: vDPA driver for Marvell OCTEON DPU devices")
> 

don't add empty lines, all tags in one block.

> Reported-by: kernel test robot <lkp@intel.com>
> Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
> Closes:https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.kernel.org_r_202409160431.bRhZWhiU-2Dlkp-40intel.com_&d=DwIBAg&c=nKjWec2b6R0mOyPaz7xtfQ&r=Fj4OoD5hcKFpANhTWdwQzjT1Jpf7veC5263T47JVpnc&m=qyhlWh2lFE3SPFpB_eJ0K1RFMa5f-kcNChFHkCARDCXIkzMk__3sqspP_K7KGxaj&s=fMvS62XMmi5HESJuL9v7FX3c8RSzKCq7JM6Khcof4vM&e=
> Signed-off-by: Srujana Challa <schalla@marvell.com>
> ---
>  drivers/vdpa/octeon_ep/octep_vdpa_hw.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/vdpa/octeon_ep/octep_vdpa_hw.c b/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> index 11bd76ae18cf..1d4767b33315 100644
> --- a/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> +++ b/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> @@ -475,11 +475,11 @@ int octep_hw_caps_read(struct octep_hw *oct_hw, struct pci_dev *pdev)
>  		dev_err(dev, "Incomplete PCI capabilities");
>  		return -EIO;
>  	}
> -	dev_info(dev, "common cfg mapped at: 0x%016llx\n", (u64)(uintptr_t)oct_hw->common_cfg);
> -	dev_info(dev, "device cfg mapped at: 0x%016llx\n", (u64)(uintptr_t)oct_hw->dev_cfg);
> -	dev_info(dev, "isr cfg mapped at: 0x%016llx\n", (u64)(uintptr_t)oct_hw->isr);
> -	dev_info(dev, "notify base: 0x%016llx, notify off multiplier: %u\n",
> -		 (u64)(uintptr_t)oct_hw->notify_base, oct_hw->notify_off_multiplier);
> +	dev_info(dev, "common cfg mapped at: %p\n", oct_hw->common_cfg);
> +	dev_info(dev, "device cfg mapped at: %p\n", oct_hw->dev_cfg);
> +	dev_info(dev, "isr cfg mapped at: %p\n", oct_hw->isr);
> +	dev_info(dev, "notify base: %p, notify off multiplier: %u\n",
> +		 oct_hw->notify_base, oct_hw->notify_off_multiplier);
>  
>  	oct_hw->config_size = octep_get_config_size(oct_hw);
>  	oct_hw->features = octep_hw_get_dev_features(oct_hw);
> @@ -511,7 +511,7 @@ int octep_hw_caps_read(struct octep_hw *oct_hw, struct pci_dev *pdev)
>  	}
>  	mbox = octep_get_mbox(oct_hw);
>  	octep_mbox_init(mbox);
> -	dev_info(dev, "mbox mapped at: 0x%016llx\n", (u64)(uintptr_t)mbox);
> +	dev_info(dev, "mbox mapped at: %p\n", mbox);
>  
>  	return 0;
>  }
> -- 
> 2.25.1


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

* RE: [EXTERNAL] Re: [PATCH] vdpa/octeon_ep: Fix format specifier for pointers in debug messages
  2024-09-16 17:43 ` Michael S. Tsirkin
@ 2024-09-17  5:59   ` Srujana Challa
  2024-09-17 12:32     ` Srujana Challa
  2024-09-18 14:43     ` Michael S. Tsirkin
  0 siblings, 2 replies; 9+ messages in thread
From: Srujana Challa @ 2024-09-17  5:59 UTC (permalink / raw)
  To: Michael S. Tsirkin
  Cc: virtualization@lists.linux.dev, jasowang@redhat.com,
	dan.carpenter@linaro.org, xuanzhuo@linux.alibaba.com,
	eperezma@redhat.com, Nithin Kumar Dabilpuram,
	Vamsi Krishna Attunuru, kernel test robot

> Subject: [EXTERNAL] Re: [PATCH] vdpa/octeon_ep: Fix format specifier for
> pointers in debug messages
> 
> On Mon, Sep 16, 2024 at 09: 52: 55PM +0530, Srujana Challa wrote: >
> Updates the debug messages in octep_vdpa_hw. c to use the %p format >
> specifier for pointers instead of casting them to u64. > > Fixes smatch warning:
> > octep_hw_caps_read() 
> On Mon, Sep 16, 2024 at 09:52:55PM +0530, Srujana Challa wrote:
> > Updates the debug messages in octep_vdpa_hw.c to use the %p format
> > specifier for pointers instead of casting them to u64.
> >
> > Fixes smatch warning:
> > octep_hw_caps_read() warn: argument 3 to %016llx specifier is cast
> > from pointer
> >
> > Fixes: 8b6c724cdab8 ("virtio: vdpa: vDPA driver for Marvell OCTEON DPU
> > devices")
> >
> > Reported-by: kernel test robot <lkp@intel.com>
> > Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
> > Closes:https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.kerne
> > l.org_r_202409160431.bRhZWhiU-2Dlkp-
> 40intel.com_&d=DwIBAg&c=nKjWec2b6R
> >
> 0mOyPaz7xtfQ&r=Fj4OoD5hcKFpANhTWdwQzjT1Jpf7veC5263T47JVpnc&m
> =qyhlWh2lF
> > E3SPFpB_eJ0K1RFMa5f-
> kcNChFHkCARDCXIkzMk__3sqspP_K7KGxaj&s=fMvS62XMmi5H
> > ESJuL9v7FX3c8RSzKCq7JM6Khcof4vM&e=
> > <https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.kernel.org_
> > r_202409160431.bRhZWhiU-2Dlkp-
> 40intel.com_&d=DwIBAg&c=nKjWec2b6R0mOyPa
> >
> z7xtfQ&r=Fj4OoD5hcKFpANhTWdwQzjT1Jpf7veC5263T47JVpnc&m=qyhlWh
> 2lFE3SPFp
> > B_eJ0K1RFMa5f-
> kcNChFHkCARDCXIkzMk__3sqspP_K7KGxaj&s=fMvS62XMmi5HESJuL9
> > v7FX3c8RSzKCq7JM6Khcof4vM&e=  >> Signed-off-by: Srujana Challa
> > <schalla@marvell.com>
> 
> 
> 
> This does not fix it completely.
> ret is still 0 here:
> 
> 8b6c724cdab85d Srujana Challa 2024-06-14  140  	val =
> octep_read_sig(mbox);
> 8b6c724cdab85d Srujana Challa 2024-06-14  141  	if ((val & 0xFFFF) !=
> MBOX_RSP_SIG) {
> 8b6c724cdab85d Srujana Challa 2024-06-14  142
> 	dev_warn(&pdev->dev, "Invalid Signature from mbox : %d
> response\n", id);
> 8b6c724cdab85d Srujana Challa 2024-06-14 @143  		return ret;
> 8b6c724cdab85d Srujana Challa 2024-06-14  144  	}
> 
> 
> which is wrong.
The fix for the error code is already included in the linux-next and mainline Linux repositories.
Therefore, I did not include that change in this patch.
Thanks.
> 
> 
> > ---
> >  drivers/vdpa/octeon_ep/octep_vdpa_hw.c | 12 ++++++------
> >  1 file changed, 6 insertions(+), 6 deletions(-)
> >
> > diff --git a/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> > b/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> > index 11bd76ae18cf..1d4767b33315 100644
> > --- a/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> > +++ b/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> > @@ -475,11 +475,11 @@ int octep_hw_caps_read(struct octep_hw
> *oct_hw, struct pci_dev *pdev)
> >  		dev_err(dev, "Incomplete PCI capabilities");
> >  		return -EIO;
> >  	}
> > -	dev_info(dev, "common cfg mapped at: 0x%016llx\n",
> (u64)(uintptr_t)oct_hw->common_cfg);
> > -	dev_info(dev, "device cfg mapped at: 0x%016llx\n",
> (u64)(uintptr_t)oct_hw->dev_cfg);
> > -	dev_info(dev, "isr cfg mapped at: 0x%016llx\n",
> (u64)(uintptr_t)oct_hw->isr);
> > -	dev_info(dev, "notify base: 0x%016llx, notify off multiplier: %u\n",
> > -		 (u64)(uintptr_t)oct_hw->notify_base, oct_hw-
> >notify_off_multiplier);
> > +	dev_info(dev, "common cfg mapped at: %p\n", oct_hw-
> >common_cfg);
> > +	dev_info(dev, "device cfg mapped at: %p\n", oct_hw->dev_cfg);
> > +	dev_info(dev, "isr cfg mapped at: %p\n", oct_hw->isr);
> > +	dev_info(dev, "notify base: %p, notify off multiplier: %u\n",
> > +		 oct_hw->notify_base, oct_hw->notify_off_multiplier);
> >
> >  	oct_hw->config_size = octep_get_config_size(oct_hw);
> >  	oct_hw->features = octep_hw_get_dev_features(oct_hw);
> > @@ -511,7 +511,7 @@ int octep_hw_caps_read(struct octep_hw *oct_hw,
> struct pci_dev *pdev)
> >  	}
> >  	mbox = octep_get_mbox(oct_hw);
> >  	octep_mbox_init(mbox);
> > -	dev_info(dev, "mbox mapped at: 0x%016llx\n",
> (u64)(uintptr_t)mbox);
> > +	dev_info(dev, "mbox mapped at: %p\n", mbox);
> >
> >  	return 0;
> >  }
> > --
> > 2.25.1


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

* RE: [EXTERNAL] Re: [PATCH] vdpa/octeon_ep: Fix format specifier for pointers in debug messages
  2024-09-17  5:59   ` [EXTERNAL] " Srujana Challa
@ 2024-09-17 12:32     ` Srujana Challa
  2024-09-18 14:43     ` Michael S. Tsirkin
  1 sibling, 0 replies; 9+ messages in thread
From: Srujana Challa @ 2024-09-17 12:32 UTC (permalink / raw)
  To: Michael S. Tsirkin
  Cc: virtualization@lists.linux.dev, jasowang@redhat.com,
	dan.carpenter@linaro.org, xuanzhuo@linux.alibaba.com,
	eperezma@redhat.com, Nithin Kumar Dabilpuram,
	Vamsi Krishna Attunuru, kernel test robot

> > On Mon, Sep 16, 2024 at 09:52:55PM +0530, Srujana Challa wrote:
> > > Updates the debug messages in octep_vdpa_hw.c to use the %p format
> > > specifier for pointers instead of casting them to u64.
> > >
> > > Fixes smatch warning:
> > > octep_hw_caps_read() warn: argument 3 to %016llx specifier is cast
> > > from pointer
> > >
> > > Fixes: 8b6c724cdab8 ("virtio: vdpa: vDPA driver for Marvell OCTEON
> > > DPU
> > > devices")
> > >
> > > Reported-by: kernel test robot <lkp@intel.com>
> > > Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
> > > Closes:https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.ker
> > > ne
> > > l.org_r_202409160431.bRhZWhiU-2Dlkp-
> > 40intel.com_&d=DwIBAg&c=nKjWec2b6R
> > >
> >
> 0mOyPaz7xtfQ&r=Fj4OoD5hcKFpANhTWdwQzjT1Jpf7veC5263T47JVpnc&m
> > =qyhlWh2lF
> > > E3SPFpB_eJ0K1RFMa5f-
> > kcNChFHkCARDCXIkzMk__3sqspP_K7KGxaj&s=fMvS62XMmi5H
> > > ESJuL9v7FX3c8RSzKCq7JM6Khcof4vM&e=
> > > <https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.kernel.or
> > > g_
> > > r_202409160431.bRhZWhiU-2Dlkp-
> > 40intel.com_&d=DwIBAg&c=nKjWec2b6R0mOyPa
> > >
> >
> z7xtfQ&r=Fj4OoD5hcKFpANhTWdwQzjT1Jpf7veC5263T47JVpnc&m=qyhlWh
> > 2lFE3SPFp
> > > B_eJ0K1RFMa5f-
> > kcNChFHkCARDCXIkzMk__3sqspP_K7KGxaj&s=fMvS62XMmi5HESJuL9
> > > v7FX3c8RSzKCq7JM6Khcof4vM&e=  >> Signed-off-by: Srujana Challa
> > > <schalla@marvell.com>
> >
> >
> >
> > This does not fix it completely.
> > ret is still 0 here:
> >
> > 8b6c724cdab85d Srujana Challa 2024-06-14  140  	val =
> > octep_read_sig(mbox);
> > 8b6c724cdab85d Srujana Challa 2024-06-14  141  	if ((val & 0xFFFF) !=
> > MBOX_RSP_SIG) {
> > 8b6c724cdab85d Srujana Challa 2024-06-14  142
> > 	dev_warn(&pdev->dev, "Invalid Signature from mbox : %d
> response\n",
> > id);
> > 8b6c724cdab85d Srujana Challa 2024-06-14 @143  		return ret;
> > 8b6c724cdab85d Srujana Challa 2024-06-14  144  	}
> >
> >
> > which is wrong.
> The fix for the error code is already included in the linux-next and mainline
> Linux repositories.
> Therefore, I did not include that change in this patch.
> Thanks.
Michael, could you confirm if the fix for the error code should be included in this patch?

> >
> >
> > > ---
> > >  drivers/vdpa/octeon_ep/octep_vdpa_hw.c | 12 ++++++------
> > >  1 file changed, 6 insertions(+), 6 deletions(-)
> > >
> > > diff --git a/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> > > b/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> > > index 11bd76ae18cf..1d4767b33315 100644
> > > --- a/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> > > +++ b/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> > > @@ -475,11 +475,11 @@ int octep_hw_caps_read(struct octep_hw
> > *oct_hw, struct pci_dev *pdev)
> > >  		dev_err(dev, "Incomplete PCI capabilities");
> > >  		return -EIO;
> > >  	}
> > > -	dev_info(dev, "common cfg mapped at: 0x%016llx\n",
> > (u64)(uintptr_t)oct_hw->common_cfg);
> > > -	dev_info(dev, "device cfg mapped at: 0x%016llx\n",
> > (u64)(uintptr_t)oct_hw->dev_cfg);
> > > -	dev_info(dev, "isr cfg mapped at: 0x%016llx\n",
> > (u64)(uintptr_t)oct_hw->isr);
> > > -	dev_info(dev, "notify base: 0x%016llx, notify off multiplier: %u\n",
> > > -		 (u64)(uintptr_t)oct_hw->notify_base, oct_hw-
> > >notify_off_multiplier);
> > > +	dev_info(dev, "common cfg mapped at: %p\n", oct_hw-
> > >common_cfg);
> > > +	dev_info(dev, "device cfg mapped at: %p\n", oct_hw->dev_cfg);
> > > +	dev_info(dev, "isr cfg mapped at: %p\n", oct_hw->isr);
> > > +	dev_info(dev, "notify base: %p, notify off multiplier: %u\n",
> > > +		 oct_hw->notify_base, oct_hw->notify_off_multiplier);
> > >
> > >  	oct_hw->config_size = octep_get_config_size(oct_hw);
> > >  	oct_hw->features = octep_hw_get_dev_features(oct_hw);
> > > @@ -511,7 +511,7 @@ int octep_hw_caps_read(struct octep_hw
> *oct_hw,
> > struct pci_dev *pdev)
> > >  	}
> > >  	mbox = octep_get_mbox(oct_hw);
> > >  	octep_mbox_init(mbox);
> > > -	dev_info(dev, "mbox mapped at: 0x%016llx\n",
> > (u64)(uintptr_t)mbox);
> > > +	dev_info(dev, "mbox mapped at: %p\n", mbox);
> > >
> > >  	return 0;
> > >  }
> > > --
> > > 2.25.1


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

* Re: [PATCH] vdpa/octeon_ep: Fix format specifier for pointers in debug messages
  2024-09-16 16:22 [PATCH] vdpa/octeon_ep: Fix format specifier for pointers in debug messages Srujana Challa
                   ` (2 preceding siblings ...)
  2024-09-16 17:43 ` Michael S. Tsirkin
@ 2024-09-18  9:34 ` Dan Carpenter
  3 siblings, 0 replies; 9+ messages in thread
From: Dan Carpenter @ 2024-09-18  9:34 UTC (permalink / raw)
  To: Srujana Challa
  Cc: virtualization, mst, jasowang, xuanzhuo, eperezma, ndabilpuram,
	vattunuru, kernel test robot

On Mon, Sep 16, 2024 at 09:52:55PM +0530, Srujana Challa wrote:
> Updates the debug messages in octep_vdpa_hw.c to use the %p format
> specifier for pointers instead of casting them to u64.
> 
> Fixes smatch warning:
> octep_hw_caps_read() warn: argument 3 to %016llx specifier is cast
> from pointer
> 
> Fixes: 8b6c724cdab8 ("virtio: vdpa: vDPA driver for Marvell OCTEON DPU devices")
> 
> Reported-by: kernel test robot <lkp@intel.com>
> Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
> Closes:https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.kernel.org_r_202409160431.bRhZWhiU-2Dlkp-40intel.com_&d=DwIBAg&c=nKjWec2b6R0mOyPaz7xtfQ&r=Fj4OoD5hcKFpANhTWdwQzjT1Jpf7veC5263T47JVpnc&m=qyhlWh2lFE3SPFpB_eJ0K1RFMa5f-kcNChFHkCARDCXIkzMk__3sqspP_K7KGxaj&s=fMvS62XMmi5HESJuL9v7FX3c8RSzKCq7JM6Khcof4vM&e=

I thought my script had failed when I saw this.  :P

Life hack: I Joe Shamblin's has a python program and procmail to
remove these.

regards,
dan carpenter


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

* Re: [EXTERNAL] Re: [PATCH] vdpa/octeon_ep: Fix format specifier for pointers in debug messages
  2024-09-17  5:59   ` [EXTERNAL] " Srujana Challa
  2024-09-17 12:32     ` Srujana Challa
@ 2024-09-18 14:43     ` Michael S. Tsirkin
  2024-09-18 16:25       ` Srujana Challa
  1 sibling, 1 reply; 9+ messages in thread
From: Michael S. Tsirkin @ 2024-09-18 14:43 UTC (permalink / raw)
  To: Srujana Challa
  Cc: virtualization@lists.linux.dev, jasowang@redhat.com,
	dan.carpenter@linaro.org, xuanzhuo@linux.alibaba.com,
	eperezma@redhat.com, Nithin Kumar Dabilpuram,
	Vamsi Krishna Attunuru, kernel test robot

On Tue, Sep 17, 2024 at 05:59:20AM +0000, Srujana Challa wrote:
> > Subject: [EXTERNAL] Re: [PATCH] vdpa/octeon_ep: Fix format specifier for
> > pointers in debug messages
> > 
> > On Mon, Sep 16, 2024 at 09: 52: 55PM +0530, Srujana Challa wrote: >
> > Updates the debug messages in octep_vdpa_hw. c to use the %p format >
> > specifier for pointers instead of casting them to u64. > > Fixes smatch warning:
> > > octep_hw_caps_read() 
> > On Mon, Sep 16, 2024 at 09:52:55PM +0530, Srujana Challa wrote:
> > > Updates the debug messages in octep_vdpa_hw.c to use the %p format
> > > specifier for pointers instead of casting them to u64.
> > >
> > > Fixes smatch warning:
> > > octep_hw_caps_read() warn: argument 3 to %016llx specifier is cast
> > > from pointer
> > >
> > > Fixes: 8b6c724cdab8 ("virtio: vdpa: vDPA driver for Marvell OCTEON DPU
> > > devices")
> > >
> > > Reported-by: kernel test robot <lkp@intel.com>
> > > Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
> > > Closes:https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.kerne
> > > l.org_r_202409160431.bRhZWhiU-2Dlkp-
> > 40intel.com_&d=DwIBAg&c=nKjWec2b6R
> > >
> > 0mOyPaz7xtfQ&r=Fj4OoD5hcKFpANhTWdwQzjT1Jpf7veC5263T47JVpnc&m
> > =qyhlWh2lF
> > > E3SPFpB_eJ0K1RFMa5f-
> > kcNChFHkCARDCXIkzMk__3sqspP_K7KGxaj&s=fMvS62XMmi5H
> > > ESJuL9v7FX3c8RSzKCq7JM6Khcof4vM&e=
> > > <https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.kernel.org_
> > > r_202409160431.bRhZWhiU-2Dlkp-
> > 40intel.com_&d=DwIBAg&c=nKjWec2b6R0mOyPa
> > >
> > z7xtfQ&r=Fj4OoD5hcKFpANhTWdwQzjT1Jpf7veC5263T47JVpnc&m=qyhlWh
> > 2lFE3SPFp
> > > B_eJ0K1RFMa5f-
> > kcNChFHkCARDCXIkzMk__3sqspP_K7KGxaj&s=fMvS62XMmi5HESJuL9
> > > v7FX3c8RSzKCq7JM6Khcof4vM&e=  >> Signed-off-by: Srujana Challa
> > > <schalla@marvell.com>
> > 
> > 
> > 
> > This does not fix it completely.
> > ret is still 0 here:
> > 
> > 8b6c724cdab85d Srujana Challa 2024-06-14  140  	val =
> > octep_read_sig(mbox);
> > 8b6c724cdab85d Srujana Challa 2024-06-14  141  	if ((val & 0xFFFF) !=
> > MBOX_RSP_SIG) {
> > 8b6c724cdab85d Srujana Challa 2024-06-14  142
> > 	dev_warn(&pdev->dev, "Invalid Signature from mbox : %d
> > response\n", id);
> > 8b6c724cdab85d Srujana Challa 2024-06-14 @143  		return ret;
> > 8b6c724cdab85d Srujana Challa 2024-06-14  144  	}
> > 
> > 
> > which is wrong.
> The fix for the error code is already included in the linux-next and mainline Linux repositories.

I guess it missed it ... where is it exactly? which tree/hash?

> Therefore, I did not include that change in this patch.
> Thanks.
> > 
> > 
> > > ---
> > >  drivers/vdpa/octeon_ep/octep_vdpa_hw.c | 12 ++++++------
> > >  1 file changed, 6 insertions(+), 6 deletions(-)
> > >
> > > diff --git a/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> > > b/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> > > index 11bd76ae18cf..1d4767b33315 100644
> > > --- a/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> > > +++ b/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> > > @@ -475,11 +475,11 @@ int octep_hw_caps_read(struct octep_hw
> > *oct_hw, struct pci_dev *pdev)
> > >  		dev_err(dev, "Incomplete PCI capabilities");
> > >  		return -EIO;
> > >  	}
> > > -	dev_info(dev, "common cfg mapped at: 0x%016llx\n",
> > (u64)(uintptr_t)oct_hw->common_cfg);
> > > -	dev_info(dev, "device cfg mapped at: 0x%016llx\n",
> > (u64)(uintptr_t)oct_hw->dev_cfg);
> > > -	dev_info(dev, "isr cfg mapped at: 0x%016llx\n",
> > (u64)(uintptr_t)oct_hw->isr);
> > > -	dev_info(dev, "notify base: 0x%016llx, notify off multiplier: %u\n",
> > > -		 (u64)(uintptr_t)oct_hw->notify_base, oct_hw-
> > >notify_off_multiplier);
> > > +	dev_info(dev, "common cfg mapped at: %p\n", oct_hw-
> > >common_cfg);
> > > +	dev_info(dev, "device cfg mapped at: %p\n", oct_hw->dev_cfg);
> > > +	dev_info(dev, "isr cfg mapped at: %p\n", oct_hw->isr);
> > > +	dev_info(dev, "notify base: %p, notify off multiplier: %u\n",
> > > +		 oct_hw->notify_base, oct_hw->notify_off_multiplier);
> > >
> > >  	oct_hw->config_size = octep_get_config_size(oct_hw);
> > >  	oct_hw->features = octep_hw_get_dev_features(oct_hw);
> > > @@ -511,7 +511,7 @@ int octep_hw_caps_read(struct octep_hw *oct_hw,
> > struct pci_dev *pdev)
> > >  	}
> > >  	mbox = octep_get_mbox(oct_hw);
> > >  	octep_mbox_init(mbox);
> > > -	dev_info(dev, "mbox mapped at: 0x%016llx\n",
> > (u64)(uintptr_t)mbox);
> > > +	dev_info(dev, "mbox mapped at: %p\n", mbox);
> > >
> > >  	return 0;
> > >  }
> > > --
> > > 2.25.1


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

* RE: [EXTERNAL] Re: [PATCH] vdpa/octeon_ep: Fix format specifier for pointers in debug messages
  2024-09-18 14:43     ` Michael S. Tsirkin
@ 2024-09-18 16:25       ` Srujana Challa
  0 siblings, 0 replies; 9+ messages in thread
From: Srujana Challa @ 2024-09-18 16:25 UTC (permalink / raw)
  To: Michael S. Tsirkin
  Cc: virtualization@lists.linux.dev, jasowang@redhat.com,
	dan.carpenter@linaro.org, xuanzhuo@linux.alibaba.com,
	eperezma@redhat.com, Nithin Kumar Dabilpuram,
	Vamsi Krishna Attunuru, kernel test robot

> On Tue, Sep 17, 2024 at 05:59:20AM +0000, Srujana Challa wrote:
> > > Subject: [EXTERNAL] Re: [PATCH] vdpa/octeon_ep: Fix format specifier
> > > for pointers in debug messages
> > >
> > > On Mon, Sep 16, 2024 at 09: 52: 55PM +0530, Srujana Challa wrote: >
> > > Updates the debug messages in octep_vdpa_hw. c to use the %p format
> > > > specifier for pointers instead of casting them to u64. > > Fixes smatch
> warning:
> > > > octep_hw_caps_read()
> > > On Mon, Sep 16, 2024 at 09:52:55PM +0530, Srujana Challa wrote:
> > > > Updates the debug messages in octep_vdpa_hw.c to use the %p format
> > > > specifier for pointers instead of casting them to u64.
> > > >
> > > > Fixes smatch warning:
> > > > octep_hw_caps_read() warn: argument 3 to %016llx specifier is cast
> > > > from pointer
> > > >
> > > > Fixes: 8b6c724cdab8 ("virtio: vdpa: vDPA driver for Marvell OCTEON
> > > > DPU
> > > > devices")
> > > >
> > > > Reported-by: kernel test robot <lkp@intel.com>
> > > > Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
> > > > Closes:https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.k
> > > > erne
> > <https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.kerne  >> >
> > > l.org_r_202409160431.bRhZWhiU-2Dlkp-
> > > 40intel.com_&d=DwIBAg&c=nKjWec2b6R
> > > >
> > >
> 0mOyPaz7xtfQ&r=Fj4OoD5hcKFpANhTWdwQzjT1Jpf7veC5263T47JVpnc&m
> > > =qyhlWh2lF
> > > > E3SPFpB_eJ0K1RFMa5f-
> > > kcNChFHkCARDCXIkzMk__3sqspP_K7KGxaj&s=fMvS62XMmi5H
> > > > ESJuL9v7FX3c8RSzKCq7JM6Khcof4vM&e=
> > > > <https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.kernel.
> > > > org_
> > <https://urldefense.proofpoint.com/v2/url?u=https-3A__lore.kernel.org_
> > >> > > r_202409160431.bRhZWhiU-2Dlkp-
> > > 40intel.com_&d=DwIBAg&c=nKjWec2b6R0mOyPa
> > > >
> > >
> z7xtfQ&r=Fj4OoD5hcKFpANhTWdwQzjT1Jpf7veC5263T47JVpnc&m=qyhlWh
> > > 2lFE3SPFp
> > > > B_eJ0K1RFMa5f-
> > > kcNChFHkCARDCXIkzMk__3sqspP_K7KGxaj&s=fMvS62XMmi5HESJuL9
> > > > v7FX3c8RSzKCq7JM6Khcof4vM&e=  >> Signed-off-by: Srujana Challa
> > > > <schalla@marvell.com>
> > >
> > >
> > >
> > > This does not fix it completely.
> > > ret is still 0 here:
> > >
> > > 8b6c724cdab85d Srujana Challa 2024-06-14  140  	val =
> > > octep_read_sig(mbox);
> > > 8b6c724cdab85d Srujana Challa 2024-06-14  141  	if ((val & 0xFFFF) !=
> > > MBOX_RSP_SIG) {
> > > 8b6c724cdab85d Srujana Challa 2024-06-14  142
> > > 	dev_warn(&pdev->dev, "Invalid Signature from mbox : %d
> response\n",
> > > id);
> > > 8b6c724cdab85d Srujana Challa 2024-06-14 @143  		return ret;
> > > 8b6c724cdab85d Srujana Challa 2024-06-14  144  	}
> > >
> > >
> > > which is wrong.
> > The fix for the error code is already included in the linux-next and mainline
> Linux repositories.
> 
> I guess it missed it ... where is it exactly? which tree/hash?
Please find the tree and hash info below,

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
commit e14f480df7fbcb0c84ce9142c861701495d9b6e2
Author: Dan Carpenter <dan.carpenter@linaro.org>
Date:   Fri Jul 12 09:06:12 2024 -0500

    vdpa/octeon_ep: Fix error code in octep_process_mbox()

    Return -EINVAL for invalid signatures.  Don't return success.

    Fixes: 8b6c724cdab8 ("virtio: vdpa: vDPA driver for Marvell OCTEON DPU devices")
    Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
    Message-Id: <623e885b-1a05-479e-ab97-01bcf10bf5b8@stanley.mountain>
    Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> 
> > Therefore, I did not include that change in this patch.
> > Thanks.
> > >
> > >
> > > > ---
> > > >  drivers/vdpa/octeon_ep/octep_vdpa_hw.c | 12 ++++++------
> > > >  1 file changed, 6 insertions(+), 6 deletions(-)
> > > >
> > > > diff --git a/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> > > > b/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> > > > index 11bd76ae18cf..1d4767b33315 100644
> > > > --- a/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> > > > +++ b/drivers/vdpa/octeon_ep/octep_vdpa_hw.c
> > > > @@ -475,11 +475,11 @@ int octep_hw_caps_read(struct octep_hw
> > > *oct_hw, struct pci_dev *pdev)
> > > >  		dev_err(dev, "Incomplete PCI capabilities");
> > > >  		return -EIO;
> > > >  	}
> > > > -	dev_info(dev, "common cfg mapped at: 0x%016llx\n",
> > > (u64)(uintptr_t)oct_hw->common_cfg);
> > > > -	dev_info(dev, "device cfg mapped at: 0x%016llx\n",
> > > (u64)(uintptr_t)oct_hw->dev_cfg);
> > > > -	dev_info(dev, "isr cfg mapped at: 0x%016llx\n",
> > > (u64)(uintptr_t)oct_hw->isr);
> > > > -	dev_info(dev, "notify base: 0x%016llx, notify off multiplier: %u\n",
> > > > -		 (u64)(uintptr_t)oct_hw->notify_base, oct_hw-
> > > >notify_off_multiplier);
> > > > +	dev_info(dev, "common cfg mapped at: %p\n", oct_hw-
> > > >common_cfg);
> > > > +	dev_info(dev, "device cfg mapped at: %p\n", oct_hw->dev_cfg);
> > > > +	dev_info(dev, "isr cfg mapped at: %p\n", oct_hw->isr);
> > > > +	dev_info(dev, "notify base: %p, notify off multiplier: %u\n",
> > > > +		 oct_hw->notify_base, oct_hw->notify_off_multiplier);
> > > >
> > > >  	oct_hw->config_size = octep_get_config_size(oct_hw);
> > > >  	oct_hw->features = octep_hw_get_dev_features(oct_hw);
> > > > @@ -511,7 +511,7 @@ int octep_hw_caps_read(struct octep_hw
> > > > *oct_hw,
> > > struct pci_dev *pdev)
> > > >  	}
> > > >  	mbox = octep_get_mbox(oct_hw);
> > > >  	octep_mbox_init(mbox);
> > > > -	dev_info(dev, "mbox mapped at: 0x%016llx\n",
> > > (u64)(uintptr_t)mbox);
> > > > +	dev_info(dev, "mbox mapped at: %p\n", mbox);
> > > >
> > > >  	return 0;
> > > >  }
> > > > --
> > > > 2.25.1


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

end of thread, other threads:[~2024-09-18 16:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-16 16:22 [PATCH] vdpa/octeon_ep: Fix format specifier for pointers in debug messages Srujana Challa
2024-09-16 17:41 ` Michael S. Tsirkin
2024-09-16 17:43 ` Michael S. Tsirkin
2024-09-17  5:59   ` [EXTERNAL] " Srujana Challa
2024-09-17 12:32     ` Srujana Challa
2024-09-18 14:43     ` Michael S. Tsirkin
2024-09-18 16:25       ` Srujana Challa
2024-09-16 17:43 ` Michael S. Tsirkin
2024-09-18  9:34 ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).