drm/exynos: resolve infinite loop issue on multi-platform
Subsystems (3)
Inki Dae
maintainerPATCH 1/1 drm/exynos: resolve infinite loop issue on multi-platform
This patch resolves temporarily infinite loop issue incurred when Exynos drm driver is enabled and multi-platform kernel is used by registering Exynos drm device object only in case of Exynos SoC. So this patch will be replaced with more generic way later.
--- drivers/gpu/drm/exynos/exynos_drm_drv.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)
drivers/gpu/drm/exynos/exynos_drm_drv.c +12 -0
@@ -734,6 +734,18 @@ static int exynos_drm_init(void) {int ret; +/* +* Register device object only in case of Exynos SoC. +* +* Below codes resolves temporarily infinite loop issue incurred +* by Exynos drm driver when using multi-platform kernel. +* So these codes will be replaced with more generic way later. +*/ +if (!of_machine_is_compatible ("samsung,exynos3" ) && + !of_machine_is_compatible ("samsung,exynos4" ) && + !of_machine_is_compatible ("samsung,exynos5" )) +return -ENODEV ; + exynos_drm_pdev =platform_device_register_simple ("exynos-drm" ,-1 ,NULL ,0 );if (IS_ERR (exynos_drm_pdev))
Signature · 6 lines
1.7.9.5 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 5 lines · Inki Dae
This patch resolves temporarily infinite loop issue incurred when Exynos drm driver is enabled and multi-platform kernel is used by registering Exynos drm device object only in case of Exynos SoC. So this patch will be replaced with more generic way later.
Does not help for Rinato board.
On Rinato:
-----------------------
Failed to find PMU node
Registering SWP/SWPB emulation handler
mmc0: BKOPS_EN bit is not setmmc_host mmc0: Bus speed (slot 0) = 100000000Hz (slot req 100000000Hz, actual 100000000HZ div = 0)
exynos-drm-ipp exynos-drm-ipp: drm ipp registered successfully.
mmc0: new HS200 MMC card at address 0001
platform exynos-drm: Driver exynos-drm requests probe deferral
mmcblk0: mmc0:0001 F5X5MA 3.64 GiB
mmcblk0boot0: mmc0:0001 F5X5MA partition 1 4.00 MiB exynos-drm-ipp exynos-drm-ipp: drm ipp registered successfully.
mmcblk0boot1: mmc0:0001 F5X5MA partition 2 4.00 MiB platform exynos-drm: Driver exynos-drm requests probe deferral
mmcblk0rpmb: mmc0:0001 F5X5MA partition 3 512 KiB exynos-drm-ipp exynos-drm-ipp: drm ipp registered successfully. platform exynos-drm: Driver exynos-drm requests probe deferral
mmcblk0: p1 p2 p3 p4 p5 p6 p7
exynos-drm-ipp exynos-drm-ipp: drm ipp registered successfully. platform exynos-drm: Driver exynos-drm requests probe deferral exynos-drm-ipp exynos-drm-ipp: drm ipp registered successfully. platform exynos-drm: Driver exynos-drm requests probe deferral
and so on...
-----------------------
I do not know whether it is related but Trats2 board cannot boot due to lockup after:
[drm] Initialized drm 1.1.0 20060810
(with or without the patch)
https://lkml.org/lkml/2014/11/6/125
Best regards,
Krzysztof
Quoted 30 lines
Signed-off-by Inki Dae <[email protected]>--- drivers/gpu/drm/exynos/exynos_drm_drv.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)drivers/gpu/drm/exynos/exynos_drm_drv.c +12
-0@@ -734,6 +734,18 @@ static int exynos_drm_init(void) {int ret; +/* +* Register device object only in case of Exynos SoC. +* +* Below codes resolves temporarily infinite loop issue incurred +* by Exynos drm driver when using multi-platform kernel. +* So these codes will be replaced with more generic way later. +*/ +if (!of_machine_is_compatible ("samsung,exynos3" ) && + !of_machine_is_compatible ("samsung,exynos4" ) && + !of_machine_is_compatible ("samsung,exynos5" )) +return -ENODEV ; + exynos_drm_pdev =platform_device_register_simple ("exynos-drm" ,-1 ,NULL ,0 );if (IS_ERR (exynos_drm_pdev))
Inki Dae
maintainerQuoted 33 lines · Krzysztof Kozłowski
Quoted 5 lines · Inki Dae
This patch resolves temporarily infinite loop issue incurred when Exynos drm driver is enabled and multi-platform kernel is used by registering Exynos drm device object only in case of Exynos SoC. So this patch will be replaced with more generic way later.
Does not help for Rinato board.
On Rinato:
-----------------------
Failed to find PMU node
Registering SWP/SWPB emulation handler
mmc0:BKOPS_ENbit is not setmmc_hostmmc0: Bus speed (slot 0) = 100000000Hz (slot req 100000000Hz, actual 100000000HZ div = 0)
exynos-drm-ipp exynos-drm-ipp: drm ipp registered successfully.
mmc0: new HS200 MMC card at address 0001
platform exynos-drm: Driver exynos-drm requests probe deferral
mmcblk0: mmc0:0001 F5X5MA 3.64 GiB
mmcblk0boot0: mmc0:0001 F5X5MA partition 1 4.00 MiB exynos-drm-ipp exynos-drm-ipp: drm ipp registered successfully.
mmcblk0boot1: mmc0:0001 F5X5MA partition 2 4.00 MiB platform exynos-drm: Driver exynos-drm requests probe deferral
mmcblk0rpmb: mmc0:0001 F5X5MA partition 3 512 KiB exynos-drm-ipp exynos-drm-ipp: drm ipp registered successfully. platform exynos-drm: Driver exynos-drm requests probe deferral
mmcblk0: p1 p2 p3 p4 p5 p6 p7
exynos-drm-ipp exynos-drm-ipp: drm ipp registered successfully. platform exynos-drm: Driver exynos-drm requests probe deferral exynos-drm-ipp exynos-drm-ipp: drm ipp registered successfully. platform exynos-drm: Driver exynos-drm requests probe deferral
Quoted 2 lines
and so on...
-----------------------
Can you show me compatible string placed on top of exynos3250-rinato.dts file? If the compatible has "samsung,exynos3" it should be no problem with this patch. And the rinato dts file we posted to mainline has the compatible string.
Quoted 7 lines
I do not know whether it is related but Trats2 board cannot boot due to lockup after:
[drm] Initialized drm 1.1.0 20060810
(with or without the patch)
https://lkml.org/lkml/2014/11/6/125
hmm... it's strange because my trats2 board works well with this patch. Which kernel did you test? And how can I reproduce above lockup?
Thanks,
Inki Dae
Quoted 30 lines
Best regards,
KrzysztofQuoted 27 lines
Signed-off-by Inki Dae <[email protected]>--- drivers/gpu/drm/exynos/exynos_drm_drv.c | 12 ++++++++++++ 1 file changed, 12 insertions(+)drivers/gpu/drm/exynos/exynos_drm_drv.c +12
-0@@ -734,6 +734,18 @@ static int exynos_drm_init(void) {int ret; +/* +* Register device object only in case of Exynos SoC. +* +* Below codes resolves temporarily infinite loop issue incurred +* by Exynos drm driver when using multi-platform kernel. +* So these codes will be replaced with more generic way later. +*/ +if (!of_machine_is_compatible ("samsung,exynos3" ) && + !of_machine_is_compatible ("samsung,exynos4" ) && + !of_machine_is_compatible ("samsung,exynos5" )) +return -ENODEV ; + exynos_drm_pdev = platform_device_register_simple("exynos-drm", -1,
Quoted 9 lines
drivers/gpu/drm/exynos/exynos_drm_drv.c static int exynos_drm_init(void) · line 751
Quoted 3 lines
drivers/gpu/drm/exynos/exynos_drm_drv.c +0
-0NULL, 0);if (IS_ERR (exynos_drm_pdev))--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 34 lines · Inki Dae
Quoted 33 lines · Krzysztof Kozłowski
Quoted 5 lines · Inki Dae
This patch resolves temporarily infinite loop issue incurred when Exynos drm driver is enabled and multi-platform kernel is used by registering Exynos drm device object only in case of Exynos SoC. So this patch will be replaced with more generic way later.
Does not help for Rinato board.
On Rinato:
-----------------------
Failed to find PMU node
Registering SWP/SWPB emulation handler
mmc0:BKOPS_ENbit is not setmmc_hostmmc0: Bus speed (slot 0) = 100000000Hz (slot req 100000000Hz, actual 100000000HZ div = 0)
exynos-drm-ipp exynos-drm-ipp: drm ipp registered successfully.
mmc0: new HS200 MMC card at address 0001
platform exynos-drm: Driver exynos-drm requests probe deferral
mmcblk0: mmc0:0001 F5X5MA 3.64 GiB
mmcblk0boot0: mmc0:0001 F5X5MA partition 1 4.00 MiB exynos-drm-ipp exynos-drm-ipp: drm ipp registered successfully.
mmcblk0boot1: mmc0:0001 F5X5MA partition 2 4.00 MiB platform exynos-drm: Driver exynos-drm requests probe deferral
mmcblk0rpmb: mmc0:0001 F5X5MA partition 3 512 KiB exynos-drm-ipp exynos-drm-ipp: drm ipp registered successfully. platform exynos-drm: Driver exynos-drm requests probe deferral
mmcblk0: p1 p2 p3 p4 p5 p6 p7
exynos-drm-ipp exynos-drm-ipp: drm ipp registered successfully. platform exynos-drm: Driver exynos-drm requests probe deferral exynos-drm-ipp exynos-drm-ipp: drm ipp registered successfully. platform exynos-drm: Driver exynos-drm requests probe deferral
Quoted 7 lines
Quoted 2 lines
and so on...
-----------------------Can you show me compatible string placed on top of
exynos3250-rinato.dtsfile? If the compatible has "samsung,exynos3" it should be no problem with this patch. And the rinato dts file we posted to mainline has the compatible string.
model = "Samsung Rinato board";
compatible = "samsung,rinato-rev05", "samsung,exynos3250", "samsung,exynos3";
The problem is "samsung,exynos3" because the patch solves only issue on multiplatform kernel run on non-exynos board. It does not solve the problem on exynos board with DRM enabled but without all drivers.
Quoted 10 lines
Quoted 7 lines
I do not know whether it is related but Trats2 board cannot boot due to lockup after:
[drm] Initialized drm 1.1.0 20060810
(with or without the patch)
https://lkml.org/lkml/2014/11/6/125hmm... it's strange because my trats2 board works well with this patch. Which kernel did you test? And how can I reproduce above lockup?
Just boot up next-2014110{456} with kernel config attached in mentioned email.
Best regards,
Krzysztof
Inki Dae
maintainerQuoted 43 lines · Krzysztof Kozlowski
Quoted 34 lines · Inki Dae
Quoted 33 lines · Krzysztof Kozłowski
Quoted 5 lines · Inki Dae
This patch resolves temporarily infinite loop issue incurred when Exynos drm driver is enabled and multi-platform kernel is used by registering Exynos drm device object only in case of Exynos SoC. So this patch will be replaced with more generic way later.
Does not help for Rinato board.
On Rinato:
-----------------------
Failed to find PMU node
Registering SWP/SWPB emulation handler
mmc0:BKOPS_ENbit is not setmmc_hostmmc0: Bus speed (slot 0) = 100000000Hz (slot req 100000000Hz, actual 100000000HZ div = 0)
exynos-drm-ipp exynos-drm-ipp: drm ipp registered successfully.
mmc0: new HS200 MMC card at address 0001
platform exynos-drm: Driver exynos-drm requests probe deferral
mmcblk0: mmc0:0001 F5X5MA 3.64 GiB
mmcblk0boot0: mmc0:0001 F5X5MA partition 1 4.00 MiB exynos-drm-ipp exynos-drm-ipp: drm ipp registered successfully.
mmcblk0boot1: mmc0:0001 F5X5MA partition 2 4.00 MiB platform exynos-drm: Driver exynos-drm requests probe deferral
mmcblk0rpmb: mmc0:0001 F5X5MA partition 3 512 KiB exynos-drm-ipp exynos-drm-ipp: drm ipp registered successfully. platform exynos-drm: Driver exynos-drm requests probe deferral
mmcblk0: p1 p2 p3 p4 p5 p6 p7
exynos-drm-ipp exynos-drm-ipp: drm ipp registered successfully. platform exynos-drm: Driver exynos-drm requests probe deferral exynos-drm-ipp exynos-drm-ipp: drm ipp registered successfully. platform exynos-drm: Driver exynos-drm requests probe deferralQuoted 7 lines
Quoted 2 lines
and so on...
-----------------------Can you show me compatible string placed on top of
exynos3250-rinato.dtsfile? If the compatible has "samsung,exynos3" it should be no problem with this patch. And the rinato dts file we posted to mainline has the compatible string.
Quoted 8 lines
model = "Samsung Rinato board";
compatible = "samsung,rinato-rev05", "samsung,exynos3250", "samsung,exynos3";The problem is "samsung,exynos3" because the patch solves only issue on multiplatform kernel run on non-exynos board. It does not solve the problem on exynos board with DRM enabled but without all drivers.
Right, if you disabled all kms drivers and enabled only non-kms drivers then the infinite loop will occur. However, this should be handled in separated issue because without this patch, same issue will occur.
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines
I do not know whether it is related but Trats2 board cannot boot due to lockup after:
[drm] Initialized drm 1.1.0 20060810
(with or without the patch)
https://lkml.org/lkml/2014/11/6/125
Quoted 5 lines
Quoted 2 lines
hmm... it's strange because my trats2 board works well with this patch. Which kernel did you test? And how can I reproduce above lockup?
Just boot up next-2014110{456} with kernel config attached in mentioned email.
It looks like other issue regardless of this patch. If the board dts file includes compatible string that Exynos drm driver is checking then Exynos drm driver has no any change - having same logic.
Thanks,
Inki Dae
Quoted 11 lines
Best regards,
Krzysztof--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel