From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D7EC3932F0; Tue, 17 Mar 2026 11:27:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773746874; cv=none; b=SU3NhTwy3r10VGTkBmr7KgouUDVIqnbVdxttyxx5i8u8DDEfGnoEvcjIXodTlRBmEgtYnb75WJS9H3AL6x4nK7MHLVQq9e70+AOzhi6meaM36kp2WX7GkchFoXPy+bM5phMlFHCb2A9omuz52VXdNvLpHF4FTfVPOchp+Mt29ao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773746874; c=relaxed/simple; bh=hHykJD+9TL8m1Kg8WRvXe8cTceyGxQGB9+Mf9oqzmBc=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=E0LnU+uDCQckEqV2OILEJaet1SOc8IpL8i0Lqe/afhn/1nEll0rtpV8wMZyDUHL/h8TZQ8yge5msW3afzUIO43+fZYa2VepsV9Gx40K1bzDja/TCTpvqOk09l2RHoLTJ9VyR5+kpANIwNWp8pzS942n4fC+g4rW1SMq3/9hHyzE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lqW110UI; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lqW110UI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82AE2C19425; Tue, 17 Mar 2026 11:27:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773746874; bh=hHykJD+9TL8m1Kg8WRvXe8cTceyGxQGB9+Mf9oqzmBc=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=lqW110UIZjPBkszkgbYhDWH1b/JZ4MAdLYNHiGMbuavTgpclgWbv9hsyPCFaLLu2Q wx9WHo4SRhO90mH5Q0axGI2KgDcbXdY3TgHSIZR9jxqrc+MD7TehSIg21qJmStbluK 8cSSeoIUvq/hK+sayuXm3YFHNwZUzBzWGZRuhy78iAuUiQCL6tj02M3z29eNlWiHEG +yXHRPABYgyIgy+Bz4nEunVKsR790eTGW7uuF5yb03ZDwOG/by6lwsLJg5S+WHfDNM 1TmVDKEqQlZaBjkctULbFJTgKsQnfci0hThSlebuh1VjmS4lP48jZlTbn6jCYe+2Y+ PV9w2A3gteYMQ== From: Vinod Koul To: dmaengine@vger.kernel.org, Marek Vasut Cc: Michal Simek , Radhey Shyam Pandey , Rahul Navale , Sasha Levin , Suraj Gupta , Thomas Gessler , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org In-Reply-To: <20260316222530.163815-1-marex@nabladev.com> References: <20260316222530.163815-1-marex@nabladev.com> Subject: Re: [PATCH] dmaengine: xilinx: xilinx_dma: Fix unmasked residue subtraction Message-Id: <177374687115.337094.18303476978785991645.b4-ty@kernel.org> Date: Tue, 17 Mar 2026 16:57:51 +0530 Precedence: bulk X-Mailing-List: dmaengine@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.13.0 On Mon, 16 Mar 2026 23:25:24 +0100, Marek Vasut wrote: > The segment .control and .status fields both contain top bits which are > not part of the buffer size, the buffer size is located only in the bottom > max_buffer_len bits. To avoid interference from those top bits, mask out > the size using max_buffer_len first, and only then subtract the values. > > Applied, thanks! [1/1] dmaengine: xilinx: xilinx_dma: Fix unmasked residue subtraction commit: c7d812e33f3e8ca0fa9eeabf71d1c7bc3acedc09 Best regards, -- ~Vinod