Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758073AbYGKLMV (ORCPT ); Fri, 11 Jul 2008 07:12:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753514AbYGKLMG (ORCPT ); Fri, 11 Jul 2008 07:12:06 -0400 Received: from out02.mta.xmission.com ([166.70.13.232]:59823 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753483AbYGKLME (ORCPT ); Fri, 11 Jul 2008 07:12:04 -0400 From: ebiederm@xmission.com (Eric W. Biederman) To: Matthew Wilcox Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, grundler@parisc-linux.org, mingo@elte.hu, tglx@linutronix.de, jgarzik@pobox.com, linux-ide@vger.kernel.org, suresh.b.siddha@intel.com, benh@kernel.crashing.org, jbarnes@virtuousgeek.org, rdunlap@xenotime.net, mtk.manpages@gmail.com References: <20080711005719.GO14894@parisc-linux.org> <20080711102326.GR14894@parisc-linux.org> Date: Fri, 11 Jul 2008 04:05:28 -0700 In-Reply-To: <20080711102326.GR14894@parisc-linux.org> (Matthew Wilcox's message of "Fri, 11 Jul 2008 04:23:26 -0600") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SA-Exim-Connect-IP: 24.130.11.59 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-DCC: XMission; sa04 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Matthew Wilcox X-Spam-Relay-Country: X-Spam-Report: * -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.0 T_TM2_M_HEADER_IN_MSG BODY: T_TM2_M_HEADER_IN_MSG * -0.7 BAYES_20 BODY: Bayesian spam probability is 5 to 20% * [score: 0.1620] * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa04 1397; Body=1 Fuz1=1 Fuz2=1] * 0.4 FVGT_m_MULTI_ODD Contains multiple odd letter combinations * 0.0 XM_SPF_Neutral SPF-Neutral Subject: Re: Multiple MSI, take 3 X-SA-Exim-Version: 4.2 (built Thu, 03 Mar 2005 10:44:12 +0100) X-SA-Exim-Scanned: Yes (on mgr1.xmission.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2315 Lines: 58 Matthew Wilcox writes: > On Fri, Jul 11, 2008 at 03:06:33AM -0700, Eric W. Biederman wrote: >> Matthew Wilcox writes: >> >> > I'd like to thank Michael Ellerman for his feedback. This is a much >> > better patchset than it used to be. >> >> There is a reason we don't have an API to support this. Linux can not >> reasonably support this, especially not on current X86. The designers >> of the of the AHCI were idiots and should have used MSI-X. > > Thank you for your constructive feedback, Eric. Unfortunately, we have > to deal with the world as it is, not how we would like it to be. Since > I have it running, I'd like to know what is unreasonable about the > implementation. At the very least it is setting all kinds of expectations that it doesn't meet. In addition the MSI-X spec predates the AHCI device by a long shot. In general my experience has been that the hardware designers who really care and have done their homework and can actually take advantage of multiple irqs have implemented MSI-X. >> mask/unmask is will likely break because the mask bit is optional >> and when it is not present we disable the msi capability. > > I believe this is fixable. I will attempt to do so. Assuming AHCI implements the mask bits. In the general case this is not fixable. I know of several devices that do not implement the optional mask bits. >> We can not set the affinity individually so we can not allow >> different queues to be processed on different cores. > > This is true, and yet, it is still useful. Just not as useful as one > would want. Also a case of mismatched expectations. The linux irq API allows irqs to be bound to different cpus individually. Multi msi does not meet that contract. >> So unless the performance of the AHCI is better by a huge amount I don't >> see the point, and even then I am extremely sceptical. > > I don't have performance numbers yet, but surely you can see that > avoiding a register read in the interrupt path is a large win? No. It is not obvious to me. Eric -- 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/