Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp834300ybl; Mon, 2 Dec 2019 19:09:00 -0800 (PST) X-Google-Smtp-Source: APXvYqzg0J9Zdr9Y+OZRowP/FQwmF3+B3mY5WKRpEKXzoMH/AbE44HN+S2e7ngBh4HUJZ6hqVHV+ X-Received: by 2002:a9d:7e8c:: with SMTP id m12mr1791506otp.346.1575342539997; Mon, 02 Dec 2019 19:08:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575342539; cv=none; d=google.com; s=arc-20160816; b=BtTMJu6bSkyPSCqAbghGUq14qW6O/+BvgzCedCLVu0Ej1rhMjz9+O/7XLZLSJrTle8 hb27gKKHj6dd1AzQNp9l8n1Og88N2m72JNyNExEf0KCbMOnMFZR6RBrDIBKYnj8+bqAe et+XMjX76wvlTB42jC5SdGK9Nib5vdgbDMDheWqWy5fPNI1Y16IKEtPDL6eqIATFa7W1 kDo4/kbL9nBbPKqZmpbrIOEQRor7TW0hXtwakt6pSooShyJmz7IIOzUVd/0BDmbGsuqX EpiiHhduKjJ7/SFO6xSZiMm+gG6YLr93CxGW5BOOX0OwwE7VnAFYShVV78LdfSE4EpPn Qaqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=gbCH5ti3WgkMkBOgo2DeVgGqRNAZsfv1Xo4frH8ttaY=; b=z0QaR2Al0lDL4z8nQm/utQJmlEUXLcDBazCXRNFgjMWRdGEXsX/BkQuQCkMdXx1sz0 W3FHiuCN2J5sVi/cJxglI/iuOkpnk4ZEvZ8iBWYDyJi7tl7fQIy3opxSLzrN+ZFeKnnp ArMpV/OxYyitfDU8XPxbX4b/XYuM35vcBB9iS2q3iTCPAM7yzRXfvHX8UtgBofdoeQJN 4Yd/uGqag9zox1tMs8xH/6uacx61/z1F8YsFOIuKDbbnfF3SJOsT7YkNfRBiCvLZ1GHN Lv+iMTepAZ5MHJUshXr79I2xHtdWfm1rqibvCGcLLgApRdxTLGcXi+RVKFF4MbcjRseJ 79Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=EBogXKR7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c12si537218otf.18.2019.12.02.19.08.46; Mon, 02 Dec 2019 19:08:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=EBogXKR7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726469AbfLCDGs (ORCPT + 99 others); Mon, 2 Dec 2019 22:06:48 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:37208 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726224AbfLCDGr (ORCPT ); Mon, 2 Dec 2019 22:06:47 -0500 Received: by mail-wm1-f67.google.com with SMTP id f129so1802685wmf.2 for ; Mon, 02 Dec 2019 19:06:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gbCH5ti3WgkMkBOgo2DeVgGqRNAZsfv1Xo4frH8ttaY=; b=EBogXKR7T/7BONpi+EENQ/V0EL8cRhsZe2zmGwkQdue0vzn4CY0piD7aLAxSorCKYN BpQ5i3zI7L2XF/4T8Po/sR1AeP7kY6289Wf1FCj1JBuhDWfoZS8/hz/tLJUbNxWtqgjF Xr/pqghQtgGtykmXwIDCDGERPuj9pq1JiSohPxqWiMHUtPy1uuZoGnzNIq10dF9HhqvA 9RuVXAHWkNB5d40duT7VNllrazCLb5AOMYzRoiR4tmAHyxL288nxt6WKQvwaiThhIDs4 EbJOyJRLNjDddueqvySSFLlcN0YMolSLzRYSuB8aMXhe+57oPqqjnVv/XJC8VFBrUChU KN6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gbCH5ti3WgkMkBOgo2DeVgGqRNAZsfv1Xo4frH8ttaY=; b=iihg2DNWqfsqinCfNblxQwUeI2XItbU/ZR3t6pvdWKJ69OQQnTTimoUq9nsmRdgzYO WJWMAun5Y6aS+Ia3m/ONk5Aa5NG8Qhomu7ixVnZgzE1WHWGOdmXalM5hQdjfVmAbK16n 4Af5zzOZBqvgiM9PllwY12nf4OiK0bGNw1gR5qmdW5hpvjj3R5ud0BL1I2jm60dXxyqs u2ulwcUASbg8LwgnkbpgssdqRkr4NYSOAU4jCD9WtooZ6fiCmRa4JdqZh4o6NEEXuPSk p+KEvDpH06CMH1cbCUflxPjPThbjl2adXy/AH9qn5uWMTdzRKlVl3XoEucMal9/UakDH 2Zgw== X-Gm-Message-State: APjAAAWXSvBuQGitHpP2t+B+I6412dJgnlV3Ou8UT5PexX/ELsQ9r3Vc QjmsJbg/MsA/U+7vJbLctWCAeXCpi5NAmvwJbV/7tQ== X-Received: by 2002:a1c:3105:: with SMTP id x5mr29912268wmx.24.1575342405331; Mon, 02 Dec 2019 19:06:45 -0800 (PST) MIME-Version: 1.0 References: <20191125132147.97111-1-anup.patel@wdc.com> <20191125132147.97111-3-anup.patel@wdc.com> In-Reply-To: From: Anup Patel Date: Tue, 3 Dec 2019 08:36:35 +0530 Message-ID: Subject: Re: [PATCH 2/4] RISC-V: Enable QEMU virt machine support in defconfigs To: Atish Patra Cc: "paul.walmsley@sifive.com" , "palmer@sifive.com" , Anup Patel , "aou@eecs.berkeley.edu" , "hch@lst.de" , "linux-riscv@lists.infradead.org" , Alistair Francis , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 27, 2019 at 12:44 AM Atish Patra wrote: > > On Mon, 2019-11-25 at 13:22 +0000, Anup Patel wrote: > > We have kconfig option for QEMU virt machine so let's enable it > > in RV32 and RV64 defconfigs. > > > > and remove the virt specific configs from defconfig. > > Bit more verbose commit text makes more sense here. The virt specific configs are automatically removed by "savedefconfig" so I did not mention it in commit message. I will certainly update commit message like you suggested. > > > > Signed-off-by: Anup Patel > > --- > > arch/riscv/configs/defconfig | 15 +-------------- > > arch/riscv/configs/rv32_defconfig | 16 +--------------- > > 2 files changed, 2 insertions(+), 29 deletions(-) > > > > diff --git a/arch/riscv/configs/defconfig > > b/arch/riscv/configs/defconfig > > index 420a0dbef386..2515fe6417e1 100644 > > --- a/arch/riscv/configs/defconfig > > +++ b/arch/riscv/configs/defconfig > > @@ -15,6 +15,7 @@ CONFIG_BLK_DEV_INITRD=y > > CONFIG_EXPERT=y > > CONFIG_BPF_SYSCALL=y > > CONFIG_SOC_SIFIVE=y > > +CONFIG_SOC_VIRT=y > > CONFIG_SMP=y > > CONFIG_MODULES=y > > CONFIG_MODULE_UNLOAD=y > > @@ -30,7 +31,6 @@ CONFIG_IP_PNP_BOOTP=y > > CONFIG_IP_PNP_RARP=y > > CONFIG_NETLINK_DIAG=y > > CONFIG_NET_9P=y > > -CONFIG_NET_9P_VIRTIO=y > > CONFIG_PCI=y > > CONFIG_PCIEPORTBUS=y > > CONFIG_PCI_HOST_GENERIC=y > > @@ -38,15 +38,12 @@ CONFIG_PCIE_XILINX=y > > CONFIG_DEVTMPFS=y > > CONFIG_DEVTMPFS_MOUNT=y > > CONFIG_BLK_DEV_LOOP=y > > -CONFIG_VIRTIO_BLK=y > > CONFIG_BLK_DEV_SD=y > > CONFIG_BLK_DEV_SR=y > > -CONFIG_SCSI_VIRTIO=y > > CONFIG_ATA=y > > CONFIG_SATA_AHCI=y > > CONFIG_SATA_AHCI_PLATFORM=y > > CONFIG_NETDEVICES=y > > -CONFIG_VIRTIO_NET=y > > CONFIG_MACB=y > > CONFIG_E1000E=y > > CONFIG_R8169=y > > @@ -57,15 +54,12 @@ CONFIG_SERIAL_8250_CONSOLE=y > > CONFIG_SERIAL_OF_PLATFORM=y > > CONFIG_SERIAL_EARLYCON_RISCV_SBI=y > > CONFIG_HVC_RISCV_SBI=y > > -CONFIG_VIRTIO_CONSOLE=y > > CONFIG_HW_RANDOM=y > > -CONFIG_HW_RANDOM_VIRTIO=y > > CONFIG_SPI=y > > CONFIG_SPI_SIFIVE=y > > # CONFIG_PTP_1588_CLOCK is not set > > CONFIG_DRM=y > > CONFIG_DRM_RADEON=y > > -CONFIG_DRM_VIRTIO_GPU=y > > CONFIG_FRAMEBUFFER_CONSOLE=y > > CONFIG_USB=y > > CONFIG_USB_XHCI_HCD=y > > @@ -78,12 +72,6 @@ CONFIG_USB_STORAGE=y > > CONFIG_USB_UAS=y > > CONFIG_MMC=y > > CONFIG_MMC_SPI=y > > -CONFIG_VIRTIO_PCI=y > > -CONFIG_VIRTIO_BALLOON=y > > -CONFIG_VIRTIO_INPUT=y > > -CONFIG_VIRTIO_MMIO=y > > -CONFIG_RPMSG_CHAR=y > > -CONFIG_RPMSG_VIRTIO=y > > CONFIG_EXT4_FS=y > > CONFIG_EXT4_FS_POSIX_ACL=y > > CONFIG_AUTOFS4_FS=y > > @@ -98,6 +86,5 @@ CONFIG_NFS_V4_2=y > > CONFIG_ROOT_NFS=y > > CONFIG_9P_FS=y > > CONFIG_CRYPTO_USER_API_HASH=y > > -CONFIG_CRYPTO_DEV_VIRTIO=y > > CONFIG_PRINTK_TIME=y > > # CONFIG_RCU_TRACE is not set > > diff --git a/arch/riscv/configs/rv32_defconfig > > b/arch/riscv/configs/rv32_defconfig > > index 87ee6e62b64b..bbcf14fd6f40 100644 > > --- a/arch/riscv/configs/rv32_defconfig > > +++ b/arch/riscv/configs/rv32_defconfig > > @@ -14,6 +14,7 @@ CONFIG_CHECKPOINT_RESTORE=y > > CONFIG_BLK_DEV_INITRD=y > > CONFIG_EXPERT=y > > CONFIG_BPF_SYSCALL=y > > +CONFIG_SOC_VIRT=y > > CONFIG_ARCH_RV32I=y > > CONFIG_SMP=y > > CONFIG_MODULES=y > > @@ -30,7 +31,6 @@ CONFIG_IP_PNP_BOOTP=y > > CONFIG_IP_PNP_RARP=y > > CONFIG_NETLINK_DIAG=y > > CONFIG_NET_9P=y > > -CONFIG_NET_9P_VIRTIO=y > > CONFIG_PCI=y > > CONFIG_PCIEPORTBUS=y > > CONFIG_PCI_HOST_GENERIC=y > > @@ -38,15 +38,12 @@ CONFIG_PCIE_XILINX=y > > CONFIG_DEVTMPFS=y > > CONFIG_DEVTMPFS_MOUNT=y > > CONFIG_BLK_DEV_LOOP=y > > -CONFIG_VIRTIO_BLK=y > > CONFIG_BLK_DEV_SD=y > > CONFIG_BLK_DEV_SR=y > > -CONFIG_SCSI_VIRTIO=y > > CONFIG_ATA=y > > CONFIG_SATA_AHCI=y > > CONFIG_SATA_AHCI_PLATFORM=y > > CONFIG_NETDEVICES=y > > -CONFIG_VIRTIO_NET=y > > CONFIG_MACB=y > > CONFIG_E1000E=y > > CONFIG_R8169=y > > @@ -57,13 +54,10 @@ CONFIG_SERIAL_8250_CONSOLE=y > > CONFIG_SERIAL_OF_PLATFORM=y > > CONFIG_SERIAL_EARLYCON_RISCV_SBI=y > > CONFIG_HVC_RISCV_SBI=y > > -CONFIG_VIRTIO_CONSOLE=y > > CONFIG_HW_RANDOM=y > > -CONFIG_HW_RANDOM_VIRTIO=y > > # CONFIG_PTP_1588_CLOCK is not set > > CONFIG_DRM=y > > CONFIG_DRM_RADEON=y > > -CONFIG_DRM_VIRTIO_GPU=y > > CONFIG_FRAMEBUFFER_CONSOLE=y > > CONFIG_USB=y > > CONFIG_USB_XHCI_HCD=y > > @@ -74,13 +68,6 @@ CONFIG_USB_OHCI_HCD=y > > CONFIG_USB_OHCI_HCD_PLATFORM=y > > CONFIG_USB_STORAGE=y > > CONFIG_USB_UAS=y > > -CONFIG_VIRTIO_PCI=y > > -CONFIG_VIRTIO_BALLOON=y > > -CONFIG_VIRTIO_INPUT=y > > -CONFIG_VIRTIO_MMIO=y > > -CONFIG_RPMSG_CHAR=y > > -CONFIG_RPMSG_VIRTIO=y > > -CONFIG_SIFIVE_PLIC=y > > CONFIG_EXT4_FS=y > > CONFIG_EXT4_FS_POSIX_ACL=y > > CONFIG_AUTOFS4_FS=y > > @@ -95,6 +82,5 @@ CONFIG_NFS_V4_2=y > > CONFIG_ROOT_NFS=y > > CONFIG_9P_FS=y > > CONFIG_CRYPTO_USER_API_HASH=y > > -CONFIG_CRYPTO_DEV_VIRTIO=y > > CONFIG_PRINTK_TIME=y > > # CONFIG_RCU_TRACE is not set > > Otherwise, looks good. > > Reviewed-by: Atish Patra Thanks, Anup