From patchwork Thu May 2 17:00:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Tyshchenko X-Patchwork-Id: 10927365 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 AABE614B6 for ; Thu, 2 May 2019 17:02:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98E15204BF for ; Thu, 2 May 2019 17:02:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8CCBF205E9; Thu, 2 May 2019 17:02:24 +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 15D9B204BF for ; Thu, 2 May 2019 17:02:24 +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 1hMF4U-0001yS-0y; Thu, 02 May 2019 17:00:34 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hMF4T-0001yN-7b for xen-devel@lists.xenproject.org; Thu, 02 May 2019 17:00:33 +0000 X-Inumbo-ID: cb3d624f-6cfb-11e9-843c-bc764e045a96 Received: from mail-lj1-x244.google.com (unknown [2a00:1450:4864:20::244]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id cb3d624f-6cfb-11e9-843c-bc764e045a96; Thu, 02 May 2019 17:00:32 +0000 (UTC) Received: by mail-lj1-x244.google.com with SMTP id e18so2855798lja.5 for ; Thu, 02 May 2019 10:00:32 -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=BMAnGAfCvkLmVPxyl7nsvCURgiYXRkDKwKbSjg+5c+s=; b=c5Mf3mc+FE0Q0luNMZY23IvaEGH3e+WXyyZzJPfOJPMFd7TIo11/gDVSURMq5+h1Kp y1j/f3EBhkWEHRlE/iovRwAO7ky/pzgaB3TtkKzaFt3knr2MRTXQpu5q9WwZwoUQ1mvh O6WceyMkSGkRTMDg1Rc6+ZlQ+aZrB1pp4rLSFu/LPNHxGtDiubYKMWg9OwEVH4bmTpcq fx9YGEv5cxm0CwX6KpO5xg0QdXJVm+kMoFITqnIB8ZWI07cpbJ0cW6lES4D0b2yo9/Us KriQS0ylP6LxtvcDJIOW/OXxBwdk9fjd+r8F/fIbPTGfV0XdO3C7qYS9FkjTh7ddfAxF THIA== 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=BMAnGAfCvkLmVPxyl7nsvCURgiYXRkDKwKbSjg+5c+s=; b=GmSzmFl1Ne9p31MwquoY51R9QveRmCGDtsJ+fE61THcIsjjzlMt3pxYkLvR0Cs7rD9 9Inw2P25ZXXxkdw5kq5J23BTcBmpCTgaRWQYRQ2pKBqKs45QeRYlgPJhQzEMOS09xXju zWerwQUKj+UfXhgjDcYL4Z3DMZcXnKX3FnA6+BR7wCIKf9fz8LOSIEMCue++fsaKVRnt K5FW32bVH330R5kU8cMZaxMvlj/a69YEjPbMcf/V+qirB4t+C6ik5+31rfL6ohb+4p3X zszB40fYi9ubpbSD+O5wDd1vSSlNVja2BKDoL6yyyPBPn72l5U5yLqeYBeA18FlNupw4 psHQ== X-Gm-Message-State: APjAAAXSjxt/zkiqZDEcM4gU5ckM0MgYHB9WiYLm/LjizXZPBNdwGFLG k3L351Owwv8y8vtPfRQwGnFIBdv2/Lw= X-Google-Smtp-Source: APXvYqwvnjcfalAwVxc5tlsq2LnEHqEsr+4K7IFeyA/8OZdMqQwiA+51ouMd69emy2m/NJfiqGclSg== X-Received: by 2002:a2e:89da:: with SMTP id c26mr2503006ljk.186.1556816430517; Thu, 02 May 2019 10:00:30 -0700 (PDT) Received: from otyshchenko.kyiv.epam.com (ll-74.141.223.85.sovam.net.ua. [85.223.141.74]) by smtp.gmail.com with ESMTPSA id k21sm2659652ljb.3.2019.05.02.10.00.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 May 2019 10:00:29 -0700 (PDT) From: Oleksandr Tyshchenko To: xen-devel@lists.xenproject.org Date: Thu, 2 May 2019 20:00:18 +0300 Message-Id: <1556816422-25185-1-git-send-email-olekstysh@gmail.com> X-Mailer: git-send-email 2.7.4 Subject: [Xen-devel] [PATCH V5 0/4] 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_upstream3 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 [V4] https://www.mail-archive.com/xen-devel@lists.xenproject.org/msg43332.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. ---------- Please note, that first two patches already have Julien's A-b, and the following patch "[PATCH V4 1/5] xen/arm: Clarify usage of earlyprintk for Lager board" was removed from this series (as handled separately). [1] https://elinux.org/R-Car/Boards/Stout Oleksandr Tyshchenko (4): 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 | 5 ++ 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, 161 insertions(+), 48 deletions(-)