From: bugzilla-daemon@freedesktop.org Subject: [Bug 105684] Loading amdgpu hits general protection fault: 0000 [#1] SMP NOPTI Date: Mon, 09 Apr 2018 07:30:36 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1615978460==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 5011889B0D for ; Mon, 9 Apr 2018 07:30:36 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1615978460== Content-Type: multipart/alternative; boundary="15232590360.35bB.18546" Content-Transfer-Encoding: 7bit --15232590360.35bB.18546 Date: Mon, 9 Apr 2018 07:30:36 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D105684 --- Comment #15 from jian-hong@endlessm.com --- Created attachment 138692 --> https://bugs.freedesktop.org/attachment.cgi?id=3D138692&action=3Dedit tested with Linux kernel 4.16+ (commit f8cf2f16a7c95acce497bfafa90e7c6d8397d653) I have tried Linux kernel 4.16+ (commit f8cf2f16a7c95acce497bfafa90e7c6d8397d653) and load amdgpu module manually. The error becomes different: "system will hit the NULL pointer dereference = at 0000000000000018" during loading amdgpu module. [ 26.715245] [drm] use_doorbell being set to: [true] [ 26.730536] [drm] Found VCN firmware Version: 1.45 Family ID: 18 [ 26.894292] amdgpu: [powerplay] dpm has been enabled [ 26.896020] [drm] Display Core initialized with v3.1.38! [ 26.896269] BUG: unable to handle kernel NULL pointer dereference at 0000000000000018 [ 26.896274] PGD 0 P4D 0=20 [ 26.896277] Oops: 0000 [#1] SMP NOPTI [ 26.896280] Modules linked in: amdkfd amd_iommu_v2 amdgpu(+) chash gpu_s= ched ttm drm_kms_helper drm i2c_algo_bit fb_sys_fops syscopyarea sysfillrect sysimgblt efi_pstore cmac bnep edac_mce_amd kvm_amd arc4 ccp kvm irqbypass crct10dif_pclmul crc32_pclmul snd_hda_codec_realtek ghash_clmulni_intel snd_hda_codec_generic btusb pcbc snd_hda_codec_hdmi input_leds snd_hda_intel btrtl btbcm btintel bluetooth ecdh_generic snd_hda_codec aesni_intel snd_hda_core ath10k_pci ath10k_core wmi_bmof snd_hwdep aes_x86_64 crypto_si= md cryptd r8169 glue_helper snd_pcm ath mac80211 sparse_keymap cfg80211 snd_ti= mer snd mii wmi soundcore psmouse shpchp i2c_piix4 mac_hid video zram ip_tables x_tables hid_generic serio_raw uas ahci usb_storage libahci usbhid hid [ 26.896324] CPU: 5 PID: 752 Comm: modprobe Not tainted 4.16.0+ #10 [ 26.896326] Hardware name: Acer Aspire TC-380/Aspire TC-380, BIOS D05 02/01/2018 [ 26.896331] RIP: 0010:klist_node_init+0x1c/0x40 [ 26.896333] RSP: 0018:ffffb89e823ef6e0 EFLAGS: 00010246 [ 26.896335] RAX: ffff8bd9732e66f0 RBX: 0000000000000000 RCX: 000000000000121c [ 26.896337] RDX: 000000000000121b RSI: ffff8bd9732e66e8 RDI: 0000000000000000 [ 26.896339] RBP: ffffb89e823ef6f8 R08: 00000000000271a0 R09: 00000000fffffffe [ 26.896341] R10: ffffee228fccbe00 R11: ffff8bd9732fa000 R12: ffff8bd9732e66e8 [ 26.896343] R13: 0000000000000000 R14: ffff8bd98795c000 R15: ffff8bd98d4ef600 [ 26.896346] FS: 00007f75665d7700(0000) GS:ffff8bd99ed40000(0000) knlGS:0000000000000000 [ 26.896348] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 26.896350] CR2: 0000000000000018 CR3: 00000003f7986000 CR4: 00000000003406e0 [ 26.896352] Call Trace: [ 26.896355] ? klist_add_tail+0x18/0x50 [ 26.896360] device_add+0x38d/0x640 [ 26.896363] device_create_groups_vargs+0xe0/0xf0 [ 26.896366] device_create_with_groups+0x3f/0x60 [ 26.896370] ? fb_get_options+0x26/0x180 [ 26.896382] drm_sysfs_connector_add+0x59/0xa0 [drm] [ 26.896392] drm_connector_register.part.9+0x4b/0xb0 [drm] [ 26.896402] drm_connector_register+0x1a/0x20 [drm] [ 26.896455] dm_hw_init+0x854/0xe50 [amdgpu] [ 26.896491] amdgpu_device_init+0x13c5/0x1490 [amdgpu] [ 26.896526] amdgpu_driver_load_kms+0x8b/0x2c0 [amdgpu] [ 26.896535] drm_dev_register+0x149/0x1e0 [drm] [ 26.896571] amdgpu_pci_probe+0x13f/0x1f0 [amdgpu] [ 26.896574] local_pci_probe+0x4a/0xa0 [ 26.896577] pci_device_probe+0x109/0x1b0 [ 26.896580] driver_probe_device+0x2bb/0x4a0 [ 26.896582] __driver_attach+0xe2/0xf0 [ 26.896584] ? driver_probe_device+0x4a0/0x4a0 [ 26.896587] bus_for_each_dev+0x6a/0xc0 [ 26.896590] ? kmem_cache_alloc_trace+0x1c4/0x1d0 [ 26.896592] driver_attach+0x1e/0x20 [ 26.896594] bus_add_driver+0x170/0x260 [ 26.896596] driver_register+0x60/0xe0 [ 26.896599] ? 0xffffffffc0c04000 [ 26.896601] __pci_register_driver+0x5a/0x60 [ 26.896636] amdgpu_init+0x7a/0x89 [amdgpu] [ 26.896639] do_one_initcall+0x55/0x19d [ 26.896642] ? __vunmap+0x81/0xb0 [ 26.896644] ? _cond_resched+0x1a/0x50 [ 26.896646] ? kmem_cache_alloc_trace+0xbb/0x1d0 [ 26.896650] ? do_init_module+0x27/0x219 [ 26.896653] do_init_module+0x5f/0x219 [ 26.896655] load_module+0x260e/0x2e10 [ 26.896659] SYSC_finit_module+0xe5/0x120 [ 26.896662] ? SYSC_finit_module+0xe5/0x120 [ 26.896665] SyS_finit_module+0xe/0x10 [ 26.896667] do_syscall_64+0x73/0x130 --=20 You are receiving this mail because: You are the assignee for the bug.= --15232590360.35bB.18546 Date: Mon, 9 Apr 2018 07:30:36 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comme= nt # 15 on bug 10568= 4 from jian-hong&= #64;endlessm.com
Created attachment 138692 [details]<=
/span>
tested with Linux kernel 4.16+ (commit
f8cf2f16a7c95acce497bfafa90e7c6d8397d653)

I have tried Linux kernel 4.16+ (commit
f8cf2f16a7c95acce497bfafa90e7c6d8397d653) and load amdgpu module manually.
The error becomes different: "system will hit the NULL pointer derefer=
ence at
0000000000000018" during loading amdgpu module.

[   26.715245] [drm] use_doorbell being set to: [true]
[   26.730536] [drm] Found VCN firmware Version: 1.45 Family ID: 18
[   26.894292] amdgpu: [powerplay] dpm has been enabled
[   26.896020] [drm] Display Core initialized with v3.1.38!
[   26.896269] BUG: unable to handle kernel NULL pointer dereference at
0000000000000018
[   26.896274] PGD 0 P4D 0=20
[   26.896277] Oops: 0000 [#1] SMP NOPTI
[   26.896280] Modules linked in: amdkfd amd_iommu_v2 amdgpu(+) chash gpu_s=
ched
ttm drm_kms_helper drm i2c_algo_bit fb_sys_fops syscopyarea sysfillrect
sysimgblt efi_pstore cmac bnep edac_mce_amd kvm_amd arc4 ccp kvm irqbypass
crct10dif_pclmul crc32_pclmul snd_hda_codec_realtek ghash_clmulni_intel
snd_hda_codec_generic btusb pcbc snd_hda_codec_hdmi input_leds snd_hda_intel
btrtl btbcm btintel bluetooth ecdh_generic snd_hda_codec aesni_intel
snd_hda_core ath10k_pci ath10k_core wmi_bmof snd_hwdep aes_x86_64 crypto_si=
md
cryptd r8169 glue_helper snd_pcm ath mac80211 sparse_keymap cfg80211 snd_ti=
mer
snd mii wmi soundcore psmouse shpchp i2c_piix4 mac_hid video zram ip_tables
x_tables hid_generic serio_raw uas ahci usb_storage libahci usbhid hid
[   26.896324] CPU: 5 PID: 752 Comm: modprobe Not tainted 4.16.0+ #10
[   26.896326] Hardware name: Acer Aspire TC-380/Aspire TC-380, BIOS D05
02/01/2018
[   26.896331] RIP: 0010:klist_node_init+0x1c/0x40
[   26.896333] RSP: 0018:ffffb89e823ef6e0 EFLAGS: 00010246
[   26.896335] RAX: ffff8bd9732e66f0 RBX: 0000000000000000 RCX:
000000000000121c
[   26.896337] RDX: 000000000000121b RSI: ffff8bd9732e66e8 RDI:
0000000000000000
[   26.896339] RBP: ffffb89e823ef6f8 R08: 00000000000271a0 R09:
00000000fffffffe
[   26.896341] R10: ffffee228fccbe00 R11: ffff8bd9732fa000 R12:
ffff8bd9732e66e8
[   26.896343] R13: 0000000000000000 R14: ffff8bd98795c000 R15:
ffff8bd98d4ef600
[   26.896346] FS:  00007f75665d7700(0000) GS:ffff8bd99ed40000(0000)
knlGS:0000000000000000
[   26.896348] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   26.896350] CR2: 0000000000000018 CR3: 00000003f7986000 CR4:
00000000003406e0
[   26.896352] Call Trace:
[   26.896355]  ? klist_add_tail+0x18/0x50
[   26.896360]  device_add+0x38d/0x640
[   26.896363]  device_create_groups_vargs+0xe0/0xf0
[   26.896366]  device_create_with_groups+0x3f/0x60
[   26.896370]  ? fb_get_options+0x26/0x180
[   26.896382]  drm_sysfs_connector_add+0x59/0xa0 [drm]
[   26.896392]  drm_connector_register.part.9+0x4b/0xb0 [drm]
[   26.896402]  drm_connector_register+0x1a/0x20 [drm]
[   26.896455]  dm_hw_init+0x854/0xe50 [amdgpu]
[   26.896491]  amdgpu_device_init+0x13c5/0x1490 [amdgpu]
[   26.896526]  amdgpu_driver_load_kms+0x8b/0x2c0 [amdgpu]
[   26.896535]  drm_dev_register+0x149/0x1e0 [drm]
[   26.896571]  amdgpu_pci_probe+0x13f/0x1f0 [amdgpu]
[   26.896574]  local_pci_probe+0x4a/0xa0
[   26.896577]  pci_device_probe+0x109/0x1b0
[   26.896580]  driver_probe_device+0x2bb/0x4a0
[   26.896582]  __driver_attach+0xe2/0xf0
[   26.896584]  ? driver_probe_device+0x4a0/0x4a0
[   26.896587]  bus_for_each_dev+0x6a/0xc0
[   26.896590]  ? kmem_cache_alloc_trace+0x1c4/0x1d0
[   26.896592]  driver_attach+0x1e/0x20
[   26.896594]  bus_add_driver+0x170/0x260
[   26.896596]  driver_register+0x60/0xe0
[   26.896599]  ? 0xffffffffc0c04000
[   26.896601]  __pci_register_driver+0x5a/0x60
[   26.896636]  amdgpu_init+0x7a/0x89 [amdgpu]
[   26.896639]  do_one_initcall+0x55/0x19d
[   26.896642]  ? __vunmap+0x81/0xb0
[   26.896644]  ? _cond_resched+0x1a/0x50
[   26.896646]  ? kmem_cache_alloc_trace+0xbb/0x1d0
[   26.896650]  ? do_init_module+0x27/0x219
[   26.896653]  do_init_module+0x5f/0x219
[   26.896655]  load_module+0x260e/0x2e10
[   26.896659]  SYSC_finit_module+0xe5/0x120
[   26.896662]  ? SYSC_finit_module+0xe5/0x120
[   26.896665]  SyS_finit_module+0xe/0x10
[   26.896667]  do_syscall_64+0x73/0x130


You are receiving this mail because:
  • You are the assignee for the bug.
= --15232590360.35bB.18546-- --===============1615978460== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1615978460==--