From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (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 5A2781400C; Thu, 7 Aug 2025 16:11:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.193 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754583092; cv=none; b=EKyjTx/2i2b+hWelrq1DF0PMzY73BRCPslCoDvH+opItViY6fZDK3/dA2I1TgdzJMjrHSe4ot5JIFsKweKtpf48FSWr+8y/Q9pBe+ijfqPE+y0n8m6QNLZ1atCfKrKShiCGoNtKtXXOQjKETT/5s7HVw7PVqGaWmXXCT/iuwLxs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754583092; c=relaxed/simple; bh=OV71OFYnOLI46OevvCJHarY8VZ1cMrOOOvfhQ2D4QYA=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:To:From:Subject: References:In-Reply-To; b=UVc7YTSA55CSu1oNfrSBU/lTbj7ZJGCO1Z4+lX9ihRoumqiU3ozIJj9o6e8voG0FqUT1dbHRat6FHw0l8bBZ6o6RvHsq8SjbCxcyxbvyi1zbyOns3a5DGMjP+zih1SqRmklDcuibu7wusTPKAFGGlPeduk8BQg94ZkTpuIQk5g4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=anXpfStW; arc=none smtp.client-ip=217.70.183.193 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="anXpfStW" Received: by mail.gandi.net (Postfix) with ESMTPSA id 81832442F6; Thu, 7 Aug 2025 16:11:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1754583087; 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=zZKIWF9npEkKZLlXfX/TxHBsvndAZLC7cFR8tTMLusA=; b=anXpfStWtQaVGcjeVkSrKGaRYMcwhCu6SGubJHwi676xFy+IfLlGDAxmSNpLg+ldHctrqi tKoZKqXmvlZ73jQrVM1mC5cjDOVuL1PAsby26oO8b/w4bRLWdosvnIu5kf7QyYmDTXaV6/ mCa474mjGmB60FjEIirliBXL8JQNPKGTc5jL0nBrODB38VvM1wSQnmQQfn/lYZQn4l9gV0 7kBHY91KVPIwoJsnaoRsLW2p2d7ccF+sIokmXV91DvqDPTuJYzon5I70p85K0nZ2AgR65e 8DqgAB4w7oVVZc+wOntYAppe6xL0fnOK0QqJAkhYQ6uyLVUfvVzFK6PgrQMwtw== Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 07 Aug 2025 18:11:23 +0200 Message-Id: Cc: , , , , "linux-mips@vger.kernel.org" , "Thomas Petazzoni" , "Tawfik Bayouk" To: "Jiaxun Yang" , "Andrew Lunn" , "David S . Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Nicolas Ferre" , "Claudiu Beznea" , "Paul Walmsley" , "Palmer Dabbelt" , "Albert Ou" , "Alexandre Ghiti" , "Samuel Holland" , "Richard Cochran" , "Russell King" , "Thomas Bogendoerfer" , "Vladimir Kondratiev" , "Gregory CLEMENT" , "Cyrille Pitchen" , "Harini Katakam" , "Rafal Ozieblo" , "Haavard Skinnemoen" From: =?utf-8?q?Th=C3=A9o_Lebrun?= Subject: Re: [PATCH net-next v2 16/18] MIPS: mobileye: add EyeQ5 DMA IOCU support X-Mailer: aerc 0.20.1-0-g2ecb8770224a-dirty References: <20250627-macb-v2-0-ff8207d0bb77@bootlin.com> <20250627-macb-v2-16-ff8207d0bb77@bootlin.com> <984c1bea-7020-4121-9fea-7d657a5e8da1@app.fastmail.com> In-Reply-To: <984c1bea-7020-4121-9fea-7d657a5e8da1@app.fastmail.com> X-GND-State: clean X-GND-Score: -100 X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduvddufeejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpegggfgtfffkvefvhffuofhfjgesthhqredtredtjeenucfhrhhomhepvfhhrohoucfnvggsrhhunhcuoehthhgvohdrlhgvsghruhhnsegsohhothhlihhnrdgtohhmqeenucggtffrrghtthgvrhhnpeeigfelffeuffetteetuddufffghefhudeuteeigeekteevgeeileejgfdvffelheenucffohhmrghinhepsghoohhtlhhinhdrtghomhenucfkphepvdgrtddumegtsgdugeemheehieemjegrtddtmeeiieegsgemfhdtfhhfmehfvgdutdemlegvfhgunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdgrtddumegtsgdugeemheehieemjegrtddtmeeiieegsgemfhdtfhhfmehfvgdutdemlegvfhgupdhhvghloheplhhotggrlhhhohhsthdpmhgrihhlfhhrohhmpehthhgvohdrlhgvsghruhhnsegsohhothhlihhnrdgtohhmpdhnsggprhgtphhtthhopeefvddprhgtphhtthhopehjihgrgihunhdrhigrnhhgsehflhihghhorghtrdgtohhmpdhrtghpthhtoheprghnughrvgifodhnvghtuggvvheslhhunhhnrdgthhdprhgtphhtthhopegurghvvghmsegurghvvghmlhhofhhtrdhnv ghtpdhrtghpthhtohepvgguuhhmrgiivghtsehgohhoghhlvgdrtghomhdprhgtphhtthhopehkuhgsrgeskhgvrhhnvghlrdhorhhgpdhrtghpthhtohepphgrsggvnhhisehrvgguhhgrthdrtghomhdprhgtphhtthhopehrohgshheskhgvrhhnvghlrdhorhhgpdhrtghpthhtohepkhhriihkodgutheskhgvrhhnvghlrdhorhhg X-GND-Sasl: theo.lebrun@bootlin.com Hello Jiaxun, On Mon Jun 30, 2025 at 3:35 PM CEST, Jiaxun Yang wrote: > =E5=9C=A82025=E5=B9=B46=E6=9C=8827=E6=97=A5=E5=91=A8=E4=BA=94 =E4=B8=8A= =E5=8D=8810:09=EF=BC=8CTh=C3=A9o Lebrun=E5=86=99=E9=81=93=EF=BC=9A >> Both Cadence GEM Ethernet controllers on EyeQ5 are hardwired through CM3 >> IO Coherency Units (IOCU). For DMA coherent accesses, BIT(36) must be >> set in DMA addresses. > > Just quick question, it seems like this special driver is only applying a > fixed offset (1 << 36) to the DMA physical address, can we achieve that w= ith dma-ranges > property in DeviceTree? > > I belive: > ``` > dma-coherent; > # Bus addr # Phys # Size > dma-ranges =3D <0x10 0x00000000 0x0 0x0 0x10 0>; > ``` > > Will do the job. This is perfect! Can confirm it works just fine. When you are stuck in an issue for too long you don't think about broadening your viewpoint. Thanks, -- Th=C3=A9o Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com