Message ID | 20221111044207.1478350-9-apatel@ventanamicro.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp541093wru; Thu, 10 Nov 2022 20:49:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf4wnT6prDmscmM2UOFpMTHVwnxCQ8UOlM6HFtEVndmVjHcNM/GD5sM83GfcoMw7xeXpQqYY X-Received: by 2002:a17:906:78e:b0:7a1:e52e:bddb with SMTP id l14-20020a170906078e00b007a1e52ebddbmr480730ejc.685.1668142198672; Thu, 10 Nov 2022 20:49:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668142198; cv=none; d=google.com; s=arc-20160816; b=0wA9iGcAuatpqh+3BKDOcYi9R8XdM4nFfuOamL1T+c5a1mo7DbiJe/m3nEhh7Pwf3p MPYEdbKoVaVpdlVVLwUirZw80mp6ugi8UyIEuoHOUJgIEanfb70Av9Q1rlY8ZFaOFNB6 GjX2i3SUi+1PKSDwvk0MHaUDB0aX27EU6eOdvIcWIyi6owojWhu9D4r3FlK+19hp9Omy 2Y1Fj1K2KuAuivnPsYo5gHcp73jS7nRXj2JFmIpWTTCifl99WNoI73Tzqx4Avx4Felf/ RFaW1cOSJLtBCfDRL7QwB1uP5vzW9+3gCxdhGW+OjCezO5sTa3bgefQ/VG2vikH81fQI uC4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QDVYSk98Pqd4HV62BK0V8wp4iYN5PuAbyZ/qltqpGfw=; b=Xl94nSOvy13kBnA0VIbbl6HQ7nlLbd19Cn/M/q2yFyIDoQpAA0RRIufkonL5/+SMOp 9WTwPSkq3jQpTM9ju3+42Qg1ueEhhYBvXsNKFCKs6QJOvE1Cdm3id8J/Bc86/RFlUuxl hMEUY/fXq3pSBVpSEC1mYVKSkmexVYH+HB4qtZNbOtO4DzHGWyg6c12wBqpJ9U5wi/Kt zi8TPKPwP3R4aS8p1b5MZyC/pGAiu/QZ5rfJPSdhEJ6rAdOWUFGkbEiwAqwc7RbERzz2 Z1NlRgVffqJZl2MTTq/q3rK3+yb6/xGCAoTGOSlnw32iG2a48L0mBQaFPLqjVitXkFy4 5y6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=pGEC0adh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg7-20020a170907a40700b007adc5c4626bsi1297801ejc.50.2022.11.10.20.49.35; Thu, 10 Nov 2022 20:49:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=pGEC0adh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233053AbiKKEox (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Thu, 10 Nov 2022 23:44:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233007AbiKKEnx (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 10 Nov 2022 23:43:53 -0500 Received: from mail-oa1-x36.google.com (mail-oa1-x36.google.com [IPv6:2001:4860:4864:20::36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F13AF5B7 for <linux-kernel@vger.kernel.org>; Thu, 10 Nov 2022 20:43:28 -0800 (PST) Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-13ba86b5ac0so4408544fac.1 for <linux-kernel@vger.kernel.org>; Thu, 10 Nov 2022 20:43:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QDVYSk98Pqd4HV62BK0V8wp4iYN5PuAbyZ/qltqpGfw=; b=pGEC0adh/z21JLXfroQVWPiQB8qRzyeAxJTc67/f0F5iN0Gh1pmhQVFtbzFwJxzq7x lw8v5HEnkpA7f+MR2HfUCUo0goJIZbF9HPhj81RhS6pDv3UXQAmn8ihltl/h+LZTehtO f4zpyWcf044SFzNCrxEANZyXaShWJhsj+AKkyr2lWAJbatFc+uFES+OQRitG30+FGkDn iwKUN7PkaEG+/vjEYYaE+Q7HS+hM9CH+akvSrXi+ofXrGHz8WqfnFkeCPG/IHSkDIm+v YR5y2mBsJQDRRgkRX0/IeOQS8/rrdgZDjrDBJOp1rSz5gnPhcn1IHlyj3DvJdQsoJ3NT Iuxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QDVYSk98Pqd4HV62BK0V8wp4iYN5PuAbyZ/qltqpGfw=; b=oKp4kX95zDFMtpLQx47kWss7lWqxi89XUjqw+R/ZycA1/T3TXwlxE09bu5IeaNhvrd jfY5bRxsWIHHzw03HznPk/i2wOOLWzWHNR6O28AFoE/Hl28ek7MP/+W03YxX3poDFAtL S8+qfg0QF671ilv2fMF7kMS8dcgARMEnh3ml5iUQq8Bq6Rdbr78XpGupXhwl9VaOrTtV TUsraEVqUQOv3mL6zgEuUqHL2ppdIQYzjf43wTyURS42bipnR4HtJ7TE7NSgbRbuCA9K eXZdjxUO5414O6BkiObS8nxmLkgM8XZ31bfPcRqNH5caY7bvFUEEx+MlOEOFkM2SAKL5 mI3A== X-Gm-Message-State: ACrzQf1YYn2/+lw+yp69Gbh/k5ieCpvGTNHesRB7FM9cpmqXNEG9OFJf 85ZLMsCU81L8dPhxZmXn5e3Rnw== X-Received: by 2002:a05:6870:1f0d:b0:132:7d3c:745b with SMTP id pd13-20020a0568701f0d00b001327d3c745bmr2895855oab.180.1668141807875; Thu, 10 Nov 2022 20:43:27 -0800 (PST) Received: from anup-ubuntu64-vm.. ([103.97.165.210]) by smtp.gmail.com with ESMTPSA id k14-20020a056870350e00b0013d9bd4ad2esm787353oah.12.2022.11.10.20.43.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Nov 2022 20:43:27 -0800 (PST) From: Anup Patel <apatel@ventanamicro.com> To: Palmer Dabbelt <palmer@dabbelt.com>, Paul Walmsley <paul.walmsley@sifive.com>, Thomas Gleixner <tglx@linutronix.de>, Marc Zyngier <maz@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> Cc: Atish Patra <atishp@atishpatra.org>, Alistair Francis <Alistair.Francis@wdc.com>, Anup Patel <anup@brainfault.org>, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Anup Patel <apatel@ventanamicro.com> Subject: [PATCH 8/9] RISC-V: Select APLIC and IMSIC drivers for QEMU virt machine Date: Fri, 11 Nov 2022 10:12:06 +0530 Message-Id: <20221111044207.1478350-9-apatel@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221111044207.1478350-1-apatel@ventanamicro.com> References: <20221111044207.1478350-1-apatel@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749173873807470699?= X-GMAIL-MSGID: =?utf-8?q?1749173873807470699?= |
Series |
Linux RISC-V AIA Support
|
|
Commit Message
Anup Patel
Nov. 11, 2022, 4:42 a.m. UTC
The QEMU virt machine supports APLIC and IMSIC emulation so let's
select APLIC and IMSIC drivers from SOC_VIRT kconfig option.
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
---
arch/riscv/Kconfig.socs | 2 ++
1 file changed, 2 insertions(+)
Comments
Hey Anup, On Fri, Nov 11, 2022 at 10:12:06AM +0530, Anup Patel wrote: > The QEMU virt machine supports APLIC and IMSIC emulation so let's > select APLIC and IMSIC drivers from SOC_VIRT kconfig option. I'm kinda torn with this as I've been trying to get rid of the selects from the file in the first place. As Maz seems to have decided that the SiFive plic driver is really the RISC-V plic driver - is there a reason not to either: - select the sifive plic at an arch level, or - put a "default RISCV" type thing in the driver entry? Similarly here, should we default the APLIC and IMSIC drivers to enabled for RISCV rather than using selects? > > Signed-off-by: Anup Patel <apatel@ventanamicro.com> > --- > arch/riscv/Kconfig.socs | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs > index 69774bb362d6..c16b32eeadff 100644 > --- a/arch/riscv/Kconfig.socs > +++ b/arch/riscv/Kconfig.socs > @@ -35,6 +35,8 @@ config SOC_VIRT > select GOLDFISH > select RTC_DRV_GOLDFISH if RTC_CLASS > select SIFIVE_PLIC > + select RISCV_APLIC > + select RISCV_IMSIC > select PM_GENERIC_DOMAINS if PM > select PM_GENERIC_DOMAINS_OF if PM && OF > select RISCV_SBI_CPUIDLE if CPU_IDLE && RISCV_SBI > -- > 2.34.1 > > > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv
diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs index 69774bb362d6..c16b32eeadff 100644 --- a/arch/riscv/Kconfig.socs +++ b/arch/riscv/Kconfig.socs @@ -35,6 +35,8 @@ config SOC_VIRT select GOLDFISH select RTC_DRV_GOLDFISH if RTC_CLASS select SIFIVE_PLIC + select RISCV_APLIC + select RISCV_IMSIC select PM_GENERIC_DOMAINS if PM select PM_GENERIC_DOMAINS_OF if PM && OF select RISCV_SBI_CPUIDLE if CPU_IDLE && RISCV_SBI