Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp256679ybz; Fri, 17 Apr 2020 00:12:26 -0700 (PDT) X-Google-Smtp-Source: APiQypI3PfJfGlp6lm+gpg6BnH0/+HydyCmOpqT4L9ImDG01g3uFxrpCEraU/sEEFi3jTp2e9fNg X-Received: by 2002:aa7:ce8e:: with SMTP id y14mr1673265edv.30.1587107546224; Fri, 17 Apr 2020 00:12:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587107546; cv=none; d=google.com; s=arc-20160816; b=jWt6LgjsKBqhVxTpbDV8O2TjR/76/S69ZLmIWW4t/bHNuznkARNUWiyawLDaTjCwjJ ju5oJ8tceAFf06w6n5EP14zmKnD516ZhkppQNBcgDwksEqFpg0RkiflCph1gO+d9Zv78 WG9luWBq8zEwXZZvNa44c7EjQnmGXFXiYES/q+gue1Q4sQ34EsqjCLQOywFbJDXr8Ln8 6LsGvQOBNlTcYVavfdPNQhosKjW0LQzcW5T5+nkYDznebE/RLbDLPfhSTwAulYv4p2mw cmSQFyn7CAffTJp9Qf+gAY5JFL6Pw1sjQ+pK+J0tBtbpvg+y74auOOAGlTZ44N7GBvP3 s/bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=nlXgPaYL713UXy8HFxD5mRfeqqVt61F6uY/FxaSQhkg=; b=MVpIdDIipDpvdJDieSSk3+ojeDzviKbmlaxbutMCQPF43GkgkNWM7mNtceMIjxZpGj 1qP3WyQ8i9HcHTRDLfd+C8g0pQNOmibwoQCEKuPc/2oE6dM8+k53bN32RSPF/61XydM2 eRK79c77nLYgJRoQrkJ/uIHsBxq8kRPXuOWqkePr379xkX6aoS5SprihZH9ZeKXlSJUc 9LU51Ca4hBrWP7ZbWPh8iDjq2MebpHEvujfkQgujDNpjM0Sy00jJ+LzOY2f1g7vRN4s2 P8kmSI9uAM9JIY7WvNcXcQW99Xc0w0y2pvXe1nXCJMyG+u8fdT+UCy0MZeQZQnCVGY0T EB+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c23si13073158edw.24.2020.04.17.00.12.03; Fri, 17 Apr 2020 00:12:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728902AbgDQHKD (ORCPT + 99 others); Fri, 17 Apr 2020 03:10:03 -0400 Received: from verein.lst.de ([213.95.11.211]:56051 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728155AbgDQHKD (ORCPT ); Fri, 17 Apr 2020 03:10:03 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 12BF968BFE; Fri, 17 Apr 2020 09:09:59 +0200 (CEST) Date: Fri, 17 Apr 2020 09:09:58 +0200 From: Christoph Hellwig To: David Rientjes Cc: Christoph Hellwig , Tom Lendacky , Brijesh Singh , Jon Grimm , Joerg Roedel , linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org Subject: Re: [patch 4/7] dma-direct: atomic allocations must come from atomic coherent pools Message-ID: <20200417070958.GB19153@lst.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The subject should say something like "atomic unencrypted allocations.." as many other atomic allocations are fine. Which brings up that with the codebase in this patch we can't really support architectures that require both an atomic pool for uncached remapping for just some devices and unencrypted for others. We don't have such an archicture right now, and I hope we don't grow one, but we probably need a little safeguard with a BUILD_BUG_ON if both options are set. I can send an incremental patch for that if that is ok with you.