Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755807AbZJNViM (ORCPT ); Wed, 14 Oct 2009 17:38:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755072AbZJNViM (ORCPT ); Wed, 14 Oct 2009 17:38:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61198 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755183AbZJNViL (ORCPT ); Wed, 14 Oct 2009 17:38:11 -0400 Date: Wed, 14 Oct 2009 17:37:42 -0400 From: Dave Jones To: Jesse Barnes Cc: Linux Kernel Subject: Re: [X86] PCI: Use generic cacheline sizing instead of per-vendor tests. Message-ID: <20091014213742.GA17311@redhat.com> Mail-Followup-To: Dave Jones , Jesse Barnes , Linux Kernel References: <20091014203139.GA2336@redhat.com> <20091014143054.76874f30@jbarnes-g45> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091014143054.76874f30@jbarnes-g45> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1402 Lines: 36 On Wed, Oct 14, 2009 at 02:30:54PM -0700, Jesse Barnes wrote: > On Wed, 14 Oct 2009 16:31:39 -0400 > Dave Jones wrote: > > > Instead of the PCI code needing to have code to determine the > > cacheline size of each processor, use the data the cpu identification > > code should have already determined during early boot. > > > > (The vendor checks are also incomplete, and don't take into account > > modern CPUs) > > > > I've been carrying a variant of this code in Fedora for a while, > > that prints debug information. There are a number of cases where we > > are currently setting the PCI cacheline size to 32 bytes, when the CPU > > cacheline size is 64 bytes. With this patch, we set them both the > > same. > > > > Signed-off-by: Dave Jones > > > > Does this improve performance enough to warrant putting it into the > current cycle? Or is queuing it for 2.6.33 sufficient? I haven't done any performance testing with/without. My intentions were purely from a correctness standpoint. It's not critical, and we've lived with this bug for a long time, so waiting is fine. Dave -- 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/