]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
habanalabs/gaudi: fix missing code in ECC handling
authorOded Gabbay <ogabbay@kernel.org>
Sat, 21 Nov 2020 12:35:35 +0000 (14:35 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 23 Nov 2020 18:08:43 +0000 (20:08 +0200)
There is missing statement and missing "break;" in the ECC handling
code in gaudi.c
This will cause a wrong behavior upon certain ECC interrupts.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/gaudi/gaudi.c

index 2519a34e25b7c5058074ea5884af5319f39f030c..7ea6b4368a913319783be3dfd9094a5bdd576c86 100644 (file)
@@ -5436,6 +5436,8 @@ static void gaudi_handle_ecc_event(struct hl_device *hdev, u16 event_type,
                params.num_memories = 33;
                params.derr = true;
                params.disable_clock_gating = true;
+               extract_info_from_fw = false;
+               break;
        default:
                return;
        }