]> git.baikalelectronics.ru Git - kernel.git/commit
rapidio/tsi721: add check for overlapped IB window mappings
authorAlexandre Bounine <alexandre.bounine@idt.com>
Tue, 22 Mar 2016 21:25:51 +0000 (14:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2016 22:36:02 +0000 (15:36 -0700)
commit62b67317c6db49fc2a93b5b0252c24665b8b4dbd
tree4aad2e7ecb313ac4c3c0c59899803b50acac05d3
parentc311de6f72db5861fbe7c5ee9628445fb49d08cd
rapidio/tsi721: add check for overlapped IB window mappings

Add check for attempts to request mapping of inbound RapidIO address
space that overlaps with existing active mapping windows.

Tsi721 device does not support overlapped inbound windows and SRIO
address decoding behavior is not defined in such cases.

This patch is applicable to kernel versions starting from v3.7.

Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Aurelien Jacquiot <a-jacquiot@ti.com>
Cc: Andre van Herk <andre.van.herk@prodrive-technologies.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rapidio/devices/tsi721.c
drivers/rapidio/devices/tsi721.h