From patchwork Mon May 31 20:16:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Brodkin X-Patchwork-Id: 1485775 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=k+7hcHKu; 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=iFlxDyWj; 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 4Fv65J3TwBz9sVv for ; Tue, 1 Jun 2021 06:16:52 +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=k+7hcHKuhXRmhg aunr8/HCMPplDgBhiMd4Nb/oqku3TlRfDegDKkEjfrmzbSUfUKfmE5Vi/33fM5vVnymoTUD4EvgZ1 JAtaKcnxkRAhPWYNoaCe8+Fk5dEsVDU452heTSzqdVtPlghv5JP4BSE7dvCRidC9o+6PZpier4CFO Tmy6Rmus6qjM432S9xMbPyhvn08eic2itw6jmC7UAkOb2TYN6yKuTdV0h7TR0L6BPToZnbG6BHdrb zwrAn7kFWuiDdpWQgO4hYHwDwsyCfKNYz+9QyYfCZSFfE16lfDJbvX2RQNi8zDlDjzTXeh0kw9EnC Ua17eYLniaJmlGKTNy5Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lnoLC-00DMDg-G2; Mon, 31 May 2021 20:16:50 +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 1lnoLA-00DMDI-5A for linux-snps-arc@lists.infradead.org; Mon, 31 May 2021 20:16:49 +0000 Received: from mailhost.synopsys.com (badc-mailhost3.synopsys.com [10.192.0.81]) (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 C33ECC09A2; Mon, 31 May 2021 20:16:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1622492207; bh=2ctEcYErY/rylyQEvFLBnkHXpg6xMjlEVX7nl8MdoCY=; h=From:To:Cc:Subject:Date:From; b=iFlxDyWjXW5o6sKwbHEznLGpUUUXpVDtgonLKytSCxriLcIq1J7cBXZfkKMnW4lZz IRyvjD8R2IZKDfNtxpy8av9DLYAkDUNiVXg0v5YpX2Q/TQQcf1mkpZcZRW1cllScWs hBOrlSH6R4hwF8UGWKkWh8KXke0NUmj83lbZ7xqeFMmnBi0Q0j3luXoEeKbTQWob9c vGjmzTM7oij+PKHfGI55IYVSEGPWFwXAErtU0Ps3XHlNHlkxW6ozXIBIzeIPlAZfod PYs3FQRhj4OjsY5qofYXb8PBC/INZbkgJZ9lOE4e1kngwiwn27WCk/4k0OcdVg6UbX +yp8N4mbPqoGw== 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 484D6A0085; Mon, 31 May 2021 20:16:45 +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:16:41 -0700 Message-Id: <20210531201641.2804-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_131648_254829_78092C95 X-CRM114-Status: GOOD ( 12.02 ) 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"