From patchwork Thu Mar 1 03:27:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Hung X-Patchwork-Id: 10250309 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9A97060211 for ; Thu, 1 Mar 2018 03:28:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B05628F06 for ; Thu, 1 Mar 2018 03:28:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7F9E428F25; Thu, 1 Mar 2018 03:28:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E96DE28F06 for ; Thu, 1 Mar 2018 03:28:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965695AbeCAD2N (ORCPT ); Wed, 28 Feb 2018 22:28:13 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:46181 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965645AbeCAD2A (ORCPT ); Wed, 28 Feb 2018 22:28:00 -0500 Received: from 1.general.alexhung.us.vpn ([10.172.65.254] helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1erEsv-0004D1-UN; Thu, 01 Mar 2018 03:27:58 +0000 From: Alex Hung To: rjw@rjwysocki.net, lenb@kernel.org, alex.hung@canonical.com, linux-acpi@vger.kernel.org Subject: [PATCH][V3] ACPI / osi: add OEM _OSI strings to disable nvidia RTD3 Date: Wed, 28 Feb 2018 19:27:55 -0800 Message-Id: <1519874875-26281-1-git-send-email-alex.hung@canonical.com> X-Mailer: git-send-email 2.7.4 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP A number of Dell systems require an OEM _OSI string "Linux-Dell-Video" as a BIOS workaround to disable RTD3 which causes systems hangs when nvidia graphics cards are installed. The affected Dell systems are with system IDs: 0818, 0819, 0820, 0850, 0851, 086F, 0870, 0885 and 0886. The form of the OEM _OSI strings is defined by each OEMs and is discussed in Documentation/acpi/osi.txt. Signed-off-by: Alex Hung --- drivers/acpi/osi.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/acpi/osi.c b/drivers/acpi/osi.c index 76998a5..a22fe3a 100644 --- a/drivers/acpi/osi.c +++ b/drivers/acpi/osi.c @@ -57,6 +57,14 @@ 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}, }; static u32 acpi_osi_handler(acpi_string interface, u32 supported)