From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754270AbcBHPBo (ORCPT ); Mon, 8 Feb 2016 10:01:44 -0500 Received: from foss.arm.com ([217.140.101.70]:33310 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753953AbcBHPBm (ORCPT ); Mon, 8 Feb 2016 10:01:42 -0500 Subject: Re: [PATCH 1/6] irqchip: add the Alpine MSIX interrupt controller To: Antoine Tenart References: <1454922971-17405-1-git-send-email-antoine.tenart@free-electrons.com> <1454922971-17405-2-git-send-email-antoine.tenart@free-electrons.com> <20160208141754.GG4117@kwain> <56B8A638.1040903@arm.com> <20160208144834.GH4117@kwain> Cc: Thomas Gleixner , jason@lakedaemon.net, tsahee@annapurnalabs.com, rshitrit@annapurnalabs.com, thomas.petazzoni@free-electrons.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org From: Marc Zyngier Organization: ARM Ltd Message-ID: <56B8ADD3.4030404@arm.com> Date: Mon, 8 Feb 2016 15:01:39 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0 MIME-Version: 1.0 In-Reply-To: <20160208144834.GH4117@kwain> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/02/16 14:48, Antoine Tenart wrote: > On Mon, Feb 08, 2016 at 02:29:12PM +0000, Marc Zyngier wrote: >> On 08/02/16 14:17, Antoine Tenart wrote: >>> Thomas, >>> >>> On Mon, Feb 08, 2016 at 11:31:47AM +0100, Thomas Gleixner wrote: >>>> On Mon, 8 Feb 2016, Antoine Tenart wrote: >>>>> +static int alpine_msix_set_affinity(struct irq_data *irq_data, >>>>> + const struct cpumask *mask, bool force) >>>>> +{ >>>>> + int ret; >>>>> + >>>>> + ret = irq_chip_set_affinity_parent(irq_data, mask, force); >>>>> + return ret == IRQ_SET_MASK_OK ? IRQ_SET_MASK_OK_DONE : ret; >>>> >>>> What's the point of this exercise? Why can't you just set the affinity >>>> callback to irq_chip_set_affinity_parent() ? >>> >>> That's what done in irq-gic-v2m.c. Besides that, I see no point. I'll >>> update for v2. >> >> That's because there is no need to do another compose_msi_msg/write_msg >> in msi_domain_set_affinity() once the affinity has been updated at the >> GIC level. Alternatively, updating the GIC driver to always return >> IRQ_SET_MASK_OK_DONE would be perfectly acceptable. > > I'm using drivers/irqchip/irq-gic-v3.c which is indeed always returning > IRQ_SET_MASK_OK. I'll make a new patch in the v2 of this series to > return IRQ_SET_MASK_OK_DONE instead in the GIC driver (and then patch > irq-gic-v2m.c). /me puzzled. GICv3, but no ITS??? WTF??? M. -- Jazz is not dead. It just smells funny...