Received: by 10.213.65.68 with SMTP id h4csp1123936imn; Wed, 14 Mar 2018 10:15:38 -0700 (PDT) X-Google-Smtp-Source: AG47ELvn3u5mPa6mfIP2NlZWPzYzwqQfDUi/ANTr9ecySjg5pdHbDguyLw4X7KVX/6sakpIOt6R9 X-Received: by 10.98.211.1 with SMTP id q1mr5004146pfg.199.1521047738903; Wed, 14 Mar 2018 10:15:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521047738; cv=none; d=google.com; s=arc-20160816; b=XHBFGOfSp5djoKGIilez8giafzwsAQO8xMaotos1ozf30tbWv2lFnDUN+oavMu3+BY JPEHlsbbjcd5a5vZ+mUir/5Fphg1gW5kM9W+aGSVYBn7PpxjNOVcruoHU0aaH0bHGyHQ dnE0dUb1WgvyQubMi1tGTAmMNcthGuxqdFfvufm1P4tijf+GL3Qu3s09XNu39XDO/F4g pA2g3IiAGpf3g3bb1ut15rXJSEVyZ7vrXkBPYUk6/THkCembZEc8cQrZKJd6P46be0EF NrmzsqS7U54PZmo0RecrnzWK7A+VlYYWaQD3JXYIPH/8MSVl22nebEJFvP6f52JKxmVO GePQ== 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 :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=o4AQXTISZCzyqz5qPxSWY4W0J1dnFgGgLd01k7cvZpc=; b=X5Xzv1hOq7yEMV3KmfqvlWIVuEkpl20Lt79IiOYePQ5PptHFjgfhZeUzcCdHopn5Jw KbWKpjXYnWm1Hju9Ff6xHLahdJRqmVlhjCMvW8KD4nyVHK2SV56x3+EMBw0nTQx/OUnc zYX9LXRiVVthdNWkAsjY4OtO8BgOwd5nucC4RJMFoG4tN2CnYdln9hov7TqYUcbl1bes XHzyPri6DUTqpGSP8IjcjhIRe2LTbwz3O7G6T+iJXncWjX0uo3Wc7rTglWEVkdN/9yiF YzyxFqVMThIxHE6c12xii+yiIPYC4niPLAOHjFljPK6Tf5EBxDypGJTKwbZ4b2+5iGDX sFFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=nHlQmgQ8; dkim=fail header.i=@chromium.org header.s=google header.b=PePuyeeB; 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=fail (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 k20-v6si2181109pls.294.2018.03.14.10.15.24; Wed, 14 Mar 2018 10:15:38 -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=fail header.i=@google.com header.s=20161025 header.b=nHlQmgQ8; dkim=fail header.i=@chromium.org header.s=google header.b=PePuyeeB; 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=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752065AbeCNRMj (ORCPT + 99 others); Wed, 14 Mar 2018 13:12:39 -0400 Received: from mail-yw0-f175.google.com ([209.85.161.175]:35385 "EHLO mail-yw0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751988AbeCNRMf (ORCPT ); Wed, 14 Mar 2018 13:12:35 -0400 Received: by mail-yw0-f175.google.com with SMTP id c20so2661546ywa.2 for ; Wed, 14 Mar 2018 10:12:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=o4AQXTISZCzyqz5qPxSWY4W0J1dnFgGgLd01k7cvZpc=; b=nHlQmgQ8AmCeOcRITreQb4610pu0Ef5nqCnTa5fURoh60g6f7cxtBnJeKSJVkJyDlc Rml3F2KvN6SdoDuWsYmqaugm+QVOSMqs6AFxvXWr5VAjp824LrPJ+eg342ZQRzH0gsPN bt5fqpAgDlTLSyAdtrKOsyyDSNvIO4Yz65pV7BGpF/MsIic42Twteqqo5hhCt5wu8wP9 KW9/3dcZy/eA8wWQnwkGQ6++wYyV4Predq8aaSv3L7PcBu8Jwa9DD3DguZrOONja05im l1IudiS355EWgGXqUl3UExxnIX6hD4+93vHLnQ3GyjEPUeizES0Jfy+Xf2fdlCsEeUo/ d9vQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=o4AQXTISZCzyqz5qPxSWY4W0J1dnFgGgLd01k7cvZpc=; b=PePuyeeB+x8d68YULm4BKqqua90b17oWHpvCgKd83rHF+M0QFK9bsAei7VJTHHj5wX VfZegdXe4PrNIK9QExNeH1BDOlbrykUw/1eWPKHFjPtVOWjBPnWtYdH9TKyufnVn7Qfp TMV63sCJw7iJalr9Y42qy/bty5Jg9Nnvicqhs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=o4AQXTISZCzyqz5qPxSWY4W0J1dnFgGgLd01k7cvZpc=; b=sb6vLCn2nAm1U0j86JPempZhnofEAUqn8+cZUV0ArVV+hBiYhquXkv4uQqOAuAI12u jbsVoe9rPHsOWEf5K2XAnAt5CUauXdAzSHU3bNEkNjABP/PvRlVwtAFsoqpfHakuAID9 p2P2ZpVyuTWDFUQ2sgQxKATuOMoBYDiSr6OoN5ipxAOjmV/3ze8mi5qprilXfUrwvohr z0aJFtJxKm2ab1m6x8M52Dlis/sOmS7xq+frFWcAFKKF+rOYRXE9EwfUkuXJLypjbkM1 gJdiKKkFagAieg7+EwndYQzTqwCYBtWngcCM+zxKVtG7BZ5Uh/SZiK5TUKCsw1k7ifDc LOJA== X-Gm-Message-State: AElRT7HYJo42n9WU2HYa/kMYvQLgDVr+C/RiCGjmAIAjO1AccFVDcIGM 4EiSnx8ztqHEoxH6hsf4IysxhdkWYl4ocfSAgMONzg== X-Received: by 2002:a25:d747:: with SMTP id o68-v6mr3911548ybg.155.1521047554191; Wed, 14 Mar 2018 10:12:34 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:a344:0:0:0:0:0 with HTTP; Wed, 14 Mar 2018 10:12:33 -0700 (PDT) In-Reply-To: References: <20180314003655.12141-1-djkurtz@chromium.org> <20180314003655.12141-2-djkurtz@chromium.org> From: Aaron Durbin Date: Wed, 14 Mar 2018 11:12:33 -0600 X-Google-Sender-Auth: uufzqPrwf-gDgJphjXv-ya6zJMQ Message-ID: Subject: Re: [PATCH 1/3] serial: 8250_early: Add earlycon support for AMD Carrizo / Stoneyridge To: Andy Shevchenko Cc: Daniel Kurtz , Ricardo Ribalda Delgado , Aaron Durbin , Greg Kroah-Hartman , Jiri Slaby , Marc Gonzalez , Doug Anderson , Matt Redfearn , Jeffy , "open list:SERIAL DRIVERS" , Linux Kernel Mailing List 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 10:38 AM, Andy Shevchenko wrote: > On Wed, Mar 14, 2018 at 6:29 PM, Daniel Kurtz wrote: >> On Wed, Mar 14, 2018 at 4:54 AM Ricardo Ribalda Delgado < >> ricardo.ribalda@gmail.com> wrote: >>> On Wed, Mar 14, 2018 at 1:36 AM, Daniel Kurtz >> wrote: > >> In fact, the recommended way is to have firmware specify an ACPI SPCR table >> with OEMID="AMDCZ " (see https://patchwork.kernel.org/patch/10281307/) to >> configure proper access and address. > > Hmm... I was thinking it's already there. And thus, this is just a > quirk for *existing* firmware that doesn't correctly configured > hardware. > (Yes, I'm aware about one nuance in SPCR specification I'm trying to > address via official ways) > >> With an SPCR table in place, the >> kernel command line just becomes "earlycon", with no parameters. > > SPCR *provides* an address of UART (required by specification). What is "it's" in your first sentence? The access method? Baud rate can't be configured ever in the kernel w/o knowing the input clock to the uart block. That's already been brought up, and it is inherently a requirement to know that to recalculate the divisor. These patches are doing early OOB binding to set the proper input clock because: 1. SPCR doesn't have that information 2. you nak'd the generic way of specifying the input clock on the command line. Sadly, this situation is not unique to this hardware. There is hardware all over that does not meet the current assumptions being made in the early uart drivers within the kernel.