@Loic @robclark : I’m trying to get a db820c running on a recent 5.4 or 5.5rc kernel, and I seem to have it working, more or less, except for the graphics.
- I’m trying both using Linaro/Debian and AOSP master.
- I’ve tried android common kernel, mainline, and msm-next.
I’m working blind, having very little understanding of how the pieces fit together.
This is the crash I’m seeing, which is the same from msm-next as well as 5.5rc6, I don’t know what it means or how to approach it. Help would be appreciated.
For clarity, the log below is NOT from 4.14.0, that’s just set with the KERNELRELEASE variable.
[ 25.980419] adreno b00000.gpu: Adding to iommu group 0
[ 25.982417] msm_mdp 901000.mdp: Adding to iommu group 1
[ 25.984646] msm_mdp 901000.mdp: No interconnect support may cause display underflows!
[ 25.993566] msm 900000.mdss: 900000.mdss supply vdd not found, using dummy regulator
[ 25.998197] msm_mdp 901000.mdp: [drm:mdp5_bind] MDP5 version v1.7
[ 26.005477] msm 900000.mdss: bound 901000.mdp (ops mdp5_ops)
[ 26.012463] msm 900000.mdss: bound 9a0000.hdmi-tx (ops msm_hdmi_ops)
[ 26.017217] ------------[ cut here ]------------
[ 26.023421] WARNING: CPU: 0 PID: 1 at drivers/opp/of.c:688 _of_add_opp_table_v2.part.8+0x49c/0x570
[ 26.028015] Modules linked in:
[ 26.036781] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.0-qcomlt-arm64 #1
[ 26.039819] Hardware name: Qualcomm Technologies, Inc. DB820c (DT)
[ 26.047024] pstate: 20000005 (nzCv daif -PAN -UAO)
[ 26.053011] pc : _of_add_opp_table_v2.part.8+0x49c/0x570
[ 26.057786] lr : _of_add_opp_table_v2.part.8+0x288/0x570
[ 26.063252] sp : ffff80001003b730
[ 26.068548] x29: ffff80001003b730 x28: ffff0000f716c000
[ 26.071760] x27: fffffffffffffdfb x26: 0000000000000004
[ 26.077142] x25: ffff0000f716b000 x24: ffff0000f8881810
[ 26.082437] x23: ffff0000f713b000 x22: 0000000000000000
[ 26.087732] x21: ffff800011c1e0f8 x20: ffff0000f713b000
[ 26.093026] x19: ffff0000f713ac00 x18: ffffffffffffffff
[ 26.098322] x17: 0000000000000001 x16: 0000000000000000
[ 26.103618] x15: ffff8000119c98c8 x14: ffffffffffffffff
[ 26.108912] x13: 0000000000000028 x12: 0000000000000030
[ 26.114208] x11: 0000000000000028 x10: 0101010101010101
[ 26.119502] x9 : 0000000000000003 x8 : 7f7f7f7f7f7f7f7f
[ 26.124797] x7 : ffff0000fd0a0000 x6 : 00000000003b0d00
[ 26.130092] x5 : ffff0000fdcb0740 x4 : 0000000000000000
[ 26.135389] x3 : 0000000000000002 x2 : 0000000000000000
[ 26.140683] x1 : ffff0000fd0a0000 x0 : 0000000000000000
[ 26.145980] Call trace:
[ 26.151277] _of_add_opp_table_v2.part.8+0x49c/0x570
[ 26.153446] dev_pm_opp_of_add_table+0x44/0x1f0
[ 26.158656] adreno_gpu_init+0xc8/0x2d8
[ 26.162907] a5xx_gpu_init+0xf8/0x1c8
[ 26.166724] adreno_bind+0x1c8/0x290
[ 26.170547] component_bind_all+0xf8/0x288
[ 26.174193] msm_drm_bind+0x100/0x620
[ 26.178097] try_to_bring_up_master+0x178/0x1d8
[ 26.181829] component_master_add_with_match+0xb0/0x100
[ 26.186172] msm_pdev_probe+0x268/0x330
[ 26.191380] platform_drv_probe+0x50/0xa0
[ 26.195198] really_probe+0x108/0x348
[ 26.199362] driver_probe_device+0x58/0x100
[ 26.203011] device_driver_attach+0x6c/0x90
[ 26.207001] __driver_attach+0x84/0xc8
[ 26.211173] bus_for_each_dev+0x74/0xc8
[ 26.214990] driver_attach+0x20/0x28
[ 26.218721] bus_add_driver+0x148/0x1f0
[ 26.222541] driver_register+0x60/0x110
[ 26.226099] __platform_driver_register+0x40/0x48
[ 26.229926] msm_drm_register+0x50/0x64
[ 26.234783] do_one_initcall+0x5c/0x1b0
[ 26.238430] kernel_init_freeable+0x1a0/0x214
[ 26.242250] kernel_init+0x10/0x108
[ 26.246760] ret_from_fork+0x10/0x18
[ 26.250064] ---[ end trace b72e1718b76e5ec9 ]---
[ 26.253958] adreno b00000.gpu: [drm:adreno_gpu_init] *ERROR* Unable to set the OPP table
[ 26.258518] adreno b00000.gpu: Could not find a clock rate. Using a reasonable default
[ 26.266832] adreno b00000.gpu: b00000.gpu supply vdd not found, using dummy regulator
[ 26.274393] adreno b00000.gpu: b00000.gpu supply vddcx not found, using dummy regulator
[ 26.282256] adreno b00000.gpu: [drm:msm_gpu_init] *ERROR* Couldn't initialize GPU devfreq
[ 26.290020] msm 900000.mdss: [drm:msm_gpu_init] A530: using IOMMU
[ 26.299993] msm 900000.mdss: bound b00000.gpu (ops a3xx_ops)
[ 26.428661] msm_mdp 901000.mdp: [drm:mdp5_kms_init] *ERROR* modeset_init failed: -16
[ 26.429210] msm 900000.mdss: [drm:msm_drm_bind] *ERROR* failed to load kms
[ 26.435562] ------------[ cut here ]------------
[ 26.442146] WARNING: CPU: 0 PID: 1 at drivers/gpu/drm/drm_gem.c:1037 drm_gem_object_put+0x84/0xa0
[ 26.446915] Modules linked in:
[ 26.455681] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 4.14.0-qcomlt-arm64 #1
[ 26.458635] Hardware name: Qualcomm Technologies, Inc. DB820c (DT)
[ 26.467227] pstate: 40000005 (nZcv daif -PAN -UAO)
[ 26.473214] pc : drm_gem_object_put+0x84/0xa0
[ 26.477988] lr : drm_gem_object_put+0x20/0xa0
[ 26.482413] sp : ffff80001003b870
[ 26.486754] x29: ffff80001003b870 x28: ffff0000f716c000
[ 26.490053] x27: 0000000000000000 x26: ffff80001147e9d8
[ 26.495435] x25: ffff0000f7110a80 x24: 0000000000000000
[ 26.500731] x23: ffff0000f710f3a0 x22: ffff0000f716b000
[ 26.506025] x21: 0000000000000001 x20: ffff0000f712ee00
[ 26.511320] x19: ffff0000f712fa00 x18: 0000000000000004
[ 26.516615] x17: 0000000000000001 x16: 0000000000000000
[ 26.521911] x15: ffff0000f716b1f8 x14: ffff0000f8e1c7f0
[ 26.527206] x13: 0000000000000000 x12: ffff0000f716b1f8
[ 26.532501] x11: ffff0000f8e1c6d8 x10: 0000000000000000
[ 26.537796] x9 : ffff8000119c98c8 x8 : ffff800011c1e000
[ 26.543091] x7 : 0000000000000000 x6 : 000000002525086d
[ 26.548387] x5 : 00ffffffffffffff x4 : ffff0000fd0a0000
[ 26.553681] x3 : ffff0000f712fba8 x2 : 0000000000000000
[ 26.558977] x1 : 0000000000000000 x0 : 0000000000000000
[ 26.564274] Call trace:
[ 26.569567] drm_gem_object_put+0x84/0xa0
[ 26.571740] msm_gem_kernel_put+0x5c/0x70
[ 26.575908] a5xx_preempt_fini+0x3c/0x60
[ 26.579897] a5xx_destroy+0x2c/0x90
[ 26.583890] adreno_unbind+0x28/0x40
[ 26.587104] component_unbind.isra.9+0x2c/0x50
[ 26.590922] component_unbind_all+0xd0/0xf8
[ 26.595176] msm_drm_uninit+0x10c/0x190
[ 26.599254] msm_drm_bind+0x1dc/0x620
[ 26.603074] try_to_bring_up_master+0x178/0x1d8
[ 26.606895] component_master_add_with_match+0xb0/0x100
[ 26.611236] msm_pdev_probe+0x268/0x330
[ 26.616445] platform_drv_probe+0x50/0xa0
[ 26.620262] really_probe+0x108/0x348
[ 26.624427] driver_probe_device+0x58/0x100
[ 26.628074] device_driver_attach+0x6c/0x90
[ 26.632067] __driver_attach+0x84/0xc8
[ 26.636235] bus_for_each_dev+0x74/0xc8
[ 26.640055] driver_attach+0x20/0x28
[ 26.643787] bus_add_driver+0x148/0x1f0
[ 26.647604] driver_register+0x60/0x110
[ 26.651163] __platform_driver_register+0x40/0x48
[ 26.654990] msm_drm_register+0x50/0x64
[ 26.659847] do_one_initcall+0x5c/0x1b0
[ 26.663494] kernel_init_freeable+0x1a0/0x214
[ 26.667314] kernel_init+0x10/0x108
[ 26.671825] ret_from_fork+0x10/0x18
[ 26.675124] ---[ end trace b72e1718b76e5eca ]---
[ 26.679053] ------------[ cut here ]------------
[ 26.683550] WARNING: CPU: 0 PID: 1 at drivers/gpu/drm/drm_gem.c:1037 drm_gem_object_put+0x84/0xa0
[ 26.688148] Modules linked in:
[ 26.696911] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 4.14.0-qcomlt-arm64 #1
[ 26.699866] Hardware name: Qualcomm Technologies, Inc. DB820c (DT)
[ 26.708459] pstate: 40000005 (nZcv daif -PAN -UAO)
[ 26.714447] pc : drm_gem_object_put+0x84/0xa0
[ 26.719222] lr : drm_gem_object_put+0x20/0xa0
[ 26.723647] sp : ffff80001003b870
[ 26.727986] x29: ffff80001003b870 x28: ffff0000f716c000
[ 26.731287] x27: 0000000000000000 x26: ffff80001147e9d8
[ 26.736669] x25: ffff0000f7110a80 x24: 0000000000000000
[ 26.741964] x23: ffff0000f710f3a0 x22: ffff0000f716b000
[ 26.747259] x21: 0000000000000001 x20: ffff0000f712ee00
[ 26.752555] x19: ffff0000f712fc00 x18: 0000000000000004
[ 26.757849] x17: 0000000000000001 x16: 0000000000000000
[ 26.763145] x15: ffff0000f716b1f8 x14: ffff0000f8e1c7f0
[ 26.768439] x13: 0000000000000000 x12: ffff0000f716b1f8
[ 26.773735] x11: ffff0000f8e1c6d8 x10: 0000000000000000
[ 26.779030] x9 : ffff8000119c98c8 x8 : ffff800011c1e000
[ 26.784325] x7 : 0000000000000000 x6 : ffff0000f8944638
[ 26.789621] x5 : ffff0000f8944638 x4 : ffff0000fd0a0000
[ 26.794916] x3 : ffff0000f712fda8 x2 : 0000000000000000
[ 26.800211] x1 : 0000000000000000 x0 : 0000000000000000
[ 26.805505] Call trace:
[ 26.810800] drm_gem_object_put+0x84/0xa0
[ 26.812972] msm_gem_kernel_put+0x5c/0x70
[ 26.817138] a5xx_preempt_fini+0x3c/0x60
[ 26.821130] a5xx_destroy+0x2c/0x90
[ 26.825123] adreno_unbind+0x28/0x40
[ 26.828335] component_unbind.isra.9+0x2c/0x50
[ 26.832154] component_unbind_all+0xd0/0xf8
[ 26.836409] msm_drm_uninit+0x10c/0x190
[ 26.840488] msm_drm_bind+0x1dc/0x620
[ 26.844307] try_to_bring_up_master+0x178/0x1d8
[ 26.848128] component_master_add_with_match+0xb0/0x100
[ 26.852469] msm_pdev_probe+0x268/0x330
[ 26.857675] platform_drv_probe+0x50/0xa0
[ 26.861495] really_probe+0x108/0x348
[ 26.865661] driver_probe_device+0x58/0x100
[ 26.869307] device_driver_attach+0x6c/0x90
[ 26.873300] __driver_attach+0x84/0xc8
[ 26.877468] bus_for_each_dev+0x74/0xc8
[ 26.881287] driver_attach+0x20/0x28
[ 26.885020] bus_add_driver+0x148/0x1f0
[ 26.888839] driver_register+0x60/0x110
[ 26.892396] __platform_driver_register+0x40/0x48
[ 26.896219] msm_drm_register+0x50/0x64
[ 26.901078] do_one_initcall+0x5c/0x1b0
[ 26.904725] kernel_init_freeable+0x1a0/0x214
[ 26.908543] kernel_init+0x10/0x108
[ 26.913057] ret_from_fork+0x10/0x18
[ 26.916355] ---[ end trace b72e1718b76e5ecb ]---
[ 26.920243] ------------[ cut here ]------------
[ 26.924781] WARNING: CPU: 0 PID: 1 at drivers/gpu/drm/drm_gem.c:1037 drm_gem_object_put+0x84/0xa0
[ 26.929381] Modules linked in:
[ 26.938144] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 4.14.0-qcomlt-arm64 #1
[ 26.941100] Hardware name: Qualcomm Technologies, Inc. DB820c (DT)
[ 26.949691] pstate: 40000005 (nZcv daif -PAN -UAO)
[ 26.955680] pc : drm_gem_object_put+0x84/0xa0
[ 26.960454] lr : drm_gem_object_put+0x20/0xa0
[ 26.964880] sp : ffff80001003b870
[ 26.969220] x29: ffff80001003b870 x28: ffff0000f716c000
[ 26.972518] x27: 0000000000000000 x26: ffff80001147e9d8
[ 26.977901] x25: ffff0000f7110a80 x24: 0000000000000000
[ 26.983197] x23: ffff0000f710f3a0 x22: ffff0000f716b000
[ 26.988492] x21: 0000000000000001 x20: ffff0000f712ee00
[ 26.993786] x19: ffff0000f712fe00 x18: 0000000000000004
[ 26.999082] x17: 0000000000000001 x16: 0000000000000000
[ 27.004377] x15: ffff0000f716b1f8 x14: ffff0000f8e1c7f0
[ 27.009673] x13: 0000000000000000 x12: ffff0000f716b1f8
[ 27.014968] x11: ffff0000f8e1c6d8 x10: 0000000000000040
[ 27.020262] x9 : ffff8000119df528 x8 : ffff8000119df520
[ 27.025558] x7 : ffff0000f8c00068 x6 : ffff0000f8944638
[ 27.030853] x5 : ffff0000f8944638 x4 : ffff0000fd0a0000
[ 27.036148] x3 : ffff0000f712ffa8 x2 : 0000000000000000
[ 27.041444] x1 : 0000000000000000 x0 : 0000000000000000
[ 27.046738] Call trace:
[ 27.052032] drm_gem_object_put+0x84/0xa0
[ 27.054206] msm_gem_kernel_put+0x5c/0x70
[ 27.058370] a5xx_preempt_fini+0x3c/0x60
[ 27.062362] a5xx_destroy+0x2c/0x90
[ 27.066355] adreno_unbind+0x28/0x40
[ 27.069567] component_unbind.isra.9+0x2c/0x50
[ 27.073388] component_unbind_all+0xd0/0xf8
[ 27.077640] msm_drm_uninit+0x10c/0x190
[ 27.081721] msm_drm_bind+0x1dc/0x620
[ 27.085541] try_to_bring_up_master+0x178/0x1d8
[ 27.089361] component_master_add_with_match+0xb0/0x100
[ 27.093701] msm_pdev_probe+0x268/0x330
[ 27.098908] platform_drv_probe+0x50/0xa0
[ 27.102727] really_probe+0x108/0x348
[ 27.106893] driver_probe_device+0x58/0x100
[ 27.110540] device_driver_attach+0x6c/0x90
[ 27.114533] __driver_attach+0x84/0xc8
[ 27.118701] bus_for_each_dev+0x74/0xc8
[ 27.122520] driver_attach+0x20/0x28
[ 27.126252] bus_add_driver+0x148/0x1f0
[ 27.130071] driver_register+0x60/0x110
[ 27.133630] __platform_driver_register+0x40/0x48
[ 27.137451] msm_drm_register+0x50/0x64
[ 27.142310] do_one_initcall+0x5c/0x1b0
[ 27.145957] kernel_init_freeable+0x1a0/0x214
[ 27.149777] kernel_init+0x10/0x108
[ 27.154290] ret_from_fork+0x10/0x18
[ 27.157587] ---[ end trace b72e1718b76e5ecc ]---
[ 27.161498] ------------[ cut here ]------------
[ 27.166013] WARNING: CPU: 0 PID: 1 at drivers/gpu/drm/drm_gem.c:1037 drm_gem_object_put+0x84/0xa0
[ 27.170613] Modules linked in:
[ 27.179377] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 4.14.0-qcomlt-arm64 #1
[ 27.182333] Hardware name: Qualcomm Technologies, Inc. DB820c (DT)
[ 27.190924] pstate: 40000005 (nZcv daif -PAN -UAO)
[ 27.196913] pc : drm_gem_object_put+0x84/0xa0
[ 27.201686] lr : drm_gem_object_put+0x20/0xa0
[ 27.206112] sp : ffff80001003b870
[ 27.210451] x29: ffff80001003b870 x28: ffff0000f716c000
[ 27.213752] x27: 0000000000000000 x26: ffff80001147e9d8
[ 27.219134] x25: ffff0000f7110a80 x24: 0000000000000000
[ 27.224430] x23: ffff0000f710f3a0 x22: ffff0000f716b000
[ 27.229725] x21: 0000000000000001 x20: ffff0000f712ee00
[ 27.235020] x19: ffff0000f71ea000 x18: 0000000000000004
[ 27.240314] x17: 0000000000000001 x16: 0000000000000000
[ 27.245610] x15: ffff0000f716b1f8 x14: ffff0000f8e1c7f0
[ 27.250905] x13: 0000000000000000 x12: ffff0000f716b1f8
[ 27.256200] x11: ffff0000f8e1c6d8 x10: 0000000000000040
[ 27.261495] x9 : ffff8000119df528 x8 : ffff8000119df520
[ 27.266791] x7 : ffff0000f8c00068 x6 : ffff0000f8944638
[ 27.272086] x5 : ffff0000f8944638 x4 : ffff0000fd0a0000
[ 27.277380] x3 : ffff0000f71ea1a8 x2 : 0000000000000000
[ 27.282676] x1 : 0000000000000000 x0 : 0000000000000000
[ 27.287971] Call trace:
[ 27.293264] drm_gem_object_put+0x84/0xa0
[ 27.295437] msm_gem_kernel_put+0x5c/0x70
[ 27.299604] a5xx_preempt_fini+0x3c/0x60
[ 27.303596] a5xx_destroy+0x2c/0x90
[ 27.307588] adreno_unbind+0x28/0x40
[ 27.310800] component_unbind.isra.9+0x2c/0x50
[ 27.314621] component_unbind_all+0xd0/0xf8
[ 27.318875] msm_drm_uninit+0x10c/0x190
[ 27.322953] msm_drm_bind+0x1dc/0x620
[ 27.326772] try_to_bring_up_master+0x178/0x1d8
[ 27.330593] component_master_add_with_match+0xb0/0x100
[ 27.334933] msm_pdev_probe+0x268/0x330
[ 27.340141] platform_drv_probe+0x50/0xa0
[ 27.343961] really_probe+0x108/0x348
[ 27.348126] driver_probe_device+0x58/0x100
[ 27.351772] device_driver_attach+0x6c/0x90
[ 27.355765] __driver_attach+0x84/0xc8
[ 27.359934] bus_for_each_dev+0x74/0xc8
[ 27.363752] driver_attach+0x20/0x28
[ 27.367486] bus_add_driver+0x148/0x1f0
[ 27.371304] driver_register+0x60/0x110
[ 27.374863] __platform_driver_register+0x40/0x48
[ 27.378684] msm_drm_register+0x50/0x64
[ 27.383543] do_one_initcall+0x5c/0x1b0
[ 27.387189] kernel_init_freeable+0x1a0/0x214
[ 27.391010] kernel_init+0x10/0x108
[ 27.395523] ret_from_fork+0x10/0x18
[ 27.398820] ---[ end trace b72e1718b76e5ecd ]---
[ 27.405984] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
[ 27.407526] Mem abort info:
[ 27.417438] ESR = 0x96000004
[ 27.418794] EC = 0x25: DABT (current EL), IL = 32 bits
[ 27.422391] SET = 0, FnV = 0
[ 27.427901] EA = 0, S1PTW = 0
[ 27.430579] Data abort info:
[ 27.433768] ISV = 0, ISS = 0x00000004
[ 27.436359] CM = 0, WnR = 0
[ 27.440417] user pgtable: 4k pages, 48-bit VAs, pgdp=0000000178929000
[ 27.443473] [0000000000000000] pgd=0000000000000000
[ 27.449996] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[ 27.454174] Modules linked in:
[ 27.459847] CPU: 2 PID: 163 Comm: kworker/u8:2 Tainted: G W 4.14.0-qcomlt-arm64 #1
[ 27.462900] Hardware name: Qualcomm Technologies, Inc. DB820c (DT)
[ 27.472121] Workqueue: msm msm_gem_free_work
[ 27.477934] pstate: 80000005 (Nzcv daif -PAN -UAO)
[ 27.482402] pc : _raw_write_lock_irqsave+0x1f8/0x2b4
[ 27.487068] lr : drm_vma_offset_remove+0x18/0x70
[ 27.492010] sp : ffff800012723d20
[ 27.496615] x29: ffff800012723d20 x28: 0000000000000000
[ 27.499834] x27: 0000000000000000 x26: ffff0000f716b068
[ 27.505205] x25: 0000000000000000 x24: ffff0000f716c0a8
[ 27.510508] x23: dead000000000100 x22: dead000000000122
[ 27.515796] x21: 0000000000000000 x20: ffff0000f712f018
[ 27.521097] x19: ffff0000f712f000 x18: 0000000000000000
[ 27.526382] x17: 0000000000000000 x16: 0000000000000000
[ 27.531681] x15: 0000000000000000 x14: 0000000000000000
[ 27.536984] x13: 0000000000000400 x12: 0000000000000000
[ 27.542269] x11: 0000000000000000 x10: 0000000000000000
[ 27.547569] x9 : 0000000000000000 x8 : 0000000040000000
[ 27.552864] x7 : 0000000000000000 x6 : ffff0000fdc34438
[ 27.558151] x5 : 0000000000000200 x4 : 0000000000000200
[ 27.563447] x3 : 0000000000000000 x2 : 00000000000000ff
[ 27.568742] x1 : 0000000000000000 x0 : 0000000000000000
[ 27.574041] Call trace:
[ 27.579421] _raw_write_lock_irqsave+0x1f8/0x2b4
[ 27.581632] drm_vma_offset_remove+0x18/0x70
[ 27.586506] drm_gem_object_release+0x3c/0x50
[ 27.590752] msm_gem_free_work+0x94/0x150
[ 27.594999] process_one_work+0x1e0/0x358
[ 27.598945] worker_thread+0x40/0x488
[ 27.602997] kthread+0x118/0x120
[ 27.606594] ret_from_fork+0x10/0x18
[ 27.610039] Code: 88047c62 35ffff84 17fffe92 f9800071 (885ffc60)
[ 27.613539] ---[ end trace b72e1718b76e5ece ]---