panfrost: Add GPU IDs for G52 1-Core-2EE (RK3568/RK3566)
authorEzequiel Garcia <ezequiel@collabora.com>
Tue, 11 May 2021 19:57:25 +0000 (16:57 -0300)
committerMarge Bot <eric+marge@anholt.net>
Wed, 12 May 2021 20:45:44 +0000 (20:45 +0000)
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@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10771>

src/gallium/drivers/panfrost/pan_screen.c
src/panfrost/bifrost/bi_quirks.h
src/panfrost/include/panfrost-quirks.h
src/panfrost/lib/pan_props.c

index 6c33bff..64a455a 100644 (file)
@@ -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 */
index 05633f0..ea674df 100644 (file)
@@ -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");
index a0d1979..4c46e2a 100644 (file)
@@ -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:
index f5fae6c..d1ea9c4 100644 (file)
@@ -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");
         }