From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7CEAC606A31A for ; Mon, 30 Nov 2026 20:09:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=0tzST/Db; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=nfU4Tv+T DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=904SrNuL9SnnRIb7psKX7wmcknEhycIMrItmVpLU+FA=; b=0tzST/Dbvq72QH 6RdgQfAl6lYDfRCGKCpqdvTuYH08jHHhjBoJzLSIY5kM0uUamc/GdjjP4lgrxHFUV7+DA96bmD43c Lxs0DRy7dMifl0wM4P31VpDUruYvQg9nXyMhTyqLuk8/pnqu+SXYOTeQJfoA02npblmol0lkW6E9v PVXRSPCKYZKvjysgKGQMYEoE8aXSIcr7d4rbkk8V2lSyNV4Uz+0JyGqbl3oJdq1TC4JuOz7f1BEAp 8OMRf6+kVqo9gI0aDCZLZrGkBC13EeOvO4793FLfwmFcDJ7/XR9xTBWymjLOCHIVfygFOTZV4VZQn 4kqzSw+xbBflQTOMTPgQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xY7gQ-00000005mE3-0NGI; Mon, 30 Nov 2026 20:09:06 +0000 Received: from mgamail.intel.com ([198.175.65.12]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xY7gM-00000005mCv-26B2 for linux-arm-kernel@lists.infradead.org; Mon, 30 Nov 2026 20:09:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796069342; x=1827605342; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=904SrNuL9SnnRIb7psKX7wmcknEhycIMrItmVpLU+FA=; b=nfU4Tv+THa2/ry6vXCd3ZG/ACndXGM2DcvmPs+vij1FwSXPw2aXGNIT5 LwNtfyNYuwWScMmAKdwnVb9k9Th9DgmgPV/X6V+ac2jNzTSS1wyXSdXLq gL5IuPOcPL0xARV24VVQns9tT0chYYKXTS8CoqcktoIS34AW0Pwh4ihdt +jnAspTvQx1sNBhzNVAgItBf9Bcd33XF0Vn/0jUhB9Z9y+Y8QNo4E0JEi q4QgDKquvBkFRknalbH6sNCjXRdyBwZ1bqvEXIlqJldz1QFi1VNJ9wVrA FRlkfABcpkf7ei+Jj3XbH5A4c1uiXmzIa8ouPsqp5MPnIPJFnB1RWnY/3 A==; X-CSE-ConnectionGUID: duo9GR5YQG2ZL+oL/cMrtQ== X-CSE-MsgGUID: ZeHgUhK7SN2IevNohqdCFA== X-IronPort-AV: E=McAfee;i="6800,10657,11982"; a="4824816" X-IronPort-AV: E=Sophos;i="6.27,243,1787036400"; d="scan'208";a="4824816" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2026 12:09:00 -0800 X-CSE-ConnectionGUID: xgItTaJ/QXGWp5oKvxIdlQ== X-CSE-MsgGUID: CglGFrbSSqC7d4oybge6cA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,243,1787036400"; d="scan'208";a="13402876" Received: from jf5300-15a101203tc.jf.intel.com (HELO meta-crater2c.jf.intel.com) ([10.54.113.49]) by orviesa009.jf.intel.com with ESMTP; 30 Nov 2026 12:09:01 -0800 From: Daniel Byrne To: Frank Li Cc: Daniel Byrne , Vinod Koul , Dave Jiang , Fenghua Yu , Vinicius Costa Gomes , Jonathan Corbet , Ludovic Desroches , dmaengine@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] dmaengine: add dmaengine_async_is_tx_complete() for channel status queries Date: Mon, 30 Nov 2026 12:02:45 -0800 Message-ID: <20261130200245.1903366-1-daniel1.byrne@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: <20261019150632.4026424-2-daniel1.byrne@intel.com> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261130_120902_576636_ED9DD5F4 X-CRM114-Status: GOOD ( 14.17 ) X-Spam-Score: -4.4 (----) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-8.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Mon, 19 Oct 2026 18:36:46 +0000, Frank Li wrote: > Does it should wrap dmaengine_tx_status()? from naming conversion > > dmaengine_async_is_tx_complete() should return bool type. > > > I don't that it is true. Supposed user can always poll state regardless if > set DMA_PREP_INTERRUPT. > > > > Use sperate patch for such movement. > > Frank > Does it should wrap dmaengine_tx_status()? from naming conversion Yes, v2 calls dmaengine_tx_status() instead of reaching into the device ops. > dmaengine_async_is_tx_complete() should return bool type. It keeps enum dma_status, like dma_async_is_tx_complete() that it replaces, a polling client has to tell DMA_ERROR from DMA_COMPLETE, and dma_sync_wait() and dmatest use each. > I don't that it is true. Supposed user can always poll state regardless if > set DMA_PREP_INTERRUPT. Sorry, I should have clarified. Any cookie can be queried either way. What the flag changes is where the result goes, without it the query is the only place the transaction reports, and on a provider that tracks per-descriptor state the query that sees it end retires the descriptor. With it, the provider completes the descriptor and reports through callback_result, and the query only reports whether it has ended. v2's kernel-doc and message will state that. > Use sperate patch for such movement. Done, it is its own patch in v2. Thanks, Daniel