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=1796320528; b=wyQ6LenH23LOp7j2Et1M1g6bJJbFbfisdzMsDTXaQCm3TU3bdaIxO+v42F7oYUQZO/Cc KSkQgX8jYIqPKT4zv8xF7yW57sMu8/2O+vhkWiIx9soVPTwyZrUdzk4HjsJJBc4wBhQLr +3Kmhix5z07GM0RKGst/Z/XXTGzHaQ97BuY6tFil5RxioE/jhPgJ/PeOFX5+Aih4lmc+Y +1iRw/MUcQDEhraJ075x7Ksyf6Fjkc0QeD4tzoleEpFHNTDHMmPfrM8FM2hnGE5jNzAwh GdMQCHJXv8+Ug5Nwm2fZLA0hTMjft6dj72wYnywNGVV+7mi0XGJFamxvxojNxi4fkYg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796320528; 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=KQ7qXAybB+n6YtCGhrPir9q4hafrMxBvp0T0PQi3dks=; b=bp4+SHfdfGkKjr32Yc4Exhct2BLfbmdsTimBIzr2uGqfwjV/V6h0IpteCDNL4GFJ0FNd AkIllNMo6z1/jmke8X2pvYKyGb0FmeBlXsEpPLnJQrey1uGRjwQlgwoXgKbJeSYuhuwgg gD4V3IGQWIueAmuxq2OWqVggD4gILpIRtVR0lrM6kj9z35Mn0TH3CKIg/kw+Zw7kwuz1c 4vhyo8x2f7+2iB9LY6Z9J7bqxcyEIoqcBPx/ukOqx/Fx+TjgycJ6f+sjpQdSTAN/ORa8F gsSVr9Y7lm4tNvYNVUT50i6f8g6fEZPTTku2RMXjPQgrXYeSIrDkwNkLwg5wCBrnB0w== 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=BT9avkCJ; 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 02EB8606A32C; Thu, 3 Dec 2026 17:55:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 02EB8606A32C 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=BT9avkCJ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-space.org; s=s1; t=1796320518; 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=KQ7qXAybB+n6YtCGhrPir9q4hafrMxBvp0T0PQi3dks=; b=BT9avkCJ2j6RK0p/tkepRxGzZmLjj49BGZe74zTN+dc8mPv0egkxWN2tsappvxX63ALRSE Cr2CB8/bg0wXHIgZ6JwLgLWVrWaUDLb4zEIkpE+hMlZ+qSKjGjbtrssVibmXalsEqsUmU6 wWvsnpsIMAKt1wMFIhDK4bTDk1Aw5e0= Received: from [192.168.0.2] (host93-7-32-195.dimensionesrl.eu [195.32.7.93]) by oreshnik (OpenSMTPD) with ESMTPSA id d2c4c6ea (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 3 Dec 2026 17:55:18 +0000 (UTC) Message-ID: <49053671-f7e3-48fc-a25a-363b4f2fc420@kernel-space.org> Date: Thu, 3 Dec 2026 18:55:17 +0100 X-Mailing-List: linux-kernel@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 , Vinod Koul , 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: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Jean-Michel, no problem, i should have misunderstood a bit your reply. This patchset is far from being ok, so feel free to review for any issue, we can co-develop in some patch, no problem. And feel free to contact me in private in case. Regards, angelo On 12/2/26 13:53, Jean-Michel Hautbois wrote: > Hi Angelo, > > Le 02/12/2026 à 13:12, Angelo Dureghello a écrit : >> 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. > > You are right, and I owe you a proper apology. You asked twice and I never answered. I simply did not have the time, which does not excuse leaving you without a word. > >> >> 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. > > I never doubted it, and I am sorry my previous mail read as a claim on your work. The links were only there for the history. Your ACR window is precisely the piece my attempt was missing. > > > > >> 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). > > > Please don't withdraw it on my account. You have the hardware, and DMA on ColdFire stays broken upstream until something like your series goes in. > > Greg, I would rather see Angelo's series move forward than mine. > > For patches 8 and 9, keep them with EDMA_MASK_CH() in 9. I will drop my v3 so that reviewers only have one version to look at, and once your series is in, I will rebase what is left of it on top. > > Thanks for all the work on ColdFire, > JM > > >> 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 >> > -- Angelo