Bug 103271

Summary: [regression bisected] AMD R9 270X Flickering with DPM Enabled on Linux 4.1 with RadeonSI
Product: Drivers Reporter: Kevin McCormack (harlemsquirrel)
Component: Video(DRI - non Intel)Assignee: drivers_video-dri
Status: NEW ---    
Severity: normal CC: alexdeucher, amarildosjr, harlemsquirrel, solenskiner, szg00000, vim
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.1.6 Subsystem:
Regression: Yes Bisected commit-id:
Attachments: dmesg output while running linux-git-4.2rc8.r0.gc13dcf9-1-x86_64
Patch that removes the 5dfc71bc44d91d1620505c064fa22b0b3db58a9d commit

Description Kevin McCormack 2015-08-22 03:08:59 UTC
I upgraded my system today from the 4.0 kernel to 4.1. After rebooting, I am getting crazy flickering that makes my system unusable. I rebooted and disabled dynamic power management with radeon.dpm=0 as a kernel parameter. The flickering is now gone. I have an R9270X running with the open source drivers. I did a quick search and could not find a similar issue anywhere. Does anyone have any suggestions?

UPDATE: I built the kernel using the linux-git package in AUR and have the same issue with DPM. linux-git 4.2rc7
Comment 1 Kevin McCormack 2015-08-22 21:22:24 UTC
dmesg reports this...

[drm:si_dpm_set_power_state [radeon]] *ERROR* si_restrict_performance_levels_before_switch failed
Comment 2 Kevin McCormack 2015-08-22 21:34:16 UTC
I tried switching the connection to my monitor from DisplayPort to HDMI and I got...

[  317.193439] [drm:radeon_dp_link_train [radeon]] *ERROR* clock recovery reached max voltage
[  317.193464] [drm:radeon_dp_link_train [radeon]] *ERROR* clock recovery failed


Downgrading to linux 4.0.7-2-ARCH resolves this issue, so this seems to be a regression introduced with linux 4.1
Comment 3 Alex Deucher 2015-08-24 05:10:13 UTC
Did you change any hardware when you udpated?  E.g., a new monitor?  Please attach your xorg log and dmesg output.  Can you bisect?
Comment 4 Kevin McCormack 2015-08-24 21:33:42 UTC
I did not change any hardware. I tried changing the connection to the monitor because I had issues a few months back with DisplayPort but that didn't help here. I don't seem to have an xorg log in /var/log/ but and the most interesting line of my dmesg was what I included above...

[drm:si_dpm_set_power_state [radeon]] *ERROR* si_restrict_performance_levels_before_switch failed

I built the 4.2rc8 from git last night and the issue is still there. I am going to get the entire dmesg for you now.
Comment 5 Kevin McCormack 2015-08-24 21:38:46 UTC
Created attachment 185731 [details]
dmesg output while running linux-git-4.2rc8.r0.gc13dcf9-1-x86_64

This is the dmesg output while running 4.2rc8 built from git last night.
Comment 6 Kevin McCormack 2015-08-24 21:40:13 UTC
I just uploaded the dmesg output. I have never done bisecting before. Is this a good place to start?
https://wiki.archlinux.org/index.php/Bisecting_bugs
Comment 7 Kevin McCormack 2015-08-25 01:38:05 UTC
Well I tried bisecting and got this...
$ git bisect start
Checking out files: 100% (14034/14034), done.
Previous HEAD position was d0a3997... Merge tag 'sound-4.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
Comment 8 Alex Deucher 2015-08-25 01:54:50 UTC
You need to flag which commit or tag was good and which was bad.
Comment 9 Kevin McCormack 2015-08-25 01:56:16 UTC
OK, I am giving it a try now, sorry for my noob-ness :\ it takes a while to compile.
Comment 10 Kevin McCormack 2015-09-06 00:54:44 UTC
So I have been trying to do this bisect following the Arch Linux guide. I was on vacation for a while but am back now. This bisecting stuff sure takes awhile! I just want to make sure that it looks like I am on the right trail, so here the the log so far...

$ git bisect log
git bisect start
# good: [39a8804455fb23f09157341d3ba7db6d7ae6ee76] Linux 4.0
git bisect good 39a8804455fb23f09157341d3ba7db6d7ae6ee76
# bad: [b953c0d234bc72e8489d3bf51a276c5c4ec85345] Linux 4.1
git bisect bad b953c0d234bc72e8489d3bf51a276c5c4ec85345
# bad: [c13dcf9f2d6f5f06ef1bf79ec456df614c5e058b] Linux 4.2-rc8
git bisect bad c13dcf9f2d6f5f06ef1bf79ec456df614c5e058b
# good: [6684d0c4c8284687d14904051e2f16d76e495fa4] staging: fbtft: reformat hardcoded sequences
git bisect good 6684d0c4c8284687d14904051e2f16d76e495fa4
# good: [6684d0c4c8284687d14904051e2f16d76e495fa4] staging: fbtft: reformat hardcoded sequences
git bisect good 6684d0c4c8284687d14904051e2f16d76e495fa4
# good: [0db9723cacf4d62bc3685fb15179b39ee4e17679] Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
git bisect good 0db9723cacf4d62bc3685fb15179b39ee4e17679
# good: [0db9723cacf4d62bc3685fb15179b39ee4e17679] Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
git bisect good 0db9723cacf4d62bc3685fb15179b39ee4e17679
# bad: [78c10e556ed904d5bfbd71e9cadd8ce8f25d6982] Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
git bisect bad 78c10e556ed904d5bfbd71e9cadd8ce8f25d6982
# bad: [78c10e556ed904d5bfbd71e9cadd8ce8f25d6982] Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
git bisect bad 78c10e556ed904d5bfbd71e9cadd8ce8f25d6982
# good: [22165fa79814e71e7a5974b3c37a5028ed16c8f9] Merge tag 'dm-4.2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
git bisect good 22165fa79814e71e7a5974b3c37a5028ed16c8f9
# good: [fcbc1777ce8b5edf831c1eca16c1a63c1e4f39fb] Merge tag 'trace-fixes-4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
git bisect good fcbc1777ce8b5edf831c1eca16c1a63c1e4f39fb
# bad: [8c7febe83915332276cab49e89f6580bb963fb9a] Merge tag 'tty-4.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
git bisect bad 8c7febe83915332276cab49e89f6580bb963fb9a
# bad: [8d7804a2f03dbd34940fcb426450c730adf29dae] Merge tag 'driver-core-4.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
git bisect bad 8d7804a2f03dbd34940fcb426450c730adf29dae
# good: [6fa45a22689722dac9f0e90c0931d4b34b334ede] parport: add device-model to parport subsystem
git bisect good 6fa45a22689722dac9f0e90c0931d4b34b334ede
# good: [3dc196eae1db548f05e53e5875ff87b8ff79f249] mei: me: wait for power gating exit confirmation
git bisect good 3dc196eae1db548f05e53e5875ff87b8ff79f249
# good: [3dc196eae1db548f05e53e5875ff87b8ff79f249] mei: me: wait for power gating exit confirmation
git bisect good 3dc196eae1db548f05e53e5875ff87b8ff79f249
Comment 11 Kevin McCormack 2015-09-06 13:58:34 UTC
OK, so good news and bad news...the good news is that I finished the bisect and seem to have definitely found a bad commit. However, the bad news is that when I run this compiled kernel I can't even boot. I just get a black screen with no response from caps lock or ctr+alt+F4. Here is the log...

$ git bisect log
git bisect start
# good: [39a8804455fb23f09157341d3ba7db6d7ae6ee76] Linux 4.0
git bisect good 39a8804455fb23f09157341d3ba7db6d7ae6ee76
# bad: [b953c0d234bc72e8489d3bf51a276c5c4ec85345] Linux 4.1
git bisect bad b953c0d234bc72e8489d3bf51a276c5c4ec85345
# bad: [c13dcf9f2d6f5f06ef1bf79ec456df614c5e058b] Linux 4.2-rc8
git bisect bad c13dcf9f2d6f5f06ef1bf79ec456df614c5e058b
# good: [6684d0c4c8284687d14904051e2f16d76e495fa4] staging: fbtft: reformat hardcoded sequences
git bisect good 6684d0c4c8284687d14904051e2f16d76e495fa4
# good: [6684d0c4c8284687d14904051e2f16d76e495fa4] staging: fbtft: reformat hardcoded sequences
git bisect good 6684d0c4c8284687d14904051e2f16d76e495fa4
# good: [0db9723cacf4d62bc3685fb15179b39ee4e17679] Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
git bisect good 0db9723cacf4d62bc3685fb15179b39ee4e17679
# good: [0db9723cacf4d62bc3685fb15179b39ee4e17679] Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
git bisect good 0db9723cacf4d62bc3685fb15179b39ee4e17679
# bad: [78c10e556ed904d5bfbd71e9cadd8ce8f25d6982] Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
git bisect bad 78c10e556ed904d5bfbd71e9cadd8ce8f25d6982
# bad: [78c10e556ed904d5bfbd71e9cadd8ce8f25d6982] Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
git bisect bad 78c10e556ed904d5bfbd71e9cadd8ce8f25d6982
# good: [22165fa79814e71e7a5974b3c37a5028ed16c8f9] Merge tag 'dm-4.2-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
git bisect good 22165fa79814e71e7a5974b3c37a5028ed16c8f9
# good: [fcbc1777ce8b5edf831c1eca16c1a63c1e4f39fb] Merge tag 'trace-fixes-4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
git bisect good fcbc1777ce8b5edf831c1eca16c1a63c1e4f39fb
# bad: [8c7febe83915332276cab49e89f6580bb963fb9a] Merge tag 'tty-4.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
git bisect bad 8c7febe83915332276cab49e89f6580bb963fb9a
# bad: [8d7804a2f03dbd34940fcb426450c730adf29dae] Merge tag 'driver-core-4.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
git bisect bad 8d7804a2f03dbd34940fcb426450c730adf29dae
# good: [6fa45a22689722dac9f0e90c0931d4b34b334ede] parport: add device-model to parport subsystem
git bisect good 6fa45a22689722dac9f0e90c0931d4b34b334ede
# good: [3dc196eae1db548f05e53e5875ff87b8ff79f249] mei: me: wait for power gating exit confirmation
git bisect good 3dc196eae1db548f05e53e5875ff87b8ff79f249
# good: [3dc196eae1db548f05e53e5875ff87b8ff79f249] mei: me: wait for power gating exit confirmation
git bisect good 3dc196eae1db548f05e53e5875ff87b8ff79f249
# bad: [e382608254e06c8109f40044f5e693f2e04f3899] Merge tag 'trace-v4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
git bisect bad e382608254e06c8109f40044f5e693f2e04f3899
# bad: [e382608254e06c8109f40044f5e693f2e04f3899] Merge tag 'trace-v4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
git bisect bad e382608254e06c8109f40044f5e693f2e04f3899
# bad: [5d6ad960a71f0b36d95d74ef93285733b9f62f59] tracing: Rename FTRACE_EVENT_FL_* flags to EVENT_FILE_FL_*
git bisect bad 5d6ad960a71f0b36d95d74ef93285733b9f62f59
# bad: [645df987f7c1740bb1ba783ab907001720a20cf7] tracing: Rename ftrace_print_*() functions ta trace_print_*()
git bisect bad 645df987f7c1740bb1ba783ab907001720a20cf7
# bad: [f267caab44451baa70d25fa3191a68bb79ad1b08] tracing: Remove unused prototype ftrace_event_define_field()
git bisect bad f267caab44451baa70d25fa3191a68bb79ad1b08
# bad: [7e255d346c12888f7cce4b89a03a5fe5e9196ab1] tracing: Export tracing clock functions
git bisect bad 7e255d346c12888f7cce4b89a03a5fe5e9196ab1
Comment 12 Kevin McCormack 2015-09-06 14:00:47 UTC
This might help as well...

$ git bisect view --stat
commit 7e255d346c12888f7cce4b89a03a5fe5e9196ab1
Author: Jerry Snitselaar <jsnitsel@redhat.com>
Date:   Thu Apr 30 08:10:24 2015 -0700

    tracing: Export tracing clock functions
    
    Critical tracepoint hooks should never call anything that takes a lock,
    so they are unable to call getrawmonotonic() or ktime_get().
    
    Export the rest of the tracing clock functions so can be used in
    tracepoint hooks.
    
    Background: We have a customer that adds their own module and registers
    a tracepoint hook to sched_wakeup. They were using ktime_get() for a
    time source, but it grabs a seq lock and caused a deadlock to occur.
    
    Link: http://lkml.kernel.org/r/1430406624-22609-1-git-send-email-jsnitsel@redhat.com
    
    Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>
    Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

:...skipping...
commit 7e255d346c12888f7cce4b89a03a5fe5e9196ab1
Author: Jerry Snitselaar <jsnitsel@redhat.com>
Date:   Thu Apr 30 08:10:24 2015 -0700

    tracing: Export tracing clock functions
    
    Critical tracepoint hooks should never call anything that takes a lock,
    so they are unable to call getrawmonotonic() or ktime_get().
    
    Export the rest of the tracing clock functions so can be used in
    tracepoint hooks.
    
    Background: We have a customer that adds their own module and registers
    a tracepoint hook to sched_wakeup. They were using ktime_get() for a
    time source, but it grabs a seq lock and caused a deadlock to occur.
    
    Link: http://lkml.kernel.org/r/1430406624-22609-1-git-send-email-jsnitsel@redhat.com
    
    Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>
    Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

 kernel/trace/trace_clock.c | 3 +++
 1 file changed, 3 insertions(+)

commit 755a27e7e4c817dd51ade41668b380f26026899c
Author: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Date:   Sun May 3 18:18:02 2015 +0800

    tracing: remove unused ftrace_output_event() prototype
    
    The prototype of ftrace_output_event was added by commit 1d6bae966e90
    ("tracing: Move raw output code from macro to standalone function")
    but this function was not defined anywhere, and is still nowhere to be
    found.
    
    Link: http://lkml.kernel.org/r/1430648282-25792-1-git-send-email-nicolas.iooss_linux@m4x.org
    
    Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
    Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

 include/linux/ftrace_event.h | 3 ---
 1 file changed, 3 deletions(-)
Comment 13 Michel Dänzer 2015-09-08 06:38:34 UTC
You should only run "git bisect" for commits which exhibit the same symptoms as described in this report. For commits exhibiting other issues, in particular such that you can't tell whether the problem described in this report occurs or not, you should run "git bisect skip" instead.
Comment 14 Kevin McCormack 2015-09-08 21:36:03 UTC
Michel, thank you for this, I will try to bisect again...it should only take 13 compiles! :/
Comment 15 Michel Dänzer 2015-09-09 02:32:44 UTC
(In reply to Michel Dänzer from comment #13)
> You should only run "git bisect" for commits which exhibit the same symptoms
> as described in this report.

That should have said "git bisect bad" BTW.
Comment 16 Kevin McCormack 2015-09-09 16:03:43 UTC
Right, I thought so. :) I have a busy day today and this week so it will take me a couple of days to do the bisect. I hope I can be helpful!
Comment 17 Kevin McCormack 2015-09-14 22:31:13 UTC
I have been bisecting when I have a chance and it is coming along slowly. I did figure out a nice way to reduce compile times from 90min+ down to 20min using `MAKEFLAGS=-j8 makepkg -e` with my FX-8370. I have been running into a lot of bisected kernels that simply won't boot and running git bisect skip but this seems to be prolonging the process. I do hope I am on the right track as I think the issue is somewhere between 4.0 and 4.1. Here is my log so far...

$ git bisect log
git bisect start
# good: [39a8804455fb23f09157341d3ba7db6d7ae6ee76] Linux 4.0
git bisect good 39a8804455fb23f09157341d3ba7db6d7ae6ee76
# bad: [b953c0d234bc72e8489d3bf51a276c5c4ec85345] Linux 4.1
git bisect bad b953c0d234bc72e8489d3bf51a276c5c4ec85345
# bad: [b953c0d234bc72e8489d3bf51a276c5c4ec85345] Linux 4.1
git bisect bad b953c0d234bc72e8489d3bf51a276c5c4ec85345
# good: [d0a3997c0c3f9351e24029349dee65dd1d9e8d84] Merge tag 'sound-4.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
git bisect good d0a3997c0c3f9351e24029349dee65dd1d9e8d84
# skip: [cf82f52d3619d2e15c83ec9a03c6ce8cdf6c6b58] watchdog: stmp3xxx_rtc_wdt: fix broken email address
git bisect skip cf82f52d3619d2e15c83ec9a03c6ce8cdf6c6b58
# skip: [cf82f52d3619d2e15c83ec9a03c6ce8cdf6c6b58] watchdog: stmp3xxx_rtc_wdt: fix broken email address
git bisect skip cf82f52d3619d2e15c83ec9a03c6ce8cdf6c6b58
# skip: [cf82f52d3619d2e15c83ec9a03c6ce8cdf6c6b58] watchdog: stmp3xxx_rtc_wdt: fix broken email address
git bisect skip cf82f52d3619d2e15c83ec9a03c6ce8cdf6c6b58
# skip: [3e1b0c4a9d563d7fc6e22dc92613cd3237bb5ce0] ALSA: hda - Fix click noise at start on Dell XPS13
git bisect skip 3e1b0c4a9d563d7fc6e22dc92613cd3237bb5ce0
# good: [d24363a5a40a3b7f976faada311b623fc8047b1e] ARM: dts: fix typo in makefile for alpine-db
git bisect good d24363a5a40a3b7f976faada311b623fc8047b1e
# skip: [0c8027d50c070859314a88aaff42453ff4f71819] Merge tag 'media/v4.1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
git bisect skip 0c8027d50c070859314a88aaff42453ff4f71819
# skip: [94435f764cc5838a7e94008f17628ad63384bf06] net:treewide: Fix typo in drivers/net
git bisect skip 94435f764cc5838a7e94008f17628ad63384bf06
# good: [97b290b5637f473588a297834c10cd750718e980] MIPS: Octeon: Fix to IP checksum offloading in Little Endian
git bisect good 97b290b5637f473588a297834c10cd750718e980
# skip: [38eb1dbb0d7d190bdfe2ea824e94dab19e32737f] Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
git bisect skip 38eb1dbb0d7d190bdfe2ea824e94dab19e32737f
# good: [964aa8d9e4d36e0e54a88683d14c7d5b9d02aed8] xfs: remove xfs_mod_incore_sb API
git bisect good 964aa8d9e4d36e0e54a88683d14c7d5b9d02aed8
# good: [964aa8d9e4d36e0e54a88683d14c7d5b9d02aed8] xfs: remove xfs_mod_incore_sb API
git bisect good 964aa8d9e4d36e0e54a88683d14c7d5b9d02aed8
# skip: [6c28ab9fef9b4eca350d68ed0090f92fe37f969f] Merge tag 'v4.1-rockchip-socfixes2' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into fixes
git bisect skip 6c28ab9fef9b4eca350d68ed0090f92fe37f969f
# skip: [6c28ab9fef9b4eca350d68ed0090f92fe37f969f] Merge tag 'v4.1-rockchip-socfixes2' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into fixes
git bisect skip 6c28ab9fef9b4eca350d68ed0090f92fe37f969f
# good: [f549e94effa163ea170d2f0c12d307cb602431c6] serial: 8250_pci: add Intel Penwell ports
git bisect good f549e94effa163ea170d2f0c12d307cb602431c6
# good: [8d76612bd49a73dca018e6fe5c790c943dbde98f] drm/cma: use correct fb width/height
git bisect good 8d76612bd49a73dca018e6fe5c790c943dbde98f
# skip: [e6c81cce5699ec6be3a7533b5ad7a062ab3357f2] Merge tag 'armsoc-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
git bisect skip e6c81cce5699ec6be3a7533b5ad7a062ab3357f2
# skip: [e35d1d8a1d16e9f56a9b54c96d0cb85ed621bb89] mtd: mxc-nand: Add a timeout when waiting for interrupt
git bisect skip e35d1d8a1d16e9f56a9b54c96d0cb85ed621bb89
# skip: [e35d1d8a1d16e9f56a9b54c96d0cb85ed621bb89] mtd: mxc-nand: Add a timeout when waiting for interrupt
git bisect skip e35d1d8a1d16e9f56a9b54c96d0cb85ed621bb89
# good: [e93cd95029c3b8aa628f0204e80e66fc61b57f12] Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal into for-rc
git bisect good e93cd95029c3b8aa628f0204e80e66fc61b57f12
Comment 18 Kevin McCormack 2015-09-15 02:18:20 UTC
Alright, I seem to have reached the end of the bisect and got this:
There are only 'skip'ped commits left to test.
The first bad commit could be any of:
2f1b6b7d9a815f341b18dfd26a363f37d4d3c96a
524630d5824c7a75aab568c6bd1423fd748cd3bb
9253e667ab50fd4611a60e1cdd6a6e05a1d91cf1
d2228e4310612a1289c343bcf819831a74ae0366
b953c0d234bc72e8489d3bf51a276c5c4ec85345
We cannot bisect more!


Here is my log...

$ git bisect log
git bisect start
# good: [39a8804455fb23f09157341d3ba7db6d7ae6ee76] Linux 4.0
git bisect good 39a8804455fb23f09157341d3ba7db6d7ae6ee76
# bad: [b953c0d234bc72e8489d3bf51a276c5c4ec85345] Linux 4.1
git bisect bad b953c0d234bc72e8489d3bf51a276c5c4ec85345
# bad: [b953c0d234bc72e8489d3bf51a276c5c4ec85345] Linux 4.1
git bisect bad b953c0d234bc72e8489d3bf51a276c5c4ec85345
# good: [d0a3997c0c3f9351e24029349dee65dd1d9e8d84] Merge tag 'sound-4.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
git bisect good d0a3997c0c3f9351e24029349dee65dd1d9e8d84
# skip: [cf82f52d3619d2e15c83ec9a03c6ce8cdf6c6b58] watchdog: stmp3xxx_rtc_wdt: fix broken email address
git bisect skip cf82f52d3619d2e15c83ec9a03c6ce8cdf6c6b58
# skip: [cf82f52d3619d2e15c83ec9a03c6ce8cdf6c6b58] watchdog: stmp3xxx_rtc_wdt: fix broken email address
git bisect skip cf82f52d3619d2e15c83ec9a03c6ce8cdf6c6b58
# skip: [cf82f52d3619d2e15c83ec9a03c6ce8cdf6c6b58] watchdog: stmp3xxx_rtc_wdt: fix broken email address
git bisect skip cf82f52d3619d2e15c83ec9a03c6ce8cdf6c6b58
# skip: [3e1b0c4a9d563d7fc6e22dc92613cd3237bb5ce0] ALSA: hda - Fix click noise at start on Dell XPS13
git bisect skip 3e1b0c4a9d563d7fc6e22dc92613cd3237bb5ce0
# good: [d24363a5a40a3b7f976faada311b623fc8047b1e] ARM: dts: fix typo in makefile for alpine-db
git bisect good d24363a5a40a3b7f976faada311b623fc8047b1e
# skip: [0c8027d50c070859314a88aaff42453ff4f71819] Merge tag 'media/v4.1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media
git bisect skip 0c8027d50c070859314a88aaff42453ff4f71819
# skip: [94435f764cc5838a7e94008f17628ad63384bf06] net:treewide: Fix typo in drivers/net
git bisect skip 94435f764cc5838a7e94008f17628ad63384bf06
# good: [97b290b5637f473588a297834c10cd750718e980] MIPS: Octeon: Fix to IP checksum offloading in Little Endian
git bisect good 97b290b5637f473588a297834c10cd750718e980
# skip: [38eb1dbb0d7d190bdfe2ea824e94dab19e32737f] Merge tag 'armsoc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
git bisect skip 38eb1dbb0d7d190bdfe2ea824e94dab19e32737f
# good: [964aa8d9e4d36e0e54a88683d14c7d5b9d02aed8] xfs: remove xfs_mod_incore_sb API
git bisect good 964aa8d9e4d36e0e54a88683d14c7d5b9d02aed8
# good: [964aa8d9e4d36e0e54a88683d14c7d5b9d02aed8] xfs: remove xfs_mod_incore_sb API
git bisect good 964aa8d9e4d36e0e54a88683d14c7d5b9d02aed8
# skip: [6c28ab9fef9b4eca350d68ed0090f92fe37f969f] Merge tag 'v4.1-rockchip-socfixes2' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into fixes
git bisect skip 6c28ab9fef9b4eca350d68ed0090f92fe37f969f
# skip: [6c28ab9fef9b4eca350d68ed0090f92fe37f969f] Merge tag 'v4.1-rockchip-socfixes2' of git://git.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into fixes
git bisect skip 6c28ab9fef9b4eca350d68ed0090f92fe37f969f
# good: [f549e94effa163ea170d2f0c12d307cb602431c6] serial: 8250_pci: add Intel Penwell ports
git bisect good f549e94effa163ea170d2f0c12d307cb602431c6
# good: [8d76612bd49a73dca018e6fe5c790c943dbde98f] drm/cma: use correct fb width/height
git bisect good 8d76612bd49a73dca018e6fe5c790c943dbde98f
# skip: [e6c81cce5699ec6be3a7533b5ad7a062ab3357f2] Merge tag 'armsoc-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
git bisect skip e6c81cce5699ec6be3a7533b5ad7a062ab3357f2
# skip: [e35d1d8a1d16e9f56a9b54c96d0cb85ed621bb89] mtd: mxc-nand: Add a timeout when waiting for interrupt
git bisect skip e35d1d8a1d16e9f56a9b54c96d0cb85ed621bb89
# skip: [e35d1d8a1d16e9f56a9b54c96d0cb85ed621bb89] mtd: mxc-nand: Add a timeout when waiting for interrupt
git bisect skip e35d1d8a1d16e9f56a9b54c96d0cb85ed621bb89
# good: [e93cd95029c3b8aa628f0204e80e66fc61b57f12] Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal into for-rc
git bisect good e93cd95029c3b8aa628f0204e80e66fc61b57f12
# good: [1be44e234b672eadbf1d96eb172ef21f5ff6a2c9] Merge tag 'xfs-for-linus-4.1-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/dgc/linux-xfs
git bisect good 1be44e234b672eadbf1d96eb172ef21f5ff6a2c9
# good: [b334b77351890a137f31a38f1ca2f1de0886a453] Merge tag 'tty-4.1-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
git bisect good b334b77351890a137f31a38f1ca2f1de0886a453
# good: [950c37073aae9c2edbd0ba742fd668b4a355eea3] Merge branch 'drm-fixes-4.1' of git://people.freedesktop.org/~agd5f/linux into drm-fixes
git bisect good 950c37073aae9c2edbd0ba742fd668b4a355eea3
# good: [1f1e34f7231c7284f3acae37096a603f19bcd8b7] Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
git bisect good 1f1e34f7231c7284f3acae37096a603f19bcd8b7
# good: [e640a280ccb9c448a3d9d522ea730ce00efa8cf0] Merge branch 'i2c/for-current' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux
git bisect good e640a280ccb9c448a3d9d522ea730ce00efa8cf0
# good: [bb16140a2cab5415ffcbb23594da9e495df1bab7] Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux
git bisect good bb16140a2cab5415ffcbb23594da9e495df1bab7
# good: [fcee3c73a2c51982057b93fe599b7c68e16d0636] Merge tag 'drm-intel-fixes-2015-06-18' of git://anongit.freedesktop.org/drm-intel into drm-fixes
git bisect good fcee3c73a2c51982057b93fe599b7c68e16d0636
# skip: [524630d5824c7a75aab568c6bd1423fd748cd3bb] iser-target: Fix possible use-after-free
git bisect skip 524630d5824c7a75aab568c6bd1423fd748cd3bb
# good: [8f4ce072bf4b65f47dada7e74e3d95cc900866b2] Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux
git bisect good 8f4ce072bf4b65f47dada7e74e3d95cc900866b2
# skip: [2f1b6b7d9a815f341b18dfd26a363f37d4d3c96a] iser-target: release stale iser connections
git bisect skip 2f1b6b7d9a815f341b18dfd26a363f37d4d3c96a
# skip: [9253e667ab50fd4611a60e1cdd6a6e05a1d91cf1] iser-target: Fix variable-length response error completion
git bisect skip 9253e667ab50fd4611a60e1cdd6a6e05a1d91cf1
# skip: [d2228e4310612a1289c343bcf819831a74ae0366] Merge git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending
git bisect skip d2228e4310612a1289c343bcf819831a74ae0366
# only skipped commits left to test
# possible first bad commit: [b953c0d234bc72e8489d3bf51a276c5c4ec85345] Linux 4.1
# possible first bad commit: [d2228e4310612a1289c343bcf819831a74ae0366] Merge git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending
# possible first bad commit: [524630d5824c7a75aab568c6bd1423fd748cd3bb] iser-target: Fix possible use-after-free
# possible first bad commit: [2f1b6b7d9a815f341b18dfd26a363f37d4d3c96a] iser-target: release stale iser connections
# possible first bad commit: [9253e667ab50fd4611a60e1cdd6a6e05a1d91cf1] iser-target: Fix variable-length response error completion
Comment 19 Kevin McCormack 2015-09-15 13:35:57 UTC
OK, I wasn't satisfied with the last bisect, so I decided to bisect again between 4.0 and 4.2 to see if I could get anymore info. I think I have identified the culprit!!

5dfc71bc44d91d1620505c064fa22b0b3db58a9d is the first bad commit
commit 5dfc71bc44d91d1620505c064fa22b0b3db58a9d
Author: Alex Deucher <alexander.deucher@amd.com>
Date:   Thu Jul 9 21:08:17 2015 -0400

    drm/radeon: add a dpm quirk for Sapphire Radeon R9 270X 2GB GDDR5
    
    bug:
    https://bugs.freedesktop.org/show_bug.cgi?id=76490
    
    Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
    Cc: stable@vger.kernel.org

:040000 040000 1534fb2d1b515cfd10436a41c1cffd6e46103815 7f55661cf1fc3b880a37e35fcbed9ca9a55568c5 M	drivers


Here is my bisect log...

git bisect start
# good: [39a8804455fb23f09157341d3ba7db6d7ae6ee76] Linux 4.0
git bisect good 39a8804455fb23f09157341d3ba7db6d7ae6ee76
# bad: [64291f7db5bd8150a74ad2036f1037e6a0428df2] Linux 4.2
git bisect bad 64291f7db5bd8150a74ad2036f1037e6a0428df2
# good: [f5ed2febda3ae51cc382a1341381506cec09248b] switchdev: documentation: fix longer-than-80-char lines
git bisect good f5ed2febda3ae51cc382a1341381506cec09248b
# good: [3d9f96d850e4bbfae24dc9aee03033dd77c81596] Merge tag 'armsoc-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
git bisect good 3d9f96d850e4bbfae24dc9aee03033dd77c81596
# skip: [d2fcb5486af754c990f9a11f91195e28ffd4c735] cxgb4: use kvfree() in t4_free_mem()
git bisect skip d2fcb5486af754c990f9a11f91195e28ffd4c735
# good: [4479004e6409087d1b4986881dc98c6c15dffb28] mac80211: clear subdir_stations when removing debugfs
git bisect good 4479004e6409087d1b4986881dc98c6c15dffb28
# bad: [8400935737bf02d97da281bdcd139a421624b6ba] Merge tag 'xfs-for-linus-4.2-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/dgc/linux-xfs
git bisect bad 8400935737bf02d97da281bdcd139a421624b6ba
# bad: [00243b1d180b7de3cf38a69948ea46aa0308f8c8] Merge tag 'iio-fixes-for-4.2c' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-linus
git bisect bad 00243b1d180b7de3cf38a69948ea46aa0308f8c8
# bad: [2b3eb6e33723a0d2ce2b2a56dda8a793460d66cc] Merge tag 'usb-4.2-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
git bisect bad 2b3eb6e33723a0d2ce2b2a56dda8a793460d66cc
# good: [f85c712429ca43ca21daa35f8a47bcaffdb3d5a1] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
git bisect good f85c712429ca43ca21daa35f8a47bcaffdb3d5a1
# bad: [ef2b731759b9ae6380c9728b60ce92cf32683e94] drm/ttm: fix uncached page deallocation to properly fill page pool v3.
git bisect bad ef2b731759b9ae6380c9728b60ce92cf32683e94
# bad: [375539832c8cde73fd12762cb7fd223c31b30de0] Merge tag 'topic/drm-fixes-2015-07-16' of git://anongit.freedesktop.org/drm-intel into drm-fixes
git bisect bad 375539832c8cde73fd12762cb7fd223c31b30de0
# bad: [58829aa67da95d03bcca7605d2556361a1785a08] drm/amdgpu/cz: store the forced dpm level
git bisect bad 58829aa67da95d03bcca7605d2556361a1785a08
# bad: [5c2327beed49efa3198b8468e78b1182eb0b764b] drm/amdgpu: stop context leak in the error path
git bisect bad 5c2327beed49efa3198b8468e78b1182eb0b764b
# bad: [12f1384da650bdb835fff63e66fe815ea882fc0e] drm/radeon: fix user ptr race condition
git bisect bad 12f1384da650bdb835fff63e66fe815ea882fc0e
# bad: [233709d2cd6bbaaeda0aeb8d11f6ca7f98563b39] drm/radeon: Don't flush the GART TLB if rdev->gart.ptr == NULL
git bisect bad 233709d2cd6bbaaeda0aeb8d11f6ca7f98563b39
# bad: [5dfc71bc44d91d1620505c064fa22b0b3db58a9d] drm/radeon: add a dpm quirk for Sapphire Radeon R9 270X 2GB GDDR5
git bisect bad 5dfc71bc44d91d1620505c064fa22b0b3db58a9d
# first bad commit: [5dfc71bc44d91d1620505c064fa22b0b3db58a9d] drm/radeon: add a dpm quirk for Sapphire Radeon R9 270X 2GB GDDR5
Comment 20 Kevin McCormack 2015-09-15 15:33:16 UTC
Created attachment 187611 [details]
Patch that removes the 5dfc71bc44d91d1620505c064fa22b0b3db58a9d commit

I created this patch which is just the reverse of Alex's 5dfc71bc44d91d1620505c064fa22b0b3db58a9d commit. I can confirm that this fixes the issue for me when applied to 4.3.0-rc1-gd25ed27 built today from git.
Comment 21 Kevin McCormack 2015-09-15 15:40:11 UTC
Comment on attachment 187611 [details]
Patch that removes the 5dfc71bc44d91d1620505c064fa22b0b3db58a9d commit

Here is the link to the commit that seems to be causing my DPM issue https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=ea039f927524e36c15b5905b4c9469d788591932
Comment 22 Amarildo 2016-04-15 20:35:16 UTC
Could you guys revert the patch? Maybe there is something that can be changed in the quirk that might let the quirk stay in without causing problems on systems like mine and Kevin's. 

Regards,
Amarildo