Remove custom dumb_map_offset implementations in i915 driver
Subsystems (2)
PATCH v2 1/1 Remove custom dumb_map_offset implementations in i915 driver
Making i915 use drm_gem_create_mmap_offset() instead of its custom implementations for associating GEM object with a fake offset.
--- drivers/gpu/drm/i915/gem/i915_gem_mman.c | 21 --------------------- drivers/gpu/drm/i915/gem/i915_gem_mman.h | 4 ---- drivers/gpu/drm/i915/i915_driver.c | 3 ++- 3 files changed, 2 insertions(+), 26 deletions(-)
drivers/gpu/drm/i915/gem/i915_gem_mman.c +0 -21
@@ -771,27 +771,6 @@ __assign_mmap_offset_handle(struct drm_file *file,return err; } -int -i915_gem_dumb_mmap_offset (struct drm_file *file, -struct drm_device *dev, -u32 handle, -u64 *offset) -{ -struct drm_i915_private *i915 =to_i915 (dev); -enum i915_mmap_type mmap_type; - -if (HAS_LMEM (to_i915 (dev))) - mmap_type =I915_MMAP_TYPE_FIXED ; -else if (pat_enabled ()) - mmap_type =I915_MMAP_TYPE_WC ; -else if (!i915_ggtt_has_aperture (to_gt (i915)->ggtt)) -return -ENODEV ; -else - mmap_type =I915_MMAP_TYPE_GTT ; - -return __assign_mmap_offset_handle (file, handle, mmap_type, offset); -} -/** * i915_gem_mmap_offset_ioctl - prepare an object for GTT mmap'ing * @dev: DRM device
drivers/gpu/drm/i915/gem/i915_gem_mman.h +0 -4
@@ -20,10 +20,6 @@ struct mutex;int i915_gem_mmap_gtt_version (void );int i915_gem_mmap (struct file *filp,struct vm_area_struct *vma); -int i915_gem_dumb_mmap_offset (struct drm_file *file_priv, -struct drm_device *dev, -u32 handle,u64 *offset); -void __i915_gem_object_release_mmap_gtt (struct drm_i915_gem_object *obj);void i915_gem_object_release_mmap_gtt (struct drm_i915_gem_object *obj);
drivers/gpu/drm/i915/i915_driver.c +2 -1
@@ -42,6 +42,7 @@#include <drm/drm_aperture.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_ioctl.h> +#include <drm/drm_gem.h> #include <drm/drm_managed.h> #include <drm/drm_probe_helper.h>
@@ -1826,7 +1827,7 @@ static const struct drm_driver i915_drm_driver = { .gem_prime_import = i915_gem_prime_import, .dumb_create = i915_gem_dumb_create, - .dumb_map_offset = i915_gem_dumb_mmap_offset, + .dumb_map_offset = drm_gem_dumb_map_offset, .ioctls = i915_ioctls, .num_ioctls = ARRAY_SIZE(i915_ioctls),
Signature · 1 line
2.34.1
Patchwork
CI[Intel-gfx] ✗ Fi.CI.BAT: failure for Remove custom dumb_map_offset implementations in i915 driver (rev2)
== Series Details ==
== Series Details ==
Series: Remove custom dumb_map_offset implementations in i915 driver (rev2)
URL : https://patchwork.freedesktop.org/series/126264/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_13863 -> Patchwork_126264v2
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_126264v2 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in Patchwork_126264v2, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/index.html
Participating hosts (33 -> 34)
------------------------------
Additional (1): fi-hsw-4770
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_126264v2:
### IGT changes ###
#### Possible regressions ####
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- fi-elk-e7500: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/fi-elk-e7500/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/fi-elk-e7500/igt@[email protected]
- fi-bsw-nick: [PASS][3] -> [INCOMPLETE][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/fi-bsw-nick/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/fi-bsw-nick/igt@[email protected]
- fi-hsw-4770: NOTRUN -> [INCOMPLETE][5]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/fi-hsw-4770/igt@[email protected]
- fi-ivb-3770: [PASS][6] -> [INCOMPLETE][7]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/fi-ivb-3770/igt@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/fi-ivb-3770/igt@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- fi-blb-e6850: [PASS][8] -> [INCOMPLETE][9]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/fi-blb-e6850/igt@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/fi-blb-e6850/igt@[email protected]
- fi-pnv-d510: [PASS][10] -> [ABORT][11]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/fi-pnv-d510/igt@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/fi-pnv-d510/igt@[email protected]
* igt@kms_cursor_legacy@basic-flip-after-cursor-atomic:
- bat-jsl-3: [PASS][12] -> [INCOMPLETE][13]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/bat-jsl-3/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/bat-jsl-3/igt@[email protected]
- bat-adlp-11: [PASS][14] -> [ABORT][15]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/bat-adlp-11/igt@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/bat-adlp-11/igt@[email protected]
- fi-cfl-8109u: [PASS][16] -> [INCOMPLETE][17]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/fi-cfl-8109u/igt@[email protected]
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/fi-cfl-8109u/igt@[email protected]
- fi-kbl-7567u: [PASS][18] -> [INCOMPLETE][19]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/fi-kbl-7567u/igt@[email protected]
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/fi-kbl-7567u/igt@[email protected]
- bat-adln-1: [PASS][20] -> [INCOMPLETE][21]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/bat-adln-1/igt@[email protected]
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/bat-adln-1/igt@[email protected]
- fi-tgl-1115g4: [PASS][22] -> [INCOMPLETE][23]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/fi-tgl-1115g4/igt@[email protected]
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/fi-tgl-1115g4/igt@[email protected]
- bat-adlp-6: [PASS][24] -> [INCOMPLETE][25]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/bat-adlp-6/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/bat-adlp-6/igt@[email protected]
- fi-cfl-guc: [PASS][26] -> [INCOMPLETE][27]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/fi-cfl-guc/igt@[email protected]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/fi-cfl-guc/igt@[email protected]
- fi-skl-6600u: [PASS][28] -> [INCOMPLETE][29]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/fi-skl-6600u/igt@[email protected]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/fi-skl-6600u/igt@[email protected]
- fi-apl-guc: [PASS][30] -> [INCOMPLETE][31]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/fi-apl-guc/igt@[email protected]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/fi-apl-guc/igt@[email protected]
- fi-glk-j4005: [PASS][32] -> [INCOMPLETE][33]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/fi-glk-j4005/igt@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/fi-glk-j4005/igt@[email protected]
- bat-adlp-9: [PASS][34] -> [INCOMPLETE][35]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/bat-adlp-9/igt@[email protected]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/bat-adlp-9/igt@[email protected]
- fi-skl-guc: [PASS][36] -> [ABORT][37]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/fi-skl-guc/igt@[email protected]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/fi-skl-guc/igt@[email protected]
- fi-cfl-8700k: [PASS][38] -> [INCOMPLETE][39]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/fi-cfl-8700k/igt@[email protected]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/fi-cfl-8700k/igt@[email protected]
- bat-rplp-1: [PASS][40] -> [INCOMPLETE][41]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/bat-rplp-1/igt@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/bat-rplp-1/igt@[email protected]
- fi-rkl-11600: [PASS][42] -> [INCOMPLETE][43]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/fi-rkl-11600/igt@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/fi-rkl-11600/igt@[email protected]
- bat-adls-5: [PASS][44] -> [INCOMPLETE][45]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/bat-adls-5/igt@[email protected]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/bat-adls-5/igt@[email protected]
#### Suppressed ####
The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.
* {igt@kms_dsc@dsc-basic@pipe-c-dp-1}:
- bat-dg2-9: [PASS][46] -> [DMESG-WARN][47]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/bat-dg2-9/igt@kms_dsc@[email protected]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/bat-dg2-9/igt@kms_dsc@[email protected]
Known issues
------------
Here are the changes found in Patchwork_126264v2 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_softpin@allocator-basic-reserve:
- fi-hsw-4770: NOTRUN -> [SKIP][48] ([fdo#109271]) +3 other tests skip
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/fi-hsw-4770/igt@[email protected]
* igt@i915_selftest@live@mman:
- bat-rpls-1: [PASS][49] -> [TIMEOUT][50] ([i915#6794] / [i915#7392])
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/bat-rpls-1/igt@i915_selftest@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/bat-rpls-1/igt@i915_selftest@[email protected]
* igt@i915_suspend@basic-s2idle-without-i915:
- bat-rpls-1: [PASS][51] -> [WARN][52] ([i915#8747])
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13863/bat-rpls-1/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/bat-rpls-1/igt@[email protected]
* igt@kms_addfb_basic@addfb25-y-tiled-small-legacy:
- fi-hsw-4770: NOTRUN -> [SKIP][53] ([fdo#109271] / [i915#5190])
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/fi-hsw-4770/igt@[email protected]
* igt@kms_pipe_crc_basic@nonblocking-crc-frame-sequence:
- bat-dg2-11: NOTRUN -> [SKIP][54] ([i915#1845] / [i915#9197]) +1 other test skip
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/bat-dg2-11/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#5190]: https://gitlab.freedesktop.org/drm/intel/issues/5190
[i915#6794]: https://gitlab.freedesktop.org/drm/intel/issues/6794
[i915#7392]: https://gitlab.freedesktop.org/drm/intel/issues/7392
[i915#8747]: https://gitlab.freedesktop.org/drm/intel/issues/8747
[i915#9197]: https://gitlab.freedesktop.org/drm/intel/issues/9197
Build changes
-------------
* Linux: CI_DRM_13863 -> Patchwork_126264v2
CI-20190529: 20190529
CI_DRM_13863: ba137561f6c6c0e18d87d8ae9ec71f327d6f5168 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_7582: 453b9df12fbc9fff561bdb4eb97992983e74c3d4 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
Patchwork_126264v2: ba137561f6c6c0e18d87d8ae9ec71f327d6f5168 @ git://anongit.freedesktop.org/gfx-ci/linux
### Linux commits
d7a4671a9da8 Remove custom dumb_map_offset implementations in i915 driver
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_126264v2/index.html
kernel test robot
build botkernel test robot noticed "BUG:unable_to_handle_page_fault_for_address" on:
Hello,
kernel test robot noticed "BUG:unable_to_handle_page_fault_for_address" on:
commit: a09fc21ac1126b7a5542d2653aa2c319d3bbf5f4 ("[PATCH v2] Remove custom dumb_map_offset implementations in i915 driver")
url: https://github.com/intel-lab-lkp/linux/commits/Dipam-Turkar/Remove-custom-dumb_map_offset-implementations-in-i915-driver/20231111-024912
base: git://anongit.freedesktop.org/drm-intel for-linux-next
patch link: https://lore.kernel.org/all/[email protected]/
patch subject: [PATCH v2] Remove custom dumb_map_offset implementations in i915 driver
in testcase: phoronix-test-suite
version:
with following parameters:
need_x: true test: x11perf-1.1.1 option_a: 500px PutImage Square cpufreq_governor: performance
compiler: gcc-12
test machine: 12 threads 1 sockets Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz (Coffee Lake) with 32G memory
(please refer to attached dmesg/kmsg for entire log/backtrace)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-lkp/[email protected]
[ 53.192823][ T1574] BUG: unable to handle page fault for address: 0000000000040000 [ 53.200433][ T1574] #PF: supervisor read access in kernel mode [ 53.206290][ T1574] #PF: error_code(0x0000) - not-present page [ 53.212150][ T1574] PGD 0 P4D 0 [ 53.215393][ T1574] Oops: 0000 [#1] SMP PTI [ 53.219598][ T1574] CPU: 0 PID: 1574 Comm: Xorg Tainted: G S 6.6.0-rc7-01630-ga09fc21ac112 #1 [ 53.229545][ T1574] Hardware name: Dell Inc. OptiPlex 7060/0C96W1, BIOS 1.4.2 06/11/2019 [ 53.237674][ T1574] RIP: 0010:i915_gem_mmap (arch/x86/include/asm/atomic.h:23 include/linux/atomic/atomic-arch-fallback.h:444 include/linux/atomic/atomic-instrumented.h:33 include/linux/refcount.h:147 include/linux/refcount.h:152 include/linux/refcount.h:227 include/linux/refcount.h:245 include/linux/kref.h:111 drivers/gpu/drm/i915/gem/i915_gem_object.h:109 drivers/gpu/drm/i915/gem/i915_gem_mman.c:1027) i915 [ 53.239774][ T633] perf: 'sched' is not a perf-command. See 'perf --help'. [ 53.243647][ T1574] Code: 00 85 d2 78 46 85 c9 78 42 31 f6 eb 85 48 83 fb 01 19 c0 83 e0 f7 83 e8 0d e9 f5 fe ff ff 48 8b bb c0 00 00 00 48 85 ff 74 59 <8b> 17 85 d2 74 53 8d 4a 01 89 d0 f0 0f b1 0f 75 59 85 d2 78 22 85 All code ======== 0: 00 85 d2 78 46 85 add %al,-0x7ab9872e(%rbp) 6: c9 leaveq 7: 78 42 js 0x4b 9: 31 f6 xor %esi,%esi b: eb 85 jmp 0xffffffffffffff92 d: 48 83 fb 01 cmp $0x1,%rbx 11: 19 c0 sbb %eax,%eax 13: 83 e0 f7 and $0xfffffff7,%eax 16: 83 e8 0d sub $0xd,%eax 19: e9 f5 fe ff ff jmpq 0xffffffffffffff13 1e: 48 8b bb c0 00 00 00 mov 0xc0(%rbx),%rdi 25: 48 85 ff test %rdi,%rdi 28: 74 59 je 0x83 2a:* 8b 17 mov (%rdi),%edx <-- trapping instruction 2c: 85 d2 test %edx,%edx 2e: 74 53 je 0x83 30: 8d 4a 01 lea 0x1(%rdx),%ecx 33: 89 d0 mov %edx,%eax 35: f0 0f b1 0f lock cmpxchg %ecx,(%rdi) 39: 75 59 jne 0x94 3b: 85 d2 test %edx,%edx 3d: 78 22 js 0x61 3f: 85 .byte 0x85
Code starting with the faulting instruction
===========================================
0: 8b 17 mov (%rdi),%edx 2: 85 d2 test %edx,%edx 4: 74 53 je 0x59 6: 8d 4a 01 lea 0x1(%rdx),%ecx 9: 89 d0 mov %edx,%eax b: f0 0f b1 0f lock cmpxchg %ecx,(%rdi) f: 75 59 jne 0x6a 11: 85 d2 test %edx,%edx 13: 78 22 js 0x37 15: 85 .byte 0x85 [ 53.243649][ T1574] RSP: 0018:ffffc90002117d10 EFLAGS: 00010206 [ 53.243650][ T1574] RAX: 0000000000000001 RBX: ffff88810452de98 RCX: 0000000000100000 [ 53.243651][ T1574] RDX: 0000000000000001 RSI: ffff888877be0000 RDI: 0000000000040000 [ 53.243652][ T1574] RBP: ffff888169b452e0 R08: ffffc90002117cf0 R09: 0000000000000000 [ 53.243653][ T1574] R10: ffff888108e0fe0c R11: 0000000000000008 R12: ffff8888745e0000 [ 53.243653][ T1574] R13: ffff888877be0000 R14: 0000000000100000 R15: ffff888169b452e0 [ 53.243654][ T1574] FS: 00007f200cf59f00(0000) GS:ffff888853600000(0000) knlGS:0000000000000000 [ 53.250665][ T633] [ 53.270183][ T1574] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 53.270184][ T1574] CR2: 0000000000040000 CR3: 0000000107052002 CR4: 00000000003706f0 [ 53.270185][ T1574] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 53.270186][ T1574] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 53.270187][ T1574] Call Trace: [ 53.270189][ T1574] <TASK> [ 53.270191][ T1574] ? __die (arch/x86/kernel/dumpstack.c:421 arch/x86/kernel/dumpstack.c:434) [ 53.276433][ T633] Events disabled [ 53.284111][ T1574] ? page_fault_oops (arch/x86/mm/fault.c:707) [ 53.284114][ T1574] ? exc_page_fault (arch/x86/include/asm/irqflags.h:37 arch/x86/include/asm/irqflags.h:72 arch/x86/mm/fault.c:1513 arch/x86/mm/fault.c:1561) [ 53.284117][ T1574] ? asm_exc_page_fault (arch/x86/include/asm/idtentry.h:570) [ 53.284120][ T1574] ? i915_gem_mmap (arch/x86/include/asm/atomic.h:23 include/linux/atomic/atomic-arch-fallback.h:444 include/linux/atomic/atomic-instrumented.h:33 include/linux/refcount.h:147 include/linux/refcount.h:152 include/linux/refcount.h:227 include/linux/refcount.h:245 include/linux/kref.h:111 drivers/gpu/drm/i915/gem/i915_gem_object.h:109 drivers/gpu/drm/i915/gem/i915_gem_mman.c:1027) i915 [ 53.291999][ T633] [ 53.299843][ T1574] mmap_region (include/linux/fs.h:1961 mm/mmap.c:2754) [ 53.299847][ T1574] do_mmap (mm/mmap.c:1354) [ 53.299848][ T1574] ? apparmor_mmap_file (arch/x86/include/asm/current.h:41 security/apparmor/include/cred.h:76 security/apparmor/include/cred.h:109 security/apparmor/lsm.c:511 security/apparmor/lsm.c:556 security/apparmor/lsm.c:537 security/apparmor/lsm.c:562) [ 53.299851][ T1574] vm_mmap_pgoff (mm/util.c:546) [ 53.409245][ T1574] ksys_mmap_pgoff (mm/mmap.c:1400) [ 53.413900][ T1574] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) [ 53.418192][ T1574] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:120) [ 53.423962][ T1574] RIP: 0033:0x7f200d4b40b2 [ 53.428264][ T1574] Code: 0f 1f 84 00 00 00 00 00 41 f7 c1 ff 0f 00 00 75 27 55 48 89 fd 53 89 cb 48 85 ff 74 3b 41 89 da 48 89 ef b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 66 5b 5d c3 0f 1f 00 48 8b 05 a9 3d 0c 00 64
All code
========
0: 0f 1f 84 00 00 00 00 nopl 0x0(%rax,%rax,1)
7: 00
8: 41 f7 c1 ff 0f 00 00 test $0xfff,%r9d f: 75 27 jne 0x38 11: 55 push %rbp 12: 48 89 fd mov %rdi,%rbp 15: 53 push %rbx 16: 89 cb mov %ecx,%ebx 18: 48 85 ff test %rdi,%rdi 1b: 74 3b je 0x58 1d: 41 89 da mov %ebx,%r10d 20: 48 89 ef mov %rbp,%rdi 23: b8 09 00 00 00 mov $0x9,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 66 ja 0x98 32: 5b pop %rbx 33: 5d pop %rbp 34: c3 retq 35: 0f 1f 00 nopl (%rax)
38: 48 8b 05 a9 3d 0c 00 mov 0xc3da9(%rip),%rax # 0xc3de8
3f: 64 fs
Code starting with the faulting instruction
===========================================
0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 66 ja 0x6e 8: 5b pop %rbx 9: 5d pop %rbp a: c3 retq b: 0f 1f 00 nopl (%rax)
e: 48 8b 05 a9 3d 0c 00 mov 0xc3da9(%rip),%rax # 0xc3dbe
15: 64 fs
The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20231113/[email protected]
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Jani Nikula
maintainerQuoted 2 lines · Dipam Turkar
Making i915 use
drm_gem_create_mmap_offset()instead of its custom implementations for associating GEM object with a fake offset.
It would probably help a lot if your commit messages explained what you are trying to achieve and, especially, why. This only describes the patch in English.
BR,
Jani.
Quoted 76 lines
Signed-off-by Dipam Turkar <[email protected]>--- drivers/gpu/drm/i915/gem/i915_gem_mman.c | 21 --------------------- drivers/gpu/drm/i915/gem/i915_gem_mman.h | 4 ---- drivers/gpu/drm/i915/i915_driver.c | 3 ++- 3 files changed, 2 insertions(+), 26 deletions(-)drivers/gpu/drm/i915/gem/i915_gem_mman.c +0
-21@@ -771,27 +771,6 @@ __assign_mmap_offset_handle(struct drm_file *file,return err; } -int -i915_gem_dumb_mmap_offset (struct drm_file *file, -struct drm_device *dev, -u32 handle, -u64 *offset) -{ -struct drm_i915_private *i915 =to_i915 (dev); -enum i915_mmap_type mmap_type; - -if (HAS_LMEM (to_i915 (dev))) - mmap_type =I915_MMAP_TYPE_FIXED ; -else if (pat_enabled ()) - mmap_type =I915_MMAP_TYPE_WC ; -else if (!i915_ggtt_has_aperture (to_gt (i915)->ggtt)) -return -ENODEV ; -else - mmap_type =I915_MMAP_TYPE_GTT ; - -return __assign_mmap_offset_handle (file, handle, mmap_type, offset); -} -/** * i915_gem_mmap_offset_ioctl - prepare an object for GTT mmap'ing * @dev: DRM device drivers/gpu/drm/i915/gem/i915_gem_mman.h +0
-4@@ -20,10 +20,6 @@ struct mutex;int i915_gem_mmap_gtt_version (void );int i915_gem_mmap (struct file *filp,struct vm_area_struct *vma); -int i915_gem_dumb_mmap_offset (struct drm_file *file_priv, -struct drm_device *dev, -u32 handle,u64 *offset); -void __i915_gem_object_release_mmap_gtt (struct drm_i915_gem_object *obj);void i915_gem_object_release_mmap_gtt (struct drm_i915_gem_object *obj);drivers/gpu/drm/i915/i915_driver.c +2
-1@@ -42,6 +42,7 @@#include <drm/drm_aperture.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_ioctl.h> +#include <drm/drm_gem.h> #include <drm/drm_managed.h> #include <drm/drm_probe_helper.h> @@ -1826,7 +1827,7 @@ static const struct drm_driver i915_drm_driver = { .gem_prime_import = i915_gem_prime_import, .dumb_create = i915_gem_dumb_create, - .dumb_map_offset = i915_gem_dumb_mmap_offset, + .dumb_map_offset = drm_gem_dumb_map_offset, .ioctls = i915_ioctls, .num_ioctls = ARRAY_SIZE(i915_ioctls),
Signature · 1 line
Jani Nikula, Intel