Received: by 10.223.176.5 with SMTP id f5csp832157wra; Tue, 30 Jan 2018 20:30:36 -0800 (PST) X-Google-Smtp-Source: AH8x226j4+7T7blSHODVVkm/fvs3WBq045wqdLqwBrfQYxc327ahKMmTLKNYNBGNHp4ZE6ir/+g/ X-Received: by 10.98.19.137 with SMTP id 9mr32138632pft.5.1517373036865; Tue, 30 Jan 2018 20:30:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517373036; cv=none; d=google.com; s=arc-20160816; b=Y6++oLF9Lx3HKmmJ0SIELkCS/BdQjQFnFauxW2LvFEDXvGyyJPpT1yp7gAOUlDFsrJ h2UDhaBucLEqRIhFqpAlXkEtstQo44VOJ9NqZqtpxyJIOVuRwMJGZcyb3h0nekuu1y3r fO71Cs4oxRnRs+/AdROkntNrz+DgHhpmP5x9dY9P67sknUZI8xviRcL9FrIpe5Q74tQ5 6XFzq7MpaTLUNYr9ipuOz9vouW24cyyB7u2YdGINZIst8USNebiJJJy3M4F8L8LG3V90 xpMwtHmbMUWYKJ2+CWcw17pfbVENCTmukrhhlN2lsEj4+a6rerG0c/oETvdpjaILpus+ 3exw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:arc-authentication-results; bh=88NlzWmTCAcR1q9kgSjC7x6ydFxLYhE6FaJtPyPfcAw=; b=eTeMKjHwWlZka8h25icpFws8OXXe9GmQqUmF24jUWEb+RyG9VO48sHxDzl8nyXOnjs fMPUNHNmFk+8pBiUlUC6R7PEnw9Fd9UtPI5TNGd37WEMyPVEAXmuJ9Z3Vf7TlkkjFuwH JHPl0oxrMITqzN5t1wTqK+mbhbw7AhMrCn8E33r31LVkOXsWeUM+44qkNCCf9DBN5Zvp Rh6HI/skw9BCyHYkA2L6sIgaVxZXRlgp1MLe+9MJzK0HDUEqZwC38RFysKiv1QvHL5kS 31g8z/vc+QvrZxQeclpmS5eyrW7c4lhnaTQoaaX8ymnWgLczLthN/gN9i8K4EihBXunY 7jPg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id r4-v6si4130675plj.322.2018.01.30.20.30.22; Tue, 30 Jan 2018 20:30:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1752483AbeAaE1P convert rfc822-to-8bit (ORCPT + 99 others); Tue, 30 Jan 2018 23:27:15 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:35746 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752061AbeAaE1N (ORCPT ); Tue, 30 Jan 2018 23:27:13 -0500 Received: from mail-pg0-f69.google.com ([74.125.83.69]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1egjzL-0005W4-Vu for linux-kernel@vger.kernel.org; Wed, 31 Jan 2018 04:27:12 +0000 Received: by mail-pg0-f69.google.com with SMTP id e12so9695469pgu.11 for ; Tue, 30 Jan 2018 20:27:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=xN0uL8fdHJl+9E33hiPciUNrSfOREMVsVFYmFsmykRs=; b=PhuBvPYDqchcb/9tXxwDgkg5ub2hJH9O3vQxbVzBtlIBCK5rTj8w2fyEYKVhCB98aK NMNbRL1K3n2vXsI3YoQJGUJuBw1s0hq511U3cqNZvPTCSNhMisaWHqkMH2F0AZlU+edk VIxs6UMsTiqYMNQld2fWy8xWWX2E7hC1UXoFhZApGnfXKs1Nagj0K8F+j25LyTaKE4LN LeD6Yf8xrJLZmeNJgml2maA5fg30waJxN1TjyF1Dkpwn3cyb2SJEs7XWWk1/6BDKRgL+ guMEHKTff4iwQB8EVuvXW+YGtNZMd2SDCMDFAXyMSBsgbLXArvEUBvq/zUihUmMgsxgR kYsg== X-Gm-Message-State: AKwxytfbcz3Xcm0i8XpgiiWGQPLzy4bjFKETJorI73Cc821OvXrzz7X+ /IgiY4PhpqwB0NGrccKZgjqKH1ac78UcpQLAP1A/pXT0s5BBbFxcjYSkQb/0Uhwvkhcu/Paafu0 EVB+SeugAo16VcJj8EnoHUQr5BEUXKVWjCNMYcJgX1g== X-Received: by 10.98.161.16 with SMTP id b16mr32659126pff.34.1517372830687; Tue, 30 Jan 2018 20:27:10 -0800 (PST) X-Received: by 10.98.161.16 with SMTP id b16mr32659116pff.34.1517372830429; Tue, 30 Jan 2018 20:27:10 -0800 (PST) Received: from [10.101.46.95] ([175.41.48.77]) by smtp.gmail.com with ESMTPSA id n4sm22244302pgp.20.2018.01.30.20.27.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jan 2018 20:27:09 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: [PATCH] ACPI: Parse entire table as a term_list for Dell XPS 9570 and Precision M5530 From: Kai Heng Feng In-Reply-To: Date: Wed, 31 Jan 2018 12:27:05 +0800 Cc: Andy Shevchenko , "Rafael J. Wysocki" , Len Brown , ACPI Devel Maling List , Linux Kernel Mailing List , Mario Limonciello , "Moore, Robert" Content-Transfer-Encoding: 8BIT Message-Id: References: <20180130060744.19049-1-kai.heng.feng@canonical.com> To: "Schmauss, Erik" X-Mailer: Apple Mail (2.3445.5.20) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 31 Jan 2018, at 2:37 AM, Schmauss, Erik wrote: > > Hi, >> -----Original Message----- >> From: linux-acpi-owner@vger.kernel.org [mailto:linux-acpi- >> owner@vger.kernel.org] On Behalf Of Andy Shevchenko >> Sent: Tuesday, January 30, 2018 10:18 AM >> To: Kai-Heng Feng >> Cc: Rafael J. Wysocki ; Len Brown ; ACPI >> Devel Maling List ; Linux Kernel Mailing List > kernel@vger.kernel.org>; Mario Limonciello >> Subject: Re: [PATCH] ACPI: Parse entire table as a term_list for Dell XPS 9570 and >> Precision M5530 >> >> On Tue, Jan 30, 2018 at 8:07 AM, Kai-Heng Feng >> wrote: >>> The i2c touchpad on Dell XPS 9570 and Precision M5530 doesn't work out >>> of box. >>> >>> The touchpad relies on its _INI method to update its _HID value from >>> XXXX0000 to SYNA2393. >>> Also, the _STA relies on value of I2CN to report correct status. >>> >>> Set acpi_gbl_parse_table_as_term_list so the value of I2CN can be >>> correctly set up, and _INI can get run. The ACPI table in this machine >>> is designed to get parsed this way. > > I thought I would give everyone an update: we are getting close to finishing patches to enable this term list parsing by default as well as a few other fixes with forward referencing of package elements. Once we have established that these patches are stable, we will get rid of acpi_gbl_parse_table_as_term_list. So this quirk may not be needed in the near futureā€¦ I am aware it will land into mainline soon, the target version is v4.17 IIRC. Since the laptops in question are going to hit the market soon, we want to support it sooner rather then later. Also, as Mario pointed out, backport is a big factor here. v4.14 is the current LTS kernel, v4.15 will be used in Ubuntu 18.04, both of them will have lots of users. So being able to backport to v4.14 and v4.15 is quite important. Kai-Heng > > Erik >>> >>> Also, change the quirk table to a more generic name. >> >>> +static int set_gbl_term_list(const struct dmi_system_id *id) { >>> + pr_notice("%s detected - parse the entire table as a term_list\n", >>> + id->ident); >>> + acpi_gbl_parse_table_as_term_list = 1; >>> + return 0; >>> +} >>> #endif >> >> The above should be outside of another #ifdef. Basically after the above #endif. >> >>> #else >> >>> #endif >> >>> @@ -1005,7 +1034,7 @@ void __init acpi_early_init(void) >> >>> * If the machine falls into the DMI check table, >>> * DSDT will be copied to memory >>> */ >> >> It might make sense to adjust comment above that it's about quirks in general. >> And, if needed, move current content to actual DMI group of records. >> >>> - dmi_check_system(dsdt_dmi_table); >>> + dmi_check_system(acpi_quirks_dmi_table); >> >> -- >> With Best Regards, >> Andy Shevchenko >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of >> a message to majordomo@vger.kernel.org More majordomo info at >> http://vger.kernel.org/majordomo-info.html