Received: by 10.213.65.68 with SMTP id h4csp1327667imn; Wed, 14 Mar 2018 17:24:53 -0700 (PDT) X-Google-Smtp-Source: AG47ELt7watJ3obPV8NyVZSUd9VH6W4zH1eVVjDxzStop2gWTC5NQfyTeWJYnYrMxPmIVfIOuv0I X-Received: by 2002:a17:902:227:: with SMTP id 36-v6mr5702973plc.134.1521073493893; Wed, 14 Mar 2018 17:24:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521073493; cv=none; d=google.com; s=arc-20160816; b=Stkw1l3622jME0X8+SrsYhaRgjf8XGPt4ONcmlc2GV/xb1Tebi5d/nVKAMwHZ48bTY wmq1TCzhWVQCGXoYOjObModdWCDDlEY4m3tJRVeoYHbrIAcdDwz6hoDdyi/QRBOVlpx8 Ye0egGSAbhV7iPbt6yz77LPsZPAdCpYpl8e6N9mlLnRodAR3ERcQjbEueBGEmfrVCqXn ILeIu8mtW2jp6uzHkZJRGGAaGGHBNTDsJG+hj47NcpKTYy7SCcVpy+u278fOBloWIsON S7JPGSHsWODBZGMuJKBh6XuiQjBdW5Orl7y7P3Pxba6BVUC+mG0DPIkwIZD2eRM5UK2b hhHA== 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 :arc-authentication-results; bh=9C11rfnyyWJMzI6NYqJOnMAybU15gVAxDlNUEepg1bs=; b=CNQzBaKy6aDLuhXmJIVylSlEWcvJRndy3/D9gzjEgo1zENWTNuJ4740FJDuJej6wUL jjLr7tr7va7NkO/8TdAawCz8xN9hZerBfTqlGaDnhBXIwV7kerjPXN1FWrnboiLMK9Wx lAvb2Tid8bmL5fSoBvpYMQoczImIqk9B/Q3ZgLX460WJRRlT34FkjGTTMjIg6kBccHTj N656wHCLs8Ruo+4KBeXvFJfJgRKfMI9S/X/orhekufw+oYtDh13ODod/dbkfg3wnO6x3 qfzAiCk4RHlWqbTO4tTfkROMxExBYnq/XIx2+Tuhr3W2dWZ26w/mFfY5FV7Bpo0Sa/Lu LGRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XWSlbqdC; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a88si2986010pfk.40.2018.03.14.17.24.39; Wed, 14 Mar 2018 17:24:53 -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=@chromium.org header.s=google header.b=XWSlbqdC; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751495AbeCOAXr (ORCPT + 99 others); Wed, 14 Mar 2018 20:23:47 -0400 Received: from mail-vk0-f68.google.com ([209.85.213.68]:39138 "EHLO mail-vk0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751302AbeCOAXo (ORCPT ); Wed, 14 Mar 2018 20:23:44 -0400 Received: by mail-vk0-f68.google.com with SMTP id f6so3156112vkh.6 for ; Wed, 14 Mar 2018 17:23:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9C11rfnyyWJMzI6NYqJOnMAybU15gVAxDlNUEepg1bs=; b=XWSlbqdCqPJ74/FNvy25kb6YMr7Z8SrS5TDZHB4m9vEtP9PTxOg1HojzSpn78JCyUk qWouOWLAYbs+RjG94OC8tYPFp9bHAJ2zqIH9GpNJftWw+p4nWu06dETocVxozZHJpFg7 tg7Iwrc++YTncpRafHJxnyW2aJbDe/L/J5PHI= 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=9C11rfnyyWJMzI6NYqJOnMAybU15gVAxDlNUEepg1bs=; b=hfksnWDrzBvF6igh7CSs3AbQOotjznZr+V1h7/zWdwMHCdc1wpoLFzLpG5s2Y3bO6Z 32CfoQIPF5k9fpwMCnuCny8le9/sRxUc0RaOVQUpA7SJs/DgmfeyFyH/YiXMhcLfpG46 ws9cWAcuVW/yyG495IaCFeqnkhU8lkHcsTq0cnS2jigc6FCslhCRWD8OKU0A3juYyGsd 6abFqg4BO2yL2lJ6jp/zfmTSPdnpBgsMUC6GkBlPvs82LeDmKMbMYhY/PiUX+XGxf4yd G9luqQW2TvlkBC5cUU0AZUTNh01k3jvLXOHmNbI8kb59ghG0N+iGRHKHGMzeMsrW+z7k ConA== X-Gm-Message-State: AElRT7GHRkQZDV0UwT5OH4oCTxZWbdJu/zQlqhM8/cd0taJIJcjqOzW3 Iv1NQZ2zdmeP6q63XJUfFP7lmZOLedOvq8o64TaDOg== X-Received: by 10.31.10.200 with SMTP id 191mr4822223vkk.46.1521073423269; Wed, 14 Mar 2018 17:23:43 -0700 (PDT) MIME-Version: 1.0 References: <20180314214439.27806-1-djkurtz@chromium.org> <20180314214439.27806-4-djkurtz@chromium.org> In-Reply-To: From: Daniel Kurtz Date: Thu, 15 Mar 2018 00:23:31 +0000 Message-ID: Subject: Re: [PATCH v2 3/3] serial: core: Allow skipping old serial port initialization To: Kees Cook Cc: Greg Kroah-Hartman , adurbin@chromium.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , jslaby@suse.com, Andy Shevchenko , mbrugger@suse.com, dhowells@redhat.com, vigneshr@ti.com, sean@mess.org, Jeffy , Doug Anderson , matt.redfearn@mips.com, marc_gonzalez@sigmadesigns.com, linux-acpi@vger.kernel.org, linux-serial@vger.kernel.org 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 Wed, Mar 14, 2018 at 5:00 PM Kees Cook wrote: > On Wed, Mar 14, 2018 at 3:58 PM, Kees Cook wrote: > > On Wed, Mar 14, 2018 at 2:44 PM, Daniel Kurtz wrote: > > Sorry for being dense. What tree is this against? I can't find mention > > of amdcz in Linus's tree nor linux-next. > As I watched this email send, I noticed the "3/3" in the Subject. ;) I > see the amdcz support now. :P > https://patchwork.kernel.org/project/LKML/list/?submitter=18441 > >> diff --git a/include/linux/serial_8250.h b/include/linux/serial_8250.h > >> index a27ef5f56431..02570edaddd8 100644 > >> --- a/include/linux/serial_8250.h > >> +++ b/include/linux/serial_8250.h > >> @@ -136,6 +136,12 @@ struct uart_8250_port { > >> struct uart_8250_em485 *em485; > >> }; > >> > >> +#ifdef CONFIG_SERIAL_8250 > >> +extern bool serial8250_skip_old_ports; > >> +#else > >> +static const bool serial8250_skip_old_ports; > >> +#endif > > > > Where does serial8250_skip_old_ports get used where CONFIG_SERIAL_8250 > > isn't defined? (i.e. why is the #ifdef needed here?) > This question still stands, though. From the same patch: https://patchwork.kernel.org/patch/10283641/ if (CONFIG_ACPI_SPCR_TABLE && !CONFIG_SERIAL_8250) in other words, if serial ports are disabled, but we still want to parse the APCI_SPCR_TABLE, which "defaults y if X86". Perhaps that logic should be changed (no need to parse ACPI SPCR table if we are going to disable serial anyway)? > -Kees > -- > Kees Cook > Pixel Security