Commit ae303d8
accel/habanalabs/gaudi2: get the correct QM CQ info upon an error
Upon a QM error, the address/size from both the CQ and the ARC_CQ are
printed, although the instruction that led to the error was received
from only one of them.
Moreover, in case of a QM undefined opcode, only one of these
address/size sets will be captured based on the value of ARC_CQ_PTR.
However, this value can be non-zero even if currently the CQ is used, in
case the CQ/ARC_CQ are alternately used.
Under the assumption of having a stop-on-error configuration, modify to
use CP_STS.CUR_CQ field to get the relevant CQ for the QM error.
Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>1 parent 4b0b1fb commit ae303d8
2 files changed
Lines changed: 23 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7860 | 7860 | | |
7861 | 7861 | | |
7862 | 7862 | | |
7863 | | - | |
7864 | | - | |
7865 | | - | |
7866 | | - | |
7867 | | - | |
7868 | | - | |
7869 | | - | |
7870 | | - | |
7871 | | - | |
7872 | | - | |
7873 | | - | |
7874 | | - | |
| 7863 | + | |
| 7864 | + | |
| 7865 | + | |
| 7866 | + | |
| 7867 | + | |
| 7868 | + | |
| 7869 | + | |
| 7870 | + | |
| 7871 | + | |
| 7872 | + | |
| 7873 | + | |
| 7874 | + | |
| 7875 | + | |
| 7876 | + | |
| 7877 | + | |
| 7878 | + | |
| 7879 | + | |
| 7880 | + | |
7875 | 7881 | | |
7876 | 7882 | | |
7877 | 7883 | | |
7878 | 7884 | | |
7879 | 7885 | | |
7880 | 7886 | | |
7881 | | - | |
7882 | | - | |
| 7887 | + | |
| 7888 | + | |
7883 | 7889 | | |
7884 | 7890 | | |
7885 | | - | |
7886 | | - | |
7887 | | - | |
7888 | | - | |
7889 | | - | |
7890 | | - | |
7891 | | - | |
7892 | | - | |
| 7891 | + | |
| 7892 | + | |
7893 | 7893 | | |
7894 | 7894 | | |
7895 | 7895 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| 253 | + | |
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
| |||
0 commit comments