Received: by 2002:a05:7208:c250:b0:86:f851:443 with SMTP id w16csp952024rbd; Thu, 13 Jun 2024 02:16:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWcuOxrEiNWz+O0idwtGbdGwjSiXF1DRtcCt+eQ4zsX8aH7snClfzUzB8HKohJR7i+xsi8pAfcGUGnD4sGyfsyp6iinDPjpNS49+4yOuw== X-Google-Smtp-Source: AGHT+IEIqlTEnzBam4M2EAEb+b8Ld1z+kG+b2AISjYy8kCiE03cn6YtuS3DlvK0m8oRFA9sCRi+Q X-Received: by 2002:a0c:f142:0:b0:6af:f898:71f1 with SMTP id 6a1803df08f44-6b2a33e9b3amr36627106d6.21.1718270201736; Thu, 13 Jun 2024 02:16:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718270201; cv=pass; d=google.com; s=arc-20160816; b=rSJIt+aCvmG1OzDsO4lhSd0rK+R/Is66dfnLY8tZ53Q24BqGdgMuPKlTOT9BmlJZEj LQk3t8guaGY4NltmfiNe7uJHbS0TQLr8In3Yf7tO32qAZ3IgVHNksDOZMAzjwaDMpkyr Zj/CliDkD+dD7Ndz2rydeb4GCe7i+tcbGSkwJACVUzUXbdjH/h4Zmlojq6NPNviHRDE0 mey5i6n/caHICmkgxQdeefygnUH1HrSDK9v0kqK0v9Lf00Dj+2wHcaktAMlTeryiACTt VquCw/hVHhl/i3m1Xxj1tRUvNOVPTciq9QAfV4CsK6qUKUrw+8ff7iLa7bHG8APxApr4 mcmg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qfrOaFmn1+XbgBuU0crdcju720xZzfdr9jVyRRqFVUI=; fh=tTeF3RoDwCV25yWbWYmg2qaIXUf2+LKh6CP8ynZStOs=; b=dXdiXQ+Ccg6KID6nPCQ/lmbZUMdD+quTyn6/af2B6dpWh94Fb8Z+IaOyu8wNTnat2/ Ct4CAeRcszyBITMUJJlnAoJU8VJwL99YfE0OQ6LglDv3ipPbmHb86AjUNzt2x4FxKxU8 +MNqnaN8j60djUJYZ3RYRzTUnLh7PAMPjC//Ln3TbLXDmDTJhYIZG6ko2GD7sQXIs4ga 6Z0f1rUZz6AfexzGCKCw7OTZ6kZYXOAVoNQbA97sLjApc+4wkShA2ilBzuUWFKsAhd2/ QBzI/viypBNMBrVcnW/lXa4ScjNYfUWY9Z1kS46UFgMGBjslUz0ekArBShu/VHPHG7wR yNNw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@8bytes.org header.s=default header.b="L2ztk/XA"; arc=pass (i=1 spf=pass spfdomain=8bytes.org dkim=pass dkdomain=8bytes.org); spf=pass (google.com: domain of linux-kernel+bounces-212927-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212927-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6b2a5a35e86si10111316d6.181.2024.06.13.02.16.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 02:16:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212927-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@8bytes.org header.s=default header.b="L2ztk/XA"; arc=pass (i=1 spf=pass spfdomain=8bytes.org dkim=pass dkdomain=8bytes.org); spf=pass (google.com: domain of linux-kernel+bounces-212927-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212927-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 7AB701C21C28 for ; Thu, 13 Jun 2024 09:16:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE9A713DDA4; Thu, 13 Jun 2024 09:16:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=8bytes.org header.i=@8bytes.org header.b="L2ztk/XA" Received: from mail.8bytes.org (mail.8bytes.org [85.214.250.239]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A10F929AB for ; Thu, 13 Jun 2024 09:16:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.214.250.239 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718270196; cv=none; b=Ymk0GNI7f88KFXInzs9zUaSSvfovJ25izQXcPu8dJnCabhshtcFVvcOGuzSju4t2ZSJHyGTPA0RGI4dr5al7MIoAv2mqHmGmgcKrLsi4fzHx4syo4kOo+tFJfsttXiYHBk+R81nfrpMuTSRH+QMnTLKrDLGEY8B8aHc9JJhRYGc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718270196; c=relaxed/simple; bh=LPWIOse+YFlkFcyvFtEOOyBQYQP0Mbqf1JcsJOhIcyY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Djz+xbF83dUIA3ENZjV+vp6CCfPKFQO/3DsovVVHyMPrSQ8Q9IpY/UwNRrpHUO15NTpIpf95Mlrs2PT0+E6Ky2VU00pfWBkt3336jI1G3HRNdBhhQZC3/OVpcY7UCzCdfm58fGzXCTlGt1z0y8Xb1Rv6cCcyBWdkt25191AV5kU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=8bytes.org; spf=pass smtp.mailfrom=8bytes.org; dkim=pass (2048-bit key) header.d=8bytes.org header.i=@8bytes.org header.b=L2ztk/XA; arc=none smtp.client-ip=85.214.250.239 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=8bytes.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=8bytes.org Received: from 8bytes.org (pd9fe9dd8.dip0.t-ipconnect.de [217.254.157.216]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.8bytes.org (Postfix) with ESMTPSA id 944641C0BD3; Thu, 13 Jun 2024 11:16:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=8bytes.org; s=default; t=1718270193; bh=LPWIOse+YFlkFcyvFtEOOyBQYQP0Mbqf1JcsJOhIcyY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=L2ztk/XAasnW7MKlKOWfczlO6ccl+jh2A0pPkt1uASxflfNLfpYHs/WKirS3KUcP5 7Af0W0cyPjiRQ/F/T7xD/IiXOw1GYvyKCOTeoL+B+IPp7dAwTFinzEBuwHIXLC5Yov tiMaAe/FbMPy/jAbYugNzEmj/L/EptP9EUqyr1p7u8GhM+HyGN08sBlphaFAb+T+Ac N8RquNzqdn8G1omybxKNrlblmPZSp0REhvowKAwxF4i7AX9rw/Fx603sCiwZV1JE1p fExx7QpHCwskIQyiYWK8E2SPXhWxqZI4j7R81NaQckZVzvCGFepQBReaCMvqL9yo1a rieuqifrIts7g== Date: Thu, 13 Jun 2024 11:16:32 +0200 From: Joerg Roedel To: Dimitri Sivanich Cc: Yi Zhang , "Tian, Kevin" , Vasant Hegde , Baolu Lu , Suravee Suthikulpanit , Will Deacon , Robin Murphy , David Wang <00107082@163.com>, Shinichiro Kawasaki , iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Steve Wahl , Russ Anderson Subject: Re: [PATCH] iommu/amd: Fix panic accessing amd_iommu_enable_faulting Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, May 30, 2024 at 01:36:03PM -0500, Dimitri Sivanich wrote: > This fixes a bug introduced by commit d74169ceb0d2 ("iommu/vt-d: Allocate > DMAR fault interrupts locally"). The panic happens when > amd_iommu_enable_faulting is called from CPUHP_AP_ONLINE_DYN context. > > Fixes: d74169ceb0d2 ("iommu/vt-d: Allocate DMAR fault interrupts locally") > Signed-off-by: Dimitri Sivanich > Tested-by: Yi Zhang > --- > drivers/iommu/amd/init.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied to iommu/fixes, thanks.