Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030319AbbKDN5z (ORCPT ); Wed, 4 Nov 2015 08:57:55 -0500 Received: from relmlor4.renesas.com ([210.160.252.174]:24264 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754388AbbKDN5x convert rfc822-to-8bit (ORCPT ); Wed, 4 Nov 2015 08:57:53 -0500 X-IronPort-AV: E=Sophos;i="5.20,243,1444662000"; d="scan'208";a="197836626" From: Phil Edworthy To: "linux-pci@vger.kernel.org" CC: "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Bjorn Helgaas , Arnd Bergmann , Lorenzo Pieralisi , "Liviu.Dudau@arm.com" , Magnus Subject: PCIe host controller behind IOMMU on ARM Thread-Topic: PCIe host controller behind IOMMU on ARM Thread-Index: AdEXBXpsqoonZ+nqRTu1yvYRg99bGA== Date: Wed, 4 Nov 2015 13:57:48 +0000 Message-ID: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=phil.edworthy@renesas.com; x-originating-ip: [193.141.220.21] x-microsoft-exchange-diagnostics: 1;PS1PR06MB1179;5:CgGmjPqhU+eYryzCdr33SNgf9t139+fM33I2fKCZWPEv5Dn/4qSCWBFwt9+Ol8mSd2RDNqRyto2hVjOAyHWZPCST2FPRLV/1RmimPGgqZvl4w5JOR45CI8NUYq+gsNaGoI8OdywyUrMZavCjEfUuug==;24:llg5TYejKnXu+efSvFYzbq0pR+4CQrHoqccS9qF3+YNv1kJ7qP0kmNRZICb2W96wUtDo7O9qOTEwCHFfRXzw7ffzN27OHeKrSUgVMO6faQQ=;20:JbD35aOLQbvmFWcfxD+OQtUh5uNQkCLKpLGBXqmU5OUoBZ4ZmSuZLQclX4aRV7CypWO6rzWTyGvYR2F0fCtMTX+wo3T+zC1P96lOEndH7Sg5DG6g9o84F/8xnOVgIK7/VtY2mqX+X+GBMh8cIKhriRKfHNyF23ds59DaOhyTrec= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:PS1PR06MB1179; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(520078)(8121501046)(5005006)(10201501046)(3002001);SRVR:PS1PR06MB1179;BCL:0;PCL:0;RULEID:;SRVR:PS1PR06MB1179; x-forefront-prvs: 0750463DC9 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(199003)(189002)(110136002)(5001960100002)(5008740100001)(5004730100002)(5003600100002)(5007970100001)(86362001)(2900100001)(10400500002)(102836002)(5890100001)(5002640100001)(77096005)(74316001)(76576001)(87936001)(2501003)(2351001)(189998001)(106356001)(66066001)(97736004)(101416001)(122556002)(33656002)(229853001)(105586002)(50986999)(54356999)(92566002)(81156007)(40100003);DIR:OUT;SFP:1102;SCL:1;SRVR:PS1PR06MB1179;H:PS1PR06MB1180.apcprd06.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Nov 2015 13:57:48.6452 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS1PR06MB1179 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 787 Lines: 22 Hi, I am trying to hook up a PCIe host controller that sits behind an IOMMU, but having some problems. I'm using the pcie-rcar PCIe host controller and it works fine without the IOMMU, and I can attach the IOMMU to the controller such that any calls to dma_alloc_coherent made by the controller driver uses the iommu_ops version of dma_ops. However, I can't see how to make the endpoints to utilise the dma_ops that the controller uses. Shouldn't the endpoints inherit the dma_ops from the controller? Any pointers for this? Thanks Phil -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/