From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hohahiu Subject: [PATCH 1/4] gpu/vga_switcheroo: add driver control power feature. (v3) Date: Mon, 29 Jul 2013 21:50:19 -0400 Message-ID: <51F71BDB.8060605@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ye0-f175.google.com (mail-ye0-f175.google.com [209.85.213.175]) by gabe.freedesktop.org (Postfix) with ESMTP id A177EE6A75 for ; Mon, 29 Jul 2013 18:48:52 -0700 (PDT) Received: by mail-ye0-f175.google.com with SMTP id m9so1689300yen.34 for ; Mon, 29 Jul 2013 18:48:52 -0700 (PDT) Received: from linux-78nz.site (pool-71-174-0-40.bstnma.east.verizon.net. [71.174.0.40]) by mx.google.com with ESMTPSA id g66sm88295112yhd.11.2013.07.29.18.48.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Jul 2013 18:48:51 -0700 (PDT) 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 Hello, Dave! I have a hybrid muxless laptop with intel+radeon: #lspci | grep VGA 00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) 01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Cape Verde [Radeon HD 7700M Series] I have some questions related to this series of patches. When I power down discrete card by vgaswitcheroo, restart X server and turn on radeon card again, xrandr doesn't recognize my discrete card and only shows the intel one. Is this a bug or a feature of X server? And how would this behavior change with this patch? Also sometimes I have the following configuration: # cat /sys/kernel/debug/vgaswitcheroo/switch 0:DIS: :Pwr:0000:01:00.0 1:IGD:+:Pwr:0000:00:02.0 In this case if I do # echo OFF > /sys/kernel/debug/vgaswitcheroo/switch the system hangs and doesn't respond (ssh, magic keys etc.). In the meantime for a # cat /sys/kernel/debug/vgaswitcheroo/switch 0:IGD:+:Pwr:0000:00:02.0 1:DIS: :Pwr:0000:01:00.0 # echo OFF > /sys/kernel/debug/vgaswitcheroo/switch powers down discrete card successfully. Would it be resolved with these patches? Hohahiu PS. Should I open bug report for these issues?