Message ID | 20240731-dwc_pmu_fix-v1-0-ca47d153e5b2@quicinc.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C24F9C3DA7F for <linux-arm-kernel@archiver.kernel.org>; Wed, 31 Jul 2024 04:25:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:CC:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=kzm1jRL6SI6UfGBCw5gpDrXeajN3h3M3pwvuh7+sPcY=; b=w+Sp4742aaVP3R 2Qwq6OSw35RsVfEhtMhb/Z6aYQCtDxVbynC4sz9bQUWJKusnPYFwHsnsDFTYkft6oABcBDych4Ulu ftjH/11qbMFBDk7opLxIkE2ryixngLriYR8AqUJ/ohRTqxOVp2tdf8Rv9/TYWnar8LUFYs+35ODfb d2sIT7yib4wqUd3f5t+B22ZnkrkBxchPxJshrODDSBz/0i2RMyhVzHGgyRDdYRS47FW4Z/Z05nm+H qYkNw0Le8YyU4gwuukMZCgRdXIWoiA9lCIieEvSchrKqjH7qPCDjL/5pJ2iWUMMZZY+L35BsKUlPj tDZF1k4Nlxo87I/ZQPBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ0tg-0000000HGdV-3XEn; Wed, 31 Jul 2024 04:25:08 +0000 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sZ0tD-0000000HGVU-3BDN for linux-arm-kernel@lists.infradead.org; Wed, 31 Jul 2024 04:24:41 +0000 Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 46UInbqi030011; Wed, 31 Jul 2024 04:24:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=kzm1jRL6SI6UfGBCw5gpDr XeajN3h3M3pwvuh7+sPcY=; b=Nt0BXTfHudJftz2v8Ojnb/byb1ooosSaDnieT7 2i2tRA6DFTA2N6AxvEYeH4+VJ5IA8IJv6xS8kNQE+fCsRrJizMb730NwILnMJ+3A 3Zkce3oyrh9McBzvERIcvAL6whTcJDYC+Ktcje29179wUfVAwEhHFBHWQDARJDX9 cvRYc/2mOT7kBEeKFaWrDOi0MXapVTTASyxKv7y+QwH8brBa9lLmv0Wjh+BRMaC3 tEiiGDyrjrpES+eR8Cgiu3n2U/Tzwk3IU/dFwiJt0fuDG1XrxpW4I00jX7lQNlJB tsNTFnfGbNvXsnUN4voIN2QNHWIQQfHE9t+n1Z7lZRnkQQsQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 40pq523y6w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 Jul 2024 04:24:12 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.19/8.17.1.19) with ESMTPS id 46V4OBKd009322 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 31 Jul 2024 04:24:11 GMT Received: from hu-krichai-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 30 Jul 2024 21:24:05 -0700 From: Krishna chaitanya chundru <quic_krichai@quicinc.com> Subject: [PATCH 0/4] perf/dwc_pcie: Fix registration issue in multi PCIe controller instances Date: Wed, 31 Jul 2024 09:53:36 +0530 Message-ID: <20240731-dwc_pmu_fix-v1-0-ca47d153e5b2@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAEi8qWYC/0XMQQ7CIBCF4auQWUtSoErtVUxDLEztLMAKpZo0v btEFi7/l7xvh4SRMEHPdoi4UaJnKCFODOx8Dw/k5EqDbGTbaCW4e1uz+Gwm+nCl5XV06nLWE0J 5LBHL/NNuQ+2Ir1zQtY5/s2dVlB33M5mYw0oei8yl6tSoW6sFun4TMBzHF/oDJ/SmAAAA To: Shuai Xue <xueshuai@linux.alibaba.com>, Jing Zhang <renyu.zj@linux.alibaba.com>, Will Deacon <will@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Baolin Wang <baolin.wang@linux.alibaba.com>, "Yicong Yang" <yangyicong@hisilicon.com>, Jonathan Cameron <Jonathan.Cameron@huawei.com>, Jonathan Corbet <corbet@lwn.net> CC: <linux-arm-kernel@lists.infradead.org>, <linux-arm-msm@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-doc@vger.kernel.org>, <quic_vbadigan@quicinc.com>, <quic_nitegupt@quicinc.com>, <quic_skananth@quicinc.com>, <quic_ramkri@quicinc.com>, <quic_parass@quicinc.com>, <quic_mrana@quicinc.com>, "Krishna chaitanya chundru" <quic_krichai@quicinc.com> X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1722399845; l=1490; i=quic_krichai@quicinc.com; s=20230907; h=from:subject:message-id; bh=gC55R/LR5rglSPT450KhTYFt9Uhepv4JwfPxoU/ftAg=; b=0TIKgAOflcux4t2V9iPtj7DVevURpWWXCRGvxsKZi+o6TULGDlJ3RdNxLpg/VIZqROQ0rxTaP G3LX44vR15fAEc2MfPYtq8Bc9xbzq0MWl3oSZiWPk3WTgGeqNWt27T4 X-Developer-Key: i=quic_krichai@quicinc.com; a=ed25519; pk=10CL2pdAKFyzyOHbfSWHCD0X0my7CXxj8gJScmn1FAg= X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: mQmYymkcDM8gGNTG8BgZnsHEsmKOeH4n X-Proofpoint-ORIG-GUID: mQmYymkcDM8gGNTG8BgZnsHEsmKOeH4n X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-31_01,2024-07-30_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxlogscore=999 adultscore=0 priorityscore=1501 spamscore=0 bulkscore=0 mlxscore=0 lowpriorityscore=0 clxscore=1011 malwarescore=0 suspectscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2407110000 definitions=main-2407310031 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240730_212439_946648_0D0C82EE X-CRM114-Status: GOOD ( 12.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
perf/dwc_pcie: Fix registration issue in multi PCIe controller instances
|
expand
|
When there are multiple of instances of PCIe controllers, registration to perf driver fails with this error. This is because of having same bdf value for devices under two different controllers. Update the logic to use sbdf which is a unique number in case of multi instance also. When the PCIe devices are discovered late, the driver can't find the PCIe devices and returns in the init without registering with the bus notifier. Due to that the devices which are discovered late the driver can't register for this. Register for bus notifier even if the device is not found in init. Update the vendor table with QCOM PCIe vendorid to support QCOM devices. Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com> --- Krishna chaitanya chundru (4): perf/dwc_pcie: Fix registration issue in multi PCIe controller instances Documentation: dwc_pcie_pmu: Update bdf to sbdf perf/dwc_pcie: Always register for PCIe bus notifier perf/dwc_pcie: Add support for QCOM vendor devices Documentation/admin-guide/perf/dwc_pcie_pmu.rst | 16 +++++++-------- drivers/perf/dwc_pcie_pmu.c | 27 +++++++++++++------------ 2 files changed, 22 insertions(+), 21 deletions(-) --- base-commit: b236787b0da563e3bad0dab1b4b9a5bb54eabd39 change-id: 20240731-dwc_pmu_fix-3729bd3657fe prerequisite-change-id: 20240728-mhi_runtime_pm-2383b74c71ed:v1 Best regards,