Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751866AbdI0RaR (ORCPT ); Wed, 27 Sep 2017 13:30:17 -0400 Received: from mail-sn1nam01on0101.outbound.protection.outlook.com ([104.47.32.101]:49888 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750852AbdI0RaO (ORCPT ); Wed, 27 Sep 2017 13:30:14 -0400 From: Casey Leedom To: Robin Murphy CC: Dan Williams , "Harsh Jain" , "Raj, Ashok" , Herbert Xu , "linux-kernel@vger.kernel.org" , "iommu@lists.linux-foundation.org" , "linux-crypto@vger.kernel.org" , "dwmw2@infradead.org" , Michael Werner , "nd@arm.com" 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//5CkAgAAvAguAAJgAAIAAj7QAgAAh/4CAABrJ6IAAA2oAgAGW6yaAAA4uAIAAAoRp Date: Wed, 27 Sep 2017 17:30:08 +0000 Message-ID: References: <20170920080151.GA3348@gondor.apana.org.au> <26992a1e-edb3-ed78-ce8e-31e0739d75f4@arm.com> <20170925155430.GB131920@otc-nc-03> <6d2af675-7b97-6eaf-4daa-d7bf80a05923@chelsio.com> <437a9bd8-d4d6-22ca-1a64-1a3e73f1101a@arm.com> ,<20170927181802.3dcd7efb@m750.lan> In-Reply-To: <20170927181802.3dcd7efb@m750.lan> 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:8uXtJ9B2Qm7xEMyQ3sDyczgkL/FqD2v5CV+COBILdAIlQdknnyE7zwxm6DTlbpt/TkHdRcxvZd+2K/LizrTRh6ClRsD/c6hAzn/HcGqiwXpZXQsoCsqnDg0oXMoZg/vwU5btzA9EGwCJa+dE2mxfPQhl9JwZjkqINEWUYKUR/wnl1Eqjhfb9Fd/rO3piaoDOtlNv5KH7kqBqFQno16lqFpq29llWWmbHRnW+lP7ZmfCN0uALDfVBHgI+1go0QDD3mMn6sXefVpExpL7dA2UkapHM7UzaiUW90/NG2JRGLdEmnmo3b/aiG5cT2fHoO1wD/wQMOl+F5AcRJZ6F+EOVFA==;5:zvzD/h+vgphWDKNV27Rw+5q7gYJmgKMF/Epw51rjwE77ZWqWdMNZzXzMgEYMSJW+bdT5iYbhgT2lflg2zigxVU8uAye8ivfscmQMYTglLppW87GQ6/QfyV4Qw6n4WgkftzYlzCDzYJGL/gmY7STf5g==;24:wnAsCCkkw5OiQYX2zYB/5uAiIg5KLtBYYbBqsyt1NbnxK9mMV7gUwpyn3Wo7UHyIbsblzihvVHBM676xTvGDivg97DKl35jxowYHswRK668=;7:eHX9f1NRPxRFv8yHleVZfBGJrWQ1gO2SgLIx1IIb0KT8md9HGE1QphXINlmMd2gV/sSIwzDS+rqllKSZap6zmrpvp8dHGq8oJSIMrWamXTRFi9CFC9VPv5EK0ktJ5WhbMLTILcH+/qmKgtmZk0h5iwUB1PXTAd9v3orcbtk6zBlS1M9pdeFlvvXuQkWjzPzPxpbKPO2zaSfMIEBxmR+jR6OwWXeihDaa6VJSoe5gdX4= x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-forefront-antispam-report: SFV:SKI;SCL:-1;SFV:NSPM;SFS:(10019020)(6009001)(376002)(346002)(199003)(189002)(377454003)(8936002)(25786009)(106356001)(105586002)(2900100001)(66066001)(4326008)(2906002)(7696004)(74316002)(93886005)(3280700002)(305945005)(2950100002)(3660700001)(7736002)(6916009)(50986999)(5660300001)(316002)(53936002)(478600001)(77096006)(33656002)(101416001)(99286003)(9686003)(55016002)(229853002)(76176999)(54356999)(81166006)(14454004)(54906003)(97736004)(81156014)(86362001)(8676002)(189998001)(6246003)(3846002)(6506006)(6116002)(102836003)(68736007)(6436002);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: 459b5ebe-c1d5-40b5-4095-08d505cd666a 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:(180628864354917); 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)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(3002001)(6041248)(20161123558100)(2016111802025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123555025)(20161123560025)(20161123562025)(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: 04433051BF 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: 27 Sep 2017 17:30:08.5123 (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 v8RHUL0Y004445 Content-Length: 479 Lines: 12 | From: Robin Murphy | Sent: Wednesday, September 27, 2017 10:18 AM | | From my experience, in general terms each scatterlist segment | represents some contiguous quantity of pages, of which sg->page is the | first, while sg->length and sg->offset describe the specific bounds of | that segment's data. ... Okay, thanks Robin. That'll help me in my reviews of your and Ashok's suggested changes to the Intel I/O MMU __domain_mapping() routine. Casey