Mesa (main): panfrost: Add GPU IDs for G52 1-Core-2EE (RK3568/RK3566)

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed May 12 20:58:28 UTC 2021


Module: Mesa
Branch: main
Commit: e1959f0f5990fc73e78a7431a800c623b6fc5208
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e1959f0f5990fc73e78a7431a800c623b6fc5208

Author: Ezequiel Garcia <ezequiel at collabora.com>
Date:   Tue May 11 16:57:25 2021 -0300

panfrost: Add GPU IDs for G52 1-Core-2EE (RK3568/RK3566)

Rockchip SoCs RK3566 and RK3568 have a Gondul with
one shader core and two execution engines, with product ID 0x7402.

Quoting the datasheet:

Mali-G52 1-Core-2EE
* Support 1600Mpix/s fill rate when 800MHz clock frequency
* Support 38.4GLOPs when 800MHz clock frequency

To distinguish it from other variants of G52, we agreed
to call this "G52L", L is for Little.

Signed-off-by: Ezequiel Garcia <ezequiel at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10771>

---

 src/gallium/drivers/panfrost/pan_screen.c | 1 +
 src/panfrost/bifrost/bi_quirks.h          | 1 +
 src/panfrost/include/panfrost-quirks.h    | 1 +
 src/panfrost/lib/pan_props.c              | 1 +
 4 files changed, 4 insertions(+)

diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c
index 6c33bff4ffa..64a455adfbc 100644
--- a/src/gallium/drivers/panfrost/pan_screen.c
+++ b/src/gallium/drivers/panfrost/pan_screen.c
@@ -843,6 +843,7 @@ panfrost_create_screen(int fd, struct renderonly *ro)
         case 0x6221: /* G72 */
         case 0x7093: /* G31 */
         case 0x7212: /* G52 */
+        case 0x7402: /* G52L */
                 break;
         default:
                 /* Fail to load against untested models */
diff --git a/src/panfrost/bifrost/bi_quirks.h b/src/panfrost/bifrost/bi_quirks.h
index 05633f0783b..ea674df9be1 100644
--- a/src/panfrost/bifrost/bi_quirks.h
+++ b/src/panfrost/bifrost/bi_quirks.h
@@ -49,6 +49,7 @@ bifrost_get_quirks(unsigned product_id)
                 return BIFROST_NO_PRELOAD;
         case 0x70:
         case 0x72:
+        case 0x74:
                 return 0;
         default:
                 unreachable("Unknown Bifrost GPU ID");
diff --git a/src/panfrost/include/panfrost-quirks.h b/src/panfrost/include/panfrost-quirks.h
index a0d1979bf3c..4c46e2ab4c4 100644
--- a/src/panfrost/include/panfrost-quirks.h
+++ b/src/panfrost/include/panfrost-quirks.h
@@ -116,6 +116,7 @@ panfrost_get_quirks(unsigned gpu_id, unsigned gpu_revision)
 
         case 0x7093: /* G31 */
         case 0x7212: /* G52 */
+        case 0x7402: /* G52L */
                 return BIFROST_QUIRKS | HAS_ANISOTROPIC;
 
         default:
diff --git a/src/panfrost/lib/pan_props.c b/src/panfrost/lib/pan_props.c
index f5fae6c6123..d1ea9c4fe64 100644
--- a/src/panfrost/lib/pan_props.c
+++ b/src/panfrost/lib/pan_props.c
@@ -217,6 +217,7 @@ panfrost_model_name(unsigned gpu_id)
         case 0x6221: return "Mali G72 (Panfrost)";
         case 0x7093: return "Mali G31 (Panfrost)";
         case 0x7212: return "Mali G52 (Panfrost)";
+        case 0x7402: return "Mali G52L (Panfrost)";
         default:
                     unreachable("Invalid GPU ID");
         }



More information about the mesa-commit mailing list