| 1 |
Single thread tests |
| 2 |
=================== |
| 3 |
|
| 4 |
m301: |
| 5 |
Valid sequence of requests, no exceptions expected. |
| 6 |
Acquire mutexes of monotone increasing level (Global lock |
| 7 |
on level 0 too) for all available levels from 0 up to 15, |
| 8 |
then Release them all in the inverse order. |
| 9 |
|
| 10 |
m369: |
| 11 |
Valid sequence of requests, no exceptions expected. |
| 12 |
Acquire mutexes of monotone increasing level (Global lock on level 0 too) |
| 13 |
for all available levels from 0 up to 15, Acquire 2 mutexes of each level, |
| 14 |
then Release them all in the inverse order (keep the exactly inverse order |
| 15 |
for Releasing mutexes of the same level too). |
| 16 |
|
| 17 |
m36a: |
| 18 |
Exactly m301 but additionally: |
| 19 |
all Release operations are located into separate method. |
| 20 |
|
| 21 |
m36b: |
| 22 |
Exactly m301 but additionally: |
| 23 |
all Acquire and Release operations are located into separate methods. |
| 24 |
|
| 25 |
m36c: |
| 26 |
Invalid sequence of Acquire operations: |
| 27 |
1) Acquire N-th level mutex (N>=1): |
| 28 |
2) Acquire: |
| 29 |
- mutexes from 0 up to (N-1)-levels |
| 30 |
- Global lock |
| 31 |
3) exception AE_AML_MUTEX_ORDER is expected for each Acquire of (2) |
| 32 |
|
| 33 |
m389: |
| 34 |
Exception on Release. |
| 35 |
Release the mutex twice. |
| 36 |
Attempt to Release free mutex: Acquire, Release, Release. |
| 37 |
Exception is expected on the second Release. |
| 38 |
Do it for all level mutexes and Global lock too. |
| 39 |
|
| 40 |
m07b: |
| 41 |
Exception on Release. |
| 42 |
Attempt to Release clean mutex which was never Acquired. |
| 43 |
|
| 44 |
m38a: |
| 45 |
Exception on Release. |
| 46 |
Break the sequence of Acquiring mutexes while Releasing them, |
| 47 |
jump over the level. Invalid sequence of Releases: |
| 48 |
1) Take level from range (N>=1 & N<=15) |
| 49 |
2) Acquire mutexes of all levels from 0 up to N |
| 50 |
3) Try to Release any mutex: |
| 51 |
- in the level range from (N-1) down to 0 |
| 52 |
- Global lock |
| 53 |
4) Do 1-3 for all levels in range (N>=1 & N<=15) |
| 54 |
|
| 55 |
m38d: |
| 56 |
Check up that the Releasing of the same level mutexes |
| 57 |
can be performed in an arbitrary order, independently |
| 58 |
on the order they were Acquired. |
| 59 |
For each level separately, one by one - |
| 60 |
Acquire all for one level then Release them all and |
| 61 |
then only go to the next level. |
| 62 |
Involve the Global lock too. |
| 63 |
|
| 64 |
m07d: |
| 65 |
Check up that the Releasing of the same level mutexes |
| 66 |
can be performed in an arbitrary order, independently |
| 67 |
on the order they were Acquired. |
| 68 |
Cross through all the levels - |
| 69 |
at first Acquire all for all levels then Release them all. |
| 70 |
|
| 71 |
m07a: |
| 72 |
Multiply owning the same ACPI mutex. |
| 73 |
Acquire the same mutex arg2 times, then Release it (arg2+1) times, |
| 74 |
expect exception on the last Release. |
| 75 |
The repeated Acquire are made with TimeoutValue equal to zero. |
| 76 |
|
| 77 |
m07e: |
| 78 |
Acquire/Release combination #1 |
| 79 |
|
| 80 |
m08b: |
| 81 |
Check the life after AE_AML_MUTEX_ORDER exception on Acquire. |
| 82 |
1) Acquire N-th level mutex MUX-N |
| 83 |
2) run Acquire (N-2)-th level mutex MUX-(N-2) and get AE_AML_MUTEX_ORDER exception |
| 84 |
3) run Acquire (N-1)-th level mutex MUX-(N-1) and get AE_AML_MUTEX_ORDER exception |
| 85 |
4) Acquire mutex MUX-N and check that no exception on this operation |
| 86 |
5) Release mutex MUX-N and check that no exception on this operation |
| 87 |
6) Release mutex MUX-N and check that no exception on this operation |
| 88 |
7) do 1-6 for all N in range 2-15 levels |
| 89 |
8) check additionally that all the mutexes are free (run Release and |
| 90 |
get AE_AML_MUTEX_NOT_ACQUIRED exception for all the mutexes of all levels) |
| 91 |
9) Acquire all mutexes of all levels and check that no exceptions |
| 92 |
10) Release all mutexes of all levels and check that no exceptions |
| 93 |
11) check additionally that all the mutexes are free (see 8) |
| 94 |
12) do it for GL mode too |
| 95 |
13) do additional Acquire of MUX-(N-2) and MUX-(N-1) before Acquire of MUX-N (Release them later) |
| 96 |
|
| 97 |
m08d: |
| 98 |
Check the life after AE_AML_MUTEX_ORDER exception on Release. |
| 99 |
1) Acquire (N-1)-th level mutex MUX-(N-1) |
| 100 |
2) Acquire (N)-th level mutex MUX-N |
| 101 |
3) run Release (N-1)-th level mutex MUX-(N-1) and get AE_AML_MUTEX_ORDER exception |
| 102 |
4) Release (N)-th level mutex MUX-N and check that no exception on this operation |
| 103 |
5) Release (N-1)-th level mutex MUX-(N-1) and check that no exception on this operation |
| 104 |
6) do 1-5 for all N in range 1-15 levels |
| 105 |
7) check additionally that all the mutexes are free (run Release and |
| 106 |
get AE_AML_MUTEX_NOT_ACQUIRED exception for all the mutexes of all levels) |
| 107 |
8) Acquire all mutexes of all levels and check that no exceptions |
| 108 |
9) Release all mutexes of all levels and check that no exceptions |
| 109 |
10) check additionally that all the mutexes are free (see 7) |
| 110 |
11) do it for GL mode too |
| 111 |
|
| 112 |
m07f: |
| 113 |
Check the life after AE_AML_MUTEX_ORDER exception on Release. |
| 114 |
Similar to the m08d but trying to heal situation by |
| 115 |
Acquiring/Release operations applied to the greater |
| 116 |
level so changing the current level upper than all the |
| 117 |
currently Acquired levels so don't expect exceptions on |
| 118 |
the following Release operations applied in the correct |
| 119 |
inverse order to all the Acquired mutexes. |
| 120 |
(for the current 20060828 ACPICA this doesn't help). |
| 121 |
|
| 122 |
m0b9: |
| 123 |
Different ways to Acquire/Release mutexes. |
| 124 |
1) Acquire and Release operations are in a global level AML code |
| 125 |
|
| 126 |
m07c: |
| 127 |
Different ways to Acquire/Release mutexes. |
| 128 |
2) Acquire and Release operations are in the same method |
| 129 |
3) Acquire and Release operations are in different methods |
| 130 |
|
| 131 |
xxxx: |
| 132 |
To check that the current level is not anyhow affected by the |
| 133 |
invalid operations (which caused exception or returned FAIL). |
| 134 |
Such checkings are present in m08b and m08d tests. |
| 135 |
From m08b: |
| 136 |
1) Acquire N-th level mutex MUX-N |
| 137 |
2) run Acquire (N-2)-th level mutex MUX-(N-2) and get AE_AML_MUTEX_ORDER exception |
| 138 |
3) run Acquire (N-1)-th level mutex MUX-(N-1) and get AE_AML_MUTEX_ORDER exception |
| 139 |
The step 3 checks that the invalid operation Acquire |
| 140 |
performed on step 2 doesn't affect the current level. |
| 141 |
From m08d: |
| 142 |
1) Acquire (N-1)-th level mutex MUX-(N-1) |
| 143 |
2) Acquire (N)-th level mutex MUX-N |
| 144 |
3) run Release (N-1)-th level mutex MUX-(N-1) and get AE_AML_MUTEX_ORDER exception |
| 145 |
4) Release (N)-th level mutex MUX-N and check that no exception on this operation |
| 146 |
The step 4 checks that the invalid operation Release |
| 147 |
performed on step 3 doesn't affect the current level. |
| 148 |
|
| 149 |
m0ba: |
| 150 |
Acquire/Release operations enclosed in other operations. |
| 151 |
|
| 152 |
badasl-m103: |
| 153 |
Exception on Acquire. |
| 154 |
Access to inappropriate type data. |
| 155 |
|
| 156 |
|
| 157 |
// ################################################################# |
| 158 |
|
| 159 |
|
| 160 |
|