Skip to contentSkip to conversation

soc: fsl: qbman: Remove redundant warnings

PATCH In review Xiaolei Wang 2 participants 5 messages Aug 2, 2024 – Sep 3, 2024 Freescale SoC drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 soc: fsl: qbman: Remove redundant warnings

RESERVEDMEM_OF_DECLARE usage has been removed. For non-popwerpc platforms, such as ls1043, this warning is redundant. ls1043 itself uses shared-dma-mem.

Fixes 3e62273ac63a ("soc: fsl: qbman: Remove RESERVEDMEM_OF_DECLARE usage")
---
 drivers/soc/fsl/qbman/qman_ccsr.c | 2 --
 1 file changed, 2 deletions(-)
drivers/soc/fsl/qbman/qman_ccsr.c +0 -2
index 392e54f14dbe..aa5348f4902f 100644
@@ -791,8 +791,6 @@ static int fsl_qman_probe(struct platform_device *pdev)
 	 * FQD memory MUST be zero'd by software
 	 */
 	zero_priv_mem(fqd_a, fqd_sz);
-#else
-	WARN(1, "Unexpected architecture using non shared-dma-mem reservations");
 #endif
 	dev_dbg(dev, "Allocated FQD 0x%llx 0x%zx\n", fqd_a, fqd_sz);
 
Signature · 1 line
2.25.1
#1 lore raw

ping

Thanks
Xiaolei

获取 Outlook for iOS<https://aka.ms/o0ukef>
________________________________
发件人: Wang, Xiaolei
发送时间: Friday, August 2, 2024 10:17:17 AM
收件人: [email protected] <[email protected]>; [email protected] <[email protected]>
抄送: [email protected] <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]> 主题: [PATCH] soc: fsl: qbman: Remove redundant warnings

RESERVEDMEM_OF_DECLARE usage has been removed. For non-popwerpc platforms, such as ls1043, this warning is redundant. ls1043 itself uses shared-dma-mem.

Fixes 3e62273ac63a ("soc: fsl: qbman: Remove RESERVEDMEM_OF_DECLARE usage")
---
 drivers/soc/fsl/qbman/qman_ccsr.c | 2 --
 1 file changed, 2 deletions(-)
drivers/soc/fsl/qbman/qman_ccsr.c +0 -2
index 392e54f14dbe..aa5348f4902f 100644
@@ -791,8 +791,6 @@ static int fsl_qman_probe(struct platform_device *pdev)
          * FQD memory MUST be zero'd by software
          */
         zero_priv_mem(fqd_a, fqd_sz);
-#else
-       WARN(1, "Unexpected architecture using non shared-dma-mem reservations");
 #endif
         dev_dbg(dev, "Allocated FQD 0x%llx 0x%zx\n", fqd_a, fqd_sz);
 

--
2.25.1

#2 lore raw
In reply to Xiaolei Wang

Hi,

Le 02/08/2024 à 04:16, Xiaolei Wang a écrit :

Quoted 5 lines

[Vous ne recevez pas souvent de courriers de [email protected]. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]

RESERVEDMEM_OF_DECLARE usage has been removed. For non-popwerpc platforms, such as ls1043, this warning is redundant. ls1043 itself uses shared-dma-mem.

Can you please explain in more details ? I don't understand what it is redundant with.

Thanks
Christophe

Quoted 23 lines
Fixes 3e62273ac63a ("soc: fsl: qbman: Remove RESERVEDMEM_OF_DECLARE usage")
---
  drivers/soc/fsl/qbman/qman_ccsr.c | 2 --
  1 file changed, 2 deletions(-)
drivers/soc/fsl/qbman/qman_ccsr.c +0 -3
index 392e54f14dbe..aa5348f4902f 100644
@@ -791,8 +791,6 @@ static int fsl_qman_probe(struct platform_device *pdev)
          * FQD memory MUST be zero'd by software
          */
         zero_priv_mem(fqd_a, fqd_sz);
-#else
-       WARN(1, "Unexpected architecture using non shared-dma-mem reservations");
  #endif
         dev_dbg(dev, "Allocated FQD 0x%llx 0x%zx\n", fqd_a, fqd_sz);
 
--

2.25.1

#3 lore raw
Quoted 6 lines · Christophe Leroy

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

Hi,

Le 02/08/2024 à 04:16, Xiaolei Wang a écrit :

Quoted 8 lines
Quoted 5 lines

[Vous ne recevez pas souvent de courriers de [email protected]. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]

RESERVEDMEM_OF_DECLARE usage has been removed. For non-popwerpc platforms, such as ls1043, this warning is redundant. ls1043 itself uses shared-dma-mem.

Can you please explain in more details ? I don't understand what it is redundant with.

commit 07f86917a450 used shared-dma-pool for QMan private memory allocations and

added this warning, but this is only for non-PPC platforms and using non shared-dma-mem

reservations. However, for non-PPC platforms, commit 3e62273ac63a will output a warning anyway.

At the same time, ls1043 already uses shared-dma-mem, so is this warning still necessary?

thanks

xiaolei

Quoted 29 lines

Thanks
Christophe

Quoted 25 lines
Fixes 3e62273ac63a ("soc: fsl: qbman: Remove RESERVEDMEM_OF_DECLARE usage")

---
  drivers/soc/fsl/qbman/qman_ccsr.c | 2 --

  1 file changed, 2 deletions(-)
drivers/soc/fsl/qbman/qman_ccsr.c +0 -2
index 392e54f14dbe..aa5348f4902f 100644
@@ -791,8 +791,6 @@ static int fsl_qman_probe(struct platform_device 
 *pdev)
           * FQD memory MUST be zero'd by software
           */
          zero_priv_mem(fqd_a, fqd_sz);
-#else
-       WARN(1, "Unexpected architecture using non shared-dma-mem 
 reservations");
   #endif

         dev_dbg(dev, "Allocated FQD 0x%llx 0x%zx\n", fqd_a, fqd_sz);

Signature · 1 line
2.25.1
#4 lore raw
In reply to Xiaolei Wang

Le 02/08/2024 à 04:16, Xiaolei Wang a écrit :

Quoted 26 lines

[Vous ne recevez pas souvent de courriers de [email protected]. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ]

RESERVEDMEM_OF_DECLARE usage has been removed. For non-popwerpc platforms, such as ls1043, this warning is redundant. ls1043 itself uses shared-dma-mem.

Fixes 3e62273ac63a ("soc: fsl: qbman: Remove RESERVEDMEM_OF_DECLARE usage")
---
  drivers/soc/fsl/qbman/qman_ccsr.c | 2 --
  1 file changed, 2 deletions(-)
drivers/soc/fsl/qbman/qman_ccsr.c +0 -3
index 392e54f14dbe..aa5348f4902f 100644
@@ -791,8 +791,6 @@ static int fsl_qman_probe(struct platform_device *pdev)
          * FQD memory MUST be zero'd by software
          */
         zero_priv_mem(fqd_a, fqd_sz);
-#else
-       WARN(1, "Unexpected architecture using non shared-dma-mem reservations");
  #endif
         dev_dbg(dev, "Allocated FQD 0x%llx 0x%zx\n", fqd_a, fqd_sz);
 
--
Quoted 2 lines

2.25.1

Applied for 6.12

Thanks
Christophe