diff options
author | Petr Machata | 2019-02-20 20:32:29 +0100 |
---|---|---|
committer | David S. Miller | 2019-02-22 00:57:46 +0100 |
commit | bb6c346cef6fb0414865aaa6e2f3a11ceeeae14a (patch) | |
tree | a5c798c59afc7badb31061b7eaf3b6f5a036488f /drivers/gpu/drm/imx | |
parent | mlxsw: spectrum_buffers: Update port headroom configuration (diff) | |
download | kernel-qcow2-linux-bb6c346cef6fb0414865aaa6e2f3a11ceeeae14a.tar.gz kernel-qcow2-linux-bb6c346cef6fb0414865aaa6e2f3a11ceeeae14a.tar.xz kernel-qcow2-linux-bb6c346cef6fb0414865aaa6e2f3a11ceeeae14a.zip |
mlxsw: spectrum_buffers: Reject overlarge headroom size requests
cap_max_headroom_size holds maximum headroom size supported.
Overstepping that limit might under certain conditions lead to ASIC
freeze.
Query and store the value, and add mlxsw_sp_sb_max_headroom_cells() for
obtaining the stored value. In __mlxsw_sp_port_headroom_set(), reject
requests where the total port buffer is larger than the advertised
maximum.
Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/gpu/drm/imx')
0 files changed, 0 insertions, 0 deletions