forked from Minki/linux
qed: Reserve doorbell BAR space for present CPUs
Reserving doorbell BAR space according to the currently active CPUs may result in a bug if disabled CPUs are later enabled but no doorbell space was reserved for them. Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com> Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
300c0d7c23
commit
c2dedf8773
@ -913,7 +913,7 @@ qed_hw_init_pf_doorbell_bar(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt)
|
||||
/* Either EDPM is mandatory, or we are attempting to allocate a
|
||||
* WID per CPU.
|
||||
*/
|
||||
n_cpus = num_active_cpus();
|
||||
n_cpus = num_present_cpus();
|
||||
rc = qed_hw_init_dpi_size(p_hwfn, p_ptt, pwm_regsize, n_cpus);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user