Skip to contentSkip to conversation

vc4: NULL pointer dereference in drm_client_dev_hotplug

DISCUSSION Stefan Wahren 6 participants 17 messages Sep 28, 2018 – Oct 3, 2018

lore
Share & tools
lore
#0 lore raw

Hi,

Sergey Suloev already reported this NULL pointer dereference [1]. Now he was able to provide a Kernel config and i'm able to reproduce it with a Raspberry Pi 3 (arm64) and Linux 4.19-rc5. It seems like a invalid config [2] for vc4, but nevertheless the driver shouldn't crash at boot.

[    9.124598] vc4_hdmi 3f902000.hdmi: ASoC: Failed to create component debugfs directory
[    9.147667] vc4_hdmi 3f902000.hdmi: vc4-hdmi-hifi <-> 3f902000.hdmi mapping ok
[    9.155184] vc4_hdmi 3f902000.hdmi: ASoC: no DMI vendor name!
[    9.166544] vc4-drm soc:gpu: bound 3f902000.hdmi (ops vc4_hdmi_ops [vc4])
[    9.173840] vc4-drm soc:gpu: bound 3f806000.vec (ops vc4_vec_ops [vc4])
[    9.181029] vc4-drm soc:gpu: bound 3f004000.txp (ops vc4_txp_ops [vc4])
[    9.188519] vc4-drm soc:gpu: bound 3f400000.hvs (ops vc4_hvs_ops [vc4])
[    9.195690] vc4-drm soc:gpu: bound 3f206000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.203523] vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.215032] vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.274785] vc4-drm soc:gpu: bound 3fc00000.v3d (ops vc4_v3d_ops [vc4])
[    9.290246] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0
[    9.297464] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    9.304600] [drm] Driver supports precise vblank timestamp query.
[    9.323839] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[    9.382856] vc4-drm soc:gpu: [drm:drm_fb_helper_fbdev_setup [drm_kms_helper]] *ERROR* Failed to set fbdev configuration
[    9.513495] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[    9.522507] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.clm_blob failed with error -2
[    9.532939] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[    9.545064] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f
[   10.404937] Unable to handle kernel paging request at virtual address 00330a656369768a
[   10.413081] Mem abort info:
[   10.415939]   ESR = 0x96000004
[   10.419082]   Exception class = DABT (current EL), IL = 32 bits
[   10.425357]   SET = 0, FnV = 0
[   10.428533]   EA = 0, S1PTW = 0
[   10.431729] Data abort info:
[   10.434674]   ISV = 0, ISS = 0x00000004
[   10.438589]   CM = 0, WnR = 0
[   10.441620] [00330a656369768a] address between user and kernel address ranges
[   10.449087] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[   10.454762] Modules linked in: brcmfmac vc4 drm_kms_helper cfg80211 drm rfkill smsc95xx brcmutil usbnet drm_panel_orientation_quirks raspberrypi_hwmon bcm2835_dma crc32_ce pwm_bcm2835 bcm2835_rng virt_dma rng_core i2c_bcm2835 ip_tables x_tables ipv6
[   10.477296] CPU: 2 PID: 45 Comm: kworker/2:1 Not tainted 4.19.0-rc5 #3
[   10.483934] Hardware name: Raspberry Pi 3 Model B Rev 1.2 (DT)
[   10.489966] Workqueue: events output_poll_execute [drm_kms_helper]
[   10.496261] pstate: 80000005 (Nzcv daif -PAN -UAO)
[   10.501321] pc : drm_client_dev_hotplug+0x5c/0xb0 [drm]
[   10.506776] lr : drm_client_dev_hotplug+0x38/0xb0 [drm]
[   10.512087] sp : ffff000008e83cd0
[   10.515455] x29: ffff000008e83cd0 x28: 0000000000000000 
[   10.520859] x27: ffff000000ad1c60 x26: ffff800034207230 
[   10.526263] x25: 0000000000000001 x24: 0000000000000002 
[   10.531666] x23: ffff8000342070f8 x22: ffff0000009bd398 
[   10.537070] x21: ffff800034207118 x20: ffff800034207000 
[   10.542474] x19: ffff800035638800 x18: ffffffffffffffff 
[   10.547877] x17: 0000000000000000 x16: 0000000000000000 
[   10.553281] x15: 0000000000000400 x14: 0000000000000400 
[   10.558685] x13: 0000000000000002 x12: 0000000000000000 
[   10.564088] x11: 0000000000000000 x10: 0000000000000000 
[   10.569492] x9 : 0000000000000001 x8 : 00000000ffffffff 
[   10.574896] x7 : ffff8000373a52a0 x6 : ffff800033087500 
[   10.580298] x5 : ffff000008e83ba0 x4 : ffff8000373bdc20 
[   10.585701] x3 : ffff8000342070f8 x2 : ffff800035fb9a80 
[   10.591104] x1 : 30330a6563697672 x0 : ffff800035638800 
[   10.596515] Process kworker/2:1 (pid: 45, stack limit = 0x000000007e8924dc)
[   10.603590] Call trace:
[   10.606259]  drm_client_dev_hotplug+0x5c/0xb0 [drm]
[   10.611303]  drm_kms_helper_hotplug_event+0x30/0x40 [drm_kms_helper]
[   10.617849]  output_poll_execute+0xc4/0x1e0 [drm_kms_helper]
[   10.623616]  process_one_work+0x1c8/0x318
[   10.627695]  worker_thread+0x48/0x428
[   10.631420]  kthread+0xf8/0x128
[   10.634615]  ret_from_fork+0x10/0x18
[   10.638255] Code: 54000220 f9401261 aa1303e0 b4000141 (f9400c21) 
[   10.644456] ---[ end trace c75b4a4b0e141908 ]---

[1] - https://lists.freedesktop.org/archives/dri-devel/2018-September/188812.html
[2] - https://github.com/anholt/linux/files/2429699/arm64_config.txt
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

Den 28.09.2018 23.01, skrev Stefan Wahren:

Quoted 3 lines

Hi,

Sergey Suloev already reported this NULL pointer dereference [1]. Now he was able to provide a Kernel config and i'm able to reproduce it with a Raspberry Pi 3 (arm64) and Linux 4.19-rc5. It seems like a invalid config [2] for vc4, but nevertheless the driver shouldn't crash at boot.

I didn't see that report, thanks for cc'ing me Stefan. Thanks for the report Sergey.

I've sent a fix:
https://patchwork.freedesktop.org/patch/254156/

Noralf.

Quoted 67 lines
[    9.124598] vc4_hdmi 3f902000.hdmi: ASoC: Failed to create component debugfs directory
[    9.147667] vc4_hdmi 3f902000.hdmi: vc4-hdmi-hifi <-> 3f902000.hdmi mapping ok
[    9.155184] vc4_hdmi 3f902000.hdmi: ASoC: no DMI vendor name!
[    9.166544] vc4-drm soc:gpu: bound 3f902000.hdmi (ops vc4_hdmi_ops [vc4])
[    9.173840] vc4-drm soc:gpu: bound 3f806000.vec (ops vc4_vec_ops [vc4])
[    9.181029] vc4-drm soc:gpu: bound 3f004000.txp (ops vc4_txp_ops [vc4])
[    9.188519] vc4-drm soc:gpu: bound 3f400000.hvs (ops vc4_hvs_ops [vc4])
[    9.195690] vc4-drm soc:gpu: bound 3f206000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.203523] vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.215032] vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.274785] vc4-drm soc:gpu: bound 3fc00000.v3d (ops vc4_v3d_ops [vc4])
[    9.290246] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0
[    9.297464] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    9.304600] [drm] Driver supports precise vblank timestamp query.
[    9.323839] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[    9.382856] vc4-drm soc:gpu: [drm:drm_fb_helper_fbdev_setup [drm_kms_helper]] *ERROR* Failed to set fbdev configuration
[    9.513495] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[    9.522507] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.clm_blob failed with error -2
[    9.532939] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[    9.545064] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f
[   10.404937] Unable to handle kernel paging request at virtual address 00330a656369768a
[   10.413081] Mem abort info:
[   10.415939]   ESR = 0x96000004
[   10.419082]   Exception class = DABT (current EL), IL = 32 bits
[   10.425357]   SET = 0, FnV = 0
[   10.428533]   EA = 0, S1PTW = 0
[   10.431729] Data abort info:
[   10.434674]   ISV = 0, ISS = 0x00000004
[   10.438589]   CM = 0, WnR = 0
[   10.441620] [00330a656369768a] address between user and kernel address ranges
[   10.449087] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[   10.454762] Modules linked in: brcmfmac vc4 drm_kms_helper cfg80211 drm rfkill smsc95xx brcmutil usbnet drm_panel_orientation_quirks raspberrypi_hwmon bcm2835_dma crc32_ce pwm_bcm2835 bcm2835_rng virt_dma rng_core i2c_bcm2835 ip_tables x_tables ipv6
[   10.477296] CPU: 2 PID: 45 Comm: kworker/2:1 Not tainted 4.19.0-rc5 #3
[   10.483934] Hardware name: Raspberry Pi 3 Model B Rev 1.2 (DT)
[   10.489966] Workqueue: events output_poll_execute [drm_kms_helper]
[   10.496261] pstate: 80000005 (Nzcv daif -PAN -UAO)
[   10.501321] pc : drm_client_dev_hotplug+0x5c/0xb0 [drm]
[   10.506776] lr : drm_client_dev_hotplug+0x38/0xb0 [drm]
[   10.512087] sp : ffff000008e83cd0
[   10.515455] x29: ffff000008e83cd0 x28: 0000000000000000
[   10.520859] x27: ffff000000ad1c60 x26: ffff800034207230
[   10.526263] x25: 0000000000000001 x24: 0000000000000002
[   10.531666] x23: ffff8000342070f8 x22: ffff0000009bd398
[   10.537070] x21: ffff800034207118 x20: ffff800034207000
[   10.542474] x19: ffff800035638800 x18: ffffffffffffffff
[   10.547877] x17: 0000000000000000 x16: 0000000000000000
[   10.553281] x15: 0000000000000400 x14: 0000000000000400
[   10.558685] x13: 0000000000000002 x12: 0000000000000000
[   10.564088] x11: 0000000000000000 x10: 0000000000000000
[   10.569492] x9 : 0000000000000001 x8 : 00000000ffffffff
[   10.574896] x7 : ffff8000373a52a0 x6 : ffff800033087500
[   10.580298] x5 : ffff000008e83ba0 x4 : ffff8000373bdc20
[   10.585701] x3 : ffff8000342070f8 x2 : ffff800035fb9a80
[   10.591104] x1 : 30330a6563697672 x0 : ffff800035638800
[   10.596515] Process kworker/2:1 (pid: 45, stack limit = 0x000000007e8924dc)
[   10.603590] Call trace:
[   10.606259]  drm_client_dev_hotplug+0x5c/0xb0 [drm]
[   10.611303]  drm_kms_helper_hotplug_event+0x30/0x40 [drm_kms_helper]
[   10.617849]  output_poll_execute+0xc4/0x1e0 [drm_kms_helper]
[   10.623616]  process_one_work+0x1c8/0x318
[   10.627695]  worker_thread+0x48/0x428
[   10.631420]  kthread+0xf8/0x128
[   10.634615]  ret_from_fork+0x10/0x18
[   10.638255] Code: 54000220 f9401261 aa1303e0 b4000141 (f9400c21)
[   10.644456] ---[ end trace c75b4a4b0e141908 ]---
Quoted 2 lines

[1] - https://lists.freedesktop.org/archives/dri-devel/2018-September/188812.html
[2] - https://github.com/anholt/linux/files/2429699/arm64_config.txt

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

Hi,Noralf,

I was hoping Eric would look at it and so I didn't include your email to CC. From now on as you can be a backup person I will always include you.

Thanks for the fix. Can you also explain which config option(s) causes this problem ? Because the default config for arm64 works well.

Sergey

Quoted 6 lines · Noralf Trønnes

Den 28.09.2018 23.01, skrev Stefan Wahren:

Quoted 3 lines

Hi,

Sergey Suloev already reported this NULL pointer dereference [1]. Now he was able to provide a Kernel config and i'm able to reproduce it with a Raspberry Pi 3 (arm64) and Linux 4.19-rc5. It seems like a invalid config [2] for vc4, but nevertheless the driver shouldn't crash at boot.

Quoted 78 lines

I didn't see that report, thanks for cc'ing me Stefan. Thanks for the report Sergey.

I've sent a fix:
https://patchwork.freedesktop.org/patch/254156/

Noralf.

Quoted 69 lines

[    9.124598] vc4_hdmi 3f902000.hdmi: ASoC: Failed to create component debugfs directory
[    9.147667] vc4_hdmi 3f902000.hdmi: vc4-hdmi-hifi <-> 3f902000.hdmi mapping ok
[    9.155184] vc4_hdmi 3f902000.hdmi: ASoC: no DMI vendor name!
[    9.166544] vc4-drm soc:gpu: bound 3f902000.hdmi (ops vc4_hdmi_ops [vc4])
[    9.173840] vc4-drm soc:gpu: bound 3f806000.vec (ops vc4_vec_ops [vc4])
[    9.181029] vc4-drm soc:gpu: bound 3f004000.txp (ops vc4_txp_ops [vc4])
[    9.188519] vc4-drm soc:gpu: bound 3f400000.hvs (ops vc4_hvs_ops [vc4])
[    9.195690] vc4-drm soc:gpu: bound 3f206000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.203523] vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.215032] vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.274785] vc4-drm soc:gpu: bound 3fc00000.v3d (ops vc4_v3d_ops [vc4])
[    9.290246] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0
[    9.297464] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    9.304600] [drm] Driver supports precise vblank timestamp query.
[    9.323839] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[    9.382856] vc4-drm soc:gpu: [drm:drm_fb_helper_fbdev_setup [drm_kms_helper]] *ERROR* Failed to set fbdev configuration
[    9.513495] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[    9.522507] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.clm_blob failed with error -2
[    9.532939] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[    9.545064] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f
[   10.404937] Unable to handle kernel paging request at virtual address 00330a656369768a
[   10.413081] Mem abort info:
[   10.415939]   ESR = 0x96000004
[   10.419082]   Exception class = DABT (current EL), IL = 32 bits
[   10.425357]   SET = 0, FnV = 0
[   10.428533]   EA = 0, S1PTW = 0
[   10.431729] Data abort info:
[   10.434674]   ISV = 0, ISS = 0x00000004
[   10.438589]   CM = 0, WnR = 0
[   10.441620] [00330a656369768a] address between user and kernel address ranges
[   10.449087] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[   10.454762] Modules linked in: brcmfmac vc4 drm_kms_helper cfg80211 drm rfkill smsc95xx brcmutil usbnet drm_panel_orientation_quirks raspberrypi_hwmon bcm2835_dma crc32_ce pwm_bcm2835 bcm2835_rng virt_dma rng_core i2c_bcm2835 ip_tables x_tables ipv6 [   10.477296] CPU: 2 PID: 45 Comm: kworker/2:1 Not tainted 4.19.0-rc5 #3
[   10.483934] Hardware name: Raspberry Pi 3 Model B Rev 1.2 (DT)
[   10.489966] Workqueue: events output_poll_execute [drm_kms_helper]
[   10.496261] pstate: 80000005 (Nzcv daif -PAN -UAO)
[   10.501321] pc : drm_client_dev_hotplug+0x5c/0xb0 [drm]
[   10.506776] lr : drm_client_dev_hotplug+0x38/0xb0 [drm]
[   10.512087] sp : ffff000008e83cd0
[   10.515455] x29: ffff000008e83cd0 x28: 0000000000000000
[   10.520859] x27: ffff000000ad1c60 x26: ffff800034207230
[   10.526263] x25: 0000000000000001 x24: 0000000000000002
[   10.531666] x23: ffff8000342070f8 x22: ffff0000009bd398
[   10.537070] x21: ffff800034207118 x20: ffff800034207000
[   10.542474] x19: ffff800035638800 x18: ffffffffffffffff
[   10.547877] x17: 0000000000000000 x16: 0000000000000000
[   10.553281] x15: 0000000000000400 x14: 0000000000000400
[   10.558685] x13: 0000000000000002 x12: 0000000000000000
[   10.564088] x11: 0000000000000000 x10: 0000000000000000
[   10.569492] x9 : 0000000000000001 x8 : 00000000ffffffff
[   10.574896] x7 : ffff8000373a52a0 x6 : ffff800033087500
[   10.580298] x5 : ffff000008e83ba0 x4 : ffff8000373bdc20
[   10.585701] x3 : ffff8000342070f8 x2 : ffff800035fb9a80
[   10.591104] x1 : 30330a6563697672 x0 : ffff800035638800
[   10.596515] Process kworker/2:1 (pid: 45, stack limit = 0x000000007e8924dc)
[   10.603590] Call trace:
[   10.606259]  drm_client_dev_hotplug+0x5c/0xb0 [drm]
[   10.611303]  drm_kms_helper_hotplug_event+0x30/0x40 [drm_kms_helper]
[   10.617849]  output_poll_execute+0xc4/0x1e0 [drm_kms_helper]
[   10.623616]  process_one_work+0x1c8/0x318
[   10.627695]  worker_thread+0x48/0x428
[   10.631420]  kthread+0xf8/0x128
[   10.634615]  ret_from_fork+0x10/0x18
[   10.638255] Code: 54000220 f9401261 aa1303e0 b4000141 (f9400c21)
[   10.644456] ---[ end trace c75b4a4b0e141908 ]---

[1] - https://lists.freedesktop.org/archives/dri-devel/2018-September/188812.html
[2] - https://github.com/anholt/linux/files/2429699/arm64_config.txt

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to Noralf Trønnes

Hi, Noralf,

I have tested you patch with 4.19-rc5.
The issue has changed from oops into the following error message in boot log:

[    3.501261] vc4-drm soc:gpu: [drm:drm_fb_helper_fbdev_setup [drm_kms_helper]] *ERROR* Failed to set fbdev configuration

The console output stops at this moment.

Sergey

Quoted 6 lines · Noralf Trønnes

Den 28.09.2018 23.01, skrev Stefan Wahren:

Quoted 3 lines

Hi,

Sergey Suloev already reported this NULL pointer dereference [1]. Now he was able to provide a Kernel config and i'm able to reproduce it with a Raspberry Pi 3 (arm64) and Linux 4.19-rc5. It seems like a invalid config [2] for vc4, but nevertheless the driver shouldn't crash at boot.

Quoted 78 lines

I didn't see that report, thanks for cc'ing me Stefan. Thanks for the report Sergey.

I've sent a fix:
https://patchwork.freedesktop.org/patch/254156/

Noralf.

Quoted 69 lines

[    9.124598] vc4_hdmi 3f902000.hdmi: ASoC: Failed to create component debugfs directory
[    9.147667] vc4_hdmi 3f902000.hdmi: vc4-hdmi-hifi <-> 3f902000.hdmi mapping ok
[    9.155184] vc4_hdmi 3f902000.hdmi: ASoC: no DMI vendor name!
[    9.166544] vc4-drm soc:gpu: bound 3f902000.hdmi (ops vc4_hdmi_ops [vc4])
[    9.173840] vc4-drm soc:gpu: bound 3f806000.vec (ops vc4_vec_ops [vc4])
[    9.181029] vc4-drm soc:gpu: bound 3f004000.txp (ops vc4_txp_ops [vc4])
[    9.188519] vc4-drm soc:gpu: bound 3f400000.hvs (ops vc4_hvs_ops [vc4])
[    9.195690] vc4-drm soc:gpu: bound 3f206000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.203523] vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.215032] vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.274785] vc4-drm soc:gpu: bound 3fc00000.v3d (ops vc4_v3d_ops [vc4])
[    9.290246] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0
[    9.297464] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    9.304600] [drm] Driver supports precise vblank timestamp query.
[    9.323839] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[    9.382856] vc4-drm soc:gpu: [drm:drm_fb_helper_fbdev_setup [drm_kms_helper]] *ERROR* Failed to set fbdev configuration
[    9.513495] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[    9.522507] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.clm_blob failed with error -2
[    9.532939] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[    9.545064] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f
[   10.404937] Unable to handle kernel paging request at virtual address 00330a656369768a
[   10.413081] Mem abort info:
[   10.415939]   ESR = 0x96000004
[   10.419082]   Exception class = DABT (current EL), IL = 32 bits
[   10.425357]   SET = 0, FnV = 0
[   10.428533]   EA = 0, S1PTW = 0
[   10.431729] Data abort info:
[   10.434674]   ISV = 0, ISS = 0x00000004
[   10.438589]   CM = 0, WnR = 0
[   10.441620] [00330a656369768a] address between user and kernel address ranges
[   10.449087] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[   10.454762] Modules linked in: brcmfmac vc4 drm_kms_helper cfg80211 drm rfkill smsc95xx brcmutil usbnet drm_panel_orientation_quirks raspberrypi_hwmon bcm2835_dma crc32_ce pwm_bcm2835 bcm2835_rng virt_dma rng_core i2c_bcm2835 ip_tables x_tables ipv6 [   10.477296] CPU: 2 PID: 45 Comm: kworker/2:1 Not tainted 4.19.0-rc5 #3
[   10.483934] Hardware name: Raspberry Pi 3 Model B Rev 1.2 (DT)
[   10.489966] Workqueue: events output_poll_execute [drm_kms_helper]
[   10.496261] pstate: 80000005 (Nzcv daif -PAN -UAO)
[   10.501321] pc : drm_client_dev_hotplug+0x5c/0xb0 [drm]
[   10.506776] lr : drm_client_dev_hotplug+0x38/0xb0 [drm]
[   10.512087] sp : ffff000008e83cd0
[   10.515455] x29: ffff000008e83cd0 x28: 0000000000000000
[   10.520859] x27: ffff000000ad1c60 x26: ffff800034207230
[   10.526263] x25: 0000000000000001 x24: 0000000000000002
[   10.531666] x23: ffff8000342070f8 x22: ffff0000009bd398
[   10.537070] x21: ffff800034207118 x20: ffff800034207000
[   10.542474] x19: ffff800035638800 x18: ffffffffffffffff
[   10.547877] x17: 0000000000000000 x16: 0000000000000000
[   10.553281] x15: 0000000000000400 x14: 0000000000000400
[   10.558685] x13: 0000000000000002 x12: 0000000000000000
[   10.564088] x11: 0000000000000000 x10: 0000000000000000
[   10.569492] x9 : 0000000000000001 x8 : 00000000ffffffff
[   10.574896] x7 : ffff8000373a52a0 x6 : ffff800033087500
[   10.580298] x5 : ffff000008e83ba0 x4 : ffff8000373bdc20
[   10.585701] x3 : ffff8000342070f8 x2 : ffff800035fb9a80
[   10.591104] x1 : 30330a6563697672 x0 : ffff800035638800
[   10.596515] Process kworker/2:1 (pid: 45, stack limit = 0x000000007e8924dc)
[   10.603590] Call trace:
[   10.606259]  drm_client_dev_hotplug+0x5c/0xb0 [drm]
[   10.611303]  drm_kms_helper_hotplug_event+0x30/0x40 [drm_kms_helper]
[   10.617849]  output_poll_execute+0xc4/0x1e0 [drm_kms_helper]
[   10.623616]  process_one_work+0x1c8/0x318
[   10.627695]  worker_thread+0x48/0x428
[   10.631420]  kthread+0xf8/0x128
[   10.634615]  ret_from_fork+0x10/0x18
[   10.638255] Code: 54000220 f9401261 aa1303e0 b4000141 (f9400c21)
[   10.644456] ---[ end trace c75b4a4b0e141908 ]---

[1] - https://lists.freedesktop.org/archives/dri-devel/2018-September/188812.html
[2] - https://github.com/anholt/linux/files/2429699/arm64_config.txt

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to Noralf Trønnes

Hi,

the last error message seems to come from the following config option:

CONFIG_DRM_FBDEV_OVERALLOC=200

Changing it to the default value fixes the issue:

CONFIG_DRM_FBDEV_OVERALLOC=100

Sergey

Quoted 6 lines · Noralf Trønnes

Den 28.09.2018 23.01, skrev Stefan Wahren:

Quoted 3 lines

Hi,

Sergey Suloev already reported this NULL pointer dereference [1]. Now he was able to provide a Kernel config and i'm able to reproduce it with a Raspberry Pi 3 (arm64) and Linux 4.19-rc5. It seems like a invalid config [2] for vc4, but nevertheless the driver shouldn't crash at boot.

Quoted 78 lines

I didn't see that report, thanks for cc'ing me Stefan. Thanks for the report Sergey.

I've sent a fix:
https://patchwork.freedesktop.org/patch/254156/

Noralf.

Quoted 69 lines

[    9.124598] vc4_hdmi 3f902000.hdmi: ASoC: Failed to create component debugfs directory
[    9.147667] vc4_hdmi 3f902000.hdmi: vc4-hdmi-hifi <-> 3f902000.hdmi mapping ok
[    9.155184] vc4_hdmi 3f902000.hdmi: ASoC: no DMI vendor name!
[    9.166544] vc4-drm soc:gpu: bound 3f902000.hdmi (ops vc4_hdmi_ops [vc4])
[    9.173840] vc4-drm soc:gpu: bound 3f806000.vec (ops vc4_vec_ops [vc4])
[    9.181029] vc4-drm soc:gpu: bound 3f004000.txp (ops vc4_txp_ops [vc4])
[    9.188519] vc4-drm soc:gpu: bound 3f400000.hvs (ops vc4_hvs_ops [vc4])
[    9.195690] vc4-drm soc:gpu: bound 3f206000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.203523] vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.215032] vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.274785] vc4-drm soc:gpu: bound 3fc00000.v3d (ops vc4_v3d_ops [vc4])
[    9.290246] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0
[    9.297464] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    9.304600] [drm] Driver supports precise vblank timestamp query.
[    9.323839] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[    9.382856] vc4-drm soc:gpu: [drm:drm_fb_helper_fbdev_setup [drm_kms_helper]] *ERROR* Failed to set fbdev configuration
[    9.513495] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[    9.522507] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.clm_blob failed with error -2
[    9.532939] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[    9.545064] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f
[   10.404937] Unable to handle kernel paging request at virtual address 00330a656369768a
[   10.413081] Mem abort info:
[   10.415939]   ESR = 0x96000004
[   10.419082]   Exception class = DABT (current EL), IL = 32 bits
[   10.425357]   SET = 0, FnV = 0
[   10.428533]   EA = 0, S1PTW = 0
[   10.431729] Data abort info:
[   10.434674]   ISV = 0, ISS = 0x00000004
[   10.438589]   CM = 0, WnR = 0
[   10.441620] [00330a656369768a] address between user and kernel address ranges
[   10.449087] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[   10.454762] Modules linked in: brcmfmac vc4 drm_kms_helper cfg80211 drm rfkill smsc95xx brcmutil usbnet drm_panel_orientation_quirks raspberrypi_hwmon bcm2835_dma crc32_ce pwm_bcm2835 bcm2835_rng virt_dma rng_core i2c_bcm2835 ip_tables x_tables ipv6 [   10.477296] CPU: 2 PID: 45 Comm: kworker/2:1 Not tainted 4.19.0-rc5 #3
[   10.483934] Hardware name: Raspberry Pi 3 Model B Rev 1.2 (DT)
[   10.489966] Workqueue: events output_poll_execute [drm_kms_helper]
[   10.496261] pstate: 80000005 (Nzcv daif -PAN -UAO)
[   10.501321] pc : drm_client_dev_hotplug+0x5c/0xb0 [drm]
[   10.506776] lr : drm_client_dev_hotplug+0x38/0xb0 [drm]
[   10.512087] sp : ffff000008e83cd0
[   10.515455] x29: ffff000008e83cd0 x28: 0000000000000000
[   10.520859] x27: ffff000000ad1c60 x26: ffff800034207230
[   10.526263] x25: 0000000000000001 x24: 0000000000000002
[   10.531666] x23: ffff8000342070f8 x22: ffff0000009bd398
[   10.537070] x21: ffff800034207118 x20: ffff800034207000
[   10.542474] x19: ffff800035638800 x18: ffffffffffffffff
[   10.547877] x17: 0000000000000000 x16: 0000000000000000
[   10.553281] x15: 0000000000000400 x14: 0000000000000400
[   10.558685] x13: 0000000000000002 x12: 0000000000000000
[   10.564088] x11: 0000000000000000 x10: 0000000000000000
[   10.569492] x9 : 0000000000000001 x8 : 00000000ffffffff
[   10.574896] x7 : ffff8000373a52a0 x6 : ffff800033087500
[   10.580298] x5 : ffff000008e83ba0 x4 : ffff8000373bdc20
[   10.585701] x3 : ffff8000342070f8 x2 : ffff800035fb9a80
[   10.591104] x1 : 30330a6563697672 x0 : ffff800035638800
[   10.596515] Process kworker/2:1 (pid: 45, stack limit = 0x000000007e8924dc)
[   10.603590] Call trace:
[   10.606259]  drm_client_dev_hotplug+0x5c/0xb0 [drm]
[   10.611303]  drm_kms_helper_hotplug_event+0x30/0x40 [drm_kms_helper]
[   10.617849]  output_poll_execute+0xc4/0x1e0 [drm_kms_helper]
[   10.623616]  process_one_work+0x1c8/0x318
[   10.627695]  worker_thread+0x48/0x428
[   10.631420]  kthread+0xf8/0x128
[   10.634615]  ret_from_fork+0x10/0x18
[   10.638255] Code: 54000220 f9401261 aa1303e0 b4000141 (f9400c21)
[   10.644456] ---[ end trace c75b4a4b0e141908 ]---

[1] - https://lists.freedesktop.org/archives/dri-devel/2018-September/188812.html
[2] - https://github.com/anholt/linux/files/2429699/arm64_config.txt

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

Den 29.09.2018 22.52, skrev Sergey Suloev:

Quoted 10 lines

Hi,

the last error message seems to come from the following config option:

CONFIG_DRM_FBDEV_OVERALLOC=200

Changing it to the default value fixes the issue:

CONFIG_DRM_FBDEV_OVERALLOC=100

If you enable drm debug (drm.debug=0xff), you get some more info:

[   63.449616] [drm:drm_fb_helper_generic_probe] surface width(1920), height(2880) and bpp(32) [   63.601694] [drm:drm_internal_framebuffer_create] bad framebuffer height 2880, should be >= 0 && <= 2048 [   63.604390] vc4-drm soc:gpu: [drm:drm_fb_helper_fbdev_setup] *ERROR* Failed to set fbdev configuration

The issue is discussed in these 2 threads:

[PATCH v5 4/8] drm/cma-helper: Use the generic fbdev emulation
https://lists.freedesktop.org/archives/dri-devel/2018-August/187157.html

[git pull] drm for 4.19-rc1
https://lists.freedesktop.org/archives/dri-devel/2018-August/186634.html

Noralf.

Quoted 90 lines

Sergey

Quoted 84 lines · Noralf Trønnes

Den 28.09.2018 23.01, skrev Stefan Wahren:

Quoted 3 lines

Hi,

Sergey Suloev already reported this NULL pointer dereference [1]. Now he was able to provide a Kernel config and i'm able to reproduce it with a Raspberry Pi 3 (arm64) and Linux 4.19-rc5. It seems like a invalid config [2] for vc4, but nevertheless the driver shouldn't crash at boot.

I didn't see that report, thanks for cc'ing me Stefan. Thanks for the report Sergey.

I've sent a fix:
https://patchwork.freedesktop.org/patch/254156/

Noralf.

Quoted 69 lines

[    9.124598] vc4_hdmi 3f902000.hdmi: ASoC: Failed to create component debugfs directory
[    9.147667] vc4_hdmi 3f902000.hdmi: vc4-hdmi-hifi <-> 3f902000.hdmi mapping ok
[    9.155184] vc4_hdmi 3f902000.hdmi: ASoC: no DMI vendor name!
[    9.166544] vc4-drm soc:gpu: bound 3f902000.hdmi (ops vc4_hdmi_ops [vc4])
[    9.173840] vc4-drm soc:gpu: bound 3f806000.vec (ops vc4_vec_ops [vc4])
[    9.181029] vc4-drm soc:gpu: bound 3f004000.txp (ops vc4_txp_ops [vc4])
[    9.188519] vc4-drm soc:gpu: bound 3f400000.hvs (ops vc4_hvs_ops [vc4])
[    9.195690] vc4-drm soc:gpu: bound 3f206000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.203523] vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.215032] vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.274785] vc4-drm soc:gpu: bound 3fc00000.v3d (ops vc4_v3d_ops [vc4])
[    9.290246] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0
[    9.297464] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    9.304600] [drm] Driver supports precise vblank timestamp query.
[    9.323839] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[    9.382856] vc4-drm soc:gpu: [drm:drm_fb_helper_fbdev_setup [drm_kms_helper]] *ERROR* Failed to set fbdev configuration
[    9.513495] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[    9.522507] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.clm_blob failed with error -2
[    9.532939] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[    9.545064] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f
[   10.404937] Unable to handle kernel paging request at virtual address 00330a656369768a
[   10.413081] Mem abort info:
[   10.415939]   ESR = 0x96000004
[   10.419082]   Exception class = DABT (current EL), IL = 32 bits
[   10.425357]   SET = 0, FnV = 0
[   10.428533]   EA = 0, S1PTW = 0
[   10.431729] Data abort info:
[   10.434674]   ISV = 0, ISS = 0x00000004
[   10.438589]   CM = 0, WnR = 0
[   10.441620] [00330a656369768a] address between user and kernel address ranges
[   10.449087] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[   10.454762] Modules linked in: brcmfmac vc4 drm_kms_helper cfg80211 drm rfkill smsc95xx brcmutil usbnet drm_panel_orientation_quirks raspberrypi_hwmon bcm2835_dma crc32_ce pwm_bcm2835 bcm2835_rng virt_dma rng_core i2c_bcm2835 ip_tables x_tables ipv6 [   10.477296] CPU: 2 PID: 45 Comm: kworker/2:1 Not tainted 4.19.0-rc5 #3
[   10.483934] Hardware name: Raspberry Pi 3 Model B Rev 1.2 (DT)
[   10.489966] Workqueue: events output_poll_execute [drm_kms_helper]
[   10.496261] pstate: 80000005 (Nzcv daif -PAN -UAO)
[   10.501321] pc : drm_client_dev_hotplug+0x5c/0xb0 [drm]
[   10.506776] lr : drm_client_dev_hotplug+0x38/0xb0 [drm]
[   10.512087] sp : ffff000008e83cd0
[   10.515455] x29: ffff000008e83cd0 x28: 0000000000000000
[   10.520859] x27: ffff000000ad1c60 x26: ffff800034207230
[   10.526263] x25: 0000000000000001 x24: 0000000000000002
[   10.531666] x23: ffff8000342070f8 x22: ffff0000009bd398
[   10.537070] x21: ffff800034207118 x20: ffff800034207000
[   10.542474] x19: ffff800035638800 x18: ffffffffffffffff
[   10.547877] x17: 0000000000000000 x16: 0000000000000000
[   10.553281] x15: 0000000000000400 x14: 0000000000000400
[   10.558685] x13: 0000000000000002 x12: 0000000000000000
[   10.564088] x11: 0000000000000000 x10: 0000000000000000
[   10.569492] x9 : 0000000000000001 x8 : 00000000ffffffff
[   10.574896] x7 : ffff8000373a52a0 x6 : ffff800033087500
[   10.580298] x5 : ffff000008e83ba0 x4 : ffff8000373bdc20
[   10.585701] x3 : ffff8000342070f8 x2 : ffff800035fb9a80
[   10.591104] x1 : 30330a6563697672 x0 : ffff800035638800
[   10.596515] Process kworker/2:1 (pid: 45, stack limit = 0x000000007e8924dc)
[   10.603590] Call trace:
[   10.606259]  drm_client_dev_hotplug+0x5c/0xb0 [drm]
[   10.611303]  drm_kms_helper_hotplug_event+0x30/0x40 [drm_kms_helper]
[   10.617849]  output_poll_execute+0xc4/0x1e0 [drm_kms_helper]
[   10.623616]  process_one_work+0x1c8/0x318
[   10.627695]  worker_thread+0x48/0x428
[   10.631420]  kthread+0xf8/0x128
[   10.634615]  ret_from_fork+0x10/0x18
[   10.638255] Code: 54000220 f9401261 aa1303e0 b4000141 (f9400c21)
[   10.644456] ---[ end trace c75b4a4b0e141908 ]---

[1] - https://lists.freedesktop.org/archives/dri-devel/2018-September/188812.html
[2] - https://github.com/anholt/linux/files/2429699/arm64_config.txt

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw

I have no idea where 2880 is coming from, my monitor has resolution 1280 * 1024.

Is this a DRM bug ?

Quoted 21 lines · Noralf Trønnes

Den 29.09.2018 22.52, skrev Sergey Suloev:

Quoted 10 lines

Hi,

the last error message seems to come from the following config option:

CONFIG_DRM_FBDEV_OVERALLOC=200

Changing it to the default value fixes the issue:

CONFIG_DRM_FBDEV_OVERALLOC=100

If you enable drm debug (drm.debug=0xff), you get some more info:

[   63.449616] [drm:drm_fb_helper_generic_probe] surface width(1920), height(2880) and bpp(32) [   63.601694] [drm:drm_internal_framebuffer_create] bad framebuffer height 2880, should be >= 0 && <= 2048 [   63.604390] vc4-drm soc:gpu: [drm:drm_fb_helper_fbdev_setup] *ERROR* Failed to set fbdev configuration

The issue is discussed in these 2 threads:

Quoted 99 lines

[PATCH v5 4/8] drm/cma-helper: Use the generic fbdev emulation
https://lists.freedesktop.org/archives/dri-devel/2018-August/187157.html

[git pull] drm for 4.19-rc1
https://lists.freedesktop.org/archives/dri-devel/2018-August/186634.html

Noralf.

Quoted 90 lines

Sergey

Quoted 84 lines · Noralf Trønnes

Den 28.09.2018 23.01, skrev Stefan Wahren:

Quoted 3 lines

Hi,

Sergey Suloev already reported this NULL pointer dereference [1]. Now he was able to provide a Kernel config and i'm able to reproduce it with a Raspberry Pi 3 (arm64) and Linux 4.19-rc5. It seems like a invalid config [2] for vc4, but nevertheless the driver shouldn't crash at boot.

I didn't see that report, thanks for cc'ing me Stefan. Thanks for the report Sergey.

I've sent a fix:
https://patchwork.freedesktop.org/patch/254156/

Noralf.

Quoted 69 lines

[    9.124598] vc4_hdmi 3f902000.hdmi: ASoC: Failed to create component debugfs directory
[    9.147667] vc4_hdmi 3f902000.hdmi: vc4-hdmi-hifi <-> 3f902000.hdmi mapping ok
[    9.155184] vc4_hdmi 3f902000.hdmi: ASoC: no DMI vendor name!
[    9.166544] vc4-drm soc:gpu: bound 3f902000.hdmi (ops vc4_hdmi_ops [vc4])
[    9.173840] vc4-drm soc:gpu: bound 3f806000.vec (ops vc4_vec_ops [vc4])
[    9.181029] vc4-drm soc:gpu: bound 3f004000.txp (ops vc4_txp_ops [vc4])
[    9.188519] vc4-drm soc:gpu: bound 3f400000.hvs (ops vc4_hvs_ops [vc4])
[    9.195690] vc4-drm soc:gpu: bound 3f206000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.203523] vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.215032] vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.274785] vc4-drm soc:gpu: bound 3fc00000.v3d (ops vc4_v3d_ops [vc4])
[    9.290246] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0
[    9.297464] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    9.304600] [drm] Driver supports precise vblank timestamp query.
[    9.323839] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[    9.382856] vc4-drm soc:gpu: [drm:drm_fb_helper_fbdev_setup [drm_kms_helper]] *ERROR* Failed to set fbdev configuration
[    9.513495] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[    9.522507] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.clm_blob failed with error -2
[    9.532939] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[    9.545064] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f
[   10.404937] Unable to handle kernel paging request at virtual address 00330a656369768a
[   10.413081] Mem abort info:
[   10.415939]   ESR = 0x96000004
[   10.419082]   Exception class = DABT (current EL), IL = 32 bits
[   10.425357]   SET = 0, FnV = 0
[   10.428533]   EA = 0, S1PTW = 0
[   10.431729] Data abort info:
[   10.434674]   ISV = 0, ISS = 0x00000004
[   10.438589]   CM = 0, WnR = 0
[   10.441620] [00330a656369768a] address between user and kernel address ranges
[   10.449087] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[   10.454762] Modules linked in: brcmfmac vc4 drm_kms_helper cfg80211 drm rfkill smsc95xx brcmutil usbnet drm_panel_orientation_quirks raspberrypi_hwmon bcm2835_dma crc32_ce pwm_bcm2835 bcm2835_rng virt_dma rng_core i2c_bcm2835 ip_tables x_tables ipv6 [   10.477296] CPU: 2 PID: 45 Comm: kworker/2:1 Not tainted 4.19.0-rc5 #3
[   10.483934] Hardware name: Raspberry Pi 3 Model B Rev 1.2 (DT)
[   10.489966] Workqueue: events output_poll_execute [drm_kms_helper]
[   10.496261] pstate: 80000005 (Nzcv daif -PAN -UAO)
[   10.501321] pc : drm_client_dev_hotplug+0x5c/0xb0 [drm]
[   10.506776] lr : drm_client_dev_hotplug+0x38/0xb0 [drm]
[   10.512087] sp : ffff000008e83cd0
[   10.515455] x29: ffff000008e83cd0 x28: 0000000000000000
[   10.520859] x27: ffff000000ad1c60 x26: ffff800034207230
[   10.526263] x25: 0000000000000001 x24: 0000000000000002
[   10.531666] x23: ffff8000342070f8 x22: ffff0000009bd398
[   10.537070] x21: ffff800034207118 x20: ffff800034207000
[   10.542474] x19: ffff800035638800 x18: ffffffffffffffff
[   10.547877] x17: 0000000000000000 x16: 0000000000000000
[   10.553281] x15: 0000000000000400 x14: 0000000000000400
[   10.558685] x13: 0000000000000002 x12: 0000000000000000
[   10.564088] x11: 0000000000000000 x10: 0000000000000000
[   10.569492] x9 : 0000000000000001 x8 : 00000000ffffffff
[   10.574896] x7 : ffff8000373a52a0 x6 : ffff800033087500
[   10.580298] x5 : ffff000008e83ba0 x4 : ffff8000373bdc20
[   10.585701] x3 : ffff8000342070f8 x2 : ffff800035fb9a80
[   10.591104] x1 : 30330a6563697672 x0 : ffff800035638800
[   10.596515] Process kworker/2:1 (pid: 45, stack limit = 0x000000007e8924dc)
[   10.603590] Call trace:
[   10.606259]  drm_client_dev_hotplug+0x5c/0xb0 [drm]
[   10.611303]  drm_kms_helper_hotplug_event+0x30/0x40 [drm_kms_helper]
[   10.617849]  output_poll_execute+0xc4/0x1e0 [drm_kms_helper]
[   10.623616]  process_one_work+0x1c8/0x318
[   10.627695]  worker_thread+0x48/0x428
[   10.631420]  kthread+0xf8/0x128
[   10.634615]  ret_from_fork+0x10/0x18
[   10.638255] Code: 54000220 f9401261 aa1303e0 b4000141 (f9400c21)
[   10.644456] ---[ end trace c75b4a4b0e141908 ]---

[1] - https://lists.freedesktop.org/archives/dri-devel/2018-September/188812.html
[2] - https://github.com/anholt/linux/files/2429699/arm64_config.txt

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to Noralf Trønnes

Here is my log

[    2.868157] [drm:drm_setup_crtcs [drm_kms_helper]] connector 29 enabled? yes
[    2.868199] [drm:drm_setup_crtcs [drm_kms_helper]] connector 44 enabled? no
[    2.868234] [drm:drm_setup_crtcs [drm_kms_helper]] connector 50 enabled? yes
[    2.868271] [drm:drm_setup_crtcs [drm_kms_helper]] looking for cmdline mode on connector 29
[    2.868308] [drm:drm_setup_crtcs [drm_kms_helper]] looking for preferred mode on connector 29 0
[    2.868343] [drm:drm_setup_crtcs [drm_kms_helper]] found mode 1280x1024
[    2.868381] [drm:drm_setup_crtcs [drm_kms_helper]] looking for cmdline mode on connector 50
[    2.868417] [drm:drm_setup_crtcs [drm_kms_helper]] looking for preferred mode on connector 50 0
[    2.868465] [drm:drm_setup_crtcs [drm_kms_helper]] found mode 1920x1440
[    2.868500] [drm:drm_setup_crtcs [drm_kms_helper]] picking CRTCs for 2048x2048 config
[    2.868561] [drm:drm_setup_crtcs [drm_kms_helper]] desired mode 1280x1024 set on crtc 95 (0,0)
[    2.868673] [drm:drm_mode_object_get [drm]] OBJ ID: 29 (2)
[    2.868709] [drm:drm_setup_crtcs [drm_kms_helper]] desired mode 1920x1440 set on crtc 74 (0,0)
[    2.868790] [drm:drm_mode_object_get [drm]] OBJ ID: 50 (2)
[    2.868832] [drm:drm_fb_helper_generic_probe [drm_kms_helper]] surface width(1920), height(2880) and bpp(32) [    3.001470] [drm:drm_internal_framebuffer_create [drm]] bad framebuffer height 2880, should be >= 0 && <= 2048 [    3.001650] vc4-drm soc:gpu: [drm:drm_fb_helper_fbdev_setup [drm_kms_helper]] *ERROR* Failed to set fbdev configuration

Quoted 21 lines · Noralf Trønnes

Den 29.09.2018 22.52, skrev Sergey Suloev:

Quoted 10 lines

Hi,

the last error message seems to come from the following config option:

CONFIG_DRM_FBDEV_OVERALLOC=200

Changing it to the default value fixes the issue:

CONFIG_DRM_FBDEV_OVERALLOC=100

If you enable drm debug (drm.debug=0xff), you get some more info:

[   63.449616] [drm:drm_fb_helper_generic_probe] surface width(1920), height(2880) and bpp(32) [   63.601694] [drm:drm_internal_framebuffer_create] bad framebuffer height 2880, should be >= 0 && <= 2048 [   63.604390] vc4-drm soc:gpu: [drm:drm_fb_helper_fbdev_setup] *ERROR* Failed to set fbdev configuration

The issue is discussed in these 2 threads:

Quoted 99 lines

[PATCH v5 4/8] drm/cma-helper: Use the generic fbdev emulation
https://lists.freedesktop.org/archives/dri-devel/2018-August/187157.html

[git pull] drm for 4.19-rc1
https://lists.freedesktop.org/archives/dri-devel/2018-August/186634.html

Noralf.

Quoted 90 lines

Sergey

Quoted 84 lines · Noralf Trønnes

Den 28.09.2018 23.01, skrev Stefan Wahren:

Quoted 3 lines

Hi,

Sergey Suloev already reported this NULL pointer dereference [1]. Now he was able to provide a Kernel config and i'm able to reproduce it with a Raspberry Pi 3 (arm64) and Linux 4.19-rc5. It seems like a invalid config [2] for vc4, but nevertheless the driver shouldn't crash at boot.

I didn't see that report, thanks for cc'ing me Stefan. Thanks for the report Sergey.

I've sent a fix:
https://patchwork.freedesktop.org/patch/254156/

Noralf.

Quoted 69 lines

[    9.124598] vc4_hdmi 3f902000.hdmi: ASoC: Failed to create component debugfs directory
[    9.147667] vc4_hdmi 3f902000.hdmi: vc4-hdmi-hifi <-> 3f902000.hdmi mapping ok
[    9.155184] vc4_hdmi 3f902000.hdmi: ASoC: no DMI vendor name!
[    9.166544] vc4-drm soc:gpu: bound 3f902000.hdmi (ops vc4_hdmi_ops [vc4])
[    9.173840] vc4-drm soc:gpu: bound 3f806000.vec (ops vc4_vec_ops [vc4])
[    9.181029] vc4-drm soc:gpu: bound 3f004000.txp (ops vc4_txp_ops [vc4])
[    9.188519] vc4-drm soc:gpu: bound 3f400000.hvs (ops vc4_hvs_ops [vc4])
[    9.195690] vc4-drm soc:gpu: bound 3f206000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.203523] vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.215032] vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.274785] vc4-drm soc:gpu: bound 3fc00000.v3d (ops vc4_v3d_ops [vc4])
[    9.290246] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0
[    9.297464] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    9.304600] [drm] Driver supports precise vblank timestamp query.
[    9.323839] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[    9.382856] vc4-drm soc:gpu: [drm:drm_fb_helper_fbdev_setup [drm_kms_helper]] *ERROR* Failed to set fbdev configuration
[    9.513495] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[    9.522507] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.clm_blob failed with error -2
[    9.532939] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[    9.545064] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f
[   10.404937] Unable to handle kernel paging request at virtual address 00330a656369768a
[   10.413081] Mem abort info:
[   10.415939]   ESR = 0x96000004
[   10.419082]   Exception class = DABT (current EL), IL = 32 bits
[   10.425357]   SET = 0, FnV = 0
[   10.428533]   EA = 0, S1PTW = 0
[   10.431729] Data abort info:
[   10.434674]   ISV = 0, ISS = 0x00000004
[   10.438589]   CM = 0, WnR = 0
[   10.441620] [00330a656369768a] address between user and kernel address ranges
[   10.449087] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[   10.454762] Modules linked in: brcmfmac vc4 drm_kms_helper cfg80211 drm rfkill smsc95xx brcmutil usbnet drm_panel_orientation_quirks raspberrypi_hwmon bcm2835_dma crc32_ce pwm_bcm2835 bcm2835_rng virt_dma rng_core i2c_bcm2835 ip_tables x_tables ipv6 [   10.477296] CPU: 2 PID: 45 Comm: kworker/2:1 Not tainted 4.19.0-rc5 #3
[   10.483934] Hardware name: Raspberry Pi 3 Model B Rev 1.2 (DT)
[   10.489966] Workqueue: events output_poll_execute [drm_kms_helper]
[   10.496261] pstate: 80000005 (Nzcv daif -PAN -UAO)
[   10.501321] pc : drm_client_dev_hotplug+0x5c/0xb0 [drm]
[   10.506776] lr : drm_client_dev_hotplug+0x38/0xb0 [drm]
[   10.512087] sp : ffff000008e83cd0
[   10.515455] x29: ffff000008e83cd0 x28: 0000000000000000
[   10.520859] x27: ffff000000ad1c60 x26: ffff800034207230
[   10.526263] x25: 0000000000000001 x24: 0000000000000002
[   10.531666] x23: ffff8000342070f8 x22: ffff0000009bd398
[   10.537070] x21: ffff800034207118 x20: ffff800034207000
[   10.542474] x19: ffff800035638800 x18: ffffffffffffffff
[   10.547877] x17: 0000000000000000 x16: 0000000000000000
[   10.553281] x15: 0000000000000400 x14: 0000000000000400
[   10.558685] x13: 0000000000000002 x12: 0000000000000000
[   10.564088] x11: 0000000000000000 x10: 0000000000000000
[   10.569492] x9 : 0000000000000001 x8 : 00000000ffffffff
[   10.574896] x7 : ffff8000373a52a0 x6 : ffff800033087500
[   10.580298] x5 : ffff000008e83ba0 x4 : ffff8000373bdc20
[   10.585701] x3 : ffff8000342070f8 x2 : ffff800035fb9a80
[   10.591104] x1 : 30330a6563697672 x0 : ffff800035638800
[   10.596515] Process kworker/2:1 (pid: 45, stack limit = 0x000000007e8924dc)
[   10.603590] Call trace:
[   10.606259]  drm_client_dev_hotplug+0x5c/0xb0 [drm]
[   10.611303]  drm_kms_helper_hotplug_event+0x30/0x40 [drm_kms_helper]
[   10.617849]  output_poll_execute+0xc4/0x1e0 [drm_kms_helper]
[   10.623616]  process_one_work+0x1c8/0x318
[   10.627695]  worker_thread+0x48/0x428
[   10.631420]  kthread+0xf8/0x128
[   10.634615]  ret_from_fork+0x10/0x18
[   10.638255] Code: 54000220 f9401261 aa1303e0 b4000141 (f9400c21)
[   10.644456] ---[ end trace c75b4a4b0e141908 ]---

[1] - https://lists.freedesktop.org/archives/dri-devel/2018-September/188812.html
[2] - https://github.com/anholt/linux/files/2429699/arm64_config.txt

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw

Den 30.09.2018 15.24, skrev Sergey Suloev:

Quoted 15 lines

Here is my log

[    2.868157] [drm:drm_setup_crtcs [drm_kms_helper]] connector 29 enabled? yes
[    2.868199] [drm:drm_setup_crtcs [drm_kms_helper]] connector 44 enabled? no
[    2.868234] [drm:drm_setup_crtcs [drm_kms_helper]] connector 50 enabled? yes
[    2.868271] [drm:drm_setup_crtcs [drm_kms_helper]] looking for cmdline mode on connector 29 [    2.868308] [drm:drm_setup_crtcs [drm_kms_helper]] looking for preferred mode on connector 29 0 [    2.868343] [drm:drm_setup_crtcs [drm_kms_helper]] found mode 1280x1024
[    2.868381] [drm:drm_setup_crtcs [drm_kms_helper]] looking for cmdline mode on connector 50 [    2.868417] [drm:drm_setup_crtcs [drm_kms_helper]] looking for preferred mode on connector 50 0 [    2.868465] [drm:drm_setup_crtcs [drm_kms_helper]] found mode 1920x1440
[    2.868500] [drm:drm_setup_crtcs [drm_kms_helper]] picking CRTCs for 2048x2048 config [    2.868561] [drm:drm_setup_crtcs [drm_kms_helper]] desired mode 1280x1024 set on crtc 95 (0,0) [    2.868673] [drm:drm_mode_object_get [drm]] OBJ ID: 29 (2)
[    2.868709] [drm:drm_setup_crtcs [drm_kms_helper]] desired mode 1920x1440 set on crtc 74 (0,0)

Looks like fbdev is using this mode: 1440 * 200 / 100 = 2880

Quoted 129 lines
[ 2.868790] [drm:drm_mode_object_get [drm]] OBJ ID: 50 (2)

[    2.868832] [drm:drm_fb_helper_generic_probe [drm_kms_helper]] surface width(1920), height(2880) and bpp(32) [    3.001470] [drm:drm_internal_framebuffer_create [drm]] bad framebuffer height 2880, should be >= 0 && <= 2048 [    3.001650] vc4-drm soc:gpu: [drm:drm_fb_helper_fbdev_setup [drm_kms_helper]] *ERROR* Failed to set fbdev configuration

Quoted 120 lines · Noralf Trønnes

Den 29.09.2018 22.52, skrev Sergey Suloev:

Quoted 10 lines

Hi,

the last error message seems to come from the following config option:

CONFIG_DRM_FBDEV_OVERALLOC=200

Changing it to the default value fixes the issue:

CONFIG_DRM_FBDEV_OVERALLOC=100

If you enable drm debug (drm.debug=0xff), you get some more info:

[   63.449616] [drm:drm_fb_helper_generic_probe] surface width(1920), height(2880) and bpp(32) [   63.601694] [drm:drm_internal_framebuffer_create] bad framebuffer height 2880, should be >= 0 && <= 2048 [   63.604390] vc4-drm soc:gpu: [drm:drm_fb_helper_fbdev_setup] *ERROR* Failed to set fbdev configuration

The issue is discussed in these 2 threads:

[PATCH v5 4/8] drm/cma-helper: Use the generic fbdev emulation
https://lists.freedesktop.org/archives/dri-devel/2018-August/187157.html

[git pull] drm for 4.19-rc1
https://lists.freedesktop.org/archives/dri-devel/2018-August/186634.html

Noralf.

Quoted 90 lines

Sergey

Quoted 84 lines · Noralf Trønnes

Den 28.09.2018 23.01, skrev Stefan Wahren:

Quoted 3 lines

Hi,

Sergey Suloev already reported this NULL pointer dereference [1]. Now he was able to provide a Kernel config and i'm able to reproduce it with a Raspberry Pi 3 (arm64) and Linux 4.19-rc5. It seems like a invalid config [2] for vc4, but nevertheless the driver shouldn't crash at boot.

I didn't see that report, thanks for cc'ing me Stefan. Thanks for the report Sergey.

I've sent a fix:
https://patchwork.freedesktop.org/patch/254156/

Noralf.

Quoted 69 lines

[    9.124598] vc4_hdmi 3f902000.hdmi: ASoC: Failed to create component debugfs directory
[    9.147667] vc4_hdmi 3f902000.hdmi: vc4-hdmi-hifi <-> 3f902000.hdmi mapping ok
[    9.155184] vc4_hdmi 3f902000.hdmi: ASoC: no DMI vendor name!
[    9.166544] vc4-drm soc:gpu: bound 3f902000.hdmi (ops vc4_hdmi_ops [vc4])
[    9.173840] vc4-drm soc:gpu: bound 3f806000.vec (ops vc4_vec_ops [vc4])
[    9.181029] vc4-drm soc:gpu: bound 3f004000.txp (ops vc4_txp_ops [vc4])
[    9.188519] vc4-drm soc:gpu: bound 3f400000.hvs (ops vc4_hvs_ops [vc4])
[    9.195690] vc4-drm soc:gpu: bound 3f206000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.203523] vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.215032] vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops [vc4])
[    9.274785] vc4-drm soc:gpu: bound 3fc00000.v3d (ops vc4_v3d_ops [vc4])
[    9.290246] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0
[    9.297464] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    9.304600] [drm] Driver supports precise vblank timestamp query.
[    9.323839] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[    9.382856] vc4-drm soc:gpu: [drm:drm_fb_helper_fbdev_setup [drm_kms_helper]] *ERROR* Failed to set fbdev configuration
[    9.513495] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[    9.522507] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.clm_blob failed with error -2
[    9.532939] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[    9.545064] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f
[   10.404937] Unable to handle kernel paging request at virtual address 00330a656369768a
[   10.413081] Mem abort info:
[   10.415939]   ESR = 0x96000004
[   10.419082]   Exception class = DABT (current EL), IL = 32 bits
[   10.425357]   SET = 0, FnV = 0
[   10.428533]   EA = 0, S1PTW = 0
[   10.431729] Data abort info:
[   10.434674]   ISV = 0, ISS = 0x00000004
[   10.438589]   CM = 0, WnR = 0
[   10.441620] [00330a656369768a] address between user and kernel address ranges
[   10.449087] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[   10.454762] Modules linked in: brcmfmac vc4 drm_kms_helper cfg80211 drm rfkill smsc95xx brcmutil usbnet drm_panel_orientation_quirks raspberrypi_hwmon bcm2835_dma crc32_ce pwm_bcm2835 bcm2835_rng virt_dma rng_core i2c_bcm2835 ip_tables x_tables ipv6 [   10.477296] CPU: 2 PID: 45 Comm: kworker/2:1 Not tainted 4.19.0-rc5 #3
[   10.483934] Hardware name: Raspberry Pi 3 Model B Rev 1.2 (DT)
[   10.489966] Workqueue: events output_poll_execute [drm_kms_helper]
[   10.496261] pstate: 80000005 (Nzcv daif -PAN -UAO)
[   10.501321] pc : drm_client_dev_hotplug+0x5c/0xb0 [drm]
[   10.506776] lr : drm_client_dev_hotplug+0x38/0xb0 [drm]
[   10.512087] sp : ffff000008e83cd0
[   10.515455] x29: ffff000008e83cd0 x28: 0000000000000000
[   10.520859] x27: ffff000000ad1c60 x26: ffff800034207230
[   10.526263] x25: 0000000000000001 x24: 0000000000000002
[   10.531666] x23: ffff8000342070f8 x22: ffff0000009bd398
[   10.537070] x21: ffff800034207118 x20: ffff800034207000
[   10.542474] x19: ffff800035638800 x18: ffffffffffffffff
[   10.547877] x17: 0000000000000000 x16: 0000000000000000
[   10.553281] x15: 0000000000000400 x14: 0000000000000400
[   10.558685] x13: 0000000000000002 x12: 0000000000000000
[   10.564088] x11: 0000000000000000 x10: 0000000000000000
[   10.569492] x9 : 0000000000000001 x8 : 00000000ffffffff
[   10.574896] x7 : ffff8000373a52a0 x6 : ffff800033087500
[   10.580298] x5 : ffff000008e83ba0 x4 : ffff8000373bdc20
[   10.585701] x3 : ffff8000342070f8 x2 : ffff800035fb9a80
[   10.591104] x1 : 30330a6563697672 x0 : ffff800035638800
[   10.596515] Process kworker/2:1 (pid: 45, stack limit = 0x000000007e8924dc)
[   10.603590] Call trace:
[   10.606259]  drm_client_dev_hotplug+0x5c/0xb0 [drm]
[   10.611303]  drm_kms_helper_hotplug_event+0x30/0x40 [drm_kms_helper]
[   10.617849]  output_poll_execute+0xc4/0x1e0 [drm_kms_helper]
[   10.623616]  process_one_work+0x1c8/0x318
[   10.627695]  worker_thread+0x48/0x428
[   10.631420]  kthread+0xf8/0x128
[   10.634615]  ret_from_fork+0x10/0x18
[   10.638255] Code: 54000220 f9401261 aa1303e0 b4000141 (f9400c21)
[   10.644456] ---[ end trace c75b4a4b0e141908 ]---

[1] - https://lists.freedesktop.org/archives/dri-devel/2018-September/188812.html
[2] - https://github.com/anholt/linux/files/2429699/arm64_config.txt

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw
In reply to Sergey Suloev

Hi Sergey,

Quoted 27 lines

Sergey Suloev <[email protected]> hat am 30. September 2018 um 15:24 geschrieben:

Here is my log

[    2.868157] [drm:drm_setup_crtcs [drm_kms_helper]] connector 29 enabled? yes
[    2.868199] [drm:drm_setup_crtcs [drm_kms_helper]] connector 44 enabled? no
[    2.868234] [drm:drm_setup_crtcs [drm_kms_helper]] connector 50 enabled? yes
[    2.868271] [drm:drm_setup_crtcs [drm_kms_helper]] looking for cmdline mode on connector 29
[    2.868308] [drm:drm_setup_crtcs [drm_kms_helper]] looking for preferred mode on connector 29 0
[    2.868343] [drm:drm_setup_crtcs [drm_kms_helper]] found mode 1280x1024 [    2.868381] [drm:drm_setup_crtcs [drm_kms_helper]] looking for cmdline mode on connector 50
[    2.868417] [drm:drm_setup_crtcs [drm_kms_helper]] looking for preferred mode on connector 50 0
[    2.868465] [drm:drm_setup_crtcs [drm_kms_helper]] found mode 1920x1440 [    2.868500] [drm:drm_setup_crtcs [drm_kms_helper]] picking CRTCs for 2048x2048 config
[    2.868561] [drm:drm_setup_crtcs [drm_kms_helper]] desired mode 1280x1024 set on crtc 95 (0,0)
[    2.868673] [drm:drm_mode_object_get [drm]] OBJ ID: 29 (2) [    2.868709] [drm:drm_setup_crtcs [drm_kms_helper]] desired mode

Quoted 9 lines

1920x1440 set on crtc 74 (0,0)
[    2.868790] [drm:drm_mode_object_get [drm]] OBJ ID: 50 (2) [    2.868832] [drm:drm_fb_helper_generic_probe [drm_kms_helper]] surface width(1920), height(2880) and bpp(32)
[    3.001470] [drm:drm_internal_framebuffer_create [drm]] bad framebuffer height 2880, should be >= 0 && <= 2048
[    3.001650] vc4-drm soc:gpu: [drm:drm_fb_helper_fbdev_setup [drm_kms_helper]] *ERROR* Failed to set fbdev configuration

does this config work with 4.18?
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw

Hi, Stefan,

Quoted 38 lines · Stefan Wahren

Hi Sergey,

Quoted 27 lines

Sergey Suloev <[email protected]> hat am 30. September 2018 um 15:24 geschrieben:

Here is my log

[    2.868157] [drm:drm_setup_crtcs [drm_kms_helper]] connector 29 enabled? yes
[    2.868199] [drm:drm_setup_crtcs [drm_kms_helper]] connector 44 enabled? no
[    2.868234] [drm:drm_setup_crtcs [drm_kms_helper]] connector 50 enabled? yes
[    2.868271] [drm:drm_setup_crtcs [drm_kms_helper]] looking for cmdline mode on connector 29
[    2.868308] [drm:drm_setup_crtcs [drm_kms_helper]] looking for preferred mode on connector 29 0
[    2.868343] [drm:drm_setup_crtcs [drm_kms_helper]] found mode 1280x1024 [    2.868381] [drm:drm_setup_crtcs [drm_kms_helper]] looking for cmdline mode on connector 50
[    2.868417] [drm:drm_setup_crtcs [drm_kms_helper]] looking for preferred mode on connector 50 0
[    2.868465] [drm:drm_setup_crtcs [drm_kms_helper]] found mode 1920x1440 [    2.868500] [drm:drm_setup_crtcs [drm_kms_helper]] picking CRTCs for 2048x2048 config
[    2.868561] [drm:drm_setup_crtcs [drm_kms_helper]] desired mode 1280x1024 set on crtc 95 (0,0)
[    2.868673] [drm:drm_mode_object_get [drm]] OBJ ID: 29 (2) [    2.868709] [drm:drm_setup_crtcs [drm_kms_helper]] desired mode

Quoted 9 lines

1920x1440 set on crtc 74 (0,0)
[    2.868790] [drm:drm_mode_object_get [drm]] OBJ ID: 50 (2) [    2.868832] [drm:drm_fb_helper_generic_probe [drm_kms_helper]] surface width(1920), height(2880) and bpp(32)
[    3.001470] [drm:drm_internal_framebuffer_create [drm]] bad framebuffer height 2880, should be >= 0 && <= 2048
[    3.001650] vc4-drm soc:gpu: [drm:drm_fb_helper_fbdev_setup [drm_kms_helper]] *ERROR* Failed to set fbdev configuration

Quoted 1 line

does this config work with 4.18?

I have checked with the tag v4.18 as per your request and I can confirm that the issue does not exists in 4.18.

Sergey
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw

Hi,

Quoted 45 lines

Sergey Suloev <[email protected]> hat am 1. Oktober 2018 um 12:17 geschrieben:

Hi, Stefan,

Quoted 38 lines · Stefan Wahren

Hi Sergey,

Quoted 36 lines

Sergey Suloev <[email protected]> hat am 30. September 2018 um 15:24 geschrieben:

Here is my log

[    2.868157] [drm:drm_setup_crtcs [drm_kms_helper]] connector 29 enabled? yes
[    2.868199] [drm:drm_setup_crtcs [drm_kms_helper]] connector 44 enabled? no
[    2.868234] [drm:drm_setup_crtcs [drm_kms_helper]] connector 50 enabled? yes
[    2.868271] [drm:drm_setup_crtcs [drm_kms_helper]] looking for cmdline mode on connector 29
[    2.868308] [drm:drm_setup_crtcs [drm_kms_helper]] looking for preferred mode on connector 29 0
[    2.868343] [drm:drm_setup_crtcs [drm_kms_helper]] found mode 1280x1024 [    2.868381] [drm:drm_setup_crtcs [drm_kms_helper]] looking for cmdline mode on connector 50
[    2.868417] [drm:drm_setup_crtcs [drm_kms_helper]] looking for preferred mode on connector 50 0
[    2.868465] [drm:drm_setup_crtcs [drm_kms_helper]] found mode 1920x1440 [    2.868500] [drm:drm_setup_crtcs [drm_kms_helper]] picking CRTCs for 2048x2048 config
[    2.868561] [drm:drm_setup_crtcs [drm_kms_helper]] desired mode 1280x1024 set on crtc 95 (0,0)
[    2.868673] [drm:drm_mode_object_get [drm]] OBJ ID: 29 (2) [    2.868709] [drm:drm_setup_crtcs [drm_kms_helper]] desired mode 1920x1440 set on crtc 74 (0,0)
[    2.868790] [drm:drm_mode_object_get [drm]] OBJ ID: 50 (2) [    2.868832] [drm:drm_fb_helper_generic_probe [drm_kms_helper]] surface width(1920), height(2880) and bpp(32)
[    3.001470] [drm:drm_internal_framebuffer_create [drm]] bad framebuffer height 2880, should be >= 0 && <= 2048
[    3.001650] vc4-drm soc:gpu: [drm:drm_fb_helper_fbdev_setup [drm_kms_helper]] *ERROR* Failed to set fbdev configuration

Quoted 4 lines
Quoted 1 line

does this config work with 4.18?

I have checked with the tag v4.18 as per your request and I can confirm that the issue does not exists in 4.18.

i tried to follow the threads mentioned by Noralf, but it seems the regression regarding CONFIG_DRM_FBDEV_OVERALLOC=200 hasn't been fixed yet.

It would be nice to have this fixed in 4.19 LTS.

Regards
Stefan

Quoted 2 lines

Sergey

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw
Quoted 47 lines · Stefan Wahren

Hi,

Quoted 45 lines

Sergey Suloev <[email protected]> hat am 1. Oktober 2018 um 12:17 geschrieben:

Hi, Stefan,

Quoted 38 lines · Stefan Wahren

Hi Sergey,

Quoted 36 lines

Sergey Suloev <[email protected]> hat am 30. September 2018 um 15:24 geschrieben:

Here is my log

[    2.868157] [drm:drm_setup_crtcs [drm_kms_helper]] connector 29 enabled? yes
[    2.868199] [drm:drm_setup_crtcs [drm_kms_helper]] connector 44 enabled? no
[    2.868234] [drm:drm_setup_crtcs [drm_kms_helper]] connector 50 enabled? yes
[    2.868271] [drm:drm_setup_crtcs [drm_kms_helper]] looking for cmdline mode on connector 29
[    2.868308] [drm:drm_setup_crtcs [drm_kms_helper]] looking for preferred mode on connector 29 0
[    2.868343] [drm:drm_setup_crtcs [drm_kms_helper]] found mode 1280x1024 [    2.868381] [drm:drm_setup_crtcs [drm_kms_helper]] looking for cmdline mode on connector 50
[    2.868417] [drm:drm_setup_crtcs [drm_kms_helper]] looking for preferred mode on connector 50 0
[    2.868465] [drm:drm_setup_crtcs [drm_kms_helper]] found mode 1920x1440 [    2.868500] [drm:drm_setup_crtcs [drm_kms_helper]] picking CRTCs for 2048x2048 config
[    2.868561] [drm:drm_setup_crtcs [drm_kms_helper]] desired mode 1280x1024 set on crtc 95 (0,0)
[    2.868673] [drm:drm_mode_object_get [drm]] OBJ ID: 29 (2) [    2.868709] [drm:drm_setup_crtcs [drm_kms_helper]] desired mode 1920x1440 set on crtc 74 (0,0)
[    2.868790] [drm:drm_mode_object_get [drm]] OBJ ID: 50 (2) [    2.868832] [drm:drm_fb_helper_generic_probe [drm_kms_helper]] surface width(1920), height(2880) and bpp(32)
[    3.001470] [drm:drm_internal_framebuffer_create [drm]] bad framebuffer height 2880, should be >= 0 && <= 2048
[    3.001650] vc4-drm soc:gpu: [drm:drm_fb_helper_fbdev_setup [drm_kms_helper]] *ERROR* Failed to set fbdev configuration

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

does this config work with 4.18?

I have checked with the tag v4.18 as per your request and I can confirm that the issue does not exists in 4.18.

i tried to follow the threads mentioned by Noralf, but it seems the regression regarding CONFIG_DRM_FBDEV_OVERALLOC=200 hasn't been fixed yet.

It would be nice to have this fixed in 4.19 LTS.

Do you need this feature? The new generic fbdev stuff has slightly more strict error checking, and the overalloc thing is somewhat of a hack to support mali blobs. If this goes boom now there's a good chance it didn't work beforehand either.
-Daniel

Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#13 lore raw

Hi Daniel,

[add Peter and Andreas]

Am 02.10.2018 um 10:44 schrieb Daniel Vetter:

Quoted 48 lines · Stefan Wahren
Quoted 47 lines

Hi,

Quoted 45 lines

Sergey Suloev <[email protected]> hat am 1. Oktober 2018 um 12:17 geschrieben:

Hi, Stefan,

Quoted 38 lines · Stefan Wahren

Hi Sergey,

Quoted 36 lines

Sergey Suloev <[email protected]> hat am 30. September 2018 um 15:24 geschrieben:

Here is my log

[    2.868157] [drm:drm_setup_crtcs [drm_kms_helper]] connector 29 enabled? yes
[    2.868199] [drm:drm_setup_crtcs [drm_kms_helper]] connector 44 enabled? no
[    2.868234] [drm:drm_setup_crtcs [drm_kms_helper]] connector 50 enabled? yes
[    2.868271] [drm:drm_setup_crtcs [drm_kms_helper]] looking for cmdline mode on connector 29
[    2.868308] [drm:drm_setup_crtcs [drm_kms_helper]] looking for preferred mode on connector 29 0
[    2.868343] [drm:drm_setup_crtcs [drm_kms_helper]] found mode 1280x1024 [    2.868381] [drm:drm_setup_crtcs [drm_kms_helper]] looking for cmdline mode on connector 50
[    2.868417] [drm:drm_setup_crtcs [drm_kms_helper]] looking for preferred mode on connector 50 0
[    2.868465] [drm:drm_setup_crtcs [drm_kms_helper]] found mode 1920x1440 [    2.868500] [drm:drm_setup_crtcs [drm_kms_helper]] picking CRTCs for 2048x2048 config
[    2.868561] [drm:drm_setup_crtcs [drm_kms_helper]] desired mode 1280x1024 set on crtc 95 (0,0)
[    2.868673] [drm:drm_mode_object_get [drm]] OBJ ID: 29 (2) [    2.868709] [drm:drm_setup_crtcs [drm_kms_helper]] desired mode 1920x1440 set on crtc 74 (0,0)
[    2.868790] [drm:drm_mode_object_get [drm]] OBJ ID: 50 (2) [    2.868832] [drm:drm_fb_helper_generic_probe [drm_kms_helper]] surface width(1920), height(2880) and bpp(32)
[    3.001470] [drm:drm_internal_framebuffer_create [drm]] bad framebuffer height 2880, should be >= 0 && <= 2048
[    3.001650] vc4-drm soc:gpu: [drm:drm_fb_helper_fbdev_setup [drm_kms_helper]] *ERROR* Failed to set fbdev configuration

Quoted 7 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line

does this config work with 4.18?

I have checked with the tag v4.18 as per your request and I can confirm that the issue does not exists in 4.18.

i tried to follow the threads mentioned by Noralf, but it seems the regression regarding CONFIG_DRM_FBDEV_OVERALLOC=200 hasn't been fixed yet.

It would be nice to have this fixed in 4.19 LTS.

Do you need this feature?

personally i didn't know this option before this issue, but i cannot speak for all the distributions. I checked Raspbian and they don't use this option. I had a better feeling to have at least the feedback from Peter and Andreas this isn't used in their distributions.

Stefan

Quoted 5 lines

The new generic fbdev stuff has slightly more
strict error checking, and the overalloc thing is somewhat of a hack to support mali blobs. If this goes boom now there's a good chance it didn't work beforehand either.
-Daniel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw

Hi Stefan,

Quoted 55 lines

[add Peter and Andreas]

Am 02.10.2018 um 10:44 schrieb Daniel Vetter:

Quoted 51 lines · Stefan Wahren
Quoted 50 lines

Hi,

Quoted 48 lines

Sergey Suloev <[email protected]> hat am 1. Oktober 2018 um 12:17 geschrieben:

Hi, Stefan,

Quoted 38 lines · Stefan Wahren

Hi Sergey,

Quoted 34 lines

Sergey Suloev <[email protected]> hat am 30. September 2018 um 15:24 geschrieben:

Here is my log

[    2.868157] [drm:drm_setup_crtcs [drm_kms_helper]] connector 29
enabled? yes
[    2.868199] [drm:drm_setup_crtcs [drm_kms_helper]] connector 44
enabled? no
[    2.868234] [drm:drm_setup_crtcs [drm_kms_helper]] connector 50
enabled? yes
[    2.868271] [drm:drm_setup_crtcs [drm_kms_helper]] looking for
cmdline mode on connector 29
[    2.868308] [drm:drm_setup_crtcs [drm_kms_helper]] looking for
preferred mode on connector 29 0
[    2.868343] [drm:drm_setup_crtcs [drm_kms_helper]] found mode 1280x1024
[    2.868381] [drm:drm_setup_crtcs [drm_kms_helper]] looking for
cmdline mode on connector 50
[    2.868417] [drm:drm_setup_crtcs [drm_kms_helper]] looking for
preferred mode on connector 50 0
[    2.868465] [drm:drm_setup_crtcs [drm_kms_helper]] found mode 1920x1440
[    2.868500] [drm:drm_setup_crtcs [drm_kms_helper]] picking CRTCs for
2048x2048 config
[    2.868561] [drm:drm_setup_crtcs [drm_kms_helper]] desired mode
1280x1024 set on crtc 95 (0,0)
[    2.868673] [drm:drm_mode_object_get [drm]] OBJ ID: 29 (2)
[    2.868709] [drm:drm_setup_crtcs [drm_kms_helper]] desired mode
1920x1440 set on crtc 74 (0,0)
[    2.868790] [drm:drm_mode_object_get [drm]] OBJ ID: 50 (2)
[    2.868832] [drm:drm_fb_helper_generic_probe [drm_kms_helper]]
surface width(1920), height(2880) and bpp(32)
[    3.001470] [drm:drm_internal_framebuffer_create [drm]] bad
framebuffer height 2880, should be >= 0 && <= 2048
[    3.001650] vc4-drm soc:gpu: [drm:drm_fb_helper_fbdev_setup
Quoted 2 lines

[drm_kms_helper]] *ERROR* Failed to set fbdev configuration

Quoted 1 line

does this config work with 4.18?

I have checked with the tag v4.18 as per your request and I can confirm that the issue does not exists in 4.18.

Quoted 8 lines
Quoted 4 lines
Quoted 3 lines

i tried to follow the threads mentioned by Noralf, but it seems the regression regarding CONFIG_DRM_FBDEV_OVERALLOC=200 hasn't been fixed yet.

It would be nice to have this fixed in 4.19 LTS.

Do you need this feature?

personally i didn't know this option before this issue, but i cannot speak for all the distributions. I checked Raspbian and they don't use this option. I had a better feeling to have at least the feedback from Peter and Andreas this isn't used in their distributions.

Looking at the config Fedora does have DRM_FBDEV_OVERALLOC=100 in our config, it's a generic across arches enabled option, but in general I'm moving away from fbdev on ARM in Fedora and for Raspberry Pi in particular we use the accelerated vc4 driver for basically everything rather than fbdev.

Peter

Quoted 6 lines
Quoted 5 lines

The new generic fbdev stuff has slightly more
strict error checking, and the overalloc thing is somewhat of a hack to support mali blobs. If this goes boom now there's a good chance it didn't work beforehand either.
-Daniel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw
In reply to Stefan Wahren

Hi Stefan and Daniel,

Am 02.10.18 um 11:48 schrieb Stefan Wahren:

Quoted 47 lines

Hi Daniel,

[add Peter and Andreas]

Am 02.10.2018 um 10:44 schrieb Daniel Vetter:

Quoted 42 lines · Stefan Wahren
Quoted 41 lines
Quoted 41 lines

Sergey Suloev <[email protected]> hat am 1. Oktober 2018 um 12:17 geschrieben:

Quoted 36 lines · Stefan Wahren
Quoted 27 lines

Sergey Suloev <[email protected]> hat am 30. September 2018 um 15:24 geschrieben:

Here is my log

[    2.868157] [drm:drm_setup_crtcs [drm_kms_helper]] connector 29 enabled? yes
[    2.868199] [drm:drm_setup_crtcs [drm_kms_helper]] connector 44 enabled? no
[    2.868234] [drm:drm_setup_crtcs [drm_kms_helper]] connector 50 enabled? yes
[    2.868271] [drm:drm_setup_crtcs [drm_kms_helper]] looking for cmdline mode on connector 29
[    2.868308] [drm:drm_setup_crtcs [drm_kms_helper]] looking for preferred mode on connector 29 0
[    2.868343] [drm:drm_setup_crtcs [drm_kms_helper]] found mode 1280x1024 [    2.868381] [drm:drm_setup_crtcs [drm_kms_helper]] looking for cmdline mode on connector 50
[    2.868417] [drm:drm_setup_crtcs [drm_kms_helper]] looking for preferred mode on connector 50 0
[    2.868465] [drm:drm_setup_crtcs [drm_kms_helper]] found mode 1920x1440 [    2.868500] [drm:drm_setup_crtcs [drm_kms_helper]] picking CRTCs for 2048x2048 config
[    2.868561] [drm:drm_setup_crtcs [drm_kms_helper]] desired mode 1280x1024 set on crtc 95 (0,0)
[    2.868673] [drm:drm_mode_object_get [drm]] OBJ ID: 29 (2) [    2.868709] [drm:drm_setup_crtcs [drm_kms_helper]] desired mode

Quoted 9 lines

1920x1440 set on crtc 74 (0,0)
[    2.868790] [drm:drm_mode_object_get [drm]] OBJ ID: 50 (2) [    2.868832] [drm:drm_fb_helper_generic_probe [drm_kms_helper]] surface width(1920), height(2880) and bpp(32)
[    3.001470] [drm:drm_internal_framebuffer_create [drm]] bad framebuffer height 2880, should be >= 0 && <= 2048
[    3.001650] vc4-drm soc:gpu: [drm:drm_fb_helper_fbdev_setup [drm_kms_helper]] *ERROR* Failed to set fbdev configuration

Quoted 1 line

does this config work with 4.18?

I have checked with the tag v4.18 as per your request and I can confirm that the issue does not exists in 4.18.

Quoted 8 lines
Quoted 4 lines
Quoted 3 lines

i tried to follow the threads mentioned by Noralf, but it seems the regression regarding CONFIG_DRM_FBDEV_OVERALLOC=200 hasn't been fixed yet.

It would be nice to have this fixed in 4.19 LTS.

Do you need this feature?

personally i didn't know this option before this issue, but i cannot speak for all the distributions. I checked Raspbian and they don't use this option. I had a better feeling to have at least the feedback from Peter and Andreas this isn't used in their distributions.

For openSUSE kernel-source.git master branch I see:

$ grep -r CONFIG_DRM_FBDEV_OVERALLOC config/
config/armv7hl/default:CONFIG_DRM_FBDEV_OVERALLOC=100
config/armv7hl/lpae:CONFIG_DRM_FBDEV_OVERALLOC=100
config/ppc64le/default:CONFIG_DRM_FBDEV_OVERALLOC=100
config/i386/pae:CONFIG_DRM_FBDEV_OVERALLOC=100
config/ppc64/default:CONFIG_DRM_FBDEV_OVERALLOC=100
config/x86_64/default:CONFIG_DRM_FBDEV_OVERALLOC=100
config/armv6hl/default:CONFIG_DRM_FBDEV_OVERALLOC=100
config/arm64/default:CONFIG_DRM_FBDEV_OVERALLOC=100

Similar to what Peter said, on the Raspberry Pi we would usually use vc4 drm; but some users have run into issues with vc4 not working with certain monitors, so they may blacklist vc4 and use efifb instead.

Adding Alex and Petr in case more discussion is needed.

Regards,
Andreas

Quoted 5 lines
Quoted 5 lines

The new generic fbdev stuff has slightly more
strict error checking, and the overalloc thing is somewhat of a hack to support mali blobs. If this goes boom now there's a good chance it didn't work beforehand either.
-Daniel

Signature · 7 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#16 lore raw

Hi,

Quoted 25 lines

Andreas Färber <[email protected]> hat am 2. Oktober 2018 um 16:33 geschrieben:

Hi Stefan and Daniel,

Am 02.10.18 um 11:48 schrieb Stefan Wahren:

Quoted 1 line

Hi Daniel,

SNIP

Quoted 4 lines

personally i didn't know this option before this issue, but i cannot speak for all the distributions. I checked Raspbian and they don't use this option. I had a better feeling to have at least the feedback from Peter and Andreas this isn't used in their distributions.

For openSUSE kernel-source.git master branch I see:

$ grep -r CONFIG_DRM_FBDEV_OVERALLOC config/
config/armv7hl/default:CONFIG_DRM_FBDEV_OVERALLOC=100
config/armv7hl/lpae:CONFIG_DRM_FBDEV_OVERALLOC=100
config/ppc64le/default:CONFIG_DRM_FBDEV_OVERALLOC=100
config/i386/pae:CONFIG_DRM_FBDEV_OVERALLOC=100
config/ppc64/default:CONFIG_DRM_FBDEV_OVERALLOC=100
config/x86_64/default:CONFIG_DRM_FBDEV_OVERALLOC=100
config/armv6hl/default:CONFIG_DRM_FBDEV_OVERALLOC=100
config/arm64/default:CONFIG_DRM_FBDEV_OVERALLOC=100
Quoted 3 lines

Similar to what Peter said, on the Raspberry Pi we would usually use vc4 drm; but some users have run into issues with vc4 not working with certain monitors, so they may blacklist vc4 and use efifb instead.

thanks for clarification.

Quoted 16 lines

Adding Alex and Petr in case more discussion is needed.

Regards,
Andreas

Quoted 5 lines
Quoted 5 lines

The new generic fbdev stuff has slightly more
strict error checking, and the overalloc thing is somewhat of a hack to support mali blobs. If this goes boom now there's a good chance it didn't work beforehand either.
-Daniel

Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel