Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752496AbYJZEEo (ORCPT ); Sun, 26 Oct 2008 00:04:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750713AbYJZEEf (ORCPT ); Sun, 26 Oct 2008 00:04:35 -0400 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:47104 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1750710AbYJZEEf (ORCPT ); Sun, 26 Oct 2008 00:04:35 -0400 Date: Sat, 25 Oct 2008 21:04:12 -0700 (PDT) Message-Id: <20081025.210412.206011121.davem@davemloft.net> To: benh@kernel.crashing.org Cc: galak@kernel.crashing.org, akpm@osdl.org, linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, torvalds@osdl.org, maxk@qualcomm.com, tglx@linutronix.de Subject: Re: [PATCH] genirq: Set initial default irq affinity to just CPU0 From: David Miller In-Reply-To: <1224970389.7654.473.camel@pasglop> References: <1224863858-7933-1-git-send-email-galak@kernel.crashing.org> <20081024.161813.193686281.davem@davemloft.net> <1224970389.7654.473.camel@pasglop> X-Mailer: Mew version 6.1 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1079 Lines: 26 From: Benjamin Herrenschmidt Date: Sun, 26 Oct 2008 08:33:09 +1100 > Well, I don't know how you do it but on powerpc, we explicitely fill the > affinity masks at boot time when we can spread interrupts... Maybe we > should change it the other way around and limit the mask when we can't ? > It's hard to tell for sure at this stage. On sparc64 we look at the cpu mask configured for the interrupt and do one of two things: 1) If all bits are set, we round robin assign a cpu at IRQ enable time. 2) Else we pick the first bit set in the mask. One modification I want to make is to make case #1 NUMA aware. But back to my original wonder, since I've always tipped off of this generic IRQ layer cpu mask, when was it ever defaulting to zero and causing the behvaior your powerpc guys actually want? :-) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/