Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp903059pxu; Fri, 23 Oct 2020 16:51:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw73mDKEAlSWtGrcZvAPb0/QHwXvr9w/FPP2UwDtXNy3w5h0BtMoz0cLIUlfOofcak2Mp0o X-Received: by 2002:a05:6402:143a:: with SMTP id c26mr4869634edx.150.1603497095627; Fri, 23 Oct 2020 16:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603497095; cv=none; d=google.com; s=arc-20160816; b=gW2gJYHNjnGafyphKu1d33luQ/96nlOc6Qr7h+B9tBzHpe+76cDZAnE/fIXbDIgB/6 yZvy46nDXeKqKq9d13uvxHgrx7JxSNKclvcTEDpNPunPC71SEgK6+gz0oyRqwSvIup3U eDbzi/Wpr1KWRUVIPdAb9hOpDc5L7hcoJQSGJ9GwhZarBBIJ0Mpvr986xD4dWQvTL0d/ RKX9SoxbqS+l26FXnam0Q2LXQWcXCZAUZLsyzaux2oUAeM9nQP7IPVWoaqgf4CjuaW6y V30p5PQ9fN9TtX6UBvtBxiGzq4FdToOPZOIu6gK9I0kzsE+fBvq8qWHkwqVNLHfcuCN2 DBpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:mime-version:message-id:date :subject:cc:to:from; bh=b9IZnjk26r3cJfsBfroWtTDFOsnjHPE6ktQY975AN24=; b=qma5x9BEV+74iDmo3BxT0URHnKJR6sjF1JhB9lyLUCeYzDPYY8LV8PQR+G/xt21iK0 JohHhST/k2Oh3kjUIwsgyYEvGRCcdVACJOkBGGon1fPcOzgCVDJse+byVgeBavpr0pzT KaEiEMCK3WMy55iDfhEetM5C17WlsTXELGIyceZ7Ne+mL5OTsG8Qkc3YBjf49jNfedqJ 0cJwf6EMWqiZsvaE65sS7BKfzWN9Fgn6vRtVhE0HDUoERLtPdO3SZFcvGL1k5DAcTPnm woo78Ud0/0ywDfAPyMEj9mgnHZHfmmtrTutWEUAkUP+JjkkLO+C3nmcyQgFDYzcnNlpL 3Uaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=FN9+Ov5c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d6si1917895ejt.670.2020.10.23.16.51.14; Fri, 23 Oct 2020 16:51:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=FN9+Ov5c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755214AbgJWT5H (ORCPT + 99 others); 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-kernel@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