From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=13.77.154.182 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796100612; b=ZLCT7sjgVj+Yo9fUWvXquyVFqKMXpFqbVVVCQsU0KunOdcZopUeEh94yCwHyfEN6ob69 KCWXbwOQUtR3JEKiGOG1KE+0EIPhRyz6IQAh8iVs9iIV50nbjgWeRNcxaZpq6vm21X7+/ zY5WhFSnItF752ku/8D5uO3FU6bbxyd4/O3+qUCGH0XAUQozXZIufsYOjHyfq/KqP/0Gd /nhPFNwKg784Y5OKcdJ1DzfwST3htApvH6o64eIM/8rxx7Y1MEbwjAcHk+oS5Mdfpv7Zs r10pmUz1NTEbaEFmXFXJ+Er1OSdBzHpUSPUrvsdAKE57AkLGPV7sps+1EzHi2+01qTA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796100612; h=DMARC-Filter:Received:DKIM-Filter:DKIM-Signature:Message-ID:Date: MIME-Version:User-Agent:Subject:To:Cc:References:Content-Language: From:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Spam-Status: X-Spam-Checker-Version; bh=SYxW4dHrNkJqnmDL1hbr5mxfcfuFNr+PTeqC6BvF4aM=; b=F/qYjxzMVivUv5KvPKDqxmNum0csrQ9AZvPvJtxlPehJSUwveItxqA9vp3uNUQSgnBwN v8G9Jse+q+amny+4meTFmPMsS6r3RRb0VYYKpTCOIgYVquuSIg3aI57cSmNHi1PNOQRCB trODir5ZRVJcl0kCmdV3WrYL+QKalHOCDyGsa5JX9K21LOGZImjdiU+crtmuTSv4ZLo6R adQDQgxyMV63ZLJlkcUyw4jnbDAE6MeaQCC3bR1JFWknTUmeKm5qKmwIdsyasgPOObbBh xK7mlZdhjCEBS/q3Qn8jc5qb/BULnaiXg1DKgiH2Y+AyLCWfijI/z4yE42JUOau/2Lg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=LKvsIchD; arc=none smtp.remote-ip=13.77.154.182 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1170606A31A; Tue, 1 Dec 2026 04:50:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D1170606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.a=rsa-sha256 header.s=default header.b=LKvsIchD Received: from [192.168.1.70] (unknown [52.172.102.219]) by linux.microsoft.com (Postfix) with ESMTPSA id F08FC20B7166; Mon, 30 Nov 2026 20:49:59 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com F08FC20B7166 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1796100603; bh=SYxW4dHrNkJqnmDL1hbr5mxfcfuFNr+PTeqC6BvF4aM=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=LKvsIchD96562D5+jeZqDgw5g2KlBuXV4NHpzI8LJuCUOqDJKInctBtcKIedimK8M TvbqUHO/2zoUnmUJdPvNeJN2JixJwnm8LXgX8AiNUSpbCVIhDg0gW2A6t75u6hfikX rpQQWPG1z37vtdz3Zv71G2TbZ3gKAFk+Hd2Z+DaQ= Message-ID: <3c137b2f-6111-44b1-b664-0044b6310d4a@linux.microsoft.com> Date: Tue, 1 Dec 2026 10:20:03 +0530 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] iov_iter: Fix direct I/O across compatible device pgmaps To: "David Hildenbrand (Arm)" , Christoph Hellwig Cc: Jens Axboe , Andrew Morton , Alexander Viro , Oscar Salvador , Logan Gunthorpe , Leon Romanovsky , Keith Busch , linux-block@vger.kernel.org, linux-mm@kvack.org, linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, stable@vger.kernel.org References: <20261126053433.88531-1-namjain@linux.microsoft.com> <5cc60faa-002c-4c96-97e3-46d3002718c9@kernel.org> <74edd490-26bd-41a4-81ee-cd18b9f28154@linux.microsoft.com> <06ea7db8-51d1-49e0-8592-300d084ea5fd@kernel.org> <20261130131814.GD29203@lst.de> <279a9a88-91ba-41d7-8ac7-d5efec3561a0@kernel.org> Content-Language: en-US From: Naman Jain In-Reply-To: <279a9a88-91ba-41d7-8ac7-d5efec3561a0@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/30/2026 6:57 PM, David Hildenbrand (Arm) wrote: > On 11/30/26 14:18, Christoph Hellwig wrote: >> On Sun, Nov 29, 2026 at 11:32:20AM +0100, David Hildenbrand (Arm) wrote: >>> Yeah, can we rename the function while moving it? in bio.h the "bio" context was >>> quite clear. In memremap.h it's a bit weird. >>> >>> If this is all about bios, I'd squeeze that into the filename and make it >>> clearer for *what* they are compatible. >> >> This is not about bios at all. And despite the extremely misleading >> subject it also has nothing to do with direct I/O at all. Fundamentally >> is is about dma mapping, as each incompatible pgmap or pgmap vs non-pgmap >> pages can't be mapped in the same IOMMU transaction. > > Okay, then let's capture that in the comment and ideally the the function name. > Thanks. I'll rename the helper to zone_device_pages_dma_compatible() and update the kernel-doc to explain which pages can be DMA-mapped together and why. I'll use the subject: iov_iter: Allow DMA-compatible device pages in bvec extraction I'll also update the commit message accordingly, keeping direct I/O as the example of the failure. Regards, Naman