From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 48548303CB6 for ; Tue, 3 Feb 2026 10:17:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770113824; cv=none; b=CVwpwFS/NfhKjhMPhGSZ23OXn0F1tfgfphIP3nVYPMxwkbUjG265YO2yIxWtHwR04pg0GehZ456jWvIOEb7dxzmQ5TaxGo/L0JEFqQbtctxl1zSLmJdcnt02lRuBzzonlPM1lDpdauhOi/tIACesFPiuXHNp57Y3vzkwxhDGgJs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770113824; c=relaxed/simple; bh=OV6h1EbKbY8CqIrF6dRNWqYegK9uWHJ/xg8S0f3xyEw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=YODp7LIGdH5VQgbxXhMDW+lwB1LPGV6oR2oTKlIrFArm3oyLxjxORQbFZgv+DeHp0y2qUN0zeivEG719tQ6vk9AnY2I0U5Rhs1xPolgkcHLcQzyH3cTAnM33/OkiDgGI9juqv9dedlzdR6Srg3GS9ByYIWZheNto9iENHKHPrUA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=TamJxJqn; arc=none smtp.client-ip=209.85.221.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TamJxJqn" Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-42fb4eeb482so3761866f8f.0 for ; Tue, 03 Feb 2026 02:17:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770113822; x=1770718622; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=fscSYj6Edq1KO+eKiUWNHrblwvs+zwoKFQhpyWKzmWc=; b=TamJxJqnYgko1/8XE86/uyQ0d6Ldj9esgNMny0+IceW/uzkOuDpBTxCo64fOIMjlYl S6MtuxDcD8wzSOCR5S83JP9AUfmZ3ehS2faPgiYAXQsqNf5ziQajvcdyGUExaDG3SlpD Cv3iyWq+fCttOk4VWCjL6sw76/8chS88NLLCYikP+LYtUDFfwIikN40lbClzo+0WRhFi nOeqikhwTuEn1FmHj1xO+JiqFfhfC18VNECmFkBy9j3Rl+DNo2aA/ejYKVvfG2OIL7q3 AJb2dC89yWvMO8lbYDjqAE7//Bi2rq0z2lZwftSx4/uUh3yAm966ChTLWPq0jjzaM3WT 2yAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770113822; x=1770718622; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fscSYj6Edq1KO+eKiUWNHrblwvs+zwoKFQhpyWKzmWc=; b=Fa3b/c0tdUzsh/TM5xhZU0qjm0oGJKwOB2H0CiH42JZUwbi6SR5GPSqQ5v1r0FrYPv 4rmhEDDAm1ZwFRc2X80NNUiUEq6IjczwrMM9ndBEEvxE5muLeFkIm7uswPpfDrco7+4W PbehvKgm7rmYLcu6chUu6naHFijor0R0vDg0ahsbYEnaBFyKpimsD9dfqT2znq6UomTa TZX8qUFd3CYhg6SupXmts/ZTkeiZVhgTOPTvw1wI03cx5I9ljP+9tt/cnfoOx2CTmMpu 98o/KqiyW4Po0N7Gq/wVhfHDOsSR4kQDGjKXF4HyiRxu7x4MWP9H9tW1yiG4upbBam0z iYUg== X-Forwarded-Encrypted: i=1; AJvYcCWoeeBQjoFUr9r5FlahIzyiCSo1wUjtCia37rXRNg/S1kg4WS2VbcGpJBFr6DB3HmfhoxCT4EpNTo4l0ZU=@vger.kernel.org X-Gm-Message-State: AOJu0YzvK7LwZ6BQcQr9C8SuaU2K+0aVaKEDP7wZLYKuX0daC5rxqRkN Rvvlp/GTUKKYddoIEKHZUYHDxMcQMf12zGC3j3p0AibRvRBSlvQMBZPb X-Gm-Gg: AZuq6aJxval3XB2bwdivRxbEu0A3xm3k+DyZqmdNM6QeamKU9WGiNVhQFwwHuSgLF/p Zh/EtgGhM3G6m4vdEkdFkCIoPoM9mAGDvnZ8TOSuUBSDHGMqRVy7hDBYaSniqsCaRq+WPrUTm0k zgz4FToKCjgiEF60xIh9qY3ZjCd93tVpmstwEAACbBOj3f0W6U0IT7/fVElfn72gRNgRAgi01RG nqe0vOhNn6q8+fTZEx3K5t1QyhEInY+9Ku+kPZib6hvw6RrUJcfOl4ziyAbYqx6/iKtgZ1DHlJe rR6sAyiXrlXDc12JAE6TzuB4Qn+bV2j2UqOZWxZt72Dfdk+xVfHuvZvPPaRmqo2luoHI5ChvLwD KQTMj2vstK8k53FrAlXfFC8nduAsUOPJjdOmossFosgNQ7DsWL+4psTg5/2C0f+cA+CzaS9ZkZN LcfVP/zHr+/0oBpSPlFgfO4QYnihgehQXeylTEB0ZQFUk= X-Received: by 2002:a05:6000:2c01:b0:42f:8816:a509 with SMTP id ffacd0b85a97d-435f3ad2726mr23780172f8f.62.1770113821338; Tue, 03 Feb 2026 02:17:01 -0800 (PST) Received: from [10.25.220.39] ([128.77.115.158]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-435e135422csm53010801f8f.40.2026.02.03.02.16.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Feb 2026 02:17:00 -0800 (PST) Message-ID: Date: Tue, 3 Feb 2026 02:16:57 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/2] arm64: dts: imx95: Reserve eDMA channels 0-1 for V2X To: Peng Fan , Joy Zou Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Frank Li , Peng Fan , Ye Li , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Laurentiu Mihalcea References: <20260130-b4-imx95-v2x-v3-0-95af05bece95@nxp.com> <20260130-b4-imx95-v2x-v3-1-95af05bece95@nxp.com> Content-Language: en-US From: Laurentiu Mihalcea In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/1/2026 7:22 PM, Peng Fan wrote: > Hi Joy, > > Sorry to jump in at V3. > > On Fri, Jan 30, 2026 at 05:36:27PM +0800, Joy Zou wrote: >> Reserve eDMA channels 0 and 1 on the AXI eDMA controller for exclusive >> use by V2X (Vehicle-to-Everything) fast hash operations. >> >> Reviewed-by: Laurentiu Mihalcea >> Tested-by: Laurentiu Mihalcea >> Signed-off-by: Joy Zou >> --- >> arch/arm64/boot/dts/freescale/imx95.dtsi | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi b/arch/arm64/boot/dts/freescale/imx95.dtsi >> index 55e2da094c889fc7c1096d0e36f31ae118d2a982..9ac82da2ff440e08ae8378d7ff830a568d50a354 100644 >> --- a/arch/arm64/boot/dts/freescale/imx95.dtsi >> +++ b/arch/arm64/boot/dts/freescale/imx95.dtsi >> @@ -631,6 +631,8 @@ edma2: dma-controller@42000000 { >> reg = <0x42000000 0x210000>; >> #dma-cells = <3>; >> dma-channels = <64>; >> + /* channels 0 and 1 reserved for V2X fast hash */ >> + dma-channel-mask = <0x3>; > This is wrong. Per dt-binding, > dma-channel-mask means Bitmask of available DMA channels in ascending order, > The usage in this patch does not match the dt-binding. Ah, good catch. It would seem like our EDMA driver reverses the meaning of the "dma-channel-mask" bits (i.e. bit x set means channel x reserved instead of channel x available). Now, I wonder how we should be proceeding with this. According to the DT binding, our devicetree configurations are wrong. Since there seem to be only 8 upstream instances in which this property is being used I guess it wouldn't be so difficult to correct the driver's behavior and then correct the devicetrees?