From f8dd81f79bcfc0ea466963f60d3d7c7c882955f3 Mon Sep 17 00:00:00 2001 From: Maciej Dudek Date: Fri, 13 Oct 2023 10:38:56 +0200 Subject: [PATCH] Update documentation Signed-off-by: Maciej Dudek --- docs/source/usage.md | 6 ++++-- rowhammer_tester/scripts/hw_rowhammer.py | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/source/usage.md b/docs/source/usage.md index 9e470f5dc..fd4d876e2 100644 --- a/docs/source/usage.md +++ b/docs/source/usage.md @@ -128,8 +128,10 @@ Different attack and row selection modes can be used, but only one of them can b - `--hammer-only` - Only hammers a pair of rows, without doing any error checks or reports. - If command is combined with `--payload-executor`, then any number of rows can be provided. + Only hammers rows, without doing any error checks or reports. + When run with `rowhammer.py` the attack is limited to one row pair. + `hw_rowhammer.py` can attack up to 32 rows. + With `--payload-executor` enabled the row limit is dictated by the payload memory size. For example following command will hammer rows 4 and 6 1000 times total (so 500 times each): diff --git a/rowhammer_tester/scripts/hw_rowhammer.py b/rowhammer_tester/scripts/hw_rowhammer.py index 436fac2aa..0345698f0 100755 --- a/rowhammer_tester/scripts/hw_rowhammer.py +++ b/rowhammer_tester/scripts/hw_rowhammer.py @@ -18,6 +18,7 @@ class HwRowHammer(RowHammer): def attack(self, row_tuple, read_count, progress_header=''): + assert len(row_tuple) <= 32 addresses = [ self.converter.encode_dma(bank=self.bank, col=self.column, row=r) for r in row_tuple ]