From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751843AbdHOMSz (ORCPT ); Tue, 15 Aug 2017 08:18:55 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:51054 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751129AbdHOMSy (ORCPT ); Tue, 15 Aug 2017 08:18:54 -0400 Subject: Re: [PATCH 01/12] genirq: Restrict effective affinity to single-target interrupts To: Thomas Gleixner Cc: linux-kernel@vger.kernel.org, Wei Xu , James Hogan , Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Kevin Cernekee , Florian Fainelli , Chris Zankel , Max Filippov , Paul Burton , Matt Redfearn References: <20170815113447.14507-1-marc.zyngier@arm.com> <20170815113447.14507-2-marc.zyngier@arm.com> From: Marc Zyngier Organization: ARM Ltd Message-ID: <83f8438b-0a4d-e11e-3c33-c7ebd6d7d1a0@arm.com> Date: Tue, 15 Aug 2017 13:18:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/08/17 13:01, Thomas Gleixner wrote: > On Tue, 15 Aug 2017, Marc Zyngier wrote: > >> Just because CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK is selected >> doesn't mean that all the interrupts are using the effective >> affinity mask. For a number of them, this mask is likely to >> be empty. >> >> In order to deal with this, let's restrict the use of the >> effective affinity mask to these interrupts that have been >> configured as "single target". > > That's actually wrong. On X86 we have other restrictions, i.e. groups of > CPUs which are a subset of the affinity mask. Ah, I completely missed that particular restriction. > The point of the effective mask is to see to which CPU(s) a particular > interrupt is effectively routed. This is always a subset of the affinity > mask which is either the boot default or set by the admin. > > So what you really want is to check whether the effective mask is > empty. That's an indicator that the underlying irq chip does not update the > effective mask. Yes, that should do the trick. I'll update that patch. Thanks, M. -- Jazz is not dead. It just smells funny...