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 X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC2BEC432C0 for ; Thu, 28 Nov 2019 06:41:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C891B215A5 for ; Thu, 28 Nov 2019 06:41:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726742AbfK1GlA (ORCPT ); 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.