Re: [PATCH 1/1] drm/amdgpu: ignore -EPERM error from debugfs

2021-10-05 Thread Christian König
Am 06.10.21 um 08:55 schrieb Lazar, Lijo: On 10/6/2021 12:05 PM, Christian König wrote: Am 06.10.21 um 08:32 schrieb Lazar, Lijo: On 10/6/2021 11:49 AM, Christian König wrote: Am 06.10.21 um 06:51 schrieb Lazar, Lijo: On 10/5/2021 10:15 PM, Christian König wrote: Am 05.10.21 um 15:49 s

Re: [PATCH 8/8] drm/i915: Don't disable interrupts and pretend a lock as been acquired in __timeline_mark_lock().

2021-10-05 Thread Sebastian Andrzej Siewior
On 2021-10-05 21:16:17 [+0200], Peter Zijlstra wrote: > > -static inline void intel_context_mark_active(struct intel_context *ce) > > +static inline void intel_context_mark_active(struct intel_context *ce, > > +bool timeline_mutex_needed) > > { > > - lockd

Re: [PATCH 1/1] drm/amdgpu: ignore -EPERM error from debugfs

2021-10-05 Thread Lazar, Lijo
On 10/6/2021 12:05 PM, Christian König wrote: Am 06.10.21 um 08:32 schrieb Lazar, Lijo: On 10/6/2021 11:49 AM, Christian König wrote: Am 06.10.21 um 06:51 schrieb Lazar, Lijo: On 10/5/2021 10:15 PM, Christian König wrote: Am 05.10.21 um 15:49 schrieb Das, Nirmoy: On 10/5/2021 3:22 PM

Re: [PATCH 1/1] drm/amdgpu: ignore -EPERM error from debugfs

2021-10-05 Thread Christian König
Am 06.10.21 um 08:32 schrieb Lazar, Lijo: On 10/6/2021 11:49 AM, Christian König wrote: Am 06.10.21 um 06:51 schrieb Lazar, Lijo: On 10/5/2021 10:15 PM, Christian König wrote: Am 05.10.21 um 15:49 schrieb Das, Nirmoy: On 10/5/2021 3:22 PM, Christian König wrote: Am 05.10.21 um 15:11 s

Re: [RFC 1/8] sched: Add nice value change notifier

2021-10-05 Thread Wanghui (John)
HI Tvrtko On 2021/10/4 22:36, Tvrtko Ursulin wrote: void set_user_nice(struct task_struct *p, long nice) { bool queued, running; - int old_prio; + int old_prio, ret; struct rq_flags rf; struct rq *rq; @@ -6915,6 +6947,9 @@ void set_user_nice(struct task

Re: [PATCH 1/1] drm/amdgpu: ignore -EPERM error from debugfs

2021-10-05 Thread Lazar, Lijo
On 10/6/2021 11:49 AM, Christian König wrote: Am 06.10.21 um 06:51 schrieb Lazar, Lijo: On 10/5/2021 10:15 PM, Christian König wrote: Am 05.10.21 um 15:49 schrieb Das, Nirmoy: On 10/5/2021 3:22 PM, Christian König wrote: Am 05.10.21 um 15:11 schrieb Nirmoy Das: Debugfs core APIs will

Re: [PATCH 1/1] drm/amdgpu: ignore -EPERM error from debugfs

2021-10-05 Thread Christian König
Am 06.10.21 um 06:51 schrieb Lazar, Lijo: On 10/5/2021 10:15 PM, Christian König wrote: Am 05.10.21 um 15:49 schrieb Das, Nirmoy: On 10/5/2021 3:22 PM, Christian König wrote: Am 05.10.21 um 15:11 schrieb Nirmoy Das: Debugfs core APIs will throw -EPERM when user disables debugfs using CON

Re: [PATCH] drm/ttm_bo_api: update the description for @placement and @sg

2021-10-05 Thread Christian König
Am 05.10.21 um 21:35 schrieb Amos Kong: Correct the argument name of @placement and added @sg description for ttm_bo_init() and ttm_bo_init_reserved(). Argument @flags was replaced to @placement by Jerome in commit 09855acb1c2e3779f25317ec9a8ffe1b1784a4a8 Argument @sg was added by Dave in commi

Re: [PATCH v4 5/7] drm/msm/dp: Support up to 3 DP controllers

2021-10-05 Thread Dmitry Baryshkov
On Wed, 6 Oct 2021 at 07:26, Stephen Boyd wrote: > > Quoting Bjorn Andersson (2021-10-05 19:37:52) > > On Tue 05 Oct 19:06 PDT 2021, Stephen Boyd wrote: > > > > > Quoting Bjorn Andersson (2021-10-05 18:43:16) > > > > On Tue 05 Oct 17:43 PDT 2021, Stephen Boyd wrote: > > > > > > > > > Quoting Bjorn

Re: mmotm 2021-10-05-19-53 uploaded (drivers/gpu/drm/msm/hdmi/hdmi_phy.o)

2021-10-05 Thread Randy Dunlap
On 10/5/21 7:53 PM, a...@linux-foundation.org wrote: The mm-of-the-moment snapshot 2021-10-05-19-53 has been uploaded to https://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: https://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. U

Re: [Freedreno] [PATCH 02/11] drm/msm/disp/dpu1: Add support for DSC

2021-10-05 Thread Vinod Koul
On 02-08-21, 16:03, abhin...@codeaurora.org wrote: > On 2021-07-14 23:51, Vinod Koul wrote: > > Display Stream Compression (DSC) is one of the hw blocks in dpu, so add > > support by adding hw blocks for DSC > > > > Signed-off-by: Vinod Koul > > --- > > Changes since RFC: > > - Drop unused enums

Re: [Freedreno] [PATCH 01/11] drm/msm/dsi: add support for dsc data

2021-10-05 Thread Vinod Koul
Hi Abhinav, On 02-08-21, 15:55, abhin...@codeaurora.org wrote: > > +static int dsi_populate_dsc_params(struct msm_display_dsc_config *dsc) > > +{ > > + int mux_words_size; > > + int groups_per_line, groups_total; > > + int min_rate_buffer_size; > > + int hrd_delay; > > + int pre_num_ext

Re: [PATCH 1/1] drm/amdgpu: ignore -EPERM error from debugfs

2021-10-05 Thread Lazar, Lijo
On 10/5/2021 10:15 PM, Christian König wrote: Am 05.10.21 um 15:49 schrieb Das, Nirmoy: On 10/5/2021 3:22 PM, Christian König wrote: Am 05.10.21 um 15:11 schrieb Nirmoy Das: Debugfs core APIs will throw -EPERM when user disables debugfs using CONFIG_DEBUG_FS_ALLOW_NONE or with kernel par

Re: [PATCH v4 5/7] drm/msm/dp: Support up to 3 DP controllers

2021-10-05 Thread Stephen Boyd
Quoting Bjorn Andersson (2021-10-05 19:37:52) > On Tue 05 Oct 19:06 PDT 2021, Stephen Boyd wrote: > > > Quoting Bjorn Andersson (2021-10-05 18:43:16) > > > On Tue 05 Oct 17:43 PDT 2021, Stephen Boyd wrote: > > > > > > > Quoting Bjorn Andersson (2021-10-05 16:13:21) > > > > > diff --git a/drivers/gp

RE: [PATCH v8] drm/bridge: add it6505 driver

2021-10-05 Thread allen.chen
Hi It has been about two months since I posted v8 Consider this a gentle ping. Just wondering if the set needs additional work and I will fix and upstream again. -Original Message- From: Allen Chen (陳柏宇) Sent: Tuesday, August 10, 2021 7:11 PM Cc: Allen Chen (陳柏宇); Hsin-Yi Wang; Kenneth

Re: [PATCH v4 3/7] drm/msm/dp: Allow specifying connector_type per controller

2021-10-05 Thread Bjorn Andersson
On Tue 05 Oct 19:29 CDT 2021, Stephen Boyd wrote: > Quoting Bjorn Andersson (2021-10-05 16:13:19) > > As the following patches introduced support for multiple DP blocks in a > > platform and some of those block might be eDP it becomes useful to be > > able to specify the connector type per block.

Re: [Freedreno] [PATCH v4 4/7] drm/msm/dp: Allow attaching a drm_panel

2021-10-05 Thread abhinavk
On 2021-10-05 19:09, Bjorn Andersson wrote: On Tue 05 Oct 17:35 PDT 2021, abhin...@codeaurora.org wrote: Hi Bjorn On 2021-10-05 16:13, Bjorn Andersson wrote: > eDP panels might need some power sequencing and backlight management, > so make it possible to associate a drm_panel with an eDP insta

[PATCH v3 5/5] drm/i915: Clarify probing order in intel_dp_aux_init_backlight_funcs()

2021-10-05 Thread Lyude Paul
Hooray! We've managed to hit enough bugs upstream that I've been able to come up with a pretty solid explanation for how backlight controls are actually supposed to be detected and used these days. As well, having the rest of the PWM bits in VESA's backlight interface implemented seems to have fixe

[PATCH v3 4/5] drm/dp, drm/i915: Add support for VESA backlights using PWM for brightness control

2021-10-05 Thread Lyude Paul
Now that we've added support to i915 for controlling panel backlights that need PWM to be enabled/disabled, let's finalize this and add support for controlling brightness levels via PWM as well. This should hopefully put us towards the path of supporting _ALL_ backlights via VESA's DPCD interface w

[PATCH v3 3/5] drm/dp: Disable unsupported features in DP_EDP_BACKLIGHT_MODE_SET_REGISTER

2021-10-05 Thread Lyude Paul
As it turns out, apparently some machines will actually leave additional backlight functionality like dynamic backlight control on before the OS loads. Currently we don't take care to disable unsupported features when writing back the backlight mode, which can lead to some rather strange looking be

[PATCH v3 2/5] drm/nouveau/kms/nv50-: Explicitly check DPCD backlights for aux enable/brightness

2021-10-05 Thread Lyude Paul
Since we don't support hybrid AUX/PWM backlights in nouveau right now, let's add some explicit checks so that we don't break nouveau once we enable support for these backlights in other drivers. Signed-off-by: Lyude Paul --- drivers/gpu/drm/nouveau/nouveau_backlight.c | 5 - 1 file changed,

[PATCH v3 1/5] drm/i915: Add support for panels with VESA backlights with PWM enable/disable

2021-10-05 Thread Lyude Paul
This simply adds proper support for panel backlights that can be controlled via VESA's backlight control protocol, but which also require that we enable and disable the backlight via PWM instead of via the DPCD interface. We also enable this by default, in order to fix some people's backlights that

[PATCH v3 0/5] drm/dp, drm/i915: Finish basic PWM support for VESA backlight helpers

2021-10-05 Thread Lyude Paul
When I originally moved all of the VESA backlight code in i915 into DRM helpers, one of the things I didn't have the hardware or time for testing was machines that used a combination of PWM and DPCD in order to control their backlights. This has since then caused some breakages and resulted in us d

Re: [PATCH v13 06/35] clk: tegra: Support runtime PM and power domain

2021-10-05 Thread Dmitry Osipenko
06.10.2021 01:43, Dmitry Osipenko пишет: > 06.10.2021 01:19, Dmitry Osipenko пишет: > ... >> I reproduced the OFF problem by removing the clk prepare/unprepare from >> the suspend/resume of the clk driver and making some extra changes to >> clock tree topology and etc to trigger the problem on Nexu

Re: [PATCH v4 5/7] drm/msm/dp: Support up to 3 DP controllers

2021-10-05 Thread Bjorn Andersson
On Tue 05 Oct 19:06 PDT 2021, Stephen Boyd wrote: > Quoting Bjorn Andersson (2021-10-05 18:43:16) > > On Tue 05 Oct 17:43 PDT 2021, Stephen Boyd wrote: > > > > > Quoting Bjorn Andersson (2021-10-05 16:13:21) > > > > diff --git a/drivers/gpu/drm/msm/dp/dp_display.c > > > > b/drivers/gpu/drm/msm/dp

Re: [PATCH] drm/edid: In connector_bad_edid() cap num_of_ext by num_blocks read

2021-10-05 Thread Doug Anderson
Hi, On Tue, Oct 5, 2021 at 8:46 AM Ville Syrjälä wrote: > > On Tue, Oct 05, 2021 at 08:10:28AM -0700, Douglas Anderson wrote: > > In commit e11f5bd8228f ("drm: Add support for DP 1.4 Compliance edid > > corruption test") the function connector_bad_edid() started assuming > > that the memory for t

[PATCH v2] drm/edid: In connector_bad_edid() cap num_of_ext by num_blocks read

2021-10-05 Thread Douglas Anderson
In commit e11f5bd8228f ("drm: Add support for DP 1.4 Compliance edid corruption test") the function connector_bad_edid() started assuming that the memory for the EDID passed to it was big enough to hold `edid[0x7e] + 1` blocks of data (1 extra for the base block). It completely ignored the fact tha

Re: [RFC] drm/msm/dp: Allow attaching a drm_panel

2021-10-05 Thread Bjorn Andersson
On Tue 05 Oct 16:09 PDT 2021, Doug Anderson wrote: > Hi, > > On Tue, Oct 5, 2021 at 10:33 AM Bjorn Andersson > wrote: > > > > On Tue 05 Oct 08:39 PDT 2021, Doug Anderson wrote: > > > > > Hi, > > > > > > On Mon, Oct 4, 2021 at 6:09 PM Bjorn Andersson > > > wrote: > > > > > > > > On Mon 04 Oct 17

Re: [PATCH] drm/edid: Fix crash with zero/invalid EDID

2021-10-05 Thread Doug Anderson
Hi, On Tue, Oct 5, 2021 at 9:43 AM Ville Syrjälä wrote: > > On Mon, Oct 04, 2021 at 09:21:27AM -0700, Douglas Anderson wrote: > > In the commit bac9c2948224 ("drm/edid: Break out reading block 0 of > > the EDID") I broke out reading the base block of the EDID to its own > > function. Unfortunatel

Re: [PATCH] drm/msm/dp: Shorten SETUP timeout

2021-10-05 Thread Bjorn Andersson
On Tue 05 Oct 16:04 PDT 2021, khs...@codeaurora.org wrote: > On 2021-10-05 15:36, Stephen Boyd wrote: > > Quoting Bjorn Andersson (2021-10-05 14:40:38) > > > On Tue 05 Oct 11:45 PDT 2021, Stephen Boyd wrote: > > > > > > > Quoting Bjorn Andersson (2021-10-04 19:37:50) > > > > > Found in the middle

Re: [Freedreno] [PATCH v4 4/7] drm/msm/dp: Allow attaching a drm_panel

2021-10-05 Thread Bjorn Andersson
On Tue 05 Oct 17:35 PDT 2021, abhin...@codeaurora.org wrote: > Hi Bjorn > > On 2021-10-05 16:13, Bjorn Andersson wrote: > > eDP panels might need some power sequencing and backlight management, > > so make it possible to associate a drm_panel with an eDP instance and > > prepare and enable the pa

Re: [PATCH v4 5/7] drm/msm/dp: Support up to 3 DP controllers

2021-10-05 Thread Stephen Boyd
Quoting Bjorn Andersson (2021-10-05 18:43:16) > On Tue 05 Oct 17:43 PDT 2021, Stephen Boyd wrote: > > > Quoting Bjorn Andersson (2021-10-05 16:13:21) > > > diff --git a/drivers/gpu/drm/msm/dp/dp_display.c > > > b/drivers/gpu/drm/msm/dp/dp_display.c > > > index bdaf227f05dc..674cddfee5b0 100644 > >

Re: [PATCH v4 5/7] drm/msm/dp: Support up to 3 DP controllers

2021-10-05 Thread Bjorn Andersson
On Tue 05 Oct 17:43 PDT 2021, Stephen Boyd wrote: > Quoting Bjorn Andersson (2021-10-05 16:13:21) > > diff --git a/drivers/gpu/drm/msm/dp/dp_display.c > > b/drivers/gpu/drm/msm/dp/dp_display.c > > index bdaf227f05dc..674cddfee5b0 100644 > > --- a/drivers/gpu/drm/msm/dp/dp_display.c > > +++ b/driv

Re: [PATCH v2 3/3] drm/bridge: ti-sn65dsi86: Add NO_CONNECTOR support

2021-10-05 Thread Laurent Pinchart
Hi Doug, On Fri, Oct 01, 2021 at 11:02:54AM -0700, Doug Anderson wrote: > On Thu, Sep 23, 2021 at 7:26 PM Laurent Pinchart wrote: > > > > > > > err_conn_init: > > > > > drm_dp_aux_unregister(&pdata->aux); > > > > > return ret; > > > > > @@ -792,9 +790,30 @@ static void ti_sn_bridge_se

Re: [PATCH v4 5/7] drm/msm/dp: Support up to 3 DP controllers

2021-10-05 Thread Stephen Boyd
Quoting Bjorn Andersson (2021-10-05 16:13:21) > diff --git a/drivers/gpu/drm/msm/dp/dp_display.c > b/drivers/gpu/drm/msm/dp/dp_display.c > index bdaf227f05dc..674cddfee5b0 100644 > --- a/drivers/gpu/drm/msm/dp/dp_display.c > +++ b/drivers/gpu/drm/msm/dp/dp_display.c > @@ -79,6 +79,8 @@ struct dp_d

Re: [PATCH v4 7/7] drm/msm/dp: Add sc8180x DP controllers

2021-10-05 Thread Stephen Boyd
Quoting Bjorn Andersson (2021-10-05 16:13:23) > The sc8180x has 2 DP and 1 eDP controllers, add support for these to the > DP driver. > > Signed-off-by: Bjorn Andersson > --- > > Changes since v3: > - Rebased upon previous patches in series > > drivers/gpu/drm/msm/dp/dp_display.c | 11 +++

Re: [Freedreno] [PATCH v4 4/7] drm/msm/dp: Allow attaching a drm_panel

2021-10-05 Thread abhinavk
Hi Bjorn On 2021-10-05 16:13, Bjorn Andersson wrote: eDP panels might need some power sequencing and backlight management, so make it possible to associate a drm_panel with an eDP instance and prepare and enable the panel accordingly. Now that we know which hardware instance is DP and which is

Re: [PATCH v4 3/7] drm/msm/dp: Allow specifying connector_type per controller

2021-10-05 Thread Stephen Boyd
Quoting Bjorn Andersson (2021-10-05 16:13:19) > diff --git a/drivers/gpu/drm/msm/dp/dp_display.c > b/drivers/gpu/drm/msm/dp/dp_display.c > index 5d3ee5ef07c2..eaf08f9e7d87 100644 > --- a/drivers/gpu/drm/msm/dp/dp_display.c > +++ b/drivers/gpu/drm/msm/dp/dp_display.c > @@ -115,8 +115,25 @@ struct d

Re: [PATCH v4 3/7] drm/msm/dp: Allow specifying connector_type per controller

2021-10-05 Thread Stephen Boyd
Quoting Bjorn Andersson (2021-10-05 16:13:19) > As the following patches introduced support for multiple DP blocks in a > platform and some of those block might be eDP it becomes useful to be > able to specify the connector type per block. > > Although there's only a single block at this point, the

Re: [PATCH v4 3/7] drm/msm/dp: Allow specifying connector_type per controller

2021-10-05 Thread Stephen Boyd
Quoting Bjorn Andersson (2021-10-05 16:13:19) > diff --git a/drivers/gpu/drm/msm/dp/dp_display.c > b/drivers/gpu/drm/msm/dp/dp_display.c > index 5d3ee5ef07c2..eaf08f9e7d87 100644 > --- a/drivers/gpu/drm/msm/dp/dp_display.c > +++ b/drivers/gpu/drm/msm/dp/dp_display.c > @@ -115,8 +115,25 @@ struct d

Re: [PATCH 6/6] drm: vkms: Refactor the plane composer to accept new formats

2021-10-05 Thread kernel test robot
Hi Igor, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.15-rc3 next-20210922] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in htt

Re: [PATCH] drm/msm/dp: Shorten SETUP timeout

2021-10-05 Thread Stephen Boyd
Quoting khs...@codeaurora.org (2021-10-05 16:04:40) > On 2021-10-05 15:36, Stephen Boyd wrote: > > Quoting Bjorn Andersson (2021-10-05 14:40:38) > >> On Tue 05 Oct 11:45 PDT 2021, Stephen Boyd wrote: > >> > >> > Quoting Bjorn Andersson (2021-10-04 19:37:50) > >> > > Found in the middle of a patch f

Re: [PATCH] drm/i915/pmu: Connect engine busyness stats from GuC to pmu

2021-10-05 Thread Matthew Brost
On Tue, Oct 05, 2021 at 10:47:11AM -0700, Umesh Nerlige Ramappa wrote: > With GuC handling scheduling, i915 is not aware of the time that a > context is scheduled in and out of the engine. Since i915 pmu relies on > this info to provide engine busyness to the user, GuC shares this info > with i915

Re: [PATCH 6/6] drm: vkms: Refactor the plane composer to accept new formats

2021-10-05 Thread kernel test robot
Hi Igor, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.15-rc3 next-20210922] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documente

[PATCH v4 5/7] drm/msm/dp: Support up to 3 DP controllers

2021-10-05 Thread Bjorn Andersson
Based on the removal of the g_dp_display and the movement of the priv->dp lookup into the DP code it's now possible to have multiple DP instances. In line with the other controllers in the MSM driver, introduce a per-compatible list of base addresses which is used to resolve the "instance id" for

[PATCH v4 7/7] drm/msm/dp: Add sc8180x DP controllers

2021-10-05 Thread Bjorn Andersson
The sc8180x has 2 DP and 1 eDP controllers, add support for these to the DP driver. Signed-off-by: Bjorn Andersson --- Changes since v3: - Rebased upon previous patches in series drivers/gpu/drm/msm/dp/dp_display.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/dr

[PATCH v4 6/7] dt-bindings: msm/dp: Add SC8180x compatibles

2021-10-05 Thread Bjorn Andersson
The Qualcomm SC8180x has 2 DP controllers and 1 eDP controller, add compatibles for these to the msm/dp binding. Reviewed-by: Abhinav Kumar Reviewed-by: Stephen Boyd Signed-off-by: Bjorn Andersson --- Changes since v3: - None .../devicetree/bindings/display/msm/dp-controller.yaml |

[PATCH v4 4/7] drm/msm/dp: Allow attaching a drm_panel

2021-10-05 Thread Bjorn Andersson
eDP panels might need some power sequencing and backlight management, so make it possible to associate a drm_panel with an eDP instance and prepare and enable the panel accordingly. Now that we know which hardware instance is DP and which is eDP, parser->parse() is passed the connector_type and th

[PATCH v4 3/7] drm/msm/dp: Allow specifying connector_type per controller

2021-10-05 Thread Bjorn Andersson
As the following patches introduced support for multiple DP blocks in a platform and some of those block might be eDP it becomes useful to be able to specify the connector type per block. Although there's only a single block at this point, the array of descs and the search in dp_display_get_desc()

[PATCH v4 2/7] drm/msm/dp: Modify prototype of encoder based API

2021-10-05 Thread Bjorn Andersson
Functions in the DisplayPort code that relates to individual instances (encoders) are passed both the struct msm_dp and the struct drm_encoder. But in a situation where multiple DP instances would exist this means that the caller need to resolve which struct msm_dp relates to the struct drm_encoder

[PATCH v4 1/7] drm/msm/dp: Remove global g_dp_display variable

2021-10-05 Thread Bjorn Andersson
As the Qualcomm DisplayPort driver only supports a single instance of the driver the commonly used struct dp_display is kept in a global variable. As we introduce additional instances this obviously doesn't work. Replace this with a combination of existing references to adjacent objects and drvdat

[PATCH v4 0/5] drm/msm/dp: Support multiple DP instances and add sc8180x

2021-10-05 Thread Bjorn Andersson
The current implementation supports a single DP instance and the DPU code will only match it against INTF_DP instance 0. These patches extends this to allow multiple DP instances and support for matching against DP instances beyond 0. With that in place add SC8180x DP and eDP controllers. Bjorn A

Re: [PATCH v3 0/9] Add 4 Jenson simple panels

2021-10-05 Thread Giulio Benetti
Hello All, kindly pinging this patchset, I've forgotten to set it Unarchived, now it is: https://patchwork.kernel.org/project/dri-devel/list/?series=459931 Best regards -- Giulio Benetti Benetti Engineering sas On 5/2/21 10:50 PM, Giulio Benetti wrote: Hello Thierry, I've seen that this pat

Re: [RFC] drm/msm/dp: Allow attaching a drm_panel

2021-10-05 Thread Doug Anderson
Hi, On Tue, Oct 5, 2021 at 10:33 AM Bjorn Andersson wrote: > > On Tue 05 Oct 08:39 PDT 2021, Doug Anderson wrote: > > > Hi, > > > > On Mon, Oct 4, 2021 at 6:09 PM Bjorn Andersson > > wrote: > > > > > > On Mon 04 Oct 17:36 PDT 2021, Doug Anderson wrote: > > > > > > > Hi, > > > > > > > > On Fri, O

Re: [PATCH] drm/msm/dp: Shorten SETUP timeout

2021-10-05 Thread khsieh
On 2021-10-05 15:36, Stephen Boyd wrote: Quoting Bjorn Andersson (2021-10-05 14:40:38) On Tue 05 Oct 11:45 PDT 2021, Stephen Boyd wrote: > Quoting Bjorn Andersson (2021-10-04 19:37:50) > > Found in the middle of a patch from Sankeerth was the reduction of the > > INIT_SETUP timeout from 10s to

Re: [PATCH v5 3/7] dt-bindings: display: Add ingenic, jz4780-dw-hdmi DT Schema

2021-10-05 Thread Rob Herring
On Tue, 05 Oct 2021 14:29:15 +0200, H. Nikolaus Schaller wrote: > From: Sam Ravnborg > > Add DT bindings for the hdmi driver for the Ingenic JZ4780 SoC. > Based on .txt binding from Zubair Lutfullah Kakakhel > > Signed-off-by: Sam Ravnborg > Signed-off-by: H. Nikolaus Schaller > Cc: Rob Herrin

Re: [PATCH v13 06/35] clk: tegra: Support runtime PM and power domain

2021-10-05 Thread Dmitry Osipenko
06.10.2021 01:19, Dmitry Osipenko пишет: ... > I reproduced the OFF problem by removing the clk prepare/unprepare from > the suspend/resume of the clk driver and making some extra changes to > clock tree topology and etc to trigger the problem on Nexus 7. > > tegra-pmc 7000e400.pmc: failed to turn

Re: [pull] drm/msm: drm-msm-fixes-2021-10-05 for v5.15-rc5

2021-10-05 Thread Rob Clark
+ dri-devel, sorry hit 'send' too quickly On Tue, Oct 5, 2021 at 3:45 PM Rob Clark wrote: > > Hi Dave & Daniel, > > A few fixes for v5.15: > > * Fix a new crash on dev file close if the dev file was opened when > GPU is not loaded (such as missing fw in initrd) > * Switch to single drm_sched_en

Re: [PATCH] drm/msm/dp: Shorten SETUP timeout

2021-10-05 Thread Stephen Boyd
Quoting Bjorn Andersson (2021-10-05 14:40:38) > On Tue 05 Oct 11:45 PDT 2021, Stephen Boyd wrote: > > > Quoting Bjorn Andersson (2021-10-04 19:37:50) > > > Found in the middle of a patch from Sankeerth was the reduction of the > > > INIT_SETUP timeout from 10s to 100ms. Upon INIT_SETUP timeout the

Re: [PATCH 6/6] drm: vkms: Refactor the plane composer to accept new formats

2021-10-05 Thread kernel test robot
Hi Igor, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.15-rc3 next-20210922] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in htt

Re: [PATCH v13 06/35] clk: tegra: Support runtime PM and power domain

2021-10-05 Thread Dmitry Osipenko
05.10.2021 16:10, Ulf Hansson пишет: > On Sat, 2 Oct 2021 at 22:44, Dmitry Osipenko wrote: >> >> 01.10.2021 15:32, Ulf Hansson пишет: +static __maybe_unused int tegra_clock_pm_suspend(struct device *dev) +{ + struct tegra_clk_device *clk_dev = dev_get_drvdata(dev); +

Re: [PATCH v5 5/7] MIPS: DTS: jz4780: Account for Synopsys HDMI driver and LCD controllers

2021-10-05 Thread Paul Cercueil
Hi Paul, Le mar., oct. 5 2021 at 23:44:12 +0200, Paul Boddie a écrit : On Tuesday, 5 October 2021 22:50:12 CEST Paul Cercueil wrote: Hi Nikolaus & Paul, Le mar., oct. 5 2021 at 14:29:17 +0200, H. Nikolaus Schaller a écrit : > > diff --git a/arch/mips/boot/dts/ingenic/jz4780.dtsi > b/

Re: [PATCH v5 5/7] MIPS: DTS: jz4780: Account for Synopsys HDMI driver and LCD controllers

2021-10-05 Thread Paul Boddie
On Tuesday, 5 October 2021 22:50:12 CEST Paul Cercueil wrote: > Hi Nikolaus & Paul, > > Le mar., oct. 5 2021 at 14:29:17 +0200, H. Nikolaus Schaller a écrit : > > > > diff --git a/arch/mips/boot/dts/ingenic/jz4780.dtsi > > b/arch/mips/boot/dts/ingenic/jz4780.dtsi > > index 9e34f433b9b5..c3c18a5

Re: [RFC PATCH 00/17] drm: bridge: Samsung MIPI DSIM bridge

2021-10-05 Thread Tim Harvey
On Sun, Jul 25, 2021 at 10:14 AM Jagan Teki wrote: > > Hi Sam, > > On Sun, Jul 25, 2021 at 10:35 PM Sam Ravnborg wrote: > > > > Hi Jagan, > > > > On Sun, Jul 04, 2021 at 02:32:13PM +0530, Jagan Teki wrote: > > > This series supports common bridge support for Samsung MIPI DSIM > > > which is used

Re: [PATCH] drm/msm/dp: Shorten SETUP timeout

2021-10-05 Thread Bjorn Andersson
On Tue 05 Oct 11:45 PDT 2021, Stephen Boyd wrote: > Quoting Bjorn Andersson (2021-10-04 19:37:50) > > Found in the middle of a patch from Sankeerth was the reduction of the > > INIT_SETUP timeout from 10s to 100ms. Upon INIT_SETUP timeout the host > > is initalized and HPD interrupt start to be se

Re: [PATCH v1 1/3] string: Consolidate yesno() helpers under string.h hood

2021-10-05 Thread Lucas De Marchi
On Mon, Feb 15, 2021 at 04:21:35PM +0200, Andy Shevchenko wrote: We have already few similar implementation and a lot of code that can benefit of the yesno() helper. Consolidate yesno() helpers under string.h hood. I was taking a look on i915_utils.h to reduce it and move some of it elsewhere

Re: [PATCH] drm/nouveau/svm: Fix refcount leak bug and missing check against null bug

2021-10-05 Thread Karol Herbst
I think it makes sense to add a Fixes tag to this: Fixes: 822cab6150d3 ("drm/nouveau/svm: check for SVM initialized before migrating") Reviewed-by: Karol Herbst On Tue, Sep 7, 2021 at 3:20 PM Chenyuan Mi wrote: > > The reference counting issue happens in one exception handling path of > nouveau

Re: [Freedreno] [PATCH v3 4/5] drm/msm/dp: Store each subblock in the io region

2021-10-05 Thread abhinavk
On 2021-10-01 10:43, Bjorn Andersson wrote: Not all platforms has DP_P0 at offset 0x1000 from the beginning of the DP block. So split the dss_io_data memory region into a set of sub-regions, to make it possible in the next patch to specify each of the sub-regions individually. Reviewed-by: Steph

Re: Questions over DSI within DRM.

2021-10-05 Thread Andrzej Hajda
On 05.10.2021 17:32, Dave Stevenson wrote: Hi Andrzej Thanks for joining in the discussion. On Tue, 5 Oct 2021 at 16:08, Andrzej Hajda wrote: On 05.10.2021 13:23, Dave Stevenson wrote: Hi Laurent On Sun, 3 Oct 2021 at 15:16, Laurent Pinchart wrote: Hello, Reviving a bit of an old threa

Re: [Freedreno] [PATCH v3 3/5] drm/msm/dp: Refactor ioremap wrapper

2021-10-05 Thread abhinavk
On 2021-10-01 10:43, Bjorn Andersson wrote: In order to deal with multiple memory ranges in the following commit change the ioremap wrapper to not poke directly into the dss_io_data struct. While at it, devm_ioremap_resource() already prints useful error messages on failure, so omit the unnecess

Re: [Freedreno] [PATCH v3 1/5] dt-bindings: msm/dp: Change reg definition

2021-10-05 Thread abhinavk
On 2021-10-01 10:43, Bjorn Andersson wrote: reg was defined as one region covering the entire DP block, but the memory map is actually split in 4 regions and obviously the size of these regions differs between platforms. Switch the reg to require that all four regions are specified instead. It i

Re: [PATCH v5 5/7] MIPS: DTS: jz4780: Account for Synopsys HDMI driver and LCD controllers

2021-10-05 Thread Paul Cercueil
Hi Nikolaus & Paul, Le mar., oct. 5 2021 at 14:29:17 +0200, H. Nikolaus Schaller a écrit : From: Paul Boddie A specialisation of the generic Synopsys HDMI driver is employed for JZ4780 HDMI support. This requires a new driver, plus device tree and configuration modifications. Signed-off-

Re: [PATCH v5 3/7] dt-bindings: display: Add ingenic,jz4780-dw-hdmi DT Schema

2021-10-05 Thread Paul Cercueil
Hi Nikolaus, Le mar., oct. 5 2021 at 14:29:15 +0200, H. Nikolaus Schaller a écrit : From: Sam Ravnborg Add DT bindings for the hdmi driver for the Ingenic JZ4780 SoC. Based on .txt binding from Zubair Lutfullah Kakakhel Signed-off-by: Sam Ravnborg Signed-off-by: H. Nikolaus Schaller Cc: R

Re: [Intel-gfx] [PATCH v2 0/4] drm/dp, drm/i915: Finish basic PWM support for VESA backlight helpers

2021-10-05 Thread Lyude Paul
On Sat, 2021-10-02 at 11:14 +0200, Hans de Goede wrote: > Hi Lyude, > > On 10/2/21 12:53 AM, Lyude Paul wrote: > > When I originally moved all of the VESA backlight code in i915 into DRM > > helpers, one of the things I didn't have the hardware or time for > > testing was machines that used a comb

[PATCH 10/10] drm/i915: Add privacy-screen support (v3)

2021-10-05 Thread Hans de Goede
Add support for eDP panels with a built-in privacy screen using the new drm_privacy_screen class. Changes in v3: - Move drm_privacy_screen_get() call to intel_ddi_init_dp_connector() Changes in v2: - Call drm_connector_update_privacy_screen() from intel_enable_ddi_dp() / intel_ddi_update_pipe_d

[PATCH 09/10] drm/i915: Add intel_modeset_probe_defer() helper

2021-10-05 Thread Hans de Goede
The upcoming privacy-screen support adds another check for deferring probe till some other drivers have bound first. Factor out the current vga_switcheroo_client_probe_defer() check into an intel_modeset_probe_defer() helper, so that further probe-deferral checks can be added there. Reviewed-by:

[PATCH 08/10] platform/x86: thinkpad_acpi: Register a privacy-screen device

2021-10-05 Thread Hans de Goede
Register a privacy-screen device on laptops with a privacy-screen, this exports the PrivacyGuard features to user-space using a standardized vendor-agnostic sysfs interface. Note the sysfs interface is read-only. Registering a privacy-screen device with the new privacy-screen class code will also

[PATCH 07/10] platform/x86: thinkpad_acpi: Get privacy-screen / lcdshadow ACPI handles only once

2021-10-05 Thread Hans de Goede
Get the privacy-screen / lcdshadow ACPI handles once and cache them, instead of retrieving them every time we need them. Reviewed-by: Emil Velikov Reviewed-by: Lyude Paul Signed-off-by: Hans de Goede --- drivers/platform/x86/thinkpad_acpi.c | 18 -- 1 file changed, 8 insertions

[PATCH 06/10] platform/x86: thinkpad_acpi: Add hotkey_notify_extended_hotkey() helper

2021-10-05 Thread Hans de Goede
Factor the extended hotkey handling out of hotkey_notify_hotkey() and into a new hotkey_notify_extended_hotkey() helper. This is a preparation patch for adding support the privacy-screen hotkey toggle (which needs some special handling, it should NOT send an evdev key-event to userspace...). Revi

[PATCH 05/10] drm/connector: Add a drm_connector privacy-screen helper functions (v2)

2021-10-05 Thread Hans de Goede
Add 2 drm_connector privacy-screen helper functions: 1. drm_connector_attach_privacy_screen_provider(), this function creates and attaches the standard privacy-screen properties and registers a generic notifier for generating sysfs-connector-status-events on external changes to the privacy-screen

[PATCH 04/10] drm/privacy-screen: Add notifier support (v2)

2021-10-05 Thread Hans de Goede
Add support for privacy-screen consumers to register a notifier to be notified of external (e.g. done by the hw itself on a hotkey press) state changes. Changes in v2: - Drop WARN_ON(mutex_is_locked(&priv->lock)) check in drm_privacy_screen_call_notifier_chain() it may be locked by another thr

[PATCH 03/10] drm/privacy-screen: Add X86 specific arch init code

2021-10-05 Thread Hans de Goede
Add X86 specific arch init code, which fills the privacy-screen lookup table by checking for various vendor specific ACPI interfaces for controlling the privacy-screen. This initial version only checks for the Lenovo Thinkpad specific ACPI methods for privacy-screen control. Reviewed-by: Emil Vel

[PATCH 02/10] drm: Add privacy-screen class (v4)

2021-10-05 Thread Hans de Goede
On some new laptops the LCD panel has a builtin electronic privacy-screen. We want to export this functionality as a property on the drm connector object. But often this functionality is not exposed on the GPU but on some other (ACPI) device. This commit adds a privacy-screen class allowing the dr

[PATCH 01/10] drm/connector: Add support for privacy-screen properties (v4)

2021-10-05 Thread Hans de Goede
From: Rajat Jain Add support for generic electronic privacy screen properties, that can be added by systems that have an integrated EPS. Changes in v2 (Hans de Goede) - Create 2 properties, "privacy-screen sw-state" and "privacy-screen hw-state", to deal with devices where the OS might be lo

[PATCH 00/10] drm: Add privacy-screen class and connector properties

2021-10-05 Thread Hans de Goede
Hi all, Here is a new version of my privacy-screen series, addressing the review-remark from Ville on patch 10/10 from the version posted on October 2nd. This new version contains the following changes: - drm/i915: Add privacy-screen support (v3) - Move drm_privacy_screen_get() call to intel_ddi

Re: [PATCH v5 2/7] drm/ingenic: Add support for JZ4780 and HDMI output

2021-10-05 Thread Paul Cercueil
Hi Nikolaus, Le mar., oct. 5 2021 at 14:29:14 +0200, H. Nikolaus Schaller a écrit : From: Paul Boddie Add support for the LCD controller present on JZ4780 SoCs. This SoC uses 8-byte descriptors which extend the current 4-byte descriptors used for other Ingenic SoCs. Tested on MIPS Creator C

Re: [Freedreno] [PATCH v3 5/5] drm/msm/dp: Add sc8180x DP controllers

2021-10-05 Thread abhinavk
On 2021-10-01 11:00, Bjorn Andersson wrote: The sc8180x has 2 DP and 1 eDP controllers, add support for these to the DP driver. Reviewed-by: Stephen Boyd Signed-off-by: Bjorn Andersson Reviewed-by: Abhinav Kumar --- Changes since v2: - None drivers/gpu/drm/msm/dp/dp_display.c | 7 ++

Re: [PATCH v3 4/5] dt-bindings: msm/dp: Add SC8180x compatibles

2021-10-05 Thread abhinavk
On 2021-10-01 11:00, Bjorn Andersson wrote: The Qualcomm SC8180x has 2 DP controllers and 1 eDP controller, add compatibles for these to the msm/dp binding. Reviewed-by: Stephen Boyd Signed-off-by: Bjorn Andersson Reviewed-by: Abhinav Kumar --- Changes since v2: - None .../devicetree/bin

Re: [Freedreno] [PATCH v3 3/5] drm/msm/dp: Support up to 3 DP controllers

2021-10-05 Thread abhinavk
On 2021-10-05 13:16, abhin...@codeaurora.org wrote: On 2021-10-01 11:00, Bjorn Andersson wrote: Based on the removal of the g_dp_display and the movement of the priv->dp lookup into the DP code it's now possible to have multiple DP instances. In line with the other controllers in the MSM driver

[PATCH 6/6] drm: vkms: Refactor the plane composer to accept new formats

2021-10-05 Thread Igor Matheus Andrade Torrente
Currently the blend function only accepts XRGB_ and ARGB_ as a color input. This patch refactors all the functions related to the plane composition to overcome this limitation. Now the blend function receives a format handler to each plane and a blend function pointer. It will take two AR

[PATCH 5/6] drm: vkms: Prepare `vkms_wb_encoder_atomic_check` to accept multiple formats

2021-10-05 Thread Igor Matheus Andrade Torrente
Currently, the vkms atomic check only goes through the first position of the `vkms_wb_formats` vector. This change prepares the atomic_check to check the entire vector. Signed-off-by: Igor Matheus Andrade Torrente --- drivers/gpu/drm/vkms/vkms_writeback.c | 11 ++- 1 file changed, 10 in

[PATCH 4/6] drm: vkms: Add fb information to `vkms_writeback_job`

2021-10-05 Thread Igor Matheus Andrade Torrente
This commit is the groundwork to introduce new formats to the planes and writeback buffer. As part of it, a new buffer metadata field is added to `vkms_writeback_job`, this metadata is represented by the `vkms_composer` struct. This will allow us, in the future, to have different compositing and w

[PATCH 3/6] drm: vkms: Replace hardcoded value of `vkms_composer.map` to DRM_FORMAT_MAX_PLANES

2021-10-05 Thread Igor Matheus Andrade Torrente
The `map` vector at `vkms_composer` uses a hardcoded value to define its size. If someday the maximum number of planes increases, this hardcoded value can be a problem. This value is being replaced with the DRM_FORMAT_MAX_PLANES macro. Signed-off-by: Igor Matheus Andrade Torrente --- drivers/g

[PATCH 2/6] drm: vkms: Alloc the compose frame using vzalloc

2021-10-05 Thread Igor Matheus Andrade Torrente
Currently, the memory to the composition frame is being allocated using the kzmalloc. This comes with the limitation of maximum size of one page size(which in the x86_64 is 4Kb and 4MB for default and hugepage respectively). Somes test of igt (e.g. kms_plane@pixel-format) uses more than 4MB when t

[PATCH 1/6] drm: vkms: Replace the deprecated drm_mode_config_init

2021-10-05 Thread Igor Matheus Andrade Torrente
The `drm_mode_config_init` was deprecated since c3b790e commit, and it's being replaced by the `drmm_mode_config_init`. Signed-off-by: Igor Matheus Andrade Torrente --- drivers/gpu/drm/vkms/vkms_drv.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vkms/vk

[PATCH 0/6] Refactor the vkms to accept new formats

2021-10-05 Thread Igor Matheus Andrade Torrente
Summary === This series of patches refactor some vkms components in order to introduce new formats to the planes and writeback connector. Now in the blend function, the plane's pixels are converted to ARGB16161616 and then blended together. The CRC is calculated based on the ARGB1616161616 bu

Re: [Freedreno] [PATCH v3 3/5] drm/msm/dp: Support up to 3 DP controllers

2021-10-05 Thread abhinavk
On 2021-10-01 11:00, Bjorn Andersson wrote: Based on the removal of the g_dp_display and the movement of the priv->dp lookup into the DP code it's now possible to have multiple DP instances. In line with the other controllers in the MSM driver, introduce a per-compatible list of base addresses w

Re: [Freedreno] [PATCH v3 2/5] drm/msm/dp: Modify prototype of encoder based API

2021-10-05 Thread abhinavk
On 2021-10-01 11:00, Bjorn Andersson wrote: Functions in the DisplayPort code that relates to individual instances (encoders) are passed both the struct msm_dp and the struct drm_encoder. But in a situation where multiple DP instances would exist this means that the caller need to resolve which

Re: [Freedreno] [PATCH v3 1/5] drm/msm/dp: Remove global g_dp_display variable

2021-10-05 Thread abhinavk
On 2021-10-01 11:00, Bjorn Andersson wrote: As the Qualcomm DisplayPort driver only supports a single instance of the driver the commonly used struct dp_display is kept in a global variable. As we introduce additional instances this obviously doesn't work. Replace this with a combination of exis

[PATCH] drm/ttm_bo_api: update the description for @placement and @sg

2021-10-05 Thread Amos Kong
Correct the argument name of @placement and added @sg description for ttm_bo_init() and ttm_bo_init_reserved(). Argument @flags was replaced to @placement by Jerome in commit 09855acb1c2e3779f25317ec9a8ffe1b1784a4a8 Argument @sg was added by Dave in commit 129b78bfca591e736e56a294f0e357d73d938f7e

  1   2   3   >