From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932469AbdJ3QkY (ORCPT ); Mon, 30 Oct 2017 12:40:24 -0400 Received: from 5pmail.ess.barracuda.com ([64.235.150.217]:46031 "EHLO 5pmail.ess.barracuda.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751848AbdJ3QkU (ORCPT ); Mon, 30 Oct 2017 12:40:20 -0400 Date: Mon, 30 Oct 2017 09:36:16 -0700 From: Paul Burton To: Marc Zyngier CC: Paul Burton , Jason Cooper , Thomas Gleixner , , Subject: Re: [PATCH 2/8] irqchip: mips-gic: Use irq_cpu_online to (un)mask all-VP(E) IRQs Message-ID: <20171030163616.tsti7thormxlnxuo@pburton-laptop> References: <20171025233730.22225-1-paul.burton@mips.com> <20171025233730.22225-3-paul.burton@mips.com> <86mv495alz.fsf@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <86mv495alz.fsf@arm.com> User-Agent: NeoMutt/20171013 X-BESS-ID: 1509381509-298554-30597-286950-8 X-BESS-VER: 2017.12-r1710252241 X-BESS-Apparent-Source-IP: 12.201.5.28 X-BESS-Outbound-Spam-Score: 0.00 X-BESS-Outbound-Spam-Report: Code version 3.2, rules version 3.2.2.186423 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------- 0.00 BSF_BESS_OUTBOUND META: BESS Outbound X-BESS-Outbound-Spam-Status: SCORE=0.00 using account:ESS59374 scores of KILL_LEVEL=7.0 tests=BSF_BESS_OUTBOUND X-BESS-BRTS-Status: 1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marc, On Mon, Oct 30, 2017 at 08:00:08AM +0000, Marc Zyngier wrote: > > static int __init gic_of_init(struct device_node *node, > > struct device_node *parent) > > @@ -768,6 +806,8 @@ static int __init gic_of_init(struct device_node *node, > > } > > } > > > > - return 0; > > + return cpuhp_setup_state(CPUHP_AP_IRQ_GIC_STARTING, > > + "irqchip/mips/gic:starting", > > + gic_cpu_startup, NULL); > > I'm wondering about this. CPUHP_AP_IRQ_GIC_STARTING is a symbol that is > used on ARM platforms. You're very welcome to use it (as long as nobody > builds a system with both an ARM GIC and a MIPS GIC...), but I'm a bit > worried that we could end-up breaking things if one of us decides to > reorder it in enum cpuhp_state. > > The safest option would be for you to add your own state value, which > would allow the two architecture to evolve independently. I had figured that if something like that ever happens it'd be easy to split into 2 states at that point, but sure - I'm happy to add a MIPS-specific state now to avoid anyone needing to worry about it. Thanks, Paul