Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965632AbdIYSqZ (ORCPT ); Mon, 25 Sep 2017 14:46:25 -0400 Received: from mail-cys01nam02on0138.outbound.protection.outlook.com ([104.47.37.138]:4585 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965617AbdIYSqX (ORCPT ); Mon, 25 Sep 2017 14:46:23 -0400 From: Casey Leedom To: "Raj, Ashok" CC: Robin Murphy , Herbert Xu , "Harsh Jain" , "David Woodhouse" , "linux-kernel@vger.kernel.org" , "iommu@lists.linux-foundation.org" , "linux-crypto@vger.kernel.org" , Dan Williams , "dwmw2@infradead.org" Subject: Re: DMA error when sg->offset value is greater than PAGE_SIZE in Intel IOMMU Thread-Topic: DMA error when sg->offset value is greater than PAGE_SIZE in Intel IOMMU Thread-Index: AQHTLrKuCX/YGlya50aETYTEmnILyqK9cAoAgAAkZQCACFcnkv//5CkAgAAvAgs= Date: Mon, 25 Sep 2017 18:46:19 +0000 Message-ID: References: <20170920080151.GA3348@gondor.apana.org.au> <26992a1e-edb3-ed78-ce8e-31e0739d75f4@arm.com> ,<20170925155430.GB131920@otc-nc-03> In-Reply-To: <20170925155430.GB131920@otc-nc-03> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=leedom@chelsio.com; x-originating-ip: [12.32.117.8] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MWHPR12MB1951;6:f5ZRr5Zr9zJPTDk9W3g60YES1UpkBYfzpSVWUwP2ewwIFZZZFy61geBCukDs36gCPbo+i1iSv4kMMVrX++7ADZJlrrHY4PsaSzyoqMRWWIc7QzudvIY6nN8gwgNUR2PXEeEd5LVmmPMc+f3s3SxfaIndfKtO8dQanRgkD6vmFI5ABy2Y1N5KRriQEQcgiaWQ0D47rhtooaoQUodjeIlsAP3n6GXh74Gv/mumuRH0q5+gjhZB3ikEZvbH0VYuHRLY1VtIRMKiQmvAmA4u9s+uMiE6zOfiyriCgQD1YWpAdQbWW6V335+8Q8TrQ4xhxr7gvAVbqvwlQSKTB7goyQveZQ==;5:zcfmi6CXqRDSDSk/0ipyV52qbwwDH8ro29ijc9nHdYgOVhxFCdYjVtUdmYDUUlv0tZ1nLtRZd3ExbIQ0Bh+Ya12GV9bExWosOgQArvwO7uZtrdpzxLh5CWmBC6zA7xD+U0hP7FFaU3IgdcHAoGPeFg==;24:eUyGdUaUYbnJBZp4k4CCfg953IewqoUG5wPZE/Grs0vyVN+D3H75b91MTku8d6PL5NJTimKoWYtJvgSRQKt1IE1EIyd2RpHGY46LJuv4+Sk=;7:8/17DgQm+S3BxnG1NOjxP29oWMGTqzGE1hY5veQlvL0S/7FKKsn3mb/RkpVvb2b0EWYVQMuxKvcxievNAFm63i9Z8geA/ehqCqH3oBF9X2CrIt+SdGFUdGH3SFn7z02CywubLL/ubONtdgWoTM5zTdsqvswiOMYF6h1sb8sGZx7pnIQnAQbwGaoLKcYovuS2Ajc/Pem+V9ewFQ/1gdMEWyUHdDW8Cjgc93FpVLZq+Jg= x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-forefront-antispam-report: SFV:SKI;SCL:-1;SFV:NSPM;SFS:(10019020)(6009001)(39830400002)(376002)(346002)(199003)(189002)(377454003)(2906002)(8676002)(76176999)(33656002)(54356999)(25786009)(2900100001)(93886005)(316002)(6916009)(189998001)(3846002)(81166006)(54906003)(3280700002)(81156014)(74316002)(8936002)(3660700001)(7736002)(2950100002)(305945005)(68736007)(6506006)(5660300001)(6246003)(478600001)(77096006)(50986999)(6116002)(102836003)(6436002)(97736004)(105586002)(106356001)(4326008)(7696004)(229853002)(14454004)(86362001)(101416001)(9686003)(66066001)(99286003)(55016002)(53936002);DIR:OUT;SFP:1102;SCL:1;SRVR:MWHPR12MB1951;H:MWHPR12MB1600.namprd12.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; x-ms-office365-filtering-correlation-id: 6574bcce-ee83-482b-b1c8-08d50445b63f x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254152)(2017082002075)(2017052603199)(201703131423075)(201702281549075);SRVR:MWHPR12MB1951; x-ms-traffictypediagnostic: MWHPR12MB1951: x-exchange-antispam-report-test: UriScan:(228905959029699); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(100000703101)(100105400095)(6041248)(2016111802025)(20161123560025)(20161123555025)(20161123558100)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(6072148)(6043046)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:MWHPR12MB1951;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:MWHPR12MB1951; x-forefront-prvs: 04410E544A spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 X-OriginatorOrg: chelsio.com X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Sep 2017 18:46:19.8737 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 065db76d-a7ae-4c60-b78a-501e8fc17095 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1951 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id v8PIkdF3026975 Content-Length: 711 Lines: 19 | From: Raj, Ashok | Sent: Monday, September 25, 2017 8:54 AM | | Not sure how the page->offset would end up being greater than page-size? | | If you have additional traces, please send them by. | | Is this a new driver? wondering how we didn't run into this? According to Herbert Xu and one of our own engineers, it's actually legal for Scatter/Gather Lists to have this. This isn't my area of expertise though so I'm just passing that on. I've asked our team to produce a detailed trace of the exact Scatter/Gather Lists they're seeing and what ends up coming out of the DMA Mappings, etc. They're in India, so I expect that they'll have this for you by tomorrow morning. Casey