]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: pci: Query resources before and after issuing 'CONFIG_PROFILE' command
authorAmit Cohen <amcohen@nvidia.com>
Tue, 21 Jun 2022 08:33:42 +0000 (11:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Jun 2022 11:56:58 +0000 (12:56 +0100)
commit2c431326815eef6484549c1c43ba53397f3b97e2
tree86ffbc244f1d6b98e76ea2ea10538734be1a62a6
parenta20b01c79860aa734ec9a1fb06bb6f79eb5275a4
mlxsw: pci: Query resources before and after issuing 'CONFIG_PROFILE' command

Currently, as part of mlxsw_pci_init(), resources are queried from firmware
before issuing the 'CONFIG_PROFILE' command.

There are resources whose size depend on the enablement of the unified
bridge model that is performed via 'CONFIG_PROFILE' command. As a
preparation for unified bridge model, add an additional query after issuing
this command. Both queries are required as KVD sizes are read from
firmware and then are configured as part of 'CONFIG_PROFILE' command.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/pci.c