From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33F08C388F9 for ; Fri, 23 Oct 2020 19:57:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BCA4D22201 for ; Fri, 23 Oct 2020 19:57:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nvidia.com header.i=@nvidia.com header.b="FN9+Ov5c" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755210AbgJWT5H (ORCPT ); Fri, 23 Oct 2020 15:57:07 -0400 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:17004 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755209AbgJWT5H (ORCPT ); Fri, 23 Oct 2020 15:57:07 -0400 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Fri, 23 Oct 2020 12:56:45 -0700 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 23 Oct 2020 19:57:01 +0000 Received: from vidyas-desktop.nvidia.com (10.124.1.5) by mail.nvidia.com (172.20.187.10) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Fri, 23 Oct 2020 19:56:57 +0000 From: Vidya Sagar To: , , , , , , , CC: , , , , , Subject: [PATCH 0/3] Add support to handle prefetchable memory Date: Sat, 24 Oct 2020 01:26:52 +0530 Message-ID: <20201023195655.11242-1-vidyas@nvidia.com> X-Mailer: git-send-email 2.17.1 X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1603483005; bh=b9IZnjk26r3cJfsBfroWtTDFOsnjHPE6ktQY975AN24=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:X-NVConfidentiality: MIME-Version:Content-Type; b=FN9+Ov5cr2Okws3QhCvV1JJ2LdTMTNTYOLUsXcHkL9/rW2+ML4RYuAAP5Zpxaw0A1 3OnU2ghoyz5f/LSiNXqS4RDWSZ5FClt6w/aGdsQSNSjZ4l+XZeEwR93k0MiDpbk6Hr rYQVtCwpCywpOouR/fBTKtpK4zZBEd0HN00qHmM+hZ40bDAXBPv+QDZWdMM04gyeiT MQRkx/cuXzi84gYf0F4+AUZE6xXK+vXETLcZ9219QEtd9nLkvksNPea/TxuQpj7qEe 1RjSgpc5e649rVJgmmTO54tW6Qgp6wEtCEmRDn0217K/RWcYLJz2ULRVcyhmecXD++ wN4aWt0dsN9yQ== Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org This patch series adds support for configuring the DesignWare IP's ATU region for prefetchable memory translations. It first starts by flagging a warning if the size of non-prefetchable aperture goes beyond 32-bit as PCIe spec doesn't allow it. And then adds required support for programming the ATU to handle higher (i.e. >4GB) sizes and then finally adds support for differentiating between prefetchable and non-prefetchable regions and configuring one of the ATU regions for prefetchable memory translations purpose. Vidya Sagar (3): PCI: of: Warn if non-prefetchable memory aperture size is > 32-bit PCI: dwc: Add support to program ATU for >4GB memory aperture sizes PCI: dwc: Add support to handle prefetchable memory mapping .../pci/controller/dwc/pcie-designware-host.c | 39 ++++++++++++++++--- drivers/pci/controller/dwc/pcie-designware.c | 12 +++--- drivers/pci/controller/dwc/pcie-designware.h | 4 +- drivers/pci/of.c | 5 +++ 4 files changed, 48 insertions(+), 12 deletions(-) -- 2.17.1