mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
mlxsw: pci: Remove MLXSW_PCI_RDQS/SDQS defines and checks
Remove strict number check of queues count as various ASICs have different counts. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
424e1114af
commit
c85c3882ad
@ -1069,8 +1069,7 @@ static int mlxsw_pci_aqs_init(struct mlxsw_pci *mlxsw_pci, char *mbox)
|
|||||||
num_eqs = mlxsw_cmd_mbox_query_aq_cap_max_num_eqs_get(mbox);
|
num_eqs = mlxsw_cmd_mbox_query_aq_cap_max_num_eqs_get(mbox);
|
||||||
eq_log2sz = mlxsw_cmd_mbox_query_aq_cap_log_max_eq_sz_get(mbox);
|
eq_log2sz = mlxsw_cmd_mbox_query_aq_cap_log_max_eq_sz_get(mbox);
|
||||||
|
|
||||||
if ((num_sdqs != MLXSW_PCI_SDQS_COUNT) ||
|
if (num_sdqs + num_rdqs > num_cqs ||
|
||||||
(num_rdqs != MLXSW_PCI_RDQS_COUNT) ||
|
|
||||||
num_cqs > MLXSW_PCI_CQS_MAX || num_eqs != MLXSW_PCI_EQS_COUNT) {
|
num_cqs > MLXSW_PCI_CQS_MAX || num_eqs != MLXSW_PCI_EQS_COUNT) {
|
||||||
dev_err(&pdev->dev, "Unsupported number of queues\n");
|
dev_err(&pdev->dev, "Unsupported number of queues\n");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
@ -71,8 +71,6 @@
|
|||||||
#define MLXSW_PCI_DOORBELL(offset, type_offset, num) \
|
#define MLXSW_PCI_DOORBELL(offset, type_offset, num) \
|
||||||
((offset) + (type_offset) + (num) * 4)
|
((offset) + (type_offset) + (num) * 4)
|
||||||
|
|
||||||
#define MLXSW_PCI_RDQS_COUNT 24
|
|
||||||
#define MLXSW_PCI_SDQS_COUNT 24
|
|
||||||
#define MLXSW_PCI_CQS_MAX 96
|
#define MLXSW_PCI_CQS_MAX 96
|
||||||
#define MLXSW_PCI_EQS_COUNT 2
|
#define MLXSW_PCI_EQS_COUNT 2
|
||||||
#define MLXSW_PCI_EQ_ASYNC_NUM 0
|
#define MLXSW_PCI_EQ_ASYNC_NUM 0
|
||||||
|
Loading…
Reference in New Issue
Block a user