Received: by 10.213.65.68 with SMTP id h4csp2727275imn; Mon, 2 Apr 2018 12:52:19 -0700 (PDT) X-Google-Smtp-Source: AIpwx49V24aMUHHASwBBEcRsF/2N2GLcTFLYGWkZW9RG/ZuUVQEk9Hj5yH3iOqrmjFmRTJsH6O8H X-Received: by 10.99.47.4 with SMTP id v4mr7320815pgv.42.1522698739557; Mon, 02 Apr 2018 12:52:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522698739; cv=none; d=google.com; s=arc-20160816; b=JOpnDLgT1/6pKRNrqSESiPNG4eFhyOvRlVq5b6E5gT5cULaLbpahtjxgmhXSCoalws 6IbWDMmZWKCeeYyTVuf6oHgM9V/a98gHLt/c76wua8tz/hClcJq17qldA9A78XNm8OV/ Si7p5hxSzJn4Xzi9FdQjpvs+N7r//Iy9dTNMKoEvjlWvPzDg30dBlthcvRJ9G4I8B6HP jIxYe24vosaTdL1vd37cKcsAvSIWKT96XzLRPi04dVoP6mEA6VXxDi5R0KfiQqXS01K3 F2l1OcXIS5TNXg/RWgKwzmcIQ9VFb/QpNUZqH/pbjWyaJVq3fHEBDjzrplIqUWJ6RFjm 7lpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=FC7pSP8EI0qVd4DFpodBHvXBI+lKoeRdKaQvfZBuOh0=; b=JZDvCcRrxlCsgXDBemPLyvlE8uSBGIlQRbFT4r73LMjuHDKS8iTCnJRESWZSrxOVP4 YQNM+uXyuL1/VgNFFibV2Na8FZ5SOFy277kSoqaDQLTSYaoX7oRqjCc8E58Z37nqLm69 Z3ZeWeP2dN1i7fX3ViwwQbGe/Px+yAJf8Th3YdZZQcHSqvuMaH0XHxDDzRNWPMR/bGpe YSLsZRAr1Uwjsy6orKpaWIXy7KMYosrbGSPp9bcdjNqMuElPC/1izDc5jDLUuZrjgBEJ VR3al/P38CdE6r2nEKik7t6BQdODlAIr+FiFgLkZJo+W3uSMfo4Y7iuuWzvn2M6HwykZ zuaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@flawful.org header.s=mail header.b=dhw5R/+h; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j19-v6si969520pll.448.2018.04.02.12.52.05; Mon, 02 Apr 2018 12:52:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@flawful.org header.s=mail header.b=dhw5R/+h; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756970AbeDBTr7 (ORCPT + 99 others); Mon, 2 Apr 2018 15:47:59 -0400 Received: from pio-pvt-msa3.bahnhof.se ([79.136.2.42]:37778 "EHLO pio-pvt-msa3.bahnhof.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755256AbeDBTr6 (ORCPT ); Mon, 2 Apr 2018 15:47:58 -0400 X-Greylist: delayed 503 seconds by postgrey-1.27 at vger.kernel.org; Mon, 02 Apr 2018 15:47:57 EDT Received: from localhost (localhost [127.0.0.1]) by pio-pvt-msa3.bahnhof.se (Postfix) with ESMTP id DA96C3F5D2; Mon, 2 Apr 2018 21:39:27 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at bahnhof.se Authentication-Results: pio-pvt-msa3.bahnhof.se (amavisd-new); dkim=pass (1024-bit key) header.d=flawful.org Received: from pio-pvt-msa3.bahnhof.se ([127.0.0.1]) by localhost (pio-pvt-msa3.bahnhof.se [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id axAsITNAOxSl; Mon, 2 Apr 2018 21:39:22 +0200 (CEST) Received: from flawful.org (h-184-10.A323.priv.bahnhof.se [155.4.184.10]) (Authenticated sender: mb274189) by pio-pvt-msa3.bahnhof.se (Postfix) with ESMTPA id C216D3F4B5; Mon, 2 Apr 2018 21:39:21 +0200 (CEST) Received: by flawful.org (Postfix, from userid 1001) id 351DDC996; Mon, 2 Apr 2018 21:39:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flawful.org; s=mail; t=1522697961; bh=FC7pSP8EI0qVd4DFpodBHvXBI+lKoeRdKaQvfZBuOh0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dhw5R/+huovQIpBTBAm4Si6YZYXzjaodo8NkLVknGHlfEjpX+HTP6JjXMvvaaZ1ab ttetI4gjjAOYNIeW7itVxNMudFBIXooVid27PLxH8q+oLGNXk97/DSyAxtvtBZVzOd HbftlNBz874QDdGcRqtHrpioiRvOTJ9Md3fp2B3w= Date: Mon, 2 Apr 2018 21:39:21 +0200 From: Niklas Cassel To: Gustavo Pimentel Cc: Niklas Cassel , "kishon@ti.com" , "cyrille.pitchen@free-electrons.com" , Lorenzo Pieralisi , Arnd Bergmann , Greg Kroah-Hartman , Alan Douglas , Bjorn Helgaas , Jingoo Han , Joao Pinto , Niklas Cassel , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v5 00/12] PCI endpoint 64-bit BAR fixes Message-ID: <20180402193920.GC23587@flawful.org> References: <20180328115018.31921-1-niklas.cassel@axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 29, 2018 at 02:52:56PM +0100, Gustavo Pimentel wrote: > Hi Niklas, > > On 28/03/2018 12:50, Niklas Cassel wrote: > > PCI endpoint fixes to improve the way 64-bit BARs are handled. > > > > > > There are still future improvements that could be made: > > > > pci-epf-test.c always allocates space for > > 6 BARs, even when using 64-bit BARs (which > > really only requires us to allocate 3 BARs). > > > > pcitest.sh will print "NOT OKAY" for BAR1, > > BAR3, and BAR5 when using 64-bit BARs. > > This could probably be improved to say > > something like "N/A (64-bit BAR)". > > > > Niklas Cassel (12): > > PCI: endpoint: BAR width should not depend on sizeof dma_addr_t > > PCI: endpoint: Simplify epc->ops->set_bar()/pci_epc_set_bar() > > PCI: endpoint: Setting BAR_5 to 64-bits wide is invalid > > PCI: endpoint: Setting 64-bit/prefetch bit is invalid when IO is set > > PCI: endpoint: Setting a BAR size > 4 GB is invalid if 64-bit flag is > > not set > > PCI: designware-ep: Make dw_pcie_ep_set_bar() handle 64-bit BARs > > properly > > PCI: cadence: Set PCI_BASE_ADDRESS_MEM_TYPE_64 if a 64-bit BAR was > > set-up > > PCI: endpoint: Handle 64-bit BARs properly > > PCI: endpoint: Make epc->ops->clear_bar()/pci_epc_clear_bar() take > > struct *epf_bar > > PCI: endpoint: Make sure that BAR_5 does not have 64-bit flag set when > > clearing > > PCI: designware-ep: Make dw_pcie_ep_reset_bar() handle 64-bit BARs > > properly > > misc: pci_endpoint_test: Handle 64-bit BARs properly > > > > drivers/misc/pci_endpoint_test.c | 12 +++++---- > > drivers/pci/cadence/pcie-cadence-ep.c | 15 ++++++++--- > > drivers/pci/dwc/pcie-designware-ep.c | 36 +++++++++++++++++++++------ > > drivers/pci/endpoint/functions/pci-epf-test.c | 28 +++++++++++++-------- > > drivers/pci/endpoint/pci-epc-core.c | 32 +++++++++++++++--------- > > drivers/pci/endpoint/pci-epf-core.c | 4 +++ > > include/linux/pci-epc.h | 11 ++++---- > > include/linux/pci-epf.h | 2 ++ > > 8 files changed, 95 insertions(+), 45 deletions(-) > > > > For the whole series: > > Tested-by: Gustavo Pimentel Hello Gustavo, Thanks a lot for testing! Kind regards, Niklas