]> asedeno.scripts.mit.edu Git - linux.git/commit
habanalabs: return old dram bar address upon change
authorOded Gabbay <oded.gabbay@gmail.com>
Sun, 28 Apr 2019 07:18:35 +0000 (10:18 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Sun, 28 Apr 2019 07:18:35 +0000 (10:18 +0300)
commita38693d77576145673a7b3d4d771d992282ad13b
tree7253cb74316b8d9093f7a8cadda464232cf853e0
parent027d35d0b6999c02de4c1ef86d0df4b5f4119167
habanalabs: return old dram bar address upon change

This patch changes the ASIC interface function that changes the DRAM bar
window. The change is to return the old address that the DRAM bar pointed
to instead of an error code.

This simplifies the code that use this function (mainly in debugfs) to
restore the bar to the old setting.

This is also needed for easier support in future ASICs.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/goya/goya.c
drivers/misc/habanalabs/habanalabs.h
drivers/misc/habanalabs/pci.c