Skip to contentSkip to conversation

net: ipa: QMI fixes

PATCH In review Alex Elder 2 participants 12 messages Mar 15, 2021 – Mar 16, 2021

Subsystems (3)
lore
Share & tools
lore

Alex Elder

author
#0 lore raw

cover net: ipa: QMI fixes

Mani Sadhasivam discovered some errors in the definitions of some QMI messages used for IPA. This series addresses those errors, and extends the definition of one message type to include some newly-defined fields.

-Alex

Alex Elder (3):
net: ipa: fix a duplicated tlv_type value
net: ipa: fix another QMI message definition
net: ipa: extend the INDICATION_REGISTER request

 drivers/net/ipa/ipa_qmi_msg.c | 78 +++++++++++++++++++++++++++++++----
 drivers/net/ipa/ipa_qmi_msg.h |  6 ++-
 2 files changed, 74 insertions(+), 10 deletions(-)
Signature · 1 line
2.27.0
author
#1 lore raw

PATCH 1/3 net: ipa: fix a duplicated tlv_type value

In the ipa_indication_register_req_ei[] encoding array, the tlv_type associated with the ipa_mhi_ready_ind field is wrong. It duplicates the value used for the data_usage_quota_reached field (0x11) and should use value 0x12 instead. Fix this bug.

---
 drivers/net/ipa/ipa_qmi_msg.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ipa/ipa_qmi_msg.c +2 -2
index 73413371e3d3e..e00f829a783f6 100644
@@ -56,7 +56,7 @@ struct qmi_elem_info ipa_indication_register_req_ei[] = {
 		.elem_size	=
 			sizeof_field(struct ipa_indication_register_req,
 				     ipa_mhi_ready_ind_valid),
-		.tlv_type	= 0x11,
+		.tlv_type	= 0x12,
 		.offset		= offsetof(struct ipa_indication_register_req,
 					   ipa_mhi_ready_ind_valid),
 	},
@@ -66,7 +66,7 @@ struct qmi_elem_info ipa_indication_register_req_ei[] = {
 		.elem_size	=
 			sizeof_field(struct ipa_indication_register_req,
 				     ipa_mhi_ready_ind),
-		.tlv_type	= 0x11,
+		.tlv_type	= 0x12,
 		.offset		= offsetof(struct ipa_indication_register_req,
 					   ipa_mhi_ready_ind),
 	},
Signature · 1 line
2.27.0
Acked-by on v1 1/3
#2 lore raw

Re: [PATCH net-next 1/3] net: ipa: fix a duplicated tlv_type value

Quoted 7 lines · Alex Elder

In the ipa_indication_register_req_ei[] encoding array, the tlv_type associated with the ipa_mhi_ready_ind field is wrong. It duplicates the value used for the data_usage_quota_reached field (0x11) and should use value 0x12 instead. Fix this bug.

Thanks,
Mani

Quoted 29 lines
---
 drivers/net/ipa/ipa_qmi_msg.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ipa/ipa_qmi_msg.c +2 -2
index 73413371e3d3e..e00f829a783f6 100644
@@ -56,7 +56,7 @@ struct qmi_elem_info ipa_indication_register_req_ei[] = {
 		.elem_size	=
 			sizeof_field(struct ipa_indication_register_req,
 				     ipa_mhi_ready_ind_valid),
-		.tlv_type	= 0x11,
+		.tlv_type	= 0x12,
 		.offset		= offsetof(struct ipa_indication_register_req,
 					   ipa_mhi_ready_ind_valid),
 	},
@@ -66,7 +66,7 @@ struct qmi_elem_info ipa_indication_register_req_ei[] = {
 		.elem_size	=
 			sizeof_field(struct ipa_indication_register_req,
 				     ipa_mhi_ready_ind),
-		.tlv_type	= 0x11,
+		.tlv_type	= 0x12,
 		.offset		= offsetof(struct ipa_indication_register_req,
 					   ipa_mhi_ready_ind),
 	},
Signature · 1 line
2.27.0
author
#3 lore raw

PATCH 2/3 net: ipa: fix another QMI message definition

In reply to Alex Elder

The ipa_init_modem_driver_req_ei[] encoding array for the INIT_MODEM_DRIVER request message has some errors in it.

First, the tlv_type associated with the hw_stats_quota_size field is wrong; it duplicates the valiue used for the hw_stats_quota_base_addr field (0x1f) and should use 0x20 instead. The tlv_type value for the hw_stats_drop_size field also uses the same duplicate value; it should use 0x22 instead.

Second, there is no definition for the hw_stats_drop_base_addr field. It is an optional 32-bit enumerated type value.

Finally, the hw_stats_quota_base_addr, hw_stats_quota_size, and hw_stats_drop_size fields are defined as enumerated types; they should be unsigned 4-byte values.

---
 drivers/net/ipa/ipa_qmi_msg.c | 34 +++++++++++++++++++++++++++-------
 1 file changed, 27 insertions(+), 7 deletions(-)
drivers/net/ipa/ipa_qmi_msg.c +27 -7
index e00f829a783f6..e4a6efbe9bd00 100644
@@ -530,7 +530,7 @@ struct qmi_elem_info ipa_init_modem_driver_req_ei[] = {
 					   hw_stats_quota_base_addr_valid),
 	},
 	{
-		.data_type	= QMI_SIGNED_4_BYTE_ENUM,
+		.data_type	= QMI_UNSIGNED_4_BYTE,
 		.elem_len	= 1,
 		.elem_size	=
 			sizeof_field(struct ipa_init_modem_driver_req,
@@ -545,37 +545,57 @@ struct qmi_elem_info ipa_init_modem_driver_req_ei[] = {
 		.elem_size	=
 			sizeof_field(struct ipa_init_modem_driver_req,
 				     hw_stats_quota_size_valid),
-		.tlv_type	= 0x1f,
+		.tlv_type	= 0x20,
 		.offset		= offsetof(struct ipa_init_modem_driver_req,
 					   hw_stats_quota_size_valid),
 	},
 	{
-		.data_type	= QMI_SIGNED_4_BYTE_ENUM,
+		.data_type	= QMI_UNSIGNED_4_BYTE,
 		.elem_len	= 1,
 		.elem_size	=
 			sizeof_field(struct ipa_init_modem_driver_req,
 				     hw_stats_quota_size),
-		.tlv_type	= 0x1f,
+		.tlv_type	= 0x20,
 		.offset		= offsetof(struct ipa_init_modem_driver_req,
 					   hw_stats_quota_size),
 	},
+	{
+		.data_type	= QMI_OPT_FLAG,
+		.elem_len	= 1,
+		.elem_size	=
+			sizeof_field(struct ipa_init_modem_driver_req,
+				     hw_stats_drop_base_addr_valid),
+		.tlv_type	= 0x21,
+		.offset		= offsetof(struct ipa_init_modem_driver_req,
+					   hw_stats_drop_base_addr_valid),
+	},
+	{
+		.data_type	= QMI_UNSIGNED_4_BYTE,
+		.elem_len	= 1,
+		.elem_size	=
+			sizeof_field(struct ipa_init_modem_driver_req,
+				     hw_stats_drop_base_addr),
+		.tlv_type	= 0x21,
+		.offset		= offsetof(struct ipa_init_modem_driver_req,
+					   hw_stats_drop_base_addr),
+	},
 	{
 		.data_type	= QMI_OPT_FLAG,
 		.elem_len	= 1,
 		.elem_size	=
 			sizeof_field(struct ipa_init_modem_driver_req,
 				     hw_stats_drop_size_valid),
-		.tlv_type	= 0x1f,
+		.tlv_type	= 0x22,
 		.offset		= offsetof(struct ipa_init_modem_driver_req,
 					   hw_stats_drop_size_valid),
 	},
 	{
-		.data_type	= QMI_SIGNED_4_BYTE_ENUM,
+		.data_type	= QMI_UNSIGNED_4_BYTE,
 		.elem_len	= 1,
 		.elem_size	=
 			sizeof_field(struct ipa_init_modem_driver_req,
 				     hw_stats_drop_size),
-		.tlv_type	= 0x1f,
+		.tlv_type	= 0x22,
 		.offset		= offsetof(struct ipa_init_modem_driver_req,
 					   hw_stats_drop_size),
 	},
Signature · 1 line
2.27.0
Acked-by on v1 2/3
#4 lore raw

Re: [PATCH net-next 2/3] net: ipa: fix another QMI message definition

Quoted 12 lines · Alex Elder

The ipa_init_modem_driver_req_ei[] encoding array for the INIT_MODEM_DRIVER request message has some errors in it.

First, the tlv_type associated with the hw_stats_quota_size field is wrong; it duplicates the valiue used for the hw_stats_quota_base_addr field (0x1f) and should use 0x20 instead. The tlv_type value for the hw_stats_drop_size field also uses the same duplicate value; it should use 0x22 instead.

Second, there is no definition for the hw_stats_drop_base_addr field. It is an optional 32-bit enumerated type value.

Quoted 6 lines

Finally, the hw_stats_quota_base_addr, hw_stats_quota_size, and hw_stats_drop_size fields are defined as enumerated types; they should be unsigned 4-byte values.

Thanks,
Mani

Quoted 84 lines
---
 drivers/net/ipa/ipa_qmi_msg.c | 34 +++++++++++++++++++++++++++-------
 1 file changed, 27 insertions(+), 7 deletions(-)
drivers/net/ipa/ipa_qmi_msg.c +27 -7
index e00f829a783f6..e4a6efbe9bd00 100644
@@ -530,7 +530,7 @@ struct qmi_elem_info ipa_init_modem_driver_req_ei[] = {
 					   hw_stats_quota_base_addr_valid),
 	},
 	{
-		.data_type	= QMI_SIGNED_4_BYTE_ENUM,
+		.data_type	= QMI_UNSIGNED_4_BYTE,
 		.elem_len	= 1,
 		.elem_size	=
 			sizeof_field(struct ipa_init_modem_driver_req,
@@ -545,37 +545,57 @@ struct qmi_elem_info ipa_init_modem_driver_req_ei[] = {
 		.elem_size	=
 			sizeof_field(struct ipa_init_modem_driver_req,
 				     hw_stats_quota_size_valid),
-		.tlv_type	= 0x1f,
+		.tlv_type	= 0x20,
 		.offset		= offsetof(struct ipa_init_modem_driver_req,
 					   hw_stats_quota_size_valid),
 	},
 	{
-		.data_type	= QMI_SIGNED_4_BYTE_ENUM,
+		.data_type	= QMI_UNSIGNED_4_BYTE,
 		.elem_len	= 1,
 		.elem_size	=
 			sizeof_field(struct ipa_init_modem_driver_req,
 				     hw_stats_quota_size),
-		.tlv_type	= 0x1f,
+		.tlv_type	= 0x20,
 		.offset		= offsetof(struct ipa_init_modem_driver_req,
 					   hw_stats_quota_size),
 	},
+	{
+		.data_type	= QMI_OPT_FLAG,
+		.elem_len	= 1,
+		.elem_size	=
+			sizeof_field(struct ipa_init_modem_driver_req,
+				     hw_stats_drop_base_addr_valid),
+		.tlv_type	= 0x21,
+		.offset		= offsetof(struct ipa_init_modem_driver_req,
+					   hw_stats_drop_base_addr_valid),
+	},
+	{
+		.data_type	= QMI_UNSIGNED_4_BYTE,
+		.elem_len	= 1,
+		.elem_size	=
+			sizeof_field(struct ipa_init_modem_driver_req,
+				     hw_stats_drop_base_addr),
+		.tlv_type	= 0x21,
+		.offset		= offsetof(struct ipa_init_modem_driver_req,
+					   hw_stats_drop_base_addr),
+	},
 	{
 		.data_type	= QMI_OPT_FLAG,
 		.elem_len	= 1,
 		.elem_size	=
 			sizeof_field(struct ipa_init_modem_driver_req,
 				     hw_stats_drop_size_valid),
-		.tlv_type	= 0x1f,
+		.tlv_type	= 0x22,
 		.offset		= offsetof(struct ipa_init_modem_driver_req,
 					   hw_stats_drop_size_valid),
 	},
 	{
-		.data_type	= QMI_SIGNED_4_BYTE_ENUM,
+		.data_type	= QMI_UNSIGNED_4_BYTE,
 		.elem_len	= 1,
 		.elem_size	=
 			sizeof_field(struct ipa_init_modem_driver_req,
 				     hw_stats_drop_size),
-		.tlv_type	= 0x1f,
+		.tlv_type	= 0x22,
 		.offset		= offsetof(struct ipa_init_modem_driver_req,
 					   hw_stats_drop_size),
 	},
Signature · 1 line
2.27.0
author
#5 lore raw

PATCH 3/3 net: ipa: extend the INDICATION_REGISTER request

In reply to Alex Elder

The specified format of the INDICATION_REGISTER QMI request message has been extended to support two more optional fields:
endpoint_desc_ind:
sender wishes to receive endpoint descriptor information via an IPA ENDP_DESC indication QMI message
bw_change_ind:
sender wishes to receive bandwidth change information via an IPA BW_CHANGE indication QMI message

Add definitions that permit these fields to be formatted and parsed by the QMI library code.

---
 drivers/net/ipa/ipa_qmi_msg.c | 40 +++++++++++++++++++++++++++++++++++
 drivers/net/ipa/ipa_qmi_msg.h |  6 +++++-
 2 files changed, 45 insertions(+), 1 deletion(-)
drivers/net/ipa/ipa_qmi_msg.c +40 -0
index e4a6efbe9bd00..6838e8065072b 100644
@@ -70,6 +70,46 @@ struct qmi_elem_info ipa_indication_register_req_ei[] = {
 		.offset		= offsetof(struct ipa_indication_register_req,
 					   ipa_mhi_ready_ind),
 	},
+	{
+		.data_type	= QMI_OPT_FLAG,
+		.elem_len	= 1,
+		.elem_size	=
+			sizeof_field(struct ipa_indication_register_req,
+				     endpoint_desc_ind_valid),
+		.tlv_type	= 0x13,
+		.offset		= offsetof(struct ipa_indication_register_req,
+					   endpoint_desc_ind_valid),
+	},
+	{
+		.data_type	= QMI_UNSIGNED_1_BYTE,
+		.elem_len	= 1,
+		.elem_size	=
+			sizeof_field(struct ipa_indication_register_req,
+				     endpoint_desc_ind),
+		.tlv_type	= 0x13,
+		.offset		= offsetof(struct ipa_indication_register_req,
+					   endpoint_desc_ind),
+	},
+	{
+		.data_type	= QMI_OPT_FLAG,
+		.elem_len	= 1,
+		.elem_size	=
+			sizeof_field(struct ipa_indication_register_req,
+				     bw_change_ind_valid),
+		.tlv_type	= 0x14,
+		.offset		= offsetof(struct ipa_indication_register_req,
+					   bw_change_ind_valid),
+	},
+	{
+		.data_type	= QMI_UNSIGNED_1_BYTE,
+		.elem_len	= 1,
+		.elem_size	=
+			sizeof_field(struct ipa_indication_register_req,
+				     bw_change_ind),
+		.tlv_type	= 0x14,
+		.offset		= offsetof(struct ipa_indication_register_req,
+					   bw_change_ind),
+	},
 	{
 		.data_type	= QMI_EOTI,
 	},
drivers/net/ipa/ipa_qmi_msg.h +5 -1
index 12b6621f4b0e6..3233d145fd87c 100644
@@ -24,7 +24,7 @@
  * information for each field.  The qmi_send_*() interfaces require
  * the message size to be provided.
  */
-#define IPA_QMI_INDICATION_REGISTER_REQ_SZ	12	/* -> server handle */
+#define IPA_QMI_INDICATION_REGISTER_REQ_SZ	20	/* -> server handle */
 #define IPA_QMI_INDICATION_REGISTER_RSP_SZ	7	/* <- server handle */
 #define IPA_QMI_INIT_DRIVER_REQ_SZ		162	/* client handle -> */
 #define IPA_QMI_INIT_DRIVER_RSP_SZ		25	/* client handle <- */
@@ -44,6 +44,10 @@ struct ipa_indication_register_req {
 	u8 data_usage_quota_reached;
 	u8 ipa_mhi_ready_ind_valid;
 	u8 ipa_mhi_ready_ind;
+	u8 endpoint_desc_ind_valid;
+	u8 endpoint_desc_ind;
+	u8 bw_change_ind_valid;
+	u8 bw_change_ind;
 };
 
 /* The response to a IPA_QMI_INDICATION_REGISTER request consists only of
Signature · 1 line
2.27.0
Acked-by on v1 3/3
#6 lore raw

Re: [PATCH net-next 3/3] net: ipa: extend the INDICATION_REGISTER request

Quoted 9 lines · Alex Elder

The specified format of the INDICATION_REGISTER QMI request message has been extended to support two more optional fields:
endpoint_desc_ind:
sender wishes to receive endpoint descriptor information via an IPA ENDP_DESC indication QMI message
bw_change_ind:
sender wishes to receive bandwidth change information via an IPA BW_CHANGE indication QMI message

Quoted 4 lines

Add definitions that permit these fields to be formatted and parsed by the QMI library code.

Thanks,
Mani

Quoted 83 lines
---
 drivers/net/ipa/ipa_qmi_msg.c | 40 +++++++++++++++++++++++++++++++++++
 drivers/net/ipa/ipa_qmi_msg.h |  6 +++++-
 2 files changed, 45 insertions(+), 1 deletion(-)
drivers/net/ipa/ipa_qmi_msg.c +40 -0
index e4a6efbe9bd00..6838e8065072b 100644
@@ -70,6 +70,46 @@ struct qmi_elem_info ipa_indication_register_req_ei[] = {
 		.offset		= offsetof(struct ipa_indication_register_req,
 					   ipa_mhi_ready_ind),
 	},
+	{
+		.data_type	= QMI_OPT_FLAG,
+		.elem_len	= 1,
+		.elem_size	=
+			sizeof_field(struct ipa_indication_register_req,
+				     endpoint_desc_ind_valid),
+		.tlv_type	= 0x13,
+		.offset		= offsetof(struct ipa_indication_register_req,
+					   endpoint_desc_ind_valid),
+	},
+	{
+		.data_type	= QMI_UNSIGNED_1_BYTE,
+		.elem_len	= 1,
+		.elem_size	=
+			sizeof_field(struct ipa_indication_register_req,
+				     endpoint_desc_ind),
+		.tlv_type	= 0x13,
+		.offset		= offsetof(struct ipa_indication_register_req,
+					   endpoint_desc_ind),
+	},
+	{
+		.data_type	= QMI_OPT_FLAG,
+		.elem_len	= 1,
+		.elem_size	=
+			sizeof_field(struct ipa_indication_register_req,
+				     bw_change_ind_valid),
+		.tlv_type	= 0x14,
+		.offset		= offsetof(struct ipa_indication_register_req,
+					   bw_change_ind_valid),
+	},
+	{
+		.data_type	= QMI_UNSIGNED_1_BYTE,
+		.elem_len	= 1,
+		.elem_size	=
+			sizeof_field(struct ipa_indication_register_req,
+				     bw_change_ind),
+		.tlv_type	= 0x14,
+		.offset		= offsetof(struct ipa_indication_register_req,
+					   bw_change_ind),
+	},
 	{
 		.data_type	= QMI_EOTI,
 	},
drivers/net/ipa/ipa_qmi_msg.h +5 -1
index 12b6621f4b0e6..3233d145fd87c 100644
@@ -24,7 +24,7 @@
  * information for each field.  The qmi_send_*() interfaces require
  * the message size to be provided.
  */
-#define IPA_QMI_INDICATION_REGISTER_REQ_SZ	12	/* -> server handle */
+#define IPA_QMI_INDICATION_REGISTER_REQ_SZ	20	/* -> server handle */
 #define IPA_QMI_INDICATION_REGISTER_RSP_SZ	7	/* <- server handle */
 #define IPA_QMI_INIT_DRIVER_REQ_SZ		162	/* client handle -> */
 #define IPA_QMI_INIT_DRIVER_RSP_SZ		25	/* client handle <- */
@@ -44,6 +44,10 @@ struct ipa_indication_register_req {
 	u8 data_usage_quota_reached;
 	u8 ipa_mhi_ready_ind_valid;
 	u8 ipa_mhi_ready_ind;
+	u8 endpoint_desc_ind_valid;
+	u8 endpoint_desc_ind;
+	u8 bw_change_ind_valid;
+	u8 bw_change_ind;
 };
 
 /* The response to a IPA_QMI_INDICATION_REGISTER request consists only of
Signature · 1 line
2.27.0
#7 lore raw
In reply to Alex Elder

Hi Alex,

Quoted 5 lines · Alex Elder

Mani Sadhasivam discovered some errors in the definitions of some QMI messages used for IPA. This series addresses those errors, and extends the definition of one message type to include some newly-defined fields.

Thanks for the patches. I guess you need to add Fixes tag for patches 1,2 and they should be backported to stable.

Thanks,
Mani

Quoted 14 lines

-Alex

Alex Elder (3):
net: ipa: fix a duplicated tlv_type value
net: ipa: fix another QMI message definition
net: ipa: extend the INDICATION_REGISTER request

 drivers/net/ipa/ipa_qmi_msg.c | 78 +++++++++++++++++++++++++++++++----
 drivers/net/ipa/ipa_qmi_msg.h |  6 ++-
 2 files changed, 74 insertions(+), 10 deletions(-)
Signature · 1 line
2.27.0
author
#8 lore raw
Quoted 11 lines · Manivannan Sadhasivam

Hi Alex,

Quoted 5 lines · Alex Elder

Mani Sadhasivam discovered some errors in the definitions of some QMI messages used for IPA. This series addresses those errors, and extends the definition of one message type to include some newly-defined fields.

Thanks for the patches. I guess you need to add Fixes tag for patches 1,2 and they should be backported to stable.

I did not do that, intentionally. The reason is that the existing code only supports IPA v3.5.1 and IPAv4.2. And these bugs seem to cause no problems there.

There are some patches coming very soon that will add more formal support for IPA v4.5 (where I know you found these issues). Those will not be back-ported.

So these fixes don't appear to be necessary for existing supported platforms.

If you still believe I should have these back-ported, I have no objection to re-posting for that. But I wanted to explain my reasoning before doing it.

--> Do you still think I should have these back-ported?

Thanks.

-Alex

Quoted 18 lines

Thanks,
Mani

Quoted 14 lines

-Alex

Alex Elder (3):
net: ipa: fix a duplicated tlv_type value
net: ipa: fix another QMI message definition
net: ipa: extend the INDICATION_REGISTER request

  drivers/net/ipa/ipa_qmi_msg.c | 78 +++++++++++++++++++++++++++++++----
  drivers/net/ipa/ipa_qmi_msg.h |  6 ++-
  2 files changed, 74 insertions(+), 10 deletions(-)
Signature · 1 line
2.27.0
#9 lore raw
Quoted 17 lines · Alex Elder
Quoted 11 lines · Manivannan Sadhasivam

Hi Alex,

Quoted 5 lines · Alex Elder

Mani Sadhasivam discovered some errors in the definitions of some QMI messages used for IPA. This series addresses those errors, and extends the definition of one message type to include some newly-defined fields.

Thanks for the patches. I guess you need to add Fixes tag for patches 1,2 and they should be backported to stable.

I did not do that, intentionally. The reason is that the existing code only supports IPA v3.5.1 and IPAv4.2. And these bugs seem to cause no problems there.

Quoted 7 lines

There are some patches coming very soon that will add more formal support for IPA v4.5 (where I know you found these issues). Those will not be back-ported.

So these fixes don't appear to be necessary for existing supported platforms.

Hmm, okay. Then please mention this information in the commit description(s) that the fix is only needed for IPA4.5.

Thanks,
Mani

Quoted 29 lines

If you still believe I should have these back-ported, I have no objection to re-posting for that. But I wanted to explain my reasoning before doing it.

--> Do you still think I should have these back-ported?

Thanks.

-Alex

Quoted 18 lines

Thanks,
Mani

Quoted 14 lines

-Alex

Alex Elder (3):
net: ipa: fix a duplicated tlv_type value
net: ipa: fix another QMI message definition
net: ipa: extend the INDICATION_REGISTER request

  drivers/net/ipa/ipa_qmi_msg.c | 78 +++++++++++++++++++++++++++++++----
  drivers/net/ipa/ipa_qmi_msg.h |  6 ++-
  2 files changed, 74 insertions(+), 10 deletions(-)
Signature · 1 line
2.27.0
author
#10 lore raw
Quoted 22 lines · Manivannan Sadhasivam
Quoted 21 lines · Alex Elder
Quoted 11 lines · Manivannan Sadhasivam

Hi Alex,

Quoted 5 lines · Alex Elder

Mani Sadhasivam discovered some errors in the definitions of some QMI messages used for IPA. This series addresses those errors, and extends the definition of one message type to include some newly-defined fields.

Thanks for the patches. I guess you need to add Fixes tag for patches 1,2 and they should be backported to stable.

I did not do that, intentionally. The reason is that the existing code only supports IPA v3.5.1 and IPAv4.2. And these bugs seem to cause no problems there.

There are some patches coming very soon that will add more formal support for IPA v4.5 (where I know you found these issues). Those will not be back-ported.

Quoted 6 lines
Quoted 3 lines

So these fixes don't appear to be necessary for existing supported platforms.

Hmm, okay. Then please mention this information in the commit description(s) that the fix is only needed for IPA4.5.

Mani, you ACKed all three patches after you sent this.

Are you expecting me to send a new version of the code, or are you willing to accept the series as-is?

Thanks.

-Alex

Quoted 33 lines

Thanks,
Mani

Quoted 29 lines

If you still believe I should have these back-ported, I have no objection to re-posting for that. But I wanted to explain my reasoning before doing it.

--> Do you still think I should have these back-ported?

Thanks.

-Alex

Quoted 18 lines

Thanks,
Mani

Quoted 14 lines

-Alex

Alex Elder (3):
net: ipa: fix a duplicated tlv_type value
net: ipa: fix another QMI message definition
net: ipa: extend the INDICATION_REGISTER request

   drivers/net/ipa/ipa_qmi_msg.c | 78 +++++++++++++++++++++++++++++++----
   drivers/net/ipa/ipa_qmi_msg.h |  6 ++-
   2 files changed, 74 insertions(+), 10 deletions(-)
Signature · 1 line
2.27.0
#11 lore raw
Quoted 27 lines · Alex Elder
Quoted 26 lines · Manivannan Sadhasivam
Quoted 24 lines · Alex Elder
Quoted 11 lines · Manivannan Sadhasivam

Hi Alex,

Quoted 5 lines · Alex Elder

Mani Sadhasivam discovered some errors in the definitions of some QMI messages used for IPA. This series addresses those errors, and extends the definition of one message type to include some newly-defined fields.

Thanks for the patches. I guess you need to add Fixes tag for patches 1,2 and they should be backported to stable.

I did not do that, intentionally. The reason is that the existing code only supports IPA v3.5.1 and IPAv4.2. And these bugs seem to cause no problems there.

There are some patches coming very soon that will add more formal support for IPA v4.5 (where I know you found these issues). Those will not be back-ported.

So these fixes don't appear to be necessary for existing supported platforms.

Quoted 8 lines
Quoted 2 lines

Hmm, okay. Then please mention this information in the commit description(s) that the fix is only needed for IPA4.5.

Mani, you ACKed all three patches after you sent this.

Are you expecting me to send a new version of the code, or are you willing to accept the series as-is?

Are you asking me the question? I can't accept IPA code.

Thanks,
Mani

Quoted 38 lines

Thanks.

-Alex

Quoted 33 lines

Thanks,
Mani

Quoted 29 lines

If you still believe I should have these back-ported, I have no objection to re-posting for that. But I wanted to explain my reasoning before doing it.

--> Do you still think I should have these back-ported?

Thanks.

-Alex

Quoted 18 lines

Thanks,
Mani

Quoted 14 lines

-Alex

Alex Elder (3):
net: ipa: fix a duplicated tlv_type value
net: ipa: fix another QMI message definition
net: ipa: extend the INDICATION_REGISTER request

   drivers/net/ipa/ipa_qmi_msg.c | 78 +++++++++++++++++++++++++++++++----
   drivers/net/ipa/ipa_qmi_msg.h |  6 ++-
   2 files changed, 74 insertions(+), 10 deletions(-)
Signature · 1 line
2.27.0