From: Andrew de Quincey Subject: Question about odd code in mpparse.c w.r.t IRQ routing Date: Thu, 31 Jul 2003 14:43:40 +0100 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <200307311443.40141.adq_dvb@lidskialf.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org In arch/i386/kernel/mpparse.c/mp_parse_prt(), there is the following section of code: ioapic = mp_find_ioapic(irq); if (ioapic < 0) continue; ioapic_pin = irq - mp_ioapic_routing[ioapic].irq_start; if (!ioapic && (irq < 16)) irq += 16; The questionable bit is the last two lines. If the IRQ is found on IO-APIC #0, and it is < 16, then add 16 onto it! This completely breaks things on my TX150 server as some IRQs which are less < 16 get mapped onto the second IO-APIC. Can someone tell me what this is meant to be doing? ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01