habanalabs/gaudi: Use correct sram size macro for debugfs
authorDafna Hirschfeld <dhirschfeld@habana.ai>
Sun, 13 Mar 2022 13:33:52 +0000 (15:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 May 2022 18:57:36 +0000 (20:57 +0200)
commitc3712c1d7d3dc313527a7ff7c29726e091bc8f43
treee2ee06a05685293f51b6b9021cd1766f63881f59
parentacbabe63efa78012eb3702486e1cfe7b485f70a0
habanalabs/gaudi: Use correct sram size macro for debugfs

We currently allow accessing the whole SRAM bar size with
the macro SRAM_BAR_SIZE, but the actual size of the sram
region is the macro SRAM_SIZE which is only a portion of
the whole bar size. So when accessing the sram through
debugfs, use the macro SRAM_SIZE for the sram size
which is the correct macro.

Signed-off-by: Dafna Hirschfeld <dhirschfeld@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/habanalabs/gaudi/gaudi.c