From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934006AbcJZQhO (ORCPT ); Wed, 26 Oct 2016 12:37:14 -0400 Received: from foss.arm.com ([217.140.101.70]:46502 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933878AbcJZQhM (ORCPT ); Wed, 26 Oct 2016 12:37:12 -0400 From: Marc Zyngier To: Vineet Gupta Cc: Yuriy Kolerov , , , , Subject: Re: [PATCH v2 4/5] ARC: MCIP: Set an initial affinity value in idu_irq_map In-Reply-To: (Vineet Gupta's message of "Wed, 26 Oct 2016 09:17:34 -0700") Organization: ARM Ltd References: <1477313194-2310-1-git-send-email-yuriy.kolerov@synopsys.com> <1477313194-2310-4-git-send-email-yuriy.kolerov@synopsys.com> <39eae1ef-85d1-6dfb-b9fc-a052012c1fbf@synopsys.com> <127dbe3b-c9a9-3718-a711-128505ee363f@arm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Date: Wed, 26 Oct 2016 17:36:35 +0100 Message-ID: <861sz39iek.fsf@arm.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 26 2016 at 05:17:34 PM, Vineet Gupta wrote: > On 10/26/2016 07:05 AM, Marc Zyngier wrote: >> It definitely feels weird to encode the interrupt affinity in the DT >> (the kernel and possible userspace usually know much better than the >> firmware). What is the actual reason for storing the affinity there? > > The IDU intc supports various interrupt distribution modes (Round > Robin, send to one cpu only etc) whcih in turn map to affinity > setting. When doing the DT binding, we decided to add that this to DT > to get the "seed" value for affinity - which user could optionally > changed after boot. This seemed like a benign design choice at the > time. Right. But is this initial setting something that the kernel has to absolutely honor? The usual behavior is to let kernel pick something sensible, and let the user mess with it afterwards. Is there any part of the kernel that would otherwise depend on this affinity being set to a particular mode? If the answer is "none", then I believe we can safely ignore that part of the binding (and maybe deprecate it in the documentation). Thanks, M. -- Jazz is not dead. It just smells funny.