Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1991996ybv; Sat, 8 Feb 2020 10:37:59 -0800 (PST) X-Google-Smtp-Source: APXvYqw8wCuJ1Jl4I2d0l7IXr55PuvkSmN/j1k5cS68JO7U1O2lW5ytoeAF7S22UyWxBkTbxt5ya X-Received: by 2002:aca:cd46:: with SMTP id d67mr6074750oig.156.1581187079007; Sat, 08 Feb 2020 10:37:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581187078; cv=none; d=google.com; s=arc-20160816; b=X8Qmf1E2C/Um9dqjQOlWqT18Olb17N3xZ/xMeA3bzvySOKUiU0woX2jalBAFMv0Iir OQGPYHswA8UVVE+cPZaybE7kHYFFVktClKe9VoV6c5lGnGdm3LK/5WFoN+d0OgHGJRN2 opNuQPEKD3q5scvrhKvJYqRCjRsCu3Zxz2BlzXxcLTAED6JzQrEjZG5A7GfyjLEqCJr6 p/elgx2J5eECcyJQ0D6V1Gut2Ad6zmUOcVJB5SDCiq/4lEpwUpjXjyW9eUCJKb9qyx3j ZTMgrN0R3UC1KORCJGA5oU6+yB+iaRacxntbxnRT2ZbZGOirjM4M9nyL6nAuGMbRG69U smuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=YeKsOFV6oCWMp1G6zbkmxmW95xEaWFUUaBROFZ39rKw=; b=Z60m2K0TAcNyTX1Qonh3X7V4xnTzRkxyR6lmvx5EQbQoHaOcOOqaeBIjIZpF6z9fYs u8mulhVjVIOjdpu/kTHrR+nceJa9Ei8dHpiE7tMXmPWR0GjevzrZGk0u806tTumwGUfw sbEzxDy+lmcB6AjmijVnyyI4HPjZSe303mrpVs6AdeNnokgfXmAMQcKxKCCL1mD8rxY9 aqnYkStL6SoocVEfH+meLFLsjIA4MWdsUAc6+K15rBbrgcUgbWUMn5IuYKCl5AhbLY6l Ldnql+4gnJeaPmGAtGvQS2+Uh2tnzftd2ZOfknnf2BGOwa27R/0TQDWWD4IiKl957ZB5 JR0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nJQzGevq; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a11si1985538otq.223.2020.02.08.10.37.47; Sat, 08 Feb 2020 10:37:58 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nJQzGevq; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728350AbgBHSgw (ORCPT + 99 others); Sat, 8 Feb 2020 13:36:52 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:34140 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727964AbgBHSgs (ORCPT ); Sat, 8 Feb 2020 13:36:48 -0500 Received: by mail-wm1-f66.google.com with SMTP id s144so5398303wme.1; Sat, 08 Feb 2020 10:36:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YeKsOFV6oCWMp1G6zbkmxmW95xEaWFUUaBROFZ39rKw=; b=nJQzGevq167s/0vY+EdXZ9/SSkS8gcRMyKvXG3w6SuN8E60vurwBhj8T+F6vdM9mbu TH9m5dXVD6MK8e1QEpWl9JAhyNnX22Y55A+Shn3g89lXiWqGha16WjedNlsbjljbktc/ An0NBmhLABkt5ncKHoJ6ZR8fWnCM8oN3eFP+wl0CKodGC5Uv3oa4mAUhHljDmtCp0bIy TaDh3GkGiqMaUFNFuA6IBe20fFOlAD4A0LrvfkzqdrXziPUuZUAjF+d3lscPmLrx0MX7 DDun/v0zgErN5pTib1/xWLZxAH1mD/bFs6jbLQWH4w7JeAyUXmbsn/aeyJQmXAxDro4x taRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=YeKsOFV6oCWMp1G6zbkmxmW95xEaWFUUaBROFZ39rKw=; b=ru7bSM/cTYmQr+jwM/lC/kD/gwOxPAu2qOFsdiMEoOii5HDEiXhUxksV1yfEKcixOX vBCjCNnWfm24y8jak6CdFDKrObWhfCdFnCT0idLgK42wyodKfkiYSL8m/l8r0yE4jO5W DJq9IXH4WplhNZm38U9wpEL0/LTK1ZDk0JLuLYIrW3GlwIdxqJiKNU1aZKYfg7zVYFIS GC19YWhYzuk8ExALRsrRNDixeAcmbCxLwkRYrnTDikd5N4Rrt1DQs0b7jtS3ANn5ySJC k6By2TBPsZiwxF2DFTkkHdhjlE1b4hmXmVNF47pzqWTPS5+fnG61BwYRXekFeWwhM4Uo nD0g== X-Gm-Message-State: APjAAAWwSpk3ClsNzSvZSWXPS0sNoxwcGtmOcbPJiSE66gF7uV02OXC6 g5WWL1pLyCNpYSiEkpx8tnM= X-Received: by 2002:a7b:c19a:: with SMTP id y26mr5644407wmi.152.1581187005690; Sat, 08 Feb 2020 10:36:45 -0800 (PST) Received: from prasmi.home ([2a00:23c8:2510:d000:a553:90a1:93f5:e306]) by smtp.gmail.com with ESMTPSA id b67sm8404385wmc.38.2020.02.08.10.36.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Feb 2020 10:36:44 -0800 (PST) From: Lad Prabhakar X-Google-Original-From: Lad Prabhakar To: Bjorn Helgaas , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , Kishon Vijay Abraham I , Lorenzo Pieralisi , Arnd Bergmann , Greg Kroah-Hartman , Jingoo Han , Gustavo Pimentel , Marek Vasut , Yoshihiro Shimoda , Shawn Lin , Heiko Stuebner Cc: Andrew Murray , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Lad Prabhakar Subject: [PATCH v4 0/6] Add support for PCIe controller to work in endpoint mode on R-Car SoCs Date: Sat, 8 Feb 2020 18:36:35 +0000 Message-Id: <20200208183641.6674-1-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series adds support for PCIe controller on rcar to work in endpoint mode, this also extends the epf framework to handle base region for mapping PCI address locally.. Note: The cadence/rockchip/designware endpoint drivers are build tested only. Changes for v4: 1] Fixed dtb_check error reported by Rob 2] Fixed review comments reported by Kishon a] Dropped pci_epc_find_best_fit_window() b] Fixed initializing mem ptr in __pci_epc_mem_init() c] Dropped map_size from pci_epc_mem_window structure Changes for v3: 1] Fixed review comments from Bjorn and Kishon. 3] Converted to DT schema Changes for v2: 1] Fixed review comments from Biju for dt-bindings to include an example for a tested platform. 2] Fixed review comments from Kishon to extend the features of outbound regions in epf framework. 3] Added support to parse outbound-ranges in OF. lspci output on host: ===================== 01:00.0 Unassigned class [ff00]: Renesas Technology Corp. Device 002d Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR-