Skip to content

Commit

Permalink
Update panfrost_issues.h
Browse files Browse the repository at this point in the history
  • Loading branch information
SamulKyull authored Jun 23, 2024
1 parent 9e798e9 commit 675699c
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion bsp/drivers/gpu/panfrost/panfrost_issues.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
enum panfrost_hw_issue {
/* Need way to guarantee that all previously-translated memory accesses
* are commited */
* are committed */
HW_ISSUE_6367,

/* On job complete with non-done the cache is not flushed */
Expand Down Expand Up @@ -125,6 +125,16 @@ enum panfrost_hw_issue {
* kernel must fiddle with L2 caches to prevent data leakage */
HW_ISSUE_TGOX_R1_1234,

/* Must set SC_VAR_ALGORITHM */
HW_ISSUE_TTRX_2968_TTRX_3162,

/* Bus fault from occlusion query write may cause future fragment jobs
* to hang */
HW_ISSUE_TTRX_3076,

/* Must issue a dummy job before starting real work to prevent hangs */
HW_ISSUE_TTRX_3485,

HW_ISSUE_END
};

Expand Down Expand Up @@ -248,6 +258,13 @@ enum panfrost_hw_issue {

#define hw_issues_g76 0

#define hw_issues_g57 (\
BIT_ULL(HW_ISSUE_TTRX_2968_TTRX_3162) | \
BIT_ULL(HW_ISSUE_TTRX_3076))

#define hw_issues_g57_r0p0 (\
BIT_ULL(HW_ISSUE_TTRX_3485))

static inline bool panfrost_has_hw_issue(struct panfrost_device *pfdev,
enum panfrost_hw_issue issue)
{
Expand Down

0 comments on commit 675699c

Please sign in to comment.