Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753403AbbGWJqB (ORCPT ); Thu, 23 Jul 2015 05:46:01 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:36253 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752663AbbGWJpv (ORCPT ); Thu, 23 Jul 2015 05:45:51 -0400 Subject: Re: [PATCH kernel] powerpc/powernv/ioda2: Fix calculation for memory allocated for TCE table To: Michael Ellerman References: <1437389151-4042-1-git-send-email-aik@ozlabs.ru> <1437459841.30722.9.camel@ellerman.id.au> Cc: linuxppc-dev@lists.ozlabs.org, David Gibson , Paul Mackerras , linux-kernel@vger.kernel.org From: Alexey Kardashevskiy Message-ID: <55B0B7C8.8030804@ozlabs.ru> Date: Thu, 23 Jul 2015 19:45:44 +1000 User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <1437459841.30722.9.camel@ellerman.id.au> Content-Type: text/plain; charset=koi8-r; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1134 Lines: 31 On 07/21/2015 04:24 PM, Michael Ellerman wrote: > 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? No, this is for DDW patchset I recently posted and which did not get to any release yet. -- Alexey -- 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/