Message ID | BLAPR22MB2243B9158BCC7665034808B4BCA92@BLAPR22MB2243.namprd22.prod.outlook.com (mailing list archive) |
---|---|
State | New |
Headers | show
Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2115.outbound.protection.outlook.com [40.107.93.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BCA5B3D55D for <dmaengine@vger.kernel.org>; Tue, 23 Jul 2024 15:28:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.93.115 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721748508; cv=fail; b=uu+Qj0iS/brEUeMKgGZLPo0qkF4stKeqnJ3UKBZCB1+5tCR/iA4RTqGS97roWlX0DjQiQe0MLB/WCBNKSvc2d0TtdrDgN86rTb6fOUJSk04LTbRxOZG6DhdIwcdUIDVkoAAMWDUfyvAf7YPmz0yRSqdS/E9KoWmb06Btx1dYIp0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721748508; c=relaxed/simple; bh=Rd6Te19gAscdi4jjp85CfocITyyFoKRsfpJK5iuaWNU=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=gkLTp4W6bRhOvBeF2mdFT5jxMPT7ws4lyWAbTL8EXOh8sxHmhW7LTQlDUevSde7KbMmTqL0iaZERV7kdvBptUzZCbEdjC3Zn3fC8FvzSH26wQL03BzfBE73jPE+DFf2/uy5cHknDqQcJLXmyj9HmcSxcBoE2hHBZluGJfhuZBjg= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=brightsign.biz; spf=pass smtp.mailfrom=brightsign.biz; dkim=pass (1024-bit key) header.d=brightsigninfo.onmicrosoft.com header.i=@brightsigninfo.onmicrosoft.com header.b=qLKRLarF; arc=fail smtp.client-ip=40.107.93.115 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=brightsign.biz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=brightsign.biz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=brightsigninfo.onmicrosoft.com header.i=@brightsigninfo.onmicrosoft.com header.b="qLKRLarF" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lL+XfhtTtKRNw43hAQc35WAQubGyx2c0Ws75iBJLzRIBRBCnhDqFCZ3N9ke4+sincmVdgsftqKSlDJT2NOZKS4krlj1rDcuz9A7rOEAAUk+itdmzrO0UQ/N/E8lV9P1gxTCGK/E3sQyJZOc18svBCF1xk9J1Cz0OvUcDM2gjwCfo06fhsJIKidKHgdXCyXH7CdPmbu0McLNSBmvxic7+nil7VeWvYpqdPA2KAv8HJSzwOYU7FzWtw5i3DTsIj9rx/eFKIFfnxhz0SteHJ9MgfBjKUe8PgftPRD3JhbbOgMKA6/bLP6CQTsQq94nvGPnT+c5WvgCFisURFuwcY46d+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=k+rx23HDtxctdCdTu5G4RT1mCKlm2O7m8GKJBVwHv0A=; b=gqYK9N7GPH64J5A/MQaedTabPLkPCkxkEPQP+TGBlLD62QCBfBALjFzA8Z2CjfAOn5bV0llZ4av2mLCOLcL02aIflL+ddHXSWR7VTKI4ljFfBAMQ4AK2btLM3gshMd7cGdLDezkcGRd5fBdAy47B5e83tUYcBCNHMjtaaRatOjtGEEa1IcATvXmq6P/ddSerRoUAkFMn/1J9Tcmwd3LO8SJGVlHY4qafMr9yBHVYBnhtKRg/VwuwBfI4/R0puaLvCvCisG/DU8mKT9thSOsLYr9HNiVDdskzpmPnwaoo8G/N7lc14FrawcU2BjFaRA7qr86EsipbITqNXWvIl4YdHg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=brightsign.biz; dmarc=pass action=none header.from=brightsign.biz; dkim=pass header.d=brightsign.biz; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brightsigninfo.onmicrosoft.com; s=selector2-brightsigninfo-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=k+rx23HDtxctdCdTu5G4RT1mCKlm2O7m8GKJBVwHv0A=; b=qLKRLarFHxpzlL2C8R9FcqusOsolLZLwWb8na3GDdb1eD+OxTBLPS8cMWNVNiXrahXnrIPvN/71rmmZxhzrnXXmhdhwUA2E1RESQh99kzuK+qvT2/shC6CEPrsJKpBOyLNbD7jGCY+YOks2U1TX78c5ar24b51cFdW38dckGOss= Received: from BLAPR22MB2243.namprd22.prod.outlook.com (2603:10b6:208:270::11) by DM4PR22MB3743.namprd22.prod.outlook.com (2603:10b6:8:42::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.15; Tue, 23 Jul 2024 15:28:21 +0000 Received: from BLAPR22MB2243.namprd22.prod.outlook.com ([fe80::50d9:71fc:2474:7103]) by BLAPR22MB2243.namprd22.prod.outlook.com ([fe80::50d9:71fc:2474:7103%3]) with mapi id 15.20.7784.016; Tue, 23 Jul 2024 15:28:21 +0000 From: Chris Pringle <cpringle@brightsign.biz> To: "dmaengine@vger.kernel.org" <dmaengine@vger.kernel.org> Subject: pl330: peripheral read corruption on cyclic buffers Thread-Topic: pl330: peripheral read corruption on cyclic buffers Thread-Index: Adrc6XrFtkcxaEB8SkW6GCuZBJ04Rg== Date: Tue, 23 Jul 2024 15:28:21 +0000 Message-ID: <BLAPR22MB2243B9158BCC7665034808B4BCA92@BLAPR22MB2243.namprd22.prod.outlook.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=brightsign.biz; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BLAPR22MB2243:EE_|DM4PR22MB3743:EE_ x-ms-office365-filtering-correlation-id: 9fec283c-19b5-47f8-7edd-08dcab2c1619 x-ms-exchange-atpmessageproperties: SA x-ipw-groupmember: False x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|366016|376014|1800799024|38070700018; x-microsoft-antispam-message-info: UJ0/JL1C2uUghf1HD/Z/cENauy5zamgIqzlC2tkBIPDS7MG2qTD4KxtBVW7esr6j9V84i45h4WOpyeIF9/Y3bCzSiaOaVvivpEIouHWZr0n+IdYS2xvS8Y4NHkI79ye6G1nHxO2cOCsjy71ePIXuMvh9FkzoDiy0RCp0Xu1HTHXW7dRMy53GVCfqPCg8jLSJ4l/IELOZsaSUFQDSMZw0ptsIckDoDbz3Pdt9XTwh/19KTjM3bSphnQ2kPAHRuc2xNxWQY+LY8ovxyZ1EUtp4114/LZZF6Td77J/QuNPEqbgZVzaufpVJ27E/Rs3mxsjbfPzoyxCUP7ZUkoUL0UuXg6NRFSqEdemHAWidQuP/3LHu3JpaEW7WT+02yYHDQvKb6p7cVf3vmB5Mz9oNMR6CjO9CL3uF5OqB6V8mqDmLFfaJ6nnVwVJPSIZJhqCkr71gpPq9RYdQEKBThk2JEDtVhUM6clYVvvcYeWlYyU9G6lerkEXC8dAnHv9wjoyAxfpHnGGKEKzb9DCHd5N+qKeGUBJIwJfSb1rybPHxSTrGTgAcgB0i+lczWpEpbcM1GX1mGE0vyCnhwW7qUzbG/t72srG8herD4ZnCMvkuyW7CQJBz8yUcWieGZ6l8CHXs+fKPIQP2ik+6R6AIIE5GPh/eLuUdqWebdUMtgI5tVP5eBZmzGVMQ5pa8sNx17IA8fEM0ATjiYsQi6hLK731lRro5Z1s0oX/qD0NA+S3mduEAdiuerzcLsEzAmSj8ON7KM++K2jrOamFbRu56YzgETXjhR9ATlpdl3libyAhzRXyvDmpclZTLIQFA+3UJ6eD+PP8sSov/wz1i4gV9LfeY6Mm5mRRRQ+tNTrP0ke92wuzzC2tiJrDxrCMTPNLutLYMng1H1sCfPB5QLnsAA1DRJlZAC4Ekl7JNl1y1MnkFivf+ZB1vwn/j7Euf6QBQV7Vxjf2v6lG5OJqAtY11o73BKDQNva6V4VhcbQJBnWV4mqDBiIBBup8++HO1ozWVOvSpCoVCqiVjBVCxBNgJ6PT28UszkyDv7aaQpFb0qyP0xhT3D7uLJyBdzjl5qu6fivDkiBisNQ1x/zxhKobdIvZq79Dj3STzF1AQCUex/bu5HRJuVvQ85J7JEu4+sXCD3LEzDalUoRos7d7HSHOslywxHfhmVt9kZGI0qh5LxlbE0r2tZ1m+atQQnoSm1d4ms5WZCJg95Yc8Yvf8gZfpEOmU+K8BsMSG1StfirBRVkP+KvxKtJzbQDzMYYMy4ImsGwpFosS3opiM2iFUcNdDWNT+JsLXC14Z1IhmEu/NZkqehBQeVSAzdAIq2t68R5fzzzGaRoTTbMmlWQ7nQOLa7Rh7F0Hwi2OnnqsvJXR+OL/QqvlC0E+1RGnZxyEUzSBjyh7+iSJ0fV4mmFeBzica/LXmV8enQw== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BLAPR22MB2243.namprd22.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(1800799024)(38070700018);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: s30u0nkgcNLaDnmpRHNeJAghf5VCCy1Bq4n+fyO9OaOth9MSFkytUj1xUcT8IOGJ0EiikofH9tGbVbaxHNnVRpBNk/q1Nz/6ZXwr2Soan7uCfoHbgezopPg3MKv3LKS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1DuXom/C4pS143ZtoO+l7TRkVneqFaaKBjUJPkIE+8Y+3MQ4UeEooQpTZ2qcpMDqXNaI/vL/82FzketuJnyIUtmmsSXM8RPm6FQyBM1twH2dmFwUPqkLOuA+dQ+hx8plSaGMitmg/EV1uPB7qzbWw8rIduWw38iq4rGEuuU54vhm7ziI5Ai9BqsnlDDkaM/6iCRfDusPL9U6bHS9QePlvhtrf49ABOKs8esJJFhNUGtTD5oOcgBXhKwyhaKlI1YC+skXI9tAtTz6ewHEsAS25oZTSL2np3Jk6byhC3DVn81z+73IVp2ZRHDeaFeWFhdC15iEsjZzE+NGvqoYTSupFw/108y2TEdeOGz1m1I/1wV+PKUGaeEJ3si51diEjgu+Z8TRdLCQ+BGup7xAxUZR24xY0CerXhe0cfjwiQ0OLLfqXOz/D8BQVcYDfsLuKPo Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: dmaengine@vger.kernel.org List-Id: <dmaengine.vger.kernel.org> List-Subscribe: <mailto:dmaengine+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:dmaengine+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-OriginatorOrg: brightsign.biz X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BLAPR22MB2243.namprd22.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9fec283c-19b5-47f8-7edd-08dcab2c1619 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jul 2024 15:28:21.7219 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8fbcdf64-1ab8-47ce-bdc7-43e23b04fb3c X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: fpaZhx3evmqn6/ke63cJMq/h8qOJOV+dy5GQnoN/3XmohCFKY/t/OiA3qSkomjEjamwP20Ow3XDaVhvzl6vY9Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR22MB3743 |
Series |
pl330: peripheral read corruption on cyclic buffers
|
expand
|
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index dfbf514188f3..427f1c2aa4b3 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -1193,8 +1193,10 @@ static inline int _ldst_peripheral(struct pl330_dmac *pl330, off += _emit_WFP(dry_run, &buf[off], cond, pxs->desc->peri); off += _emit_load(dry_run, &buf[off], cond, pxs->desc->rqtype, pxs->desc->peri); + off += _emit_RMB(dry_run, &buf[off]); off += _emit_store(dry_run, &buf[off], cond, pxs->desc->rqtype, pxs->desc->peri); + off += _emit_WMB(dry_run, &buf[off]); } return off;