From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@bugzilla.kernel.org Subject: [Bug 60606] vga_switcheroo / new Radeon DPM code mess up fbcon Date: Thu, 08 Aug 2013 10:10:36 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by gabe.freedesktop.org (Postfix) with ESMTP id EA82DE65B2 for ; Thu, 8 Aug 2013 03:10:39 -0700 (PDT) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CC58920276 for ; Thu, 8 Aug 2013 10:10:38 +0000 (UTC) Received: from bugzilla1.web.kernel.org (bugzilla1.web.kernel.org [172.20.200.51]) by mail.kernel.org (Postfix) with ESMTP id B8E0320428 for ; Thu, 8 Aug 2013 10:10:36 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org https://bugzilla.kernel.org/show_bug.cgi?id=60606 --- Comment #4 from Sebastien Fievet --- (In reply to Jani Nikula from comment #3) I reverted the patch and double checked. The workaround is enough for me. What I do is : 1. echo OFF > /sys/kernel/debug/vgaswitcheroo/switch at init time with a rc script. Hence I always start on the IGD with the DIS OFF : cat /sys/kernel/debug/vgaswitcheroo/switch 0:DIS: :Off:0000:02:00.0 1:DIS-Audio: :Off:0000:02:00.1 2:IGD:+:Pwr:0000:00:02.0 2. to switch from IGD to DIS I do : for cmd in "ON MIGD DDIS"; do echo $cmd > /sys/kernel/debug/vgaswitcheroo/switch done The screen flickers a bit during the OFF -> ON -> MIGD transition cat /sys/kernel/debug/vgaswitcheroo/switch 0:DIS: :Pwr:0000:02:00.0 1:DIS-Audio: :Pwr:0000:02:00.1 2:IGD:+:Pwr:0000:00:02.0 3.I logout/login to X. To switch back to IGD I do : for cmd in "ON DIGD"; do echo $cmd > /sys/kernel/debug/vgaswitcheroo/switch done The screen doesn't flicker. => I can cycle through IGD and DIS at will. When testing your patch I was starting with both IGD and DIS ON. So initial conditions were different :-(. Then : 1. echo DDIS > /sys/kernel/debug/vgaswitcheroo/switch worked, while without your patch it didn't. 2. logout/login to X echo DIGD > /sys/kernel/debug/vgaswitcheroo/switch worked. 3. logout/login to X echo DDIS > /sys/kernel/debug/vgaswitcheroo/switch screwed up the display. So I think I have been abused by the favourable initial conditions I used when testing your patch. Let me know if you need anything else. -- You are receiving this mail because: You are watching the assignee of the bug.