Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp211562pxk; Thu, 24 Sep 2020 03:53:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKAqZeXO1seOYc7SmvvmUbrUlgL44kn0bWd6hSJv41V43FUby9OIgSV5Odnher0thEhO7+ X-Received: by 2002:a50:fe0a:: with SMTP id f10mr343230edt.133.1600944838811; Thu, 24 Sep 2020 03:53:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600944838; cv=none; d=google.com; s=arc-20160816; b=Pc7lTuI88lq6nQbPDAkNTBV7uaoK2gfm+OFCIGgN9i75zPZfLFv7cyVKpd3hoGfN71 E+oyFkBaG5I91Njvn+n2PGFXBn/D6uCuAwlFbXKuMd6QWHK3Z061zI2KdrYPM8NkEY15 GNANyNsFPywyNYI7YsrED/e1Yp4ys+UdX96ad9yva0Bag/ncIxCSYd1+01n1uKXcE8vr 0MFjtPRp7ORpOB/d7v6m519RcVetAjPM0FhTY1CvO87nHqEE1Fkma1hkpWwr5xIe2NRU 8TPc+wI8R9O1HTMuVGyH+0GzmFhpBf6Wsz/EKOL3ozsEmg1BD4oyIcjf+gklrknXNtUG +a2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=mPD6Z4N2I4S2pBAldyH2KFz6UBPWxQryeAzLYlFeMGE=; b=t+VgktHxwL8ccOGBEMzvEva6hxmdGEqSMG/rOpZX3B0ONKLgy8EHhxrJUJOR6LwBcB ksrmhRmGF3aPB4a7QN79QRTkBTgVI/nvuS69x7itLDW4RUXKQDFhbYj86BVLcnbUdIOM pnpj3qrv+bTEvOEm+7DQCHslUHLIvqdrzL0ksqA70s+ovOTpOfa0L7oejs7w6oGDn6oP hT+RgMs9w+HS7whm9TBdtGT8vpQikzMLE0aQ3lapTBhyT4WEQqREgQn7uuxwzicBFZA4 QIXJ/x4iiRyggIY3l9CpVr4MnfFyYdsqrjTy6u0i+XQlzdIQMiLr8710t0DcgGs5AJhi izRw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cd7si1678139ejb.433.2020.09.24.03.53.35; Thu, 24 Sep 2020 03:53:58 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726652AbgIXKwE (ORCPT + 99 others); Thu, 24 Sep 2020 06:52:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726415AbgIXKwE (ORCPT ); Thu, 24 Sep 2020 06:52:04 -0400 Received: from theia.8bytes.org (8bytes.org [IPv6:2a01:238:4383:600:38bc:a715:4b6d:a889]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6F75C0613CE for ; Thu, 24 Sep 2020 03:52:03 -0700 (PDT) Received: by theia.8bytes.org (Postfix, from userid 1000) id D8328295; Thu, 24 Sep 2020 12:52:01 +0200 (CEST) Date: Thu, 24 Sep 2020 12:52:00 +0200 From: Joerg Roedel To: Suravee Suthikulpanit Cc: linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, Jon.Grimm@amd.com, brijesh.singh@amd.com Subject: Re: [PATCH v2 0/3] amd : iommu : Initial IOMMU support for SNP Message-ID: <20200924105200.GP27174@8bytes.org> References: <20200923121347.25365-1-suravee.suthikulpanit@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200923121347.25365-1-suravee.suthikulpanit@amd.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 23, 2020 at 12:13:44PM +0000, Suravee Suthikulpanit wrote: > Suravee Suthikulpanit (3): > iommu: amd: Use 4K page for completion wait write-back semaphore > iommu: amd: Add support for RMP_PAGE_FAULT and RMP_HW_ERR > iommu: amd: Re-purpose Exclusion range registers to support SNP CWWB Applied, thanks. I am slightly concerned about the re-purposing of the exclusion-range registers based on a feature bit being set. This makes the hardware incompatible to older IOMMU drivers which do not check the FEATURE_SNP bit. It will probably work in this case, as the firmware on systems with IOMMU-SNP support will not declare exclusion ranges at all and exclusion-ranges in the IOMMU hardware have been a bad idea since forever, but it would have been nicer if hardware actually provided a bit to enable this behavior. Regards, Joerg