Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3897403rwa; Tue, 23 Aug 2022 12:06:05 -0700 (PDT) X-Google-Smtp-Source: AA6agR551XUrKDJ+4RtCvpmVNF1WWKZroaXIoZLB5aU8IHoe1qCrBmCNHNVOrSQ/vYOPk/uYfxf0 X-Received: by 2002:a17:907:9727:b0:73d:981d:de2c with SMTP id jg39-20020a170907972700b0073d981dde2cmr669709ejc.484.1661281565094; Tue, 23 Aug 2022 12:06:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661281565; cv=none; d=google.com; s=arc-20160816; b=Z3ZFcj/esdTKzfoiCQax/2yUXtAwYdG7V/abcAr2T2BxH0jZxvdJ9ZlEj4QlkO+cGg iOrk+lnbRGCqB0DZTVpgFEvoU6NoM6oo6K+nU9VddqFzToIgKx19DVsCCzZHS8M8tAkr volGW4ioPX1O2PTLugOQwp21r2b100dI8WD1m6CsF/3qQXu7IYVqWcmANdEeh849Z3wd 2a2VfdvTJ/RWCuoZuUL/XqyEfeAAthNpGHpWikRmcagnAmPMMUvU4Wj88yi9jRWaO2xX eoiZQxzmI+jsp8Fumh/Kp6oo9h1BI+LRDH6w2wvssFN0o2E/yM0T3bHktG3EnkTUhViQ /Ssg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=B8p2uyAKXgw2ytHTuc+5AiV01x8sZyv3wGpjT1yNESQ=; b=or3HsVHzpv1RiQGMaczfK7KR8JoBCqhSgQYuOXpshe73M2+5b+kJ9fBsVC80w8JYqI opPmmcdxtIy3tZ9l8Wu1MNRBZHmrqXWUmJGk5n0KyHTItPQgvdwzz6B8LI28GHD62bFY yIwnfge7wQ7LQzhg57QZ4TkTp678TcgfeHGsybqZ9yp59dX/sOdHK8WRhjNWLgI+2vp2 zn0GWVAfaivgWK2ZEUsIa3muNXjtjxfIRfJb1gq+0DH3TXTmONN/EkPSiIysnUE0nuHh XHmUkiDL1D35WTYhaYoiJdf0ttXo+71BBlaDdVv0vP3Pi1+dwRDw/u/VuXvFryKkwkOw wVOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Rkabmo6N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y16-20020a170906915000b0073d8ca5e482si413279ejw.291.2022.08.23.12.05.37; Tue, 23 Aug 2022 12:06:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Rkabmo6N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233434AbiHWSma (ORCPT + 99 others); Tue, 23 Aug 2022 14:42:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232254AbiHWSmL (ORCPT ); Tue, 23 Aug 2022 14:42:11 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C73E9083E for ; Tue, 23 Aug 2022 10:05:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661274314; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=B8p2uyAKXgw2ytHTuc+5AiV01x8sZyv3wGpjT1yNESQ=; b=Rkabmo6NajtdlhKrv2j0JG0E6gcXO4Z+I0ajpHyinLaCynNi0UrD03mGOdGaF/oLhK+Cp1 qktMEfeWolYGIRKi/Z942NHZbrixBcFxZJAZrQ9EL3+SE7MCz4rArHjZlY1mabR/kIAx48 viYdyDCeSw7L7CEWzoUiJMEj0opg0y8= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-470-Ad_T190RPoyPi65f5El6DA-1; Tue, 23 Aug 2022 13:05:13 -0400 X-MC-Unique: Ad_T190RPoyPi65f5El6DA-1 Received: by mail-qk1-f200.google.com with SMTP id de4-20020a05620a370400b006a9711bd9f8so12500215qkb.9 for ; Tue, 23 Aug 2022 10:05:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:organization :references:in-reply-to:date:cc:to:from:subject:message-id :x-gm-message-state:from:to:cc; bh=B8p2uyAKXgw2ytHTuc+5AiV01x8sZyv3wGpjT1yNESQ=; b=hmCtP4kovVpEF4NrCoVDhgyprzgTssOJvpERhN53wZlpAaWTlogyASjr4wCD+1nVTG S486ZcBfMJJUNTzsVD8fP/a0hWjI6RYFogWyB9/DatgIJJFF6znfN4kRdCsdQpJUB9Gm oVuXqede2HLbr9UtrDtxEC5agiLPwpxTxh8AhSiNrL8ZrrCehUyzygraAgb8fr7/sMgp zkwlXiY0batUrJQH/btE6Y80Essm8Xt372JbBwF+LFmemwEW4C5+vLmCmYzadx43txhH sgVg+/y/wekz0cQYbvA9gDl/SpaWy5ZcHR8PAY+oGNljZr4NfOBnZbzIiULf/x51WkaH hXeA== X-Gm-Message-State: ACgBeo0KdE879JXb68FaUeTOVDKQnveARmIBb9UbVKummqwUqrCEX8c4 AOl7WFO8Mx6Wa4AcWjE4smnXYhiaxtzyKZfJAs/wU3/giZ8FX3Lz5pTFYIvWYCVogi8M0UMucu6 ASvaOTnpEK9gH0vUx0hLifjD9 X-Received: by 2002:a05:620a:258a:b0:6b6:641c:9e8b with SMTP id x10-20020a05620a258a00b006b6641c9e8bmr16600837qko.82.1661274312957; Tue, 23 Aug 2022 10:05:12 -0700 (PDT) X-Received: by 2002:a05:620a:258a:b0:6b6:641c:9e8b with SMTP id x10-20020a05620a258a00b006b6641c9e8bmr16600803qko.82.1661274312625; Tue, 23 Aug 2022 10:05:12 -0700 (PDT) Received: from [192.168.8.139] (pool-100-0-245-4.bstnma.fios.verizon.net. [100.0.245.4]) by smtp.gmail.com with ESMTPSA id fb24-20020a05622a481800b003434d1a7a14sm11086541qtb.62.2022.08.23.10.05.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Aug 2022 10:05:11 -0700 (PDT) Message-ID: <54f3e05187c4e923b3a746beff3be4071ed0f2e1.camel@redhat.com> Subject: Re: [RFC 0/2] Stop the abuse of Linux-* _OSI strings From: Lyude Paul To: Kai-Heng Feng Cc: Karol Herbst , Mario Limonciello , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, rafael@kernel.org, Len Brown , nouveau@lists.freedesktop.org, hdegoede@redhat.com, ddadap@nvidia.com, Dell.Client.Kernel@dell.com, Aaron Ma Date: Tue, 23 Aug 2022 13:05:10 -0400 In-Reply-To: References: <20220819142519.5684-1-mario.limonciello@amd.com> Organization: Red Hat Inc. Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2022-08-23 at 11:47 +0800, Kai-Heng Feng wrote: > [+Cc Aaron] > > On Tue, Aug 23, 2022 at 5:18 AM Lyude Paul wrote: > > > > On Fri, 2022-08-19 at 17:44 +0200, Karol Herbst wrote: > > > On Fri, Aug 19, 2022 at 4:25 PM Mario Limonciello > > > wrote: > > > > > > > > 3 _OSI strings were introduced in recent years that were intended > > > > to workaround very specific problems found on specific systems. > > > > > > > > The idea was supposed to be that these quirks were only used on > > > > those systems, but this proved to be a bad assumption. I've found > > > > at least one system in the wild where the vendor using the _OSI > > > > string doesn't match the _OSI string and the neither does the use. > > > > > > > > So this brings a good time to review keeping those strings in the kernel. > > > > There are 3 strings that were introduced: > > > > > > > > Linux-Dell-Video > > > > -> Intended for systems with NVIDIA cards that didn't support RTD3 > > > > Linux-Lenovo-NV-HDMI-Audio > > > > -> Intended for powering on NVIDIA HDMI device > > > > Linux-HPI-Hybrid-Graphics > > > > -> Intended for changing dGPU output > > > > > > > > AFAIK the first string is no longer relevant as nouveau now supports > > > > RTD3. If that's wrong, this can be changed for the series. > > > > > > > > > > Nouveau always supported RTD3, because that's mainly a kernel feature. > > > When those were introduced we simply had a bug only hit on a few > > > systems. And instead of helping us to debug this, this workaround was > > > added :( We were not even asked about this. > > > > > > I am a bit curious about the other two though as I am not even sure > > > they are needed at all as we put other work arounds in place. @Lyude > > > Paul might know more about these. > > > > Some of the _OSI strings are totally fine. From my recollection: > > > > [ 0.242993] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio) > > ^ this one is needed to do a couple of ACPI tricks at startup to get the PCIe > > device for audio on nvidia's GPU to be detected properly > > This should be fixed by commit b516ea586d71 ("PCI: Enable NVIDIA HDA > controllers"). > Aaron worked on more Lenovo systems than me, so he may be more sure of it. > > > > > [ 0.242993] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics) > > > > I don't actually know how necessary this is, but I'm hesistant to call this > > one bad as it may be related to the funny mux configurations that I'm learning > > may exist on HP machines. > > Should be fixed by commit 8e55f99c510f ("drm/i915: Invoke another _DSM > to enable MUX on HP Workstation laptops"). > > And for "Linux-Dell-Video", it should be fixed by 5775b843a619 ("PCI: > Restore config space on runtime resume despite being unbound"). > > So actually I am in favor of removing them all. Woo! Thank you for the help with this :3. Since this all seems to be in order: Reviewed-by: Lyude Paul > > Kai-Heng > > > > > > > > > > -- > > Cheers, > > Lyude Paul (she/her) > > Software Engineer at Red Hat > > > -- Cheers, Lyude Paul (she/her) Software Engineer at Red Hat