linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] accel/qaic: Add ipc_router channel
@ 2024-10-04 16:40 Jeffrey Hugo
  2024-10-08  8:12 ` Jacek Lawrynowicz
  2024-10-12 20:52 ` Jeffrey Hugo
  0 siblings, 2 replies; 3+ messages in thread
From: Jeffrey Hugo @ 2024-10-04 16:40 UTC (permalink / raw)
  To: quic_carlv
  Cc: ogabbay, corbet, linux-arm-msm, dri-devel, linux-doc,
	jacek.lawrynowicz, Jeffrey Hugo

The ipc_router channel allows AF_QIPCRTR clients and services to
communicate with the AIC100 device. The ipc_router MHI transport layer
expects the channel to be named exactly "IPCR".

Reviewed-by: Carl Vanderlip <quic_carlv@quicinc.com>
Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
---
 Documentation/accel/qaic/aic100.rst |  2 ++
 drivers/accel/qaic/mhi_controller.c | 32 +++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+)

diff --git a/Documentation/accel/qaic/aic100.rst b/Documentation/accel/qaic/aic100.rst
index 590dae77ea12..273da6192fb3 100644
--- a/Documentation/accel/qaic/aic100.rst
+++ b/Documentation/accel/qaic/aic100.rst
@@ -229,6 +229,8 @@ of the defined channels, and their uses.
 | _PERIODIC      |         |          | timestamps in the device side logs with|
 |                |         |          | the host time source.                  |
 +----------------+---------+----------+----------------------------------------+
+| IPCR           | 24 & 25 | AMSS     | AF_QIPCRTR clients and servers.        |
++----------------+---------+----------+----------------------------------------+
 
 DMA Bridge
 ==========
diff --git a/drivers/accel/qaic/mhi_controller.c b/drivers/accel/qaic/mhi_controller.c
index ada9b1eb0787..8ab82e78dd94 100644
--- a/drivers/accel/qaic/mhi_controller.c
+++ b/drivers/accel/qaic/mhi_controller.c
@@ -405,6 +405,38 @@ static const struct mhi_channel_config aic100_channels[] = {
 		.auto_queue = false,
 		.wake_capable = false,
 	},
+	{
+		.name = "IPCR",
+		.num = 24,
+		.num_elements = 32,
+		.local_elements = 0,
+		.event_ring = 0,
+		.dir = DMA_TO_DEVICE,
+		.ee_mask = MHI_CH_EE_AMSS,
+		.pollcfg = 0,
+		.doorbell = MHI_DB_BRST_DISABLE,
+		.lpm_notify = false,
+		.offload_channel = false,
+		.doorbell_mode_switch = false,
+		.auto_queue = false,
+		.wake_capable = false,
+	},
+	{
+		.name = "IPCR",
+		.num = 25,
+		.num_elements = 32,
+		.local_elements = 0,
+		.event_ring = 0,
+		.dir = DMA_FROM_DEVICE,
+		.ee_mask = MHI_CH_EE_AMSS,
+		.pollcfg = 0,
+		.doorbell = MHI_DB_BRST_DISABLE,
+		.lpm_notify = false,
+		.offload_channel = false,
+		.doorbell_mode_switch = false,
+		.auto_queue = true,
+		.wake_capable = false,
+	},
 };
 
 static struct mhi_event_config aic100_events[] = {
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] accel/qaic: Add ipc_router channel
  2024-10-04 16:40 [PATCH] accel/qaic: Add ipc_router channel Jeffrey Hugo
@ 2024-10-08  8:12 ` Jacek Lawrynowicz
  2024-10-12 20:52 ` Jeffrey Hugo
  1 sibling, 0 replies; 3+ messages in thread
From: Jacek Lawrynowicz @ 2024-10-08  8:12 UTC (permalink / raw)
  To: Jeffrey Hugo, quic_carlv
  Cc: ogabbay, corbet, linux-arm-msm, dri-devel, linux-doc

Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>

On 10/4/2024 6:40 PM, Jeffrey Hugo wrote:
> The ipc_router channel allows AF_QIPCRTR clients and services to
> communicate with the AIC100 device. The ipc_router MHI transport layer
> expects the channel to be named exactly "IPCR".
> 
> Reviewed-by: Carl Vanderlip <quic_carlv@quicinc.com>
> Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
> ---
>  Documentation/accel/qaic/aic100.rst |  2 ++
>  drivers/accel/qaic/mhi_controller.c | 32 +++++++++++++++++++++++++++++
>  2 files changed, 34 insertions(+)
> 
> diff --git a/Documentation/accel/qaic/aic100.rst b/Documentation/accel/qaic/aic100.rst
> index 590dae77ea12..273da6192fb3 100644
> --- a/Documentation/accel/qaic/aic100.rst
> +++ b/Documentation/accel/qaic/aic100.rst
> @@ -229,6 +229,8 @@ of the defined channels, and their uses.
>  | _PERIODIC      |         |          | timestamps in the device side logs with|
>  |                |         |          | the host time source.                  |
>  +----------------+---------+----------+----------------------------------------+
> +| IPCR           | 24 & 25 | AMSS     | AF_QIPCRTR clients and servers.        |
> ++----------------+---------+----------+----------------------------------------+
>  
>  DMA Bridge
>  ==========
> diff --git a/drivers/accel/qaic/mhi_controller.c b/drivers/accel/qaic/mhi_controller.c
> index ada9b1eb0787..8ab82e78dd94 100644
> --- a/drivers/accel/qaic/mhi_controller.c
> +++ b/drivers/accel/qaic/mhi_controller.c
> @@ -405,6 +405,38 @@ static const struct mhi_channel_config aic100_channels[] = {
>  		.auto_queue = false,
>  		.wake_capable = false,
>  	},
> +	{
> +		.name = "IPCR",
> +		.num = 24,
> +		.num_elements = 32,
> +		.local_elements = 0,
> +		.event_ring = 0,
> +		.dir = DMA_TO_DEVICE,
> +		.ee_mask = MHI_CH_EE_AMSS,
> +		.pollcfg = 0,
> +		.doorbell = MHI_DB_BRST_DISABLE,
> +		.lpm_notify = false,
> +		.offload_channel = false,
> +		.doorbell_mode_switch = false,
> +		.auto_queue = false,
> +		.wake_capable = false,
> +	},
> +	{
> +		.name = "IPCR",
> +		.num = 25,
> +		.num_elements = 32,
> +		.local_elements = 0,
> +		.event_ring = 0,
> +		.dir = DMA_FROM_DEVICE,
> +		.ee_mask = MHI_CH_EE_AMSS,
> +		.pollcfg = 0,
> +		.doorbell = MHI_DB_BRST_DISABLE,
> +		.lpm_notify = false,
> +		.offload_channel = false,
> +		.doorbell_mode_switch = false,
> +		.auto_queue = true,
> +		.wake_capable = false,
> +	},
>  };
>  
>  static struct mhi_event_config aic100_events[] = {


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] accel/qaic: Add ipc_router channel
  2024-10-04 16:40 [PATCH] accel/qaic: Add ipc_router channel Jeffrey Hugo
  2024-10-08  8:12 ` Jacek Lawrynowicz
@ 2024-10-12 20:52 ` Jeffrey Hugo
  1 sibling, 0 replies; 3+ messages in thread
From: Jeffrey Hugo @ 2024-10-12 20:52 UTC (permalink / raw)
  To: quic_carlv
  Cc: ogabbay, corbet, linux-arm-msm, dri-devel, linux-doc,
	jacek.lawrynowicz

On 10/4/2024 10:40 AM, Jeffrey Hugo wrote:
> The ipc_router channel allows AF_QIPCRTR clients and services to
> communicate with the AIC100 device. The ipc_router MHI transport layer
> expects the channel to be named exactly "IPCR".
> 
> Reviewed-by: Carl Vanderlip <quic_carlv@quicinc.com>
> Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com>

Pushed to drm-misc-next.

-Jeff

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-10-12 20:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-04 16:40 [PATCH] accel/qaic: Add ipc_router channel Jeffrey Hugo
2024-10-08  8:12 ` Jacek Lawrynowicz
2024-10-12 20:52 ` Jeffrey Hugo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).