Received: by 10.213.65.68 with SMTP id h4csp1245055imn; Mon, 26 Mar 2018 03:58:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+IMi+DSC5gvGgMaSr7ixg9bHfwXW9PXKiR4t/Exw5QUaODOId7DYUDw5n0ZKcvfy6AEnMn X-Received: by 2002:a17:902:ab91:: with SMTP id f17-v6mr3048303plr.73.1522061921519; Mon, 26 Mar 2018 03:58:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522061921; cv=none; d=google.com; s=arc-20160816; b=vhtBvAWC+14AagDkF9S3Vf9s2WNjl5QeMda3Q+6datP1U1tauBsPmOc+8CfaltQwN8 ELWPwba6xWJhTViIExUFahoz+ap3eIxogT/qYOYDUKrqRYhv0PPpMVZwXP6ivNOMVndo K6nmNJrR6x3Lnc0k6J28zloXPoad409gaSwYnyUh0BN6kU/HBMivcBGEbmMOrRbO/O1y iD3ySoglmEX2/LIiNrlV36cBpC3Hw17Sd/su8wNl64O6dK1rv1c3jw9eWu4mNnXqEx8N BuA8XOGzONMmV5K9hKxVrRv/nGvPt9EIHo4hk+WXb98gVbH4Ya5ZYxA7/rWshxErkcYh ay8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=gZWe2ZaPhNq8pQwfuub+oteyBV22fgZe0HdGM+NLgN8=; b=M1Yrjv3bzCoYPGxJsgZMcjQ+3pszUOiN6YhVv7Zefp4ncQvbiKadRvtHy776zWKrqv dUUg1y654A3tEtHx7igcUf1uUkFhWScJ2ccVuBtXivz73Yz4bfcU98PWOX+x686ursNE pWzRNB+JdHNv0T+q+b8AXoD6GXHhiekP7P4hTjoxdp+kDsQX9dk9/L5+aOlgUqZV7aer B3fDXAQzJwpBkQijr3iDyvYmnitw4oyL5STOgB1BzF113uI7/URr4lPc2qHjyZ/XgP0x ImHSfCWmh5xekkq5PGog47K/hxjv5u5DH0CPUq7z7McVDlLWplslyKiIpBorQIa5CwZs 7lqQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g191si9931363pgc.352.2018.03.26.03.58.27; Mon, 26 Mar 2018 03:58:41 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752036AbeCZK5D (ORCPT + 99 others); Mon, 26 Mar 2018 06:57:03 -0400 Received: from mga02.intel.com ([134.134.136.20]:45284 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751090AbeCZK5B (ORCPT ); Mon, 26 Mar 2018 06:57:01 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Mar 2018 03:57:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,364,1517904000"; d="scan'208";a="214895909" Received: from raj-desk2.iind.intel.com ([10.223.107.30]) by fmsmga005.fm.intel.com with ESMTP; 26 Mar 2018 03:56:57 -0700 Date: Mon, 26 Mar 2018 16:21:56 +0530 From: Rajneesh Bhardwaj To: hpa@zytor.com Cc: Thomas Gleixner , Anshuman Gupta , glx@linutronix.de, x86@kernel.org, mingo@redhat.com, rjw@rjwysocki.net, andriy.shevchenko@linux.intel.com, alan@linux.intel.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] x86: i8237: Register based on FADT legacy boot flag Message-ID: <20180326105155.GA25340@raj-desk2.iind.intel.com> References: <1521714118-31282-1-git-send-email-anshuman.gupta@intel.com> <20180326054833.GA25173@raj-desk2.iind.intel.com> <8A68406D-B05E-4953-89D1-D2AB49904644@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8A68406D-B05E-4953-89D1-D2AB49904644@zytor.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 26, 2018 at 03:34:44AM -0700, hpa@zytor.com wrote: > On March 26, 2018 2:11:51 AM PDT, Thomas Gleixner wrote: > >On Mon, 26 Mar 2018, Rajneesh Bhardwaj wrote: > > > >> On Sun, Mar 25, 2018 at 01:50:40PM +0200, Thomas Gleixner wrote: > >> > On Thu, 22 Mar 2018, Anshuman Gupta wrote: > >> > > >> > > From: Rajneesh Bhardwaj > >> > > > >> > > >From Skylake onwards, the platform controller hub (Sunrisepoint > >PCH) does > >> > > not support legacy DMA operations to IO ports 81h-83h, 87h, > >89h-8Bh, 8Fh. > >> > > Currently this driver registers as syscore ops and its resume > >function is > >> > > called on every resume from S3. On Skylake and Kabylake, this > >causes a > >> > > resume delay of around 100ms due to port IO operations, which is > >a problem. > >> > > > >> > > This change allows to load the driver only when the platform bios > >> > > explicitly supports such devices or has a cut-off date earlier > >than 2017. > >> > > >> > Please explain WHY 2017 is the cut-off date. I still have no clue > >how that > >> > is decided aside of being a random number. > >> > >> Hello Thomas, > >> > >> We tested on few Intel platforms such as Skylake, Kabylake, > >Geminilake etc > >> and realized that the BIOS always sets the FADT flag to be true > >though the > >> device may not be physically present on the SoC. This is a BIOS bug. > >To keep > >> the impact minimum, we decided to add a cut-off date since we are not > >aware > >> of any BIOS (other than the coreboot link provided in the commit msg) > >that > >> properly sets this field. SoCs released after Skylake will not have > >this DMA > >> device on the PCH. So, because of these two reasons, we decided to > >add a > >> cut-off date as 2017. > >> > >> Please let us know if you feel strongly about it and we can change it > >or > >> remove it if you feel so. > > > >I don't feel strongly about the cut off itself, but I want a reasonable > >explanation in the changelog or code comment because half a year from > >now > >nobody remembers .... > > > >Thanks, > > > > tglx > > Can we probe safely for this device? Hi Peter - Apparently No, that's why we are trying all these indirect means to determine the presence of the DMA device. As you might have noticed, this driver registers as syscore ops and not on the basis of a ACPI object or HWID or anything else. > -- > Sent from my Android device with K-9 Mail. Please excuse my brevity. -- Best Regards, Rajneesh