Received: by 10.213.65.68 with SMTP id h4csp1133459imn; Wed, 14 Mar 2018 10:32:34 -0700 (PDT) X-Google-Smtp-Source: AG47ELum5P+J7Kyah3pua8IO8RGi217FcDYaF8PLhNvpQRvCl5Vez9o7WnwkWwfJXefd83aAsJb+ X-Received: by 10.99.126.73 with SMTP id o9mr4448888pgn.406.1521048754289; Wed, 14 Mar 2018 10:32:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521048754; cv=none; d=google.com; s=arc-20160816; b=ugRXk5qvRUpNCO/ivwa3yWRmFLEISJHfXnwhy+X+suf/oa6icqpzCCtbb2prHNM3KR 3otbdtBr1ncd7BLztEnnhTJYLysn2D6QAh4d6c13AwIdZeAMUeZiaMsXHC/9kTtDx0lb pta0KEDcpkp5mypggdcn4Pi8AGXVPOx4bwr/bnLkIIxQWToARC7PMPcl/p7/OnNXxfVr wBh2Tw98rU1XagytKk9rrqyc/qOdPK+jV7vibGfDMP3CTsNaqeQ38iLLTUE4GQlwDAAI /zCXrvv98BfgVPIN8Z5hYF0VTDaitOwFPr9Fb8SKeE8IinYP/dwFVJLM0j6vf9QDEuiP poqQ== 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 :arc-authentication-results; bh=T8vd4R1GYQy75DH4rEFNkQK3FHMuObaCFP+Jsub8K9o=; b=IN9gVNiGUjrzNEkPrSdeWTbs1O6hAEpCJsksEX1gmhwVdOBNwoCT03hbEK6j11NFfb P0rJwjz25/Lmg0RKXjPDFPulCIh1fNiTzpiSU2CLqTCUBep4avdpADMHvUziQHow320i sEh+Dha8ny+RStr9jcyS/qSMCCPjdHamA25L3mln1Tcaj/dyzHol1ezuKMjnH8uZKHjt oKFKPnHruDt2gMEC1JNxyFhpAQWJoOYDCSGCPwy6SP2vrWbhCmiugolcqAwnCO/rwZ/9 +k5ig0a/pZS1rzPJGSoJSLaOorTVD4mHPw+nigvl/nbR6tNArLRUZ8cb9/IrxOSid/y/ Vmlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UMWmxMPt; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k8si2150985pgs.555.2018.03.14.10.32.20; Wed, 14 Mar 2018 10:32:34 -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=@gmail.com header.s=20161025 header.b=UMWmxMPt; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751903AbeCNRbW (ORCPT + 99 others); Wed, 14 Mar 2018 13:31:22 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:44392 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751353AbeCNRbU (ORCPT ); Wed, 14 Mar 2018 13:31:20 -0400 Received: by mail-qt0-f193.google.com with SMTP id g60so4277168qtd.11; Wed, 14 Mar 2018 10:31:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=T8vd4R1GYQy75DH4rEFNkQK3FHMuObaCFP+Jsub8K9o=; b=UMWmxMPt8qA3OJgIhDgAR2SQgAhLIT2tAlZzB7h8U5KBjjVBvpr++L1EdfoPUAoNSv UwHhKwr/4ubrodnRmceoV7URKjdYcWOTThBm2girctye7Gy40aEnb2tEUFJ6WAstzTPG mYe0Uodqd7+uhthcs37Eb31f/UkKTLpMS6TTXRT2ecQcDP+wq2BEoubVCFGYbIgste2B sBAHP/a47hz0NCheZHc3409OHuf2P5aApF3c0f5TVfyXSsKgQ1PHxdarKDJ9Le2CjWx1 g9v09P/aeW0L7CRnFgNxRFwrQsoyt/zB1y0qEIAjSbmXI3wcGAHy3ZyrPIw0sLr21lIn 7A8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=T8vd4R1GYQy75DH4rEFNkQK3FHMuObaCFP+Jsub8K9o=; b=HBP5mxIXkvYT4dozGjQrEInlwl3VnLFjOYHk2etyRWUE2d/0srzYxMkbCzd/rDBswj vZQysJNkXwhDnTeL3N0BTdOGcjYkh2LrOzNJRig3sbFmULpyrXsHje8zUllH4kv3mKQU iu1VFX4pvqj5IKAjnFt9GdeCZLgWzzZ+AUO6yqkYTtREc5xkO1WXX7rAm5u4LwuIH6cK wSn6mr4RLZpjHNNPeIDZSRmV2TgR2e5MNoj8kC4N4tIad1nkkQ8hQaZ7UBksupdlyCCm 1nEccLuoLxY7yE/lVYBensCgVPscBYIjnSTxbrs2Rmq3pqLHMupQ/S5X5fnPyGld60SW oyZA== X-Gm-Message-State: AElRT7GwoT3uaYsaCd3JRDiEegillLKFiaKyrqgvuJGSzLc6rdYABLNu nGjzhZpYKqUoYa6Gbfoz0EdgIHLyAfKQTnBBff0= X-Received: by 10.237.61.145 with SMTP id i17mr7895324qtf.293.1521048679823; Wed, 14 Mar 2018 10:31:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.195.80 with HTTP; Wed, 14 Mar 2018 10:31:19 -0700 (PDT) In-Reply-To: References: <20180314003655.12141-1-djkurtz@chromium.org> <20180314003655.12141-2-djkurtz@chromium.org> From: Andy Shevchenko Date: Wed, 14 Mar 2018 19:31:19 +0200 Message-ID: Subject: Re: [PATCH 1/3] serial: 8250_early: Add earlycon support for AMD Carrizo / Stoneyridge To: Aaron Durbin Cc: Daniel Kurtz , Ricardo Ribalda Delgado , 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 7:12 PM, Aaron Durbin wrote: > 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? *SPCR table* itself on the platforms in question. > There is hardware all over that does > not meet the current assumptions being made in the early uart drivers > within the kernel. I know, that's why I'm working now on a proposal to SPCR specification to make our life slightly easier in that sense. P.S. In case you are interested, I have crafted SPCR in U-Boot for Intel Edison (ACPI case) where UART clock is also non-standard and did some tests. It works quite nicely when firmware, **iff written properly**, configures UART beforehand. In this case no clock information is needed, no code needs to be added into the kernel. -- With Best Regards, Andy Shevchenko