From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Ellerman Date: Sun, 23 Dec 2018 13:28:14 +0000 Subject: Re: [kernel] powerpc/powernv/ioda: Allocate indirect TCE levels of cached userspace addresses on dem Message-Id: <43N38c3ZT6z9sPD@ozlabs.org> List-Id: In-Reply-To: <20180928064539.39050-1-aik@ozlabs.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Alexey Kardashevskiy , linuxppc-dev@lists.ozlabs.org Cc: Alexey Kardashevskiy , kvm-ppc@vger.kernel.org, David Gibson On Fri, 2018-09-28 at 06:45:39 UTC, Alexey Kardashevskiy wrote: > The powernv platform maintains 2 TCE tables for VFIO - a hardware TCE > table and a table with userspace addresses; the latter is used for > marking pages dirty when corresponging TCEs are unmapped from > the hardware table. > > a68bd1267b72 ("powerpc/powernv/ioda: Allocate indirect TCE levels > on demand") enabled on-demand allocation of the hardware table, > however it missed the other table so it has still been fully allocated > at the boot time. This fixes the issue by allocating a single level, > just like we do for the hardware table. > > Fixes: a68bd1267b72 ("powerpc/powernv/ioda: Allocate indirect TCE levels on demand") > Signed-off-by: Alexey Kardashevskiy > Reviewed-by: David Gibson Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/bdbf649efe21173cae63b4b71db841 cheers