Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp158202pxk; Thu, 24 Sep 2020 02:10:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzc5jCBG9LZz+maB++xFrnmjA9wokaydU+HV4WIl19is9D1Jkyy/KRvbvQ0mfm4L9ROgNBW X-Received: by 2002:aa7:da42:: with SMTP id w2mr3416207eds.287.1600938619736; Thu, 24 Sep 2020 02:10:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600938619; cv=none; d=google.com; s=arc-20160816; b=F3cRuZQT+NC/R+izknekQJMuZsxe5y9bGiINNjEgOerlyRbUaoHPmmI2QxvrgP818d Hfnz1oT4h+iu/ezGR+gkluFm3I0oHUCErZpwo++KUCDIiS4i0NE1gDZI+iJwZjCdsi7Y jHfLTYWOaAhd1agCUp+TrwoyNuzOLocrgTmCo4NUVn8LUzdAaAd31JB9+B/69LcQv+UY 5LV7miOUtdGFdYvy1A8a+GS6xXmhWZ43LZ6+9NiFLYohljD3FJ5yc+EwCv/NbXP2T3ME KlLdILwI0xCx+uPLHLYrXoWd5fs7pkrVr2CeaLE6RUU/HjRVwct/TBT6lB/rZ7VaZkcc dQfw== 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=PSS6ZBiVMjfP4qRUEXa2EBKm77LwLwvHzDz1PTOMeMQ=; b=gk98+EfyUJR/7zGYiRsVddDar8kmTBMoDqBA0f7ojYTnCBGcBHg1YaDylYFPdwg4kA LqdLimqb43cFCT5+seMN/WKcOC++ansVFjm1uuY+LfQIYkmUcHk0RDjZea9dJZMBwCJA vdThnZgI5GkpP+DqXX2bOULQumk+lEOfPkqOGmWEgHh/obngcP9/cPmBA7sHMu7BOPRY YA+NqGF5thFXQuzI3ZODlejbtWJWQzC5fUwbFD0P6japzeTe4A7Yu0HL0ot0EC08lgL1 1dfNgSuCaTbUi00TdYObk4bFRvbqsQGZOWnABog1RNCj5NjD6re26F55CawjatLoGfR/ uXeQ== 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 q24si1801167edb.85.2020.09.24.02.09.56; Thu, 24 Sep 2020 02:10:19 -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 S1727357AbgIXJJA (ORCPT + 99 others); Thu, 24 Sep 2020 05:09:00 -0400 Received: from 8bytes.org ([81.169.241.247]:46258 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727349AbgIXJI7 (ORCPT ); Thu, 24 Sep 2020 05:08:59 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id C04143D1; Thu, 24 Sep 2020 11:08:58 +0200 (CEST) Date: Thu, 24 Sep 2020 11:08:57 +0200 From: Joerg Roedel To: Baoquan He Cc: ahuang12@lenovo.com, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Revert "iommu/amd: Treat per-device exclusion ranges as r/w unity-mapped regions" Message-ID: <20200924090857.GG27174@8bytes.org> References: <20200923022655.750-1-bhe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200923022655.750-1-bhe@redhat.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 10:26:55AM +0800, Baoquan He wrote: > A regression failure of kdump kernel boot was reported on a HPE system. > Bisect points at commit 387caf0b759ac43 ("iommu/amd: Treat per-device > exclusion ranges as r/w unity-mapped regions") as criminal. Reverting it > fix the failure. > > With the commit, kdump kernel will always print below error message, then > naturally AMD iommu can't function normally during kdump kernel bootup. > > ~~~~~~~~~ > AMD-Vi: [Firmware Bug]: IVRS invalid checksum > > Why commit 387caf0b759ac43 causing it haven't been made clear. I think this should be debugged further, in future IOMMUs the exclusion range feature will not be available anymore (mmio-fields get re-used for SNP). So starting to use them again is not going to work. Regards, Joerg