From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752949AbbJBRlu (ORCPT ); Fri, 2 Oct 2015 13:41:50 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:59154 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750846AbbJBRls (ORCPT ); Fri, 2 Oct 2015 13:41:48 -0400 Date: Fri, 2 Oct 2015 10:41:46 -0700 From: Christoph Hellwig To: Nishanth Aravamudan Cc: Christoph Hellwig , Matthew Wilcox , Alexey Kardashevskiy , Benjamin Herrenschmidt , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, Keith Busch , Paul Mackerras , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, David Gibson Subject: Re: [PATCH 2/2] drivers/nvme: default to the IOMMU page size on Power Message-ID: <20151002174146.GA21503@infradead.org> References: <20151002171606.GA41011@linux.vnet.ibm.com> <20151002171800.GB41011@linux.vnet.ibm.com> <20151002172313.GC41011@linux.vnet.ibm.com> <20151002172544.GA16139@infradead.org> <20151002173947.GA40695@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151002173947.GA40695@linux.vnet.ibm.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 02, 2015 at 10:39:47AM -0700, Nishanth Aravamudan wrote: > Ok, I'm happy to do that instead -- what I struggled with is that I > don't have enough knowledge of the various architectures to provide the > right default implementation. It should be sufficient for the default to > return PAGE_SHIFT, and on Power just override that to return the IOMMU > table's page size? Since the only user will be the NVMe driver > currently, that should be fine? I think that's fine. > Sorry for the less-than-ideal patch! Np, it's a reasonable first attempt that we just need to refine.