From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (bilbo.ozlabs.org [203.11.71.1]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41Qfsz3KKjzDqx6 for ; Wed, 11 Jul 2018 23:24:07 +1000 (AEST) In-Reply-To: <20180601080616.29279-1-aik@ozlabs.ru> To: Alexey Kardashevskiy , linuxppc-dev@lists.ozlabs.org From: Michael Ellerman Cc: Alexey Kardashevskiy Subject: Re: [kernel] powerpc/powernv/ioda2: Reduce upper limit for DMA window size Message-Id: <41Qfsz1krszB4MR@ozlabs.org> Date: Wed, 11 Jul 2018 23:24:06 +1000 (AEST) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 2018-06-01 at 08:06:16 UTC, Alexey Kardashevskiy wrote: > We use PHB in mode1 which uses bit 59 to select a correct DMA window. > However there is mode2 which uses bits 59:55 and allows up to 32 DMA > windows per a PE. > > Even though documentation does not clearly specify that, it seems that > the actual hardware does not support bits 59:55 even in mode1, in other > words we can create a window as big as 1<<58 but DMA simply won't work. > > This reduces the upper limit from 59 to 55 bits to let the userspace know > about the hardware limits. > > Fixes: 7aafac11e3 "powerpc/powernv/ioda2: Gracefully fail if too many TCE levels requested" > Signed-off-by: Alexey Kardashevskiy Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/d3d4ffaae439981e1e441ebb125aa3 cheers