Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1385023ybh; Sun, 19 Jul 2020 18:21:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzajQ8qiaT/lQ5sI10t+3w+89r6aMllH3n9qfbskHfVZWXYKZFHsotE/lMqMo7+XGUZ0kYe X-Received: by 2002:a05:6402:c06:: with SMTP id co6mr19415379edb.142.1595208094582; Sun, 19 Jul 2020 18:21:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595208094; cv=none; d=google.com; s=arc-20160816; b=IjZ8IRS9q6opCyElJ5Hs8EoWtiXYdJh+69nA+Ao+GRAy1TeY27tofzM3KJsceu8vx+ nCzUx+Y5WST9bEdVf2Oswde+jya4oysQ9kB2Ik2bOs5dDs5QUvtZS4I6ZwBNgo+aBWwn loMdNy1qfsQvzpcdccIz/+k6uR1XtWcUb20J6iHfiCANVHDvn87Ip1QxJFYASXPe8gSx zvNoIEIpbanUbsxYvvRdmLrDtWdeU6x19YN9UiagsisK6NbjEc250Wout959W/Nzyw+L 0H8L1FCPX4TFsxs+qAW4xPPBq5bHyQh/ZLo0sKWZDrWp9MmWs67PL814jNZI1jY1Rg64 R6bQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=dTQyUG61kX2XCwIUiPSY5cCF6yJekK9Ymo10gmabLSw=; b=uc128BAMdtw8InhBiciI1Er89IBr+1Xf1knXKNC1BuqkHxrqNRfx8IBMXz9gP4X2ko cQEFLFYZH+GR6RTqdTZiQos65rjZlkCgKzKjROGHQUx2r+ZU21gvIVkpg3iDmBMB9AHd LTSBoeSehr2iiC6xmtNU08NuF1K7n2cWcybo8e690ZSvJlIvDc4nSqf9196voiQbLM+e EbnNuWemQl1fFw5hHenKCa4kcs1hb0DjVLYO/ujkVQ9k3yUIudvnYntHyaqHq2LKJlfh t4k5eRAdF2YKsS0c491NDhLXk95o1hzWO0RWFftGv5T1NaRQzpvI0JO676IF0O8VJSrn RBsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y17si9892002ejk.677.2020.07.19.18.21.12; Sun, 19 Jul 2020 18:21:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726735AbgGTBS6 (ORCPT + 99 others); Sun, 19 Jul 2020 21:18:58 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:44992 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726510AbgGTBS6 (ORCPT ); Sun, 19 Jul 2020 21:18:58 -0400 Received: from mail-pg1-f200.google.com ([209.85.215.200]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jxKSF-00036H-OX for linux-kernel@vger.kernel.org; Mon, 20 Jul 2020 01:18:55 +0000 Received: by mail-pg1-f200.google.com with SMTP id j9so12673844pgm.8 for ; Sun, 19 Jul 2020 18:18:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=dTQyUG61kX2XCwIUiPSY5cCF6yJekK9Ymo10gmabLSw=; b=WDFN4pyDKWLGvwmHxU7HaweQNruRKPGvT0HIENPRnmKLMR4P0ccFTsIT7lIIy3F4Se ETfabA9DgLAqKKJX1rrTW2a7AqxxtCCnDBscRLMwm7n/uFGSdAvN3U4QR/NktOxiKTL6 xyUAPaM0InF0rn/zmAGXlCZ7WRUR+ElB7GkdrxFnv3utM1bY9WbYUgjiGpFeDFWffXdU OGw3HUP0S8UH1w/DTYl6HdprIj9VntF1MbLrhN8Ky+TcRBCa6MhaJFn39WT3k7OrgObG FPMlpvtY/gnL/yFC1Zvo+m+ongO33mOKpX0xr3+pq8bU/h9XGL3dUyfc1ergYoVQTIJf ppww== X-Gm-Message-State: AOAM532r4cYLgPMcWWXu5os5FzuCOztz1slzD3Aw6D8zSiB+U89jytyS kpOPCqN+dTjHvCeQs0PRR4swrHC2+y+Dbcg4cbluueRh5un5nFCTd7smyy/nNOi88I1Ezb8UZ98 dtrKRWWphphkVFbpo/Yz1r4b7NOoABqRs4VDhtbZQzA== X-Received: by 2002:a65:490d:: with SMTP id p13mr16441330pgs.183.1595207934350; Sun, 19 Jul 2020 18:18:54 -0700 (PDT) X-Received: by 2002:a65:490d:: with SMTP id p13mr16441307pgs.183.1595207933994; Sun, 19 Jul 2020 18:18:53 -0700 (PDT) Received: from [192.168.0.119] (d66-222-144-129.abhsia.telus.net. [66.222.144.129]) by smtp.gmail.com with ESMTPSA id 15sm10012333pjs.8.2020.07.19.18.18.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 19 Jul 2020 18:18:53 -0700 (PDT) Subject: Re: [PATCH] RFC: ACPI / OSI: remove workarounds for hybrid graphics laptops To: Karol Herbst Cc: Linux ACPI Mailing List , "Rafael J. Wysocki" , Len Brown , Lyude Paul , LKML , dri-devel , nouveau References: <20200717190547.648604-1-kherbst@redhat.com> From: Alex Hung Message-ID: <8ad1866d-eb61-a30c-5875-5ffbfd2e17e1@canonical.com> Date: Sun, 19 Jul 2020 19:18:52 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-07-19 1:50 p.m., Karol Herbst wrote: > On Fri, Jul 17, 2020 at 9:52 PM Alex Hung wrote: >> >> On 2020-07-17 1:05 p.m., Karol Herbst wrote: >>> It's hard to figure out what systems are actually affected and right now I >>> don't see a good way of removing those... >>> >>> But I'd like to see thos getting removed and drivers fixed instead (which >>> happened at least for nouveau). >>> >>> And as mentioned before, I prefer people working on fixing issues instead >>> of spending time to add firmware level workarounds which are hard to know >>> to which systems they apply to, hard to remove and basically a big huge >>> pain to work with.> In the end I have no idea how to even figure out what systems are affected >>> and which not by this, so I have no idea how to even verify we can safely >>> remove this (which just means those are impossible to remove unless we risk >>> breaking systems, which again makes those supper annoying to deal with). >>> >>> Also from the comments it's hard to get what those bits really do. Are they >>> just preventing runtime pm or do the devices are powered down when booting? >>> I am sure it's the former, still... >>> >>> Please, don't do this again. >>> >>> For now, those workaround prevent power savings on systems those workaround >>> applies to, which might be any so those should get removed asap and if >>> new issues arrise removing those please do a proper bug report and we can >>> look into it and come up with a proper fix (and keep this patch out until >>> we resolve all of those). >>> >>> Signed-off-by: Karol Herbst >>> CC: Alex Hung >>> CC: "Rafael J. Wysocki" >>> CC: Len Brown >>> CC: Lyude Paul >>> CC: linux-kernel@vger.kernel.org >>> CC: dri-devel@lists.freedesktop.org >>> CC: nouveau@lists.freedesktop.org >>> --- >>> drivers/acpi/osi.c | 24 ------------------------ >>> 1 file changed, 24 deletions(-) >>> >>> diff --git a/drivers/acpi/osi.c b/drivers/acpi/osi.c >>> index 9f68538091384..d4405e1ca9b97 100644 >>> --- a/drivers/acpi/osi.c >>> +++ b/drivers/acpi/osi.c >>> @@ -44,30 +44,6 @@ osi_setup_entries[OSI_STRING_ENTRIES_MAX] __initdata = { >>> {"Processor Device", true}, >>> {"3.0 _SCP Extensions", true}, >>> {"Processor Aggregator Device", true}, >>> - /* >>> - * Linux-Dell-Video is used by BIOS to disable RTD3 for NVidia graphics >>> - * cards as RTD3 is not supported by drivers now. Systems with NVidia >>> - * cards will hang without RTD3 disabled. >>> - * >>> - * Once NVidia drivers officially support RTD3, this _OSI strings can >>> - * be removed if both new and old graphics cards are supported. >>> - */ >>> - {"Linux-Dell-Video", true}, >>> - /* >>> - * Linux-Lenovo-NV-HDMI-Audio is used by BIOS to power on NVidia's HDMI >>> - * audio device which is turned off for power-saving in Windows OS. >>> - * This power management feature observed on some Lenovo Thinkpad >>> - * systems which will not be able to output audio via HDMI without >>> - * a BIOS workaround. >>> - */ >>> - {"Linux-Lenovo-NV-HDMI-Audio", true}, >>> - /* >>> - * Linux-HPI-Hybrid-Graphics is used by BIOS to enable dGPU to >>> - * output video directly to external monitors on HP Inc. mobile >>> - * workstations as Nvidia and AMD VGA drivers provide limited >>> - * hybrid graphics supports. >>> - */ >>> - {"Linux-HPI-Hybrid-Graphics", true}, >>> }; >>> >>> static u32 acpi_osi_handler(acpi_string interface, u32 supported) >>> >> >> The changes were discussed and tested a while ago, and no crashes were >> observed. Thanks for solving PM issues in nouveau. >> >> Acked-by: Alex Hung >> > > By any chance, do you have a list of systems implementing those workarounds? > I don't keep a list but the workaround, in theory, should only apply to the systems with the specific nvidia hardware. I reminded OEMs and ODMs that these _OSI strings were temporary solutions, and highlighted we were going to remove them after our discussion last year. If they were paying attentions recent systems shouldn't have these _OSI strings. -- Cheers, Alex Hung