Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751114AbbGaENf (ORCPT ); Fri, 31 Jul 2015 00:13:35 -0400 Received: from ozlabs.org ([103.22.144.67]:57631 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750804AbbGaENe (ORCPT ); Fri, 31 Jul 2015 00:13:34 -0400 X-powerpc-patch-notification: thanks X-powerpc-patch-commit: 3ba3a73e9f204ce7904cae7d14be399b467c4fef In-Reply-To: <1437389151-4042-1-git-send-email-aik@ozlabs.ru> To: Alexey Kardashevskiy , linuxppc-dev@lists.ozlabs.org From: Michael Ellerman Cc: Alexey Kardashevskiy , Paul Mackerras , linux-kernel@vger.kernel.org, David Gibson Subject: Re: [kernel] powerpc/powernv/ioda2: Fix calculation for memory allocated for TCE table Message-Id: <20150731041332.25C1D140321@ozlabs.org> Date: Fri, 31 Jul 2015 14:13:32 +1000 (AEST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 998 Lines: 23 On Mon, 2015-20-07 at 10:45:51 UTC, 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 > Reviewed-by: David Gibson Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/3ba3a73e9f204ce7904c 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/