Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753493AbXFVBBo (ORCPT ); Thu, 21 Jun 2007 21:01:44 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751199AbXFVBBh (ORCPT ); Thu, 21 Jun 2007 21:01:37 -0400 Received: from netops-testserver-3-out.sgi.com ([192.48.171.28]:60305 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751031AbXFVBBg (ORCPT ); Thu, 21 Jun 2007 21:01:36 -0400 Date: Thu, 21 Jun 2007 18:01:32 -0700 (PDT) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: Hugh Dickins cc: Nicolas Ferre , ARM Linux Mailing List , Linux Kernel list , Marc Pignat , Andrew Victor , Pierre Ossman , Andrew Morton , Linus Torvalds Subject: Re: Oops in a driver while using SLUB as a SLAB allocator In-Reply-To: Message-ID: References: <467A4532.40301@rfo.atmel.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1209 Lines: 27 On Thu, 21 Jun 2007, Hugh Dickins wrote: > > The oops seems to occur after a page unmapping using dma_unmap_page() followed > > by a flush_dcache_page() (in at91mci_post_dma_read()). Was the page allocated using slab calls? > Seems a little odd that it's gone throughout 2.6.22-rc unnoticed > until now - nobody else trying SLUB on ARM or PA-RISC yet perhaps. > As I understand it, you're not doing anything wrong (disclaimer: > I'm no expert on dma_mapping things), but SLUB's reuse of struct > page fields has collided with what flush_dcache_page is expecting. > > Here's a patch: I'm not convinced it's necessarily the best one > (most uses of page_mapping will never see a slab page, it's a pity > to be cluttering up that inline even further); but in case nobody > else can provide a better... Well one may be better off allocating pages using the page allocator instead of the slab allocator. I removed these things from i386 but I did not check ARM. - 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/