Skip to content

Commit 221bd0d

Browse files
committed
ODROID-COMMON: gpu/drm: remove 'drm_getunique'
[ 17.429209] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000018 [ 17.430106] Mem abort info: [ 17.430399] ESR = 0x96000005 [ 17.430717] EC = 0x25: DABT (current EL), IL = 32 bits [ 17.431252] SET = 0, FnV = 0 [ 17.431567] EA = 0, S1PTW = 0 [ 17.431962] Data abort info: [ 17.432278] ISV = 0, ISS = 0x00000005 [ 17.432683] CM = 0, WnR = 0 [ 17.433006] user pgtable: 4k pages, 39-bit VAs, pgdp=00000001023fa000 [ 17.433674] [0000000000000018] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000 [ 17.434575] Internal error: Oops: 96000005 [#1] SMP [ 17.435107] Modules linked in: panfrost gpu_sched [ 17.435629] CPU: 3 PID: 537 Comm: kmscube Not tainted 5.10.160-odroid-arm64 #29 [ 17.436372] Hardware name: Hardkernel ODROID-M1S (DT) [ 17.436885] pstate: 40400009 (nZcv daif +PAN -UAO -TCO BTYPE=--) [ 17.437496] pc : drm_getunique+0x38/0x98 [ 17.437893] lr : drm_getunique+0x30/0x98 [ 17.438288] sp : ffffffc00a5a3c20 [ 17.438629] x29: ffffffc00a5a3c20 x28: 0000000000000010 [ 17.439170] x27: 0000000000000010 x26: 0000007fd9927178 [ 17.439708] x25: 00000000c0106401 x24: ffffffc00a5a3d28 [ 17.440246] x23: ffffffc008614940 x22: ffffff8101e9c400 [ 17.440784] x21: 0000000000000000 x20: ffffffc00a5a3d28 [ 17.441322] x19: ffffff8101d418d0 x18: 0000000000000000 [ 17.441870] x17: 0000000000000000 x16: 0000000000000000 [ 17.442414] x15: 0000007fd9927178 x14: 0000000000000000 [ 17.442954] x13: 0000000000000000 x12: 0000000000000000 [ 17.443492] x11: 0000000000000000 x10: 0000000000000000 [ 17.444030] x9 : 0000000000000000 x8 : 0000000000000000 [ 17.444568] x7 : 0000000000000000 x6 : ffffffc00a5a3d38 [ 17.445126] x5 : ffffffc00a5a3d38 x4 : 0000000000000000 [ 17.445673] x3 : 0000000000000000 x2 : ffffff8104586040 [ 17.446214] x1 : 0000000000000000 x0 : 0000000000000000 [ 17.446755] Call trace: [ 17.449662] drm_getunique+0x38/0x98 [ 17.452686] drm_ioctl_kernel+0xb0/0x100 [ 17.455693] drm_ioctl+0x304/0x344 [ 17.458665] vfs_ioctl+0x58/0x68 [ 17.461652] __arm64_sys_ioctl+0x68/0x98 [ 17.464682] el0_svc_common.constprop.4+0x134/0x1a8 [ 17.467779] do_el0_svc+0x80/0x9c [ 17.470702] el0_svc+0x1c/0x28 [ 17.473592] el0_sync_handler+0x64/0x12c [ 17.476503] el0_sync+0x158/0x180 Signed-off-by: Dongjin Kim <[email protected]> Change-Id: I85f7c2d192057dbbeca516b1a7a6dd48c0d5bf01
1 parent 37b5e76 commit 221bd0d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/drm_ioctl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,9 @@ EXPORT_SYMBOL(drm_ioctl_permit);
585585
/* Ioctl table */
586586
static const struct drm_ioctl_desc drm_ioctls[] = {
587587
DRM_IOCTL_DEF(DRM_IOCTL_VERSION, drm_version, DRM_RENDER_ALLOW),
588+
#if !IS_ENABLED(CONFIG_DRM_PANFROST)
588589
DRM_IOCTL_DEF(DRM_IOCTL_GET_UNIQUE, drm_getunique, 0),
590+
#endif
589591
DRM_IOCTL_DEF(DRM_IOCTL_GET_MAGIC, drm_getmagic, 0),
590592
DRM_IOCTL_DEF(DRM_IOCTL_IRQ_BUSID, drm_irq_by_busid, DRM_MASTER|DRM_ROOT_ONLY),
591593

0 commit comments

Comments
 (0)