From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.70.183.193 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796215997; b=Kg30Vn67be+DGxVHqbXjM8CTVGzYjiYOn5GJT9vhLLzka7Q+tly8xylRzAr7L9hbtrjb MpageUfvC1J/zamB3fmJfX30i/srqExJg7iljiXzFaq2aXyzMQ2+r270PrdpuHCuC4ymQ 9UKzzmOIacMzp9mEoZfJ6qkQV5vGuleL0gETxAoMNMkV8PdNgDWY+GaoFXSwczTYgg+gL BOBLqH+pmoqvru9Xo4WaTNGI/T/SrdJ0zI/z2+Bsgm5s6T04g6OpOPot2w4QAcgGqD6JZ Wh2DZLlO+umo7+0oLo500CAzkXQV64bt23WVVVZv8dWWwoOnCIrN0lKxJHbzNay8/GA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796215997; h=DMARC-Filter:Received:DKIM-Signature:Message-ID:Date:MIME-Version: User-Agent:Subject:To:Cc:References:From:Content-Language:In-Reply-To: Content-Type:Content-Transfer-Encoding:X-GND-Sasl:X-GND-Score: X-GND-Cause:X-GND-State; bh=OKY1rhat340XSHakQuHsxZjGof2tKyFV88rYG10YJPc=; b=Qt1klIbCQEuB0ohlqMu9mK/5YUd5bf90fnI8uynVhWMeyS9xyOG2oBfb1PevHm+3vMeV mu0ONupcwgsO/qjAqqlpnR8EPTYHR5PmlyXV8tXu0t4+gJVKIf9EAXMh1zNykg7/TH3W6 W6xDWWnZVocGp5ucS+FAT896seDQaj9QQjK9zqweACGiTWe/AO0BlecPx1kTBNpaPB0ps QZCDL6fukHimOXNKFA1GKDLfPLJh9OJYl+M/UU/bmJPQEgRTLM9RA/blzNFkLHYYiy/zO 3VIjNcNfPxORRHb+nAFiaTh8RMf6IiUL2ZwB2cIJOs+t+uq08A97QDZUlZOO5j+jJAw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=yoseli.org; spf=pass smtp.mailfrom=yoseli.org; dkim=pass header.d=yoseli.org header.i=@yoseli.org header.a=rsa-sha256 header.s=gm1 header.b=dZ3ywlFV; arc=none smtp.remote-ip=217.70.183.193 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (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 3D63A606A322; Wed, 2 Dec 2026 12:53:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3D63A606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=yoseli.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=yoseli.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=yoseli.org header.i=@yoseli.org header.a=rsa-sha256 header.s=gm1 header.b=dZ3ywlFV Received: by mail.gandi.net (Postfix) with ESMTPSA id 2053D3EC10; Wed, 2 Dec 2026 12:53:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yoseli.org; s=gm1; t=1796215988; 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=OKY1rhat340XSHakQuHsxZjGof2tKyFV88rYG10YJPc=; b=dZ3ywlFVEy3BuYmE6gPOQSDoHkGQKTwbtJEr1Rgh87sfOKULELMajRSRrsYyj5nNz4WR8y QAPDRwPL8Ckk0mBRzmcy8YBd/AZVo6N34kvMO1yBK7VXVFKNqy8bttXkpSOyorlu2WV5un i4XGjtP664BKKdez9WcKsYEsGsMBUFPXpnK16xdhMiHPLdQS7JZgrTf7sdurtK9xGwf6j+ 27f7bThErpw2NwH5ttXRRK/EOmfTKYcrGAVsN2D33xtbsGLdp/rrlktAG9lnBbXt776fwV w1mmykWaNI82higqAtmsmOgiELu8oXMaVaNbuNMsErXoUfYXZrvjXDU6/WZCSA== Message-ID: Date: Wed, 2 Dec 2026 13:53:06 +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: Angelo Dureghello , 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> From: Jean-Michel Hautbois Content-Language: fr-FR, en-US, en-GB In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-GND-Sasl: jeanmichel.hautbois@yoseli.org X-GND-Score: -100 X-GND-Cause: dmFkZTFPPVYVD+BwFUpsrvYH338QIOCSM1XLbqdudO86j4R8z/PNJqlGS12rapWsMMxVUMkJe5t9sXSzUu8ZZ26tSeYo3ILj5iFBu3VgO8xBH+SVvfir5SbbX/euOR4OLVICeGhwkqQQrsoXXiwfTeftVcXeWIsyV9BBMhWrkpwEvVEkRfJUYkv2qeNI95qwlEdA1jPz2MI0PIoi94ssxscMhgEhuOPIM09k/7L60Cd6Ud+yLZA/kbfsYfhqoEIILWbFcVEPipu61f1LRPYTXqDihIVZ5+ygVR+2m16rZaxvpcY9ihUN97memKBiRlrRzq1K1sofpP8ygPabBWS7h+JgYWIPlbNFXpUNffhkAjYfsO90F507k+tc0+MUXbf5lzcdn+k4BVwDWHUKIf4lxmOQ7KdA3+7fz9idfR+cI/Lq7ptZH+lFIxGRnOCXGtRSWreJgYUZL7G1EtbMabG+82ixVfsrr5iTc4CU+NXDqiMmxfl57IAwHbq/bX33IUNIaDRSq+pgBjpZ1oaN22JakUraiSDoZticBpdoUqs+UMP8lz+HCTzKLEmJOex31cE3MpD03NYp8T6cTEAAzFOnHbxpnN08tq3MaJZQ3jY93QBidqWvd9rU6tUqBunnfxJaM82VMx/6CwKXt9NzK/Erx8Aht/dCP53r6PkwNQWiHdrkOE2mPA X-GND-State: clean 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 >