From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756070Ab0AMVAA (ORCPT ); Wed, 13 Jan 2010 16:00:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755469Ab0AMVAA (ORCPT ); Wed, 13 Jan 2010 16:00:00 -0500 Received: from terminus.zytor.com ([198.137.202.10]:46181 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751754Ab0AMU77 (ORCPT ); Wed, 13 Jan 2010 15:59:59 -0500 Message-ID: <4B4E340F.7080106@zytor.com> Date: Wed, 13 Jan 2010 12:58:55 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Thunderbird/3.0 MIME-Version: 1.0 To: "Eric W. Biederman" CC: Suresh Siddha , Ingo Molnar , Thomas Gleixner , Yinghai Lu , "Maciej W. Rozycki" , LKML Subject: Re: [patch] x86, apic: use 0x20 for the IRQ_MOVE_CLEANUP_VECTOR instead of 0x1f References: <1263002989.2879.664.camel@sbs-t61.sc.intel.com> <4B47E7A9.6090904@zytor.com> <1263250418.2859.681.camel@sbs-t61.sc.intel.com> <4B4BACCA.2040805@zytor.com> <4B4BB0B7.3000106@zytor.com> <1263254812.2859.890.camel@sbs-t61.sc.intel.com> <4B4BBEBA.4060403@zytor.com> <4B4BC401.6010605@zytor.com> <4B4BDBBA.3090406@zytor.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/13/2010 12:36 PM, Eric W. Biederman wrote: > "H. Peter Anvin" writes: > >> On 01/11/2010 05:52 PM, Eric W. Biederman wrote: >>> >>> After having the documentation quoted at me. I am having a distinct >>> memory of one piece of documentation saying: >>> "interrupts within a priority level can be delivered in any order" >>> >>> So I am guessing there is not any ordering of interrupts in the same >>> priority level until they get to the local apic. >>> >> >> There is no ordering of interrupts before they hit the local APIC, since >> the local APIC is what would serialize them... > > The io apic serializes them, and sends them over either the 2-wire > bus or the front side bus. How much serialization and prioritization > happens at that point I am not certain, but some certainly happens > before you get to the local apic. > Specifically, from the 82093AA spec: "The interrupt number or the vector does not imply a particular priority for being sent. The IOAPIC continually polls the 24 interrupts in a rotating fashion, one at a time. The pending interrupt polled first is the one sent." In other words, the prioritization is all done at the LAPIC. -hpa