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=1796442375; b=ULidliYsFu1TZvMoEMySvqWPhNsu420zhIiljQteMYDjORD9B1CrItmRiJUX6npaesMV ofb1FDwGTA3I/V6vkzsUo5oBhBrj+4oPqwY/Z/9sh8qnfvuQv6q3/+xcTd+KYM74pkqyt HZ58gFmGQdRN8p/+ykw/o8ThcdgonfQUOkfUT1sYvlz1eDX7LZxT9k/o2iHeZNzUtqAA4 88uLcbTdRvmkZ/alIMgIYN3NFTcq/FiEh6Vijqqe/4Uk3Ioe8c1IPE88Q+fgLJvbjjkwG ZcRioD89VfzlnevpCDGkhu0Iwe43bgDUwAYnnLR2hidsnemnYjUZT8L2zVP5PDTiiOg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796442375; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=41f6t2hD0LLa+OLKchbx8WwCbk1Nil9j/Hdde8cO4xA=; b=23bTFAEsvhmJUtNQ9cUDsVfKzyRpFohQr1T4SNni4QpS0sLcDybeabORaiDbZ9c8oBbx 8Nmp94Px1D6haINqMwWq+WQrfOShEdnAea83HiLUvfr0v/MG1nHAUWutMSmZIrLqnbn8g TyC1t+b4b40Vs+ruC7QsgbAUplyrXhlpG6q1yY4J+TrmkoOMA7y9qRXDH8CesCwxjBliy EbNJSWuFgttGr4gzamBvSxtYaaEyHnWq28Uaxr1cwu+gpMjX+ovKIBb1nz+B+HB+hS254 sz96B6h460AWiRvHZd1VB4bLS72pebuoXKvlVAfreziFWTqsjCQMHbGA2IJ0usNrrLA== 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=fQC1I9+V; 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 60696606A322 for ; Sat, 5 Dec 2026 03:46:15 +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=fQC1I9+V Received: by smtp.kernel.org (Postfix) with ESMTPSA id 240CA1F0092B; Sat, 5 Dec 2026 03:46:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796442375; bh=41f6t2hD0LLa+OLKchbx8WwCbk1Nil9j/Hdde8cO4xA=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=fQC1I9+VDZdnBOWpHf4L0VLXWNYfhk1rRySd/G7kT1XIa6+xlKbqKyR+fCnBTMi+p SeQm4vlD7I7Oq/CCLsluIhTy20Zig+hJ3QKCvxczrFfIo8Y9QOPADS/C5J+aVDSFWS Yj3ZFD3lWbCNFwDtbnHeKColyEDe8psiwXUP7VrzYEV1NJjmSj5wgQJn8NwXm5ToNJ P4St+polx3IPOte1BcAoFRGQdcQTI445tbp6f1DDII49CDEFD5a/drbw1tLlzMlU4l Yxyk8poVz4R26oAvdvTVgBlB5epF4Vl+Sk+EgGxzNR71dj0PWk3Xw2DgT2kgwRDhvf W/6OaZS/Tgh2A== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 08/12] perf/x86/intel/uncore: Drop spr_uncore_pci_ops for generic PCI Reply-To: sashiko-reviews@lists.linux.dev To: "Zide Chen" Cc: linux-perf-users@vger.kernel.org In-Reply-To: <20261205032253.258646-9-zide.chen@intel.com> References: <20261205032253.258646-1-zide.chen@intel.com> <20261205032253.258646-9-zide.chen@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 03:46:14 +0000 X-Mailing-List: linux-perf-users@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 2 potential issues to consider: - [Low] perf/x86/intel/uncore: five generic PCI callbacks remain non-static - [Low] perf/x86/intel/uncore: redundant ops and ctl_offs8 in PCI format macro -- commit 5f71697af3492a89c48cdbab965d8b6947a44340 Author: Zide Chen perf/x86/intel/uncore: Drop spr_uncore_pci_ops for generic PCI This commit exports generic_uncore_pci_ops as intel_generic_uncore_pci_ops and removes spr_uncore_pci_ops and spr_uncore_pci_enable_event() in favor of the generic PCI ops. > diff --git a/arch/x86/events/intel/uncore_discovery.h b/arch/x86/events/i= ntel/uncore_discovery.h > index 58746f9868a72..04778b1c22a94 100644 > --- a/arch/x86/events/intel/uncore_discovery.h > +++ b/arch/x86/events/intel/uncore_discovery.h > @@ -168,6 +168,7 @@ void intel_generic_uncore_pci_disable_event(struct in= tel_uncore_box *box, > struct perf_event *event); > u64 intel_generic_uncore_pci_read_counter(struct intel_uncore_box *box, > struct perf_event *event); > +extern struct intel_uncore_ops intel_generic_uncore_pci_ops; [Severity: Low] Can the five individual PCI callbacks (intel_generic_uncore_pci_init_box(), intel_generic_uncore_pci_disable_box(), intel_generic_uncore_pci_enable_box= (), intel_generic_uncore_pci_disable_event(), and intel_generic_uncore_pci_read_counter()) be made static again, with their prototypes dropped from uncore_discovery.h? After removing spr_uncore_pci_ops, none of them have any remaining callers outside arch/x86/events/intel/uncore_discovery.c. > diff --git a/arch/x86/events/intel/uncore_snbep.c b/arch/x86/events/intel= /uncore_snbep.c > index 14232ef4f77bd..0b8057d142c11 100644 > --- a/arch/x86/events/intel/uncore_snbep.c > +++ b/arch/x86/events/intel/uncore_snbep.c [ ... ] > #define SPR_UNCORE_PCI_COMMON_FORMAT() \ > SPR_UNCORE_COMMON_FORMAT(), \ > .ctl_offs8 =3D 1, \ > - .ops =3D &spr_uncore_pci_ops > + .ops =3D &intel_generic_uncore_pci_ops [Severity: Low] Can SPR_UNCORE_PCI_COMMON_FORMAT() be dropped in favor of SPR_UNCORE_COMMON_FORMAT()? uncore_update_uncore_type() already sets ctl_offs8 and intel_generic_uncore_pci_ops for discovered UNCORE_ACCESS_PCI types, and only spr_uncore_m3upi among this macro's users bypasses discovery. Setting .ctl_offs8 and .ops explicitly on spr_uncore_m3upi (matching spr_uncore_upi) avoids repeating them on the six discovered types, similar to commit "perf/x86/intel/uncore: Drop spr_uncore_mmio_ops for generic MMIO". --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261205032253.2586= 46-1-zide.chen@intel.com?part=3D8