Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp637683ybx; Wed, 30 Oct 2019 02:36:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqNEzfO310rlvwEchqctSKo6920tP/S1dINFp+khTi0PyZ5VjeDimAo6RexwnA1m4FOI7U X-Received: by 2002:aa7:c691:: with SMTP id n17mr19617329edq.100.1572428160105; Wed, 30 Oct 2019 02:36:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572428160; cv=none; d=google.com; s=arc-20160816; b=qX3d1BuOokeSTzw5LBq4NBhdBLzsViKI4o7HIz1KXQdlO00HpRw5dYkGdJ9ZHmJBK5 7OfYP4KzLvfRZY1G7Z8rFN32GwPIJeOXX0smYOOzOyphUFwNncindBXTIrVZ4VOEPt0d Sx5GpqUAOCo5sSqonH19ydWXp1NYmHTvKuECCjzwnV66xdxapGrPinBf8ElUNeiJ94/Q igeI9gqgPl11XwJREjzCkxN4j15yU8VwiMlpGN53t2FPADzHSw18BDfXmc1ogA4pe2ne XXbfiA6FdBf9aO87uiMBOPWlTSunJPetrmX0MY75i4ynSzdzjVNtWEdZNretNrXOO3EE gV5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=3J+B+0L+hNjuz2SbpsR0ilvTARJ5gS+2N5AFsmUFqoM=; b=EmF1AAH7c1e3iYXm82v8Z7BMk/jFd6CupQ7w76idGNfY59CRzTAGovjPAI4j0AzAtu I5Pl0ZAScBd6R52hPm9pyaP9Us5wGrYR3XowYvQG84f+fXEE8pAidZ9z5wO1kVVZCHde kurdm98wbbny7/NzN0xZ4pGFw7tF0KYYlfjXHSWNd4YJenffmpEl88diLJLm9N/a2bfw tNcK4oXB93xbQhFYu4z7MRFN3Kjkhp+tyLY0yhUMEfl3aJlWVENweFIhWh2Z7y1oZ0+x VTlFMgOewfLLIUH4wq2GsrYRXJJI02ftfLPg0JeyXNLoZ7rmTm7GSygmThaAb5AGqe+s 21RQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id rk26si815712ejb.303.2019.10.30.02.35.36; Wed, 30 Oct 2019 02:36:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726357AbfJ3JdT (ORCPT + 99 others); Wed, 30 Oct 2019 05:33:19 -0400 Received: from 8bytes.org ([81.169.241.247]:49992 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726028AbfJ3JdQ (ORCPT ); Wed, 30 Oct 2019 05:33:16 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id 3415334A; Wed, 30 Oct 2019 10:33:15 +0100 (CET) Date: Wed, 30 Oct 2019 10:33:13 +0100 From: Joerg Roedel To: John Donnelly Cc: linux-kernel@vger.kernel.org, Lu Baolu Subject: Re: [PATCH v3 ] iommu/vt-d: Fix panic after kexec -p for kdump Message-ID: <20191030093313.GA7254@8bytes.org> References: 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 Hi John, On Mon, Oct 21, 2019 at 09:48:10PM -0500, John Donnelly wrote: > Fixes: 8af46c784ecfe ("iommu/vt-d: Implement is_attach_deferred iommu ops > entry") > Cc: stable@vger.kernel.org # v5.3+ > > Signed-off-by: John Donnelly > Reviewed-by: Lu Baolu > > > --- > drivers/iommu/intel-iommu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c > index c4e0e4a9ee9e..f83a9a302f8e 100644 > --- a/drivers/iommu/intel-iommu.c > +++ b/drivers/iommu/intel-iommu.c > @@ -2783,7 +2783,7 @@ static int identity_mapping(struct device *dev) > struct device_domain_info *info; > > info = dev->archdata.iommu; > - if (info && info != DUMMY_DEVICE_DOMAIN_INFO) > + if (info && info != DUMMY_DEVICE_DOMAIN_INFO && info != > DEFER_DEVICE_DOMAIN_INFO) > return (info->domain == si_domain); > > return 0; I applied your patch for v5.4, but it needed manual fixup because your mailer screwed up the patch format by inserting line-breaks and converting tabs to spaces. Please consider to setup and use 'git send-email' for your next patches. This will get it all right and makes life easier for maintainers that want to apply your patches. Thanks, Joerg