Re: [PATCH v10 14/21] drm/mediatek: dpi: Add dpintf support

2022-06-01 Thread Christophe JAILLET
Le 23/05/2022 à 12:47, Guillaume Ranquet a écrit : dpintf is the displayport interface hardware unit. This unit is similar to dpi and can reuse most of the code. This patch adds support for mt8195-dpintf to this dpi driver. Main differences are: - Some features/functional components are not

Re: [Intel-gfx] [RFC v3 1/3] drm/doc/rfc: VM_BIND feature design document

2022-06-01 Thread Lionel Landwerlin
On 02/06/2022 00:18, Matthew Brost wrote: On Wed, Jun 01, 2022 at 05:25:49PM +0300, Lionel Landwerlin wrote: On 17/05/2022 21:32, Niranjana Vishwanathapura wrote: +VM_BIND/UNBIND ioctl will immediately start binding/unbinding the mapping in an +async worker. The binding and unbinding will work

Re: [PATCH v4] dma-buf: Add a capabilities directory

2022-06-01 Thread Greg KH
On Wed, Jun 01, 2022 at 04:13:14PM +, Simon Ser wrote: > To discover support for new DMA-BUF IOCTLs, user-space has no > choice but to try to perform the IOCTL on an existing DMA-BUF. Which is correct and how all kernel features work (sorry I missed the main goal of this patch earlier and

Re: [Intel-gfx] [RFC v3 3/3] drm/doc/rfc: VM_BIND uapi definition

2022-06-01 Thread Niranjana Vishwanathapura
On Wed, Jun 01, 2022 at 11:27:17AM +0200, Daniel Vetter wrote: On Wed, 1 Jun 2022 at 11:03, Dave Airlie wrote: On Tue, 24 May 2022 at 05:20, Niranjana Vishwanathapura wrote: > > On Thu, May 19, 2022 at 04:07:30PM -0700, Zanoni, Paulo R wrote: > >On Tue, 2022-05-17 at 11:32 -0700, Niranjana

[PATCH v4] drm/v3d/v3d_drv: Fix PM disable depth imbalance

2022-06-01 Thread Miaoqian Lin
The pm_runtime_enable will increase power disable depth. We need to call pm_runtime_disable() to balance it when needed use devm_pm_runtime_enable() and handle it automatically/ Fixes: 57692c94dcbe ("drm/v3d: Introduce a new DRM driver for Broadcom V3D V3.x+") Signed-off-by: Miaoqian Lin ---

RE: [RFC v3 1/3] drm/doc/rfc: VM_BIND feature design document

2022-06-01 Thread Zeng, Oak
Regards, Oak > -Original Message- > From: dri-devel On Behalf Of > Niranjana Vishwanathapura > Sent: May 17, 2022 2:32 PM > To: intel-...@lists.freedesktop.org; dri-devel@lists.freedesktop.org; Vetter, > Daniel > Cc: Brost, Matthew ; Hellstrom, Thomas > ; ja...@jlekstrand.net;

Re: [PATCH v3] drm/v3d/v3d_drv: Fix PM disable depth imbalance

2022-06-01 Thread Miaoqian Lin
Hi, Thierry On 2022/6/1 22:47, Thierry Reding wrote: > On Wed, Jun 01, 2022 at 09:55:02PM +0800, Miaoqian Lin wrote: >> Hi, Daniel >> >> On 2022/6/1 21:26, Daniel Vetter wrote: >>> On Wed, Jun 01, 2022 at 04:20:50PM +0400, Miaoqian Lin wrote: The pm_runtime_enable will increase power disable

Re: mainline build failure due to f1e4c916f97f ("drm/edid: add EDID block count and size helpers")

2022-06-01 Thread Linus Torvalds
On Wed, Jun 1, 2022 at 3:28 PM Keisuke Nishimura wrote: > > > I found 13 definitions of packed structure that contains: > > - spinlock_t > > - atomic_t > > - dma_addr_t > > - phys_addr_t > > - size_t > > - struct mutex > > - struct device > > - raw_spinlock_t Ok, so I don't think

Re: [PATCH v1 5/5] drm/msm/dpu: make dpu hardware catalog static const

2022-06-01 Thread kernel test robot
Hi Dmitry, I love your patch! Yet something to improve: [auto build test ERROR on drm/drm-next] [also build test ERROR on next-20220601] [cannot apply to v5.18] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base

[GIT PULL] drm/msm: drm-msm-fixes-2022-06-01

2022-06-01 Thread Abhinav Kumar
Hi Rob Here is the second pull request for the fixes for 5.19. This goes on top of the previous pull request. Mainly it has the foll fixes: - Fix to add minimum ICC vote in the msm_mdss pm_resume path to address bootup splats - Fix to avoid dereferencing without checking in WB encoder - Fix

Re: [PATCH v5 2/6] drm/v3d: Get rid of pm code

2022-06-01 Thread Emma Anholt
On Wed, Jun 1, 2022 at 4:03 AM Peter Robinson wrote: > Runtime PM doesn't seem to work correctly on this driver. On top of > that, commit 8b6864e3e138 ("drm/v3d/v3d_drv: Remove unused static > variable 'v3d_v3d_pm_ops'") hints that it most likely never did as the > driver's PM ops were not

[PATCH] drm/bridge: lt9611uxc: Cancel only driver's work

2022-06-01 Thread Bjorn Andersson
During device remove care needs to be taken that no work is pending before it removes the underlying DRM bridge etc, but this can be done on the specific work rather than waiting for the flush of the system-wide workqueue. Fixes: bc6fa8676ebb ("drm/bridge/lontium-lt9611uxc: move HPD notification

Re: [PATCH v2] drm/msm/dpu: Move min BW request and full BW disable back to mdss

2022-06-01 Thread Dmitry Baryshkov
On 01/06/2022 02:01, Douglas Anderson wrote: In commit a670ff578f1f ("drm/msm/dpu: always use mdp device to scale bandwidth") we fully moved interconnect stuff to the DPU driver. This had no change for sc7180 but _did_ have an impact for other SoCs. It made them match the sc7180 scheme.

Re: [PATCH v2] drm/msm/dpu: Move min BW request and full BW disable back to mdss

2022-06-01 Thread Abhinav Kumar
On 6/1/2022 12:58 PM, Dmitry Baryshkov wrote: On Wed, 1 Jun 2022 at 20:18, Abhinav Kumar wrote: On 6/1/2022 3:04 AM, Dmitry Baryshkov wrote: On Wed, 1 Jun 2022 at 02:01, Douglas Anderson wrote: In commit a670ff578f1f ("drm/msm/dpu: always use mdp device to scale bandwidth") we fully

Re: [PATCH] drm/ssd130x: Only define a SPI device ID table when built as a module

2022-06-01 Thread Javier Martinez Canillas
On 5/31/22 17:10, Nathan Chancellor wrote: > On Mon, May 30, 2022 at 04:02:46PM +0200, Javier Martinez Canillas wrote: >> The kernel test robot reports a compile warning due the ssd130x_spi_table >> variable being defined but not used. This happen when ssd130x-spi driver >> is built-in instead of

Re: How should "max bpc" and "Colorspace" KMS property work?

2022-06-01 Thread Sebastian Wick
On Wed, Jun 1, 2022 at 4:06 PM Ville Syrjälä wrote: > > On Wed, Jun 01, 2022 at 10:21:26AM +0300, Pekka Paalanen wrote: > > On Tue, 31 May 2022 20:37:31 +0300 > > Ville Syrjälä wrote: > > > > > On Wed, May 25, 2022 at 01:36:47PM +0300, Pekka Paalanen wrote: > > > > On Wed, 25 May 2022 09:23:51

[PATCH v2 11/11] drm/msm/dsi_phy_7nm: Replace parent names with clk_hw pointers

2022-06-01 Thread Marijn Suijten
parent_hw pointers are easier to manage and cheaper to use than repeatedly formatting the parent name and subsequently leaving the clk framework to perform lookups based on that name. Signed-off-by: Marijn Suijten Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dsi/phy/dsi_phy_7nm.c | 70

[PATCH v2 10/11] drm/msm/dsi_phy_10nm: Replace parent names with clk_hw pointers

2022-06-01 Thread Marijn Suijten
parent_hw pointers are easier to manage and cheaper to use than repeatedly formatting the parent name and subsequently leaving the clk framework to perform lookups based on that name. Signed-off-by: Marijn Suijten Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dsi/phy/dsi_phy_10nm.c |

[PATCH v2 09/11] drm/msm/dsi_phy_14nm: Replace parent names with clk_hw pointers

2022-06-01 Thread Marijn Suijten
parent_hw pointers are easier to manage and cheaper to use than repeatedly formatting the parent name and subsequently leaving the clk framework to perform lookups based on that name. Signed-off-by: Marijn Suijten Reviewed-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/dsi/phy/dsi_phy_14nm.c |

[PATCH v2 08/11] drm/msm/dsi_phy_28nm: Replace parent names with clk_hw pointers

2022-06-01 Thread Marijn Suijten
parent_hw pointers are easier to manage and cheaper to use than repeatedly formatting the parent name and subsequently leaving the clk framework to perform lookups based on that name. Signed-off-by: Marijn Suijten --- drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c | 50 ++ 1

[PATCH v2 07/11] drm/msm/dsi_phy_28nm_8960: Replace parent names with clk_hw pointers

2022-06-01 Thread Marijn Suijten
parent_hw pointers are easier to manage and cheaper to use than repeatedly formatting the parent name and subsequently leaving the clk framework to perform lookups based on that name. Signed-off-by: Marijn Suijten Reviewed-by: Dmitry Baryshkov ---

[PATCH v2 06/11] drm/msm/dsi/phy: Replace hardcoded char-array length with sizeof()

2022-06-01 Thread Marijn Suijten
Now that the last DSI PHY PLL driver (dsi_phy_28nm_8960) has been converted to use a simple stack-local char-array instead of a devm_kzalloc heap allocation we can safely call sizeof() on every string variable (that's now a sized array instead of a pointer) passed into snprintf instead of

[PATCH v2 05/11] drm/msm/dsi_phy_28nm_8960: Use stack memory for temporary clock names

2022-06-01 Thread Marijn Suijten
The clock names formatted into the hw_clk's init structure are only used for the duration of the registration function where they are kstrdup'ed, making it unnecessary to keep the allocations alive for the duration of the device (through devm). Just like the other DSI PHY PLL clock trees, use a

[PATCH v2 04/11] drm/msm/dsi/phy: Reindent and reflow multiline function calls

2022-06-01 Thread Marijn Suijten
Patch 613cbd1da3c9 ("drm/msm/dsi: use devm_clk_*register to registe DSI PHY clocks") introduced the devm_ prefix to clk_hw registration calls, without updating the indentation of the arguments on the following lines. Similarly e55b3fc8 ("drm/msm/dsi: drop PLL accessor functions") moved from

[PATCH v2 03/11] clk: fixed-factor: Introduce *clk_hw_register_fixed_factor_parent_hw()

2022-06-01 Thread Marijn Suijten
Add the devres and non-devres variant of clk_hw_register_fixed_factor_parent_hw() for registering a fixed factor clock with clk_hw parent pointer instead of parent name. Signed-off-by: Marijn Suijten --- drivers/clk/clk-fixed-factor.c | 57 --

[PATCH v2 00/11] drm/msm/dsi_phy: Replace parent names with clk_hw pointers

2022-06-01 Thread Marijn Suijten
As stated in [1] I promised to tackle and send this series. parent_hw pointers are easier to manage and cheaper to use than repeatedly formatting the parent name and subsequently leaving the clk framework to perform lookups based on that name. This series starts out by adding extra constructors

[PATCH v2 01/11] clk: divider: Introduce devm_clk_hw_register_divider_parent_hw()

2022-06-01 Thread Marijn Suijten
Add the devres variant of clk_hw_register_divider_parent_hw() for registering a divider clock with clk_hw parent pointer instead of parent name. Signed-off-by: Marijn Suijten --- include/linux/clk-provider.h | 19 +++ 1 file changed, 19 insertions(+) diff --git

[PATCH v2 02/11] clk: mux: Introduce devm_clk_hw_register_mux_parent_hws()

2022-06-01 Thread Marijn Suijten
Add the devres variant of clk_hw_register_mux_hws() for registering a mux clock with clk_hw parent pointers instead of parent names. Signed-off-by: Marijn Suijten --- include/linux/clk-provider.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/linux/clk-provider.h

Re: [Intel-gfx] [RFC v3 1/3] drm/doc/rfc: VM_BIND feature design document

2022-06-01 Thread Matthew Brost
On Wed, Jun 01, 2022 at 05:25:49PM +0300, Lionel Landwerlin wrote: > On 17/05/2022 21:32, Niranjana Vishwanathapura wrote: > > +VM_BIND/UNBIND ioctl will immediately start binding/unbinding the mapping > > in an > > +async worker. The binding and unbinding will work like a special GPU > >

Re: [PATCH v3] dt-bindings: display: bridge: sil, sii9022: Convert to json-schema

2022-06-01 Thread Rob Herring
On Thu, 19 May 2022 15:41:06 +0200, Geert Uytterhoeven wrote: > Convert the Silicon Image sii902x HDMI bridge Device Tree binding > documentation to json-schema. > > Add missing sil,sii9022-cpi and sil,sii9022-tpi compatible values. > > Signed-off-by: Geert Uytterhoeven > --- > v3: > - Add

Re: [PATCH v4 1/2] dt-bindings: lcdif: Add compatible for i.MX8MP

2022-06-01 Thread Rob Herring
On Thu, 19 May 2022 13:48:48 +0200, Marek Vasut wrote: > Add compatible string for i.MX8MP LCDIF variant. This is called LCDIFv3 > and is completely different from the LCDIFv3 found in i.MX23 in that it > has a completely scrambled register layout compared to all previous LCDIF > variants. The new

[PATCH] drm/i915: Add extra registers to GPU error dump

2022-06-01 Thread Matt Roper
From: Stuart Summers Our internal teams have identified a few additional engine registers that are worth inspecting in error state dumps during development & debug. Let's capture and print them as part of our error dump. For simplicity we'll just dump these registers on gen11 and beyond. Most

Re: [PATCH v3 4/4] drm/bridge: parade-ps8640: Handle DP AUX more properly

2022-06-01 Thread Dmitry Baryshkov
On 10/05/2022 22:29, Douglas Anderson wrote: While it works, for the most part, to assume that the panel has finished probing when devm_of_dp_aux_populate_ep_devices() returns, it's a bit fragile. This is talked about at length in commit a1e3667a9835 ("drm/bridge: ti-sn65dsi86: Promote the AUX

Re: [PATCH v4] drm/probe-helper: Default to 640x480 if no EDID on DP

2022-06-01 Thread Dmitry Baryshkov
On 01/06/2022 21:23, Douglas Anderson wrote: If we're unable to read the EDID for a display because it's corrupt / bogus / invalid then we'll add a set of standard modes for the display. Since we have no true information about the connected display, these modes are essentially guesses but better

Re: [PATCH v3 1/2] drm/probe-helper: Add helper for drm_helper_probe_single_connector_modes()

2022-06-01 Thread Dmitry Baryshkov
On 12/05/2022 01:58, Douglas Anderson wrote: The drm_helper_probe_single_connector_modes() is a bit long. Let's break a chunk off to update and validate modes. This helps avoid one goto and also will allow us to more easily call the helper a second time in a future patch without adding looping

Re: [PATCH v3 2/4] drm/dp: Add callbacks to make using DP AUX bus properly easier

2022-06-01 Thread Dmitry Baryshkov
On 10/05/2022 22:29, Douglas Anderson wrote: As talked about in this patch in the kerneldoc of of_dp_aux_populate_ep_device() and also in the past in commit a1e3667a9835 ("drm/bridge: ti-sn65dsi86: Promote the AUX channel to its own sub-dev"), it can be difficult for eDP controller drivers to

Re: [Intel-gfx] [RFC v3 1/3] drm/doc/rfc: VM_BIND feature design document

2022-06-01 Thread Matthew Brost
On Wed, Jun 01, 2022 at 05:25:49PM +0300, Lionel Landwerlin wrote: > On 17/05/2022 21:32, Niranjana Vishwanathapura wrote: > > +VM_BIND/UNBIND ioctl will immediately start binding/unbinding the mapping > > in an > > +async worker. The binding and unbinding will work like a special GPU > >

Re: [PATCH v3 1/4] drm/dp: Export symbol / kerneldoc fixes for DP AUX bus

2022-06-01 Thread Dmitry Baryshkov
On 10/05/2022 22:29, Douglas Anderson wrote: While working on the DP AUX bus code I found a few small things that should be fixed. Namely the non-devm version of of_dp_aux_populate_ep_devices() was missing an export. There was also an extra blank line in a kerneldoc and a kerneldoc that

Re: [PATCH v2 1/3] dt-bindings: display: add new bus-format property for panel-dpi

2022-06-01 Thread Rob Herring
On Wed, May 18, 2022 at 01:55:38PM +0200, Max Krummenacher wrote: > From: Max Krummenacher > > The property is used to set the enum bus_format and infer the bpc > for a panel defined by 'panel-dpi'. > This specifies how the panel is connected to the display interface. > > Signed-off-by: Max

Re: [Freedreno] [PATCH] drm/msm: less magic numbers in msm_mdss_enable

2022-06-01 Thread Dmitry Baryshkov
On Wed, 1 Jun 2022 at 20:38, Abhinav Kumar wrote: > > > > On 6/1/2022 2:46 AM, Dmitry Baryshkov wrote: > > On Wed, 1 Jun 2022 at 01:01, Abhinav Kumar > > wrote: > >> On 5/31/2022 5:18 AM, Dmitry Baryshkov wrote: > >>> Replace magic register writes in msm_mdss_enable() with version that > >>>

Re: [PATCH v2] drm/msm/dpu: Move min BW request and full BW disable back to mdss

2022-06-01 Thread Dmitry Baryshkov
On Wed, 1 Jun 2022 at 20:18, Abhinav Kumar wrote: > On 6/1/2022 3:04 AM, Dmitry Baryshkov wrote: > > On Wed, 1 Jun 2022 at 02:01, Douglas Anderson wrote: > >> > >> In commit a670ff578f1f ("drm/msm/dpu: always use mdp device to scale > >> bandwidth") we fully moved interconnect stuff to the DPU

Re: [PATCH 0/8] Cleanup use of ddc i2c buses

2022-06-01 Thread Thomas Zimmermann
Hi Patrik Am 01.06.22 um 11:23 schrieb Patrik Jakobsson: The various chips have slight differences in how they handle and store ddc i2c buses. This series tries to put the main i2c adapter for ddc into the drm_connector->ddc pointer. This makes it easier to unify the code for the different

Re: [Freedreno] [PATCH v4] drm/probe-helper: Default to 640x480 if no EDID on DP

2022-06-01 Thread Sean Paul
On Wed, Jun 1, 2022 at 2:23 PM Douglas Anderson wrote: > > If we're unable to read the EDID for a display because it's corrupt / > bogus / invalid then we'll add a set of standard modes for the > display. Since we have no true information about the connected > display, these modes are essentially

[PATCH v2] drm: Don't block HDR_OUTPUT_METADATA on unknown EOTF

2022-06-01 Thread Harry Wentland
The EDID of an HDR display defines EOTFs that are supported by the display and can be set in the HDR metadata infoframe. Userspace is expected to read the EDID and set an appropriate HDR_OUTPUT_METADATA. In drm_parse_hdr_metadata_block the kernel reads the supported EOTFs from the EDID and stores

Re: [PATCH 2/3] dt-bindings: display: Add bindings for ClockworkPi CWD686

2022-06-01 Thread Rob Herring
On Wed, Jun 01, 2022 at 12:17:47AM -0500, Max Fierke wrote: > The CWD686 is a 6.86" IPS LCD panel used as the primary > display in the ClockworkPi DevTerm portable (all cores) > > Signed-off-by: Max Fierke > --- > .../display/panel/clockworkpi,cwd686.yaml | 60 +++ > 1 file

[PATCH v4] drm/probe-helper: Default to 640x480 if no EDID on DP

2022-06-01 Thread Douglas Anderson
If we're unable to read the EDID for a display because it's corrupt / bogus / invalid then we'll add a set of standard modes for the display. Since we have no true information about the connected display, these modes are essentially guesses but better than nothing. At the moment, none of the modes

Re: [Freedreno] [PATCH] drm/msm: less magic numbers in msm_mdss_enable

2022-06-01 Thread Abhinav Kumar
On 6/1/2022 2:46 AM, Dmitry Baryshkov wrote: On Wed, 1 Jun 2022 at 01:01, Abhinav Kumar wrote: On 5/31/2022 5:18 AM, Dmitry Baryshkov wrote: Replace magic register writes in msm_mdss_enable() with version that contains less magic and more variable names that can be traced back to the

Re: [PATCH v2] drm/msm/dpu: Move min BW request and full BW disable back to mdss

2022-06-01 Thread Abhinav Kumar
On 6/1/2022 3:04 AM, Dmitry Baryshkov wrote: On Wed, 1 Jun 2022 at 02:01, Douglas Anderson wrote: In commit a670ff578f1f ("drm/msm/dpu: always use mdp device to scale bandwidth") we fully moved interconnect stuff to the DPU driver. This had no change for sc7180 but _did_ have an impact for

Re: [PATCH v6 3/6] drm: Add driver for Solomon SSD130x OLED displays

2022-06-01 Thread andriy.shevche...@linux.intel.com
On Wed, May 25, 2022 at 09:46:24PM +0200, Javier Martinez Canillas wrote: > On 3/10/22 14:11, Dominik Kierner wrote: ... > > # DRM Mode Configuration via Device Tree > > > > In the old fbdev driver, the display modes are hard-coded, which means > > for every new display configuration, a new

Re: [PATCH v4] dma-buf: Add a capabilities directory

2022-06-01 Thread Christian König
Am 01.06.22 um 18:13 schrieb Simon Ser: To discover support for new DMA-BUF IOCTLs, user-space has no choice but to try to perform the IOCTL on an existing DMA-BUF. However, user-space may want to figure out whether or not the IOCTL is available before it has a DMA-BUF at hand, e.g. at

[PATCH v1 4/4] drm/msm/dpu: move struct dpu_hw_blk definition to dpu_hw_utils.h

2022-06-01 Thread Dmitry Baryshkov
There is little point in having a separate header just for a single opaque struct definition. Drop it now and move the struct to the dpu_hw_util.h header. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.h | 1 - .../drm/msm/disp/dpu1/dpu_encoder_phys_wb.c | 1

[PATCH v1 0/4] drm/msm/dpu: cleanup struct dpu_hw_blk_reg_map

2022-06-01 Thread Dmitry Baryshkov
Cleanup the fields of struct dpu_hw_blk_reg_map, remove unused fields, merge base_off with blk_off into blk_addr. This patch series depends on the patch [1]. [1] https://patchwork.freedesktop.org/patch/488001/?series=104613=1 Dmitry Baryshkov (4): drm/msm/dpu: drop xin_id from struct

[PATCH v1 3/4] drm/msm/dpu: merge base_off with blk_off in struct dpu_hw_blk_reg_map

2022-06-01 Thread Dmitry Baryshkov
There is little point in keeping a separate MDP address and block offset in this struct. Merge them to form a new blk_addr field used for all register access. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c| 3 +--

[PATCH v1 2/4] drm/msm/dpu: drop length from struct dpu_hw_blk_reg_map

2022-06-01 Thread Dmitry Baryshkov
We (nearly) do not use the length field from struct dpu_hw_blk_reg_map, so we can drop it safely. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 1 - drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c | 1 - drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dspp.c | 1

[PATCH v1 1/4] drm/msm/dpu: drop xin_id from struct dpu_hw_blk_reg_map

2022-06-01 Thread Dmitry Baryshkov
Drop the unused field xin_id. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_util.h index 550b2e2b3e34..e8adb118fa85 100644

[PATCH v4] dma-buf: Add a capabilities directory

2022-06-01 Thread Simon Ser
To discover support for new DMA-BUF IOCTLs, user-space has no choice but to try to perform the IOCTL on an existing DMA-BUF. However, user-space may want to figure out whether or not the IOCTL is available before it has a DMA-BUF at hand, e.g. at initialization time in a Wayland compositor. Add a

RE: [PATCH 2/2] procfs: Add 'path' to /proc//fdinfo/

2022-06-01 Thread David Laight
From: Kalesh Singh > Sent: 31 May 2022 23:30 ... > > File paths can contain fun characters like newlines or colons, which > > could make parsing out filenames in this text file... fun. How would your > > userspace parsing logic handle "/home/stephen/filename\nsize:\t4096"? The > > readlink(2) API

[PATCH v1 5/5] drm/msm/dpu: make dpu hardware catalog static const

2022-06-01 Thread Dmitry Baryshkov
Replace superfluous cfg_init functions, which just assign a static config to the struct dpu_mdss_cfg, with static instances of struct dpu_mdss_cfg. Signed-off-by: Dmitry Baryshkov --- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c| 475 --

[PATCH v1 4/5] drm/msm/dpu: constify struct dpu_mdss_cfg

2022-06-01 Thread Dmitry Baryshkov
Mark struct dpu_mdss_cfg instance as a const pointer. This is mostly a preparation for the next patch. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c | 6 +++--- drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.h | 4 ++--

[PATCH v1 2/5] drm/msm/dpu: move VBIF_XINL_QOS_LVL_REMAP size to hw_catalog

2022-06-01 Thread Dmitry Baryshkov
Rather than detecting VBIF_XINL_QOS_LVL_REMAP_000 based on the hwversion, push the offset to the hw_catalog. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 ++ drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 2 ++

[PATCH v1 1/5] drm/msm/dpu: use feature bit for LM combined alpha check

2022-06-01 Thread Dmitry Baryshkov
Rather than checking hwversion, follow the usual patter and add special bit to the lm->features to check whether the LM has combined or separate alpha registers. While we are at it, rename dpu_hw_lm_setup_blend_config_sdm845() to dpu_hw_lm_setup_blend_config_combined_alpha(). Signed-off-by:

[PATCH v1 3/5] drm/msm/dpu: remove hwversion field from data structures

2022-06-01 Thread Dmitry Baryshkov
The driver should not depend on hw revision for detecting features. Instead it should use features from the hw catalog. Drop the hwversion field from struct dpu_mdss_cfg and struct dpu_hw_blk_reg_map. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c| 1 -

[PATCH v1 0/5] drm/msm: clean up the hw catalog init

2022-06-01 Thread Dmitry Baryshkov
Replace superfluous cfg_init functions, which just assign a static config to the struct dpu_mdss_cfg, with static instances of struct dpu_mdss_cfg. Dmitry Baryshkov (5): drm/msm/dpu: use feature bit for LM combined alpha check drm/msm/dpu: move VBIF_XINL_QOS_LVL_REMAP size to hw_catalog

[PATCH v5 3/6] drm/i915/sseu: Simplify gen11+ SSEU handling

2022-06-01 Thread Matt Roper
Although gen11 and gen12 architectures supported the concept of multiple slices, in practice all the platforms that were actually designed only had a single slice (i.e., note the parameters to 'intel_sseu_set_info' that we pass for each platform). We can simplify the code slightly by dropping the

[PATCH v5 5/6] drm/i915/sseu: Disassociate internal subslice mask representation from uapi

2022-06-01 Thread Matt Roper
As with EU masks, it's easier to store subslice/DSS masks internally in a format that's more natural for the driver to work with, and then only covert into the u8[] uapi form when the query ioctl is invoked. Since the hardware design changed significantly with Xe_HP, we'll use a union to choose

[PATCH v5 2/6] drm/i915/xehp: Drop GETPARAM lookups of I915_PARAM_[SUB]SLICE_MASK

2022-06-01 Thread Matt Roper
Slice/subslice/EU information should be obtained via the topology queries provided by the I915_QUERY interface; let's turn off support for the old GETPARAM lookups on Xe_HP and beyond where we can't return meaningful values. The slice mask lookup is meaningless since Xe_HP doesn't support

[PATCH v5 4/6] drm/i915/sseu: Don't try to store EU mask internally in UAPI format

2022-06-01 Thread Matt Roper
Storing the EU mask internally in the same format the I915_QUERY topology queries use makes the final copy_to_user() a bit simpler, but makes the rest of the driver's SSEU more complicated and harder to follow. Let's switch to an internal representation that's more natural: Xe_HP platforms will

[PATCH v5 1/6] drm/i915/xehp: Use separate sseu init function

2022-06-01 Thread Matt Roper
Xe_HP has enough fundamental differences from previous platforms that it makes sense to use a separate SSEU init function to keep things straightforward and easy to understand. We'll also add a has_xehp_dss flag to the SSEU structure that will be used by other upcoming changes. v2: - Add

[PATCH v5 0/6] i915: SSEU handling updates

2022-06-01 Thread Matt Roper
This series reworks i915's internal handling of slice/subslice/EU (SSEU) data to represent platforms like Xe_HP in a more natural manner and to

[PATCH v5 6/6] drm/i915/pvc: Add SSEU changes

2022-06-01 Thread Matt Roper
PVC splits the mask of enabled DSS over two registers. It also changes the meaning of the EU fuse register such that each bit represents a single EU rather than a pair of EUs. Signed-off-by: Matt Roper Acked-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/gt/intel_gt_regs.h | 1 +

Re: [Linaro-mm-sig] Re: [PATCH] dma-fence: allow dma fence to have their own lock

2022-06-01 Thread Christian König
Am 01.06.22 um 16:52 schrieb Sergey Senozhatsky: On (22/06/01 16:38), Christian König wrote: Well, you don't. If you have a dynamic context structure you need to reference count that as well. In other words every time you create a fence in your context you need to increment the reference count

Re: [Linaro-mm-sig] Re: [PATCH 2/2] procfs: Add 'path' to /proc//fdinfo/

2022-06-01 Thread Christian König
Am 01.06.22 um 00:48 schrieb Stephen Brennan: Kalesh Singh writes: On Tue, May 31, 2022 at 3:07 PM Stephen Brennan wrote: On 5/31/22 14:25, Kalesh Singh wrote: In order to identify the type of memory a process has pinned through its open fds, add the file path to fdinfo output. This allows

Re: [Linaro-mm-sig] Re: [PATCH] dma-fence: allow dma fence to have their own lock

2022-06-01 Thread Sergey Senozhatsky
On (22/06/01 16:38), Christian König wrote: > > > Well, you don't. > > > > > > If you have a dynamic context structure you need to reference count that > > > as > > > well. In other words every time you create a fence in your context you > > > need > > > to increment the reference count and

Re: [PATCH v3] drm/v3d/v3d_drv: Fix PM disable depth imbalance

2022-06-01 Thread Thierry Reding
On Wed, Jun 01, 2022 at 09:55:02PM +0800, Miaoqian Lin wrote: > Hi, Daniel > > On 2022/6/1 21:26, Daniel Vetter wrote: > > On Wed, Jun 01, 2022 at 04:20:50PM +0400, Miaoqian Lin wrote: > >> The pm_runtime_enable will increase power disable depth. > >> If the probe fails, we should use

Re: [PATCH v5 5/6] drm/i915/sseu: Disassociate internal subslice mask representation from uapi

2022-06-01 Thread Matt Roper
On Wed, Jun 01, 2022 at 01:48:56PM +0530, Balasubramani Vivekanandan wrote: > On 23.05.2022 13:45, Matt Roper wrote: > > As with EU masks, it's easier to store subslice/DSS masks internally in > > a format that's more natural for the driver to work with, and then only > > covert into the u8[] uapi

Re: [Linaro-mm-sig] Re: [PATCH] dma-fence: allow dma fence to have their own lock

2022-06-01 Thread Christian König
Am 01.06.22 um 16:27 schrieb Sergey Senozhatsky: On (22/06/01 14:45), Christian König wrote: Am 31.05.22 um 04:51 schrieb Sergey Senozhatsky: On (22/05/30 16:55), Christian König wrote: Am 30.05.22 um 16:22 schrieb Sergey Senozhatsky: [SNIP] So the `lock` should have at least same lifespan

Re: [Linaro-mm-sig] Re: [PATCH] dma-fence: allow dma fence to have their own lock

2022-06-01 Thread Sergey Senozhatsky
On (22/06/01 14:45), Christian König wrote: > Am 31.05.22 um 04:51 schrieb Sergey Senozhatsky: > > On (22/05/30 16:55), Christian König wrote: > > > Am 30.05.22 um 16:22 schrieb Sergey Senozhatsky: > > > > [SNIP] > > > > So the `lock` should have at least same lifespan as the DMA fence > > > >

Re: [Intel-gfx] [RFC v3 1/3] drm/doc/rfc: VM_BIND feature design document

2022-06-01 Thread Lionel Landwerlin
On 17/05/2022 21:32, Niranjana Vishwanathapura wrote: +VM_BIND/UNBIND ioctl will immediately start binding/unbinding the mapping in an +async worker. The binding and unbinding will work like a special GPU engine. +The binding and unbinding operations are serialized and will wait on specified

Re: How should "max bpc" and "Colorspace" KMS property work?

2022-06-01 Thread Ville Syrjälä
On Wed, Jun 01, 2022 at 10:21:26AM +0300, Pekka Paalanen wrote: > On Tue, 31 May 2022 20:37:31 +0300 > Ville Syrjälä wrote: > > > On Wed, May 25, 2022 at 01:36:47PM +0300, Pekka Paalanen wrote: > > > On Wed, 25 May 2022 09:23:51 + > > > Simon Ser wrote: > > > > > > > On Wednesday, May

[PATCH AUTOSEL 4.9 11/11] drm: fix EDID struct for old ARM OABI format

2022-06-01 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit 47f15561b69e226bfc034e94ff6dbec51a4662af ] When building the kernel for arm with the "-mabi=apcs-gnu" option, gcc will force alignment of all structures and unions to a word boundary (see also STRUCTURE_SIZE_BOUNDARY and the "-mstructure-size-boundary=XX"

[PATCH AUTOSEL 4.14 14/14] drm: fix EDID struct for old ARM OABI format

2022-06-01 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit 47f15561b69e226bfc034e94ff6dbec51a4662af ] When building the kernel for arm with the "-mabi=apcs-gnu" option, gcc will force alignment of all structures and unions to a word boundary (see also STRUCTURE_SIZE_BOUNDARY and the "-mstructure-size-boundary=XX"

[PATCH AUTOSEL 4.19 15/15] drm: fix EDID struct for old ARM OABI format

2022-06-01 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit 47f15561b69e226bfc034e94ff6dbec51a4662af ] When building the kernel for arm with the "-mabi=apcs-gnu" option, gcc will force alignment of all structures and unions to a word boundary (see also STRUCTURE_SIZE_BOUNDARY and the "-mstructure-size-boundary=XX"

[PATCH AUTOSEL 5.4 20/20] drm: fix EDID struct for old ARM OABI format

2022-06-01 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit 47f15561b69e226bfc034e94ff6dbec51a4662af ] When building the kernel for arm with the "-mabi=apcs-gnu" option, gcc will force alignment of all structures and unions to a word boundary (see also STRUCTURE_SIZE_BOUNDARY and the "-mstructure-size-boundary=XX"

[PATCH AUTOSEL 5.10 26/26] drm: fix EDID struct for old ARM OABI format

2022-06-01 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit 47f15561b69e226bfc034e94ff6dbec51a4662af ] When building the kernel for arm with the "-mabi=apcs-gnu" option, gcc will force alignment of all structures and unions to a word boundary (see also STRUCTURE_SIZE_BOUNDARY and the "-mstructure-size-boundary=XX"

[PATCH AUTOSEL 5.15 37/37] drm: fix EDID struct for old ARM OABI format

2022-06-01 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit 47f15561b69e226bfc034e94ff6dbec51a4662af ] When building the kernel for arm with the "-mabi=apcs-gnu" option, gcc will force alignment of all structures and unions to a word boundary (see also STRUCTURE_SIZE_BOUNDARY and the "-mstructure-size-boundary=XX"

[PATCH AUTOSEL 5.17 48/48] drm: fix EDID struct for old ARM OABI format

2022-06-01 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit 47f15561b69e226bfc034e94ff6dbec51a4662af ] When building the kernel for arm with the "-mabi=apcs-gnu" option, gcc will force alignment of all structures and unions to a word boundary (see also STRUCTURE_SIZE_BOUNDARY and the "-mstructure-size-boundary=XX"

Re: [PATCH 1/2] procfs: Add 'size' to /proc//fdinfo/

2022-06-01 Thread Christian König
Am 31.05.22 um 23:25 schrieb Kalesh Singh: To be able to account the amount of memory a process is keeping pinned by open file descriptors add a 'size' field to fdinfo output. dmabufs fds already expose a 'size' field for this reason, remove this and make it a common field for all fds. This

Re: [PATCH v3] drm/v3d/v3d_drv: Fix PM disable depth imbalance

2022-06-01 Thread Miaoqian Lin
Hi, Daniel On 2022/6/1 21:26, Daniel Vetter wrote: > On Wed, Jun 01, 2022 at 04:20:50PM +0400, Miaoqian Lin wrote: >> The pm_runtime_enable will increase power disable depth. >> If the probe fails, we should use pm_runtime_disable() to balance >> pm_runtime_enable(). >> Also call disable function

[PATCH AUTOSEL 5.18 49/49] drm: fix EDID struct for old ARM OABI format

2022-06-01 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit 47f15561b69e226bfc034e94ff6dbec51a4662af ] When building the kernel for arm with the "-mabi=apcs-gnu" option, gcc will force alignment of all structures and unions to a word boundary (see also STRUCTURE_SIZE_BOUNDARY and the "-mstructure-size-boundary=XX"

Re: [Linaro-mm-sig] Re: [PATCH] dma-fence: allow dma fence to have their own lock

2022-06-01 Thread Christian König
Am 01.06.22 um 15:22 schrieb Daniel Vetter: On Wed, Jun 01, 2022 at 02:45:42PM +0200, Christian König wrote: Am 31.05.22 um 04:51 schrieb Sergey Senozhatsky: On (22/05/30 16:55), Christian König wrote: Am 30.05.22 um 16:22 schrieb Sergey Senozhatsky: [SNIP] So the `lock` should have at least

Re: [Linaro-mm-sig] Re: [PATCH] dma-fence: allow dma fence to have their own lock

2022-06-01 Thread Christian König
Am 30.05.22 um 17:45 schrieb Sergey Senozhatsky: On (22/05/30 16:55), Christian König wrote: If you just want to create a single dma_fence which is also only bound to a single context you can embed the lock into the fence without much problem. See how the dma_fence_array does that for

Re: [GIT PULL] drm/tegra: Preparatory work for v5.19

2022-06-01 Thread Thierry Reding
On Wed, Jun 01, 2022 at 12:03:35PM +0200, Thierry Reding wrote: > Hi Dave, Daniel, > > The following changes since commit cb7e1abc2c73633e1eefa168ab2dad6e838899c9: > > drm/tegra: gem: Do not try to dereference ERR_PTR() (2022-05-06 15:52:49 > +0200) > > are available in the Git repository

Re: [PATCH v3] drm/v3d/v3d_drv: Fix PM disable depth imbalance

2022-06-01 Thread Daniel Vetter
On Wed, Jun 01, 2022 at 04:20:50PM +0400, Miaoqian Lin wrote: > The pm_runtime_enable will increase power disable depth. > If the probe fails, we should use pm_runtime_disable() to balance > pm_runtime_enable(). > Also call disable function in remove function. > > Fixes: 57692c94dcbe ("drm/v3d:

Re: [Linaro-mm-sig] Re: [PATCH] dma-fence: allow dma fence to have their own lock

2022-06-01 Thread Daniel Vetter
On Wed, Jun 01, 2022 at 02:45:42PM +0200, Christian König wrote: > Am 31.05.22 um 04:51 schrieb Sergey Senozhatsky: > > On (22/05/30 16:55), Christian König wrote: > > > Am 30.05.22 um 16:22 schrieb Sergey Senozhatsky: > > > > [SNIP] > > > > So the `lock` should have at least same lifespan as the

Re: [Linaro-mm-sig] Re: [PATCH] dma-fence: allow dma fence to have their own lock

2022-06-01 Thread Christian König
Am 31.05.22 um 04:51 schrieb Sergey Senozhatsky: On (22/05/30 16:55), Christian König wrote: Am 30.05.22 um 16:22 schrieb Sergey Senozhatsky: [SNIP] So the `lock` should have at least same lifespan as the DMA fence that borrows it, which is impossible to guarantee in our case. Nope, that's

Re: [PATCH v3] drm/probe-helper: Make 640x480 first if no EDID

2022-06-01 Thread Daniel Vetter
On Thu, May 26, 2022 at 09:01:03AM -0700, Doug Anderson wrote: > Hi, > > On Thu, May 26, 2022 at 8:42 AM Daniel Vetter wrote: > > > > On Thu, 26 May 2022 at 03:28, Sean Paul wrote: > > > > > > On Wed, May 25, 2022 at 9:26 AM Daniel Vetter wrote: > > > > > > > > On Mon, May 23, 2022 at

[RESEND PATCH] drm/mipi-dsi: Fix error handling in mipi_dsi_device_register_full

2022-06-01 Thread Miaoqian Lin
In mipi_dsi_device_alloc(), it calls device_initialize(>dev); We need to use put_device() instead freeing directly. Fixes: 068a002 ("drm: Add MIPI DSI bus support") Signed-off-by: Miaoqian Lin --- drivers/gpu/drm/drm_mipi_dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v2] dma-buf: Move sysfs work out of DMA-BUF export path

2022-06-01 Thread Daniel Vetter
On Mon, May 30, 2022 at 08:12:16AM +0200, Christian König wrote: > Am 25.05.22 um 23:05 schrieb T.J. Mercier: > > On Wed, May 25, 2022 at 7:38 AM Daniel Vetter wrote: > > > On Tue, May 17, 2022 at 08:13:24AM +0200, Greg Kroah-Hartman wrote: > > > > On Mon, May 16, 2022 at 05:08:05PM -0700, T.J.

Re: [PATCH 02/10] drm/i915/uapi: add probed_cpu_visible_size

2022-06-01 Thread Das, Nirmoy
Acked-by: Nirmoy Das On 5/25/2022 8:43 PM, Matthew Auld wrote: Userspace wants to know the size of CPU visible portion of device local-memory, and on small BAR devices the probed_size is no longer enough. In Vulkan, for example, it would like to know the size in bytes for CPU visible

Re: [RFC PATCH 00/16] drm/rockchip: Rockchip EBC ("E-Book Controller") display driver

2022-06-01 Thread Daniel Vetter
On Tue, May 31, 2022 at 10:58:35AM +0200, Maxime Ripard wrote: > Hi Daniel, > > Thanks for your feedback > > On Wed, May 25, 2022 at 07:18:07PM +0200, Daniel Vetter wrote: > > > > VBLANK Events and Asynchronous Commits > > > > == > > > > When should the VBLANK

  1   2   3   >