From patchwork Wed Jul 26 16:54:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Rzeszutek Wilk X-Patchwork-Id: 9865403 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7002B6038C for ; Wed, 26 Jul 2017 16:57:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6216D28770 for ; Wed, 26 Jul 2017 16:57:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 56C0F28790; Wed, 26 Jul 2017 16:57:40 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_SORBS_SPAM,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D140028770 for ; Wed, 26 Jul 2017 16:57:39 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1daPaf-0003Nd-3s; Wed, 26 Jul 2017 16:55:17 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1daPad-0003NQ-BA for xen-devel@lists.xenproject.org; Wed, 26 Jul 2017 16:55:15 +0000 Received: from [193.109.254.147] by server-10.bemta-6.messagelabs.com id B3/2C-03582-279C8795; Wed, 26 Jul 2017 16:55:14 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrBIsWRWlGSWpSXmKPExsVyMfTGQd2ikxW RBjf+slh83zKZyYHR4/CHKywBjFGsmXlJ+RUJrBmv9t5mLngsVLF/k0QD4w3+LkYuDiGBGYwS v/duYwZxWARuskgs2HYCzJEQ+MoiMb2xn7GLkQPIiZOYusezi5ETyKyQePLhBguILSSgJLFl8 mNGiEkvmCSubX7LDpIQFtCTmPztNiOIzSagL/F07TVmEFtEIEji3bVnzCAzmQV0JS7u8wAxhQ XcJdackQCpYBFQlWh93wlWzStgJnH22hZWiLXyEhN7pzFOYORfwMiwilG9OLWoLLVI10wvqSg zPaMkNzEzR9fQwEwvN7W4ODE9NScxqVgvOT93EyMwdBiAYAfjvBP+hxglOZiURHknmVZECvEl 5adUZiQWZ8QXleakFh9ilOHgUJLgbT0BlBMsSk1PrUjLzAEGMUxagoNHSYQ3ByTNW1yQmFucm Q6ROsXoynHlyrovTBxTDmwHknN+7wCSryb8/8bE0fT943cmIZa8/LxUKXHeFJBmAZDmjNI8uN GwCLzEKCslzMsIdKwQT0FqUW5mCar8K0ZxDkYlYd5EkCk8mXklcBe8AjqOCei4OTNKQY4rSUR ISTUwTnbv6/g89T7XjTlzunlN7vU1lP7I9GDzm3Ks6AprSdlX7w2b+XK6T93YFJ4ZtFGjirH0 7EJzwevZ3mHcBV7zHG11WK5d2ZLTvDlM1FupwLPshum6x3qrRW2lFQ59txHQ/Lso66mFfXmNh ik3zw/tDEer0548My8dORjBUR3Cf2ne3bnlYnVKLMUZiYZazEXFiQDaKXhTuwIAAA== X-Env-Sender: ketuzsezr@gmail.com X-Msg-Ref: server-10.tower-27.messagelabs.com!1501088113!85790474!1 X-Originating-IP: [209.85.216.193] X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG X-StarScan-Received: X-StarScan-Version: 9.4.25; banners=-,-,- X-VirusChecked: Checked Received: (qmail 15005 invoked from network); 26 Jul 2017 16:55:13 -0000 Received: from mail-qt0-f193.google.com (HELO mail-qt0-f193.google.com) (209.85.216.193) by server-10.tower-27.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 26 Jul 2017 16:55:13 -0000 Received: by mail-qt0-f193.google.com with SMTP id t37so4573755qtg.2 for ; Wed, 26 Jul 2017 09:55:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=d9VWnPeoIHYZjZK7FN+O4pjk6PlC7XLImBEKTcXVq5o=; b=GMvf00r3tNDEELNf/0Jn24Ie7KSiCZ1zQphsJ5PVfK/WnUafyS7T3TtyGcU1CNecKn +ZOAnasm4718v5Wx6hitpBCoG9hK08rCStgrnS9LqoOnC1XXu8fdZNZo4r8on7Rvphfk KiDT6OYBwOCyG0ajON7At+eBLjHqSkJDfG7kJXM81NXH1OUlcfyDka0AyIuIRK5T6cij juGEKOk23libP4Jz3H/WJ/nq14iW2ZndUW+vzlUCalY5B9pAisno7Gy1sWUhz/s2cGqp MF4LktzjiyL9OX57dJis+FDkk6uUMnIoge3beaHhKOXxZn65Gtf5f5jJakd0RIrvBnfa FOiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=d9VWnPeoIHYZjZK7FN+O4pjk6PlC7XLImBEKTcXVq5o=; b=SwqXP1Sx+99fHkaA6yoIMWyj8ZuWMesoTLO0Xa0/VG7aL3LzbRc51Z2wAYne0u1rZn 0qgApUA3TShWp5kPz6imOA4+sbm7P1Qxapc/4MYDZy/LikmJRmrex4P1YYiYF6VhCRrT M+YOye24l0khqvAaW6TAfDKbYM8u4v0io5SZ1CeNpjE8bw1uwacHz9swLNMemN3qvBfc TOBB1ehzcMEQEdUtlMd/nVMT/ANM07Iwar+xz38GGJM9AmkxISoUKVEu4zvtOUhu3OJN 99HoBACXqtZ4qXLbhLBYklF7EuqsEQowg1Oh645mrrEQlg+W8LcJNkwvmDTI6TYNvoT5 CW8A== X-Gm-Message-State: AIVw113fA/dQcNcXS5qh4RoqejjgEh0TqzZZR1iqGOxDcHQCYGkYjb9J pYXAi6/zdZBhbev9 X-Received: by 10.200.48.66 with SMTP id g2mr2208568qte.119.1501088112715; Wed, 26 Jul 2017 09:55:12 -0700 (PDT) Received: from dhcp-amer-vpn-adc-anyconnect-10-154-174-211.vpn.oracle.com (209-6-200-48.s4398.c3-0.smr-ubr2.sbo-smr.ma.cable.rcncustomer.com. [209.6.200.48]) by smtp.gmail.com with ESMTPSA id m123sm11690636qke.12.2017.07.26.09.55.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 26 Jul 2017 09:55:11 -0700 (PDT) From: Konrad Rzeszutek Wilk To: xen-devel@lists.xenproject.org, julien.grall@arm.com, sstabellini@kernel.org Date: Wed, 26 Jul 2017 12:54:56 -0400 Message-Id: <20170726165456.18494-1-konrad@kernel.org> X-Mailer: git-send-email 2.13.3 Cc: Konrad Rzeszutek Wilk Subject: [Xen-devel] [PATCH] xen:arm earlyprintk configuration for Hikey 960 boards X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Introduce an earlyprintk configuration of Hikey 960 boards. Tested with: https://github.com/96boards-hikey/edk2.git #testing/hikey960_v2.5 https://github.com/96boards-hikey/OpenPlatformPkg.git #testing/hikey960_v1.3.4 https://git.savannah.gnu.org/git/grub.git #master https://github.com/96boards-hikey/linux.git #hikey960-upstream-rebase For GRUB, the following stanza was used: GRUB_MODULES="boot chain configfile echo efinet eval ext2 fat font gettext gfxterm gzio help linux loadenv lsefi normal part_gpt par t_msdos read regexp search search_fs_file search_fs_uuid search_label terminal terminfo test tftp time xen_boot" grub-install/usr/bin/grub-mkimage \ --config grub.config \ --dtb linux/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dtb \ --directory=grub/usr/lib64/grub/arm64-efi \ --output=grubaa64.efi \ --format=arm64-efi \ --prefix="/boot/grub" \ $GRUB_MODULES And grub.config: search.fs_label rootfs root set prefix=($root)/boot/grub configfile $prefix/grub.cfg Signed-off-by: Konrad Rzeszutek Wilk Acked-by: Julien Grall Reviewed-by: Stefano Stabellini --- docs/misc/arm/early-printk.txt | 1 + xen/arch/arm/Rules.mk | 1 + 2 files changed, 2 insertions(+) diff --git a/docs/misc/arm/early-printk.txt b/docs/misc/arm/early-printk.txt index 41b528b9fa..61c5ad9eac 100644 --- a/docs/misc/arm/early-printk.txt +++ b/docs/misc/arm/early-printk.txt @@ -49,6 +49,7 @@ the name of the machine: - xgene-mcdivitt: printk with 820 on Xgene mcdivitt platform - xgene-storm: printk with 820 on Xgene storm platform - zynqmp: printk with Cadence UART for Xilinx ZynqMP SoCs + - hikey960: printk with pl011 with Hikey 960 These settings are is hardcoded in xen/arch/arm/Rules.mk, see there when adding support for new machines. diff --git a/xen/arch/arm/Rules.mk b/xen/arch/arm/Rules.mk index 569a0badc8..faae29262e 100644 --- a/xen/arch/arm/Rules.mk +++ b/xen/arch/arm/Rules.mk @@ -44,6 +44,7 @@ EARLY_PRINTK_vexpress := pl011,0x1c090000 EARLY_PRINTK_xgene-mcdivitt := 8250,0x1c021000,2 EARLY_PRINTK_xgene-storm := 8250,0x1c020000,2 EARLY_PRINTK_zynqmp := cadence,0xff000000 +EARLY_PRINTK_hikey960 := pl011,0xfff32000 ifneq ($(EARLY_PRINTK_$(CONFIG_EARLY_PRINTK)),) EARLY_PRINTK_CFG := $(subst $(comma), ,$(EARLY_PRINTK_$(CONFIG_EARLY_PRINTK)))