Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1790902ybn; Thu, 26 Sep 2019 02:13:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyNEP5I5p6xgKib19ZV+1X5YlUlL/k1621B4/TIA9yCUrVtAfpsE2z9n0qP5a15x2472gPQ X-Received: by 2002:a50:884c:: with SMTP id c12mr2407841edc.134.1569489183529; Thu, 26 Sep 2019 02:13:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569489183; cv=none; d=google.com; s=arc-20160816; b=xm+ebLXwthNMfDaWf7Ohwn2sAAupaCWfvl8h6OWl2Ciir1jSggQmB/+eH3MjbZYuCG ptE8QdkmpxleXSEsDvYRNxgoHqDCHZkb+0xlopDmPpvD6becab235GTkK6YFghPMkSlh SfdYOWymLwk3xAmAqb9gm6ihucxXvtWhCbXK7b64Rw1GH/APDO+aZm/3KuvA/mQmXoP0 J79VAILwGLivrsRIuzZ15S4PXHhFtACINbWEsFo8ZXC6IKExnn4eq5RvYuyVfVzeAZLI zgfFGj7B+oo5nedws7Kekgp5UNtpuVQOl15GTE3thuDASdPTsCYQFxVK1YSx1ywfUMnY F08w== 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=MCKowqUakGbd2bzBHhBCQJ3eP070qYwr7iHSC1ow4hM=; b=gpLO+v9VRHUoz4o76MMLP8YDRnkpDCskYXxQHJyt0GWaW+kcCUlmK7WqPtUjXaeNjZ dL5/z38GfT3igDAXVrWDZhlp8RgMNCxZgY1NTbJPddZ6Jm1YsrwvPzdAvHDZsk+fnHJl JmdugAo+3DCo75ZXnQwt2a8pj0mSdnNx2nTlOppC3ujXPlNbrtvr8Sp+EKx4hkVv7n1l oFqG1v6iz1YwdeBatLQi1/FKAibDceQh4XoDfUo8j2AAnICfQ9YvR9h46KuJRXpE4KLV DYteJ0BM4DgEb0U8/ZWmotbQVrV1utHpG6POwvcmERRWyd2foNlO06HnNbPV62s9UNDJ 2/xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=h+uvIipM; 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 pv13si658170ejb.79.2019.09.26.02.12.39; Thu, 26 Sep 2019 02:13:03 -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=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=h+uvIipM; 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 S2442249AbfIYFRG (ORCPT + 99 others); Wed, 25 Sep 2019 01:17:06 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:54442 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393000AbfIYFRG (ORCPT ); Wed, 25 Sep 2019 01:17:06 -0400 Received: by mail-wm1-f67.google.com with SMTP id p7so3127109wmp.4 for ; Tue, 24 Sep 2019 22:17:04 -0700 (PDT) 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=MCKowqUakGbd2bzBHhBCQJ3eP070qYwr7iHSC1ow4hM=; b=h+uvIipMHwBJLDtSoQbxKC4Dfhcem9jIhZJCvILcnapKxMU0If6F8x4YMY5gRWdm5H f7bxHwrcZbBhNOz2aLK84mxYIRxJfAAGWdFZ6BZbpgFb+zkrjl3V0sHXWD0cqnoygcIR 38vwQ2qqbI1Bctp+hmEWpOPipadn5GvOWgC/4T/IdwoB6JkCubwho5A3sovPFuND+u9C Z3hdivxj5r2bm6Xchi785L43kVrGOn3G1rUJcMsX2mRNmcO7HJB6ZnsLhFIp4eskN1dl dP+48XqMlWyGssuc+MKr7PAxIfotbQV4IcsIQBgEX47BcyO9F3ikA/hmu3rNR+ZsftzR 2PWA== 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=MCKowqUakGbd2bzBHhBCQJ3eP070qYwr7iHSC1ow4hM=; b=nlvp5y49QROSwCPzKM7IQPPFWP3IkPAnyzcLkh5okTuWYhTpJ7OnVSnpWgRIbyg63v lXIsM36vXcZIzonKv8ylJholDleHfASzBMu7spBCsTq7Dd4kYRCDC16VwyruZ4PwAcdX qFYWEyMjlQ5v5ILO5M3HSkKJcilJhOLTR2deRoGMoQZhWj8QsnVdg8n0bSliY0pRfVmR A6BlUAp3QoqqEKlFizyPrYvfZtWsiGY0zKfWumIgQhVg0+0XHWO5FvMOX7Iyv8/IiUFI MjIXGwcy1gVrlKoPE4ijbYoAqHvX0SA5moDd+yEvWhODisMA/RCNVms8sllziWfFdmRQ ARIQ== X-Gm-Message-State: APjAAAWymT0+CLpkdCRWp/TvsXcTUrboQijJbJC5T47aHTOhBdG99+0p vqm3mfXR1m4MVQRyRArNxTi9yhxmAtPch03cQxBNEQ== X-Received: by 2002:a1c:80ca:: with SMTP id b193mr4789145wmd.171.1569388623980; Tue, 24 Sep 2019 22:17:03 -0700 (PDT) MIME-Version: 1.0 References: <20190925042912.119553-1-anup.patel@wdc.com> <20190925042912.119553-2-anup.patel@wdc.com> <20190925044308.GA1245729@kroah.com> <20190925050653.GA1337454@kroah.com> In-Reply-To: <20190925050653.GA1337454@kroah.com> From: Anup Patel Date: Wed, 25 Sep 2019 10:46:52 +0530 Message-ID: Subject: Re: [PATCH 1/2] platform: goldfish: Allow goldfish virtual platform drivers for RISCV To: Greg Kroah-Hartman Cc: Anup Patel , Palmer Dabbelt , Paul Walmsley , Albert Ou , Roman Kiryanov , Atish Patra , Alistair Francis , Christoph Hellwig , "linux-riscv@lists.infradead.org" , "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, Sep 25, 2019 at 10:37 AM Greg Kroah-Hartman wrote: > > On Wed, Sep 25, 2019 at 10:30:00AM +0530, Anup Patel wrote: > > On Wed, Sep 25, 2019 at 10:13 AM Greg Kroah-Hartman > > wrote: > > > > > > On Wed, Sep 25, 2019 at 04:30:03AM +0000, Anup Patel wrote: > > > > We will be using some of the Goldfish virtual platform devices (such > > > > as RTC) on QEMU RISC-V virt machine so this patch enables goldfish > > > > kconfig option for RISC-V architecture. > > > > > > > > Signed-off-by: Anup Patel > > > > --- > > > > drivers/platform/goldfish/Kconfig | 2 +- > > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > > > diff --git a/drivers/platform/goldfish/Kconfig b/drivers/platform/goldfish/Kconfig > > > > index 77b35df3a801..0ba825030ffe 100644 > > > > --- a/drivers/platform/goldfish/Kconfig > > > > +++ b/drivers/platform/goldfish/Kconfig > > > > @@ -1,7 +1,7 @@ > > > > # SPDX-License-Identifier: GPL-2.0-only > > > > menuconfig GOLDFISH > > > > bool "Platform support for Goldfish virtual devices" > > > > - depends on X86_32 || X86_64 || ARM || ARM64 || MIPS > > > > + depends on X86_32 || X86_64 || ARM || ARM64 || MIPS || RISCV > > > > > > Why does this depend on any of these? Can't we just have: > > > > May be Goldfish drivers were compile tested/tried on these architectures only. > > True, but that does not mean a driver should only have a specific list > of arches. This should only be needed if you _know_ it doesn't work on > a specific arch, not the other way around. No problem, I will drop depends on various architectures line > > > > > depends on HAS_IOMEM > > > > > > And that's it? > > > > I think it should be just "depends on HAS_IOMEM && HAS_DMA" just like > > VirtIO MMIO. Agree ?? > > No idea, but if that's what is needed for building, then sure :) The Goldfish framebuffer can do DMA access so I add dependency on HAS_DMA. Refer, https://android.googlesource.com/platform/external/qemu/+/master/docs/GOLDFISH-VIRTUAL-HARDWARE.TXT I will send v2 as-per above. Regards, Anup