]> 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)
commit7b5c09e236a50a48fe14480e3ccc5f7c4ff815fb
tree656172d04639633675a0b2b419083ecf9d675a14
parentfad6eb3cb8e89d458a34990dcce273709a5ec2a0
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