[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
** Also affects: linux Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579374 Title: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU To manage notifications about this bug go to: https://bugs.launchpad.net/linux/+bug/1579374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
Filed a new report as suggested https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1656649 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579374 Title: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
** Tags removed: kernel-fixed-upstream ** Tags added: needs-upstream-testing yakkety ** Description changed: A Dell Inspiron 5448 / 0YDTG3 laptop (BIOS A06 10/12/2015), which used to work well with Ubuntu trusty and Ubuntu wily releases (using fglrx driver), has an issue in Xenial where when the amdgpu driver tries to activate the Radeon GPU, a NULL pointer dereference occurs, causing the caller process to hang. This practically causes the system to hang when trying a logoff or shutdown. The bug can be easily reproduced by calling: DRI_PRIME=1 glxgears Which hangs the glxgears process and causes the stacktrace attached below. ---[cut]--- $ dmesg [...] [ 129.188685] [drm] PCIE GART of 2048M enabled (table at 0x0004). [ 129.429667] [drm] ring test on 0 succeeded in 14 usecs [ 131.087501] [drm:gfx_v8_0_ring_test_ring [amdgpu]] *ERROR* amdgpu: cp failed to lock ring 1 (-2). [ 131.087520] [drm:gfx_v8_0_ring_test_ring [amdgpu]] *ERROR* amdgpu: cp failed to lock ring 2 (-2). [ 131.087533] [drm:gfx_v8_0_ring_test_ring [amdgpu]] *ERROR* amdgpu: cp failed to lock ring 3 (-2). [ 131.087547] [drm:gfx_v8_0_ring_test_ring [amdgpu]] *ERROR* amdgpu: cp failed to lock ring 4 (-2). [ 131.087558] [drm:gfx_v8_0_ring_test_ring [amdgpu]] *ERROR* amdgpu: cp failed to lock ring 5 (-2). [ 131.087571] [drm:gfx_v8_0_ring_test_ring [amdgpu]] *ERROR* amdgpu: cp failed to lock ring 6 (-2). [ 131.087582] [drm:gfx_v8_0_ring_test_ring [amdgpu]] *ERROR* amdgpu: cp failed to lock ring 7 (-2). [ 131.087595] [drm:gfx_v8_0_ring_test_ring [amdgpu]] *ERROR* amdgpu: cp failed to lock ring 8 (-2). [ 131.191024] [drm:sdma_v2_4_ring_test_ring [amdgpu]] *ERROR* amdgpu: ring 9 test failed (0xCAFEDEAD) [ 131.191034] [drm:amdgpu_resume [amdgpu]] *ERROR* resume 5 failed -22 [ 131.191043] [drm:amdgpu_resume_kms [amdgpu]] *ERROR* amdgpu_resume failed (-22). [ 131.191149] amdgpu :04:00.0: couldn't schedule ib [ 131.191179] [drm:amdgpu_sched_run_job [amdgpu]] *ERROR* Error scheduling IBs (-22) [ 131.191203] [drm:amd_sched_main [amdgpu]] *ERROR* Failed to run job! [ 131.201417] amdgpu :04:00.0: couldn't schedule ib [ 131.201444] [drm:amdgpu_sched_run_job [amdgpu]] *ERROR* Error scheduling IBs (-22) [ 131.201462] [drm:amd_sched_main [amdgpu]] *ERROR* Failed to run job! [ 131.201465] amdgpu :04:00.0: couldn't schedule ib [ 131.201479] [drm:amdgpu_sched_run_job [amdgpu]] *ERROR* Error scheduling IBs (-22) [ 131.201493] [drm:amd_sched_main [amdgpu]] *ERROR* Failed to run job! [ 131.201494] amdgpu :04:00.0: couldn't schedule ib [ 131.201508] [drm:amdgpu_sched_run_job [amdgpu]] *ERROR* Error scheduling IBs (-22) [ 131.201523] [drm:amd_sched_main [amdgpu]] *ERROR* Failed to run job! [ 131.201524] amdgpu :04:00.0: couldn't schedule ib [ 131.201535] [drm:amdgpu_sched_run_job [amdgpu]] *ERROR* Error scheduling IBs (-22) [ 131.201546] [drm:amd_sched_main [amdgpu]] *ERROR* Failed to run job! [ 131.201548] amdgpu :04:00.0: couldn't schedule ib [ 131.201558] [drm:amdgpu_sched_run_job [amdgpu]] *ERROR* Error scheduling IBs (-22) [ 131.201569] [drm:amd_sched_main [amdgpu]] *ERROR* Failed to run job! [ 131.201571] amdgpu :04:00.0: couldn't schedule ib [ 131.201581] [drm:amdgpu_sched_run_job [amdgpu]] *ERROR* Error scheduling IBs (-22) [ 131.201592] [drm:amd_sched_main [amdgpu]] *ERROR* Failed to run job! [ 131.201616] BUG: unable to handle kernel NULL pointer dereference at 0248 [ 131.201648] IP: [] amdgpu_vm_grab_id+0x122/0x310 [amdgpu] [ 131.201684] PGD 0 [ 131.201693] Oops: [#1] SMP [ 131.201707] Modules linked in: ctr ccm rfcomm pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) bnep binfmt_misc rtsx_usb_ms memstick nls_iso8859_1 dell_wmi sparse_keymap dell_laptop intel_rapl x86_pkg_temp_thermal arc4 intel_powerclamp dcdbas dell_smm_hwmon coretemp dell_led iwlmvm btusb uvcvideo btrtl btbcm btintel mac80211 bluetooth kvm_intel videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core snd_soc_rt5640 v4l2_common videodev snd_hda_codec_realtek snd_hda_codec_hdmi media snd_soc_ssm4567 snd_hda_codec_generic snd_soc_rl6231 kvm snd_soc_core snd_hda_intel hid_multitouch snd_hda_codec iwlwifi irqbypass snd_hda_core snd_compress ac97_bus snd_hwdep snd_pcm_dmaengine cfg80211 snd_pcm snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq joydev input_leds snd_seq_device mei_me [ 131.202004] serio_raw snd_timer mei snd shpchp lpc_ich elan_i2c soundcore spi_pxa2xx_platform snd_soc_sst_acpi dw_dmac acpi_pad dw_dmac_core dell_rbtn i2c_designware_platform 8250_dw i2c_designware_core mac_hid parport_pc ppdev lp parport autofs4 drbg ansi_cprng algif_skcipher af_alg dm_crypt rtsx_usb_sdmmc usbhid rtsx_usb amdkfd amd_iommu_v2 amdgpu crct10dif_pclmul crc32_pclmul i915 aesni_intel i2c_algo_bit ttm aes_x86_64 lrw gf128mul glue_helper
[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
Hi Andre, I also have upgraded to 16.10, hoping for the bug to be fixed, as everything seemed to go smooth until kernel 4.7. However, I still got kernel panics. In short, kernel 4.5 didn't have the bug: it was introduced by the backport Canonical made of amdgpu to 4.4. However the same bug, or a very similar one, was introduced as a regression in 4.8 (even vanilla 4.8). However I found some workaround which prevents amdgpu from loading and crashing the system. Since then I lost the interest to make a patch to fix this: it's too much work to get only the Intel GPU working (the AMD GPU would not work anyway with the open drivers). But it still would be nice if Ubuntu could ship with a kernel that doesn't crash on hardware that came with Ubuntu OEM (which, at least theoretically, should be tested by Canonical). If someone could go after this and fix the issue, it would be nice for the people who upgrade their Ubuntu OEM not to get an unusable system after reboot. The workaround I'm currently using is as follows: /etc/default/grub: Add amdgpu.runpm=0 to GRUB_CMDLINE_LINUX_DEFAULT /etc/rc.local: Add the following command: echo OFF > /sys/kernel/debug/vgaswitcheroo/switch /etc/X11/xorg.conf: Create the file if it doesn't exist, and add the following in order to get the backlight controls working (otherwise it would be misdetected): Section "Device" Identifier "Card0" Driver "intel" Option "Backlight" "intel_backlight" EndSection -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579374 Title: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
andre (acelere), it will help immensely if you filed a new report with Ubuntu, using the default repository kernel (not mainline/upstream/3rd party) via a terminal: ubuntu-bug linux Please feel free to subscribe me to it. For more on why this is helpful, please see https://wiki.ubuntu.com/ReportingBugs. ** Changed in: linux (Ubuntu) Importance: Medium => Low ** Description changed: A Dell Inspiron 5448 / 0YDTG3 laptop (BIOS A06 10/12/2015), which used to work well with Ubuntu trusty and Ubuntu wily releases (using fglrx - driver), presents multiple issues with Ubuntu xenial. - - When the amdgpu driver tries to activate the Radeon GPU, a NULL pointer - dereference occurs, causing the caller process to hang. This practically - causes the system to hang when trying a logoff or shutdown. + driver), has an issue in Xenial where when the amdgpu driver tries to + activate the Radeon GPU, a NULL pointer dereference occurs, causing the + caller process to hang. This practically causes the system to hang when + trying a logoff or shutdown. The bug can be easily reproduced by calling: - DRI_PRIME=1 glxgears - Which hangs the glxgears process and causes the stacktrace attached - below. - - The system also crashes with a kernel panic (capslock key blinking and - system does not answer to magic SysRq keys) when coming back from a - suspend. - - The bug reported in this forum post - http://ubuntuforums.org/showthread.php?t=2318640 appears to be the same. - - Kernel 4.5.0-050400 from http://kernel.ubuntu.com/~kernel- - ppa/mainline/v4.5-wily fixes the crashes and oopses, although the Radeon - GPU still does not work (DRI_PRIME=1 glxgears opens a black window). - However, at least the system can be used with the Intel GPU in a stable - fashion. - - + Which hangs the glxgears process and causes the stacktrace attached below. ---[cut]--- - $ lspci - [...] - 04:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Topaz XT [Radeon R7 M260/M265] $ dmesg [...] [ 129.188685] [drm] PCIE GART of 2048M enabled (table at 0x0004). [ 129.429667] [drm] ring test on 0 succeeded in 14 usecs [ 131.087501] [drm:gfx_v8_0_ring_test_ring [amdgpu]] *ERROR* amdgpu: cp failed to lock ring 1 (-2). [ 131.087520] [drm:gfx_v8_0_ring_test_ring [amdgpu]] *ERROR* amdgpu: cp failed to lock ring 2 (-2). [ 131.087533] [drm:gfx_v8_0_ring_test_ring [amdgpu]] *ERROR* amdgpu: cp failed to lock ring 3 (-2). [ 131.087547] [drm:gfx_v8_0_ring_test_ring [amdgpu]] *ERROR* amdgpu: cp failed to lock ring 4 (-2). [ 131.087558] [drm:gfx_v8_0_ring_test_ring [amdgpu]] *ERROR* amdgpu: cp failed to lock ring 5 (-2). [ 131.087571] [drm:gfx_v8_0_ring_test_ring [amdgpu]] *ERROR* amdgpu: cp failed to lock ring 6 (-2). [ 131.087582] [drm:gfx_v8_0_ring_test_ring [amdgpu]] *ERROR* amdgpu: cp failed to lock ring 7 (-2). [ 131.087595] [drm:gfx_v8_0_ring_test_ring [amdgpu]] *ERROR* amdgpu: cp failed to lock ring 8 (-2). [ 131.191024] [drm:sdma_v2_4_ring_test_ring [amdgpu]] *ERROR* amdgpu: ring 9 test failed (0xCAFEDEAD) [ 131.191034] [drm:amdgpu_resume [amdgpu]] *ERROR* resume 5 failed -22 [ 131.191043] [drm:amdgpu_resume_kms [amdgpu]] *ERROR* amdgpu_resume failed (-22). [ 131.191149] amdgpu :04:00.0: couldn't schedule ib [ 131.191179] [drm:amdgpu_sched_run_job [amdgpu]] *ERROR* Error scheduling IBs (-22) [ 131.191203] [drm:amd_sched_main [amdgpu]] *ERROR* Failed to run job! [ 131.201417] amdgpu :04:00.0: couldn't schedule ib [ 131.201444] [drm:amdgpu_sched_run_job [amdgpu]] *ERROR* Error scheduling IBs (-22) [ 131.201462] [drm:amd_sched_main [amdgpu]] *ERROR* Failed to run job! [ 131.201465] amdgpu :04:00.0: couldn't schedule ib [ 131.201479] [drm:amdgpu_sched_run_job [amdgpu]] *ERROR* Error scheduling IBs (-22) [ 131.201493] [drm:amd_sched_main [amdgpu]] *ERROR* Failed to run job! [ 131.201494] amdgpu :04:00.0: couldn't schedule ib [ 131.201508] [drm:amdgpu_sched_run_job [amdgpu]] *ERROR* Error scheduling IBs (-22) [ 131.201523] [drm:amd_sched_main [amdgpu]] *ERROR* Failed to run job! [ 131.201524] amdgpu :04:00.0: couldn't schedule ib [ 131.201535] [drm:amdgpu_sched_run_job [amdgpu]] *ERROR* Error scheduling IBs (-22) [ 131.201546] [drm:amd_sched_main [amdgpu]] *ERROR* Failed to run job! [ 131.201548] amdgpu :04:00.0: couldn't schedule ib [ 131.201558] [drm:amdgpu_sched_run_job [amdgpu]] *ERROR* Error scheduling IBs (-22) [ 131.201569] [drm:amd_sched_main [amdgpu]] *ERROR* Failed to run job! [ 131.201571] amdgpu :04:00.0: couldn't schedule ib [ 131.201581] [drm:amdgpu_sched_run_job [amdgpu]] *ERROR* Error scheduling IBs (-22) [ 131.201592] [drm:amd_sched_main [amdgpu]] *ERROR* Failed to run job! [ 131.201616] BUG: unable to handle kernel NULL pointer dereference at 0248 [ 131.201648] IP: [] amdgpu_vm_grab_id+0x122/0x310 [amdgpu] - [ 131.201684] PGD 0 -
[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
This bug is still present for me. Did you guys manage to fix it? I have since upgraded to 16.10 and no change. Thanks. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579374 Title: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
** Tags removed: kernel-fixed-upstream-4.5.0 latest-bios-a06 ** Tags added: bios-outdated-a07 kernel-fixed-upstream-4.5 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579374 Title: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
[Expired for linux (Ubuntu) because there has been no activity for 60 days.] ** Changed in: linux (Ubuntu) Status: Incomplete => Expired -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579374 Title: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
I think they are the same. The bug manifests itself when using xorg, but the root cause is the kernel null pointer dereference. ** Changed in: linux (Ubuntu) Status: Expired => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579374 Title: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
Maybe we should mark it as confirmed now that Yuri bisected the kernel in the other bug? However I still think we should just put some test to check whether the pointer is NULL, we already have the stacktrace. Maybe I can try to patch it out when I get some spare time. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579374 Title: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
** This bug is no longer a duplicate of bug 1608042 64-bit XUbuntu 16.04 "Xenial" hybrid graphics (Intel + AMD): AMDGPU crashes / freezes / hangs entire system -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579374 Title: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
*** This bug is a duplicate of bug 1608042 *** https://bugs.launchpad.net/bugs/1608042 Bug report https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video- amdgpu/+bug/1608042 is related to this one. ** This bug has been marked a duplicate of bug 1608042 64-bit XUbuntu 16.04 "Xenial" hybrid graphics (Intel + AMD): AMDGPU crashes / freezes / hangs entire system -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579374 Title: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
[Expired for linux (Ubuntu) because there has been no activity for 60 days.] ** Changed in: linux (Ubuntu) Status: Incomplete => Expired -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579374 Title: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
** Changed in: linux (Ubuntu) Status: Confirmed => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579374 Title: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
** Changed in: linux (Ubuntu) Status: Incomplete => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579374 Title: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
As I reported here: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video- amdgpu/+bug/1608042/comments/31 ...my computer is exactly the same (Dell Inspiron 5448 laptop, BIOS A06, hybrid graphics Intel Broadwell - module i915 + AMD Topaz XT R7 M260/M265 - module amdgpu) and after installing 64-bit XUbuntu 16.04 "Xenial" I got the same problem, because of the kernel 4.4. I got rid of the kernel-AMD GPU issues after doing some reverse commit and identifying that kernel 4.6-rc1 received a "good commit" that fixed the problem. I'm currently running 4.6-rc7, but I can confirm that from 4.6-rc1 ahead the "NULL pointer dereference" bug's gone. From kernel 4.6-rc1 or newer I'm able to execute "DRI_PRIME=1 glxgears" without experiencing any issues. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579374 Title: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
sorry, installed the 4.5.7 kernel on Ubuntu Xenial (16.04) and still problem persists. Also noticed that battery remaining and charging time are not quite right , i don't know if this has to do with the amdgpu driver. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579374 Title: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
** Tags removed: kernel-fixed-upstream-4.6-rc7 ** Tags added: kernel-fixed-upstream-4.5.0 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579374 Title: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
Will bisect work in this case? I had understood from the release notes that most of the 4.5-vanilla's amdgpu was backported to Ubuntu's 4.4 kernel. As I commented in the first message, 4.5.0 does not present the NULL ptr dereference, so it would not really be a bisect from 4.4 to 4.6-rc7, but from 4.4 to 4.5.0. However, would it make sense to carry this bisect since the amdgpu driver present in vanilla's 4.4 is completely different from the one shipped in Ubuntu's 4.4 kernel? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579374 Title: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
Paulo Matias, the next step is to fully reverse commit bisect from kernel 4.4 to 4.6-rc7 in order to identify the last bad commit, followed immediately by the first good one. Once this good commit has been identified, it may be reviewed for backporting. Could you please do this following https://wiki.ubuntu.com/Kernel/KernelBisection#How_do_I_reverse_bisect_the_upstream_kernel.3F ? Please note, finding adjacent kernel versions is not fully commit bisecting. After the fix commit (not kernel version) has been identified, then please mark this report Status Confirmed. Thank you for your understanding. Helpful bug reporting tips: https://wiki.ubuntu.com/ReportingBugs ** Tags added: kernel-fixed-upstream-4.6-rc7 latest-bios-a06 needs- reverse-bisect ** Changed in: linux (Ubuntu) Status: Confirmed => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579374 Title: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
** Changed in: linux (Ubuntu) Status: Fix Released => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579374 Title: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
** Changed in: linux (Ubuntu) Status: Confirmed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579374 Title: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
I'm not sure if it helps to share it, but a couple o days before you created this thread I posted the same bug with my personal notebook crash report on AskUbuntu: http://askubuntu.com/questions/767163/ubuntu-16-kernel-bug-oops--1-smp-related-to-amdgpu/772787 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579374 Title: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
Behavior with 4.6.0-040600rc7-generic appears to be even saner than with 4.5.0-050400, although the AMD GPU is still not usable ("DRI_PRIME=1 glxgears" opens a black window). Only after reporting this bug, I found that 4.5.0-050400 presented issues with sound output in the HDMI port (sound output at a lower sampling rate, maybe half, than it was supposed to). These issues are fixed in 4.6.0-040600rc7-generic. Also, 4.6.0-040600rc7-generic does not present any errors in dmesg output when trying to use the AMD GPU (again "DRI_PRIME=1 glxgears"): ---[cut]--- [ 251.019823] [drm] PCIE GART of 2048M enabled (table at 0x0004). [ 251.258535] [drm] ring test on 0 succeeded in 15 usecs [ 251.258748] [drm] ring test on 1 succeeded in 14 usecs [ 251.258787] [drm] ring test on 2 succeeded in 13 usecs [ 251.258797] [drm] ring test on 3 succeeded in 4 usecs [ 251.258812] [drm] ring test on 4 succeeded in 2 usecs [ 251.258818] [drm] ring test on 5 succeeded in 2 usecs [ 251.258824] [drm] ring test on 6 succeeded in 2 usecs [ 251.258830] [drm] ring test on 7 succeeded in 2 usecs [ 251.258838] [drm] ring test on 8 succeeded in 3 usecs [ 251.258865] [drm] ring test on 9 succeeded in 6 usecs [ 251.258878] [drm] ring test on 10 succeeded in 6 usecs ---[cut]--- Whereas 4.5.0-050400 used to output the same kind of error message presented by xenial's 4.4 kernel ("*ERROR* amdgpu: cp failed to lock ring N (-2)"), although the NULL pointer dereference was already fixed in 4.5.0-050400. In short, the NULL pointer dereference is fixed upstream. With upstream kernel, the system appears to run pretty stably using the Intel GPU as the renderer, whereas xenial's 4.4 kernel would constantly crash. However, the AMD GPU is still not usable even with upstream kernel, as it renders empty (black) output. ** Tags added: kernel-fixed-upstream ** Changed in: linux (Ubuntu) Status: Incomplete => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579374 Title: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1579374] Re: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU
Would it be possible for you to test the latest upstream kernel? Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v4.6 kernel[0]. If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'. If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'. Once testing of the upstream kernel is complete, please mark this bug as "Confirmed". Thanks in advance. [0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.6-rc7-wily/ ** Changed in: linux (Ubuntu) Importance: Undecided => Medium ** Changed in: linux (Ubuntu) Status: Confirmed => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1579374 Title: amdgpu causes NULL pointer dereference when trying to use Topaz (Radeon R7 M265) GPU To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs