Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7612992rwb; Tue, 15 Nov 2022 15:12:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf7gPfR2DtCPNhcjbcF3/78cnzRzlTQumfbsz9WbSpKl0IrNT3WDH8fJB+vwOhhbSCV/pdW+ X-Received: by 2002:a17:90a:5517:b0:213:f3b:c5e2 with SMTP id b23-20020a17090a551700b002130f3bc5e2mr613969pji.226.1668553969422; Tue, 15 Nov 2022 15:12:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668553969; cv=none; d=google.com; s=arc-20160816; b=vkiZb7ASunoVSMQgKiSa42EkI+bD30cLozxMEnU+WsbrM8iqcgQNoyst/mbld4JjiU jRBzEhtXdW1acdO8dbC5VSjMvgOz2hNCSePilr7pItnetQFDgS/lwpZ4yP/UUyXXm0A5 UhwKuh5yY8x+mwP+/kxWPGn2NFmTxSm9uOgw3OK/szPAOIhJN0h2jd6UJcazM+DKSLCa JqsO1glt9DvnHaj3XQIgTkdid/8QRwXPehZC17fCngJmk/E64hDdEbJFUvAR1+22wyLT pmlPzFMrBwmYbwHAJvq5Xair8KZe4j8ZFmwfLJtKE2ZlQALXAVCS6VJ77w6aJbM+W0wp ih6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=s1jhFedwi32l/z8Mj+pxViGrLKqBHI9Pfo/YB2a8fGU=; b=KHOD854tQSwV0mJSmUg5WcPeYc5l/2V1w/cJXipze2gfcjVCmNe/och0iaAbNn6n2J AgQ1zFmoC8+rshU2rhU9Le9Wg63aRlzCnJljEItbwNFp/tCoVtzSZo1KpS+Xic6PiDYA z/UfM8Ky2xWYwQBQvAk65Z9gG/KmD3RV5sV1msfrdwLXwlZyUG+fV2Q0qcXdmsTi5JEt nK/ooIeZtTA9tkJxOnEqUVglqPqnCbGRcZhe5Q1+gxH7GAFa0Gr9ZQoNGozeKvMMc8n6 Bu9ICulxgLdjlBSN8sEdONPX+8153t6+5QVn92sFrMLQs2XSb4PQiMQCtc8Q9EmVO9k7 j7Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YAlCAat6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l16-20020a170903121000b0018049a28eabsi15270660plh.617.2022.11.15.15.12.37; Tue, 15 Nov 2022 15:12:49 -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=@kernel.org header.s=k20201202 header.b=YAlCAat6; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231803AbiKOW3n (ORCPT + 90 others); Tue, 15 Nov 2022 17:29:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231166AbiKOW3l (ORCPT ); Tue, 15 Nov 2022 17:29:41 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88E23EC; Tue, 15 Nov 2022 14:29:40 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1F2E761A47; Tue, 15 Nov 2022 22:29:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2875C433D6; Tue, 15 Nov 2022 22:29:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668551379; bh=5RTPqbqRHo17DhuTc7evD4YG3pNYusiYUpf6yFn71Rs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YAlCAat6PiIT8BfzXkVnLtXkgTT9/M6YrwN+0+km30efTdPdnaGrliKPnN0RomA61 6NXgBR4pb2GZprFVGudycwIM8R0mh3mLUtEv4eVBwGaUMrVJy6xwsiE46FHwKQ4GgE 1Lq7t6YSOFPkhCLELvSuQ4y3wXuYEvRc2Q1Q3sk5y7ESy7Bjv0ni/4OTBGAjnpjU2C EhVEEpgzX4zF5iZh9NrKysV7Sk0eX0hdVn52TAgGr5YSc7JEP5542l6jmta69gfyIw jKN/HHNerlPyp0px0Bx9pUZFZQaCK6OzgNoeJ1LGyjABRKYUhdYbIFuUQqSKd/3/Zg 7StinEPGyWvow== Date: Tue, 15 Nov 2022 22:29:34 +0000 From: Conor Dooley To: Anup Patel , palmer@dabbelt.com Cc: Palmer Dabbelt , Paul Walmsley , Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Atish Patra , Alistair Francis , Anup Patel , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 8/9] RISC-V: Select APLIC and IMSIC drivers for QEMU virt machine Message-ID: References: <20221111044207.1478350-1-apatel@ventanamicro.com> <20221111044207.1478350-9-apatel@ventanamicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221111044207.1478350-9-apatel@ventanamicro.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > 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