From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4261C43381 for ; Tue, 19 Mar 2019 18:43:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7EE5F2175B for ; Tue, 19 Mar 2019 18:43:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727267AbfCSSna (ORCPT ); Tue, 19 Mar 2019 14:43:30 -0400 Received: from mga12.intel.com ([192.55.52.136]:18381 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727154AbfCSSna (ORCPT ); Tue, 19 Mar 2019 14:43:30 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Mar 2019 11:43:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,245,1549958400"; d="scan'208";a="135648401" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga007.fm.intel.com with ESMTP; 19 Mar 2019 11:43:28 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 2F825154; Tue, 19 Mar 2019 20:43:26 +0200 (EET) From: Andy Shevchenko To: "H. Peter Anvin" , x86@kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , linux-kernel@vger.kernel.org Cc: Andy Shevchenko Subject: [PATCH v2 0/7] x86/boot: Enable earlyprintk for HS UARTs Date: Tue, 19 Mar 2019 21:43:18 +0300 Message-Id: <20190319184325.72807-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Newer Intel platforms sometimes have only HS UART enabled and accessible via MMIO on high addresses. For now, earlyprintk doesn't handle such cases and always rely on the legacy serial port to be present. This series fills the gap and enables earlyprintk on HS UARTs. Since v2: - rebase on top of v5.1-rc1 - parse 'mmio' keyword instead of port range check (Ingo) - deduplicate code wherever it's possible (Ingo) Andy Shevchenko (7): x86/boot: Convert early_serial_base to unsigned long x86/boot: Introduce helpers for serial I/O x86/boot: Split out parse_serial_port() helper for earlyprintk x86/boot: Allow longer parameter list for earlyprintk x86/boot: Add MMIO byte accessors x86/boot: Introduce MMIO accessors and their support in earlyprintk x86/boot: Support nocfg parameter for earlyprintk arch/x86/boot/boot.h | 16 ++- .../boot/compressed/early_serial_console.c | 5 +- arch/x86/boot/compressed/misc.c | 4 +- arch/x86/boot/compressed/misc.h | 8 +- arch/x86/boot/early_serial_console.c | 135 ++++++++++++++---- arch/x86/boot/tty.c | 9 +- 6 files changed, 140 insertions(+), 37 deletions(-) -- 2.20.1