Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp157458pxv; Thu, 24 Jun 2021 05:12:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw74opcvGuxR8Br4CjkamEnghp8yh6RX4SWto3W7rCkrbYBfKaprFNp/muZy6axPGLJw6dN X-Received: by 2002:aa7:c4c5:: with SMTP id p5mr6879043edr.352.1624536771616; Thu, 24 Jun 2021 05:12:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624536771; cv=none; d=google.com; s=arc-20160816; b=xeSsqFM4fm4yXKJlEgKmqJql9fHDkgDmKSk5YGFp34w+qwgFkhT8Ullo+ZpNQKex5J IiHjgoG6Dqctd4PgcQei1Y+n69wwFnNFRYyzk7sS8CswowqqOPdSkeLxesug7+6KUHpa iywzANlX+nCfleA+UzhDO0/C5iQ2sijp/fuLXweGFhmRbA7xmaveyHu9O/4r6f3RrnPM 1cRSDTonPh0YEf+JJI4yvuRX5igLXnU7vWy+75jrbWelo/7A1vVkcKa2pZdGpcqLIZsz oqGKbcFGnE20kIJc4pl6xafMDh0JqHr8KvMrMplm0pJ/gLA9FTZhbZd+vdQJb3ZZPwyg toCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QH9oNP4WxmW/vqhGxs1tvug21wBWTRQZH4Pz9lfIN0w=; b=XsR1BVe/MkfhNZZHpsORzzxGyS6p1MZAmyBvh8Y0AHryEN1m0TOxQaMIlLkeEm+jSW INgeNCLjGGUMQBQkmpFf0s7N0SNV7YUCgCcABjMl+xN+c//iPlA8cy/9PQ3zR5Z+hXL9 gENu1+dYAa6ibIH++myxteJgkNUAVjCztyTlSdHmic+djcifMM6u2n/CkTSSFlb7UCDL PtTl5BvtTHEVLkDO/Mvsx5TjRfjdUcP8qYXVsLkzPe8HCun81MZBhejUu+Y8Ow63/z73 gAYgLqg01vHWK+MxeJCpHe30/7WSyYN+SMoGXTtkxR0S5iHBeCsJoOqWFPe85nKSW0OI atoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=fCAvHGok; 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 j1si2435140ejj.668.2021.06.24.05.12.29; Thu, 24 Jun 2021 05:12:51 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=fCAvHGok; 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 S230136AbhFXMNi (ORCPT + 99 others); Thu, 24 Jun 2021 08:13:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230028AbhFXMNi (ORCPT ); Thu, 24 Jun 2021 08:13:38 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57336C061756 for ; Thu, 24 Jun 2021 05:11:19 -0700 (PDT) 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=QH9oNP4WxmW/vqhGxs1tvug21wBWTRQZH4Pz9lfIN0w=; b=fCAvHGokMgzygcSaFz3S9lmVOO q0dtFwlNDb6upr5nxand1xWi4g7sykXK08St9vEnu5zsOqVVESgQO5OK3sozKz2MdRukHMDbJ6x1W NM1tnDSi/oevECgfaVqHsQYqDQZYkgaY8inkBm+0CD/cYzV4J4LkBtsjWDCLubwdk6CLLz8hDDYkV YBG2YwZTIqZ7I0PG/rEwzPH5JSBoxLjels54hDDj7oJc/7AaazqK5mcIZd0HFCJu0MRCuDrxOQfSv FLppucvxAGePCIABaV6ZRhREoyFVRv5A6evXuwvDFv0V7Q7qNcKU+8SIYbFqvirpngMhJ5kn2q1+p 7UyuCEeg==; Received: from hch by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1lwOC3-00GYDo-SO; Thu, 24 Jun 2021 12:10:58 +0000 Date: Thu, 24 Jun 2021 13:10:51 +0100 From: Christoph Hellwig To: Robin Murphy Cc: Baoquan He , Christoph Hellwig , linux-kernel@vger.kernel.org, linux-mm@kvack.org, x86@kernel.org, rientjes@google.com, rppt@linux.ibm.com, thomas.lendacky@amd.com, brijesh.singh@amd.com, kexec@lists.infradead.org, iommu@lists.linux-foundation.org, m.szyprowski@samsung.com Subject: Re: [PATCH RFC 0/2] dma-pool: allow user to disable atomic pool Message-ID: References: <20210624052010.5676-1-bhe@redhat.com> <20210624092930.GA802261@MiWiFi-R3L-srv> <8b3d4e02-6e94-ad59-a480-fed8e55c009a@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8b3d4e02-6e94-ad59-a480-fed8e55c009a@arm.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 24, 2021 at 11:47:31AM +0100, Robin Murphy wrote: > Hmm, I think the Kconfig reshuffle has actually left a slight wrinkle here. > For DMA_DIRECT_REMAP=y we can assume an atomic pool is always needed, since > that was the original behaviour anyway. However the implications of > AMD_MEM_ENCRYPT=y are different - even if support is enabled, it still > should only be relevant if mem_encrypt_active(), so it probably does make > sense to have an additional runtime gate on that. Yeah, a check for that would probably be useful.