From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755328AbcH2QRM (ORCPT ); Mon, 29 Aug 2016 12:17:12 -0400 Received: from mga01.intel.com ([192.55.52.88]:49523 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754362AbcH2QRL (ORCPT ); Mon, 29 Aug 2016 12:17:11 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,597,1464678000"; d="scan'208";a="2364524" Date: Mon, 29 Aug 2016 12:27:35 -0400 From: Keith Busch To: Andy Lutomirski Cc: Jens Axboe , linux-nvme@lists.infradead.org, Christoph Hellwig , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] nvme: Pass pointers, not dma addresses, to nvme_get/set_features() Message-ID: <20160829162735.GD19986@localhost.localdomain> References: <2756c572e066ed91a41e35568a4d9346e47d6b42.1472462539.git.luto@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2756c572e066ed91a41e35568a4d9346e47d6b42.1472462539.git.luto@kernel.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 29, 2016 at 02:25:45AM -0700, Andy Lutomirski wrote: > + /* > + * A controller "page" may be bigger than a Linux page, but we can > + * be conservative here. > + */ It is the actually other way around: the Linux page may be larger than the controller's. We currently use the smallest possible controller page (4k) regardless of the host's size due to limitations discovering the CPU's DMA alignment. PPC was the first to encounter this problem with NVMe. Otherwise, looks good.