Received: by 10.223.176.5 with SMTP id f5csp1848443wra; Thu, 8 Feb 2018 04:35:40 -0800 (PST) X-Google-Smtp-Source: AH8x224MVBEAyXh9wcRQhzD0BkubZVMYb+XNLpXHfdynAxHQv7a+wMUSnZG+tz4yM9HmHhScAkSM X-Received: by 2002:a17:902:7441:: with SMTP id e1-v6mr537627plt.204.1518093340617; Thu, 08 Feb 2018 04:35:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518093340; cv=none; d=google.com; s=arc-20160816; b=w6Vd/GOC569vjyCkIvnWCw1E9H7Cb/dYH7pVWRrjt3IMw2FLYgH1xE3fJyjrahSDbL Lyxa+r0+RL3EuqWp+Y++4cH6FEksuNVwSRu+xx3DDDaaLkbWNx9YMcsntRnUcwPTeMUK cK70Fwu1TBU0dPWKkT9o1OZJUi5pDv9cUQHzd+r2BMtL1s3fA9gaTJrPh03sTAZZaB4/ J7IJ7xoFdXYGf2WxwXNgEQQLEhPi+4t3RZjFFDQglJ80pj2Y60isOve3w4ZrKeJDGKk0 HyIC4SSLR2uQeMeQUWdwrI+of5ea/9tauRDsGDlKp7z9gKez430ulC6vuV8M3/kMdQXK HGxA== 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=GMLabBVRbY9K1A6bqDm+/qw5mkruxf5ggNI/gbmy9vK4ObFSliX5/nKFK0SqVsVSVH +9mSk7iIIwArD9sMJw0ZJ9ojRcuqMUXHnXKBMkSfZ9dOfx/4CMSSl9S4LDOzJd4k3Xvi DTV4YroTXQlpriTT3AnxKV/4YhITJVe+a+DLffWMkLdaqX605c+7C2yoPJx1GQUWewyP Wa0KslOf9jWlS8/iLhVPPNBzfoChn6IuMjOF0yUIMFsgDTC9XFNmxxQvP62wwJIZ2Gqs tMINdGD97rC9dy9vMaOcBthHe9TW2Udsi+WGpSoiUvj+dOcrGMjplxJQ+fQ9bSuWbGSs EM3w== 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 m1-v6si1104569pls.703.2018.02.08.04.35.26; Thu, 08 Feb 2018 04:35:40 -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 S1752159AbeBHMdw (ORCPT + 99 others); Thu, 8 Feb 2018 07:33:52 -0500 Received: from bastet.se.axis.com ([195.60.68.11]:49047 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751834AbeBHMdv (ORCPT ); Thu, 8 Feb 2018 07:33:51 -0500 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id 3FDA418897; Thu, 8 Feb 2018 13:33:50 +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 ERIA4eHFnALP; Thu, 8 Feb 2018 13:33:49 +0100 (CET) Received: from boulder03.se.axis.com (boulder03.se.axis.com [10.0.8.17]) by bastet.se.axis.com (Postfix) with ESMTPS id EFB2A1889D; Thu, 8 Feb 2018 13:33:48 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DECB41E077; Thu, 8 Feb 2018 13:33:48 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D33801E076; Thu, 8 Feb 2018 13:33:48 +0100 (CET) Received: from seth.se.axis.com (unknown [10.0.2.172]) by boulder03.se.axis.com (Postfix) with ESMTP; Thu, 8 Feb 2018 13:33:48 +0100 (CET) Received: from lnxartpec1.se.axis.com (lnxartpec1.se.axis.com [10.88.4.10]) by seth.se.axis.com (Postfix) with ESMTP id C75612D60; Thu, 8 Feb 2018 13:33:48 +0100 (CET) Received: by lnxartpec1.se.axis.com (Postfix, from userid 20283) id C3A91401B8; Thu, 8 Feb 2018 13:33:48 +0100 (CET) From: Niklas Cassel To: kishon@ti.com, linux-pci@vger.kernel.org Cc: Niklas Cassel , linux-kernel@vger.kernel.org Subject: [PATCH v2 0/3] PCI endpoint 64-bit BAR fixes Date: Thu, 8 Feb 2018 13:33:43 +0100 Message-Id: <20180208123346.20784-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