From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-x22f.google.com (mail-wg0-x22f.google.com [IPv6:2a00:1450:400c:c00::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id C54BA1A04CE for ; Sat, 14 Jun 2014 22:05:30 +1000 (EST) Received: by mail-wg0-f47.google.com with SMTP id k14so3786351wgh.30 for ; Sat, 14 Jun 2014 05:05:23 -0700 (PDT) Sender: Catalin Marinas Subject: Re: kmemleak: Unable to handle kernel paging request Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Content-Type: text/plain; charset=windows-1252 From: Catalin Marinas In-Reply-To: <1402695853.20360.17.camel@pasglop> Date: Sat, 14 Jun 2014 13:05:18 +0100 Message-Id: References: <20140611173851.GA5556@MacBook-Pro.local> <20140612143916.GB8970@arm.com> <20140613085640.GA21018@arm.com> <1402695853.20360.17.camel@pasglop> To: Benjamin Herrenschmidt Cc: Denis Kirjanov , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , Paul Mackerras , Naoya Horiguchi , "linuxppc-dev@lists.ozlabs.org" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 13 Jun 2014, at 22:44, Benjamin Herrenschmidt = wrote: > On Fri, 2014-06-13 at 09:56 +0100, Catalin Marinas wrote: >=20 >> OK, so that's the DART table allocated via alloc_dart_table(). Is >> dart_tablebase removed from the kernel linear mapping after = allocation? >=20 > Yes. >=20 >> If that's the case, we need to tell kmemleak to ignore this block = (see >> patch below, untested). But I still can't explain how commit >> d4c54919ed863020 causes this issue. >>=20 >> (also cc'ing the powerpc list and maintainers) >=20 > We remove the DART from the linear mapping because it has to be mapped > non-cachable and having it in the linear mapping would cause cache > paradoxes. We also can't just change the caching attributes in the > linear mapping because we use 16M pages for it and 970 CPUs don't > support cache-inhibited 16M pages :-( And due to the MMU segmentation > model, we also can't mix & match page sizes in that area. >=20 > So we just unmap it, and ioremap it elsewhere. OK, thanks for the explanation. So the kmemleak annotation makes sense. Would you please take the I patch earlier (I guess with Denis=92 tested- by). I can send it separately if more convenient. Thanks, Catalin=