]> git.baikalelectronics.ru Git - kernel.git/commit
ntb_transport: Limit memory windows based on available, scratchpads
authorShyam Sundar S K <ssundark@amd.com>
Wed, 7 Dec 2016 17:07:05 +0000 (22:37 +0530)
committerJon Mason <jdmason@kudzu.us>
Fri, 23 Dec 2016 21:10:35 +0000 (16:10 -0500)
commitce23631149f86a3e2093f29b229c5aa242ecf486
tree656172d04639633675a0b2b419083ecf9d675a14
parent0eef332fc843fbd8aa25c6254ceac603c685eccf
ntb_transport: Limit memory windows based on available, scratchpads

When the underlying NTB H/W driver advertises more memory windows
than the number of scratchpads available to setup MW's, it is likely
that we may end up filling the remaining memory windows with garbage.
So to avoid that, lets limit the memory windows that transport driver
can setup based on the available scratchpads.

Signed-off-by: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
Acked-by: Allen Hubbe <Allen.Hubbe@dell.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/ntb_transport.c