Received: by 10.213.65.68 with SMTP id h4csp1425149imn; Mon, 19 Mar 2018 03:58:45 -0700 (PDT) X-Google-Smtp-Source: AG47ELuDOLujp+eJprd2pjz4c9SwGd0OCIa21nKXHSlR6Odv5HlpOXjcdfuhLfkfQclWGpnounZS X-Received: by 2002:a17:902:60cf:: with SMTP id k15-v6mr7969359pln.44.1521457125751; Mon, 19 Mar 2018 03:58:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521457125; cv=none; d=google.com; s=arc-20160816; b=Dlpe88klA2spbPqEXymp2jTOnwolIF2RYIc4N67nQrbjY7eejC3z/tn49Je6TTSjyS YjNUvdtPnKW0UUaTsIU9ZExQhIoWPcwnlPZNIwkkZqIlaE5Aryz95BN7ROTvpxXNHjGb vjh7gylSXOGBTSmkrfATCleHVr0jRfmH8Zsm+dxOANq8Jzxkj+4UrLI37801hEv1RAmE kM7GLRsfSXKIODDv0NBiB1Ngj+bJxuk2aL2GIMunctrdnqwDDBmoZUl6jkd4Cva2qOoI sRAG9/JF370rdFcUSzwX9JL3o8r5eeDfGcpU8nqzJBQschBMpR7ivhMSwKD1L6yf9HmF G6gQ== 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=11YpuOK0r336Qb8dg6cEjIZiwOqFzOBjpA4fbhzijvQ=; b=cXP39iwZMl3l68tBuJltjHf+Nj9XEfEHRrfq5cpoxGRIb3J/YyFXNnsg7+YYvErbvl WUK6paEbJv6Z/pswww+SNtQbVrPnuWp1E+EzAxf93l/SlQjzckaOc+rnpPaRoY43TOit gbcCTsAPKG1MR4T0AtmbeknNYuqzUyoNsUaEKTDoHvjl95JFi07g6eYwTKAGPLipzHJO hgEj4DpLowZacXPqOlhTdi/G94Nz2OON40MP5xjXNnNICwzaePDKPjHwMRmf9ecK7sac Z4M/IDSA5ZTdyTFTv7xUISUL3/EVbDkcZG+JG5zn774bTYgPfv+yaj4LeMWLMYZNt8YV 4Ubg== 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 b8si9305691pgt.710.2018.03.19.03.58.31; Mon, 19 Mar 2018 03:58:45 -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 S933187AbeCSK5R (ORCPT + 99 others); Mon, 19 Mar 2018 06:57:17 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:59975 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932296AbeCSK5Q (ORCPT ); Mon, 19 Mar 2018 06:57:16 -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 1exsTR-0006nl-1u; Mon, 19 Mar 2018 11:57:05 +0100 Date: Mon, 19 Mar 2018 11:57:04 +0100 (CET) From: Thomas Gleixner To: Anshuman Gupta cc: Rajneesh Bhardwaj , x86@kernel.org, mingo@redhat.com, hpa@zytor.com, rjw@rjwysocki.net, andriy.shevchenko@linux.intel.com, linux-kernel@vger.kernel.org, Alan Cox Subject: Re: [PATCH v2] x86: i8237: Register based on FADT legacy boot flag In-Reply-To: <20180319104627.GA2959@anshuman.gupta@intel.com> Message-ID: References: <1521004627-30329-1-git-send-email-rajneesh.bhardwaj@intel.com> <20180319104627.GA2959@anshuman.gupta@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, 19 Mar 2018, Anshuman Gupta wrote: > On Wed, Mar 14, 2018 at 04:07:43PM +0100, Thomas Gleixner wrote: > > On Wed, 14 Mar 2018, Rajneesh Bhardwaj wrote: > > > + * support 8237 DMA or bus mastering from LPC. Platform firmware > > > + * must announce the support for such legacy devices via > > > + * ACPI_FADT_LEGACY_DEVICES field in FADT table. > > > + */ > > > + if (!x86_platform.legacy.devices.pnpbios && dmi_get_bios_year() >= 2017) > > > > Please use arch_pnpbios_disabled() and explain why you need that year > arch_pnpbios_disabled is defined only when CONFIG_PNPBIOS is set, which may > not be true for all configurations. The please create a helper function x86_pnpbios_disabled() and use that one in arch_pnp_bios_disabled() and in your new code. > > check. If there is no pnpbios then why is the year interesting and why > > would anyone trust something which comes from BIOS? > > Modern bios fsp have started using to use ACPI_FADT_LEGACY_DEVICES field in > FADT table, that is the reason we require a year check for BIOS. > https://review.coreboot.org/#/c/coreboot/+/23833/ > https://review.coreboot.org/#/c/coreboot/+/23835/ Sorry, this gerrit stuff is unreadable. Please explain it in your own words. You have to do that anyway as that information wants to be in a comment or at least in the change log. Thanks, tglx