Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3230128imu; Mon, 28 Jan 2019 00:49:40 -0800 (PST) X-Google-Smtp-Source: ALg8bN4eweyNet6PFaPImq92OA77ozWdzBu+STaCk4j/Ant6KcqQeSGYdbo2PNvGkQKFF5Az59+w X-Received: by 2002:a62:13c3:: with SMTP id 64mr21105165pft.93.1548665380496; Mon, 28 Jan 2019 00:49:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548665380; cv=none; d=google.com; s=arc-20160816; b=xO+YITwDDUV4D1RYYij9qqdn0vzezMIfJf9JSJzkW8zV5lcrjVDMiqd4oykDkAzbp0 SwYIyBv4ZB/gG2FfJxPJXeAVnUfhAYvv/TAj5hvr+WK3JKGihKzQ7p0Aq1GpwCP3EaYh kFDXfYnem5rrMKsbI4orBDWJdoSQKx37/i/EXw7GzDlKK2emey3Z02qpVyB39su1nA9l qPDNTSs3s240QHpLJ4B8BSuNTeO8NnTnGcDagLJPzcs4eq1C6KUdPm8SJx+G5kENIxbf 1mQcjlv1w15jr3OPEl/aswgvrZAWBPoXO9GYXrN0owxIuuWEAs22k5TjUbC3+QNtrCdP x4bQ== 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:reply-to:to:from:dkim-signature; bh=Gq0zvXEJIlFKGTZaqpfHDnDphUIkFh7Ye6QXX4/eq5U=; b=RwUJ0EfhmTki4azE2nrGu8qOpgwH8/6K6rQrTm6psx+PNP/kAbrvcgRG9VfGlxQcTn yirolH2OgR3E+eAkUAzL51Io8AyO9PSUNL2lPmFG1+vnMfVOt3lYyK0D2WIw+C2Fkw/k 60/Uw+lWhhJAi1Xh9Uxf5uClKIGa4mxo03crFtkCxrG55lWJ3dsMd9ps1wN3jVl+NgWN LyAChYjCMblMBLfpO7yz6YxJYAvrbwcfSC3QWsa2yqc06j0h7kiH/0C0ihSRLEvJBfR4 fpNRKeju4nGkra26axwblFlrE3on/BniDPP2GetDlvqiXlo5DUsu7yCGc8iObwda2cXf G4lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cern.onmicrosoft.com header.s=selector1-cern-ch header.b="D2kbpFK/"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i13si32770952pgj.199.2019.01.28.00.49.24; Mon, 28 Jan 2019 00:49:40 -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=@cern.onmicrosoft.com header.s=selector1-cern-ch header.b="D2kbpFK/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726744AbfA1Ir4 (ORCPT + 99 others); Mon, 28 Jan 2019 03:47:56 -0500 Received: from mail-eopbgr60062.outbound.protection.outlook.com ([40.107.6.62]:11808 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726415AbfA1Ir4 (ORCPT ); Mon, 28 Jan 2019 03:47:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cern.onmicrosoft.com; s=selector1-cern-ch; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Gq0zvXEJIlFKGTZaqpfHDnDphUIkFh7Ye6QXX4/eq5U=; b=D2kbpFK/aDNZd8DYLs6eftWvCpYWoNKGhgDtEHS5wZGT+Ehw7KWSuuBGMyRA49xtvqhtj7vo/flx47I9I1rOrudcwAcCpUcc1M9vUEirpKMSq1wRzuLbQohDctu9eO0FHxCPsqe68aqOd6JG6I5Z6CmbaDCS/V9QOWNjmWZpBe4= Received: from AM5PR0601CA0033.eurprd06.prod.outlook.com (2603:10a6:203:68::19) by VI1PR0601MB2271.eurprd06.prod.outlook.com (2603:10a6:801:b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.21; Mon, 28 Jan 2019 08:47:51 +0000 Received: from AM5EUR02FT031.eop-EUR02.prod.protection.outlook.com (2a01:111:f400:7e1e::207) by AM5PR0601CA0033.outlook.office365.com (2603:10a6:203:68::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1558.16 via Frontend Transport; Mon, 28 Jan 2019 08:47:51 +0000 Authentication-Results: spf=pass (sender IP is 188.184.36.46) smtp.mailfrom=cern.ch; kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=bestguesspass action=none header.from=cern.ch; Received-SPF: Pass (protection.outlook.com: domain of cern.ch designates 188.184.36.46 as permitted sender) receiver=protection.outlook.com; client-ip=188.184.36.46; helo=cernmxgwlb4.cern.ch; Received: from cernmxgwlb4.cern.ch (188.184.36.46) by AM5EUR02FT031.mail.protection.outlook.com (10.152.8.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1580.10 via Frontend Transport; Mon, 28 Jan 2019 08:47:51 +0000 Received: from cernfe03.cern.ch (188.184.36.39) by cernmxgwlb4.cern.ch (188.184.36.46) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 28 Jan 2019 09:47:49 +0100 Received: from pcbe13614.localnet (2001:1458:202:121::100:40) by smtp.cern.ch (2001:1458:201:66::100:14) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 28 Jan 2019 09:47:50 +0100 From: Federico Vaga To: Vinod Koul Reply-To: CC: , , Subject: DMA Engine Documentation: TX Descriptor and Submission Date: Mon, 28 Jan 2019 09:47:50 +0100 Message-ID: <1655406.8MLMLfCWyH@pcbe13614> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Originating-IP: [2001:1458:202:121::100:40] X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:188.184.36.46;IPV:NLI;CTRY:CH;EFV:NLI;SFV:NSPM;SFS:(10001)(10009020)(459900002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0601MB2271;H:cernmxgwlb4.cern.ch;FPR:;SPF:None;LANG:en; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 574a7355-db8f-441a-7bc6-08d684fd49a9 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4608076)(4709027)(5565046)(2017052603328)(7153060)(7193020);SRVR:VI1PR0601MB2271; X-MS-TrafficTypeDiagnostic: VI1PR0601MB2271: X-Microsoft-Exchange-Diagnostics: 1;VI1PR0601MB2271;20:4P5pLgsvW9f5EnHt8L0C7y3s2VUcqAKkez18U3n7Aieym5KrFz01VaumYGM0qNcZjG25jtq9K3rrCRtuVCiW20VjUD5LsR/MnJJqRZOcbKnhHfpfJD/JR7u12+3h9brrTjbBP20yPmfXahzP105zxGvnezl0JDm1X/x1/n/rVgcVZJn/xKHkxuUzpkKbggNEmHwkaYURfqN5Puv4NTODICGwSK0we0k1bgnUv2/CIA2O2GN7jV26F2DX/5iBpgyTA4p4fOp5F9rpwdAdyZNuOKOUCoWt3UFYDAlkaiqlhq/98iUTQu32GBhIni+Ne4ovO5Alz0l+e7Kr4xyL//nwg28U0+IAqQzLsCQRzYZYfjuA06huw6QddbVnPEr/asyn2c9XOAznDOSoSWL+MicJfKVlDfyOk9UpbqOPq9s68LiwcILTSEyeZv268CFakqhjyjr9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YGjTjnle1kdvka9/vUGABpujFfLKhBm4uO9J0Sdk0qw==;5:liR/A+SLN77wrUUCyZc+Lt0d2DUGbTeE/popl4wbk0p+pZjunfr2Z8j550DXu7j5imS/DABvxf9RlT1pS9Vz1Qr3KZnND3pDxJRLab9Kx4dxzOg2C11Dpf0g/lugglufXrCNvcJJAexnn44wtVoH41u9H+t2rkRj64bh1KUWTo9NiO23OvIfC3UwnS4Qh3mpzGZYmjgF109weSmEqHfkNg== X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: xK/Th0aT76rfP6uRnVjMXxbHOAIt6L+pdJ2h11rmu+7V+cOOsHCAc1e6paT9ScChr3lUvtWE3CXydALLjxQCDmwqMqJZ6ehsSVPF+P4BcyalosYvQkDuTSVzmVCN5q5ISlxc6ocMYxDCsLdTpQwUDGuDqnQls86s+stFASwap7OJHguwuyrdF1PL3G3UJB6X/yhY0gRYnFuqxN1KqEgdoKnbgrSGaxOFrqmrWBNDnVuEgW9KO3e+CcX41RDGbFqdG68o5ikQoVL+fqmQXncorAjWl7eJJV+RpVJuI4D7FHq31Dsy2jSphoe0+LK2/wgS1s57v66vriqa6mrXjhAl0ZSZpjg/E9hgO5F+cXHesXXnqfNMpZ1YcQo68WojXKqT9DwkT58xml19bAmyJ1e59uSOMXx1y3e1WJ2L4Xpga1mflUkVX+ifIKa/bXjv5stDr9oHhCq+paX23BGA5iscnEU7BolGXLryMFSgEfmKFHGgylFXMMruF/rYac9OFPaB9Aqiakv5a6ETKehBDHRIUd9dihiy4OtdeNubo3iAuz0= X-Microsoft-Exchange-Diagnostics: 1;VI1PR0601MB2271;7:osWSFSS+ahnAVYhyEjqObQKbmpAyomGcLrYDRCY8bqBXvkbdkT2BeAXYavDbzyBZZx3pcqolco+k4lV8jZVAcLXWq44Wvk3Rq7evCUcsi4f0Nak16XQdOmJz4xfcvl/ITvL2E0lHdpnui/KW68ZBYA== X-OriginatorOrg: cern.ch X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jan 2019 08:47:51.4518 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 574a7355-db8f-441a-7bc6-08d684fd49a9 X-MS-Exchange-CrossTenant-Id: c80d3499-4a40-4a8c-986e-abce017d6b19 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=c80d3499-4a40-4a8c-986e-abce017d6b19;Ip=[188.184.36.46];Helo=[cernmxgwlb4.cern.ch] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0601MB2271 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I have a new question concerning documentation. https://www.kernel.org/doc/html/latest/driver-api/dmaengine/client.html From this document it is not really clear, at least to me, if clients can consider valid the `struct dma_async_tx_descriptor` after submission to the DMA engine. Clients get a TX descriptor from a DMA engine using things like `dmaengine_prep_*`. These calls - may - allocate new descriptors and return them to the caller; this may include other structures which are not visible to clients. So, if my understanding is correct, this means that it's the DMA engine that, on TX completion, releases any TX descriptor allocated by `dmaengine_prep_*`. This implies that the pointer that the client is using must be considered invalid right after `dmaengine_submit()`. If what I understood by reading the documentation and the code is correct, then I think that this should be mentioned in the Documentation. If I'm wrong, please tell me where :) Thanks