Received: by 10.223.176.5 with SMTP id f5csp2930833wra; Thu, 1 Feb 2018 08:12:06 -0800 (PST) X-Google-Smtp-Source: AH8x227PrdkEb45gP/IQ+oxu4iSSkIU4ZVad8JsAazCxpH+XxzryMIrI7z1xrE8FGNaP+T69VYFC X-Received: by 10.98.71.197 with SMTP id p66mr37385633pfi.3.1517501526245; Thu, 01 Feb 2018 08:12:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517501526; cv=none; d=google.com; s=arc-20160816; b=g+1EleVYqDfg1cskkN8s4LHvIsGWf2sdrFzR7Bn/SYV/Z73pznj0EcjMeL7er0RuJc SjrZet8KgOLTiXMR9MhEEtxLFSPbkwSxSmWqEMqlQIP3OXrvvSyCMDG9liHlxssiD/pf dDSGZ6x6WRZPBW2IxPrzgCGe09NlUcEP0n5rsAjpiSrmHiP2+0IPtY9oe++sGuCTu33n kt1xr1+vfqTceWV044UitjK0Ns9xnjMdOMUtV37K4RV67brrhigwMBH7UYe8keauzm1h yTQ1U08qLNtImwsSvDZVVHczm1wiWihhuipu/CsnYxGRl05qlnf0KpdSqPO+9fvh1V4w Z9Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=aTWKtOJmVMKhu115HyVP5Nw5wxb5OH7ZPr3VlhO/sSk=; b=uQLVlcSGNTA6txyWeW6Iuf8RRcpILqWmq08Weqy8KHnf923aD1zDDwtU8oQyaVCyK2 l3oCqdATj2M/jXDJsBbqAb0Pv/rfXwHodK+UNCsBnb3RqxywMM+25HWloNKGpYcYqFeo xgaBL0Ghl/a5a+spRDVU8Ek7WkrLvXLeA1fIMz3VFWEUFs2H4EPXmSgJDbr1rGWCEtVE Rd9GEtEGs1zYZSScvr4n2W3vqj+zBz3cA/rl27baz0RmoONGifGn0pC+9nyEkzp+8DyX aXbjlUn8uewdNA50er4GKIg2qoP50szZtW4BG7Dk2G1uRrFW3VWOTunGFEkB2MbSWeQF 6Yfw== ARC-Authentication-Results: i=1; mx.google.com; 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 l6si3632500pgq.164.2018.02.01.08.11.50; Thu, 01 Feb 2018 08:12:06 -0800 (PST) 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; 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 S1752189AbeBAQLZ (ORCPT + 99 others); Thu, 1 Feb 2018 11:11:25 -0500 Received: from bastet.se.axis.com ([195.60.68.11]:40536 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751378AbeBAQLX (ORCPT ); Thu, 1 Feb 2018 11:11:23 -0500 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id 5D239187EF; Thu, 1 Feb 2018 17:11:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at bastet.se.axis.com Received: from bastet.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bastet.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id uAbORKKgdWik; Thu, 1 Feb 2018 17:11:21 +0100 (CET) Received: from boulder02.se.axis.com (boulder02.se.axis.com [10.0.8.16]) by bastet.se.axis.com (Postfix) with ESMTPS id BE8EC187C8; Thu, 1 Feb 2018 17:11:21 +0100 (CET) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 89D621A073; Thu, 1 Feb 2018 17:11:21 +0100 (CET) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7E60E1A072; Thu, 1 Feb 2018 17:11:21 +0100 (CET) Received: from thoth.se.axis.com (unknown [10.0.2.173]) by boulder02.se.axis.com (Postfix) with ESMTP; Thu, 1 Feb 2018 17:11:21 +0100 (CET) Received: from lnxartpec1.se.axis.com (lnxartpec1.se.axis.com [10.88.4.10]) by thoth.se.axis.com (Postfix) with ESMTP id 71B4F23FC; Thu, 1 Feb 2018 17:11:21 +0100 (CET) Received: by lnxartpec1.se.axis.com (Postfix, from userid 20283) id 6BFEB401AF; Thu, 1 Feb 2018 17:11:21 +0100 (CET) From: Niklas Cassel To: kishon@ti.com, linux-pci@vger.kernel.org Cc: Niklas Cassel , linux-kernel@vger.kernel.org Subject: [PATCH 0/3] PCI endpoint 64-bit BAR fixes Date: Thu, 1 Feb 2018 17:11:16 +0100 Message-Id: <20180201161119.3852-1-niklas.cassel@axis.com> X-Mailer: git-send-email 2.14.2 X-TM-AS-GCONF: 00 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 (3): PCI: endpoint: Handle 64-bit BARs properly misc: pci_endpoint_test: Handle 64-bit BARs properly PCI: designware-ep: Return an error when requesting a too large BAR size drivers/misc/pci_endpoint_test.c | 2 ++ drivers/pci/dwc/pcie-designware-ep.c | 5 +++++ drivers/pci/endpoint/functions/pci-epf-test.c | 2 ++ 3 files changed, 9 insertions(+) -- 2.14.2