Skip to contentSkip to conversation

ardb/for-kernelci bisection: baseline.dmesg.alert on da850-lcdk

DISCUSSION Guillaume Tucker 3 participants 4 messages Jan 25, 2022 – Jan 26, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hello Ard,

Please see the bisection report below. I had a look around the results and git history, this is about an "alert" message which is present in mainline and linux-next but one day it disappeared on your for-kernelci branch and then it was introduced again. See the regression history here:

https://linux.kernelci.org/test/case/id/61ef9d00e75a9ac935abbd26/

The revision when it last passed was last Friday, and your branch has been force-pushed since then so I don't have access to the git history for it any more. The bisection found a revert commit that apparently re-introduced the issue, but it's all a bit confusing as this commit is not there any more but the alert message still is.

The error can be found here in the log:

https://storage.kernelci.org/ardb/for-kernelci/arm-irq-and-vmap-stacks-for-rmk-11-g12fa502217d5/arm/davinci_all_defconfig/gcc-10/lab-baylibre/baseline-da850-lcdk.html#L552

  BUG: Bad page state in process kworker/u2:0  pfn:c3000

So I'm not sure what happened, but it has highlighted this kernel bug so I guess it might be worth taking a look in case there was a commit somewhere in your tree that resolved it at some point last week. What do you think?

Thanks,
Guillaume

Quoted 141 lines · KernelCI bot

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

* This automated bisection report was sent to you on the basis  *
* that you may be involved with the breaking commit it has      *
* found.  No manual investigation has been done to verify it,   *
* and the root cause of the problem may be somewhere else.      *
*                                                               *
* If you do send a fix, please include this trailer:            *
*   Reported-by: "kernelci.org bot" <[email protected]>          *
*                                                               *
* Hope this helps!                                              *

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

ardb/for-kernelci bisection: baseline.dmesg.alert on da850-lcdk

Summary:

  Start:      ac634ca2f750 ARM: switch_to: clean up Thumb2 code path
  Plain log:  https://storage.kernelci.org/ardb/for-kernelci/v5.16-9704-gac634ca2f750/arm/davinci_all_defconfig/gcc-10/lab-baylibre/baseline-da850-lcdk.txt
  HTML log:   https://storage.kernelci.org/ardb/for-kernelci/v5.16-9704-gac634ca2f750/arm/davinci_all_defconfig/gcc-10/lab-baylibre/baseline-da850-lcdk.html
  Result:     7395d7a5fec5 Revert "usb: musb: Set the DT node on the child device"

Checks:
revert: PASS
verify: PASS

Parameters:

  Tree:       ardb
  URL:        https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git
  Branch:     for-kernelci
  Target:     da850-lcdk
  CPU arch:   arm
  Lab:        lab-baylibre
  Compiler:   gcc-10
  Config:     davinci_all_defconfig
  Test case:  baseline.dmesg.alert

Breaking commit found:

-------------------------------------------------------------------------------
commit 7395d7a5fec55b99263d476e733c167dbcaf0525

Author: Ard Biesheuvel <[email protected]>
Date:   Sat Jan 15 17:57:52 2022 +0100

Revert "usb: musb: Set the DT node on the child device"

This reverts commit cf081d009c447647c6b36aced535ca427dbebe72.

drivers/usb/musb/am35x.c +0 -2
index bf2c0fa6cb32..660641ab1545 100644
@@ -500,8 +500,6 @@ static int am35x_probe(struct platform_device *pdev)
 	pinfo.num_res = pdev->num_resources;
 	pinfo.data = pdata;
 	pinfo.size_data = sizeof(*pdata);
-	pinfo.fwnode = of_fwnode_handle(pdev->dev.of_node);
-	pinfo.of_node_reused = true;
 
 	glue->musb = musb = platform_device_register_full(&pinfo);
 	if (IS_ERR(musb)) {
drivers/usb/musb/da8xx.c +0 -2
index fd4ae2dd24e5..e4e0195131da 100644
@@ -563,8 +563,6 @@ static int da8xx_probe(struct platform_device *pdev)
 	pinfo.num_res = pdev->num_resources;
 	pinfo.data = pdata;
 	pinfo.size_data = sizeof(*pdata);
-	pinfo.fwnode = of_fwnode_handle(np);
-	pinfo.of_node_reused = true;
 
 	glue->musb = platform_device_register_full(&pinfo);
 	ret = PTR_ERR_OR_ZERO(glue->musb);
drivers/usb/musb/jz4740.c +0 -1
index 417c30bff9ca..5b7d576bf6ee 100644
@@ -231,7 +231,6 @@ static int jz4740_probe(struct platform_device *pdev)
 	musb->dev.parent		= dev;
 	musb->dev.dma_mask		= &musb->dev.coherent_dma_mask;
 	musb->dev.coherent_dma_mask	= DMA_BIT_MASK(32);
-	device_set_of_node_from_dev(&musb->dev, dev);
 
 	glue->pdev			= musb;
 	glue->clk			= clk;
drivers/usb/musb/mediatek.c +0 -2
index 1aeb34dbe24f..f5d97eb84cb5 100644
@@ -538,8 +538,6 @@ static int mtk_musb_probe(struct platform_device *pdev)
 	pinfo.num_res = pdev->num_resources;
 	pinfo.data = pdata;
 	pinfo.size_data = sizeof(*pdata);
-	pinfo.fwnode = of_fwnode_handle(np);
-	pinfo.of_node_reused = true;
 
 	glue->musb_pdev = platform_device_register_full(&pinfo);
 	if (IS_ERR(glue->musb_pdev)) {
drivers/usb/musb/omap2430.c +0 -1
index 7d4d0713f4f0..d2b7e613eb34 100644
@@ -327,7 +327,6 @@ static int omap2430_probe(struct platform_device *pdev)
 	musb->dev.parent		= &pdev->dev;
 	musb->dev.dma_mask		= &omap2430_dmamask;
 	musb->dev.coherent_dma_mask	= omap2430_dmamask;
-	device_set_of_node_from_dev(&musb->dev, &pdev->dev);
 
 	glue->dev			= &pdev->dev;
 	glue->musb			= musb;
drivers/usb/musb/ux500.c +0 -2
index 8ea62c344328..9bce19b5ffd7 100644
@@ -262,7 +262,6 @@ static int ux500_probe(struct platform_device *pdev)
 	musb->dev.parent		= &pdev->dev;
 	musb->dev.dma_mask		= &pdev->dev.coherent_dma_mask;
 	musb->dev.coherent_dma_mask	= pdev->dev.coherent_dma_mask;
-	device_set_of_node_from_dev(&musb->dev, &pdev->dev);
 
 	glue->dev			= &pdev->dev;
 	glue->musb			= musb;
-------------------------------------------------------------------------------

Git bisection log:

-------------------------------------------------------------------------------
git bisect start
# good: [1df6e064cf9e15ed39703b2fd087f4a7aaa30180] mm: make 'highmem' symbol ro_after_init git bisect good 1df6e064cf9e15ed39703b2fd087f4a7aaa30180
# bad: [ac634ca2f750618d79257c126f4e00ef24de2565] ARM: switch_to: clean up Thumb2 code path git bisect bad ac634ca2f750618d79257c126f4e00ef24de2565
# bad: [7395d7a5fec55b99263d476e733c167dbcaf0525] Revert "usb: musb: Set the DT node on the child device" git bisect bad 7395d7a5fec55b99263d476e733c167dbcaf0525

# first bad commit: [7395d7a5fec55b99263d476e733c167dbcaf0525] Revert "usb: musb: Set the DT node on the child device"
-------------------------------------------------------------------------------
#2 lore raw

(adding Arnd and Rob)

Quoted 20 lines · Guillaume Tucker

Hello Ard,

Please see the bisection report below. I had a look around the results and git history, this is about an "alert" message which is present in mainline and linux-next but one day it disappeared on your for-kernelci branch and then it was introduced again. See the regression history here:

https://linux.kernelci.org/test/case/id/61ef9d00e75a9ac935abbd26/

The revision when it last passed was last Friday, and your branch has been force-pushed since then so I don't have access to the git history for it any more. The bisection found a revert commit that apparently re-introduced the issue, but it's all a bit confusing as this commit is not there any more but the alert message still is.

The error can be found here in the log:

Quoted 9 lines

https://storage.kernelci.org/ardb/for-kernelci/arm-irq-and-vmap-stacks-for-rmk-11-g12fa502217d5/arm/davinci_all_defconfig/gcc-10/lab-baylibre/baseline-da850-lcdk.html#L552

  BUG: Bad page state in process kworker/u2:0  pfn:c3000

So I'm not sure what happened, but it has highlighted this kernel bug so I guess it might be worth taking a look in case there was a commit somewhere in your tree that resolved it at some point last week. What do you think?

This may be related to a known problem regarding infinite recursion on some DT nodes related to USB devices: Arnd or Rob would know more about this.

At some point, my pending vmap'ed stacks code managed to catch this but IIRC, the boot was still marked as a failure. I can't quite explain why it no longer catches it, but this could be related to the swapper stack not being vmap'ed.

I don't think the revert I attempted below actually helped though.

Quoted 145 lines · KernelCI bot
Quoted 141 lines

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

* This automated bisection report was sent to you on the basis  *
* that you may be involved with the breaking commit it has      *
* found.  No manual investigation has been done to verify it,   *
* and the root cause of the problem may be somewhere else.      *
*                                                               *
* If you do send a fix, please include this trailer:            *
*   Reported-by: "kernelci.org bot" <[email protected]>          *
*                                                               *
* Hope this helps!                                              *

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

ardb/for-kernelci bisection: baseline.dmesg.alert on da850-lcdk

Summary:

  Start:      ac634ca2f750 ARM: switch_to: clean up Thumb2 code path
  Plain log:  https://storage.kernelci.org/ardb/for-kernelci/v5.16-9704-gac634ca2f750/arm/davinci_all_defconfig/gcc-10/lab-baylibre/baseline-da850-lcdk.txt
  HTML log:   https://storage.kernelci.org/ardb/for-kernelci/v5.16-9704-gac634ca2f750/arm/davinci_all_defconfig/gcc-10/lab-baylibre/baseline-da850-lcdk.html
  Result:     7395d7a5fec5 Revert "usb: musb: Set the DT node on the child device"

Checks:
revert: PASS
verify: PASS

Parameters:

  Tree:       ardb
  URL:        https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git
  Branch:     for-kernelci
  Target:     da850-lcdk
  CPU arch:   arm
  Lab:        lab-baylibre
  Compiler:   gcc-10
  Config:     davinci_all_defconfig
  Test case:  baseline.dmesg.alert

Breaking commit found:

-------------------------------------------------------------------------------
commit 7395d7a5fec55b99263d476e733c167dbcaf0525

Author: Ard Biesheuvel <[email protected]>
Date:   Sat Jan 15 17:57:52 2022 +0100

Revert "usb: musb: Set the DT node on the child device"

This reverts commit cf081d009c447647c6b36aced535ca427dbebe72.

drivers/usb/musb/am35x.c +0 -2
index bf2c0fa6cb32..660641ab1545 100644
@@ -500,8 +500,6 @@ static int am35x_probe(struct platform_device *pdev)
      pinfo.num_res = pdev->num_resources;
      pinfo.data = pdata;
      pinfo.size_data = sizeof(*pdata);
-     pinfo.fwnode = of_fwnode_handle(pdev->dev.of_node);
-     pinfo.of_node_reused = true;
 
      glue->musb = musb = platform_device_register_full(&pinfo);
      if (IS_ERR(musb)) {
drivers/usb/musb/da8xx.c +0 -2
index fd4ae2dd24e5..e4e0195131da 100644
@@ -563,8 +563,6 @@ static int da8xx_probe(struct platform_device *pdev)
      pinfo.num_res = pdev->num_resources;
      pinfo.data = pdata;
      pinfo.size_data = sizeof(*pdata);
-     pinfo.fwnode = of_fwnode_handle(np);
-     pinfo.of_node_reused = true;
 
      glue->musb = platform_device_register_full(&pinfo);
      ret = PTR_ERR_OR_ZERO(glue->musb);
drivers/usb/musb/jz4740.c +0 -1
index 417c30bff9ca..5b7d576bf6ee 100644
@@ -231,7 +231,6 @@ static int jz4740_probe(struct platform_device *pdev)
      musb->dev.parent                = dev;
      musb->dev.dma_mask              = &musb->dev.coherent_dma_mask;
      musb->dev.coherent_dma_mask     = DMA_BIT_MASK(32);
-     device_set_of_node_from_dev(&musb->dev, dev);
 
      glue->pdev                      = musb;
      glue->clk                       = clk;
drivers/usb/musb/mediatek.c +0 -2
index 1aeb34dbe24f..f5d97eb84cb5 100644
@@ -538,8 +538,6 @@ static int mtk_musb_probe(struct platform_device *pdev)
      pinfo.num_res = pdev->num_resources;
      pinfo.data = pdata;
      pinfo.size_data = sizeof(*pdata);
-     pinfo.fwnode = of_fwnode_handle(np);
-     pinfo.of_node_reused = true;
 
      glue->musb_pdev = platform_device_register_full(&pinfo);
      if (IS_ERR(glue->musb_pdev)) {
drivers/usb/musb/omap2430.c +0 -1
index 7d4d0713f4f0..d2b7e613eb34 100644
@@ -327,7 +327,6 @@ static int omap2430_probe(struct platform_device *pdev)
      musb->dev.parent                = &pdev->dev;
      musb->dev.dma_mask              = &omap2430_dmamask;
      musb->dev.coherent_dma_mask     = omap2430_dmamask;
-     device_set_of_node_from_dev(&musb->dev, &pdev->dev);
 
      glue->dev                       = &pdev->dev;
      glue->musb                      = musb;
drivers/usb/musb/ux500.c +0 -2
index 8ea62c344328..9bce19b5ffd7 100644
@@ -262,7 +262,6 @@ static int ux500_probe(struct platform_device *pdev)
      musb->dev.parent                = &pdev->dev;
      musb->dev.dma_mask              = &pdev->dev.coherent_dma_mask;
      musb->dev.coherent_dma_mask     = pdev->dev.coherent_dma_mask;
-     device_set_of_node_from_dev(&musb->dev, &pdev->dev);
 
      glue->dev                       = &pdev->dev;
      glue->musb                      = musb;
-------------------------------------------------------------------------------

Git bisection log:

-------------------------------------------------------------------------------
git bisect start
# good: [1df6e064cf9e15ed39703b2fd087f4a7aaa30180] mm: make 'highmem' symbol ro_after_init git bisect good 1df6e064cf9e15ed39703b2fd087f4a7aaa30180
# bad: [ac634ca2f750618d79257c126f4e00ef24de2565] ARM: switch_to: clean up Thumb2 code path git bisect bad ac634ca2f750618d79257c126f4e00ef24de2565
# bad: [7395d7a5fec55b99263d476e733c167dbcaf0525] Revert "usb: musb: Set the DT node on the child device" git bisect bad 7395d7a5fec55b99263d476e733c167dbcaf0525

# first bad commit: [7395d7a5fec55b99263d476e733c167dbcaf0525] Revert "usb: musb: Set the DT node on the child device"
-------------------------------------------------------------------------------
#3 lore raw
Quoted 35 lines · Ard Biesheuvel

(adding Arnd and Rob)

Quoted 20 lines · Guillaume Tucker

Hello Ard,

Please see the bisection report below. I had a look around the results and git history, this is about an "alert" message which is present in mainline and linux-next but one day it disappeared on your for-kernelci branch and then it was introduced again. See the regression history here:

https://linux.kernelci.org/test/case/id/61ef9d00e75a9ac935abbd26/

The revision when it last passed was last Friday, and your branch has been force-pushed since then so I don't have access to the git history for it any more. The bisection found a revert commit that apparently re-introduced the issue, but it's all a bit confusing as this commit is not there any more but the alert message still is.

The error can be found here in the log:

Quoted 9 lines

https://storage.kernelci.org/ardb/for-kernelci/arm-irq-and-vmap-stacks-for-rmk-11-g12fa502217d5/arm/davinci_all_defconfig/gcc-10/lab-baylibre/baseline-da850-lcdk.html#L552

  BUG: Bad page state in process kworker/u2:0  pfn:c3000

So I'm not sure what happened, but it has highlighted this kernel bug so I guess it might be worth taking a look in case there was a commit somewhere in your tree that resolved it at some point last week. What do you think?

Quoted 3 lines

This may be related to a known problem regarding infinite recursion on some DT nodes related to USB devices: Arnd or Rob would know more about this.

That should be fixed in rc1. Commit 9b22c17a3cc5 ("of: Check 'of_node_reused' flag on of_match_device()").

Rob

#4 lore raw
Quoted 36 lines · Rob Herring
Quoted 35 lines · Ard Biesheuvel

(adding Arnd and Rob)

Quoted 29 lines · Guillaume Tucker

Hello Ard,

Please see the bisection report below. I had a look around the results and git history, this is about an "alert" message which is present in mainline and linux-next but one day it disappeared on your for-kernelci branch and then it was introduced again. See the regression history here:

https://linux.kernelci.org/test/case/id/61ef9d00e75a9ac935abbd26/

The revision when it last passed was last Friday, and your branch has been force-pushed since then so I don't have access to the git history for it any more. The bisection found a revert commit that apparently re-introduced the issue, but it's all a bit confusing as this commit is not there any more but the alert message still is.

The error can be found here in the log:

https://storage.kernelci.org/ardb/for-kernelci/arm-irq-and-vmap-stacks-for-rmk-11-g12fa502217d5/arm/davinci_all_defconfig/gcc-10/lab-baylibre/baseline-da850-lcdk.html#L552

  BUG: Bad page state in process kworker/u2:0  pfn:c3000

So I'm not sure what happened, but it has highlighted this kernel bug so I guess it might be worth taking a look in case there was a commit somewhere in your tree that resolved it at some point last week. What do you think?

Quoted 6 lines
Quoted 3 lines

This may be related to a known problem regarding infinite recursion on some DT nodes related to USB devices: Arnd or Rob would know more about this.

That should be fixed in rc1. Commit 9b22c17a3cc5 ("of: Check 'of_node_reused' flag on of_match_device()").

Well the particular issue with the BUG message on da850-lcdk is still there in v5.17-rc1:

https://linux.kernelci.org/test/case/id/61ed2891c2717f210aabbd69/

So it doesn't look like there's a trivial solution to this in Ard's tree. I believe this issue has been around for a while, so we'll add it to the list of kernel bugs detected by KernelCI and it might be something someone will want to fix one day.

Thanks,
Guillaume