From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mika Westerberg Subject: Re: [Bugfix] x86, irq: Fix bug in setting IOAPIC pin attributes Date: Wed, 27 Aug 2014 11:04:42 +0300 Message-ID: <20140827080238.GH1785@lahna.fi.intel.com> References: <20140826095221.GO1660@lahna.fi.intel.com> <1409118795-17046-1-git-send-email-jiang.liu@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mga09.intel.com ([134.134.136.24]:52734 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751524AbaH0IFG (ORCPT ); Wed, 27 Aug 2014 04:05:06 -0400 Content-Disposition: inline In-Reply-To: <1409118795-17046-1-git-send-email-jiang.liu@linux.intel.com> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Jiang Liu Cc: Benjamin Herrenschmidt , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "Rafael J. Wysocki" , Bjorn Helgaas , Randy Dunlap , Yinghai Lu , Borislav Petkov , Grant Likely , x86@kernel.org, Prarit Bhargava , Konrad Rzeszutek Wilk , Andrew Morton , Tony Luck , Joerg Roedel , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, Ingo Molnar On Wed, Aug 27, 2014 at 01:53:11PM +0800, Jiang Liu wrote: > Commit 15a3c7cc9154321fc3 "x86, irq: Introduce two helper functions > to support irqdomain map operation" breaks LPSS ACPI enumerated > devices. > > On startup, IOAPIC driver preallocates IRQ descriptors and programs > IOAPIC pins with default level and polarity attributes for all legacy > IRQs. Later legacy IRQ users may fail to set IOAPIC pin attributes > if the requested attributes conflicts with the default IOAPIC pin > attributes. So change mp_irqdomain_map() to allow the first legacy IRQ > user to reprogram IOAPIC pin with different attributes. > > Reported-by: Mika Westerberg > Signed-off-by: Jiang Liu > --- > Hi Mika, > We have a plan to kill function mp_set_gsi_attr() later, so > I have slightly modified your changes. Could you please help to test > it again? Works fine here, thanks! Tested-by: Mika Westerberg