[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230323084521.19689-1-angelogioacchino.delregno@collabora.com>
Date: Thu, 23 Mar 2023 09:45:21 +0100
From: AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>
To: airlied@...il.com
Cc: daniel@...ll.ch, robh+dt@...nel.org,
krzysztof.kozlowski+dt@...aro.org, wenst@...omium.org,
steven.price@....com, alyssa.rosenzweig@...labora.com,
robh@...nel.org, dri-devel@...ts.freedesktop.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel@...labora.com,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>
Subject: [PATCH v1 0/2] Panfrost: GPU Speed-binning support via OPP
The OPP framework supports binning through the 'opp-supported-hw'
devicetree property and some of the SoCs that are using Panfrost,
namely ... MediaTek, are actually binned.
This is especially seen in MT8186, but some other models do actually
support the same.
This series adds basic binning support by simply checking (and reading)
speed-bin from NVMEM (eFuse arrays, usually) and *if and only if* that
is provided, adds the read value with devm_pm_opp_set_supported_hw().
This code expects to receive a value that is compatible with how the
supported_hw checks work in OPP and it should never contain any kind
of platform (or SoC) specific code, since Panfrost is a driver for a
GPU that may be tied to different SoCs... and this is what this series
provides.
Cheers!
AngeloGioacchino Del Regno (2):
dt-bindings: gpu: mali-bifrost: Document nvmem for speedbin support
drm/panfrost: Add basic support for speed binning
.../bindings/gpu/arm,mali-bifrost.yaml | 7 +++++
drivers/gpu/drm/panfrost/panfrost_devfreq.c | 30 +++++++++++++++++++
2 files changed, 37 insertions(+)
--
2.40.0
Powered by blists - more mailing lists