From patchwork Mon Jul 26 11:25:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 12399277 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CDF0EC4338F for ; Mon, 26 Jul 2021 11:26:04 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8F0CF60F0F for ; Mon, 26 Jul 2021 11:26:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8F0CF60F0F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmx.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=VaNDxlPgJrInG2tgD4vRNmFxb2lZR1EO0oDVFyIHBb0=; b=abZr0LLB7a5aR3 jtXLMYbIBmJ0/UuhX6l7PQSpAWCuRyBdxUMjMV62Zk4XDBFitFiKxL/f6Pz3iCRFwAoiY/DG3GeKn 1SEVl8kYwXiUdCKJUh+Sc4ROhUU2Q34W72rdx/eMZuc8q5is2LkHFzzLyvj+w1YzKbFLSXkwLeCex RNEqwmw3Or6LrNgSLAIme3Yi/Bjq3KeqooxWqeEvZIYTOecGTnj8lwsNKWAsZwlXtotz2UnyhbFYh X8dSZ25Er7cWp8PICFikKkdaJZ+n+WFid9eUV7Hnyz4f0QmUhv61BKaiI3hh+5nVsA6Z+QpA8vPU4 LJA3yj7p/BbuLActExdA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m7yjr-00Azpa-IK; Mon, 26 Jul 2021 11:25:39 +0000 Received: from mout.gmx.net ([212.227.15.19]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m7yjn-00Azod-TW for linux-riscv@lists.infradead.org; Mon, 26 Jul 2021 11:25:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1627298726; bh=ci9hKgw9ZpK5R8Rr9kidSzAQ7LebRavx39L3IleFBgM=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=Jm3n+Va6OnsjAyyPz/alHQGkuFKuLwMmjs7YygEbBIZeg1sEUlt0tXVy43p3QH5g7 VZeV8GoO6Nvzo6J86hgk16XMW2AHTnpY9midn7WIBp+5br+1NAFUH2tgq5f8IJxPZB UT2EW23csYKAmpd0rLSUSUKQ0IFldVI5FKzeCfMQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from workstation.fritz.box ([88.152.144.157]) by mail.gmx.net (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1N8ob6-1l2HcO0G2w-015nBm; Mon, 26 Jul 2021 13:25:26 +0200 From: Heinrich Schuchardt To: Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Heinrich Schuchardt , Atish Patra , Anup Patel , Emil Renner Berthing , Sagar Shrikant Kadam , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Heinrich Schuchardt Subject: [PATCH 1/2] riscv: defconfig: enable BLK_DEV_NVME Date: Mon, 26 Jul 2021 13:25:11 +0200 Message-Id: <20210726112511.78350-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Provags-ID: V03:K1:J2pEnBmcl/6kUvPt5Ucpu+qCUQ2Ksn5aX9IuWkWpclAG45E0oZL 5gTpKu1soqQCnSoaMAdm5ocAfsAjMsDTvf0IR5J7CMSCMocjD8oXyk7Ozo6yhCA6p6XX2ep X5TgoaTI4UEUqBTuS4nwxGFREZi4syEpjXzBwBDOEnJwLaQGRAlu2trA5QW6lztX628+y3p x7Cc7fRN7QP3Z4R6rYdNw== X-UI-Out-Filterresults: notjunk:1;V03:K0:S8dUEILjgFQ=:M5QqZES8TMyvb8vIBs8iPB y7mUOqAMUsru/6texw5t8LYYmHaXlg3d6FyMbnY62MNckR7yZtCpz7c4Nfj8vTJ0pdIlRvyQF Zqlfbs1/Oez4hX08MPKx556uZAuQJ9UJ0x1/o6EbBvJcLxZgJEfRjAkQZfw3qtDC/aaPfIy9f LkdqcC/9TmalfVU+fpPWEI4m6wMsKWRzy3I8dHIX5KL5UWrSzrExFAEUAzEBufmuTpr9Rgd2O U074L78HDRFUzrOjk/pT4Tw6iJhRht8LZvP1E3pEAVx2DMsSmBCSDRYYM/niexZ5H/vFeKAc5 nW4lKu+LjlmvqbFf0BJn7UGutjgREvTaOGfZfa2myDIcrf4z2u+iTyYcfQPPWXEaYX3Bs9nLM uElImLeAS6yyJ81Tm/vxDRSeXz7tGwP68ochRKCR/HRqD2HOWf9NB6sc1X73SrU5RrU5RPFh4 RMqLn9AfbUmcQrADzMyOTShJfjtW5fDic8ARVo9tiL54ovv1xwFIWC3osLTZEueUOFRkkI0SM 2Depe1jTTxvMMLRNBrkPXCIKOWjve/H9tS34tZ+Vwfw4KIsbeZJkNlQkRizlP2g9SZ9EZXC9n oTLo0OJEbH8PLwBz/uzt6VASSG8IoAdFYXghfWDhnFU6DZKGW0GeF+H7cMJoKaHB8WQgmzTzy wUTg73ig3CnLLvdIagXPmaajbOerl9mwn/bl/L/BcFjVaKjeJrBRwPJWLmFfeBVLaT1ThZATM OwHG5H7Juv6p33Yxn4EiUMipiJXvXfp0CsOPrARHcc+QrOo28GkSa+J+b6cMqZ1/2nVMjHM1g BM7GLksGisJNq0NpA60RNwwBNFbPuH6U7Z5EUlPSNBGdhTrcirdPiLmuCW2Ht/dMlyA95/uLU OStpLQolCvmA4m7UAohewoF1AjtZY2CcOomzxuYoBdwmTwAN/wFfvJUyqVLsskUPL+beTlXAf cP6lxWuzRyuxKI7PchS94ZEv1/Yw5MXYELfK0IFkYqlT4GP2zkF+QmXxJya75K7g6rQ3vHR4l xUNVabsfWNWvuS9zCjRA5l5K8Vps609dC7kukj6SWgyQprlifYmi5o2JbR1BexxD0wNSAQjE8 RKMzR8r1OQ9mRH8iGy6/cguo2BC9DV3t2aX X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210726_042536_300689_00CF3937 X-CRM114-Status: UNSURE ( 6.38 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org NVMe is a non-volatile storage media attached via PCIe. As NVMe has much higher throughput than other block devices like SATA it is a must have for RISC-V. Enable CONFIG_BLK_DEV_NVME. The HiFive Unmatched is a board providing M.2 slots for NVMe drives. Enable CONFIG_PCIE_FU740. Signed-off-by: Heinrich Schuchardt Reviewed-by: Anup Patel --- arch/riscv/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) -- 2.30.2 diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig index 1f2be234b11c..393bf3843e5c 100644 --- a/arch/riscv/configs/defconfig +++ b/arch/riscv/configs/defconfig @@ -39,10 +39,12 @@ CONFIG_PCI=y CONFIG_PCIEPORTBUS=y CONFIG_PCI_HOST_GENERIC=y CONFIG_PCIE_XILINX=y +CONFIG_PCIE_FU740=y CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y CONFIG_BLK_DEV_LOOP=y CONFIG_VIRTIO_BLK=y +CONFIG_BLK_DEV_NVME=m CONFIG_BLK_DEV_SD=y CONFIG_BLK_DEV_SR=y CONFIG_SCSI_VIRTIO=y From patchwork Mon Jul 26 11:26:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 12399279 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E552DC4338F for ; Mon, 26 Jul 2021 11:27:29 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9D56F60EB2 for ; Mon, 26 Jul 2021 11:27:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9D56F60EB2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmx.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=SP3ZZJYyNPyiHsQB0DnjtWZqLH7/b9dE/a0UVlHSfwc=; b=js7mUqUMjuoENf pDDzKjYINhCGWxxfpPwBJvr92BHYOdZ1Ml9B/t9tLAwD1b9owYNHIo3ysWSqn8wgTXzH+HowsfF5t /eAjvSCm+n86lrbSWe4PUJeJZ/cwYOJ3RcVTPHvYQ5Hq9CTOL34jTdslSPe1iDMzSFNXwZ3jDxj7Y YAoQqPJki6eoFKVeut/wAaLSr9nrX3cFIq34tSOgBiBFSBDf0yP9q33tHL56eGerPvyaFw1hMMs0V VmFxIjYs/negDM+zk9h0Z5b6Milv06+yTkjVcc39V0Z9vzVSx1xwzqXPB/WnP+PVeG8yPlJkFQnMx WoHotmUE2Pk1mNMevunA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m7ylN-00B03Q-Me; Mon, 26 Jul 2021 11:27:13 +0000 Received: from mout.gmx.net ([212.227.15.18]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m7ylL-00B02s-Oi for linux-riscv@lists.infradead.org; Mon, 26 Jul 2021 11:27:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1627298823; bh=vZleZWIqfzP05PzxCCp/6U1s9aHGWqbfElJ3uiz9AOU=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=kSQuDKXX9c1mMwluZ0HYgkJgvE8mKAgh7o52SXqLEF3oZN9906Jx2dqEc85MfSC47 4t4kXi43twIPD46Ezv66xpHro3XmQ9nMEBR0gdOI18plOg4tUBzI7AHQYIllq9SRqu F72u1iSC2R4qb+4CT2lRA5NOrlYmYiVa9KUVm/mQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from workstation.fritz.box ([88.152.144.157]) by mail.gmx.net (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1M26rD-1m62xD3zHF-002WNl; Mon, 26 Jul 2021 13:27:03 +0200 From: Heinrich Schuchardt To: Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Heinrich Schuchardt , Atish Patra , Anup Patel , Emil Renner Berthing , Sagar Shrikant Kadam , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Heinrich Schuchardt Subject: [PATCH 2/2] riscv: defconfig: enable NLS_CODEPAGE_437, NLS_ISO8859_1 Date: Mon, 26 Jul 2021 13:26:47 +0200 Message-Id: <20210726112647.78561-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210726112511.78350-1-xypron.glpk@gmx.de> References: <20210726112511.78350-1-xypron.glpk@gmx.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:s59V+JRRw4AVH2/7Y1aj9wuxkZntebT8SXNlG9rUnZK+pCRyYRE oKfxgb4/9VoiSkAd8vhTyo8nefWwURkAUnd5HXnlc7lzrlWvybAl77Ei7FxHD8FY7lpSvf/ LyWNAbCpfs0u/42GSVq6DQtaQ9HNFQiqL3psuhI8W695tl2q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ZSqbF2EQSGlLnkcIfGCgvM3OJp7NnC5di5MYnDdzMTvdr2YVJ lBBPSpxpqbLkGs+MatuBY0n4fgU2XFlQMX0/QO8yt6N9cgwf8brp/q5Ary9kbfPWpocQ1wEEX gtpYf5pSdWSRf6Rq10jo8ab+SKmYMqM5svy X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210726_042712_136926_B2DC904B X-CRM114-Status: UNSURE ( 8.17 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org The EFI system partition uses the FAT file system. Many distributions add an entry in /etc/fstab for the ESP. We must ensure that mounting does not fail. The default code page for FAT is 437 (cf. CONFIG_FAT_DEFAULT_CODEPAGE). The default IO character set is "iso8859-1" (cf. CONFIG_NLS_ISO8859_1). So let's enable NLS_CODEPAGE_437 and NLS_ISO8859_1 in defconfig. Signed-off-by: Heinrich Schuchardt --- arch/riscv/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) -- 2.30.2 diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig index 393bf3843e5c..1a3170d5f203 100644 --- a/arch/riscv/configs/defconfig +++ b/arch/riscv/configs/defconfig @@ -110,6 +110,8 @@ CONFIG_NFS_V4_1=y CONFIG_NFS_V4_2=y CONFIG_ROOT_NFS=y CONFIG_9P_FS=y +CONFIG_NLS_CODEPAGE_437=y +CONFIG_NLS_ISO8859_1=m CONFIG_CRYPTO_USER_API_HASH=y CONFIG_CRYPTO_DEV_VIRTIO=y CONFIG_PRINTK_TIME=y