Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754538AbdCIJ7B (ORCPT ); Thu, 9 Mar 2017 04:59:01 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:35891 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754510AbdCIJ6o (ORCPT ); Thu, 9 Mar 2017 04:58:44 -0500 Subject: Re: [PATCH v5 04/19] net: e100: Replace PCI pool old API To: Peter Senna Tschudin , Jeff Kirsher References: <20170308161957.28941-1-romain.perier@collabora.com> <20170308161957.28941-5-romain.perier@collabora.com> <1489012825.3477.51.camel@intel.com> <20170309070129.GA13741@collabora.com> Cc: Dan Williams , Doug Ledford , Sean Hefty , Hal Rosenstock , "David S. Miller" , stas.yakovlev@gmail.com, "James E.J. Bottomley" , "Martin K. Petersen" , Felipe Balbi , Greg Kroah-Hartman , linux-rdma@vger.kernel.org, netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Senna Tschudin From: Romain Perier Message-ID: Date: Thu, 9 Mar 2017 10:58:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <20170309070129.GA13741@collabora.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2107 Lines: 48 Hello, Le 09/03/2017 ? 08:01, Peter Senna Tschudin a ?crit : > On Wed, Mar 08, 2017 at 02:40:25PM -0800, Jeff Kirsher wrote: >> On Wed, 2017-03-08 at 17:19 +0100, Romain Perier wrote: >>> The PCI pool API is deprecated. This commit replaces the PCI pool old >>> API by the appropriate function with the DMA pool API. >>> >>> Signed-off-by: Romain Perier >>> Acked-by: Peter Senna Tschudin >>> Tested-by: Peter Senna Tschudin >>> --- >>> drivers/net/ethernet/intel/e100.c | 12 ++++++------ >>> 1 file changed, 6 insertions(+), 6 deletions(-) >> Acked-by: Jeff Kirsher >> >> My only concern is: >> - what hardware did this get tested with? Since this affects all e100 >> parts, it would be hard to believe that all the affected hardware was >> used in testing. > This was tested by compilation only(See > https://lkml.org/lkml/2017/2/8/661). However this series removes macro > definitions of the old pci_pool interface and replace call sites by what > the macra was calling. > > Here are the macros that this series removes from include/pci.h: > > #define pci_pool dma_pool > #define pci_pool_create(name, pdev, size, align, allocation) \ > dma_pool_create(name, &pdev->dev, size, align, allocation) > #define pci_pool_destroy(pool) dma_pool_destroy(pool) > #define pci_pool_alloc(pool, flags, handle) dma_pool_alloc(pool, flags, handle) > #define pci_pool_zalloc(pool, flags, handle) \ > dma_pool_zalloc(pool, flags, handle) > #define pci_pool_free(pool, vaddr, addr) dma_pool_free(pool, vaddr, add > > So this should not affect run time. We cannot test a patch like this one on all affected platforms/drivers (at runtime). Simply because we have not the hw. As Peter said, we tested this by compilation only for now via make allyesconfig. That's up to the maintainer of the subsystem to test and ack this, imho. I agree with Peter, this should not affect runtime (as semantically it's compatible and have been validated statically and semantically by your compiler) Regards, Romain