From patchwork Wed Apr 17 14:59:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Tyshchenko X-Patchwork-Id: 10905499 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 5608D17E0 for ; Wed, 17 Apr 2019 15:02:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D737287E2 for ; Wed, 17 Apr 2019 15:02:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3BFAC28C18; Wed, 17 Apr 2019 15:02:01 +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 B894C287E2 for ; Wed, 17 Apr 2019 15:02:00 +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 1hGm2R-0004X6-Vu; Wed, 17 Apr 2019 14:59:51 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hGm2R-0004X1-0K for xen-devel@lists.xenproject.org; Wed, 17 Apr 2019 14:59:51 +0000 X-Inumbo-ID: 724413df-6121-11e9-92d7-bc764e045a96 Received: from mail-lj1-x242.google.com (unknown [2a00:1450:4864:20::242]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id 724413df-6121-11e9-92d7-bc764e045a96; Wed, 17 Apr 2019 14:59:49 +0000 (UTC) Received: by mail-lj1-x242.google.com with SMTP id r24so22797061ljg.3 for ; Wed, 17 Apr 2019 07:59:49 -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=p2lAENNE7eNjg9BPeIqSv7dIBC+etg7jchcmQiwMVPY=; b=l0bJ3T+Myq60XvpOEZ1FOF2gWEVSJb4FV9ZoAQ7XixNvJe8oRdLimve5um71GbRCzw Prc8TcCNYXQy8uZPSUgOvzt4JAq8tPKVlkAYnCAE3r0cJYsEY0dohyR3XnnJOXntHkbv Ae8b5z/KOfeo+DxNcdM8zVq/PHg/3BiImkdPn1x2k3klTycP09nlLHTTxr1czvwDwel+ i4d2oayj3vmxnvmSvUQFMM/r2oEp7pmHcqy58Z73G2NjjC3OuRZ4LIjuUgNItZ5AMPCA b+rFn/ZQgxIpII67Xnd/YmJg8tkOlvigUerInJIpvfTe9lh58YekLH5xmkTlLbjwht7W 91uA== 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=p2lAENNE7eNjg9BPeIqSv7dIBC+etg7jchcmQiwMVPY=; b=bGuQm4vedk2NTaLfLiFB5zkdFJJbREyuB4jAbbCiMNcgkAoB4buyee48gA2XoVHmqW 7Jya25Wh36jq1u2Ld/hdANVI4NKyiitQeZT3S1frb961md0GI8xTHVwOSkgi1gbZTQ6Z q/hb56GzXEzA1JnpAGCf89TpEmDzNYuNrjYf+8kFMnJ/jwljj1DgS36DFQVw+8iuEOlF pBitS8ht6NJ3X/15t4j9IJgOPH2gV8P+6Nyx/hIGjt0ZVccbEam1fUEaA/g+h1GH99V0 BfiZ4kfFBWTO3/g//o1CLmbVYIXj1z3W6YVwv9ty9rlaXVFSeIokFZzpyacTXmK4lYFR DjAg== X-Gm-Message-State: APjAAAVsduTMBaOsBHAIXSKgxsAk1lw5h4TDwCwQQeCYuGapug30dldw 3e3AYRRoVAXTLI5B8u2bjLOK4LlZ3aI= X-Google-Smtp-Source: APXvYqxJx/UuVGO0exSoyalJcplg1G5FEegBPTEbHzQI1QFWNVdnKcChV+SzhrjgisXN+LXHAiSy0w== X-Received: by 2002:a2e:1245:: with SMTP id t66mr48230249lje.18.1555513188122; Wed, 17 Apr 2019 07:59:48 -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 u8sm950273lfi.83.2019.04.17.07.59.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Apr 2019 07:59:47 -0700 (PDT) From: Oleksandr Tyshchenko To: xen-devel@lists.xenproject.org Date: Wed, 17 Apr 2019 17:59:30 +0300 Message-Id: <1555513175-7596-1-git-send-email-olekstysh@gmail.com> X-Mailer: git-send-email 2.7.4 Subject: [Xen-devel] [PATCH V4 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_upstream2 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 [V3] https://www.mail-archive.com/xen-devel@lists.xenproject.org/msg42493.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 | 8 ++- xen/arch/arm/Rules.mk | 7 ++ xen/arch/arm/arm32/debug-scif.inc | 22 +++++-- xen/drivers/char/scif-uart.c | 131 ++++++++++++++++++++++++++++---------- xen/include/asm-arm/scif-uart.h | 44 +++++++++++-- 5 files changed, 163 insertions(+), 49 deletions(-)