Received: by 2002:a4a:301c:0:0:0:0:0 with SMTP id q28-v6csp569782oof; Tue, 25 Sep 2018 01:32:46 -0700 (PDT) X-Google-Smtp-Source: ACcGV60kVnw0+ILbnfs9EhwRN3E+Yz8Ng5aF27wq1vfPJqaH/Vm3NUkjXmXHdskCMlOYkronmzH6 X-Received: by 2002:a62:148f:: with SMTP id 137-v6mr2509826pfu.60.1537864366818; Tue, 25 Sep 2018 01:32:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537864366; cv=none; d=google.com; s=arc-20160816; b=sfS1K1tZ1c410lvnV5KXTYlBX0x6GAf/yu4FrXxS7bS989NyvvkYk19V4bgFaI12gD lQYdypXddr2bP6lH3a6U7aYJ8Xm+nmvOhYTfhYNfZ4DZS/vc7NCVc3KRUMOGgdNaUUnC avgK5ADvFShLtvtQkmoVwUibrUj2eP96GnkgYGqKkA1OF1MpY9lNI/0BdRtS9Eu5NWKU OaqOx+o/Sk7YDl7ZsQFPec5RLn3AwmziMJi9NxZjX+RuvsyRZo5jj91uFfAe7l9XmtXT N+W6OQEJ5pUGmxsYLRxSD8LmmCcItlIuU+LXqvLv7jzuWOPG25gg0VPgierJipt5OlVc FFSA== 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=AUO1EDA2Yfpi673kMvZLaTO05hqpysbA3mCOUcICaN0=; b=P/6o6Vg62zBK2CVythgaoovZ/kX4ze288y4v0Df/4i50vjmsf+GuolIeLuP8Z3ZoYa wWRvocfMSqvv0qVG2hqTcZvJ/3BrOF1ygG7ySN/lXGmnEh+jEamvzczJOVaCtOL1HNjI dQ079Xm8cTZYFvvJAgJ/EDEEqI09UBAml3fPZkHmkEsZcWH29PiqtrNosaB0PQk4gtQN Lc1piEYaH7WGT1mXfwQFJZmjmecTBD1pkYLIS2LCgm/QjfJjg9UXyYYhw6JtCIMGWwn0 r02AfZRACoxccHuPiRiltOO5mxJtwr+32QIVOziXWeT8DTz0pZcpOGU3s3RSXeKf1Xes xf+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fRAptCEG; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u2-v6si1587489pfn.250.2018.09.25.01.32.27; Tue, 25 Sep 2018 01:32:46 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fRAptCEG; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728158AbeIYOi2 (ORCPT + 99 others); Tue, 25 Sep 2018 10:38:28 -0400 Received: from mail-qt1-f177.google.com ([209.85.160.177]:38948 "EHLO mail-qt1-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727265AbeIYOi2 (ORCPT ); Tue, 25 Sep 2018 10:38:28 -0400 Received: by mail-qt1-f177.google.com with SMTP id c25-v6so6710201qtp.6; Tue, 25 Sep 2018 01:32:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AUO1EDA2Yfpi673kMvZLaTO05hqpysbA3mCOUcICaN0=; b=fRAptCEGHXdFbJAY1ytw+fJLKLRufz/jVwYlqZ1lsp7E/N4ZnGoEyIhT15BoKxjhyM s2BdSqSpHOfv3i6k/3MWvDAecNBylW9Oob30EfZ6GW8L5n37pP6MRJVDWKhPDVICr/cf /r15j0kZBeI9h3mtVEX4MecRlTgvx1FGiU01ICkMrA6K3CW75zgKaBtOKQjV3egmelrL +tSDWBMP0Hntdw5o/u3MV7nYVvE3Dx+1llU1HQ5NGWc0+66WPfiSbuhOGs4dX4gvB8TC iKWUq6jcmxPsh7a5maARW1KkCIlLUCg17Au81QXhoQA8u3+OVk5urTISUjfwf6SxIfSZ 9eHA== 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=AUO1EDA2Yfpi673kMvZLaTO05hqpysbA3mCOUcICaN0=; b=g5kloS9JV01QWYFV/CZi9JfIi+87ibGQErKvnurLn1vyvNo/Nw7PEkdOsq7DoBrXMb k7kI61drixNL2xmg0HKFNXFMVBgm9JinuCYL72TkaB10ap88UcEtoyofSIybucXuwN0P 0Q/Q78XtfwrPiDvybImkBzfOAmPiTAL2izh1pZxAEH6uwVABx4Kc9MKTBBZd0sjAPnYr lzrCBd0UMUMBOSsvgYBStWbKfGhOivdWJNaG2zBHpkBc3AIQUhXo8vcRcCvxNORWKdVr 6yCZFfljRZIve/sy1hdZC9xnqAAVVppfy/OffneLwo7VxetjTKu+boO58b/5qjjcWXeH rL3A== X-Gm-Message-State: ABuFfojFMzMUUvtefqP4vY3iV7z4gdxA5KvEskhkUWJ24iKBGNmObgsy nQzzKRX9SxbTwJWZQkkkG3yBRWjGpJJOyv+oVMs= X-Received: by 2002:a0c:81b0:: with SMTP id 45-v6mr1950001qvd.7.1537864321811; Tue, 25 Sep 2018 01:32:01 -0700 (PDT) MIME-Version: 1.0 References: <20180913223143.12664-1-rajatja@google.com> <20180924135935.GP15943@smile.fi.intel.com> <70D28D5DAE32E9429B09AA8B7C84AC472C0000CB@BGSMSX106.gar.corp.intel.com> In-Reply-To: From: Andy Shevchenko Date: Tue, 25 Sep 2018 11:31:50 +0300 Message-ID: Subject: Re: [PATCH] pinctrl: icelake: Fix the resource number for community-4/5 To: Rajat Jain Cc: subrata.banik@intel.com, Mika Westerberg , Linus Walleij , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Rajat Jain , aamir.bohra@intel.com 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 Tue, Sep 25, 2018 at 12:32 AM Rajat Jain wrote: > On Mon, Sep 24, 2018 at 2:09 PM Andy Shevchenko > wrote: > > On Mon, Sep 24, 2018 at 8:04 PM Rajat Jain wrote: > > > On Mon, Sep 24, 2018 at 7:54 AM Banik, Subrata wrote: > > > > First of all, this is pre-production chip, so, I don't think there is a bug in the driver (yet) discovered. > > > > > > > > Looking to the above ASL code I may conclude that is definitely is *not* from our reference BIOS. > > > > I have checked two versions of it and found that in both we have the following mapping: > > > > for LP variant: there are only 4 communities are exported for H variant: there are only 5 communities are exported > > > > > > > > So, I guess the problem is in ASL code you provided. It simple should not export that community at all. > > > > > > > > In case you need to do so, there are ways: > > > > - contact Intel and ask for a change in reference BIOS > > > > - acquire another ACPI ID for the case, or, perhaps use special constants like > > > > _HRV for that purpose (also need to contact Intel while doing that) > > > Andy, can you please let us know in what order are the resources laid > > > out in your reference BIOS for the case when it exports 5 communities > > > (i.e. community-0-2, 4-5)? > > > > We have no hardware with such PCH to answer to this question. LP > > version exports only 4 communities and order of them as per existing > > driver. > > Got it, thanks. From your response earlier: > > > Looking to the above ASL code I may conclude that is definitely is *not* from our reference BIOS. > > I have checked two versions of it and found that in both we have the following mapping: > > for LP variant: there are only 4 communities are exported > > for H variant: there are only 5 communities are exported > > 1) Do you know or recall, the order of communities in ACPI in the H > variant? Of course, this is a request for help for getting the info. I can't say anything about hardware I didn't see. Even if BIOS code has something, it's not fully guaranteed that in production it will be same. Better to ask Intel BIOS team for the details. > 2) Trying to understand how would the kernel support both LP and H > variant. Is it the assumption that the H variant will have a different > ACPI ID than the LP variant (i.e. not "INT3455")? Because it will > also have the same problem that we are seeing I think. Yes, definitely they have different IDs. You may consult with pinctrl-cannonlake.c driver (better from latest possible kernel version like v4.19-rc5) to see how it's implemented. Moreover, LP and H variants have different pin lists inside communities, so, they can't be substituted and one may consider them as different IPs. -- With Best Regards, Andy Shevchenko