From: Krishna chaitanya chundru <quic_krichai@quicinc.com>
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>
Subject: [PATCH v2 0/4] perf/dwc_pcie: Fix registration issue in multi PCIe controller instances
Date: Fri, 16 Aug 2024 20:47:19 +0530 [thread overview]
Message-ID: <20240816-dwc_pmu_fix-v2-0-198b8ab1077c@quicinc.com> (raw)
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 & driver 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>
---
Changes in v2:
- Use platform dev id for instead of encoding again (Yicong Yang).
- Register for driver always along with bus notifier(Yicong Yang).
- Link to v1: https://lore.kernel.org/r/20240731-dwc_pmu_fix-v1-0-ca47d153e5b2@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 | 22 +++++++++-------------
2 files changed, 17 insertions(+), 21 deletions(-)
---
base-commit: b236787b0da563e3bad0dab1b4b9a5bb54eabd39
change-id: 20240731-dwc_pmu_fix-3729bd3657fe
prerequisite-change-id: 20240728-mhi_runtime_pm-2383b74c71ed:v1
prerequisite-patch-id: 90e73ba7ee4538c67f21f7f23ae4d931cb6e9967
Best regards,
--
Krishna chaitanya chundru <quic_krichai@quicinc.com>
next reply other threads:[~2024-08-16 15:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-16 15:17 Krishna chaitanya chundru [this message]
2024-08-16 15:17 ` [PATCH v2 1/4] " Krishna chaitanya chundru
2024-08-20 12:33 ` Yicong Yang
2024-08-16 15:17 ` [PATCH v2 2/4] Documentation: dwc_pcie_pmu: Update bdf to sbdf Krishna chaitanya chundru
2024-08-16 15:17 ` [PATCH v2 3/4] perf/dwc_pcie: Always register for PCIe bus notifier Krishna chaitanya chundru
2024-08-20 12:31 ` Yicong Yang
2024-08-16 15:17 ` [PATCH v2 4/4] perf/dwc_pcie: Add support for QCOM vendor devices Krishna chaitanya chundru
2024-08-23 17:02 ` [PATCH v2 0/4] perf/dwc_pcie: Fix registration issue in multi PCIe controller instances Will Deacon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240816-dwc_pmu_fix-v2-0-198b8ab1077c@quicinc.com \
--to=quic_krichai@quicinc.com \
--cc=Jonathan.Cameron@huawei.com \
--cc=baolin.wang@linux.alibaba.com \
--cc=corbet@lwn.net \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=quic_mrana@quicinc.com \
--cc=quic_nitegupt@quicinc.com \
--cc=quic_parass@quicinc.com \
--cc=quic_ramkri@quicinc.com \
--cc=quic_skananth@quicinc.com \
--cc=quic_vbadigan@quicinc.com \
--cc=renyu.zj@linux.alibaba.com \
--cc=will@kernel.org \
--cc=xueshuai@linux.alibaba.com \
--cc=yangyicong@hisilicon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®