Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6431935ybc; Wed, 27 Nov 2019 22:42:53 -0800 (PST) X-Google-Smtp-Source: APXvYqz9pzI+d3DmPL5g3YRejwh5v8AqVsefH16VAnrwZk8r9ctmPXbC2Gm8O5E5M5IRenHV1N3w X-Received: by 2002:aa7:dd4f:: with SMTP id o15mr36265389edw.189.1574923373375; Wed, 27 Nov 2019 22:42:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574923373; cv=none; d=google.com; s=arc-20160816; b=bYXh4sy3PRz1AED2ubR17smKzHTDmIsc0PPOOK01YfuqUuBS135YPFg+yAvRHOVetD Sx60QIN9yDHZ1OrACn02e1xJHHKxgsytB80Pc6yA4pZ2ETjaQfiUcchvk89awAbRrPHq jT/uC6dGxiAz1bMpXNXXFP9J496202vJH7IVJWPz2wjmFqMTl55x4Dk4hAwsuec4Ze52 pTCu1fjA1j6a9TbeY+MEczD4LNPfNd9YO4RrGIa1TMTXXoYXp2TjCn+i970fXhOsh4ae 7rKUdugm2XNlD0l1NfzdVkeJ/FYz0dcsnZR6jGe0+dy/GZRJHgC/Io2VkP4fFOPemh89 Kogw== 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=Ytd6F2qmh4dPhJeDKwJJXTTzxMpd1AhqW0xU1W9YeTg=; b=FuFFAwDguv7AoXAOxCmkvCebW6BaZ97clwnPB8+2/ErTzRlZ4VlHdajxwlFUgKWoly AzwHFobMTIkO4ymV0GzeLVzRsUTvNAixQt5vhIAnQ5Zpf/+yBLkE74q5yhgdOT/BrTn2 eIW+x9qtzCQ6DBuh+OiuAVZIZaZ3VsjGdQOBuoZ1xyMewrthDTDTCgi/JXx1TLDIhPeD j/pO+6thAryqFeHkMkqqBJT8iVcZ+HrfSHXxs6B6vl+rM4V67yJUvaGdN+DQh2BEHpvY B2ob250ny4hBG6gv9YnMPUF6nbiWrzlLOEwE8wh7QSO6PIpuWxbEMr1tEzsXvAfD6w7Q lGFw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j20si2211975edj.385.2019.11.27.22.42.29; Wed, 27 Nov 2019 22:42:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726684AbfK1GlA (ORCPT + 99 others); Thu, 28 Nov 2019 01:41:00 -0500 Received: from verein.lst.de ([213.95.11.211]:50604 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726301AbfK1GlA (ORCPT ); Thu, 28 Nov 2019 01:41:00 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id E117D68B05; Thu, 28 Nov 2019 07:40:56 +0100 (CET) Date: Thu, 28 Nov 2019 07:40:56 +0100 From: Christoph Hellwig To: David Rientjes Cc: Christoph Hellwig , "Lendacky, Thomas" , Keith Busch , Jens Axboe , "Singh, Brijesh" , Ming Lei , Peter Gonda , Jianxiong Gao , "linux-kernel@vger.kernel.org" , "x86@kernel.org" , "iommu@lists.linux-foundation.org" Subject: Re: [bug] __blk_mq_run_hw_queue suspicious rcu usage Message-ID: <20191128064056.GA19822@lst.de> References: <20190905060627.GA1753@lst.de> <1d74607e-37f7-56ca-aba3-5a3bd7a68561@amd.com> <20190918132242.GA16133@lst.de> 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 On Wed, Nov 27, 2019 at 02:11:28PM -0800, David Rientjes wrote: > So we're left with making dma_pool_alloc(GFP_ATOMIC) actually be atomic > even when the DMA needs to be unencrypted for SEV. Christoph's suggestion > was to wire up dmapool in kernel/dma/remap.c for this. Is that necessary > to be done for all devices that need to do dma_pool_alloc(GFP_ATOMIC) or > can we do it within the DMA API itself so it's transparent to the driver? It needs to be transparent to the driver. Lots of drivers use GFP_ATOMIC dma allocations, and all of them are broken on SEV setups currently.