Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1628542ybh; Mon, 20 Jul 2020 03:17:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxvy3WBPCxrUV68vMR77jcrK9W7E2DXPSj2IZEjjq121qwLK665vMYXyQYxtufo5/coBgY X-Received: by 2002:a17:906:2b52:: with SMTP id b18mr20449077ejg.158.1595240275000; Mon, 20 Jul 2020 03:17:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595240274; cv=none; d=google.com; s=arc-20160816; b=yyQg0K24pLcrR8SP1IYKXzIipW70bWUiTPViePFBAxHvXzMPYxVQkrOT/wE7flnYnw tj07Qwa0/tq2DL03DqtZrG+m7Iajbh3B6sNv2D8HGcJkwWPND9l8SlzEIFdbnwNB6Kwa dKKyLj/e0YrHWzyqpHsHcKQBdGDZ4pSb9rWzq28eJyy2B9K8+cKU6Qsvao6LMfZ+Mkrk C1QtM7rv/J8vuzW2dj6Xk70VIoVBZ2XHy0/I6KfUf38gsZBsbvIvVvqHlu3kg5QSWtRR eM39rXiQUc/wHnMpadOsLi8f0k54DyUboEzmJv8pOvi1A+7nAmZZwB3zyOgvBkm2ML/5 93nA== 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=Y99N3HO5g+WhE1TjJOE+/XsdF+y0jzvQOLZP2UKx7lM=; b=uiXEOQQ8iUcqi7x/qAe8lqeq6mRtGQLNj4kiNCkX6AM8MCSzoMWsga4v+YrVUpyBbz RdDBBZHmkj6fyNVfrnRKcbkb9LR46Jkj5OseGCywK3AC+Ws/CTZoMcB7V0IG4RAhQ9P+ sgHKvn3FnCbiAhOhyV8hh0Xb+oZy94JR28VGFo73GzBuSQbYcHoION64tfCq94eNw25q EEJvVPI+YH/24NN66J4VuVjoKvftgU9Mz1c0hIx0W1kRucqoYq+/Xcf6sP4um1OCEx1A HcxvQt06NlgTPNB1ppYZEFglAyPj1L92ShrIy4l74/i7Nc9WiCGCud4bJH6kNpP5LMhc cN6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TvVhZfWD; 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 n6si10168627edy.324.2020.07.20.03.17.30; Mon, 20 Jul 2020 03:17:54 -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=TvVhZfWD; 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 S1728270AbgGTKRU (ORCPT + 99 others); Mon, 20 Jul 2020 06:17:20 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:25700 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728007AbgGTKRT (ORCPT ); Mon, 20 Jul 2020 06:17:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1595240237; 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=Y99N3HO5g+WhE1TjJOE+/XsdF+y0jzvQOLZP2UKx7lM=; b=TvVhZfWDFpptfz+akF9jGaD9T+ccYbib0z26dC852sfRNTDh2A1ZAdibC8fwdTssw2sTUn BndKMZ7B482SaxVMKmWpqJ9ZENnOFg67zDXjkPPPBz8QumBLG+fXR+v7SJSCl5lgjyTWc0 VcSH750W7WDF4A7YQLjnfXqjLVvl86s= 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-456-CnFAw3flNMiH_MNNNYDkbA-1; Mon, 20 Jul 2020 06:17:16 -0400 X-MC-Unique: CnFAw3flNMiH_MNNNYDkbA-1 Received: by mail-qk1-f198.google.com with SMTP id d6so3717502qkg.6 for ; Mon, 20 Jul 2020 03:17:16 -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=Y99N3HO5g+WhE1TjJOE+/XsdF+y0jzvQOLZP2UKx7lM=; b=O5ExFFBG+V+8x8LCgREo9u3/S5ilYP+jx2BFltSyeGvBHtcZike5ZRmRckni6D3ORn Ev5EGpc1zYbIFJtX064J9nWUU8gRdYP9gs3J7UP3+R7RY5t1O0lhbJ3z5xqlHchTrah4 7m+Wcp52QkMiWJkgGwI+UyO8hL06Fn1DhiJRnqSvQAVfVBGy2bdF7axzUeQFKRYa4W6J xyZhh+muBp62hIOHuOPw38YEUQs12R+K9GNzYPd6vKNukL7VvRABaWMLVvhDcmtGpGhA nhccqS1J1kGhvGy5ybt4AsiqnoIsvBZo0QpxeCniyICVnuFZlEy9Jv0ItdpSYfDipb8g 5ucw== X-Gm-Message-State: AOAM530yDGiw7JbqO7gHSnVq3hsWwdIJj8d4lK2JvBqseu/aZWOxXVsY NTuQ/9r2AbKc6zI2k8g3QXn9+CM4ZiAnt3IctYYLqeQVqvupQajUSEKWt5SgrvTe6MAaC3nbrPP x5pOWv1BhHzEcNXzA9sN2u91m8ClgdmERzhJU0pZ+ X-Received: by 2002:ac8:4250:: with SMTP id r16mr23291255qtm.378.1595240235916; Mon, 20 Jul 2020 03:17:15 -0700 (PDT) X-Received: by 2002:ac8:4250:: with SMTP id r16mr23291239qtm.378.1595240235652; Mon, 20 Jul 2020 03:17:15 -0700 (PDT) MIME-Version: 1.0 References: <20200717190547.648604-1-kherbst@redhat.com> <8ad1866d-eb61-a30c-5875-5ffbfd2e17e1@canonical.com> In-Reply-To: <8ad1866d-eb61-a30c-5875-5ffbfd2e17e1@canonical.com> From: Karol Herbst Date: Mon, 20 Jul 2020 12:17:04 +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 Mon, Jul 20, 2020 at 3:19 AM Alex Hung wrote: > > 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. > Right.. but I am actually wondering because I never saw those strings in the wild or not on the Dell and Lenovo systems I was testing on. So I think we might want to ask the vendors themselves and verify on those systems. > -- > Cheers, > Alex Hung >