Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2485027ybp; Sat, 12 Oct 2019 11:06:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwImhd38M3+fA4bn3n5/canuDFBAX3qBMhILtBCkkfhUYNSXgUjOeXRXCSZp6TTcD+HP7hR X-Received: by 2002:aa7:d8c7:: with SMTP id k7mr19907152eds.138.1570903593739; Sat, 12 Oct 2019 11:06:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570903593; cv=none; d=google.com; s=arc-20160816; b=uNpA7PiHoHlcjoPnaG1GIKPFWdZiD2BP32XxZ+LKaQgPV3/JkOOJLMlJnNQ8m74LO0 ql6jeTPgvJRsoirJFsCEdQ4DexFEvo1mY3lErRyLGno9vGl9xuKtIcnwFbnfOpbXoDv6 5h5jxObEeyc68Cnq7w/bTaOJ9mTZ/YvFmnytEbGv7PAjAsG9XCWX2ecQracb1wo02Lpi 0RsGDzhtPA9Gs2LEGNqmFyYdkgX5rtbFC/J3p/uAEegwBY+ixwbw2lcxitSBkY5aHWex PZT451qooWjjQcxkjsbEcP5x4LAHtrbDCuUcDqpwMNDEs9mANMgEyJuH0e4IDqE66sO9 ePwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=QGULoH50CkpFs9ZPMN0T6KllCcRA7SCxuzqckP0gnTU=; b=0R0I73yRMP2r96yHNqCa1AOQ31Z22MHvrWfttkA6a2vfCqfukEExqHi72H5z1FssIu ddoHzkxaNfpIsk5Jnqh9SFcJH18JvLExHq3HxrOR1pBqvYbktj36NIifx1wUMyuEBol9 vsrx3MT/e9eFZAbZfxUqLEDt6Y14H1mVUB2wJYUOzy20dm54jc5ly+pxK1cDgJuaBU89 mXZvDgw7UuxoyOGb8ismbED0mTkA0JxPuJEMU/KhneWLr6eNekjoMTMKekzgdeSSeMmZ gu4j1Lk456OHns3wQNdim/2kUULb8O34G4ha4Ejur18BsUJck2Cifg6bt75OVsivoD0j ylhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=V+O9w7oC; 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 o25si7447587ejc.361.2019.10.12.11.05.55; Sat, 12 Oct 2019 11:06:33 -0700 (PDT) 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=@sifive.com header.s=google header.b=V+O9w7oC; 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 S1729515AbfJLRin (ORCPT + 99 others); Sat, 12 Oct 2019 13:38:43 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:41736 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728162AbfJLRin (ORCPT ); Sat, 12 Oct 2019 13:38:43 -0400 Received: by mail-pf1-f195.google.com with SMTP id q7so7944936pfh.8 for ; Sat, 12 Oct 2019 10:38:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=QGULoH50CkpFs9ZPMN0T6KllCcRA7SCxuzqckP0gnTU=; b=V+O9w7oCvmWLh3i5Tt0HokYwr5aCEtbOMnxkQh93haiqG5tRmpJfBrSzTUhVOxw/qy MflYyC4yaUd0QkBmtIwVAbVdHDMAh9G34f78PCPTVqZ3LTnl+A3Ck152ZhHolai0umvH x+eRt/AO8CJaK5Uy4i5F/INQbp4XOqa3GnZ3QPaZL/70qM0JDady/u6cd+19cWwFjyNi hdOO4BtOo0e2T2XegKd+48X4G3l8hYqAG58/idv+ZLFVj4jGsBewv8PDocnXa+NoFxs/ 0zxEvBunmH7620m0WrKWFi2l8gPMC4sVs3MtCPF1lZTd7xcwvALMruFnhPQ8sHQ/DTSk bQ9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=QGULoH50CkpFs9ZPMN0T6KllCcRA7SCxuzqckP0gnTU=; b=Jt5D7i9+7fON5jfuLYKrfV093ceYT1ZB37ve317GHWJjpsFGAhMLAiptVoIGAcl4qq PMV1NekyieZfn0espi4R2hpWFN7zJwjWcs/KZlQlMo7CIGB7KthPKpFVQsumT3oabDRn jLcsnrNL7zbonExx9A90KhT37Q2x+XnD2c3rP4+2hTu4Ws3N/dcB9H72lboeniKNhfaD wasfH/S47U7dmjh4qMddjw88zrr9FLxN543Y5QyoutNpRNfanhu26afaLRilubqzvgzW cXq7gud1q72Mqhtlaav6nAAzO6HRBbzmI5AmhD7xFx5ZNNvhdXI2TxMlz8bkVn2pZUNf Esvg== X-Gm-Message-State: APjAAAWRbWszj/LXsF69Su6571KFHagB+G+/q9IEqZV7SGjlD7LncA2q WPJNqVRA13fFNGTrSv1ZYNM2oQ== X-Received: by 2002:a17:90a:338c:: with SMTP id n12mr24412467pjb.24.1570901922575; Sat, 12 Oct 2019 10:38:42 -0700 (PDT) Received: from localhost ([192.55.54.60]) by smtp.gmail.com with ESMTPSA id m12sm16808019pff.66.2019.10.12.10.38.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 12 Oct 2019 10:38:41 -0700 (PDT) Date: Sat, 12 Oct 2019 10:38:41 -0700 (PDT) X-Google-Original-Date: Sat, 12 Oct 2019 10:38:01 PDT (-0700) Subject: Re: [PATCH v2 2/2] RISC-V: defconfig: Enable Goldfish RTC driver In-Reply-To: <20190925063706.56175-3-anup.patel@wdc.com> CC: Paul Walmsley , aou@eecs.berkeley.edu, Greg KH , rkir@google.com, Atish Patra , Alistair Francis , Christoph Hellwig , anup@brainfault.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Anup Patel From: Palmer Dabbelt To: Anup Patel Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 24 Sep 2019 23:38:08 PDT (-0700), Anup Patel wrote: > We have Goldfish RTC device available on QEMU RISC-V virt machine > hence enable required driver in RV32 and RV64 defconfigs. > > Signed-off-by: Anup Patel > --- > arch/riscv/configs/defconfig | 3 +++ > arch/riscv/configs/rv32_defconfig | 3 +++ > 2 files changed, 6 insertions(+) > > diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig > index 3efff552a261..57b4f67b0c0b 100644 > --- a/arch/riscv/configs/defconfig > +++ b/arch/riscv/configs/defconfig > @@ -73,7 +73,10 @@ CONFIG_USB_STORAGE=y > CONFIG_USB_UAS=y > CONFIG_MMC=y > CONFIG_MMC_SPI=y > +CONFIG_RTC_CLASS=y > +CONFIG_RTC_DRV_GOLDFISH=y > CONFIG_VIRTIO_MMIO=y > +CONFIG_GOLDFISH=y > CONFIG_EXT4_FS=y > CONFIG_EXT4_FS_POSIX_ACL=y > CONFIG_AUTOFS4_FS=y > diff --git a/arch/riscv/configs/rv32_defconfig b/arch/riscv/configs/rv32_defconfig > index 7da93e494445..50716c1395aa 100644 > --- a/arch/riscv/configs/rv32_defconfig > +++ b/arch/riscv/configs/rv32_defconfig > @@ -69,7 +69,10 @@ CONFIG_USB_OHCI_HCD=y > CONFIG_USB_OHCI_HCD_PLATFORM=y > CONFIG_USB_STORAGE=y > CONFIG_USB_UAS=y > +CONFIG_RTC_CLASS=y > +CONFIG_RTC_DRV_GOLDFISH=y > CONFIG_VIRTIO_MMIO=y > +CONFIG_GOLDFISH=y > CONFIG_SIFIVE_PLIC=y > CONFIG_EXT4_FS=y > CONFIG_EXT4_FS_POSIX_ACL=y > -- > 2.17.1 Reviewed-by: Palmer Dabbelt IIRC there was supposed to be a follow-up to your QEMU patch set to rebase it on top of a refactoring of their RTC code, but I don't see it in my inbox. LMK if I missed it, as QEMU's soft freeze is in a few weeks and I'd like to make sure I get everything in. Additionally: we should refactor our Kconfig to have some sort of CONFIG_SOC_VIRT that selects this stuff, like we have the CONFIG_SOC_SIFIVE. This will explicitly document why devices are in the defconfig, avoid duplicating a bunch of stuff between defconfigs, and provide an example of how we support multiple SOCs in a single image. I don't see why either of these should block merging the patch, though.