From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796403705; b=ahzxdkLvpj297IHhz2oktzeKQCdt/NOzlbAjFW2LComRlRw5QtCFjCddBL9iNd/FMUEu RZAmAfgkyJsNiMovcn/gV9ZX5oyP5kJSKBCAKhT/oOKqLTq83tC29Ts3jhNKqoMMMvrhW xdwz6wfxZvlT/uPYhbCZTRlcJI+sJYDGNcZmuXEyG7GeYIGSUDdQ0HTebR1sw7yp8kaj1 BwsaEzI7sxvhRUOtlbL8f120K6m4CfOxZFEnWA3nC6swyb8NzcXZMWf09/DUr8MaQ10A6 X+958oOAIk5auZTZVfIaWO315j5T6DoAdL7nAXSJAo4sS2IXD86Ck5pP1tRtaf06O7Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796403705; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=1dGTjUPmFxL0XnRWks5KmL+HldBuErHyk+nh61dXiNY=; b=r/SX4r4//Ud+OpQdIabCgivLPUQJ1KJIAH22JtJ++gwZiCziKlb0OSIxaP5BGhMWHFa/ 7QAUzLhH9yZ+mTr+cO6knG30Nc6wMDxWqdLHb4tn9TqtD+gnaWneTd00EJZ3CLbaVURuP pvQ61Je/o71dgoqrGHbk4/lBHrRY9ROF705UYY1UZOQMRPTFALhgbGEeA8PT53+uRPtdM ByoH8HovCGjO+iQumfSNeZ27WaOyqfECVg/4HwHzfJ5C6jxJKuUvKl+d1cRe2rHd7lcNb HrY+O7bqlmm4I4S1Dokaz8H/0iJnj9m3n2EoKVkFrax7luCWGzSSEYxLsa9+ofucMOA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=iqh4sAhO; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6928E606A681 for ; Fri, 4 Dec 2026 17:01:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=iqh4sAhO Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E8531F00A10; Fri, 4 Dec 2026 17:01:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796403704; bh=1dGTjUPmFxL0XnRWks5KmL+HldBuErHyk+nh61dXiNY=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=iqh4sAhO5KGWeHdicAPNiCoYK/KMWRACCpnRq9r8phKihGH4OzWfG/GgexPefvI8K +dPhdPW6D3VN86hiIsxIj474s5mSjnR99ZU0bM8Q8BTt7M1l+9IzgW0RK/11UjgE+i qLYvFdglxCGzAjmf6lHhibpzuCLdkeHh71TAvApQxQxkzijXIgsWig3WhWdCPThROH 96+kyUq3x5CvWKBYu4c2JUaP6lx6OW3k9n97EhWxX2iVsudJlzt+Pg9USLYk4TPnNM nOOBVO2MSn7gyzc2SYaom+iBo4iAkVrF8aORBJR2GCAB9lKZU2QKpsnkG/8FDBH/td TX06IArQKLjfg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 1/2] PCI/MSI: Allow opt-in teardown of per-device MSI domains Reply-To: sashiko-reviews@lists.linux.dev To: "Narayana Murty N" Cc: linux-pci@vger.kernel.org In-Reply-To: <20261204164141.20530-5-nnmlinux@linux.ibm.com> References: <20261204164141.20530-4-nnmlinux@linux.ibm.com> <20261204164141.20530-5-nnmlinux@linux.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 17:01:43 +0000 X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] PCI/MSI: stale domain lifetime kernel-doc in irqdomain.c -- commit e180b4378f5af0655116ebc5f45d8cebbdc50358 Author: Narayana Murty N PCI/MSI: Allow opt-in teardown of per-device MSI domains This commit adds MSI_FLAG_PCI_MSI_TEARDOWN_DOMAIN and pci_msi_teardown_device_domain() so MSI parent providers can opt in to tearing down per-device PCI MSI/MSI-X domains when vectors are disabled or when enabling vectors fails terminally. > diff --git a/drivers/pci/msi/irqdomain.c b/drivers/pci/msi/irqdomain.c > index 6e65f0f44112e..9cebee81f970a 100644 > --- a/drivers/pci/msi/irqdomain.c > +++ b/drivers/pci/msi/irqdomain.c > @@ -19,6 +19,13 @@ int pci_msi_setup_msi_irqs(struct pci_dev *dev, int nv= ec, int type) > return pci_msi_legacy_setup_msi_irqs(dev, nvec, type); > } > =20 > +void pci_msi_teardown_device_domain(struct pci_dev *dev) > +{ > + if (msi_device_domain_has_flag_locked(&dev->dev, MSI_DEFAULT_DOMAIN, > + MSI_FLAG_PCI_MSI_TEARDOWN_DOMAIN)) > + msi_remove_device_irq_domain_locked(&dev->dev, MSI_DEFAULT_DOMAIN); > +} > + > void pci_msi_teardown_msi_irqs(struct pci_dev *dev) > { > struct irq_domain *domain; [Severity: Low] Should the kernel-doc comments for pci_setup_msi_device_domain() and pci_setup_msix_device_domain() in this file also be updated? Both still state that the created domain is preserved until the device is removed or the opposite MSI/MSI-X domain is created, without mentioning that domains with MSI_FLAG_PCI_MSI_TEARDOWN_DOMAIN are also removed on vector disable or terminal enable failure. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204164141.2053= 0-4-nnmlinux@linux.ibm.com?part=3D1