From dc569585a6a07ae3e9872834c06250cc00c1d07d Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 19 Jul 2021 14:20:34 -0400 Subject: [PATCH] pan/bi: Add quirks for Mali G78 Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/bi_quirks.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/panfrost/bifrost/bi_quirks.h b/src/panfrost/bifrost/bi_quirks.h index ea674df9be1..aec92918071 100644 --- a/src/panfrost/bifrost/bi_quirks.h +++ b/src/panfrost/bifrost/bi_quirks.h @@ -51,8 +51,10 @@ bifrost_get_quirks(unsigned product_id) case 0x72: case 0x74: return 0; + case 0x92: + return BIFROST_NO_PRELOAD; default: - unreachable("Unknown Bifrost GPU ID"); + unreachable("Unknown Bifrost/Valhall GPU ID"); } } @@ -62,9 +64,12 @@ bifrost_get_quirks(unsigned product_id) static inline unsigned bifrost_lanes_per_warp(unsigned product_id) { - unsigned major = product_id >> 12; - assert(major == 6 || major == 7); - return (major == 7) ? 8 : 4; + switch (product_id >> 12) { + case 6: return 4; + case 7: return 8; + case 9: return 16; + default: unreachable("Invalid Bifrost/Valhall GPU major"); + } } #endif