Message ID | 20230316102041.210269-10-angelogioacchino.delregno@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp398458wrt; Thu, 16 Mar 2023 03:24:58 -0700 (PDT) X-Google-Smtp-Source: AK7set+qq4239ESrWMw4TgFbviYzyglTXynQHQFnwseHS2P7LTG8Ls/kKxVpbC0EdjlmN9Aajegg X-Received: by 2002:a05:6a20:8f15:b0:d5:8a5:e61e with SMTP id b21-20020a056a208f1500b000d508a5e61emr4032819pzk.11.1678962298404; Thu, 16 Mar 2023 03:24:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678962298; cv=none; d=google.com; s=arc-20160816; b=TQIk/RRC5wdvfAFWFrTQnblRKhxQ1pZGPnkwNNiWaAKXfCbUcQA7YcMd3ursKBaqJm IjiPU+m6d3kz+RIQPNpFngBI/hlA0Qo75pYvUgTIzwExMu40tft3WnU5o3TQnVAeSgRH z1WadF/2Ez35XHtjr8XgAY5vK87h4vl8JaLjESxN252EG7/hw5xhIOX2t2r/29FppIQO gsYts4ufOBpEAXahqQcu5JFjA1WRminZZSotyfMIm/owmr+Ul/3VwcID/mnWbUhEMcdk VVzcdwXIuZ4n5WyDghe/+xpEC8QNMiNDg5XFB6SbdWHKQEPonLgYC58wqCYKD1zhADJ0 cRLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=x1+DhHjPcSJbA0eqqcLjb+ex/IqQCVdtTHn2Cytfl20=; b=QspU434p2Qps2d1GAcsS5d9M4Q2EBr3p6bv07RuzbK/ZNsDCXpweAMuqErM3qBK5VW If6g80f67RdOjsKteUJtmrieH3PUW7+ryfehiQggKoArWToYYUn4JZNLn5yFPlidPl2G Ns+EaayiLhZHHny5P/DL6T783oXj3cXQUrDzjTKZnR+ggE030akqov7PsaOxtLb+huCF d/57fCSSva71s/EFtyjSkvY4shEUu+lnYjXDTnf6e/K+k/JuGxd5l7CKPdIA72qPk1aW PaWqO+ZV0RFwprhcPEEuYXlh1fDbClGYRWqWj6NjUHPPmTA8u8vdSJrJTkDXaVltzzL1 ghRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=W8HjQ4jW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h9-20020a631209000000b00502d81ecf19si7352879pgl.646.2023.03.16.03.24.43; Thu, 16 Mar 2023 03:24:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=W8HjQ4jW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231316AbjCPKVu (ORCPT <rfc822;ruipengqi7@gmail.com> + 99 others); Thu, 16 Mar 2023 06:21:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230179AbjCPKVL (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 16 Mar 2023 06:21:11 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF593BBB3D; Thu, 16 Mar 2023 03:20:58 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 4D4D966030A8; Thu, 16 Mar 2023 10:20:53 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1678962054; bh=tqMhjHDqyf9W8dBe5zrV6xBWEsaXyIn78lwVXQZBTKI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W8HjQ4jWTnPPa1xbsH5ty3//pOcwvc6EEOM8oaoUH9B5Lsytcw8cka9PfoYvzeDKa HSbRn96OzlC2Izzc+T53S8M7LPqceVuullDRTaz+Q8fd8xlo53gjmnxR4XMpQco8ZQ azu+rKOc4Odp5mBAxTnXbSFUZbGfYnONPRuW6vl1efpZgHky+RD49KvC9pfeS6WR5h gIlwrtoKk2ouFNJlUJon9St7OmcifPL8toK50aRb04bxUqYLFFNCdWqK/3M1AfoinC 5shGEDTrupd8XVc90oS/JUuZTKasyJqMYsGp3HDCURwBEmm612z9O0d7er4lJNz5pq YuzoHIZ/k+IQg== From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> To: airlied@gmail.com Cc: daniel@ffwll.ch, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, steven.price@arm.com, alyssa.rosenzweig@collabora.com, matthias.bgg@gmail.com, robh@kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, wenst@chromium.org, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Subject: [PATCH v5 09/12] drm/panfrost: Add the MT8192 GPU ID Date: Thu, 16 Mar 2023 11:20:38 +0100 Message-Id: <20230316102041.210269-10-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230316102041.210269-1-angelogioacchino.delregno@collabora.com> References: <20230316102041.210269-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760519571131144753?= X-GMAIL-MSGID: =?utf-8?q?1760519571131144753?= |
Series |
Panfrost: Improve and add MediaTek SoCs support
|
|
Commit Message
AngeloGioacchino Del Regno
March 16, 2023, 10:20 a.m. UTC
From: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> MediaTek MT8192 has a Mali-G57 with a special GPU ID. Add its GPU ID, but treat it as otherwise identical to a standard Mali-G57. We do _not_ fix up the GPU ID here -- userspace needs to be aware of the special GPU ID, in case we find functional differences between MediaTek's implementation and the standard Mali-G57 down the line. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Steven Price <steven.price@arm.com> Reviewed-by: Chen-Yu Tsai <wenst@chromium.org> Tested-by: Chen-Yu Tsai <wenst@chromium.org> --- drivers/gpu/drm/panfrost/panfrost_gpu.c | 8 ++++++++ 1 file changed, 8 insertions(+)
diff --git a/drivers/gpu/drm/panfrost/panfrost_gpu.c b/drivers/gpu/drm/panfrost/panfrost_gpu.c index 6452e4e900dd..d28b99732dde 100644 --- a/drivers/gpu/drm/panfrost/panfrost_gpu.c +++ b/drivers/gpu/drm/panfrost/panfrost_gpu.c @@ -204,6 +204,14 @@ static const struct panfrost_model gpu_models[] = { GPU_MODEL(g57, 0x9001, GPU_REV(g57, 0, 0)), + + /* MediaTek MT8192 has a Mali-G57 with a different GPU ID from the + * standard. Arm's driver does not appear to handle this model. + * ChromeOS has a hack downstream for it. Treat it as equivalent to + * standard Mali-G57 for now. + */ + GPU_MODEL(g57, 0x9003, + GPU_REV(g57, 0, 0)), }; static void panfrost_gpu_init_features(struct panfrost_device *pfdev)