Re: [PATCH] drm/msm/dpu: drop duplicate drm formats from wb2_formats arrays

2024-05-24 Thread Konrad Dybcio
formats, format)' failed. > > Signed-off-by: Junhao Xie > --- Reviewed-by: Konrad Dybcio Konrad

Re: [PATCH] drm/msm: Add obj flags to gpu devcoredump

2024-05-14 Thread Konrad Dybcio
On 5/13/24 17:51, Rob Clark wrote: From: Rob Clark When debugging faults, it is useful to know how the BO is mapped (cached vs WC, gpu readonly, etc). Signed-off-by: Rob Clark --- Acked-by: Konrad Dybcio Konrad

[PATCH v2] drm/msm/adreno: De-spaghettify the use of memory barriers

2024-05-09 Thread Konrad Dybcio
the hack introduced in commit b77532803d11 ("drm/msm/a6xx: Poll for GBIF unhalt status in hw_init"). Fixes: b77532803d11 ("drm/msm/a6xx: Poll for GBIF unhalt status in hw_init") Signed-off-by: Konrad Dybcio --- Changes in v2: * Introduce gpu_write_flush() and use it * Don't acc

[PATCH] drm/msm/adreno: De-spaghettify the use of memory barriers

2024-05-08 Thread Konrad Dybcio
the hack introduced in commit b77532803d11 ("drm/msm/a6xx: Poll for GBIF unhalt status in hw_init"). Fixes: b77532803d11 ("drm/msm/a6xx: Poll for GBIF unhalt status in hw_init") Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 5 ++--- drivers/gpu/drm/msm/ad

Re: [PATCH 10/10] arm64: dts: qcom: Add AYN Odin 2

2024-04-30 Thread Konrad Dybcio
On 24.04.2024 5:29 PM, Xilin Wu via B4 Relay wrote: > From: Xilin Wu > > AYN Odin 2 is a gaming handheld based on QCS8550, which is derived > from SM8550 but without modem RF system. > > This commit brings support for: > * Remoteprocs > * UFS storage > * SD Card > * Type-C with USB3 10Gbps and

Re: [PATCH 05/10] arm64: dts: qcom: pmk8550: Add PWM controller

2024-04-24 Thread Konrad Dybcio
On 4/24/24 17:29, Xilin Wu via B4 Relay wrote: From: Xilin Wu Add the PWM function to the pmk8550 dtsi, which is usually used to control PWM backlight on platforms using this PMIC. Signed-off-by: Xilin Wu --- Reviewed-by: Konrad Dybcio Konrad

Re: [PATCH 02/10] pwm: Add SI-EN SN3112 PWM support

2024-04-24 Thread Konrad Dybcio
On 4/24/24 17:29, Xilin Wu via B4 Relay wrote: From: Junhao Xie Add a new driver for the SI-EN SN3112 12-channel 8-bit PWM LED controller. Signed-off-by: Junhao Xie --- [...] +static int sn3112_set_en_reg(struct sn3112 *priv, unsigned int channel, +bool

[PATCH 2/2] drm/msm/dsi: Remove dsi_phy_write_[un]delay()

2024-04-22 Thread Konrad Dybcio
These are dummy wrappers that do literally nothing interesting. Remove them. Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/dsi/phy/dsi_phy.h | 3 -- drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c | 3 +- drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c | 81 +++--- 3

[PATCH 0/2] Remove more useless wrappers

2024-04-22 Thread Konrad Dybcio
Shaving off some cruft obj files seem to be identical pre and post cleanup which is always a good sign Signed-off-by: Konrad Dybcio --- Konrad Dybcio (2): drm/msm/dsi: Remove dsi_phy_read/write() drm/msm/dsi: Remove dsi_phy_write_[un]delay() drivers/gpu/drm/msm/dsi/phy/dsi_phy.h

[PATCH 1/2] drm/msm/dsi: Remove dsi_phy_read/write()

2024-04-22 Thread Konrad Dybcio
These are dummy wrappers that do literally nothing interesting. Remove them. Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/dsi/phy/dsi_phy.h | 2 - drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c | 273 +--- drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c

Re: [PATCH v2 3/7] drm/msm/adreno: Implement SMEM-based speed bin

2024-04-18 Thread Konrad Dybcio
On 18.04.2024 1:07 PM, Dmitry Baryshkov wrote: > On Thu, Apr 18, 2024 at 11:51:16AM +0200, Konrad Dybcio wrote: >> On 18.04.2024 1:43 AM, Dmitry Baryshkov wrote: >>> On Wed, Apr 17, 2024 at 10:02:55PM +0200, Konrad Dybcio wrote: >>>> On recent (SM8550+) Snapdragon pla

Re: [PATCH v2 6/7] drm/msm/adreno: Redo the speedbin assignment

2024-04-18 Thread Konrad Dybcio
On 18.04.2024 1:49 AM, Dmitry Baryshkov wrote: > On Wed, Apr 17, 2024 at 10:02:58PM +0200, Konrad Dybcio wrote: >> There is no need to reinvent the wheel for simple read-match-set logic. >> >> Make speedbin discovery and assignment generation independent. >> >>

Re: [PATCH v2 2/7] soc: qcom: smem: Add a feature code getter

2024-04-18 Thread Konrad Dybcio
On 18.04.2024 1:39 AM, Dmitry Baryshkov wrote: > On Wed, Apr 17, 2024 at 10:02:54PM +0200, Konrad Dybcio wrote: >> Recent (SM8550+ ish) Qualcomm SoCs have a new mechanism for precisely >> identifying the specific SKU and the precise speed bin (in the general >> meaning

Re: [PATCH v2 3/7] drm/msm/adreno: Implement SMEM-based speed bin

2024-04-18 Thread Konrad Dybcio
On 18.04.2024 1:43 AM, Dmitry Baryshkov wrote: > On Wed, Apr 17, 2024 at 10:02:55PM +0200, Konrad Dybcio wrote: >> On recent (SM8550+) Snapdragon platforms, the GPU speed bin data is >> abstracted through SMEM, instead of being directly available in a fuse. >> >> Add s

[PATCH v2 6/7] drm/msm/adreno: Redo the speedbin assignment

2024-04-17 Thread Konrad Dybcio
There is no need to reinvent the wheel for simple read-match-set logic. Make speedbin discovery and assignment generation independent. This implicitly removes the bogus 0x80 / BIT(7) speed bin on A5xx, which has no representation in hardware whatshowever. Signed-off-by: Konrad Dybcio

[PATCH v2 7/7] arm64: dts: qcom: sm8550: Wire up GPU speed bin & more OPPs

2024-04-17 Thread Konrad Dybcio
Add the speedbin masks to ensure only the desired OPPs are available on chips of a given bin. Using this, add the binned 719 MHz OPP and the non-binned 124.8 MHz. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 21 - 1 file changed, 20 insertions

[PATCH v2 3/7] drm/msm/adreno: Implement SMEM-based speed bin

2024-04-17 Thread Konrad Dybcio
em to form something that lets us match OPPs against. Due to the product code being ignored in the context of Adreno on production parts (as of SM8650), hardcode it to SOCINFO_PC_UNKNOWN. Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 8 +++--- drivers/gpu/drm/msm/ad

[PATCH v2 5/7] drm/msm/adreno: Define A530 speed bins explicitly

2024-04-17 Thread Konrad Dybcio
In preparation for commonizing the speedbin handling code. Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/adreno_device.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/msm/adreno/adreno_device.c b/drivers/gpu/drm/msm/adreno/adreno_device.c index

[PATCH v2 4/7] drm/msm/adreno: Add speedbin data for SM8550 / A740

2024-04-17 Thread Konrad Dybcio
Add speebin data for A740, as found on SM8550 and derivative SoCs. Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/adreno_device.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/msm/adreno/adreno_device.c b/drivers/gpu/drm/msm/adreno/adreno_device.c index

[PATCH v2 1/7] soc: qcom: Move some socinfo defines to the header

2024-04-17 Thread Konrad Dybcio
In preparation for parsing the chip "feature code" (FC) and "product code" (PC) (essentially the parameters that let us conclusively characterize the sillicon we're running on, including various speed bins), move the socinfo version defines to the public header. Signed-o

[PATCH v2 2/7] soc: qcom: smem: Add a feature code getter

2024-04-17 Thread Konrad Dybcio
for things such as Adreno. In the case of Adreno specifically, Pcode is useless for non-prototype SoCs. Introduce a getter for the feature code and export it. Signed-off-by: Konrad Dybcio --- drivers/soc/qcom/smem.c | 33 + include/linux/soc/qcom/smem.h

[PATCH v2 0/7] Add SMEM-based speedbin matching

2024-04-17 Thread Konrad Dybcio
h can only be picked if the drm patches are there. Depends on: https://lore.kernel.org/linux-arm-msm/20240412-topic-adreno_nullptr_supphw-v1-1-eb30a1c12...@linaro.org/ Signed-off-by: Konrad Dybcio --- Changes in v2: - Separate moving existing and adding new defines - Fix kerneldoc copypasta - Remove

[PATCH] drm/msm/a6xx: Avoid a nullptr dereference when speedbin setting fails

2024-04-12 Thread Konrad Dybcio
s down the cleanup chain, explicitly de-allocate the LLC data and free a6xx_gpu instead. Fixes: 76efc2453d0e ("drm/msm/gpu: Fix crash during system suspend after unbind") Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletio

Re: [PATCH 1/6] soc: qcom: Move some socinfo defines to the header, expand them

2024-04-11 Thread Konrad Dybcio
On 4/12/24 01:49, Elliot Berman wrote: On Thu, Apr 11, 2024 at 10:24:08PM +0200, Konrad Dybcio wrote: On 4/11/24 22:09, Elliot Berman wrote: On Thu, Apr 11, 2024 at 10:05:30PM +0200, Konrad Dybcio wrote: On 4/11/24 20:55, Elliot Berman wrote: On Fri, Apr 05, 2024 at 10:41:29AM +0200

Re: [PATCH 4/6] drm/msm/adreno: Implement SMEM-based speed bin

2024-04-11 Thread Konrad Dybcio
On 4/11/24 23:46, Dmitry Baryshkov wrote: On Fri, 12 Apr 2024 at 00:35, Konrad Dybcio wrote: On 4/10/24 21:26, Dmitry Baryshkov wrote: On Wed, Apr 10, 2024 at 01:42:33PM +0200, Konrad Dybcio wrote: On 4/6/24 05:23, Dmitry Baryshkov wrote: On Fri, Apr 05, 2024 at 10:41:32AM +0200

Re: [PATCH 4/6] drm/msm/adreno: Implement SMEM-based speed bin

2024-04-11 Thread Konrad Dybcio
On 4/10/24 21:26, Dmitry Baryshkov wrote: On Wed, Apr 10, 2024 at 01:42:33PM +0200, Konrad Dybcio wrote: On 4/6/24 05:23, Dmitry Baryshkov wrote: On Fri, Apr 05, 2024 at 10:41:32AM +0200, Konrad Dybcio wrote: On recent (SM8550+) Snapdragon platforms, the GPU speed bin data is abstracted

Re: [PATCH 1/6] soc: qcom: Move some socinfo defines to the header, expand them

2024-04-11 Thread Konrad Dybcio
On 4/11/24 22:09, Elliot Berman wrote: On Thu, Apr 11, 2024 at 10:05:30PM +0200, Konrad Dybcio wrote: On 4/11/24 20:55, Elliot Berman wrote: On Fri, Apr 05, 2024 at 10:41:29AM +0200, Konrad Dybcio wrote: In preparation for parsing the chip "feature code" (FC) and "pr

Re: [PATCH 1/6] soc: qcom: Move some socinfo defines to the header, expand them

2024-04-11 Thread Konrad Dybcio
On 4/11/24 20:55, Elliot Berman wrote: On Fri, Apr 05, 2024 at 10:41:29AM +0200, Konrad Dybcio wrote: In preparation for parsing the chip "feature code" (FC) and "product code" (PC) (essentially the parameters that let us conclusively characterize the sillicon we're r

[PATCH] drm/msm: Drop msm_read/writel

2024-04-10 Thread Konrad Dybcio
Totally useless. Signed-off-by: Konrad Dybcio --- only compile-tested --- drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 2 +- drivers/gpu/drm/msm/adreno/a6xx_gmu.h | 12 ++-- drivers/gpu/drm/msm/adreno/a6xx_gpu.h | 4 ++-- drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c | 4

Re: [PATCH 3/6] drm/msm/adreno: Allow specifying default speedbin value

2024-04-10 Thread Konrad Dybcio
On 4/9/24 20:31, Dmitry Baryshkov wrote: On Tue, 9 Apr 2024 at 21:27, Konrad Dybcio wrote: On 4/9/24 20:15, Dmitry Baryshkov wrote: On Tue, Apr 09, 2024 at 08:07:56PM +0200, Konrad Dybcio wrote: On 4/9/24 20:04, Dmitry Baryshkov wrote: On Tue, Apr 09, 2024 at 10:12:00AM -0700, Rob

Re: [PATCH 4/6] drm/msm/adreno: Implement SMEM-based speed bin

2024-04-10 Thread Konrad Dybcio
On 4/6/24 05:23, Dmitry Baryshkov wrote: On Fri, Apr 05, 2024 at 10:41:32AM +0200, Konrad Dybcio wrote: On recent (SM8550+) Snapdragon platforms, the GPU speed bin data is abstracted through SMEM, instead of being directly available in a fuse. Add support for SMEM-based speed binning, which

Re: [PATCH 3/6] drm/msm/adreno: Allow specifying default speedbin value

2024-04-09 Thread Konrad Dybcio
On 4/9/24 20:15, Dmitry Baryshkov wrote: On Tue, Apr 09, 2024 at 08:07:56PM +0200, Konrad Dybcio wrote: On 4/9/24 20:04, Dmitry Baryshkov wrote: On Tue, Apr 09, 2024 at 10:12:00AM -0700, Rob Clark wrote: On Tue, Apr 9, 2024 at 8:23 AM Dmitry Baryshkov wrote: On Tue, Apr 09, 2024 at 05

Re: [PATCH 5/6] drm/msm/adreno: Add speedbin data for SM8550 / A740

2024-04-09 Thread Konrad Dybcio
On 4/9/24 17:24, Dmitry Baryshkov wrote: On Tue, Apr 09, 2024 at 05:13:15PM +0200, Konrad Dybcio wrote: On 4/6/24 05:25, Dmitry Baryshkov wrote: On Fri, Apr 05, 2024 at 10:41:33AM +0200, Konrad Dybcio wrote: Add speebin data for A740, as found on SM8550 and derivative SoCs. Signed-off

Re: [PATCH 3/6] drm/msm/adreno: Allow specifying default speedbin value

2024-04-09 Thread Konrad Dybcio
On 4/9/24 20:04, Dmitry Baryshkov wrote: On Tue, Apr 09, 2024 at 10:12:00AM -0700, Rob Clark wrote: On Tue, Apr 9, 2024 at 8:23 AM Dmitry Baryshkov wrote: On Tue, Apr 09, 2024 at 05:12:46PM +0200, Konrad Dybcio wrote: On 4/6/24 04:56, Dmitry Baryshkov wrote: On Fri, Apr 05, 2024 at 10

Re: [PATCH 5/6] drm/msm/adreno: Add speedbin data for SM8550 / A740

2024-04-09 Thread Konrad Dybcio
On 4/6/24 05:25, Dmitry Baryshkov wrote: On Fri, Apr 05, 2024 at 10:41:33AM +0200, Konrad Dybcio wrote: Add speebin data for A740, as found on SM8550 and derivative SoCs. Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/adreno_device.c | 14 ++ 1 file changed, 14

Re: [PATCH 3/6] drm/msm/adreno: Allow specifying default speedbin value

2024-04-09 Thread Konrad Dybcio
On 4/6/24 04:56, Dmitry Baryshkov wrote: On Fri, Apr 05, 2024 at 10:41:31AM +0200, Konrad Dybcio wrote: From: Neil Armstrong Usually, speedbin 0 is the "super SKU", a.k.a the one which can clock the highest. Falling back to it when things go wrong is largely suboptimal, as more

Re: [PATCH 2/6] soc: qcom: smem: Add pcode/fcode getters

2024-04-09 Thread Konrad Dybcio
On 4/6/24 04:21, Dmitry Baryshkov wrote: On Fri, Apr 05, 2024 at 10:41:30AM +0200, Konrad Dybcio wrote: Introduce getters for SoC product and feature codes and export them. Signed-off-by: Konrad Dybcio --- [...] + /* Ensure the value makes sense */ + if (raw_code

Re: [PATCH] drm/msm/adreno: fix CP cycles stat retrieval on a7xx

2024-04-09 Thread Konrad Dybcio
m/msm/a6xx: Add skeleton A7xx support") --- Reviewed-by: Konrad DYbcio Thanks! Konrad

[PATCH 6/6] arm64: dts: qcom: sm8550: Wire up GPU speed bin & more OPPs

2024-04-05 Thread Konrad Dybcio
Add the speedbin masks to ensure only the desired OPPs are available on chips of a given bin. Using this, add the binned 719 MHz OPP and the non-binned 124.8 MHz. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm8550.dtsi | 21 - 1 file changed, 20 insertions

[PATCH 5/6] drm/msm/adreno: Add speedbin data for SM8550 / A740

2024-04-05 Thread Konrad Dybcio
Add speebin data for A740, as found on SM8550 and derivative SoCs. Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/adreno_device.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/gpu/drm/msm/adreno/adreno_device.c b/drivers/gpu/drm/msm/adreno

[PATCH 4/6] drm/msm/adreno: Implement SMEM-based speed bin

2024-04-05 Thread Konrad Dybcio
em to form something that lets us match OPPs against. Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 8 +++--- drivers/gpu/drm/msm/adreno/adreno_device.c | 2 ++ drivers/gpu/drm/msm/adreno/adreno_gpu.c| 39 +++--- drivers/gpu/drm/msm/adreno/

[PATCH 2/6] soc: qcom: smem: Add pcode/fcode getters

2024-04-05 Thread Konrad Dybcio
Introduce getters for SoC product and feature codes and export them. Signed-off-by: Konrad Dybcio --- drivers/soc/qcom/smem.c | 66 +++ include/linux/soc/qcom/smem.h | 2 ++ 2 files changed, 68 insertions(+) diff --git a/drivers/soc/qcom/smem.c b

[PATCH 3/6] drm/msm/adreno: Allow specifying default speedbin value

2024-04-05 Thread Konrad Dybcio
e intended "lowest common denominator" bin in struct adreno_info. If not specified, partial struct initialization will ensure it's set to zero, retaining previous behavior. Signed-off-by: Neil Armstrong [Konrad: clean up, add commit message] Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/m

[PATCH 1/6] soc: qcom: Move some socinfo defines to the header, expand them

2024-04-05 Thread Konrad Dybcio
e more FC/PC defines. Signed-off-by: Konrad Dybcio --- drivers/soc/qcom/socinfo.c | 8 include/linux/soc/qcom/socinfo.h | 36 2 files changed, 36 insertions(+), 8 deletions(-) diff --git a/drivers/soc/qcom/socinfo.c b/drivers/soc/qcom/socinfo.

[PATCH 0/6] Add SMEM-based speedbin matching

2024-04-05 Thread Konrad Dybcio
in order if we want to land this in the upcoming cycle. FWIW I preferred the fuses myself.. Signed-off-by: Konrad Dybcio --- Konrad Dybcio (5): soc: qcom: Move some socinfo defines to the header, expand them soc: qcom: smem: Add pcode/fcode getters drm/msm/adreno: Implement

Re: [PATCH v2 3/3] arm64: dts: qcom: sm6350: Add DisplayPort controller

2024-03-29 Thread Konrad Dybcio
On 29.03.2024 8:45 AM, Luca Weiss wrote: > Add the node for the DisplayPort controller found on the SM6350 SoC. > > Reviewed-by: Dmitry Baryshkov > Signed-off-by: Luca Weiss > --- Reviewed-by: Konrad Dybcio Konrad

Re: [PATCH 3/4] arm64: dts: qcom: sc8180x: Drop flags for mdss irqs

2024-03-26 Thread Konrad Dybcio
uot;arm64: dts: qcom: sc8180x: Add display and gpu nodes") > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Konrad Dybcio Konrad

Re: [PATCH 2/4] arm64: dts: qcom: sc8180x: drop legacy property #stream-id-cells

2024-03-26 Thread Konrad Dybcio
On 26.03.2024 9:02 PM, Dmitry Baryshkov wrote: > The property #stream-id-cells is legacy, it is not documented as valid > for the GPU. Drop it now. > > Fixes: 494dec9b6f54 ("arm64: dts: qcom: sc8180x: Add display and gpu nodes") > Signed-off-by: Dmitry Baryshkov > ---

Re: [PATCH v2 2/7] clk: qcom: clk-alpha-pll: Add HUAYRA_2290 support

2024-03-12 Thread Konrad Dybcio
On 2/23/24 23:48, Trilok Soni wrote: On 2/23/2024 1:21 PM, Konrad Dybcio wrote: + /* Wait 50us for PLL_LOCK_DET bit to go high */ + usleep_range(50, 55); + + /* Enable PLL output */ + regmap_update_bits(regmap, PLL_MODE(pll), PLL_OUTCTRL, PLL_OUTCTRL

Re: [PATCH v3 6/7] arm64: dts: qcom: sm8650: add GPU nodes

2024-03-11 Thread Konrad Dybcio
On 2/16/24 12:03, Neil Armstrong wrote: Add GPU nodes for the SM8650 platform. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8650.dtsi | 166 +++ 1 file changed, 166 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8650.dtsi

Re: [PATCH] soc: qcom: pmic_glink_altmode: Use common error handling code in pmic_glink_altmode_probe()

2024-02-28 Thread Konrad Dybcio
On 2/28/24 19:05, Markus Elfring wrote: From: Markus Elfring Date: Wed, 28 Feb 2024 18:45:13 +0100 Add a jump target so that a bit of exception handling can be better reused at the end of this function implementation. This issue was transformed by using the Coccinelle software.

Re: [PATCH v2 0/7] A702 support

2024-02-27 Thread Konrad Dybcio
On 2/27/24 11:10, Will Deacon wrote: On Fri, Feb 23, 2024 at 10:21:36PM +0100, Konrad Dybcio wrote: Bit of a megaseries, bunched together for your testing convenience.. Needs mesa!27665 [1] on the userland part, kmscube happily spins. I'm feeling quite lukewarm about the memory barriers

[PATCH v2 7/7] arm64: dts: qcom: qrb2210-rb1: Enable the GPU

2024-02-23 Thread Konrad Dybcio
Enable the A702 GPU (also marketed as "3D accelerator by qcom [1], lol). [1] https://docs.qualcomm.com/bundle/publicresource/87-61720-1_REV_A_QUALCOMM_ROBOTICS_RB1_PLATFORM__QUALCOMM_QRB2210__PRODUCT_BRIEF.pdf Reviewed-by: Dmitry Baryshkov Signed-off-by: Konrad Dybcio --- arch/arm64/boo

[PATCH v2 6/7] arm64: dts: qcom: qcm2290: Add GPU nodes

2024-02-23 Thread Konrad Dybcio
Describe the GPU hardware on the QCM2290. Reviewed-by: Dmitry Baryshkov Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qcm2290.dtsi | 154 ++ 1 file changed, 154 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcm2290.dtsi b/arch/arm64/boot/dts

[PATCH v2 5/7] drm/msm/adreno: Add A702 support

2024-02-23 Thread Konrad Dybcio
support for it, tested with QCM2290 / RB1. Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 92 +++--- drivers/gpu/drm/msm/adreno/adreno_device.c | 18 ++ drivers/gpu/drm/msm/adreno/adreno_gpu.h| 16 +- 3 files changed, 117 insertions

[PATCH v2 2/7] clk: qcom: clk-alpha-pll: Add HUAYRA_2290 support

2024-02-23 Thread Konrad Dybcio
different hardware. Introduce another set of offsets and a new configure function for the Huayra PLL found on QCM2290. This is required e.g. for the consumers of GPUCC_PLL0 to properly start. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/clk-alpha-

[PATCH v2 3/7] clk: qcom: Add QCM2290 GPU clock controller driver

2024-02-23 Thread Konrad Dybcio
Add a driver for the GPU clock controller block found on the QCM2290 SoC. Reviewed-by: Dmitry Baryshkov Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/Kconfig | 9 + drivers/clk/qcom/Makefile| 1 + drivers/clk/qcom/gpucc-qcm2290.c | 423

[PATCH v2 4/7] drm/msm/adreno: Add missing defines for A702

2024-02-23 Thread Konrad Dybcio
Add some defines required for A702. Can be substituted with a header sync after merging mesa!27665 [1]. [1] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27665 Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/a6xx.xml.h | 18 ++ 1 file changed, 18

[PATCH v2 1/7] dt-bindings: clock: Add Qcom QCM2290 GPUCC

2024-02-23 Thread Konrad Dybcio
Add device tree bindings for graphics clock controller for Qualcomm Technology Inc's QCM2290 SoCs. Signed-off-by: Konrad Dybcio --- .../bindings/clock/qcom,qcm2290-gpucc.yaml | 77 ++ include/dt-bindings/clock/qcom,qcm2290-gpucc.h | 32 + 2 files changed

[PATCH v2 0/7] A702 support

2024-02-23 Thread Konrad Dybcio
/mesa/-/merge_requests/27665 Signed-off-by: Konrad Dybcio --- Changes in v2: - Drop applied smmu-bindings patch - Fix the gpucc bindings patch to be even better - Reorder HUAYRA_2290 definitions near HUAYRA (..Add HUAYRA_2290 support..) - Replace weird memory barriers copypasted from msm-5.4

Re: [PATCH 3/9] arm64: dts: qcom: sc7280: Enable MDP turbo mode

2024-02-22 Thread Konrad Dybcio
On 2/22/24 10:46, Dmitry Baryshkov wrote: On Thu, 22 Feb 2024 at 11:28, Konrad Dybcio wrote: On 2/22/24 10:04, Dmitry Baryshkov wrote: On Thu, 22 Feb 2024 at 10:56, Konrad Dybcio wrote: On 2/22/24 00:41, Dmitry Baryshkov wrote: On Thu, 22 Feb 2024 at 01:19, Bjorn Andersson wrote

Re: [PATCH 3/9] arm64: dts: qcom: sc7280: Enable MDP turbo mode

2024-02-22 Thread Konrad Dybcio
On 2/22/24 10:04, Dmitry Baryshkov wrote: On Thu, 22 Feb 2024 at 10:56, Konrad Dybcio wrote: On 2/22/24 00:41, Dmitry Baryshkov wrote: On Thu, 22 Feb 2024 at 01:19, Bjorn Andersson wrote: The max frequency listed in the DPU opp-table is 506MHz, this is not sufficient to drive a 4k@60

Re: [PATCH 7/9] arm64: dts: qcom: qcs6490-rb3gen2: Introduce USB redriver

2024-02-22 Thread Konrad Dybcio
On 2/22/24 00:19, Bjorn Andersson wrote: The RB3gen2 has a USB redriver on APPS_I2C, enable the bus and introduce the redriver. The plumbing with other components is kept separate for clarity. Signed-off-by: Bjorn Andersson --- Any chance you could add an alias for this I2C bus? Or all

Re: [PATCH 3/9] arm64: dts: qcom: sc7280: Enable MDP turbo mode

2024-02-22 Thread Konrad Dybcio
On 2/22/24 00:41, Dmitry Baryshkov wrote: On Thu, 22 Feb 2024 at 01:19, Bjorn Andersson wrote: The max frequency listed in the DPU opp-table is 506MHz, this is not sufficient to drive a 4k@60 display, resulting in constant underrun. Add the missing MDP_CLK turbo frequency of 608MHz to the

Re: [PATCH 3/9] arm64: dts: qcom: sc7280: Enable MDP turbo mode

2024-02-22 Thread Konrad Dybcio
Andersson --- Reviewed-by: Konrad Dybcio Konrad

Re: [PATCH 2/9] arm64: dts: qcom: sc7280: Make eDP/DP controller default DP

2024-02-22 Thread Konrad Dybcio
-mode. Switch the compatible of the mdss_edp instance and make it eDP for the SC7280 qcard. Signed-off-by: Bjorn Andersson --- Reviewed-by: Konrad Dybcio Konrad

Re: [PATCH] arm64: dts: qcom: sm6115: fix USB PHY configuration

2024-02-20 Thread Konrad Dybcio
On 20.02.2024 18:31, Dmitry Baryshkov wrote: > The patch adding Type-C support for sm6115 was misapplied. All the > orientation switch configuration ended up at the UFS PHY node instead of > the USB PHY node. Move the data bits to the correct place. > > Fixes: a06a2f12f9e2 ("arm64: dts: qcom:

Re: [PATCH 1/4] backlight: lm3630a: Initialize backlight_properties on init

2024-02-20 Thread Konrad Dybcio
On 20.02.2024 00:11, Luca Weiss wrote: > The backlight_properties struct should be initialized to zero before > using, otherwise there will be some random values in the struct. > > Fixes: 0c2a665a648e ("backlight: add Backlight driver for lm3630 chip") > Signed-off-by: Luca Weiss > --- >

Re: [PATCH 8/8] arm64: dts: qcom: qrb2210-rb1: Enable the GPU

2024-02-19 Thread Konrad Dybcio
On 19.02.2024 15:49, Dmitry Baryshkov wrote: > On Mon, 19 Feb 2024 at 15:36, Konrad Dybcio wrote: >> >> Enable the A702 GPU (also marketed as "3D accelerator by qcom [1], lol). > > Is it not? Sure, every electronic device is also a heater, I suppose.. I found this word

Re: [PATCH 3/8] clk: qcom: clk-alpha-pll: Add HUAYRA_2290 support

2024-02-19 Thread Konrad Dybcio
On 19.02.2024 15:53, Dmitry Baryshkov wrote: > On Mon, 19 Feb 2024 at 15:36, Konrad Dybcio wrote: >> >> Commit 134b55b7e19f ("clk: qcom: support Huayra type Alpha PLL") >> introduced an entry to the alpha offsets array, but diving into QCM2290 >> downstream

Re: [PATCH 3/8] clk: qcom: clk-alpha-pll: Add HUAYRA_2290 support

2024-02-19 Thread Konrad Dybcio
On 19.02.2024 15:54, Andrew Halaney wrote: > On Mon, Feb 19, 2024 at 02:35:48PM +0100, Konrad Dybcio wrote: >> Commit 134b55b7e19f ("clk: qcom: support Huayra type Alpha PLL") >> introduced an entry to the alpha offsets array, but diving into QCM2290 >> downstream an

[PATCH 8/8] arm64: dts: qcom: qrb2210-rb1: Enable the GPU

2024-02-19 Thread Konrad Dybcio
Enable the A702 GPU (also marketed as "3D accelerator by qcom [1], lol). [1] https://docs.qualcomm.com/bundle/publicresource/87-61720-1_REV_A_QUALCOMM_ROBOTICS_RB1_PLATFORM__QUALCOMM_QRB2210__PRODUCT_BRIEF.pdf Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qrb2210-rb1.dt

[PATCH 7/8] arm64: dts: qcom: qcm2290: Add GPU nodes

2024-02-19 Thread Konrad Dybcio
Describe the GPU hardware on the QCM2290. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/qcm2290.dtsi | 154 ++ 1 file changed, 154 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcm2290.dtsi b/arch/arm64/boot/dts/qcom/qcm2290.dtsi index

[PATCH 6/8] drm/msm/adreno: Add A702 support

2024-02-19 Thread Konrad Dybcio
support for it, tested with QCM2290 / RB1. Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 92 +++--- drivers/gpu/drm/msm/adreno/adreno_device.c | 18 ++ drivers/gpu/drm/msm/adreno/adreno_gpu.h| 16 +- 3 files changed, 117 insertions

[PATCH 5/8] drm/msm/adreno: Add missing defines for A702

2024-02-19 Thread Konrad Dybcio
Add some defines required for A702. Can be substituted with a header sync after merging mesa!27665 [1]. [1] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27665 Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/a6xx.xml.h | 18 ++ 1 file changed, 18

[PATCH 3/8] clk: qcom: clk-alpha-pll: Add HUAYRA_2290 support

2024-02-19 Thread Konrad Dybcio
different hardware. Introduce another set of offsets and a new configure function for the Huayra PLL found on QCM2290. This is required e.g. for the consumers of GPUCC_PLL0 to properly start. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/clk-alpha-

[PATCH 4/8] clk: qcom: Add QCM2290 GPU clock controller driver

2024-02-19 Thread Konrad Dybcio
Add a driver for the GPU clock controller block found on the QCM2290 SoC. Signed-off-by: Konrad Dybcio --- drivers/clk/qcom/Kconfig | 9 + drivers/clk/qcom/Makefile| 1 + drivers/clk/qcom/gpucc-qcm2290.c | 423 +++ 3 files changed, 433

[PATCH 1/8] dt-bindings: arm-smmu: Add QCM2290 GPU SMMU

2024-02-19 Thread Konrad Dybcio
The GPU SMMU on QCM2290 nicely fits into the description we already have for SM61[12]5. Add it. Signed-off-by: Konrad Dybcio --- Documentation/devicetree/bindings/iommu/arm,smmu.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/iommu

[PATCH 2/8] dt-bindings: clock: Add Qcom QCM2290 GPUCC

2024-02-19 Thread Konrad Dybcio
Add device tree bindings for graphics clock controller for Qualcomm Technology Inc's QCM2290 SoCs. Signed-off-by: Konrad Dybcio --- .../bindings/clock/qcom,qcm2290-gpucc.yaml | 76 ++ include/dt-bindings/clock/qcom,qcm2290-gpucc.h | 32 + 2 files changed

[PATCH 0/8] A702 support

2024-02-19 Thread Konrad Dybcio
/mesa/-/merge_requests/27665 Signed-off-by: Konrad Dybcio --- Konrad Dybcio (8): dt-bindings: arm-smmu: Add QCM2290 GPU SMMU dt-bindings: clock: Add Qcom QCM2290 GPUCC clk: qcom: clk-alpha-pll: Add HUAYRA_2290 support clk: qcom: Add QCM2290 GPU clock controller driver

Re: [RESEND PATCH v2 1/1] drm/msm/adreno: Add support for SM7150 SoC machine

2024-02-19 Thread Konrad Dybcio
.mbn). > > Add this as machine = "qcom,sm7150", because speed-bin values are > different from atoll (sc7180/sm7125). > > Signed-off-by: Danila Tikhonov > --- Sorry for the mess on the previous thread! Reviewed-by: Konrad Dybcio Konrad

Re: [PATCH v2 4/6] drm/msm: add support for A750 GPU

2024-02-15 Thread Konrad Dybcio
the adreno_is_a750() macro and > the ADRENO_7XX_GEN3 family id. > > Signed-off-by: Neil Armstrong > --- Reviewed-by: Konrad Dybcio Konrad

Re: [PATCH v2 2/4] drm/panel: Add driver for DJN HX83112A LCD panel

2024-02-15 Thread Konrad Dybcio
On 14.02.2024 10:50, neil.armstr...@linaro.org wrote: > On 14/02/2024 10:33, Luca Weiss wrote: >> On Mon Jan 22, 2024 at 12:27 PM CET, Luca Weiss wrote: >>> On Fri Jan 12, 2024 at 11:26 AM CET,  wrote: On 12/01/2024 11:23, Linus Walleij wrote: > On Fri, Jan 12, 2024 at 10:52 AM Luca Weiss

Re: [PATCH 3/5] drm: msm: add support for A750 GPU

2024-02-14 Thread Konrad Dybcio
On 12.02.2024 15:45, Neil Armstrong wrote: > On 12/02/2024 11:46, Konrad Dybcio wrote: >> On 12.02.2024 11:37, Neil Armstrong wrote: >>> Add support for the A750 GPU found on the SM8650 platform >>> >>> Unlike the the very close A740 GPU on the SM8550 SoC, th

Re: [PATCH 5/5] arm64: dts: qcom: sm8650-qrd: enable GPU

2024-02-12 Thread Konrad Dybcio
On 12.02.2024 11:37, Neil Armstrong wrote: > Add path of the GPU firmware for the SM8650-QRD board > > Signed-off-by: Neil Armstrong > --- Reviewed-by: Konrad Dybcio Konrad

Re: [PATCH 4/5] arm64: dts: qcom: sm8650: add GPU nodes

2024-02-12 Thread Konrad Dybcio
On 12.02.2024 11:37, Neil Armstrong wrote: > Add GPU nodes for the SM8650 platform. > > Signed-off-by: Neil Armstrong > --- > arch/arm64/boot/dts/qcom/sm8650.dtsi | 169 > +++ > 1 file changed, 169 insertions(+) > > diff --git

Re: [PATCH 3/5] drm: msm: add support for A750 GPU

2024-02-12 Thread Konrad Dybcio
On 12.02.2024 11:37, Neil Armstrong wrote: > Add support for the A750 GPU found on the SM8650 platform > > Unlike the the very close A740 GPU on the SM8550 SoC, the A750 GPU > doesn't have an HWCFG block but a separate register set. > > The missing registers are added in the a6xx.xml.h file that

Re: [PATCH 1/5] dt-bindings: display/msm/gmu: Document Adreno 750 GMU

2024-02-12 Thread Konrad Dybcio
On 12.02.2024 11:37, Neil Armstrong wrote: > Document the Adreno 750 GMU found on the SM8650 platform. > > Signed-off-by: Neil Armstrong > --- Reviewed-by: Konrad Dybcio Konrad

Re: [PATCH 8/8] arm64: dts: qcom: msm8976: Add WCNSS node

2024-02-09 Thread Konrad Dybcio
On 21.01.2024 20:41, Adam Skladowski wrote: > Add node describing wireless connectivity subsystem. > > Signed-off-by: Adam Skladowski > --- > arch/arm64/boot/dts/qcom/msm8976.dtsi | 96 +++ > 1 file changed, 96 insertions(+) > > diff --git

Re: [PATCH 6/8] arm64: dts: qcom: msm8976: Add Adreno GPU

2024-02-09 Thread Konrad Dybcio
On 21.01.2024 20:41, Adam Skladowski wrote: > Add Adreno GPU node. > > Signed-off-by: Adam Skladowski > --- > arch/arm64/boot/dts/qcom/msm8976.dtsi | 66 +++ > 1 file changed, 66 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/msm8976.dtsi >

Re: [PATCH 4/8] arm64: dts: qcom: msm8976: Add MDSS nodes

2024-02-09 Thread Konrad Dybcio
On 21.01.2024 20:41, Adam Skladowski wrote: > Add MDSS nodes to support displays on MSM8976 SoC. > > Signed-off-by: Adam Skladowski > --- > arch/arm64/boot/dts/qcom/msm8976.dtsi | 268 +- > 1 file changed, 264 insertions(+), 4 deletions(-) > > diff --git

Re: [PATCH 1/8] arm64: dts: qcom: msm8976: Add IOMMU nodes

2024-02-06 Thread Konrad Dybcio
On 21.01.2024 20:40, Adam Skladowski wrote: > Add the nodes describing the apps and gpu iommu and its context banks > that are found on msm8976 SoCs. > > Signed-off-by: Adam Skladowski > --- > arch/arm64/boot/dts/qcom/msm8976.dtsi | 80 +++ > 1 file changed, 80

[PATCH] drm/panel: novatek-nt36523: Set prepare_prev_first

2024-02-01 Thread Konrad Dybcio
The .prepare callback contains the init sequence, so the DSI host *must* be enabled at that point. Set the prepare_prev_first flag to ensure that. Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/panel/panel-novatek-nt36523.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm

Re: [PATCH] drm/msm/adreno: Update generated headers

2024-01-18 Thread Konrad Dybcio
uninteresting churn, but there are a couple spots in a7xx paths which update REG_A6XX_foo to REG_A7XX_foo for registers which are a7xx specific. Cc: Connor Abbott Signed-off-by: Rob Clark --- Acked-by: Konrad Dybcio Konrad

Re: [PATCH v2 4/4] arm64: dts: qcom: sm7225-fairphone-fp4: Enable display and GPU

2024-01-10 Thread Konrad Dybcio
shader firmware path. Signed-off-by: Luca Weiss --- Reviewed-by: Konrad Dybcio Konrad

Re: [PATCH v2 3/4] arm64: dts: qcom: sm6350: Remove "disabled" state of GMU

2024-01-10 Thread Konrad Dybcio
On 1/10/24 16:14, Luca Weiss wrote: The GMU won't probe without GPU being enabled, so we can remove the disabled status so we don't have to explicitly enable the GMU in all the devices that enable GPU. Signed-off-by: Luca Weiss --- Reviewed-by: Konrad Dybcio Konrad

Re: [PATCH 3/3] arm64: dts: qcom: sm7225-fairphone-fp4: Enable display and GPU

2024-01-10 Thread Konrad Dybcio
On 1/10/24 12:23, Maxime Ripard wrote: On Wed, Jan 10, 2024 at 12:00:23PM +0100, Luca Weiss wrote: On Wed Jan 10, 2024 at 11:58 AM CET, Konrad Dybcio wrote: On 1/5/24 15:29, Luca Weiss wrote: Add the description for the display panel found on this phone and remove the simple-framebuffer

Re: [PATCH v2 15/15] drm/msm/dp: drop dp_parser

2024-01-10 Thread Konrad Dybcio
On 12/31/23 01:44, Dmitry Baryshkov wrote: Finally drop separate "parsing" submodule. There is no need in it anymore. All submodules handle DT properties directly rather than passing them via the separate structure pointer. Signed-off-by: Dmitry Baryshkov --- Reviewed-by: Kon

Re: [PATCH v2 14/15] drm/msm/dp: move next_bridge handling to dp_display

2024-01-10 Thread Konrad Dybcio
On 12/31/23 01:44, Dmitry Baryshkov wrote: Remove two levels of indirection and fetch next bridge directly in dp_display_probe_tail(). Signed-off-by: Dmitry Baryshkov --- Reviewed-by: Konrad Dybcio Konrad

Re: [PATCH v2 12/15] drm/msm/dp: move all IO handling to dp_catalog

2024-01-10 Thread Konrad Dybcio
On 12/31/23 01:43, Dmitry Baryshkov wrote: Rather than parsing the I/O addresses from dp_parser and then passing them via a struct pointer to dp_catalog, handle I/O region parsing in dp_catalog and drop it from dp_parser. Signed-off-by: Dmitry Baryshkov --- [...] diff --git

  1   2   3   4   5   6   7   8   9   10   >