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=-5.2 required=3.0 tests=BAYES_00, 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 1915FC433E6 for ; Fri, 28 Aug 2020 13:47:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DD1A520714 for ; Fri, 28 Aug 2020 13:47:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726827AbgH1Nrc (ORCPT ); Fri, 28 Aug 2020 09:47:32 -0400 Received: from mx2.suse.de ([195.135.220.15]:39834 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726321AbgH1Nqn (ORCPT ); Fri, 28 Aug 2020 09:46:43 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 97B2DADA2; Fri, 28 Aug 2020 13:47:14 +0000 (UTC) Date: Fri, 28 Aug 2020 15:46:39 +0200 From: "jroedel@suse.de" To: "Deucher, Alexander" Cc: "Kuehling, Felix" , Joerg Roedel , "iommu@lists.linux-foundation.org" , "Huang, Ray" , "Koenig, Christian" , "Lendacky, Thomas" , "Suthikulpanit, Suravee" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 0/2] iommu/amd: Fix IOMMUv2 devices when SME is active Message-ID: <20200828134639.GW3354@suse.de> References: <20200824105415.21000-1-joro@8bytes.org> <34db343f-cd23-09af-3bc5-29b9d385f85d@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 26, 2020 at 03:25:58PM +0000, Deucher, Alexander wrote: > > Alex, do you know if anyone has tested amdgpu on an APU with SME > > enabled? Is this considered something we support? > > It's not something we've tested. I'm not even sure the GPU portion of > APUs will work properly without an identity mapping. SME should work > properly with dGPUs however, so this is a proper fix for them. We > don't use the IOMMUv2 path on dGPUs at all. Is it possible to make the IOMMUv2 paths optional on iGPUs as well when SME is active (or better, when the GPU is not identity mapped)? Regards, Joerg