From: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
To: Mrinmay Sarkar <quic_msarkar@quicinc.com>
Cc: quic_shazhuss@quicinc.com, quic_ramkri@quicinc.com,
quic_nayiluri@quicinc.com, quic_krichai@quicinc.com,
quic_vbadigan@quicinc.com, quic_nitegupt@quicinc.com,
"Krzysztof Wilczyński" <kw@linux.com>,
"Kishon Vijay Abraham I" <kishon@kernel.org>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"Slark Xiao" <slark_xiao@163.com>,
"Qiang Yu" <quic_qianyu@quicinc.com>,
"Mank Wang" <mank.wang@netprisma.us>,
"Fabio Porcedda" <fabio.porcedda@gmail.com>,
"Jeff Johnson" <quic_jjohnson@quicinc.com>,
mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org
Subject: Re: [PATCH v1 1/2] bus: mhi: host: pci_generic: Add supoprt for SA8775P target
Date: Sat, 22 Feb 2025 22:40:12 +0530 [thread overview]
Message-ID: <20250222171012.2zjqs2fbgiesek63@thinkpad> (raw)
In-Reply-To: <20241205065422.2515086-2-quic_msarkar@quicinc.com>
On Thu, Dec 05, 2024 at 12:24:19PM +0530, Mrinmay Sarkar wrote:
> Add generic info for SA8775P target. SA8775P supports IP_SW
> usecase only. Hence use separate configuration to enable IP_SW
> channel.
>
> Signed-off-by: Mrinmay Sarkar <quic_msarkar@quicinc.com>
Applied to mhi-next!
- Mani
> ---
> drivers/bus/mhi/host/pci_generic.c | 34 ++++++++++++++++++++++++++++++
> 1 file changed, 34 insertions(+)
>
> diff --git a/drivers/bus/mhi/host/pci_generic.c b/drivers/bus/mhi/host/pci_generic.c
> index 56ba4192c89c..b62a05e854e9 100644
> --- a/drivers/bus/mhi/host/pci_generic.c
> +++ b/drivers/bus/mhi/host/pci_generic.c
> @@ -245,6 +245,19 @@ struct mhi_pci_dev_info {
> .channel = ch_num, \
> }
>
> +static const struct mhi_channel_config modem_qcom_v2_mhi_channels[] = {
> + MHI_CHANNEL_CONFIG_UL(46, "IP_SW0", 2048, 1),
> + MHI_CHANNEL_CONFIG_DL(47, "IP_SW0", 2048, 2),
> +};
> +
> +static struct mhi_event_config modem_qcom_v2_mhi_events[] = {
> + /* first ring is control+data ring */
> + MHI_EVENT_CONFIG_CTRL(0, 64),
> + /* Software channels dedicated event ring */
> + MHI_EVENT_CONFIG_SW_DATA(1, 64),
> + MHI_EVENT_CONFIG_SW_DATA(2, 64),
> +};
> +
> static const struct mhi_channel_config modem_qcom_v1_mhi_channels[] = {
> MHI_CHANNEL_CONFIG_UL(4, "DIAG", 16, 1),
> MHI_CHANNEL_CONFIG_DL(5, "DIAG", 16, 1),
> @@ -275,6 +288,15 @@ static struct mhi_event_config modem_qcom_v1_mhi_events[] = {
> MHI_EVENT_CONFIG_HW_DATA(5, 2048, 101)
> };
>
> +static const struct mhi_controller_config modem_qcom_v3_mhiv_config = {
> + .max_channels = 128,
> + .timeout_ms = 8000,
> + .num_channels = ARRAY_SIZE(modem_qcom_v2_mhi_channels),
> + .ch_cfg = modem_qcom_v2_mhi_channels,
> + .num_events = ARRAY_SIZE(modem_qcom_v2_mhi_events),
> + .event_cfg = modem_qcom_v2_mhi_events,
> +};
> +
> static const struct mhi_controller_config modem_qcom_v2_mhiv_config = {
> .max_channels = 128,
> .timeout_ms = 8000,
> @@ -294,6 +316,16 @@ static const struct mhi_controller_config modem_qcom_v1_mhiv_config = {
> .event_cfg = modem_qcom_v1_mhi_events,
> };
>
> +static const struct mhi_pci_dev_info mhi_qcom_sa8775p_info = {
> + .name = "qcom-sa8775p",
> + .edl_trigger = false,
> + .config = &modem_qcom_v3_mhiv_config,
> + .bar_num = MHI_PCI_DEFAULT_BAR_NUM,
> + .dma_data_width = 32,
> + .mru_default = 32768,
> + .sideband_wake = false,
> +};
> +
> static const struct mhi_pci_dev_info mhi_qcom_sdx75_info = {
> .name = "qcom-sdx75m",
> .fw = "qcom/sdx75m/xbl.elf",
> @@ -720,6 +752,8 @@ static const struct mhi_pci_dev_info mhi_netprisma_fcun69_info = {
>
> /* Keep the list sorted based on the PID. New VID should be added as the last entry */
> static const struct pci_device_id mhi_pci_id_table[] = {
> + {PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x0116),
> + .driver_data = (kernel_ulong_t) &mhi_qcom_sa8775p_info },
> { PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x0304),
> .driver_data = (kernel_ulong_t) &mhi_qcom_sdx24_info },
> { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0306, PCI_VENDOR_ID_QCOM, 0x010c),
> --
> 2.25.1
>
--
மணிவண்ணன் சதாசிவம்
next prev parent reply other threads:[~2025-02-22 17:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-05 6:54 [PATCH v1 0/2] pci_generic: Add supoprt for SA8775P target Mrinmay Sarkar
2024-12-05 6:54 ` [PATCH v1 1/2] bus: mhi: host: " Mrinmay Sarkar
2025-02-22 17:03 ` Manivannan Sadhasivam
2025-02-22 17:10 ` Manivannan Sadhasivam [this message]
2024-12-05 6:54 ` [PATCH v1 2/2] PCI: epf-mhi: Update device id for SA8775P Mrinmay Sarkar
2025-02-21 6:05 ` [PATCH v1 0/2] pci_generic: Add supoprt for SA8775P target Krzysztof Wilczyński
2025-02-21 21:54 ` Bjorn Helgaas
2025-02-22 7:53 ` Krzysztof Wilczyński
2025-02-22 16:44 ` Manivannan Sadhasivam
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=20250222171012.2zjqs2fbgiesek63@thinkpad \
--to=manivannan.sadhasivam@linaro.org \
--cc=bhelgaas@google.com \
--cc=fabio.porcedda@gmail.com \
--cc=kishon@kernel.org \
--cc=kw@linux.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=mank.wang@netprisma.us \
--cc=mhi@lists.linux.dev \
--cc=quic_jjohnson@quicinc.com \
--cc=quic_krichai@quicinc.com \
--cc=quic_msarkar@quicinc.com \
--cc=quic_nayiluri@quicinc.com \
--cc=quic_nitegupt@quicinc.com \
--cc=quic_qianyu@quicinc.com \
--cc=quic_ramkri@quicinc.com \
--cc=quic_shazhuss@quicinc.com \
--cc=quic_vbadigan@quicinc.com \
--cc=slark_xiao@163.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