From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Gleixner Subject: Re: [Patch 2/2] x86, irq: Support CPU vector allocation policies Date: Tue, 5 May 2015 21:25:06 +0200 (CEST) Message-ID: References: <1430707662-28598-1-git-send-email-jiang.liu@linux.intel.com> <1430707662-28598-3-git-send-email-jiang.liu@linux.intel.com> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: In-Reply-To: <1430707662-28598-3-git-send-email-jiang.liu@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org To: Jiang Liu Cc: Bjorn Helgaas , Benjamin Herrenschmidt , Ingo Molnar , "H. Peter Anvin" , "Rafael J. Wysocki" , Randy Dunlap , Yinghai Lu , Borislav Petkov , Dimitri Sivanich , Jonathan Corbet , x86@kernel.org, Konrad Rzeszutek Wilk , David Cohen , Sander Eikelenboom , David Vrabel , Andrew Morton , Tony Luck , Joerg Roedel , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, Daniel J Blueman , linux-doc@vger.kernel.org List-Id: linux-acpi@vger.kernel.org On Mon, 4 May 2015, Jiang Liu wrote: > +enum { > + /* Allocate CPU vectors from CPUs on device local node */ > + X86_VECTOR_POL_NODE = 0x1, > + /* Allocate CPU vectors from all online CPUs */ > + X86_VECTOR_POL_GLOBAL = 0x2, > + /* Allocate CPU vectors from caller specified CPUs */ > + X86_VECTOR_POL_CALLER = 0x4, > + X86_VECTOR_POL_MIN = X86_VECTOR_POL_NODE, > + X86_VECTOR_POL_MAX = X86_VECTOR_POL_CALLER, > +} > +static unsigned int vector_alloc_policy = X86_VECTOR_POL_NODE | > + X86_VECTOR_POL_GLOBAL | > + X86_VECTOR_POL_CALLER; > +static int __init apic_parse_vector_policy(char *str) > +{ > + if (!strncmp(str, "node", 4)) > + vector_alloc_policy |= X86_VECTOR_POL_NODE; This does not make sense. X86_VECTOR_POL_NODE is already set. > + else if (!strncmp(str, "global", 6)) > + vector_alloc_policy &= ~X86_VECTOR_POL_NODE; Why would one disable node aware allocation? We fall back to the global allocation anyway, if the node aware allocation fails. I'm completely missing the value of this command line option. Thanks, tglx