Message ID | 20230223133440.80941-1-angelogioacchino.delregno@collabora.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp315377wrd; Thu, 23 Feb 2023 05:37:04 -0800 (PST) X-Google-Smtp-Source: AK7set8Mww8euSVaxqvo6WyfuUAe0TPPsF6Od83w651hlm85/0uW4ShA4a5ly5naWbqLEW/5dJhu X-Received: by 2002:a05:6402:34d5:b0:4ab:dde:dea7 with SMTP id w21-20020a05640234d500b004ab0ddedea7mr12881322edc.2.1677159423857; Thu, 23 Feb 2023 05:37:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677159423; cv=none; d=google.com; s=arc-20160816; b=uQccc/InnEKZaL4WMn4itq7CFTKgKs4qIXVxqysIq26uf5apNIIqeudRM9Vb9X6Pra LNZGEctuwgtDccPMkUOie5vJytUyEWPGPMEr1YI5XmkqwbYWNQYuvX41MKW4PhyrSOIw eY+d6RlpDjzXIde3q4ovsTv4RBm6WHmIUZFoL94P7qG8wev0P7NH2jDQsgA9/D6SEwRP Gwg0icoaZUp3TrJrVXMWik51QpNZKMxe1TECPRXObS2T6JbsbfMLrXmCEmAHzzvfCTnc ebGYdDF3Rls0ZY2gjki81Qgf16nRq29lH1W24EF1/jTkt0465QITJhivfZBO3LXXj19Z rTAw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=qv16WovP+i63f01U6yE5nGQSgXhCKEfAq4QKaaRSsM0=; b=ymDRlChidcSVTgZR6q8V/DCobtR1ZlyVoPl0SUDAMySe4zlOvk2ZAKU3sAJU0On5xh DPuFhY7LPADQ0DozD7RBX0jmNjFcqz0BfWgRNCtqRI5sCWLKtuX5C+0t8UGQr8GON+YF fYArQ/5O6J3Oxuvo/59Hvl8ZKaYXI2E4FDvvCR4w6a3Q6phuUmzDtYJc7jKXAra7C3NF Fyw+ksfRrD/st1glJZy21rHXfMhkyzPN/wzFDxUihfVXHFvmKeKQpA79Cn4IVUSFixs8 eZfT5MUvDd66CQ57K/AIX1Z7Q5UIvWlmRx7MsGOwi4m8sGE6ltvbVdfyPuJk2nxsilcg DUAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=aVlcM9y0; 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=REJECT sp=REJECT 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 i20-20020aa7c714000000b004af500245c7si9925643edq.575.2023.02.23.05.36.32; Thu, 23 Feb 2023 05:37:03 -0800 (PST) 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=aVlcM9y0; 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=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233847AbjBWNfD (ORCPT <rfc822;cambridge8321@gmail.com> + 99 others); Thu, 23 Feb 2023 08:35:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234256AbjBWNe6 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 23 Feb 2023 08:34:58 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6AA136099; Thu, 23 Feb 2023 05:34:54 -0800 (PST) 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 A42EA6602206; Thu, 23 Feb 2023 13:34:52 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677159293; bh=J05VOJ/v8ZM7p27Zfp7JPs6FlzOQ0Zl1Z4LmO44WWW0=; h=From:To:Cc:Subject:Date:From; b=aVlcM9y0itDo2u20hnTMH+9kRHmVOG5U90DIodX+9QMNY+RItjxJq7Z1MRgEu/Sgu DuoBqQJCUQghxYzKMcwHuF9frPrarwqj/85fbtg9E1dIrldJ2UkGyMg8sAp0jlBrrW /K3I8m5WWPrEGYs5TFV4HkvPvtiL/eJPD6CDJLJcW+dzIV99WvpEu/N93o2FGwr0CC 716Tyi5cRrxGhYzL0a9MPRAIQMSCrIkNjqjqqgZkkkxwsifnnIW/zSbHnr/FeMmP+h UfUsAFL8tk8A8WmGRBaMB2WP6tO7XnVD9V3SPIS61c/xybegnKC56X+jTEDuhbYEne ErD0hDg9xp6Rw== 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 v3 00/11] Panfrost: Improve and add MediaTek SoCs support Date: Thu, 23 Feb 2023 14:34:29 +0100 Message-Id: <20230223133440.80941-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 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?1758629120076664277?= X-GMAIL-MSGID: =?utf-8?q?1758629120076664277?= |
Series |
Panfrost: Improve and add MediaTek SoCs support
|
|
Message
AngeloGioacchino Del Regno
Feb. 23, 2023, 1:34 p.m. UTC
Changes in v3: - Changed MT8186 bindings to declare only two power domains - Added a commit introducing MT8186 specific platform data to panfrost_drv Changes in v2: - Add power-domain-names commit from Chen-Yu to the series - Kept sram-supply in base schema, overridden for non-MediaTek - Added Reviewed-by tags from Steven Price to the driver commits (as released in reply to v1's cover letter - thanks!) This series adds support for new MediaTek SoCs (MT8186/MT8192/MT8195) and improves MT8183 support: since the mtk-regulator-coupler driver was picked, it is now useless for Panfrost to look for, and manage, two regulators (GPU Vcore and GPU SRAM) on MediaTek; The aforementioned driver will take care of keeping the voltage relation (/constraints) of the two regulators on its own when a voltage change request is sent to the Vcore, solving the old time issue with not working DVFS on Panfrost+MediaTek (due to devfreq supporting only single regulator). In the specific case of MT8183, in order to not break the ABI, it was necessary to add a new compatible for enabling DVFS. Alyssa Rosenzweig (3): drm/panfrost: Increase MAX_PM_DOMAINS to 5 drm/panfrost: Add the MT8192 GPU ID drm/panfrost: Add mediatek,mt8192-mali compatible AngeloGioacchino Del Regno (7): dt-bindings: gpu: mali-bifrost: Split out MediaTek power-domains variation dt-bindings: gpu: mali-bifrost: Allow up to 5 power domains for MT8192 dt-bindings: gpu: mali-bifrost: Add compatible for MT8195 SoC dt-bindings: gpu: mali-bifrost: Add new MT8183 compatible dt-bindings: gpu: mali-bifrost: Add support for MediaTek MT8186 drm/panfrost: Add new compatible for Mali on the MT8183 SoC drm/panfrost: Add support for Mali on the MT8186 SoC Chen-Yu Tsai (1): dt-bindings: gpu: mali-bifrost: Add power-domain-names to base schema .../bindings/gpu/arm,mali-bifrost.yaml | 80 ++++++++++++++++++- drivers/gpu/drm/panfrost/panfrost_device.h | 2 +- drivers/gpu/drm/panfrost/panfrost_drv.c | 37 +++++++++ drivers/gpu/drm/panfrost/panfrost_gpu.c | 8 ++ 4 files changed, 123 insertions(+), 4 deletions(-)
Comments
On Thu, Feb 23, 2023 at 9:34 PM AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> wrote: > > Changes in v3: > - Changed MT8186 bindings to declare only two power domains > - Added a commit introducing MT8186 specific platform data to > panfrost_drv > > Changes in v2: > - Add power-domain-names commit from Chen-Yu to the series > - Kept sram-supply in base schema, overridden for non-MediaTek > - Added Reviewed-by tags from Steven Price to the driver commits > (as released in reply to v1's cover letter - thanks!) > > This series adds support for new MediaTek SoCs (MT8186/MT8192/MT8195) > and improves MT8183 support: since the mtk-regulator-coupler driver > was picked, it is now useless for Panfrost to look for, and manage, > two regulators (GPU Vcore and GPU SRAM) on MediaTek; > > The aforementioned driver will take care of keeping the voltage > relation (/constraints) of the two regulators on its own when a > voltage change request is sent to the Vcore, solving the old time > issue with not working DVFS on Panfrost+MediaTek (due to devfreq > supporting only single regulator). > > In the specific case of MT8183, in order to not break the ABI, it > was necessary to add a new compatible for enabling DVFS. > > Alyssa Rosenzweig (3): > drm/panfrost: Increase MAX_PM_DOMAINS to 5 > drm/panfrost: Add the MT8192 GPU ID > drm/panfrost: Add mediatek,mt8192-mali compatible > > AngeloGioacchino Del Regno (7): > dt-bindings: gpu: mali-bifrost: Split out MediaTek power-domains > variation > dt-bindings: gpu: mali-bifrost: Allow up to 5 power domains for MT8192 > dt-bindings: gpu: mali-bifrost: Add compatible for MT8195 SoC > dt-bindings: gpu: mali-bifrost: Add new MT8183 compatible > dt-bindings: gpu: mali-bifrost: Add support for MediaTek MT8186 > drm/panfrost: Add new compatible for Mali on the MT8183 SoC > drm/panfrost: Add support for Mali on the MT8186 SoC > > Chen-Yu Tsai (1): > dt-bindings: gpu: mali-bifrost: Add power-domain-names to base schema Tested-by: Chen-Yu Tsai <wenst@chromium.org> on MT8183 Juniper, MT8192 Hayato, MT8195 Tomato, MT8186 not-yet-upstreamed device.