Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752492AbbGUGYH (ORCPT ); Tue, 21 Jul 2015 02:24:07 -0400 Received: from ozlabs.org ([103.22.144.67]:33951 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752440AbbGUGYD (ORCPT ); Tue, 21 Jul 2015 02:24:03 -0400 Message-ID: <1437459841.30722.9.camel@ellerman.id.au> Subject: Re: [PATCH kernel] powerpc/powernv/ioda2: Fix calculation for memory allocated for TCE table From: Michael Ellerman To: Alexey Kardashevskiy Cc: linuxppc-dev@lists.ozlabs.org, David Gibson , Paul Mackerras , linux-kernel@vger.kernel.org Date: Tue, 21 Jul 2015 16:24:01 +1000 In-Reply-To: <1437389151-4042-1-git-send-email-aik@ozlabs.ru> References: <1437389151-4042-1-git-send-email-aik@ozlabs.ru> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 975 Lines: 26 On Mon, 2015-07-20 at 20:45 +1000, Alexey Kardashevskiy wrote: > The existing code stores the amount of memory allocated for a TCE table. > At the moment it uses @offset which is a virtual offset in the TCE table > which is only correct for a one level tables and it does not include > memory allocated for intermediate levels. When multilevel TCE table is > requested, WARN_ON in tce_iommu_create_table() prints a warning. > > This adds an additional counter to pnv_pci_ioda2_table_do_alloc_pages() > to count actually allocated memory. > > Signed-off-by: Alexey Kardashevskiy > --- > > I was sure I sent it already but could not find it anywhere so reposting. > Sorry if it is a duplicate. Stable? cheers -- 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/