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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5958AC433EF for ; Tue, 19 Oct 2021 12:29:27 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9A85461154 for ; Tue, 19 Oct 2021 12:29:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9A85461154 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.linux-foundation.org Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 5E68A80F0C; Tue, 19 Oct 2021 12:29:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P1no3uLhFBLn; Tue, 19 Oct 2021 12:29:25 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp1.osuosl.org (Postfix) with ESMTPS id 616C280E73; Tue, 19 Oct 2021 12:29:25 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 314EDC000F; Tue, 19 Oct 2021 12:29:25 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id E4DE2C000D for ; Tue, 19 Oct 2021 12:29:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id C03BD60B96 for ; Tue, 19 Oct 2021 12:29:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=infradead.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vEew3aFXYQdj for ; Tue, 19 Oct 2021 12:29:21 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from bombadil.infradead.org (unknown [IPv6:2607:7c80:54:e::133]) by smtp3.osuosl.org (Postfix) with ESMTPS id 9751B60B95 for ; Tue, 19 Oct 2021 12:29:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=D2EdOHj3w1D+ALquOX8L67YwOi2t62nGC9hbUIODr5k=; b=MKwPHE2+v+MztLO3oqiU5WaBeW h+DrgvIbqISIlJm55nVM5PoSBRu+FPuEvxbEBMRWso5BTOmeHQ13zIqd9e395i85Aee8bKbBiujk5 vu9kQxX5cQXjk+mBwwDo+K8PSd+Kvt7ntIdiE0w50Gu0WS4SXmaYa+MKIkHGl/RYaS72dd4SSVIMP pYTRk+iqcUCMOaTGApyFOZZYigB1bh77jNqNggvMR3MyvxkTdLkF4oafE9OgPxKPXGg4GjOIK/79g 76FStza+S11Q9H2pWDsu3MQcdRy9XDrOHFhBN8kgTCqum2Cw5eS/mC9Dul6AzS9xWle37IH1FTKx0 fdL5axlg==; Received: from [2001:4bb8:180:8777:c70:4a89:bc61:2] (helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mcoF4-001C1x-Tr; Tue, 19 Oct 2021 12:29:19 +0000 From: Christoph Hellwig To: iommu@lists.linux-foundation.org Subject: dma-direct cleanups Date: Tue, 19 Oct 2021 14:29:12 +0200 Message-Id: <20211019122916.2468032-1-hch@lst.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Cc: Robin Murphy , id Rientjes X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" Hi all, Linus complained about the complex flow in dma_direct_alloc, so this tries to simplify it a bit, and while I was at it I also made sure that unencrypted pages never leak back into the page allocator. Diffstat direct.c | 133 +++++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 74 insertions(+), 59 deletions(-) _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu