Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752780AbaJKThc (ORCPT ); Sat, 11 Oct 2014 15:37:32 -0400 Received: from nm24-vm2.access.bullet.mail.bf1.yahoo.com ([216.109.115.177]:36996 "EHLO nm24-vm2.access.bullet.mail.bf1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751075AbaJKTha (ORCPT ); Sat, 11 Oct 2014 15:37:30 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; b=wZ4bMP+2iOyPbBuVq2dn61y8zO8bHQBkBZCcwJKR6T+xQDdQQtLRlsq9JNlP9ZuJZerJ05SW09G0HXv1MxeQzceNjcLHfTDbMn7Xu13QVwKVewo3K1VV+GlPBrjFY5eA6uuZl55oOMlAmRppQYfiZEY1ntVUTaO1UxMYCcumEBM=; X-Yahoo-Newman-Id: 517440.35391.bm@smtp119.sbc.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: qQLZx3sVM1nGypiecVf8BdPnfg96F9R.aKP296T0JI.7qSh 5m4EnglSgLHgnQd6sR7dq7Jqzsmf4r0FP5.h0hHekrgDF8jMW1Tv0.ImcHjE UJ4tt9CL.pWU8.JtRXrSZK0uaOh6NYkGTTdTX30BdOdRpAb2q9_rEmQiAFk. A_zthCCiML6lG9FRUfBERZVVO9EpP.YkpiKnkkeQdAGYtjY34CCURZudgtay Mzs6Ar_Ll7i4Dh1acNARAbWg8IPQuDrnL4.wUfVqFcFyPM3Eq1FizymtHfco QvpoXqcK9OZB.5uLSHbQWfmSGzUD0ZVIe08OLf._DPntwwwc._f1L7x9L1cn ilUvWRhGS17hy7Qk5HfkF5375umVTZ2vMdV6r_dCN05PqR2ICwP3sFlZu9rY KpWfkQBeFDeUQprc8CkbvGiSUb9AKGmAg_7xmIDSZFWKtTBPZch0MtbF0Wh8 D9PICNWVjOJuKyqLqec.pAp7hNzCWddbw.4OR6D3gB6XFzwrmiON6myoinLO 2RO2jJ.S4T5G6_Z243o7XcO_ltOABDZXSZiTbn8N.o96s4cw5u29t7e06QNf zH3GchbstKBgKSwNipV16GCFi8dZLyA.M020YaVnmKSiAxHKUC9o6QO73DhB tCYBfTpIMXhD5PLxIqh4_Bg5yXQ-- X-Yahoo-SMTP: rZzhDImswBA_40COIyZI42.8nAz5YXic.zo1v550XQVtX7k- From: Shawn Starr To: Bjorn Helgaas Cc: Kernel development list , "linux-pci@vger.kernel.org" Subject: Re: [Bulk] Re: [3.16-rcX][pciehp][radeon] PCIe HotPlug conflicts with radeon GPU Date: Sat, 11 Oct 2014 15:37:09 -0400 Message-ID: <2298090.n99M7dPPE3@segfault> Organization: sh0n.net User-Agent: KMail/4.14.1 (Linux/3.18.0-0.rc0.git1.2.fc22.1.x86_64; KDE/4.14.1; x86_64; ; ) In-Reply-To: References: <2354837.kuMZPK0Y1Q@segfault> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On September 11, 2014 04:26:21 PM Bjorn Helgaas wrote: > [+cc linux-pci] > > On Sat, Aug 2, 2014 at 10:02 AM, Shawn Starr wrote: > > Hello devs, > > > > There are two issues I am encountering with the PCIe Hotplug driver on my > > Lenovo Laptop (W500). I note this goes back further than 3.15. > > > > It is noted here: > > http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id= > > f244d8b623dae7a7bc695b0336f67729b95a9736 > > https://bugzilla.kernel.org/show_bug.cgi?id=79701 > > > > And my open bug here: > > https://bugzilla.kernel.org/show_bug.cgi?id=77261 > > > > 1) If I enable the device to use both the integrated and discrete GPU, > > pciehp will decide to force unload radeon because it puts itself into a > > power saving state, fails back to the Intel integrated GPU in this case > > unless I tell radeon.ko to runpm=0 (no power management, then pciehp wont > > touch it). > > > > 2) If the Radeon GPU resets and you use pci_reset=1 for kernel module > > option, pciehp decides to force unload radeon even though the GPU is > > trying to setup after failing. > > > > Kernel I am using right now: 3.16.0-0.rc7.git3.1.fc21.x86_64 (about to > > boot into snapshot kernel-core-3.16.0-0.rc7.git4.1.fc21.x86_64) > Hi Shawn, > > Thanks for the report and sorry that it got dropped. But I see you're > cc'd on https://bugzilla.kernel.org/show_bug.cgi?id=79701, so you've > probably seen the work there. If you can try out the patches I just > posted, that would be great. > > Bjorn Hi Bjorn, For #1) This is fixed in linux-next (tracking 3.18.0-0.rc0.git1.2.fc22.1.x86_64 nondebug kernel for Fedora). PCIe HotPlug no longer unloads radeon. For this bugzilla report we can close it. #2) This still has weird results however, radeon.hard_reset=1 is experimental and while it attempts to reset GPU, PCIe HotPlug seems to interact in this. This can be tested by adding to grub command line radeon.hard_reset=1. When X has started up, trigger a reset by cat /sys/kernel/debug/dri/#/radeon_gpu_reset. It will output 0, cat it again will show 1. Attempt to drag a window. The this will trigger a GPU reset, but fail to recover, its unknown if PCIe HotPlug is preventing a proper reset or not but there is pciehp calls in the stack trace. Thanks, Shawn -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/