Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753104AbdLEXjL (ORCPT ); Tue, 5 Dec 2017 18:39:11 -0500 Received: from ale.deltatee.com ([207.54.116.67]:54346 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752677AbdLEXjK (ORCPT ); Tue, 5 Dec 2017 18:39:10 -0500 To: Serge Semin , jdmason@kudzu.us, dave.jiang@intel.com, Allen.Hubbe@emc.com, Shyam-sundar.S-k@amd.com, Xiangliang.Yu@amd.com, gary.hook@amd.com Cc: linux-ntb@googlegroups.com, linux-kernel@vger.kernel.org References: <20171203191736.3399-1-fancer.lancer@gmail.com> <20171205223918.28727-1-fancer.lancer@gmail.com> <20171205223918.28727-3-fancer.lancer@gmail.com> From: Logan Gunthorpe Message-ID: <2f48380b-6d38-4087-cb8c-54855ffb7bf1@deltatee.com> Date: Tue, 5 Dec 2017 16:39:09 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171205223918.28727-3-fancer.lancer@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: linux-kernel@vger.kernel.org, linux-ntb@googlegroups.com, gary.hook@amd.com, Xiangliang.Yu@amd.com, Shyam-sundar.S-k@amd.com, Allen.Hubbe@emc.com, dave.jiang@intel.com, jdmason@kudzu.us, fancer.lancer@gmail.com X-SA-Exim-Mail-From: logang@deltatee.com Subject: Re: [PATCH v3 02/15] NTB: Set dma mask and dma coherent mask to NTB devices X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 595 Lines: 15 On 05/12/17 03:39 PM, Serge Semin wrote: > The dma_mask and dma_coherent_mask fields of the NTB struct device > weren't initialized in hardware drivers. In fact it should be done > instead of PCIe interface usage, since NTB clients are supposed to > use NTB API and left unaware of real hardware implementation. > In addition to that ntb_device_register() method shouldn't clear > the passed ntb_dev structure, since it dma_mask is initialized > by hardware drivers. I think you still need to address my comments in the previous version. As best as I can see this patch does nothing. Logan