Skip to content

Commit 1413d33

Browse files
SrikarJosyulachetan-rathore
authored andcommitted
fix(timer): remove obselete counter frequency tests
- CNTFRQ_EL0 cannot be relied on to determine the base frequency - Drop timer tests t006 and t007 along with their declarations and entry IDs. - Remove the related rule-to-test mappings and direct execution hooks from BSA/SBSA paths. - Clean up UEFI/CMake build inputs so the deleted timer tests are no longer referenced. - Update the testcase checklist and test scenario documents Signed-off-by: Srikar Josyula <srikar.josyula@arm.com> Change-Id: Ib0a1822db4d569829132d2adf68998770b0c47ef
1 parent 4a0e6bb commit 1413d33

18 files changed

Lines changed: 26 additions & 201 deletions

apps/uefi/Bsa.inf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@
8383
../../test_pool/timer/t003.c
8484
../../test_pool/timer/t004.c
8585
../../test_pool/timer/t005.c
86-
../../test_pool/timer/t006.c
8786
../../test_pool/timer/t008.c
8887
../../test_pool/watchdog/w001.c
8988
../../test_pool/watchdog/w002.c

apps/uefi/Sbsa.inf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
../../test_pool/timer/t003.c
8787
../../test_pool/timer/t004.c
8888
../../test_pool/timer/t005.c
89-
../../test_pool/timer/t006.c
9089
../../test_pool/timer/t008.c
9190
../../test_pool/watchdog/w001.c
9291
../../test_pool/watchdog/w002.c

apps/uefi/SbsaNist.inf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
../../test_pool/gic/g014.c
8181
../../test_pool/gic/g015.c
8282
../../test_pool/gic/g016.c
83-
../../test_pool/timer/t006.c
8483
../../test_pool/watchdog/w003.c
8584
../../test_pool/smmu/i008.c
8685
../../test_pool/smmu/i009.c

apps/uefi/Vbsa.inf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
../../test_pool/timer/t003.c
8686
../../test_pool/timer/t004.c
8787
../../test_pool/timer/t005.c
88-
../../test_pool/timer/t006.c
8988
../../test_pool/timer/t008.c
9089
../../test_pool/watchdog/w001.c
9190
../../test_pool/watchdog/w002.c

apps/uefi/pc_bsa.inf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
../../test_pool/timer/t003.c
8787
../../test_pool/timer/t004.c
8888
../../test_pool/timer/t005.c
89-
../../test_pool/timer/t006.c
9089
../../test_pool/timer/t008.c
9190
../../test_pool/watchdog/w001.c
9291
../../test_pool/watchdog/w002.c

apps/uefi/xbsa_acpi.inf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@
192192
../../test_pool/gic/g014.c
193193
../../test_pool/gic/g015.c
194194
../../test_pool/gic/g016.c
195-
../../test_pool/timer/t006.c
196195
../../test_pool/timer/t008.c
197196
../../test_pool/watchdog/w003.c
198197
../../test_pool/smmu/i008.c

docs/bsa/arm_bsa_testcase_checklist.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -630,11 +630,11 @@ The checklist provides information about:
630630
<td>L1</td>
631631
<td>B_TIME_02</td>
632632
<td>B_TIME_02</td>
633-
<td>407</td>
634-
<td>Check System Counter Frequency</td>
635-
<td>Yes</td>
636-
<td>Yes</td>
637-
<td>No</td>
633+
<td>Not Covered</td>
634+
<td></td>
635+
<td></td>
636+
<td></td>
637+
<td></td>
638638
<td></td>
639639
</tr>
640640
<tr>

docs/sbsa/arm_sbsa_testcase_checklist.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3266,11 +3266,11 @@ The checklist provides information about:
32663266
<td>Version 8.0</td>
32673267
<td>S_L8TI_01</td>
32683268
<td>S_L8TI_01</td>
3269-
<td>406</td>
3270-
<td>Check Minimum Counter Frequency 50MHz</td>
3271-
<td>Yes</td>
3272-
<td>Yes</td>
3273-
<td>No</td>
3269+
<td>Not Covered</td>
3270+
<td></td>
3271+
<td></td>
3272+
<td></td>
3273+
<td></td>
32743274
<td></td>
32753275
</tr>
32763276
<tr>

docs/vbsa/arm_vbsa_architecture_compliance_test_scenario.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,7 @@ Purpose: capture ACS scenario outlines for each VBSA rule. Each section:
176176
### V_L1TM_02 — Check Virt and Phy counter min freq
177177
**Rationale**: Virtual Counter (CNTVCT_EL0) = Physical counter (CNTPCT_EL0) - Virtual offset (CNTVOFF_EL2). As the offset is a constant provided by the hypervisor, the virtual counter advances at the same effective frequency as the physical counter.
178178

179-
**Scenario**: Execute the same test used to validate B_TIME_02, which verifies physical counter runs at atleast 10MHz.
180-
- see section 2.6 in [BSA ACS Scenario Document](../bsa/arm_bsa_architecture_compliance_test_scenario.pdf#page18&search=B_TIME_02)
179+
**Rationale for not implementing** - The base frequency should be obtained from the CNTFID registers, which are implemented in Secure space. At present, ACS does not provide a mechanism for accessing Secure registers from Non-secure (NS) space.
181180

182181
---
183182

docs/vbsa/arm_vbsa_testcase_checklist.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,10 @@ The checklist provides information about:
347347
<td>L1</td>
348348
<td><a href="arm_vbsa_architecture_compliance_test_scenario.md#v_l1tm_02--check-virt-and-phy-counter-min-freq">V_L1TM_02</td>
349349
<td></td>
350-
<td>402</td>
351-
<td>Check Virt and Phy counter min freq</td>
352-
<td></td>
353-
<td></td>
350+
<td>Not Covered</td>
351+
<td></td>
352+
<td></td>
353+
<td></td>
354354
<td>Related rules from other specifications: B_TIME_02 (BSA)</td>
355355
</tr>
356356
<tr>

0 commit comments

Comments
 (0)