diff options
author | Dafna Hirschfeld <dhirschfeld@habana.ai> | 2022-06-23 07:28:17 +0300 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2022-07-12 09:09:25 +0300 |
commit | 8c834a1442ad4e06f2be2574eee4a6985ad297aa (patch) | |
tree | f2317796afbe7e48a7d6d84e8186b0a9e81c95c4 /drivers/misc/habanalabs/common/context.c | |
parent | c1048d14c009e2c5c777956f8481296f8526a864 (diff) | |
download | linux-8c834a1442ad4e06f2be2574eee4a6985ad297aa.tar.xz |
habanalabs: don't send addr and size to scrub_device_mem cb
We use scrub_device_mem only to scrub the entire SRAM and entire
DRAM. Therefore there is no need to send addr and size
args to the callback.
Signed-off-by: Dafna Hirschfeld <dhirschfeld@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/habanalabs/common/context.c')
-rw-r--r-- | drivers/misc/habanalabs/common/context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/habanalabs/common/context.c b/drivers/misc/habanalabs/common/context.c index 64ac65d9268b..60e3e3125fbc 100644 --- a/drivers/misc/habanalabs/common/context.c +++ b/drivers/misc/habanalabs/common/context.c @@ -108,7 +108,7 @@ static void hl_ctx_fini(struct hl_ctx *ctx) hl_encaps_sig_mgr_fini(hdev, &ctx->sig_mgr); /* Scrub both SRAM and DRAM */ - hdev->asic_funcs->scrub_device_mem(hdev, 0, 0); + hdev->asic_funcs->scrub_device_mem(hdev); } else { dev_dbg(hdev->dev, "closing kernel context\n"); hdev->asic_funcs->ctx_fini(ctx); |