Received: by 10.213.65.68 with SMTP id h4csp1174399imn; Mon, 26 Mar 2018 02:13:17 -0700 (PDT) X-Google-Smtp-Source: AG47ELsswXJ1hs5iXujelQkCBBIBtBLEO9DwFxBl7Krw5Jy6A4eRE5ykG/IaX2aCIsNoxmuTBkJp X-Received: by 2002:a17:902:6884:: with SMTP id i4-v6mr40717411plk.259.1522055597942; Mon, 26 Mar 2018 02:13:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522055597; cv=none; d=google.com; s=arc-20160816; b=aPC2wztKPTrZlHPA/qvFF/p/Z6wcrWlz/BM/Q4iwMWy09ZP6NQnHa1kOITv+oFOzxv AUCu0SsGmPeH9Pe59TUateLxEEmt3UkOfqcXxY8Ks7zlmnKM3c7td7eSriuLl1m9L6TB +32fpiAxu3jxCodnH8Wgi5YxlcFFkkZk14558MK3DNTfgVvS9fgX4fqSGytidNCVTOsw zSBSicUuhSPUTxXwu2DuEn+falnC0PmD560U2moJhflR0fiSBhmF8JHDeAL9lTwC7oMG 8hsh7zuTKPmZVBUj2iveDtbgGALMXqWwN56FCHRC1ME1jUJ6vK8ezxfnwMXZAziTICtE KGBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=z1oGG+5akGS+RVHsbst1el9aWJEpQL5SWTF+5zXlXVM=; b=gBZcPLEOrGyX+rvEuiNXue0BbKb/jc5ucbkyHG60TYDIWCNsyD9ao9jLkkOe0xGSBj zIZ9M4aRsWsLh1O4feV1fi+m2fj0AKU4Fp1bxMcko/CrwtbNanz3EwRMLsXXjIJwporS Z15bilKnfcKHFy6rkk+iP9p+pvEovO4obG1ZY4MUnGkepYJrj9XaTuKRYeJ+3QJP/63s TTFeXTsgIKz94LtCnYxTnX/Xy2Cw/FcNCDMizkgIKTSCYBwi6mcrSQXxO5lwNXs0Pock pi7FRmt9c5pjgiGI4NT44VFS4D+ffTQiPCFArqtAeU8mCh0GPAcMEb6672xtr6DL7UCy ydLw== 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 u11-v6si14202222pls.735.2018.03.26.02.13.03; Mon, 26 Mar 2018 02:13:17 -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 S1751220AbeCZJMG (ORCPT + 99 others); Mon, 26 Mar 2018 05:12:06 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:45078 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751013AbeCZJMF (ORCPT ); Mon, 26 Mar 2018 05:12:05 -0400 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1f0OAU-0003Ms-Bd; Mon, 26 Mar 2018 11:11:54 +0200 Date: Mon, 26 Mar 2018 11:11:51 +0200 (CEST) From: Thomas Gleixner To: Rajneesh Bhardwaj cc: Anshuman Gupta , glx@linutronix.de, x86@kernel.org, mingo@redhat.com, hpa@zytor.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 In-Reply-To: <20180326054833.GA25173@raj-desk2.iind.intel.com> Message-ID: References: <1521714118-31282-1-git-send-email-anshuman.gupta@intel.com> <20180326054833.GA25173@raj-desk2.iind.intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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