Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1361380ybg; Thu, 11 Jun 2020 07:57:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFGgGpH/D49qTuWkJ1TI4WK7rSD+SIquJINHVrWxzEPe02cWVdYxNHH0Wn7eoQZjloxQ5y X-Received: by 2002:aa7:d041:: with SMTP id n1mr6978637edo.196.1591887440859; Thu, 11 Jun 2020 07:57:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591887440; cv=none; d=google.com; s=arc-20160816; b=PCUDzo7YZx9FQTNrE8XCgOBmH+PcM+Yvv5wIeZzQo6IE0DSfxQKg4M+Ie37uInEfFk z+GsOirgP8PjOZnPq1cVGioU1bIFQr5wGO1uOIXu38jc7rtwc7KyvIiIZf8I/Dpmlcxo 14qWW1+L2vRKeboev7GUECcflULPkMZHDht0ZnmFyb8wI4zmTVbniAkmCEwEoOioVMpo HCISmw2lDQjcw509WUO9FaF29jI6GPsmP5BsGMeYn8EtXBSzzsj/Yzti5wyXv0oA0vBt 7nPf7ND/xggppKKfT6u6jRd9XH1ShGrcCQM6uU+A5RLnWLXVC2BdyJ3dI/UEXKU0gmSL VnYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:message-id :mime-version:in-reply-to:references:cc:to:subject:from:date :dkim-signature; bh=Y49V++UNOPzuYl35+NoNzvTt4SNqxDJdg4ytABKfLJY=; b=zpYNv5UzXyYs3nRM3fxOyH7DI0HkRhKtQrm18Fhsp6aoFCraTO+ymTG39v1wdAAMSK EDI1hH/EfFeWYCCLBs2MIJsEaJ/nPrvySnKetG4i0ortK/hirlRF2Vf6tYQ43EtoBZYj dAis7I7OLFa7SBCchu1KUVuetB1Yj2pSHBNHssna2kbHElfpbyE0pyYPznyqXdMROZZH ppAPPR8gB+EODWUfHD9DqAWOjY/7hGJ/Jes3OfE820xb6/dSDoRkvt6o2GoFyhm8QiCy ptsJDk85Iem/z/Kf+47+DxTa4ToxM4IrUN1FAedBy5dxknQ1ca0gW1mC1hkH+GiTlx/R Fr1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b=lLRUsp3J; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qw12si2104973ejb.492.2020.06.11.07.56.57; Thu, 11 Jun 2020 07:57:20 -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=@yahoo.ca header.s=s2048 header.b=lLRUsp3J; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728355AbgFKOwC (ORCPT + 99 others); Thu, 11 Jun 2020 10:52:02 -0400 Received: from sonic307-34.consmr.mail.gq1.yahoo.com ([98.137.64.58]:42880 "EHLO sonic307-34.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726109AbgFKOwC (ORCPT ); Thu, 11 Jun 2020 10:52:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s2048; t=1591887119; bh=Y49V++UNOPzuYl35+NoNzvTt4SNqxDJdg4ytABKfLJY=; h=Date:From:Subject:To:Cc:References:In-Reply-To:From:Subject; b=lLRUsp3JNW5VdCt6g6Ggd0OM7Cn8QSAglRSU0NwvMZ+5rDqEa6qLy5e6FoSHILZjwM7O4lafiUP849zqqu0SSJVPNHcmU5lqKge62xtI67UjxDMiH3OWKqryetXzqAucHNE/WQTW5sat29a45ZOuUE+cN7x1ijGM9w82OqeqgPlfXleTUoUktZ4ETSx03Akmno2zef7OV26rtoLQUuZxnQRdqEej2UXjp6QvfHaIoa24T84xo28NiAsFNX2MbHAwGozcQvKgLZC4Px0ywGSxBFHE9csaHvnRK9fTc6raDQWyTQuMDZub1N8n2qaNF2vHJ7ToxaRrb3nIXPRVTZiAlQ== X-YMail-OSG: N_6BpMEVRDvd.miR6A7lED5GPdAEx7ojsA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.gq1.yahoo.com with HTTP; Thu, 11 Jun 2020 14:51:59 +0000 Received: by smtp424.mail.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID b1fcbf8aa3997862c2f8ed0063d81657; Thu, 11 Jun 2020 14:49:57 +0000 (UTC) Date: Thu, 11 Jun 2020 10:49:53 -0400 From: "Alex Xu (Hello71)" Subject: Re: [patch for-5.8] dma-pool: decouple DMA_REMAP from DMA_COHERENT_POOL To: Christoph Hellwig , David Rientjes Cc: alsa-devel@alsa-project.org, bp@alien8.de, hch@infradead.org, hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@redhat.com, Pavel Machek , perex@perex.cz, tglx@linutronix.de, tiwai@suse.com, x86@kernel.org References: In-Reply-To: MIME-Version: 1.0 Message-Id: <1591886384.28dd734zt4.none@localhost> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.16072 hermes_yahoo Apache-HttpAsyncClient/4.1.4 (Java/11.0.6) Content-Length: 1076 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Excerpts from David Rientjes's message of June 11, 2020 3:25 am: > DMA_REMAP is an unnecessary requirement for AMD SEV, which requires=20 > DMA_COHERENT_POOL, so avoid selecting it when it is otherwise unnecessary= . =20 >=20 > The only other requirement for DMA coherent pools is DMA_DIRECT_REMAP, so= =20 > ensure that properly selects the config option when needed. >=20 > Fixes: 82fef0ad811f ("x86/mm: unencrypted non-blocking DMA allocations us= e=20 > coherent pools") > Suggested-by: Christoph Hellwig > Signed-off-by: David Rientjes > --- > kernel/dma/Kconfig | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) >=20 Works for me with SME on or off with af7b480103, and with SME off in=20 abfbb29297. There is some regression with amdgpu and SME between those=20 two points, I need to check that out too. I haven't tested either before=20 or after with SEV (which I'm not even sure my system supports).=20 Regardless, this is a definite improvement. Tested-by: Alex Xu (Hello71) Thanks, Alex.