diff options
author | Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> | 2022-05-25 10:57:53 -0400 |
---|---|---|
committer | Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> | 2022-05-26 09:53:38 -0400 |
commit | 5ba99fca1de0272ce05b65f19bcc184b5cb43285 (patch) | |
tree | 00696dce8110fe942c08234f6cd0ec6835c0f8d3 /drivers/gpu/drm/panfrost/panfrost_issues.h | |
parent | d8e53d8a4e0ae842ef5e83e0dfb0796980f710cf (diff) | |
download | linux-stable-5ba99fca1de0272ce05b65f19bcc184b5cb43285.tar.gz linux-stable-5ba99fca1de0272ce05b65f19bcc184b5cb43285.tar.bz2 linux-stable-5ba99fca1de0272ce05b65f19bcc184b5cb43285.zip |
drm/panfrost: Add Mali-G57 "Natt" support
Add the features, issues, and GPU ID for Mali-G57, a first-generation
Valhall GPU. Other first- and second-generation Valhall GPUs should be
similar.
v2: Split out issue list for r0p0 from newer Natt GPUs, as TTRX_3485 was
fixed in r0p1. Unfortunately, MT8192 has a r0p0, so we do need to handle
TTRX_3485.
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220525145754.25866-9-alyssa.rosenzweig@collabora.com
Diffstat (limited to 'drivers/gpu/drm/panfrost/panfrost_issues.h')
-rw-r--r-- | drivers/gpu/drm/panfrost/panfrost_issues.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panfrost/panfrost_issues.h b/drivers/gpu/drm/panfrost/panfrost_issues.h index 4d41e0a13867..eb60cb83667a 100644 --- a/drivers/gpu/drm/panfrost/panfrost_issues.h +++ b/drivers/gpu/drm/panfrost/panfrost_issues.h @@ -258,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(const struct panfrost_device *pfdev, enum panfrost_hw_issue issue) { |