Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1236857ybh; Sun, 19 Jul 2020 12:51:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7wppUN9n1OTmEDEXzICUd2m1k7loxW142vsynNZl5hWZts9jLy8BqJcC/joby4K0RcnCa X-Received: by 2002:a17:906:492:: with SMTP id f18mr17987199eja.279.1595188304181; Sun, 19 Jul 2020 12:51:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595188304; cv=none; d=google.com; s=arc-20160816; b=Vmg1y6khusqnusp2Ej2HWkw+86Kc0FAFV1rirmMQVHsWL7aNSFbKCqnJWErxh8t8gM 0fe4zTxa3QVBTUAawhFAYvkh7Cg8VZK28NRCva9NAf/Tnd3dnuF3Es2nMsdkf7XYH4QS XoFi3snHZWkeGh/U6cJ14efHcwNs6O7jnBUoJFGvcp4iHb8gOgsUekbIkxN6STX/S0kE QpIBQ3MRVOIxtPN3bxb0iwgzqNcyztGCsyNhvBTVkPed9e3W6Wg4jAkVi89Zr+nXkhIe 5dq07bUwN91qglCk/fnlc1sWvpOWB2FKOw88P8usyBuGsMI+foh1ZKit3ZP3D5I/5LBO VxCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=5+W4juhVWCiEA3fhSp7PQYC8FiX7DnbLymUoDvTE4gg=; b=elyrAArBJBNtigc8sowcrogPxi6CzadON845Q68ARS3OPpQVaRH3TzwtXN2KGWraLY o6s5YEBxl5MwonTzhEoz4rJztNDCTTs7lfPUHm0i3CqohJIvAkmWDB/fiKfkpMvcz0QE ZCKr624IqdvxsYwmwwUiXoKBJTOPcuW75evxvRbViElkBjivHAmZP/3jO3Xbz7Z9vrQn e28cUrt9SATkXYzjXzBmfdnvZkUOtMlKxb49avI40vYO8URrBWkwZDMeeVsUb+ub/TL3 SPjm0li6wkBPL6W5VZXwPr8onTo0o/3vCmJXzgWmK5WzoFsykHT7AvcPwgYKam+Ax3jd rEqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hmaF0854; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r20si8739594ejc.678.2020.07.19.12.51.21; Sun, 19 Jul 2020 12:51:44 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hmaF0854; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726131AbgGSTvL (ORCPT + 99 others); Sun, 19 Jul 2020 15:51:11 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:41824 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726073AbgGSTvL (ORCPT ); Sun, 19 Jul 2020 15:51:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1595188269; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5+W4juhVWCiEA3fhSp7PQYC8FiX7DnbLymUoDvTE4gg=; b=hmaF0854vEaDyXo3jhOu1rLfdEDINnMjQwwvYvuWrrDi9xSzynTTDKGgnPsKZCRArOx072 CtOKQYAEajORhXDeYeOEPwi7bYP+1AhiOjwR1dueArMVck36Hzm641JYR10sXH+55NE+Wc Kdgv2LVQJKlgo/RvOBaQggAhFGpgDnY= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-173-z6lWsa8HPM2rgocvSnkYSg-1; Sun, 19 Jul 2020 15:51:08 -0400 X-MC-Unique: z6lWsa8HPM2rgocvSnkYSg-1 Received: by mail-qk1-f198.google.com with SMTP id q3so1563740qkj.10 for ; Sun, 19 Jul 2020 12:51:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5+W4juhVWCiEA3fhSp7PQYC8FiX7DnbLymUoDvTE4gg=; b=PSbjgMJk3a0atyYPH+Y4W57nsygqie+cRjD5BXxH2u7xqfplNdA53ThWdMEUwVAzNj wB+XWIR04ud8KXga1Wk7zZkLJLx/Gk9oZN2dI4/5cD83GO8ZUzc7bA9PbMJBfg+lGQDm aZ/Ks8VZQlLTpa5ydu/KVlmsXSysLQ3QCe61VNJBbHpB+g9l7feQwNBco3NkWz3DmVlN PbwGb9OazNXWu4ggFg15z+MDBIXxkPUKw552iMTOKyS6MJjJSAwtxhRKMXxeF8YhbSe+ jP7SQoC5J0pbY+Wo1b6zo78D0ziByYluMZpdljpgMT0xBIOzUicAQQ62U5KUFj25G8eY n+MQ== X-Gm-Message-State: AOAM531TAjf2ioDg3tZm1qRCoo8oZSq/Z3P0xFiQn/Ek/VyFnGpVt9XS hIY3R/R6a5CBg2awOQfcMo1GWEf7BtT7rRu3zkqgNU+PUCZRpPck9ssAzsIJa0vsluMgSfqeWAp 6u8hjaGSlaAFpYRIGv+wDjsiuHgkQ3AjNo9rsfPlf X-Received: by 2002:ac8:4250:: with SMTP id r16mr20990800qtm.378.1595188267463; Sun, 19 Jul 2020 12:51:07 -0700 (PDT) X-Received: by 2002:ac8:4250:: with SMTP id r16mr20990785qtm.378.1595188267211; Sun, 19 Jul 2020 12:51:07 -0700 (PDT) MIME-Version: 1.0 References: <20200717190547.648604-1-kherbst@redhat.com> In-Reply-To: From: Karol Herbst Date: Sun, 19 Jul 2020 21:50:56 +0200 Message-ID: Subject: Re: [PATCH] RFC: ACPI / OSI: remove workarounds for hybrid graphics laptops To: Alex Hung Cc: Linux ACPI Mailing List , "Rafael J. Wysocki" , Len Brown , Lyude Paul , LKML , dri-devel , nouveau Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?