From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=46.38.245.6 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796213560; b=hMwolcgKQAoDL+J/OZJgK8nlifrXBiGljkRRFcTtrr+zQnU+WOCpFaVDZm3oh2QoSwkx iG8TPWrb9rO3FdylZEgHPPdVpx38j7myRREuJ14x8Ym72FtGHkXa7NPtOBbYwPluhYQVB ZscwimPPy7yIlcgLAGdaryjy4WGipVQeZ4qsWxXspzhER4fqx2fIv019BHQsnX4ONG4+L iEACyLNNglIJa1SPcw6qiJib8N08pjpBmgsy6oQ4zIEfGm0tJBKlZYeDlkHj28rGNFRTx mdS5r1+ZSsiSlKpqNwToNfcpGM7RIQAWIiMV9p3OS6crot8LtEE8eoTK762I/3mAxGw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796213560; h=DMARC-Filter:DKIM-Signature:Received:Message-ID:Date:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=LQQZh/mJAQUUYD57TWmcE2TxeovinXrq15Xl7L1sucY=; b=JtHAR5lzgrQYPfIDRIBIxSo3BMDHBPifmGQMtX4Cr5Mu02znSJXq3hoELsr1ZIJQ6etF FHyY43+iY3C5YL/tV3QUiNwopM0gRN49FcFCs6FCeufBcPyZd9MtP93K7tOjYrUG4iMuG MwI07g/zlHqVwYqGSj2KR9BkWmwSl/0OD56/8mllm9CMY3jXKDCM4zPX8fTUNcEFhOhF1 ZlvzT/NwQcX+kjDGh7UWjVcmYmKcGUXTbBKaaJ5e35ekl4a4pFZeGHBcU9flv0Gp2tYbx +Ml82NEMi60hYkgCQoEy2pdbTT14LZ0qU9nncsMCI+8dXP/AEAlkvHqyWtRYZORsURA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=kernel-space.org; spf=pass smtp.mailfrom=kernel-space.org; dkim=pass header.d=kernel-space.org header.i=@kernel-space.org header.a=rsa-sha256 header.s=s1 header.b=ztDw1vej; arc=none smtp.remote-ip=46.38.245.6 Received: from mail.kernel-space.org (v2202511311555398556.powersrv.de [46.38.245.6]) (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 3AFCA606A33F; Wed, 2 Dec 2026 12:12:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3AFCA606A33F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=kernel-space.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel-space.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=kernel-space.org header.i=@kernel-space.org header.a=rsa-sha256 header.s=s1 header.b=ztDw1vej DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-space.org; s=s1; t=1796213556; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LQQZh/mJAQUUYD57TWmcE2TxeovinXrq15Xl7L1sucY=; b=ztDw1vejnWij8JMVZPwLvVuM7/5IKFKSoQN7H2SfLnig6AxaRwWD2Stwbj/HGa5nv1/Xpf xELMYGFPgm6Ywd7UpYOr2uCYHS1YFXBPySZ9hLaiZMWTxuigT2IJ6Sm2QGqqd9GP9mXGOr /cckX1AzU74cXQgcXPXncG7rzRCbrYI= Received: from [192.168.0.2] (host93-7-32-195.dimensionesrl.eu [195.32.7.93]) by oreshnik (OpenSMTPD) with ESMTPSA id c9d4205a (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 2 Dec 2026 12:12:36 +0000 (UTC) Message-ID: Date: Wed, 2 Dec 2026 13:12:35 +0100 X-Mailing-List: dmaengine@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 00/10] m68k: mcf54415: fix ColdFire edma-related issues To: Jean-Michel Hautbois , Greg Ungerer , Frank Li Cc: Geert Uytterhoeven , Greg Ungerer , Vinod Koul , Frank Li , Frank Li , linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, imx@lists.linux.dev References: <20261201-wip-ks-stmark2-dma-fix-v1-0-99748ff19937@kernel-space.org> <20261202092645.2315294-1-jeanmichel.hautbois@yoseli.org> Content-Language: en-US, it From: Angelo Dureghello In-Reply-To: <20261202092645.2315294-1-jeanmichel.hautbois@yoseli.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Jean-Michel, regarding dma pool, i contacted you 2 times, personally (june 2026) and on the m68k list, with no answers, was not clear if you wanted to go on with this. I was anyway blocked so had someway to go on to fix edma and dspi, depending on global pool. Just to be clear, DMA pool and all that is in this patchset is written from scratch, not looking on your job at all. I did it from scratch to understand this global pool area and being able to fix edma, i can keep it locally. About edma, i missed there was something ongoiung on edma too from your side, sorry for that. I have no much time now a day except late evening for some development so cannot guarantee any collaboration. Also losing some enthusiasm to be honest. @Frank Li, edma driver is actually broken due mainly to the issue i pointed in patch 10/10. Please have a look, an endian swap was missing there. Please disregard all the rest since there are some overlappings with Jean patches that i missed. You can keep patch 10/10 if you want. To Greg: please disregard the patchset fully, don't want to overlap on any Jean-Micheal job. Just know that your readX/writeX is ok for me, fix you did on dspi and edma are working, but the fix in 10/10 is needed in edma, unless i missed any recent fix (not rebased from some days). Regards, angelo On 12/2/26 10:26, Jean-Michel Hautbois wrote: > Hi Angelo, > > Thanks for picking this up, and sorry for leaving your September question on my global pool thread[1] unanswered. > > Part of this series overlaps with work I posted earlier, so here are the links for reviewers. > > Patches 1 to 4 follow what Christoph suggested on that thread: DMA_GLOBAL_POOL filled with dma_init_global_coherent(), rather than arch dma_map_ops. The ACR window that keeps the pool out of the cache is the part I never got right, and I am glad to see it. > > Patches 8 and 9 fix the same bugs as 3/5 and 4/5 of my dmaengine v3[2], which Frank reviewed in June. I never sent the v4, my fault again. > > On patch 9, one detail differs. The loop still clears the error with EDMA_CERR_CERR(ch), which masks with GENMASK(4, 0). EDMA_CERR takes a 6-bit channel number (MCF54418RM, Table 19-13), so for channels 32 to 63 the write clears the flag of channel (ch & 31) and leaves the real one set. My 4/5 used EDMA_MASK_CH(ch) for that reason. > > How would you like to proceed? I can rebase my 3/5 and 4/5 on top of Greg's readX()/writeX() patch and send them as v4, or you can carry them in your series with their tags, whichever is simpler for you and Vinod. > > [1] https://lore.kernel.org/all/20250121-coldfire-global-pool-v1-0-382a7235c2aa@yoseli.org > [2] https://lore.kernel.org/all/20260625-b4-edma-dmaengine-v3-0-44be00ace37d@yoseli.org > > Thanks, > JM -- Angelo