From patchwork Mon Apr 8 10:14:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Tyshchenko X-Patchwork-Id: 10889243 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1C7EF17EF for ; Mon, 8 Apr 2019 10:17:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 02884285A4 for ; Mon, 8 Apr 2019 10:17:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EAD75285C9; Mon, 8 Apr 2019 10:17:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BE5A7285A4 for ; Mon, 8 Apr 2019 10:17:04 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hDRIs-0003lz-0t; Mon, 08 Apr 2019 10:15:02 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hDRIr-0003ln-KY for xen-devel@lists.xenproject.org; Mon, 08 Apr 2019 10:15:01 +0000 X-Inumbo-ID: 2a4344e4-59e7-11e9-92d7-bc764e045a96 Received: from mail-lj1-x241.google.com (unknown [2a00:1450:4864:20::241]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 2a4344e4-59e7-11e9-92d7-bc764e045a96; Mon, 08 Apr 2019 10:15:00 +0000 (UTC) Received: by mail-lj1-x241.google.com with SMTP id j89so10711178ljb.1 for ; Mon, 08 Apr 2019 03:15:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=QSuXxKsaItfUzaVOHVzutYslnSdDrbNwF/uMShg7UE4=; b=e8UD44wv/lhp4KkD4MuhhctYwbjyrm8Tjii5vOwZvBzSVp5iveQ5/zF4rHxBztwOGy RB0kuexE3YCLsVyEtDJI04sP1K0Y198DFLohAbpHN215uH76PUp1I4BKFS10DQP8cesj 92E20UmwfumldV8FZzzoEIzcUhLZz3assapgNk1M60A+SIrouOTxiuPfQlP16+qFIo/C Di3MhdsbNTMWVwaLG6oYzDEUI5JmcP4cvFwgoByD+4xHf7Mvz47h1McmcPm+Zem1X0aM Dh4KObEHfN+kh87+YuOmIQkvxdhAvj35Deq+mrx1QqpXdwSI1dh1rS/fWRkZ1alokSgz 7TGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=QSuXxKsaItfUzaVOHVzutYslnSdDrbNwF/uMShg7UE4=; b=i2e++fdVPhqisCgZWS5938sLpdtLo+l8sxmijbgoatjisH79KN6BZtGPIF+IPrXOIs 2GD6ngkLM185IJEo476x/+Mbby1/LgT0UB+t/ke+EiC9JkLgOVUKYUDxWqoyZ5V9VvFd w5k4JKp6ez3M0YkiKProKFXejQJvo0aVBmwA692aD0Af35vVbdHSAxY4hLWXQWqG1JFQ K4iOGQu42Y5PhaJVa9/YiEfHhMviGa/DF32gkj4rtBC80wkdC4+XrVt7+KV4xq7iPW4o cTsHovvp/gHkt7MHKKtrhvK8qYxy9l7xWAcBDbEYIBZj2k+lVgnf5fonuRpCSEHdbPlt mLDw== X-Gm-Message-State: APjAAAVpqVmYuiSEz9cV570mSFuGzbMhsd5Imw3sZ1MVJv7Tksxkh6Lm /I6BUmkdc2n9AXeYq50M2SyYPD/JAPM= X-Google-Smtp-Source: APXvYqzbIjX6QIulv5Q8/M6+zgL0cO4MZ7rcW8ZlD98TrrQxeTFlB23GeXNwdU/D+1jMPNMEaMmcXg== X-Received: by 2002:a2e:12c4:: with SMTP id 65mr14975930ljs.141.1554718498474; Mon, 08 Apr 2019 03:14:58 -0700 (PDT) Received: from otyshchenko.kyiv.epam.com (ll-22.209.223.85.sovam.net.ua. [85.223.209.22]) by smtp.gmail.com with ESMTPSA id x30sm6275717ljd.38.2019.04.08.03.14.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Apr 2019 03:14:57 -0700 (PDT) From: Oleksandr Tyshchenko To: xen-devel@lists.xenproject.org Date: Mon, 8 Apr 2019 13:14:44 +0300 Message-Id: <1554718489-11318-1-git-send-email-olekstysh@gmail.com> X-Mailer: git-send-email 2.7.4 Subject: [Xen-devel] [PATCH V3 0/5] Renesas Stout board support (R-Car Gen2) X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Oleksandr Tyshchenko , julien.grall@arm.com, sstabellini@kernel.org MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Oleksandr Tyshchenko Hi, all. The purpose of this patch series is to add required support to be able to run Xen on Renesas Stout board [1] which uses SCIFA compatible UART as a console interface. Actually Xen already has support for SCIF compatible UARTs which are used on Renesas Lager (R-Car Gen2), Salvator-X, H3ULCB/M3ULCB (R-Car Gen3) and other development boards. So this patch series extends existing support to be able to handle both interfaces. ---------- Current patch series is based on the following commit 1c6504163595d45e47a01750318c2b7b50541cbe and tested on Stout (ARM32) and H3ULCB (ARM64) boards. You can find current patch series here: repo: https://github.com/otyshchenko1/xen.git branch: stout_upstream1 You can find previous discussions here: [V1] https://www.mail-archive.com/xen-devel@lists.xenproject.org/msg21058.html [V2] https://www.mail-archive.com/xen-devel@lists.xenproject.org/msg37518.html ---------- In order to run Xen on Stout board you need "PSCI-enabled" U-Boot (not upsteamed yet). You can find corresponding patches for U-Boot here: http://u-boot.10912.n7.nabble.com/PATCH-0-3-PSCI-support-for-r8a7790-SoC-Lager-Stout-boards-td357352.html Have a plan to update Xen Wiki regarding this board. [1] https://elinux.org/R-Car/Boards/Stout Oleksandr Tyshchenko (5): xen/arm: Clarify usage of earlyprintk for Lager board xen/arm: drivers: scif: Extend driver to handle other interfaces xen/arm: drivers: scif: Add support for SCIFA compatible UARTs xen/arm: Extend SCIF early prink code to handle other interfaces xen/arm: Add early printk support for SCIFA compatible UARTs docs/misc/arm/early-printk.txt | 2 +- xen/arch/arm/Rules.mk | 7 ++ xen/arch/arm/arm32/debug-scif.inc | 22 ++++-- xen/drivers/char/scif-uart.c | 137 ++++++++++++++++++++++++++++---------- xen/include/asm-arm/scif-uart.h | 44 ++++++++++-- 5 files changed, 163 insertions(+), 49 deletions(-)