reo_flush_queue_status.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578
  1. /*
  2. * Copyright (c) 2020 The Linux Foundation. All rights reserved.
  3. *
  4. * Permission to use, copy, modify, and/or distribute this software for
  5. * any purpose with or without fee is hereby granted, provided that the
  6. * above copyright notice and this permission notice appear in all
  7. * copies.
  8. *
  9. * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
  10. * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
  11. * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
  12. * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  13. * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  14. * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  15. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  16. * PERFORMANCE OF THIS SOFTWARE.
  17. */
  18. //
  19. // DO NOT EDIT! This file is automatically generated
  20. // These definitions are tied to a particular hardware layout
  21. #ifndef _REO_FLUSH_QUEUE_STATUS_H_
  22. #define _REO_FLUSH_QUEUE_STATUS_H_
  23. #if !defined(__ASSEMBLER__)
  24. #endif
  25. #include "uniform_reo_status_header.h"
  26. // ################ START SUMMARY #################
  27. //
  28. // Dword Fields
  29. // 0-1 struct uniform_reo_status_header status_header;
  30. // 2 error_detected[0], reserved_2a[31:1]
  31. // 3 reserved_3a[31:0]
  32. // 4 reserved_4a[31:0]
  33. // 5 reserved_5a[31:0]
  34. // 6 reserved_6a[31:0]
  35. // 7 reserved_7a[31:0]
  36. // 8 reserved_8a[31:0]
  37. // 9 reserved_9a[31:0]
  38. // 10 reserved_10a[31:0]
  39. // 11 reserved_11a[31:0]
  40. // 12 reserved_12a[31:0]
  41. // 13 reserved_13a[31:0]
  42. // 14 reserved_14a[31:0]
  43. // 15 reserved_15a[31:0]
  44. // 16 reserved_16a[31:0]
  45. // 17 reserved_17a[31:0]
  46. // 18 reserved_18a[31:0]
  47. // 19 reserved_19a[31:0]
  48. // 20 reserved_20a[31:0]
  49. // 21 reserved_21a[31:0]
  50. // 22 reserved_22a[31:0]
  51. // 23 reserved_23a[31:0]
  52. // 24 reserved_24a[27:0], looping_count[31:28]
  53. //
  54. // ################ END SUMMARY #################
  55. #define NUM_OF_DWORDS_REO_FLUSH_QUEUE_STATUS 25
  56. struct reo_flush_queue_status {
  57. struct uniform_reo_status_header status_header;
  58. uint32_t error_detected : 1, //[0]
  59. reserved_2a : 31; //[31:1]
  60. uint32_t reserved_3a : 32; //[31:0]
  61. uint32_t reserved_4a : 32; //[31:0]
  62. uint32_t reserved_5a : 32; //[31:0]
  63. uint32_t reserved_6a : 32; //[31:0]
  64. uint32_t reserved_7a : 32; //[31:0]
  65. uint32_t reserved_8a : 32; //[31:0]
  66. uint32_t reserved_9a : 32; //[31:0]
  67. uint32_t reserved_10a : 32; //[31:0]
  68. uint32_t reserved_11a : 32; //[31:0]
  69. uint32_t reserved_12a : 32; //[31:0]
  70. uint32_t reserved_13a : 32; //[31:0]
  71. uint32_t reserved_14a : 32; //[31:0]
  72. uint32_t reserved_15a : 32; //[31:0]
  73. uint32_t reserved_16a : 32; //[31:0]
  74. uint32_t reserved_17a : 32; //[31:0]
  75. uint32_t reserved_18a : 32; //[31:0]
  76. uint32_t reserved_19a : 32; //[31:0]
  77. uint32_t reserved_20a : 32; //[31:0]
  78. uint32_t reserved_21a : 32; //[31:0]
  79. uint32_t reserved_22a : 32; //[31:0]
  80. uint32_t reserved_23a : 32; //[31:0]
  81. uint32_t reserved_24a : 28, //[27:0]
  82. looping_count : 4; //[31:28]
  83. };
  84. /*
  85. struct uniform_reo_status_header status_header
  86. Consumer: SW
  87. Producer: REO
  88. Details that can link this status with the original
  89. command. It also contains info on how long REO took to
  90. execute this command.
  91. error_detected
  92. Status of the blocking resource
  93. 0: No error has been detected while executing this
  94. command
  95. 1: Error detected: The resource to be used for blocking
  96. was already in use.
  97. reserved_2a
  98. <legal 0>
  99. reserved_3a
  100. <legal 0>
  101. reserved_4a
  102. <legal 0>
  103. reserved_5a
  104. <legal 0>
  105. reserved_6a
  106. <legal 0>
  107. reserved_7a
  108. <legal 0>
  109. reserved_8a
  110. <legal 0>
  111. reserved_9a
  112. <legal 0>
  113. reserved_10a
  114. <legal 0>
  115. reserved_11a
  116. <legal 0>
  117. reserved_12a
  118. <legal 0>
  119. reserved_13a
  120. <legal 0>
  121. reserved_14a
  122. <legal 0>
  123. reserved_15a
  124. <legal 0>
  125. reserved_16a
  126. <legal 0>
  127. reserved_17a
  128. <legal 0>
  129. reserved_18a
  130. <legal 0>
  131. reserved_19a
  132. <legal 0>
  133. reserved_20a
  134. <legal 0>
  135. reserved_21a
  136. <legal 0>
  137. reserved_22a
  138. <legal 0>
  139. reserved_23a
  140. <legal 0>
  141. reserved_24a
  142. <legal 0>
  143. looping_count
  144. A count value that indicates the number of times the
  145. producer of entries into this Ring has looped around the
  146. ring.
  147. At initialization time, this value is set to 0. On the
  148. first loop, this value is set to 1. After the max value is
  149. reached allowed by the number of bits for this field, the
  150. count value continues with 0 again.
  151. In case SW is the consumer of the ring entries, it can
  152. use this field to figure out up to where the producer of
  153. entries has created new entries. This eliminates the need to
  154. check where the head pointer' of the ring is located once
  155. the SW starts processing an interrupt indicating that new
  156. entries have been put into this ring...
  157. Also note that SW if it wants only needs to look at the
  158. LSB bit of this count value.
  159. <legal all>
  160. */
  161. /* EXTERNAL REFERENCE : struct uniform_reo_status_header status_header */
  162. /* Description REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_REO_STATUS_NUMBER
  163. Consumer: SW , DEBUG
  164. Producer: REO
  165. The value in this field is equal to value of the
  166. 'REO_CMD_Number' field the REO command
  167. This field helps to correlate the statuses with the REO
  168. commands.
  169. <legal all>
  170. */
  171. #define REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_REO_STATUS_NUMBER_OFFSET 0x00000000
  172. #define REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_REO_STATUS_NUMBER_LSB 0
  173. #define REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_REO_STATUS_NUMBER_MASK 0x0000ffff
  174. /* Description REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_CMD_EXECUTION_TIME
  175. Consumer: DEBUG
  176. Producer: REO
  177. The amount of time REO took to excecute the command.
  178. Note that this time does not include the duration of the
  179. command waiting in the command ring, before the execution
  180. started.
  181. In us.
  182. <legal all>
  183. */
  184. #define REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_CMD_EXECUTION_TIME_OFFSET 0x00000000
  185. #define REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_CMD_EXECUTION_TIME_LSB 16
  186. #define REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_CMD_EXECUTION_TIME_MASK 0x03ff0000
  187. /* Description REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_REO_CMD_EXECUTION_STATUS
  188. Consumer: DEBUG
  189. Producer: REO
  190. Execution status of the command.
  191. <enum 0 reo_successful_execution> Command has
  192. successfully be executed
  193. <enum 1 reo_blocked_execution> Command could not be
  194. executed as the queue or cache was blocked
  195. <enum 2 reo_failed_execution> Command has encountered
  196. problems when executing, like the queue descriptor not being
  197. valid. None of the status fields in the entire STATUS TLV
  198. are valid.
  199. <enum 3 reo_resource_blocked> Command is NOT executed
  200. because one or more descriptors were blocked. This is SW
  201. programming mistake.
  202. None of the status fields in the entire STATUS TLV are
  203. valid.
  204. <legal 0-3>
  205. */
  206. #define REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_OFFSET 0x00000000
  207. #define REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_LSB 26
  208. #define REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_MASK 0x0c000000
  209. /* Description REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_RESERVED_0A
  210. <legal 0>
  211. */
  212. #define REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_RESERVED_0A_OFFSET 0x00000000
  213. #define REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_RESERVED_0A_LSB 28
  214. #define REO_FLUSH_QUEUE_STATUS_0_STATUS_HEADER_RESERVED_0A_MASK 0xf0000000
  215. /* Description REO_FLUSH_QUEUE_STATUS_1_STATUS_HEADER_TIMESTAMP
  216. Timestamp at the moment that this status report is
  217. written.
  218. <legal all>
  219. */
  220. #define REO_FLUSH_QUEUE_STATUS_1_STATUS_HEADER_TIMESTAMP_OFFSET 0x00000004
  221. #define REO_FLUSH_QUEUE_STATUS_1_STATUS_HEADER_TIMESTAMP_LSB 0
  222. #define REO_FLUSH_QUEUE_STATUS_1_STATUS_HEADER_TIMESTAMP_MASK 0xffffffff
  223. /* Description REO_FLUSH_QUEUE_STATUS_2_ERROR_DETECTED
  224. Status of the blocking resource
  225. 0: No error has been detected while executing this
  226. command
  227. 1: Error detected: The resource to be used for blocking
  228. was already in use.
  229. */
  230. #define REO_FLUSH_QUEUE_STATUS_2_ERROR_DETECTED_OFFSET 0x00000008
  231. #define REO_FLUSH_QUEUE_STATUS_2_ERROR_DETECTED_LSB 0
  232. #define REO_FLUSH_QUEUE_STATUS_2_ERROR_DETECTED_MASK 0x00000001
  233. /* Description REO_FLUSH_QUEUE_STATUS_2_RESERVED_2A
  234. <legal 0>
  235. */
  236. #define REO_FLUSH_QUEUE_STATUS_2_RESERVED_2A_OFFSET 0x00000008
  237. #define REO_FLUSH_QUEUE_STATUS_2_RESERVED_2A_LSB 1
  238. #define REO_FLUSH_QUEUE_STATUS_2_RESERVED_2A_MASK 0xfffffffe
  239. /* Description REO_FLUSH_QUEUE_STATUS_3_RESERVED_3A
  240. <legal 0>
  241. */
  242. #define REO_FLUSH_QUEUE_STATUS_3_RESERVED_3A_OFFSET 0x0000000c
  243. #define REO_FLUSH_QUEUE_STATUS_3_RESERVED_3A_LSB 0
  244. #define REO_FLUSH_QUEUE_STATUS_3_RESERVED_3A_MASK 0xffffffff
  245. /* Description REO_FLUSH_QUEUE_STATUS_4_RESERVED_4A
  246. <legal 0>
  247. */
  248. #define REO_FLUSH_QUEUE_STATUS_4_RESERVED_4A_OFFSET 0x00000010
  249. #define REO_FLUSH_QUEUE_STATUS_4_RESERVED_4A_LSB 0
  250. #define REO_FLUSH_QUEUE_STATUS_4_RESERVED_4A_MASK 0xffffffff
  251. /* Description REO_FLUSH_QUEUE_STATUS_5_RESERVED_5A
  252. <legal 0>
  253. */
  254. #define REO_FLUSH_QUEUE_STATUS_5_RESERVED_5A_OFFSET 0x00000014
  255. #define REO_FLUSH_QUEUE_STATUS_5_RESERVED_5A_LSB 0
  256. #define REO_FLUSH_QUEUE_STATUS_5_RESERVED_5A_MASK 0xffffffff
  257. /* Description REO_FLUSH_QUEUE_STATUS_6_RESERVED_6A
  258. <legal 0>
  259. */
  260. #define REO_FLUSH_QUEUE_STATUS_6_RESERVED_6A_OFFSET 0x00000018
  261. #define REO_FLUSH_QUEUE_STATUS_6_RESERVED_6A_LSB 0
  262. #define REO_FLUSH_QUEUE_STATUS_6_RESERVED_6A_MASK 0xffffffff
  263. /* Description REO_FLUSH_QUEUE_STATUS_7_RESERVED_7A
  264. <legal 0>
  265. */
  266. #define REO_FLUSH_QUEUE_STATUS_7_RESERVED_7A_OFFSET 0x0000001c
  267. #define REO_FLUSH_QUEUE_STATUS_7_RESERVED_7A_LSB 0
  268. #define REO_FLUSH_QUEUE_STATUS_7_RESERVED_7A_MASK 0xffffffff
  269. /* Description REO_FLUSH_QUEUE_STATUS_8_RESERVED_8A
  270. <legal 0>
  271. */
  272. #define REO_FLUSH_QUEUE_STATUS_8_RESERVED_8A_OFFSET 0x00000020
  273. #define REO_FLUSH_QUEUE_STATUS_8_RESERVED_8A_LSB 0
  274. #define REO_FLUSH_QUEUE_STATUS_8_RESERVED_8A_MASK 0xffffffff
  275. /* Description REO_FLUSH_QUEUE_STATUS_9_RESERVED_9A
  276. <legal 0>
  277. */
  278. #define REO_FLUSH_QUEUE_STATUS_9_RESERVED_9A_OFFSET 0x00000024
  279. #define REO_FLUSH_QUEUE_STATUS_9_RESERVED_9A_LSB 0
  280. #define REO_FLUSH_QUEUE_STATUS_9_RESERVED_9A_MASK 0xffffffff
  281. /* Description REO_FLUSH_QUEUE_STATUS_10_RESERVED_10A
  282. <legal 0>
  283. */
  284. #define REO_FLUSH_QUEUE_STATUS_10_RESERVED_10A_OFFSET 0x00000028
  285. #define REO_FLUSH_QUEUE_STATUS_10_RESERVED_10A_LSB 0
  286. #define REO_FLUSH_QUEUE_STATUS_10_RESERVED_10A_MASK 0xffffffff
  287. /* Description REO_FLUSH_QUEUE_STATUS_11_RESERVED_11A
  288. <legal 0>
  289. */
  290. #define REO_FLUSH_QUEUE_STATUS_11_RESERVED_11A_OFFSET 0x0000002c
  291. #define REO_FLUSH_QUEUE_STATUS_11_RESERVED_11A_LSB 0
  292. #define REO_FLUSH_QUEUE_STATUS_11_RESERVED_11A_MASK 0xffffffff
  293. /* Description REO_FLUSH_QUEUE_STATUS_12_RESERVED_12A
  294. <legal 0>
  295. */
  296. #define REO_FLUSH_QUEUE_STATUS_12_RESERVED_12A_OFFSET 0x00000030
  297. #define REO_FLUSH_QUEUE_STATUS_12_RESERVED_12A_LSB 0
  298. #define REO_FLUSH_QUEUE_STATUS_12_RESERVED_12A_MASK 0xffffffff
  299. /* Description REO_FLUSH_QUEUE_STATUS_13_RESERVED_13A
  300. <legal 0>
  301. */
  302. #define REO_FLUSH_QUEUE_STATUS_13_RESERVED_13A_OFFSET 0x00000034
  303. #define REO_FLUSH_QUEUE_STATUS_13_RESERVED_13A_LSB 0
  304. #define REO_FLUSH_QUEUE_STATUS_13_RESERVED_13A_MASK 0xffffffff
  305. /* Description REO_FLUSH_QUEUE_STATUS_14_RESERVED_14A
  306. <legal 0>
  307. */
  308. #define REO_FLUSH_QUEUE_STATUS_14_RESERVED_14A_OFFSET 0x00000038
  309. #define REO_FLUSH_QUEUE_STATUS_14_RESERVED_14A_LSB 0
  310. #define REO_FLUSH_QUEUE_STATUS_14_RESERVED_14A_MASK 0xffffffff
  311. /* Description REO_FLUSH_QUEUE_STATUS_15_RESERVED_15A
  312. <legal 0>
  313. */
  314. #define REO_FLUSH_QUEUE_STATUS_15_RESERVED_15A_OFFSET 0x0000003c
  315. #define REO_FLUSH_QUEUE_STATUS_15_RESERVED_15A_LSB 0
  316. #define REO_FLUSH_QUEUE_STATUS_15_RESERVED_15A_MASK 0xffffffff
  317. /* Description REO_FLUSH_QUEUE_STATUS_16_RESERVED_16A
  318. <legal 0>
  319. */
  320. #define REO_FLUSH_QUEUE_STATUS_16_RESERVED_16A_OFFSET 0x00000040
  321. #define REO_FLUSH_QUEUE_STATUS_16_RESERVED_16A_LSB 0
  322. #define REO_FLUSH_QUEUE_STATUS_16_RESERVED_16A_MASK 0xffffffff
  323. /* Description REO_FLUSH_QUEUE_STATUS_17_RESERVED_17A
  324. <legal 0>
  325. */
  326. #define REO_FLUSH_QUEUE_STATUS_17_RESERVED_17A_OFFSET 0x00000044
  327. #define REO_FLUSH_QUEUE_STATUS_17_RESERVED_17A_LSB 0
  328. #define REO_FLUSH_QUEUE_STATUS_17_RESERVED_17A_MASK 0xffffffff
  329. /* Description REO_FLUSH_QUEUE_STATUS_18_RESERVED_18A
  330. <legal 0>
  331. */
  332. #define REO_FLUSH_QUEUE_STATUS_18_RESERVED_18A_OFFSET 0x00000048
  333. #define REO_FLUSH_QUEUE_STATUS_18_RESERVED_18A_LSB 0
  334. #define REO_FLUSH_QUEUE_STATUS_18_RESERVED_18A_MASK 0xffffffff
  335. /* Description REO_FLUSH_QUEUE_STATUS_19_RESERVED_19A
  336. <legal 0>
  337. */
  338. #define REO_FLUSH_QUEUE_STATUS_19_RESERVED_19A_OFFSET 0x0000004c
  339. #define REO_FLUSH_QUEUE_STATUS_19_RESERVED_19A_LSB 0
  340. #define REO_FLUSH_QUEUE_STATUS_19_RESERVED_19A_MASK 0xffffffff
  341. /* Description REO_FLUSH_QUEUE_STATUS_20_RESERVED_20A
  342. <legal 0>
  343. */
  344. #define REO_FLUSH_QUEUE_STATUS_20_RESERVED_20A_OFFSET 0x00000050
  345. #define REO_FLUSH_QUEUE_STATUS_20_RESERVED_20A_LSB 0
  346. #define REO_FLUSH_QUEUE_STATUS_20_RESERVED_20A_MASK 0xffffffff
  347. /* Description REO_FLUSH_QUEUE_STATUS_21_RESERVED_21A
  348. <legal 0>
  349. */
  350. #define REO_FLUSH_QUEUE_STATUS_21_RESERVED_21A_OFFSET 0x00000054
  351. #define REO_FLUSH_QUEUE_STATUS_21_RESERVED_21A_LSB 0
  352. #define REO_FLUSH_QUEUE_STATUS_21_RESERVED_21A_MASK 0xffffffff
  353. /* Description REO_FLUSH_QUEUE_STATUS_22_RESERVED_22A
  354. <legal 0>
  355. */
  356. #define REO_FLUSH_QUEUE_STATUS_22_RESERVED_22A_OFFSET 0x00000058
  357. #define REO_FLUSH_QUEUE_STATUS_22_RESERVED_22A_LSB 0
  358. #define REO_FLUSH_QUEUE_STATUS_22_RESERVED_22A_MASK 0xffffffff
  359. /* Description REO_FLUSH_QUEUE_STATUS_23_RESERVED_23A
  360. <legal 0>
  361. */
  362. #define REO_FLUSH_QUEUE_STATUS_23_RESERVED_23A_OFFSET 0x0000005c
  363. #define REO_FLUSH_QUEUE_STATUS_23_RESERVED_23A_LSB 0
  364. #define REO_FLUSH_QUEUE_STATUS_23_RESERVED_23A_MASK 0xffffffff
  365. /* Description REO_FLUSH_QUEUE_STATUS_24_RESERVED_24A
  366. <legal 0>
  367. */
  368. #define REO_FLUSH_QUEUE_STATUS_24_RESERVED_24A_OFFSET 0x00000060
  369. #define REO_FLUSH_QUEUE_STATUS_24_RESERVED_24A_LSB 0
  370. #define REO_FLUSH_QUEUE_STATUS_24_RESERVED_24A_MASK 0x0fffffff
  371. /* Description REO_FLUSH_QUEUE_STATUS_24_LOOPING_COUNT
  372. A count value that indicates the number of times the
  373. producer of entries into this Ring has looped around the
  374. ring.
  375. At initialization time, this value is set to 0. On the
  376. first loop, this value is set to 1. After the max value is
  377. reached allowed by the number of bits for this field, the
  378. count value continues with 0 again.
  379. In case SW is the consumer of the ring entries, it can
  380. use this field to figure out up to where the producer of
  381. entries has created new entries. This eliminates the need to
  382. check where the head pointer' of the ring is located once
  383. the SW starts processing an interrupt indicating that new
  384. entries have been put into this ring...
  385. Also note that SW if it wants only needs to look at the
  386. LSB bit of this count value.
  387. <legal all>
  388. */
  389. #define REO_FLUSH_QUEUE_STATUS_24_LOOPING_COUNT_OFFSET 0x00000060
  390. #define REO_FLUSH_QUEUE_STATUS_24_LOOPING_COUNT_LSB 28
  391. #define REO_FLUSH_QUEUE_STATUS_24_LOOPING_COUNT_MASK 0xf0000000
  392. #endif // _REO_FLUSH_QUEUE_STATUS_H_