From patchwork Mon May 31 20:12:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Brodkin X-Patchwork-Id: 1485774 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=gwXQefxg; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.a=rsa-sha256 header.s=mail header.b=RLwSUQGF; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Fv60L2hP9z9sVb for ; Tue, 1 Jun 2021 06:12:29 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=rfTiPgvdthDd/LpAIeFOVXG00EAR9xbh60NhyStDCCQ=; b=gwXQefxg2wQ+I+ ZIybSh/ncxT39fXyLi9d/wOHjRUq113CYQcPmsyFozTKo9wNwGOPVJ+6wQViHVPBckUM6+hejbE2Y SG2zukNDr+d0/BvZOI7rDjk+CHR/yRSWSJ9SjPJcuwHVzrhZX3+2uRCCCsnQcc6ZCRXzMJcQ2cdGt 7yoHaoLDKXlpQw6HPolvOfzaUByM9+E2/R8Gm94qm48HDmyjXKC2mNW9+NGyN4VQOhYvXFxDXPFO7 FfKjIs5E5DCvmcbzWMb3OmXekpA9kUTBOU+1ys5cFuPoZicIdQIzNk6XH3WcFs/OeV6Bhq+6AkVva gJj8DEcwB2jkR0IO3WnQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lnoGw-00DLxV-9z; Mon, 31 May 2021 20:12:26 +0000 Received: from smtprelay-out1.synopsys.com ([149.117.87.133]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lnoGt-00DLwn-8K for linux-snps-arc@lists.infradead.org; Mon, 31 May 2021 20:12:24 +0000 Received: from mailhost.synopsys.com (badc-mailhost4.synopsys.com [10.192.0.82]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mailhost.synopsys.com", Issuer "SNPSica2" (verified OK)) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 7F4BCC0091; Mon, 31 May 2021 20:12:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1622491940; bh=2ctEcYErY/rylyQEvFLBnkHXpg6xMjlEVX7nl8MdoCY=; h=From:To:Cc:Subject:Date:From; b=RLwSUQGFVHat3qRKYeWs2k+PsKGnE8y4oJ076mpWL0p9KXQDwpwbDCUCsXd8Mo8AU rYawG9yVQ8KT7z5QVy/xgWvnXS2UziUx50aEqcNbGri8ghGGjfzQ8EqGOgB0URqzp8 5bsCNUXhpP01yUwftpj5MXwpFbdSdCA887y7A+bwcevaMuIcJ1Yl7qOMFB6gtdlCzZ nS05AotU4XaOSOjnR+mQWVO+vqHkH9K9Dsn8XiWmIermqzv6XO9qdqLaK+k4NBam1P pOEnLdWRZ03klT92yezD7zcmEC7QGko0YCU1qUDk3ZHOx0+iJjmwIQgW44bswgqpwG FBtWFbaBzdynQ== Received: from us01odcres-abrodkin-0009.internal.synopsys.com (us01odcres-abrodkin-0009.sg.us01-p01.synopsys.com [10.195.24.123]) by mailhost.synopsys.com (Postfix) with ESMTP id 14A12A0060; Mon, 31 May 2021 20:12:16 +0000 (UTC) X-SNPS-Relay: synopsys.com From: Alexey Brodkin To: linux-yocto@lists.yoctoproject.org Cc: linux-snps-arc@lists.infradead.org, Alexey Brodkin Subject: [PATCH] ARC: Rename nSIM HS to HAPS HS Date: Mon, 31 May 2021 13:12:10 -0700 Message-Id: <20210531201210.32006-1-abrodkin@synopsys.com> X-Mailer: git-send-email 2.16.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210531_131223_362032_E2651D5A X-CRM114-Status: GOOD ( 11.92 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: In v5.5 kernel we merged "nsim_hs" config into "haps_hs", see [1], and from then on we use the same one "haps_hs" for everything simulated: nSIM/QEMU/FPGA. Of important notes: * We switched from legacy ARC UART to a standard DW UART Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [149.117.87.133 listed in wl.mailspike.net] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org In v5.5 kernel we merged "nsim_hs" config into "haps_hs", see [1], and from then on we use the same one "haps_hs" for everything simulated: nSIM/QEMU/FPGA. Of important notes: * We switched from legacy ARC UART to a standard DW UART * QEMU port for ARC is under review upstream, see [2]. But even today with WIP version from our GitHub fork [3] its possible to run this image for "hapshs" machine as simple as: ----------------------------->8------------------------------ $ qemu-system-arc -cpu archs -M virt -nographic -no-reboot -monitor none \ -kernel build/tmp-glibc/deploy/images/hapshs/vmlinux-initramfs-hapshs.bin ----------------------------->8------------------------------ [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1681baa713aa138d3f0f77f05c3de1cd6416c7d6 [2] https://lists.gnu.org/archive/html/qemu-devel/2021-04/msg00458.html [3] https://github.com/foss-for-synopsys-dwc-arc-processors/qemu Signed-off-by: Alexey Brodkin --- .../nsimhs-standard.scc => hapshs/hapshs-standard.scc} | 4 ++-- bsp/hapshs/hapshs.cfg | 12 ++++++++++++ bsp/{nsimhs/nsimhs.scc => hapshs/hapshs.scc} | 2 +- bsp/nsimhs/nsimhs.cfg | 10 ---------- 4 files changed, 15 insertions(+), 13 deletions(-) rename bsp/{nsimhs/nsimhs-standard.scc => hapshs/hapshs-standard.scc} (72%) create mode 100644 bsp/hapshs/hapshs.cfg rename bsp/{nsimhs/nsimhs.scc => hapshs/hapshs.scc} (54%) delete mode 100644 bsp/nsimhs/nsimhs.cfg diff --git a/bsp/nsimhs/nsimhs-standard.scc b/bsp/hapshs/hapshs-standard.scc similarity index 72% rename from bsp/nsimhs/nsimhs-standard.scc rename to bsp/hapshs/hapshs-standard.scc index 3201ca52..1842b00c 100644 --- a/bsp/nsimhs/nsimhs-standard.scc +++ b/bsp/hapshs/hapshs-standard.scc @@ -1,8 +1,8 @@ # SPDX-License-Identifier: MIT -define KMACHINE nsimhs +define KMACHINE hapshs define KTYPE standard define KARCH arc include ktypes/standard/standard.scc -include nsimhs.scc +include hapshs.scc diff --git a/bsp/hapshs/hapshs.cfg b/bsp/hapshs/hapshs.cfg new file mode 100644 index 00000000..adcc0531 --- /dev/null +++ b/bsp/hapshs/hapshs.cfg @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: MIT +# ARCv2 ISA +CONFIG_ISA_ARCV2=y + +# Serial port +CONFIG_SERIAL_8250=y +CONFIG_SERIAL_8250_CONSOLE=y +CONFIG_SERIAL_8250_DW=y +CONFIG_SERIAL_OF_PLATFORM=y + +# Built-in .dtb +CONFIG_ARC_BUILTIN_DTB_NAME="haps_hs" diff --git a/bsp/nsimhs/nsimhs.scc b/bsp/hapshs/hapshs.scc similarity index 54% rename from bsp/nsimhs/nsimhs.scc rename to bsp/hapshs/hapshs.scc index 3c1613a6..ea2b8b6c 100644 --- a/bsp/nsimhs/nsimhs.scc +++ b/bsp/hapshs/hapshs.scc @@ -1,2 +1,2 @@ # SPDX-License-Identifier: MIT -kconf hardware nsimhs.cfg +kconf hardware hapshs.cfg diff --git a/bsp/nsimhs/nsimhs.cfg b/bsp/nsimhs/nsimhs.cfg deleted file mode 100644 index 34580a39..00000000 --- a/bsp/nsimhs/nsimhs.cfg +++ /dev/null @@ -1,10 +0,0 @@ -# SPDX-License-Identifier: MIT -# ARCv2 ISA -CONFIG_ISA_ARCV2=y - -# Legacy ARC UART -CONFIG_SERIAL_ARC=y -CONFIG_SERIAL_ARC_CONSOLE=y - -# Built-in .dtb -CONFIG_ARC_BUILTIN_DTB_NAME="nsim_hs"