Commit 9ab7e728 authored by Alex Elder's avatar Alex Elder Committed by David S. Miller

net: ipa: add some missing resource limits

Currently, the SDM845 configuration data defines resource limits for
the first two resource groups (for both source and destination
resource types).  The hardware supports additional resource groups,
and we should program the resource limits for those groups as well.

Even the "unused" destination resource group (number 2) should have
non-zero limits programmed in some cases, to ensure correct operation.

Add these missing resource group limit definitions to the SDM845
configuration data.
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 47f71d6e
...@@ -178,6 +178,10 @@ static const struct ipa_resource_src ipa_resource_src[] = { ...@@ -178,6 +178,10 @@ static const struct ipa_resource_src ipa_resource_src[] = {
.min = 1, .min = 1,
.max = 255, .max = 255,
}, },
.limits[IPA_RSRC_GROUP_SRC_UC_RX_Q] = {
.min = 1,
.max = 63,
},
}, },
{ {
.type = IPA_RESOURCE_TYPE_SRC_DESCRIPTOR_LISTS, .type = IPA_RESOURCE_TYPE_SRC_DESCRIPTOR_LISTS,
...@@ -189,6 +193,10 @@ static const struct ipa_resource_src ipa_resource_src[] = { ...@@ -189,6 +193,10 @@ static const struct ipa_resource_src ipa_resource_src[] = {
.min = 10, .min = 10,
.max = 10, .max = 10,
}, },
.limits[IPA_RSRC_GROUP_SRC_UC_RX_Q] = {
.min = 8,
.max = 8,
},
}, },
{ {
.type = IPA_RESOURCE_TYPE_SRC_DESCRIPTOR_BUFF, .type = IPA_RESOURCE_TYPE_SRC_DESCRIPTOR_BUFF,
...@@ -200,6 +208,10 @@ static const struct ipa_resource_src ipa_resource_src[] = { ...@@ -200,6 +208,10 @@ static const struct ipa_resource_src ipa_resource_src[] = {
.min = 14, .min = 14,
.max = 14, .max = 14,
}, },
.limits[IPA_RSRC_GROUP_SRC_UC_RX_Q] = {
.min = 8,
.max = 8,
},
}, },
{ {
.type = IPA_RESOURCE_TYPE_SRC_HPS_DMARS, .type = IPA_RESOURCE_TYPE_SRC_HPS_DMARS,
...@@ -211,6 +223,14 @@ static const struct ipa_resource_src ipa_resource_src[] = { ...@@ -211,6 +223,14 @@ static const struct ipa_resource_src ipa_resource_src[] = {
.min = 0, .min = 0,
.max = 63, .max = 63,
}, },
.limits[IPA_RSRC_GROUP_SRC_MHI_DMA] = {
.min = 0,
.max = 63,
},
.limits[IPA_RSRC_GROUP_SRC_UC_RX_Q] = {
.min = 0,
.max = 63,
},
}, },
{ {
.type = IPA_RESOURCE_TYPE_SRC_ACK_ENTRIES, .type = IPA_RESOURCE_TYPE_SRC_ACK_ENTRIES,
...@@ -222,6 +242,10 @@ static const struct ipa_resource_src ipa_resource_src[] = { ...@@ -222,6 +242,10 @@ static const struct ipa_resource_src ipa_resource_src[] = {
.min = 20, .min = 20,
.max = 20, .max = 20,
}, },
.limits[IPA_RSRC_GROUP_SRC_UC_RX_Q] = {
.min = 14,
.max = 14,
},
}, },
}; };
...@@ -237,6 +261,10 @@ static const struct ipa_resource_dst ipa_resource_dst[] = { ...@@ -237,6 +261,10 @@ static const struct ipa_resource_dst ipa_resource_dst[] = {
.min = 4, .min = 4,
.max = 4, .max = 4,
}, },
.limits[IPA_RSRC_GROUP_DST_UNUSED_2] = {
.min = 3,
.max = 3,
}
}, },
{ {
.type = IPA_RESOURCE_TYPE_DST_DPS_DMARS, .type = IPA_RESOURCE_TYPE_DST_DPS_DMARS,
...@@ -248,6 +276,10 @@ static const struct ipa_resource_dst ipa_resource_dst[] = { ...@@ -248,6 +276,10 @@ static const struct ipa_resource_dst ipa_resource_dst[] = {
.min = 1, .min = 1,
.max = 63, .max = 63,
}, },
.limits[IPA_RSRC_GROUP_DST_UNUSED_2] = {
.min = 1,
.max = 2,
}
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment