ardb/for-kernelci bisection: baseline.dmesg.alert on da850-lcdk
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:
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: PASSParameters:
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.alertBreaking commit found:
-------------------------------------------------------------------------------
commit7395d7a5fec55b99263d476e733c167dbcaf0525Author: Ard Biesheuvel <[email protected]> Date: Sat Jan 15 17:57:52 2022 +0100Revert "usb: musb: Set the DT node on the child device"
This reverts commit
cf081d009c447647c6b36aced535ca427dbebe72.drivers/usb/musb/am35x.c +0
-2@@ -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@@ -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@@ -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@@ -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@@ -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@@ -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' symbolro_after_initgit bisect good1df6e064cf9e15ed39703b2fd087f4a7aaa30180
# bad: [ac634ca2f750618d79257c126f4e00ef24de2565] ARM:switch_to: clean up Thumb2 code path git bisect badac634ca2f750618d79257c126f4e00ef24de2565
# bad: [7395d7a5fec55b99263d476e733c167dbcaf0525] Revert "usb: musb: Set the DT node on the child device" git bisect bad7395d7a5fec55b99263d476e733c167dbcaf0525# first bad commit: [7395d7a5fec55b99263d476e733c167dbcaf0525] Revert "usb: musb: Set the DT node on the child device" -------------------------------------------------------------------------------
(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
BUG: Bad page state in process kworker/u2:0 pfn:c3000So 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: PASSParameters:
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.alertBreaking commit found:
-------------------------------------------------------------------------------
commit7395d7a5fec55b99263d476e733c167dbcaf0525Author: Ard Biesheuvel <[email protected]> Date: Sat Jan 15 17:57:52 2022 +0100Revert "usb: musb: Set the DT node on the child device"
This reverts commit
cf081d009c447647c6b36aced535ca427dbebe72.drivers/usb/musb/am35x.c +0
-2@@ -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@@ -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@@ -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@@ -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@@ -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@@ -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' symbolro_after_initgit bisect good1df6e064cf9e15ed39703b2fd087f4a7aaa30180
# bad: [ac634ca2f750618d79257c126f4e00ef24de2565] ARM:switch_to: clean up Thumb2 code path git bisect badac634ca2f750618d79257c126f4e00ef24de2565
# bad: [7395d7a5fec55b99263d476e733c167dbcaf0525] Revert "usb: musb: Set the DT node on the child device" git bisect bad7395d7a5fec55b99263d476e733c167dbcaf0525# first bad commit: [7395d7a5fec55b99263d476e733c167dbcaf0525] Revert "usb: musb: Set the DT node on the child device" -------------------------------------------------------------------------------
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
BUG: Bad page state in process kworker/u2:0 pfn:c3000So 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
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:
BUG: Bad page state in process kworker/u2:0 pfn:c3000So 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 onof_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