diff options
author | Jerome Brunet <jbrunet@baylibre.com> | 2025-07-02 18:48:33 +0200 |
---|---|---|
committer | Jon Mason <jdmason@kudzu.us> | 2025-09-22 09:35:21 -0400 |
commit | 5ad865862a0fd349163243e1834ed98ba9b81905 (patch) | |
tree | 32f6695b98c0aca20ea9f0053c466821dff71a40 /include/linux/overflow.h | |
parent | 3db835dd8f9a78e9709cb48b77d89b41792e9281 (diff) |
NTB: epf: Allow arbitrary BAR mapping
The NTB epf host driver assumes the BAR number associated with a memory
window is just incremented from the BAR number associated with MW1. This
seems to have been enough so far but this is not really how the endpoint
side work and the two could easily become mis-aligned.
ntb_epf_mw_to_bar() even assumes that the BAR number is the memory window
index + 2, which means the function only returns a proper result if BAR_2
is associated with MW1.
Instead, fully describe and allow arbitrary NTB BAR mapping.
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions