Re: [PATCH RFC 08/10] drm/panel/samsung-sofef03: Add panel driver for Sony Xperia 5 II

2023-05-21 Thread Dmitry Baryshkov
On 22/05/2023 00:23, Marijn Suijten wrote: The SOFEF03-M Display-IC paired with an unknown panel in the Sony Xperia 5 II always uses Display Stream Compression 1.1 and features a 60hz and 120hz refresh-rate mode. Co-developed-by: Konrad Dybcio Konrad's S-o-b is also required then Signed-off

Re: [PATCH RFC 06/10] drm/panel/samsung-sofef01: Add panel driver for Sony Xperia 5 / 10 II

2023-05-21 Thread Dmitry Baryshkov
On 22/05/2023 00:23, Marijn Suijten wrote: This SOFEF01-M Display-IC driver supports two modes with different compatibles to differentiate between slightly different physical sizes (panels) found on the Xperia 5 (6.1") and 10 II (6.0"). It is currently also used to hardcode significantly higher

Re: [PATCH RFC 03/10] drm/panel: Add LGD panel driver for Sony Xperia XZ3

2023-05-21 Thread Dmitry Baryshkov
On 22/05/2023 00:23, Marijn Suijten wrote: Sony provides an unlabeled LGD + Atmel maXTouch assembly in its Xperia XZ3 (tama akatsuki) phone, with custom DCS commands to match. This panel features Display Stream Compression 1.1. Signed-off-by: Marijn Suijten --- drivers/gpu/drm/panel/Kconfig

[PATCH libdrm] modetest: Try and open device using drmOpenDevice first

2023-05-21 Thread Marek Vasut
This way, it is possible to use modetest -D to specify a card in /dev/dri/cardN which is esp. useful on systems which have multiple cards, with identical modules and where it is otherwise impossible to discern the different cards via drmOpen(). One such example is i.MX8M Plus, which has three suc

[PATCH 6/6] drm/msm/dpu: drop compatibility INTR defines

2023-05-21 Thread Dmitry Baryshkov
While reworking interrupts masks, it was easier to keep old MDP_INTFn_7xxx_INTR and MDP_INTFn_7xxx_TEAR_INTR symbols. Now it is time to drop them and use unified symbol names. Signed-off-by: Dmitry Baryshkov --- .../gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 4 ++-- .../gpu/drm/msm/disp/

[PATCH 3/6] drm/msm/dpu: split interrupt address arrays

2023-05-21 Thread Dmitry Baryshkov
There is no point in having a single enum (and a single array) for both DPU < 7.0 and DPU >= 7.0 interrupt registers. Instead define a single enum and two IRQ address arrays. Signed-off-by: Dmitry Baryshkov --- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h| 2 + .../gpu/drm/msm/disp/dpu1/dpu_h

[PATCH 2/6] drm/msm/dpu: inline __intr_offset

2023-05-21 Thread Dmitry Baryshkov
Inline __intr_offset(), there is no point in having a separate oneline function for setting base block address. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpu/drm/msm/dis

[PATCH 4/6] drm/msm/dpu: autodetect supported interrupts

2023-05-21 Thread Dmitry Baryshkov
Declaring the mask of supported interrupts proved to be error-prone. It is very easy to add a bit with no corresponding backing block or to miss the INTF TE bit. Replace this with looping over the enabled INTF blocks to setup the irq mask. Signed-off-by: Dmitry Baryshkov --- .../gpu/drm/msm/disp

[PATCH 5/6] drm/msm/dpu: drop now-unused mdss_irqs field from hw catalog

2023-05-21 Thread Dmitry Baryshkov
Now as the list of the interrupts is constructed from the catalog data, drop the mdss_irqs field from catalog. Signed-off-by: Dmitry Baryshkov --- .../drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h| 8 .../gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 9 - .../gpu/drm/msm/

[PATCH 0/6] drm/msm/dpu: rework interrupt handling

2023-05-21 Thread Dmitry Baryshkov
Declaring the mask of supported interrupts proved to be error-prone. It is very easy to add a bit with no corresponding backing block or to miss the INTF TE bit. Replace this static configuration with the irq mask calculated from the HW catalog data. Dmitry Baryshkov (6): drm/msm/dpu: don't set

[PATCH 1/6] drm/msm/dpu: don't set DPU_INTF_TE globally

2023-05-21 Thread Dmitry Baryshkov
Using BIT(DPU_INTF_TE) in INTF_SC7180_MASK (and by extension in INTF_SC7280_MASK) results in this bit (and corrsponding operations) being enabled for all interfaces, even the ones which do not have TE block. Move this bit setting to INTF_DSI_TE(), so that it is only enabled for those INTF blocks wh

Re: [PATCH RFC 02/10] dt-bindings: display: panel: Describe Sony Xperia XZ3's LGD panel

2023-05-21 Thread Dmitry Baryshkov
On 22/05/2023 00:23, Marijn Suijten wrote: Document the LG-Display OLED panel found in the Sony Xperia XZ3. According to find chineese market this is LG LH599QH3-EDB1 Signed-off-by: Marijn Suijten --- .../bindings/display/panel/sony,akatsuki-lgd.yaml | 71 ++ 1 file

Re: [PATCH RFC 09/10] dt-bindings: display: panel: Describe Sony Xperia 1 display

2023-05-21 Thread Rob Herring
/sony,griffin-samsung.yaml: $id: relative path/filename doesn't match actual path or filename expected: http://devicetree.org/schemas/display/panel/sony,griffin-samsung.yaml# doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-binding

Re: [PATCH RFC 05/10] dt-bindings: display: panel: Describe Samsung SOFEF01-M Display-IC

2023-05-21 Thread Rob Herring
nel/samsung,sofef01-m.yaml doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230521-drm-panels-sony-v1-5-541c341d6...@somainline.org The base for the series is generally the latest rc1. A different dependency should be noted in *this* pa

Re: [PATCH 0/6] drm/msm/dpu: use UBWC data from MDSS driver

2023-05-21 Thread Dmitry Baryshkov
On 22/05/2023 00:50, Steev Klimaszewski wrote: Hi Dmitry On Sun, May 21, 2023 at 12:28 PM Dmitry Baryshkov wrote: Both DPU and MDSS programming requires knowledge of some of UBWC parameters. This results in duplication of UBWC data between MDSS and DPU drivers. To remove such duplication and

Re: [PATCH 0/6] drm/msm/dpu: use UBWC data from MDSS driver

2023-05-21 Thread Steev Klimaszewski
Hi Dmitry On Sun, May 21, 2023 at 12:28 PM Dmitry Baryshkov wrote: > > Both DPU and MDSS programming requires knowledge of some of UBWC > parameters. This results in duplication of UBWC data between MDSS and > DPU drivers. To remove such duplication and make the driver more > error-prone, export

Re: [PATCH v2 3/3] drm/msm/dpu: switch dpu_encoder to use drm_debugfs_add_file()

2023-05-21 Thread Marijn Suijten
On 2023-05-21 22:22:30, Dmitry Baryshkov wrote: > Use drm_debugfs_add_file() for encoder's status file. This changes the > name of the status file from encoder%d/status to just encoder%d. > > Signed-off-by: Dmitry Baryshkov Also nice that this is a managed variant so that we don't have to clean

Re: [PATCH v2 2/3] drm/msm/dpu: drop (mostly) unused DPU_NAME_SIZE define

2023-05-21 Thread Marijn Suijten
On 2023-05-21 22:22:29, Dmitry Baryshkov wrote: > This define is used only in one place, in dpu_encoder debugfs code. > Inline the value and drop the define completely. > > Signed-off-by: Dmitry Baryshkov Even if this was a constant, always a fan of sizeof(name) versus assuming that name has som

Re: [PATCH v2 1/3] drm/msm/dpu: drop dpu_encoder_phys_ops::late_register()

2023-05-21 Thread Marijn Suijten
On 2023-05-21 22:22:28, Dmitry Baryshkov wrote: > This callback has been unused since the driver being added. Drop it now. > > Signed-off-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 7 --- > drivers/gpu/drm/msm/disp/dpu1/dpu_

[PATCH RFC 08/10] drm/panel/samsung-sofef03: Add panel driver for Sony Xperia 5 II

2023-05-21 Thread Marijn Suijten
The SOFEF03-M Display-IC paired with an unknown panel in the Sony Xperia 5 II always uses Display Stream Compression 1.1 and features a 60hz and 120hz refresh-rate mode. Co-developed-by: Konrad Dybcio Signed-off-by: Marijn Suijten --- drivers/gpu/drm/panel/Kconfig | 14 + drive

[PATCH RFC 04/10] arm64: dts: qcom: sdm845-akatsuki: Configure OLED panel

2023-05-21 Thread Marijn Suijten
Set the right compatible and reset-gpios for the LG Display 1440x2880 OLED panel found on the Xperia XZ3. All other properties (e.g. vddio regulator and pinctrl) remain the valid from the base DTSI. Signed-off-by: Marijn Suijten --- arch/arm64/boot/dts/qcom/sdm845-sony-xperia-tama-akatsuki.dts

[PATCH RFC 10/10] drm/panel/sony-griffin-samsung: Add panel driver for Sony Xperia 1

2023-05-21 Thread Marijn Suijten
The Sony Xperia 1 (codename kumano griffin) features an unnamed 4k OLED DSI cmd mode panel produced by Samsung. It can be driven in a 1644x3840@60 or 1096x2560@60 mode, and always has Display Stream Compression 1.1 enabled. Signed-off-by: Marijn Suijten --- drivers/gpu/drm/panel/Kconfig

[PATCH RFC 09/10] dt-bindings: display: panel: Describe Sony Xperia 1 display

2023-05-21 Thread Marijn Suijten
Document an unnamed Samsung Display-IC and 1644x3840@60 6.5" panel found in the Sony Xperia 1. Signed-off-by: Marijn Suijten --- .../display/panel/sony,griffin-samsung.yaml| 73 ++ 1 file changed, 73 insertions(+) diff --git a/Documentation/devicetree/bindings/displ

[PATCH RFC 02/10] dt-bindings: display: panel: Describe Sony Xperia XZ3's LGD panel

2023-05-21 Thread Marijn Suijten
Document the LG-Display OLED panel found in the Sony Xperia XZ3. Signed-off-by: Marijn Suijten --- .../bindings/display/panel/sony,akatsuki-lgd.yaml | 71 ++ 1 file changed, 71 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/sony,akatsuki-lgd.yam

[PATCH RFC 07/10] dt-bindings: display: panel: Describe Samsung SOFEF03-M Display-IC

2023-05-21 Thread Marijn Suijten
Document the SOFEF06-M Display-IC and 1080x2520 panel found in the Sony Xperia 5 II (6.1"). Signed-off-by: Marijn Suijten --- .../bindings/display/panel/samsung,sofef03-m.yaml | 73 ++ 1 file changed, 73 insertions(+) diff --git a/Documentation/devicetree/bindings/display/

[PATCH RFC 06/10] drm/panel/samsung-sofef01: Add panel driver for Sony Xperia 5 / 10 II

2023-05-21 Thread Marijn Suijten
This SOFEF01-M Display-IC driver supports two modes with different compatibles to differentiate between slightly different physical sizes (panels) found on the Xperia 5 (6.1") and 10 II (6.0"). It is currently also used to hardcode significantly higher fake porches for the Xperia 5, which are unus

[PATCH RFC 05/10] dt-bindings: display: panel: Describe Samsung SOFEF01-M Display-IC

2023-05-21 Thread Marijn Suijten
Document the SOFEF01-M Display-IC and 1080x2520 panels found in the Sony Xperia 5 (6.1") and Sony Xperia 10 II (6.0"). Signed-off-by: Marijn Suijten --- .../bindings/display/panel/samsung,sofef01-m.yaml | 109 + 1 file changed, 109 insertions(+) diff --git a/Documentation/

[PATCH RFC 03/10] drm/panel: Add LGD panel driver for Sony Xperia XZ3

2023-05-21 Thread Marijn Suijten
Sony provides an unlabeled LGD + Atmel maXTouch assembly in its Xperia XZ3 (tama akatsuki) phone, with custom DCS commands to match. This panel features Display Stream Compression 1.1. Signed-off-by: Marijn Suijten --- drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/pan

[PATCH RFC 01/10] drm/panel: Clean up SOFEF00 config dependencies

2023-05-21 Thread Marijn Suijten
As per the config name this Display IC features a DSI command-mode interface (or the command to switch to video mode is not known/documented) and does not use any of the video-mode helper utilities, hence should not select VIDEOMODE_HELPERS. In addition it uses devm_gpiod_get() and related functio

[PATCH RFC 00/10] drm/panel: Drivers for four Sony CMD-mode (and DSC) panels

2023-05-21 Thread Marijn Suijten
fin-samsung.c | 410 11 files changed, 1945 insertions(+), 1 deletion(-) --- base-commit: dbd91ef4e91c1ce3a24429f5fb3876b7a0306733 change-id: 20230521-drm-panels-sony-3c5ac3218427 Best regards, -- Marijn Suijten

[PATCH v3 6/6] drm/shmem-helper: Switch to reservation lock

2023-05-21 Thread Dmitry Osipenko
Replace all drm-shmem locks with a GEM reservation lock. This makes locks consistent with dma-buf locking convention where importers are responsible for holding reservation lock for all operations performed over dma-bufs, preventing deadlock between dma-buf importers and exporters. Suggested-by: D

[PATCH v3 5/6] dma-buf: Change locking policy for mmap()

2023-05-21 Thread Dmitry Osipenko
Change locking policy of mmap() callback, making exporters responsible for handling dma-buf reservation locking. Previous locking policy stated that dma-buf is locked for both importers and exporters by the dma-buf core, which caused a deadlock problem for DRM drivers in a case of self-imported dma

[PATCH v3 4/6] drm: Don't assert held reservation lock for dma-buf mmapping

2023-05-21 Thread Dmitry Osipenko
Don't assert held dma-buf reservation lock on memory mapping of exported buffer. We're going to change dma-buf mmap() locking policy such that exporters will have to handle the lock. The previous locking policy caused deadlock problem for DRM drivers in a case of self-imported dma-bufs once these

[PATCH v3 2/6] dma-buf/heaps: Don't assert held reservation lock for dma-buf mmapping

2023-05-21 Thread Dmitry Osipenko
Don't assert held dma-buf reservation lock on memory mapping of exported buffer. We're going to change dma-buf mmap() locking policy such that exporters will have to handle the lock. The previous locking policy caused deadlock problem for DRM drivers in a case of self-imported dma-bufs once these

[PATCH v3 3/6] udmabuf: Don't assert held reservation lock for dma-buf mmapping

2023-05-21 Thread Dmitry Osipenko
Don't assert held dma-buf reservation lock on memory mapping of exported buffer. We're going to change dma-buf mmap() locking policy such that exporters will have to handle the lock. The previous locking policy caused deadlock problem for DRM drivers in a case of self-imported dma-bufs once these

[PATCH v3 1/6] media: videobuf2: Don't assert held reservation lock for dma-buf mmapping

2023-05-21 Thread Dmitry Osipenko
Don't assert held dma-buf reservation lock on memory mapping of exported buffer. We're going to change dma-buf mmap() locking policy such that exporters will have to handle the lock. The previous locking policy caused deadlock problem for DRM drivers in a case of self-imported dma-bufs once these

[PATCH v3 0/6] Move dma-buf mmap() reservation locking down to exporters

2023-05-21 Thread Dmitry Osipenko
This patchset makes dma-buf exporters responisble for taking care of the reservation lock. I also included patch that moves drm-shmem to use reservation lock, to let CI test the whole set. I'm going to take all the patches via the drm-misc tree, please give an ack. Previous policy stated that dma-

[PATCH v2 3/3] drm/msm/dpu: switch dpu_encoder to use drm_debugfs_add_file()

2023-05-21 Thread Dmitry Baryshkov
Use drm_debugfs_add_file() for encoder's status file. This changes the name of the status file from encoder%d/status to just encoder%d. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 40 ++--- 1 file changed, 11 insertions(+), 29 deletions(-) d

[PATCH v2 2/3] drm/msm/dpu: drop (mostly) unused DPU_NAME_SIZE define

2023-05-21 Thread Dmitry Baryshkov
This define is used only in one place, in dpu_encoder debugfs code. Inline the value and drop the define completely. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 4 ++-- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h | 2 -- drivers/gpu/drm/msm/disp/dpu1/dpu_pla

[PATCH v2 1/3] drm/msm/dpu: drop dpu_encoder_phys_ops::late_register()

2023-05-21 Thread Dmitry Baryshkov
This callback has been unused since the driver being added. Drop it now. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 7 --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys.h | 3 --- 2 files changed, 10 deletions(-) diff --git a/drivers/gpu/drm/msm/

Re: [PATCH 2/2] drm/msm/dpu: switch dpu_encoder to use drm_debugfs_add_file()

2023-05-21 Thread Dmitry Baryshkov
On 21/05/2023 22:21, Marijn Suijten wrote: On 2023-05-21 22:04:42, Dmitry Baryshkov wrote: Use drm_debugfs_add_file() for encoder's status file. This changes the name of the status file from encoder%d/status to just encoder%d. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1

Re: [PATCH 2/2] drm/msm/dpu: switch dpu_encoder to use drm_debugfs_add_file()

2023-05-21 Thread Marijn Suijten
On 2023-05-21 22:04:42, Dmitry Baryshkov wrote: > Use drm_debugfs_add_file() for encoder's status file. This changes the > name of the status file from encoder%d/status to just encoder%d. > > Signed-off-by: Dmitry Baryshkov > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 40 ++-

Re: [PATCH 1/2] drm/msm/dpu: drop SSPP register dumpers

2023-05-21 Thread Marijn Suijten
On 2023-05-21 20:12:00, Marijn Suijten wrote: > On 2023-05-21 20:21:46, Dmitry Baryshkov wrote: > > Drop SSPP-specifig debugfs register dumps in favour of using > > debugfs/dri/0/kms or devcoredump. > > > > Signed-off-by: Dmitry Baryshkov > > Reviewed-by: Marijn Suijten > > > --- > > drivers/

[PATCH 2/2] drm/msm/dpu: switch dpu_encoder to use drm_debugfs_add_file()

2023-05-21 Thread Dmitry Baryshkov
Use drm_debugfs_add_file() for encoder's status file. This changes the name of the status file from encoder%d/status to just encoder%d. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 40 ++--- 1 file changed, 11 insertions(+), 29 deletions(-) d

[PATCH 0/2] drm/msm/dpu: yet another attempt at cleaning up encoder's debugfs

2023-05-21 Thread Dmitry Baryshkov
Simplify dpu_encoder slightly by using drm_debugfs_add_file(). Dmitry Baryshkov (2): drm/msm/dpu: drop (mostly) unused DPU_NAME_SIZE define drm/msm/dpu: switch dpu_encoder to use drm_debugfs_add_file() drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 40 ++--- drivers/gpu/drm/ms

[PATCH 1/2] drm/msm/dpu: drop (mostly) unused DPU_NAME_SIZE define

2023-05-21 Thread Dmitry Baryshkov
This define is used only in one place, in dpu_encoder debugfs code. Inline the value and drop the define completely. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 4 ++-- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h | 2 -- drivers/gpu/drm/msm/disp/dpu1/dpu_pla

Re: [GIT PULL] fbdev fixes for v6.4-rc3

2023-05-21 Thread pr-tracker-bot
The pull request you sent on Sun, 21 May 2023 12:08:18 +0200: > http://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev.git > tags/fbdev-for-6.4-rc3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/70e137e3840e1bc2deab32492316653c956a5c6b Thank you! -- Deet

Re: [PATCH 1/2] amdgpu: validate drm_amdgpu_gem_va addrs for all ops

2023-05-21 Thread Chia-I Wu
On Thu, May 18, 2023 at 1:12 PM Alex Deucher wrote: > > On Wed, May 17, 2023 at 5:27 PM Chia-I Wu wrote: > > > > On Tue, May 9, 2023 at 11:33 AM Chia-I Wu wrote: > > > > > > Extend the address and size validations to AMDGPU_VA_OP_UNMAP and > > > AMDGPU_VA_OP_CLEAR by moving the validations to am

Re: [PATCH 2/2] drm/msm/dpu: drop debugfs regset32 support

2023-05-21 Thread Marijn Suijten
On 2023-05-21 20:21:47, Dmitry Baryshkov wrote: > Drop the custom DPU's dpu_debugfs_create_regset32() function. With the > SSPP user being gone, there is no need in this function. While we are at > it also drop unused debugfs declarations from dpu_kms.h. > > Signed-off-by: Dmitry Baryshkov Revie

Re: [PATCH 1/2] drm/msm/dpu: drop SSPP register dumpers

2023-05-21 Thread Marijn Suijten
On 2023-05-21 20:21:46, Dmitry Baryshkov wrote: > Drop SSPP-specifig debugfs register dumps in favour of using > debugfs/dri/0/kms or devcoredump. > > Signed-off-by: Dmitry Baryshkov Reviewed-by: Marijn Suijten > --- > drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c | 25 - >

[PATCH] drm/drv: propagate errors from drm_modeset_register_all()

2023-05-21 Thread Dmitry Baryshkov
In case the drm_modeset_register_all() function fails, its error code will be ignored. Instead make the drm_dev_register() bail out in case of such an error. Fixes: 79190ea2658a ("drm: Add callbacks for late registering") Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/drm_drv.c | 10 +++

[PATCH 2/2] drm/msm/dpu: drop debugfs regset32 support

2023-05-21 Thread Dmitry Baryshkov
Drop the custom DPU's dpu_debugfs_create_regset32() function. With the SSPP user being gone, there is no need in this function. While we are at it also drop unused debugfs declarations from dpu_kms.h. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 65 --

[PATCH 1/2] drm/msm/dpu: drop SSPP register dumpers

2023-05-21 Thread Dmitry Baryshkov
Drop SSPP-specifig debugfs register dumps in favour of using debugfs/dri/0/kms or devcoredump. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c | 25 - 1 file changed, 25 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c b/

[PATCH 6/6] drm/msm/dpu: drop UBWC configuration

2023-05-21 Thread Dmitry Baryshkov
As the DPU driver has switched to fetching data from MDSS driver, we can now drop the UBWC and highest_bank_bit parts of the DPU hw catalog. Signed-off-by: Dmitry Baryshkov --- .../drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 6 -- .../drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h| 6 -

[PATCH 1/6] drm/msm/mdss: correct UBWC programming for SM8550

2023-05-21 Thread Dmitry Baryshkov
The SM8550 platform employs newer UBWC decoder, which requires slightly different programming. Fixes: a2f33995c19d ("drm/msm: mdss: add support for SM8550") Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/msm_mdss.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(

[PATCH 5/6] drm/msm/dpu: use MDSS data for programming SSPP

2023-05-21 Thread Dmitry Baryshkov
Switch to using data from MDSS driver to program the SSPP fetch and UBWC configuration. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c | 18 +++--- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.h | 7 +-- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c |

[PATCH 4/6] drm/msm/mdss: populate missing data

2023-05-21 Thread Dmitry Baryshkov
As we are going to use MDSS data for DPU programming, populate missing MDSS data. The UBWC 1.0 and no UBWC cases do not require MDSS programming, so skip them. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/msm_mdss.c | 21 +++-- 1 file changed, 19 insertions(+), 2 delet

[PATCH 3/6] drm/msm/mdss: export UBWC data

2023-05-21 Thread Dmitry Baryshkov
DPU programming requires knowledge of some of UBWC parameters. This results in duplication of UBWC data between MDSS and DPU drivers. Export the required data from MDSS driver. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/msm_mdss.c | 30 +- drivers/gpu/drm

[PATCH 2/6] drm/msm/mdss: rename ubwc_version to ubwc_enc_version

2023-05-21 Thread Dmitry Baryshkov
Rename the ubwc_version field to ubwc_enc_version, it denotes the version of the UBWC encoder, not the "UBWC version". Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/msm_mdss.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/d

[PATCH 0/6] drm/msm/dpu: use UBWC data from MDSS driver

2023-05-21 Thread Dmitry Baryshkov
Both DPU and MDSS programming requires knowledge of some of UBWC parameters. This results in duplication of UBWC data between MDSS and DPU drivers. To remove such duplication and make the driver more error-prone, export respective configuration from the MDSS driver and make DPU use it, instead of b

Re: [PATCH v4 08/12] drm/msm/dpu: Add SM6375 support

2023-05-21 Thread Dmitry Baryshkov
On 19/05/2023 20:04, Konrad Dybcio wrote: Add basic SM6375 support to the DPU1 driver to enable display output. Signed-off-by: Konrad Dybcio --- .../gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 153 + drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 1 + driver

Re: [PATCH v4 06/12] drm/msm/dpu: Add SM6350 support

2023-05-21 Thread Dmitry Baryshkov
On 19/05/2023 20:04, Konrad Dybcio wrote: Add SM6350 support to the DPU1 driver to enable display output. It's worth noting that one entry dpu_qos_lut_entry was trimmed off: {.fl = 0, .lut = 0x0011223344556677 }, due to the fact that newer SoCs dropped the .fl (fill level)-based logic and don'

[PATCH] backlight: Switch i2c drivers back to use .probe()

2023-05-21 Thread Uwe Kleine-König
After commit b8a1a4cd5a98 ("i2c: Provide a temporary .probe_new() call-back type"), all drivers being converted to .probe_new() and then 03c835f498b5 ("i2c: Switch .probe() to not take an id parameter") convert back to (the new) .probe() to be able to eventually drop .probe_new() from struct i2c_dr

Re: [PATCH 1/2] dt-bindings: display: panel: Add Visionox R66451 AMOLED DSI panel bindings

2023-05-21 Thread Marijn Suijten
On 2023-05-16 13:20:30, Jessica Zhang wrote: > Document the 1080x2340 Visionox R66451 AMOLED DSI panel bindings > > Signed-off-by: Jessica Zhang > --- > .../bindings/display/panel/visionox,r66451.yaml| 59 > ++ > 1 file changed, 59 insertions(+) > > diff --git > a/Docu

Re: [PATCH 2/2] drm/panel: Add driver for Visionox r66451 panel

2023-05-21 Thread Marijn Suijten
On 2023-05-18 03:19:49, Dmitry Baryshkov wrote: > On 16/05/2023 23:20, Jessica Zhang wrote: > > Add support for the 1080x2340 Visionox R66451 AMOLED DSI panel that > > comes with the Qualcomm HDK8350 display expansion pack. > > > > The panel enables display compression (DSC v1.2) by default. > >

[GIT PULL] fbdev fixes for v6.4-rc3

2023-05-21 Thread Helge Deller
Hi Linus, please pull a few small unspectacular fbdev fixes. Thanks! Helge -- The following changes since commit f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6: Linux 6.4-rc2 (2023-05-14 12:51:40 -0700) are available in the Git repository at: http://git.kernel.org/pub/scm/linux/kern