From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CA40CC6FA8F for ; Thu, 24 Aug 2023 16:50:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Uo0/Ezh8vAECYjdcl/B88qpVEVEzziRzdTfmF01KIj4=; b=KusPs1GOJuM8Ef o5lot2bWmKsTlwMCPlZyYJKG6wNkxEgcdXUr7giTrnUc2v05NawlaF+1jVSwAbN8s1xo7lq/cKKww gPMairnJU+9rf2nogZZ1FcyPkIjSdprqfgemY8UkGMdg0KrRoNW7Hi6J+VdoJUc33pM/5RKc4Sjzj ocMqgPWxKWun8TLUlGtENnu9gAEhF+rYUt1dwYVChvGdwn4eZA2Fctxl7drre5AGXwGFpDBHGpunD /Yeyfs1b7bGg0dT6iqc1UgLxyo7T3jBfE6yey30MJlbs9BmLxrNrFSEhPPhp66jLH8ArYHoHe606+ diy8Ph/G77RUweaGYafw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qZDWe-003UT4-1n; Thu, 24 Aug 2023 16:49:40 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qZDWd-003USp-2J for linux-arm-kernel@bombadil.infradead.org; Thu, 24 Aug 2023 16:49:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=YckUv1ihMab7rMcGVwSOcE8yYXtakAo85QAiFzlmJV4=; b=R7g8P97RRXfDCNqan6gkj1fML6 us1GZJwtLBORZtbSPIP6mcL4rFig9HPO3KLfbfFJGNQ6O3NMnzJ5YQ4RStefaSl7oqnOjoT+XAK1N 8q6F1S5UA4aHSy5fZ1ffLECP0eLQYZXHT4GEjoTIpCOXn65NLgUcPFsM43OG+MplVTG03WvnuiqAj EPjByd+3nxURlj0jb/vA4tXdeWzzOxAnfwZkCSh8nOBOupObIZfbf/U/INgW/hx5la4Bxluns4twP u4V3ibl76ieS1RQD4SIIj+WyAECruUU/KCYgn4lhnWk6yIWLs2raF4WwVgvBBLdx9Kho0heAYCZ43 AuwmEbNw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qZDWT-00BzT9-TN; Thu, 24 Aug 2023 16:49:29 +0000 Date: Thu, 24 Aug 2023 17:49:29 +0100 From: Matthew Wilcox To: Robin Murphy Cc: Russell King , Andrew Morton , Marek Szyprowski , linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org Subject: Re: [PATCH] Fix folio conversion in __dma_page_dev_to_cpu() Message-ID: References: <20230823191852.1556561-1-willy@infradead.org> <46702101-01b3-1d1d-e5c0-f869c5b88ea5@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <46702101-01b3-1d1d-e5c0-f869c5b88ea5@arm.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Aug 24, 2023 at 05:39:38PM +0100, Robin Murphy wrote: > As for >2GB segments, we've certainly seen cases of users mapping absurdly > large buffers and overflowing dma_length[2], so I would imagine it's only > the improbability of allocating that much physically-contiguous memory which > keeps individual segment lengths from getting up to UINT_MAX ;) With a 32-bit kernel though? ;-) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel