Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756117AbYAFLfr (ORCPT ); Sun, 6 Jan 2008 06:35:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753093AbYAFLfi (ORCPT ); Sun, 6 Jan 2008 06:35:38 -0500 Received: from py-out-1112.google.com ([64.233.166.177]:5977 "EHLO py-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752660AbYAFLfh (ORCPT ); Sun, 6 Jan 2008 06:35:37 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kP5q61hVUL+u8UEX6BPvj6/gclDuGY0hYOk1UCiiZ44TAUELiyoGr6x7qFpwF8BCzSEwrTNK7+H+igExWl3r2Qkbok/NowiL9Mifs9PFgDGLdqSIkWG1+A54iPnFQTDzGPa4ekLWB3a+IuJyiLt0g4vNtGkUbNnmoVEuOscl1HU= Message-ID: <64bb37e0801060335k4afb3134u9c6fadb57d525dc5@mail.gmail.com> Date: Sun, 6 Jan 2008 12:35:35 +0100 From: "Torsten Kaiser" To: "FUJITA Tomonori" Subject: Re: 2.6.24-rc6-mm1 Cc: akpm@linux-foundation.org, jarkao2@gmail.com, herbert@gondor.apana.org.au, linux-kernel@vger.kernel.org, neilb@suse.de, bfields@fieldses.org, netdev@vger.kernel.org, tom@opengridcomputing.com, fujita.tomonori@lab.ntt.co.jp In-Reply-To: <20080106202616Z.tomof@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080105172524.fecb63bf.akpm@linux-foundation.org> <20080106123103K.tomof@acm.org> <64bb37e0801060241o2c6d8172r73b69291fce76ce1@mail.gmail.com> <20080106202616Z.tomof@acm.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1606 Lines: 44 On Jan 6, 2008 12:23 PM, FUJITA Tomonori wrote: > On Sun, 6 Jan 2008 11:41:10 +0100 > "Torsten Kaiser" wrote: > > I will applie your patch and see if this hunk from > > find_next_zero_area() makes a difference: > > > > end = index + nr; > > - if (end > size) > > + if (end >= size) > > return -1; > > - for (i = index + 1; i < end; i++) { > > + for (i = index; i < end; i++) { > > if (test_bit(i, map)) { > > The patch should not make a difference for X86_64. Hmm... arch/x86/kernel/pci-gart_64.c: alloc_iommu() calls iommu_area_alloc() lib/iommu-helper.c: iommu_area_alloc() calls find_next_zero_area() -> so the above code should be called even on X86_64 And the change in the for loop means that 'index' will now be tested, but with the old code it was not. And double using something does fit with the errors I'm seeing... > Can you try the patch to revert my IOMMU changes? > > http://www.mail-archive.com/linux-scsi@vger.kernel.org/msg12694.html Testing for this bug is a little bit slow, as I'm compiling ~100 packages trying to trigger it. If my current testrun with the patch from http://www.mail-archive.com/linux-scsi@vger.kernel.org/msg12702.html crashes, I will revert the hole IOMMU changes with above patch and try again. Torsten -- 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/