Re: [Freedreno] [PATCH v2 17/21] drm/fb-helper: Perform all fbdev I/O with the same implementation

2022-11-02 Thread Javier Martinez Canillas
On 10/24/22 13:19, Thomas Zimmermann wrote: > Implement the fbdev's read/write helpers with the same functions. Use > the generic fbdev's code as template. Convert all drivers. > > DRM's fb helpers must implement regular I/O functionality in struct > fb_ops and possibly perform a damage update.

Re: [Freedreno] [PATCH v2 21/21] drm/fb-helper: Remove unnecessary include statements

2022-11-02 Thread Javier Martinez Canillas
On 10/24/22 13:19, Thomas Zimmermann wrote: > Remove include statements for where it is not > required (i.e., most of them). In a few places include other header > files that are required by the source code. > > Signed-off-by: Thomas Zimmermann > --- Reviewed-by: Javier Martinez Canillas --

Re: [Freedreno] [PATCH v2 17/21] drm/fb-helper: Perform all fbdev I/O with the same implementation

2022-11-02 Thread Thomas Zimmermann
Hi Am 02.11.22 um 10:32 schrieb Javier Martinez Canillas: On 10/24/22 13:19, Thomas Zimmermann wrote: Implement the fbdev's read/write helpers with the same functions. Use the generic fbdev's code as template. Convert all drivers. DRM's fb helpers must implement regular I/O functionality in

Re: [Freedreno] [PATCH v2 16/21] drm/fb-helper: Call fb_sync in I/O functions

2022-11-02 Thread Javier Martinez Canillas
On 10/24/22 13:19, Thomas Zimmermann wrote: > Call struct fb_ops.fb_sync in drm_fbdev_{read,write}() to mimic the > behavior of fbdev. Fbdev implementations of fb_read and fb_write in > struct fb_ops invoke fb_sync to synchronize with outstanding operations > before I/O. Doing the same in DRM

Re: [Freedreno] [PATCH v2 19/21] drm/fb-helper: Always initialize generic fbdev emulation

2022-11-02 Thread Javier Martinez Canillas
On 10/24/22 13:19, Thomas Zimmermann wrote: > Initialize the generic fbdev emulation even if it has been disabled > on the kernel command line. The hotplug and mode initialization will > fail accordingly. > > The kernel parameter can still be changed at runtime and the emulation > will initialize

Re: [Freedreno] [PATCH v2 18/21] drm/fb_helper: Minimize damage-helper overhead

2022-11-02 Thread Javier Martinez Canillas
On 10/24/22 13:19, Thomas Zimmermann wrote: > Pull the test for fb_dirty into the caller to avoid extra work > if no callback has been set. In this case no damage handling is > required and no damage area needs to be computed. Print a warning > if the damage worker runs without getting an fb_dirty

Re: [Freedreno] [PATCH v2 15/21] drm/fb-helper: Disconnect damage worker from update logic

2022-11-02 Thread Javier Martinez Canillas
On 10/24/22 13:19, Thomas Zimmermann wrote: > The fbdev helpers implement a damage worker that forwards fbdev > updates to the DRM driver. The worker's update logic depends on > the generic fbdev emulation. Separate the two via function pointer. > > The generic fbdev emulation sets struct

Re: [Freedreno] [PATCH v2 20/21] drm/fb-helper: Move generic fbdev emulation into separate source file

2022-11-02 Thread Javier Martinez Canillas
On 10/24/22 13:19, Thomas Zimmermann wrote: > Move the generic fbdev implementation into its own source and header > file. Adapt drivers. No functonal changes, but some of the internal > helpers have been renamed to fit into the drm_fbdev_ naming scheme. > > Signed-off-by: Thomas Zimmermann >

Re: [Freedreno] [PATCH v2 17/21] drm/fb-helper: Perform all fbdev I/O with the same implementation

2022-11-02 Thread Javier Martinez Canillas
On 11/2/22 11:33, Thomas Zimmermann wrote: [...] >> >>> +static ssize_t __drm_fb_helper_write(struct fb_info *info, const char >>> __user *buf, size_t count, >>> +loff_t *ppos, drm_fb_helper_write_screen >>> write_screen) >>> +{ >> >> [...] >> >>> + /* >>> +

Re: [Freedreno] [PATCH] drm/msm: Remove exclusive-fence hack

2022-11-02 Thread Christian König
Am 01.11.22 um 22:40 schrieb Rob Clark: From: Rob Clark The workaround was initially necessary due to dma_resv having only a single exclusive fence slot, yet whe don't necessarily know what order the gpu scheduler will schedule jobs. Unfortunately this workaround also has the result of

Re: [Freedreno] [PATCH] drm/msm/dp: remove limitation of link rate at 5.4G to support HBR3

2022-11-02 Thread Doug Anderson
Hi, On Tue, Nov 1, 2022 at 7:37 AM Doug Anderson wrote: > > Hi, > > On Mon, Oct 31, 2022 at 5:15 PM Dmitry Baryshkov > wrote: > > > > On 01/11/2022 03:08, Doug Anderson wrote: > > > Hi, > > > > > > On Mon, Oct 31, 2022 at 2:11 PM Kuogee Hsieh > > > wrote: > > >> > > >> Hi Dmitry, > > >> > >

Re: [Freedreno] [PATCH] drm/msm/dp: remove limitation of link rate at 5.4G to support HBR3

2022-11-02 Thread Dmitry Baryshkov
On 02/11/2022 20:25, Doug Anderson wrote: Hi, On Wed, Nov 2, 2022 at 10:15 AM Dmitry Baryshkov wrote: On 01/11/2022 17:37, Doug Anderson wrote: Hi, On Mon, Oct 31, 2022 at 5:15 PM Dmitry Baryshkov wrote: On 01/11/2022 03:08, Doug Anderson wrote: Hi, On Mon, Oct 31, 2022 at 2:11 PM

Re: [Freedreno] [PATCH] drm/msm/dp: remove limitation of link rate at 5.4G to support HBR3

2022-11-02 Thread Dmitry Baryshkov
On 01/11/2022 17:37, Doug Anderson wrote: Hi, On Mon, Oct 31, 2022 at 5:15 PM Dmitry Baryshkov wrote: On 01/11/2022 03:08, Doug Anderson wrote: Hi, On Mon, Oct 31, 2022 at 2:11 PM Kuogee Hsieh wrote: Hi Dmitry, Link rate is advertised by sink, but adjusted (reduced the link rate) by

Re: [Freedreno] [PATCH] drm/msm/dp: remove limitation of link rate at 5.4G to support HBR3

2022-11-02 Thread Dmitry Baryshkov
On 02/11/2022 18:47, Doug Anderson wrote: Hi, On Tue, Nov 1, 2022 at 7:37 AM Doug Anderson wrote: Hi, On Mon, Oct 31, 2022 at 5:15 PM Dmitry Baryshkov wrote: On 01/11/2022 03:08, Doug Anderson wrote: Hi, On Mon, Oct 31, 2022 at 2:11 PM Kuogee Hsieh wrote: Hi Dmitry, Link rate is

Re: [Freedreno] [PATCH] drm/msm/dp: remove limitation of link rate at 5.4G to support HBR3

2022-11-02 Thread Doug Anderson
Hi, On Wed, Nov 2, 2022 at 10:23 AM Dmitry Baryshkov wrote: > > > 1. Someone figures out how to model this with the bridge chain and > > then we only allow HBR3 if we detect we've got a TCPC that supports > > it. This seems like the cleanest / best but feels like a long pole. > > Not only have

Re: [Freedreno] [PATCH v5 3/3] drm/msm/dp: retry 3 times if set sink to D0 poweer state failed

2022-11-02 Thread Dmitry Baryshkov
On 12/09/2022 22:26, Kuogee Hsieh wrote: On 9/12/2022 11:37 AM, Dmitry Baryshkov wrote: On 12/09/2022 19:23, Kuogee Hsieh wrote: Bring sink out of D3 (power down) mode into D0 (normal operation) mode by setting DP_SET_POWER_D0 bit to DP_SET_POWER dpcd register. This patch will retry 3 times

Re: [Freedreno] [PATCH] drm/msm: Remove exclusive-fence hack

2022-11-02 Thread Rob Clark
On Wed, Nov 2, 2022 at 3:46 AM Christian König wrote: > > Am 01.11.22 um 22:40 schrieb Rob Clark: > > From: Rob Clark > > > > The workaround was initially necessary due to dma_resv having only a > > single exclusive fence slot, yet whe don't necessarily know what order > > the gpu scheduler will

Re: [Freedreno] [PATCH] drm/msm: Add MSM_INFO_GET_FLAGS

2022-11-02 Thread Dmitry Baryshkov
On 23/09/2022 20:33, Rob Clark wrote: From: Rob Clark In some cases crosvm needs a way to query the cache flags to communicate them to the guest kernel for guest userspace mapping. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_drv.c | 10 ++ include/uapi/drm/msm_drm.h|

Re: [Freedreno] [PATCH] drm/msm/disp/dpu1: register crtc color management to first crtc in the list

2022-11-02 Thread Dmitry Baryshkov
On 01/11/2022 13:59, Kalyan Thota wrote: This patch does the following: 1) Registers crtc color management to the first crtc in the list and attach to an encoder which is neither pluggable nor virtual 2) Pin 1 crtc to 1 encoder 3) Assign dspp block if crtc supports color processing. A clear

Re: [Freedreno] [PATCH] drm/msm/dp: remove limitation of link rate at 5.4G to support HBR3

2022-11-02 Thread Doug Anderson
Hi, On Wed, Nov 2, 2022 at 10:15 AM Dmitry Baryshkov wrote: > > On 01/11/2022 17:37, Doug Anderson wrote: > > Hi, > > > > On Mon, Oct 31, 2022 at 5:15 PM Dmitry Baryshkov > > wrote: > >> > >> On 01/11/2022 03:08, Doug Anderson wrote: > >>> Hi, > >>> > >>> On Mon, Oct 31, 2022 at 2:11 PM Kuogee

[Freedreno] [RFC PATCH v2 05/11] dt-bindings: arm-smmu: Add generic qcom, smmu-500 bindings

2022-11-02 Thread Dmitry Baryshkov
Add generic bindings for the Qualcomm variant of the ARM MMU-500. It is expected that all future platforms will use the generic qcom,smmu-500 compat string in addition to SoC-specific and the generic arm,mmu-500 ones. Older bindings are now described as deprecated. Note: I have split the sdx55

[Freedreno] [RFC PATCH v2 09/11] iommu/arm-smmu-qcom: Merge table from arm-smmu-qcom-debug into match data

2022-11-02 Thread Dmitry Baryshkov
There is little point in having a separate match table in arm-smmu-qcom-debug.c. Merge it into the main match data table in arm-smmu-qcom.c Note, this also enables debug support for sm6375 and ACPI-based sc8180x systems, since these SoCs are expected to support tlb_sync debug. Reviewed-by: Sai

[Freedreno] [RFC PATCH v2 07/11] iommu/arm-smmu-qcom: Move the qcom, adreno-smmu check into qcom_smmu_create

2022-11-02 Thread Dmitry Baryshkov
Move special handling of qcom,adreno-smmu into qcom_smmu_create() function. This allows us to further customize the Adreno SMMU implementation. Note, this also adds two entries to the qcom_smmu_impl_of_match table. They were used with the qcom,adreno-smmu compat and were handled by the removed

[Freedreno] [RFC PATCH v2 04/11] dt-bindings: arm-smmu: add special case for Google Cheza platform

2022-11-02 Thread Dmitry Baryshkov
Cheza fw does not properly program the GPU aperture to allow the GPU to update the SMMU pagetables for context switches. The board file works around this by dropping the "qcom,adreno-smmu" compat string. Add this usecase to arm,smmu.yaml schema. Signed-off-by: Dmitry Baryshkov ---

[Freedreno] [RFC PATCH v2 11/11] iommu/arm-smmu-qcom: Add generic qcom, smmu-500 match entry

2022-11-02 Thread Dmitry Baryshkov
Add generic qcom,smmu-500 compatibility string. Newer platforms should use this generic entry rather than declaring per-SoC entries. Reviewed-by: Sai Prakash Ranjan Tested-by: Sai Prakash Ranjan Signed-off-by: Dmitry Baryshkov --- drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 5 + 1 file

[Freedreno] [RFC PATCH v2 10/11] iommu/arm-smmu-qcom: Stop using mmu500 reset for v2 MMUs

2022-11-02 Thread Dmitry Baryshkov
The arm_mmu500_reset() writes into registers specific for MMU500. For the generic ARM SMMU v2 these registers (sACR) are defined as 'implementation defined'. Downstream Qualcomm driver for SMMUv2 doesn't touch them. Reviewed-by: Sai Prakash Ranjan Tested-by: Sai Prakash Ranjan Signed-off-by:

[Freedreno] [RFC PATCH v2 01/11] arm64: dts: qcom: msm8996: change order of SMMU clocks on this platform

2022-11-02 Thread Dmitry Baryshkov
Change order of SMMU clocks to match the schema. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 31 +-- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi

[Freedreno] [RFC PATCH v2 08/11] iommu/arm-smmu-qcom: provide separate implementation for SDM845-smmu-500

2022-11-02 Thread Dmitry Baryshkov
There is only one platform, which needs special care in the reset function, the SDM845. Add special handler for sdm845 and drop the qcom_smmu500_reset() function. Reviewed-by: Sai Prakash Ranjan Tested-by: Sai Prakash Ranjan Signed-off-by: Dmitry Baryshkov ---

[Freedreno] [RFC PATCH v2 02/11] dt-bindings: arm-smmu: Add missing Qualcomm SMMU compatibles

2022-11-02 Thread Dmitry Baryshkov
Add missing compatibles used for Adreno SMMU on sc7280 and sm8450 platforms and for the Qualcomm v2 SMMU used on SDM630 platform. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Dmitry Baryshkov --- Documentation/devicetree/bindings/iommu/arm,smmu.yaml | 11 +++ 1 file changed, 11

[Freedreno] [RFC PATCH v2 06/11] iommu/arm-smmu-qcom: Move implementation data into match data

2022-11-02 Thread Dmitry Baryshkov
In preparation to rework of the implementation and configuration details, make qcom_smmu_create() accept new qcom_smmu_match_data structure pointer. Make implementation a field in this struct. Reviewed-by: Sai Prakash Ranjan Tested-by: Sai Prakash Ranjan Signed-off-by: Dmitry Baryshkov ---

Re: [Freedreno] [PATCH] drm/msm/dp: remove limitation of link rate at 5.4G to support HBR3

2022-11-02 Thread Dmitry Baryshkov
On 02/11/2022 20:28, Doug Anderson wrote: Hi, On Wed, Nov 2, 2022 at 10:23 AM Dmitry Baryshkov wrote: 1. Someone figures out how to model this with the bridge chain and then we only allow HBR3 if we detect we've got a TCPC that supports it. This seems like the cleanest / best but feels like

[Freedreno] [PATCH v4 0/2] drm/msm: rework msm_iommu_new() and .create_address_space cb

2022-11-02 Thread Dmitry Baryshkov
Simplify the MSM IOMMU code a bit. This moves iommu_domain_alloc() and iommu_set_pgtable_quirks() calls to msm_iommu_new() to get rid of the disbalance, when the iommu domain is allocated by the caller of msm_iommu_new() and then it is freed by the msm_iommu code itself. Changes since v3: -

[Freedreno] [PATCH v4 2/2] drm/msm: remove duplicated code from a6xx_create_address_space

2022-11-02 Thread Dmitry Baryshkov
The function a6xx_create_address_space() is mostly a copy of adreno_iommu_create_address_space() with added quirk setting. Rework these two functions to be a thin wrappers around a common helper. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/adreno/a3xx_gpu.c | 2 +-

[Freedreno] [PATCH v4 1/2] drm/msm: move domain allocation into msm_iommu_new()

2022-11-02 Thread Dmitry Baryshkov
After the msm_iommu instance is created, the IOMMU domain is completely handled inside the msm_iommu code. Move the iommu_domain_alloc() call into the msm_iommu_new() to simplify callers code. Reported-by: kernel test robot Signed-off-by: Dmitry Baryshkov ---

[Freedreno] [RFC PATCH v2 00/11] iommu/arm-smmu-qcom: Rework Qualcomm SMMU bindings and implementation

2022-11-02 Thread Dmitry Baryshkov
The main goal of this patchset is to define a generic qcom,smmu-500 binding to be used by newer Qualcomm platforms instead of defining each and every SoC line with no actual differences between the compats. While preparing this change it was required to cleanup the existing bindings and to rework

[Freedreno] [RFC PATCH v2 03/11] dt-bindings: arm-smmu: fix clocks/clock-names schema

2022-11-02 Thread Dmitry Baryshkov
Rework clocks/clock-names properties schema to property describe possible usage cases. Signed-off-by: Dmitry Baryshkov --- .../devicetree/bindings/iommu/arm,smmu.yaml | 129 -- 1 file changed, 121 insertions(+), 8 deletions(-) diff --git

[Freedreno] [PATCH v3 7/7] drm/bridge_connector: drop drm_bridge_connector_en/disable_hpd()

2022-11-02 Thread Dmitry Baryshkov
Now as all drivers stopped calling drm_bridge_connector_enable_hpd() and drm_bridge_connector_disable_hpd() it is safe to remove them complelely. Rename our internal helpers to remove the underscore prefix. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/drm_bridge_connector.c | 33

[Freedreno] [PATCH v3 1/7] drm/poll-helper: merge drm_kms_helper_poll_disable() and _fini()

2022-11-02 Thread Dmitry Baryshkov
Merge drm_kms_helper_poll_disable() and drm_kms_helper_poll_fini() code into a common helper function. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/drm_probe_helper.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git

[Freedreno] [PATCH v3 5/7] drm/msm/hdmi: stop using drm_bridge_connector_en/disable_hpd()

2022-11-02 Thread Dmitry Baryshkov
The functionality of drm_bridge_connector_enable_hpd() and drm_bridge_connector_disable_hpd() is provided automatically by the drm_kms_poll helpers. Stop calling these functions manually. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/hdmi/hdmi.c | 2 -- 1 file changed, 2 deletions(-)

[Freedreno] [PATCH v3 2/7] drm/probe-helper: enable and disable HPD on connectors

2022-11-02 Thread Dmitry Baryshkov
Introduce two drm_connector_helper_funcs: enable_hpd() and disable_hpd(). They are called by drm_kms_helper_poll_enable() and drm_kms_helper_poll_disable() (and thus drm_kms_helper_poll_init() and drm_kms_helper_poll_fini()) respectively. This allows DRM drivers to rely on drm_kms_helper_poll for

[Freedreno] [PATCH v3 4/7] drm/imx/dcss: stop using drm_bridge_connector_en/disable_hpd()

2022-11-02 Thread Dmitry Baryshkov
The functionality of drm_bridge_connector_enable_hpd() and drm_bridge_connector_disable_hpd() is provided automatically by the drm_kms_poll helpers. Stop calling these functions manually. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/imx/dcss/dcss-dev.c | 4

[Freedreno] [PATCH v3 6/7] drm/omap: stop using drm_bridge_connector_en/disable_hpd()

2022-11-02 Thread Dmitry Baryshkov
The functionality of drm_bridge_connector_enable_hpd() and drm_bridge_connector_disable_hpd() is provided automatically by the drm_kms_poll helpers. Stop calling these functions manually. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/omapdrm/omap_drv.c | 41 --

[Freedreno] [PATCH v3 0/7] drm/bridge_connector: perform HPD enablement automatically

2022-11-02 Thread Dmitry Baryshkov
>From all the drivers using drm_bridge_connector only iMX/dcss and OMAP DRM driver do a proper work of calling drm_bridge_connector_en/disable_hpd() in right places. Rather than teaching each and every driver how to properly handle drm_bridge_connector's HPD, make that automatic. Add two

[Freedreno] [PATCH v3 3/7] drm/bridge_connector: rely on drm_kms_helper_poll_* for HPD enablement

2022-11-02 Thread Dmitry Baryshkov
Use drm_connector's helpers enable_hpd and disable_hpd to enable and disable HPD automatically by the means of drm_kms_helper_poll_* functions. As the drm_bridge_connector_enable_hpd() and drm_bridge_connector_disable_hpd() functions are now unused, replace them with stubs to ease driver

[Freedreno] [RESEND PATCH v1] dt-bindings: display/msm: convert MDP5 schema to YAML format

2022-11-02 Thread Dmitry Baryshkov
Convert the mdp5.txt into the yaml format. Changes to the existing (txt) schema: - MSM8996 has additional "iommu" clock, define it separately - Add new properties used on some of platforms: - interconnects, interconnect-names - iommus - power-domains - operating-points-v2, opp-table

Re: [Freedreno] [RFC PATCH v2 01/11] arm64: dts: qcom: msm8996: change order of SMMU clocks on this platform

2022-11-02 Thread Krzysztof Kozlowski
On 02/11/2022 14:44, Dmitry Baryshkov wrote: > Change order of SMMU clocks to match the schema. > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof

Re: [Freedreno] [RFC PATCH v2 04/11] dt-bindings: arm-smmu: add special case for Google Cheza platform

2022-11-02 Thread Krzysztof Kozlowski
On 02/11/2022 14:44, Dmitry Baryshkov wrote: > Cheza fw does not properly program the GPU aperture to allow the > GPU to update the SMMU pagetables for context switches. The board file > works around this by dropping the "qcom,adreno-smmu" compat string. > Add this usecase to arm,smmu.yaml schema.

Re: [Freedreno] [PATCH v4 2/2] drm/msm: remove duplicated code from a6xx_create_address_space

2022-11-02 Thread Rob Clark
On Wed, Nov 2, 2022 at 10:54 AM Dmitry Baryshkov wrote: > > The function a6xx_create_address_space() is mostly a copy of > adreno_iommu_create_address_space() with added quirk setting. Rework > these two functions to be a thin wrappers around a common helper. > > Signed-off-by: Dmitry Baryshkov

Re: [Freedreno] [PATCH v4 1/2] drm/msm: move domain allocation into msm_iommu_new()

2022-11-02 Thread Rob Clark
On Wed, Nov 2, 2022 at 10:54 AM Dmitry Baryshkov wrote: > > After the msm_iommu instance is created, the IOMMU domain is completely > handled inside the msm_iommu code. Move the iommu_domain_alloc() call > into the msm_iommu_new() to simplify callers code. > > Reported-by: kernel test robot >

Re: [Freedreno] [PATCH v2 2/2] drm/msm: Hangcheck progress detection

2022-11-02 Thread Dmitry Baryshkov
On 02/11/2022 01:33, Rob Clark wrote: From: Rob Clark If the hangcheck timer expires, check if the fw's position in the cmdstream has advanced (changed) since last timer expiration, and allow it up to three additional "extensions" to it's alotted time. The intention is to continue to catch

Re: [Freedreno] [RFC PATCH v2 03/11] dt-bindings: arm-smmu: fix clocks/clock-names schema

2022-11-02 Thread Krzysztof Kozlowski
On 02/11/2022 14:44, Dmitry Baryshkov wrote: > Rework clocks/clock-names properties schema to property describe > possible usage cases. > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof

Re: [Freedreno] [RFC PATCH v2 03/11] dt-bindings: arm-smmu: fix clocks/clock-names schema

2022-11-02 Thread Krzysztof Kozlowski
On 02/11/2022 14:44, Dmitry Baryshkov wrote: > Rework clocks/clock-names properties schema to property describe s/property/properly/ with that: Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof

[Freedreno] [PATCH v2 7/8] drm/msm/dpu: add support for SM8450

2022-11-02 Thread Dmitry Baryshkov
Add definitions for the display hardware used on Qualcomm SM8450 platform. Tested-by: Vinod Koul Reviewed-by: Vinod Koul Signed-off-by: Dmitry Baryshkov --- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c| 224 ++ .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h| 1 +

[Freedreno] [PATCH v2 8/8] drm/msm: mdss add support for SM8450

2022-11-02 Thread Dmitry Baryshkov
Add support for the MDSS block on SM8450 platform. Tested-by: Vinod Koul Reviewed-by: Vinod Koul Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/msm_mdss.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/msm/msm_mdss.c b/drivers/gpu/drm/msm/msm_mdss.c index

[Freedreno] [PATCH v2 3/8] dt-bindings: display/msm: add support for the display on SM8450

2022-11-02 Thread Dmitry Baryshkov
Add DPU and MDSS schemas to describe MDSS and DPU blocks on the Qualcomm SM8450 platform. Signed-off-by: Dmitry Baryshkov --- .../bindings/display/msm/qcom,sm8450-dpu.yaml | 132 +++ .../display/msm/qcom,sm8450-mdss.yaml | 349 ++ 2 files changed, 481 insertions(+)

[Freedreno] [PATCH v2 5/8] drm/msm/dsi: add support for DSI 2.6.0

2022-11-02 Thread Dmitry Baryshkov
Add support for DSI 2.6.0 (block used on sm8450). Tested-by: Vinod Koul Reviewed-by: Vinod Koul Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dsi/dsi_cfg.c | 2 ++ drivers/gpu/drm/msm/dsi/dsi_cfg.h | 1 + 2 files changed, 3 insertions(+) diff --git

[Freedreno] [PATCH v2 4/8] drm/msm/dsi: add support for DSI-PHY on SM8350 and SM8450

2022-11-02 Thread Dmitry Baryshkov
SM8350 and SM8450 use 5nm DSI PHYs, which share register definitions with 7nm DSI PHYs. Rather than duplicating the driver, handle 5nm variants inside the common 5+7nm driver. Co-developed-by: Robert Foss Tested-by: Vinod Koul Reviewed-by: Vinod Koul Signed-off-by: Dmitry Baryshkov ---

[Freedreno] [PATCH v2 6/8] drm/msm/dpu: add support for MDP_TOP blackhole

2022-11-02 Thread Dmitry Baryshkov
On sm8450 a register block was removed from MDP TOP. Accessing it during snapshotting results in NoC errors / immediate reboot. Skip accessing these registers during snapshot. Tested-by: Vinod Koul Reviewed-by: Vinod Koul Signed-off-by: Dmitry Baryshkov ---

[Freedreno] [PATCH v2 2/8] dt-bindings: display/msm: add sm8350 and sm8450 DSI PHYs

2022-11-02 Thread Dmitry Baryshkov
SM8350 and SM8450 platforms use the same driver and same bindings as the existing 7nm DSI PHYs. Add corresponding compatibility strings. Signed-off-by: Dmitry Baryshkov --- Documentation/devicetree/bindings/display/msm/dsi-phy-7nm.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git

[Freedreno] [PATCH v2 1/8] dt-bindings: display/msm/dsi-controller-main: allow defining opp-table

2022-11-02 Thread Dmitry Baryshkov
Allow defining DSI OPP table inside the DSI controller node. Signed-off-by: Dmitry Baryshkov --- .../devicetree/bindings/display/msm/dsi-controller-main.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/display/msm/dsi-controller-main.yaml

[Freedreno] [PATCH v2 0/8] drm/msm: add support for SM8450

2022-11-02 Thread Dmitry Baryshkov
This adds support for the MDSS/DPU/DSI on the Qualcomm SM8450 platform. Change since v1: - Fixed the regdma pointer in sm8450_dpu_cfg - Rebased onto pending msm-next-lumag - Added DT bindings for corresponding devices Dmitry Baryshkov (8): dt-bindings: display/msm/dsi-controller-main: allow

Re: [Freedreno] [PATCH v3 02/12] drm/msm/dpu: Introduce SC8280XP

2022-11-02 Thread Dmitry Baryshkov
On 26/10/2022 06:26, Bjorn Andersson wrote: From: Bjorn Andersson The Qualcomm SC8280XP platform contains DPU version 8.0.0, has 9 interfaces, 2 DSI controllers and 4 DisplayPort controllers. Extend the necessary definitions and describe the DPU in the SC8280XP. Signed-off-by: Bjorn Andersson

Re: [Freedreno] [PATCH v3 04/12] drm/msm/dp: Stop using DP id as index in desc

2022-11-02 Thread Dmitry Baryshkov
On 26/10/2022 06:26, Bjorn Andersson wrote: From: Bjorn Andersson In the SC8280XP platform there are two identical MDSS instances, each with the same set of DisplayPort instances, at different addresses. By not relying on the index to define the instance id it's possible to describe them both