[PATCH v3 07/11] lib/ref_tracker: remove warnings in case of allocation failure

2022-02-21 Thread Andrzej Hajda
Library can handle allocation failures. To avoid allocation warnings __GFP_NOWARN has been added everywhere. Moreover GFP_ATOMIC has been replaced with GFP_NOWAIT in case of stack allocation on tracker free call. Signed-off-by: Andrzej Hajda --- lib/ref_tracker.c | 5 +++-- 1 file changed, 3 ins

[PATCH v3 10/11] drm/i915: Correct type of wakeref variable

2022-02-21 Thread Andrzej Hajda
Wakeref has dedicated type. Assumption it will be int compatible forever is incorrect. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c b/drive

[PATCH v3 11/11] drm/i915: replace Intel internal tracker with kernel core ref_tracker

2022-02-21 Thread Andrzej Hajda
Beside reusing existing code, the main advantage of ref_tracker is tracking per instance of wakeref. It allows also to catch double put. On the other side we lose information about the first acquire and the last release, but the advantages outweigh it. Signed-off-by: Andrzej Hajda Reviewed-by: Ch

Re: [PATCH] drm/i915: Check input parameter for NULL

2022-02-21 Thread kernel test robot
'--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Yongzhi-Liu/drm-i915-Check-input-parameter-for-NULL/20220221-225508 base: git://anongit.freedesktop.org/drm-intel for-linux-next config: i386-randconfig-a014-202202

Re: [PATCH] drm/i915: Check input parameter for NULL

2022-02-21 Thread kernel test robot
'--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Yongzhi-Liu/drm-i915-Check-input-parameter-for-NULL/20220221-225508 base: git://anongit.freedesktop.org/drm-intel for-linux-next config: x86_64-randconfig-a001-202202

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

2022-02-21 Thread Igor Torrente
Hi Pekka, On 2/21/22 06:18, Pekka Paalanen wrote: On Sun, 20 Feb 2022 22:02:12 -0300 Igor Torrente wrote: Hi Melissa, On 2/9/22 18:45, Melissa Wen wrote: On 02/08, Igor Torrente wrote: Hi Melissa, On 2/8/22 07:40, Melissa Wen wrote: On 01/21, Igor Torrente wrote: Currently the blend fun

Re: [PATCH] drm/i915: Check input parameter for NULL

2022-02-21 Thread kernel test robot
e' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Yongzhi-Liu/drm-i915-Check-input-parameter-for-NULL/20220221-225508 base: git://anongit.freedesktop.org/drm-intel for-linux-next config: i386-randconfig-a004-20220221 (https://d

[PATCH 3/3] drm/msm/adreno: Fix up formatting

2022-02-21 Thread Konrad Dybcio
Leading spaces are not something checkpatch likes, and it says so when they are present. Use tabs consistently to indent function body and unwrap a 83-char-long line, as 100 is cool nowadays. Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/adreno_gpu.h | 17 - 1 file

[PATCH 2/3] drm/msm/a6xx: Add speedbin support for A619 GPU

2022-02-21 Thread Konrad Dybcio
There are various SKUs of A619, ranging from 565 MHz to 850 MHz, depending on the bin. Add support for distinguishing them, so that proper frequency ranges can be applied, depending on the HW. Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 18 ++ 1 file

[PATCH 1/3] drm/msm/adreno: Add A619 support

2022-02-21 Thread Konrad Dybcio
Add support for the Adreno 619 GPU, as found in Snapdragon 690 (SM6350), 480 (SM4350) and 750G (SM7225). Signed-off-by: Konrad Dybcio --- drivers/gpu/drm/msm/adreno/a6xx_gmu.c | 11 ++-- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 70 +- drivers/gpu/drm/msm/adreno/a6xx_

[RFC PATCH] drm/msm/dpu1: Add a common DPU1 compatible

2022-02-21 Thread Konrad Dybcio
There is *almost no reason* to keep separate compatibles for different SoCs utilizing the DPU1 driver, as it checks the HW version at runtime. Introduce a common compatible, while not removing the old ones to keep old DT compatibility. Signed-off-by: Konrad Dybcio --- Bar some very very very unl

2022 X.Org Board of Directors Elections Nomination period is NOW

2022-02-21 Thread Lyude Paul
We are seeking nominations for candidates for election to the X.Org Foundation Board of Directors. All X.Org Foundation members are eligible for election to the board. Nominations for the 2022 election are now open and will remain open until 23:59 UTC on 06 March 2022. The Board consists of direc

[PATCH v2] drm/amdgpu: check vm ready by amdgpu_vm->evicting flag

2022-02-21 Thread Qiang Yu
Workstation application ANSA/META v21.1.4 get this error dmesg when running CI test suite provided by ANSA/META: [drm:amdgpu_gem_va_ioctl [amdgpu]] *ERROR* Couldn't update BO_VA (-16) This is caused by: 1. create a 256MB buffer in invisible VRAM 2. CPU map the buffer and access it causes vm_fault

Re: [RFC PATCH] drm/msm/dpu1: Add a common DPU1 compatible

2022-02-21 Thread Dmitry Baryshkov
Hi, On Tue, 22 Feb 2022 at 04:26, Konrad Dybcio wrote: > > There is *almost no reason* to keep separate compatibles for different > SoCs utilizing the DPU1 driver, as it checks the HW version at runtime. > > Introduce a common compatible, while not removing the old ones to keep > old DT compatibi

Re: [PATCH v2 1/4] drm/msm/dp: Add basic PSR support for eDP

2022-02-21 Thread Dmitry Baryshkov
On Mon, 21 Feb 2022 at 17:52, Vinod Polimera wrote: > > Add support for basic panel self refresh (PSR) feature for eDP. > Add a new interface to set PSR state in the sink from DPU. > Program the eDP controller to issue PSR enter and exit SDP to > the sink. > > Signed-off-by: Sankeerth Billakanti

Re: [PATCH v2 3/4] drm/msm/disp/dpu1: use atomic enable/disable callbacks for encoder functions

2022-02-21 Thread Dmitry Baryshkov
On Mon, 21 Feb 2022 at 17:52, Vinod Polimera wrote: > > Use atomic variants for encoder callback functions such that > certain states like self-refresh can be accessed as part of > enable/disable sequence. > > Signed-off-by: Kalyan Thota > Signed-off-by: Vinod Polimera Reviewed-by: Dmitry Barys

Re: [PATCH v2 2/4] drm/bridge: use atomic enable/disable for bridge callbacks

2022-02-21 Thread Dmitry Baryshkov
On Mon, 21 Feb 2022 at 17:52, Vinod Polimera wrote: > > Use atomic enable/disable for bridge callbacks to access certain > states like self-refresh. > > This change avoids panel prepare/unprepare based on self-refresh > state. Please split this into two patches: - change to atomic_* callbacks - i

[PATCH] drm/msm/dpu: wire up MSM8998's DSPP blocks

2022-02-21 Thread Dmitry Baryshkov
The commit adding msm8998 support didn't added msm8998's DSPP blocks configuration, but did not use them in msm8998_cfg_init(). Wire them up to be used for display post processing. Reported-by: kernel test robot Fixes: 94391a14fc27 ("drm/msm/dpu1: Add MSM8998 to hw catalog") Cc: AngeloGioacchino

[Bug 215631] New: Some Desktop oriented mode setting drivers are missing DRM PRIME support

2022-02-21 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=215631 Bug ID: 215631 Summary: Some Desktop oriented mode setting drivers are missing DRM PRIME support Product: Drivers Version: 2.5 Kernel Version: 5.14 Hardware: Intel

Re: [PATCH 5/6] drm/rcar_du: changes to rcar-du driver resulting from drm_writeback_connector structure changes

2022-02-21 Thread Dmitry Baryshkov
On Thu, 10 Feb 2022 at 07:59, Laurent Pinchart wrote: > > Hi Abhinav, > > On Wed, Feb 09, 2022 at 05:40:29PM -0800, Abhinav Kumar wrote: > > Hi Laurent > > > > Gentle reminder on this. > > I won't have time before next week I'm afraid. Laurent, another gentle ping. > > > On 2/6/2022 11:20 PM, Ab

Re: [PATCH 2/2] drm/bridge: Document the expected behaviour of DSI host controllers

2022-02-21 Thread Laurent Pinchart
Hi Dave, Thank you for the patch. On Wed, Feb 16, 2022 at 04:59:44PM +, Dave Stevenson wrote: > The exact behaviour of DSI host controllers is not specified, > therefore define it. > > Signed-off-by: Dave Stevenson > --- > Documentation/gpu/drm-kms-helpers.rst | 7 +++ > drivers/gpu/

[PATCH 0/4] drm/msm/dpu: clearly document INTF_DP vs INTF_EDP difference

2022-02-21 Thread Dmitry Baryshkov
Recent dicussion on the mailing list [1], [2] outlined a need to document which intf type is used for DP and which one is used for eDP interfaces. This series implements my proposal [3]: - Keep INTF_EDP reserved for 8x74/8x84 - Use INTF_DP for all contemporary DP and eDP ports - Documet this in d

[PATCH 2/4] drm/msm/dpu: drop INTF_TYPE_MAX symbol

2022-02-21 Thread Dmitry Baryshkov
This enum value does not correspond to any of actual interface types, it's not used by the driver, and the value of INTF_WB is greater than INTF_TYPE_MAX. Thus this symbol serves no purpose and can be removed. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_mdss.h | 1 -

[PATCH 3/4] drm/msm/dpu: drop obsolete INTF_EDP comment

2022-02-21 Thread Dmitry Baryshkov
DPU driver never supported INTF_EDP, so let's drop the obsolete comment. If at some point 8x74/8x84's INTF_EDP is ported to DPU driver, corresponding handling will have to be ported too. Until that time, the comment serves no purpose. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/

[PATCH 4/4] drm/msm/dpu: drop INTF_EDP from interface type conditions

2022-02-21 Thread Dmitry Baryshkov
To remove possible confusion between (old) INTF_EDP and newer INTF_DP, stop using INTF_EDP in DPU's code. Until the 8x74/8x84 SoCs are supported by DPU driver, there is no point in using INTF_EDP. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 3 +-- d

[PATCH 1/4] drm/msm/dpu: document INTF_EDP/INTF_DP difference

2022-02-21 Thread Dmitry Baryshkov
Based on the discussions on the mailing list, document enum dpu_intf_type and it's controversial fields: INTF_DP and INTF_EDP. INTF_EDP is used for older eDP interface found on msm8x74/msm8x84 INTF_DP is used for both eDP and DP interfaces handled by the msm/dp driver. The DPU driver does not make

[PATCH 1/3] drm/edid: parse multiple CEA extension block

2022-02-21 Thread Lee Shawn C
Try to find and parse more CEA ext blocks if edid->extensions is greater than one. Cc: Jani Nikula Cc: Ville Syrjala Cc: Ankit Nautiyal Signed-off-by: Lee Shawn C --- drivers/gpu/drm/drm_edid.c | 75 +++--- 1 file changed, 45 insertions(+), 30 deletions(-) dif

[PATCH 2/3] drm/edid: read HF-EEODB ext block

2022-02-21 Thread Lee Shawn C
Support to read HF_EEODB block that request by HDMI 2.1 specification. Cc: Jani Nikula Cc: Ville Syrjala Cc: Ankit Nautiyal Signed-off-by: Lee Shawn C --- drivers/gpu/drm/drm_connector.c | 5 ++- drivers/gpu/drm/drm_edid.c | 76 ++--- include/drm/drm_edid.h

[PATCH 3/3] drm/edid: parse HF-EEODB CEA extension block

2022-02-21 Thread Lee Shawn C
While adding CEA modes, try to get available EEODB block number. Then based on it to parse numbers of ext blocks, retrieve CEA information and add more CEA modes. Cc: Jani Nikula Cc: Ville Syrjala Cc: Ankit Nautiyal Signed-off-by: Lee Shawn C --- drivers/gpu/drm/drm_displayid.c | 2 +- drive

Re: [PATCH 1/2] drm: Introduce DRM_BRIDGE_OP_UPSTREAM_FIRST to alter bridge init order

2022-02-21 Thread Laurent Pinchart
Hi Dave, Thank you for the patch. On Wed, Feb 16, 2022 at 04:59:43PM +, Dave Stevenson wrote: > DSI sink devices typically want the DSI host powered up and configured > before they are powered up. pre_enable is the place this would normally > happen, but they are called in reverse order from

Re: [PATCH 0/2] DSI host and peripheral initialisation ordering

2022-02-21 Thread Laurent Pinchart
Hello, On Fri, Feb 18, 2022 at 02:20:19PM +0100, Andrzej Hajda wrote: > On 16.02.2022 17:59, Dave Stevenson wrote: > > Hi All > > > > Hopefully I've cc'ed all those that have bashed this problem around > > previously, > > or are otherwise linked to DRM bridges. > > > > There have been numerous di

Re: [PATCH] drm/panel: panel-simple: Fix proper bpc for AM-1280800N3TZQW-T00H

2022-02-21 Thread Jagan Teki
On Mon, Feb 7, 2022 at 6:34 PM Jagan Teki wrote: > > Hi Sam, > > On Mon, Dec 20, 2021 at 1:45 PM Sam Ravnborg wrote: > > > > Hi Jagan, > > > > On Sun, Dec 19, 2021 at 10:10:10PM +0530, Jagan Teki wrote: > > > Hi Sam, > > > > > > On Thu, Nov 11, 2021 at 3:11 PM Jagan Teki > > > wrote: > > > > >

Re: [PATCH v5 0/5] drm: exynos: dsi: Convert drm bridge

2022-02-21 Thread Jagan Teki
On Wed, Feb 2, 2022 at 9:54 PM Jagan Teki wrote: > > Hi Marek, > > On Fri, Jan 21, 2022 at 6:14 PM Marek Szyprowski > wrote: > > > > Hi Jagan, > > > > On 21.01.2022 12:40, Jagan Teki wrote: > > > On Fri, Jan 21, 2022 at 5:06 PM Marek Szyprowski > > > wrote: > > >> On 17.01.2022 09:42, Jagan Teki

Re: [Intel-gfx] [PATCH v3 08/11] drm/i915: Separate wakeref tracking

2022-02-21 Thread Ville Syrjälä
On Tue, Feb 22, 2022 at 12:25:39AM +0100, Andrzej Hajda wrote: > -static noinline depot_stack_handle_t > +static intel_wakeref_t > track_intel_runtime_pm_wakeref(struct intel_runtime_pm *rpm) > { > - depot_stack_handle_t stack, *stacks; > - unsigned long flags; > - > - if (rpm->no_wak

Re: [PATCH 1/3] drm/edid: parse multiple CEA extension block

2022-02-21 Thread Ville Syrjälä
On Tue, Feb 22, 2022 at 02:38:17PM +0800, Lee Shawn C wrote: > Try to find and parse more CEA ext blocks if edid->extensions > is greater than one. > > Cc: Jani Nikula > Cc: Ville Syrjala > Cc: Ankit Nautiyal > Signed-off-by: Lee Shawn C > --- > drivers/gpu/drm/drm_edid.c | 75 +++

Re: [PATCH 5/6] drm/rcar_du: changes to rcar-du driver resulting from drm_writeback_connector structure changes

2022-02-21 Thread Laurent Pinchart
Hi Dmitry, On Tue, Feb 22, 2022 at 06:32:50AM +0300, Dmitry Baryshkov wrote: > On Thu, 10 Feb 2022 at 07:59, Laurent Pinchart wrote: > > On Wed, Feb 09, 2022 at 05:40:29PM -0800, Abhinav Kumar wrote: > > > Hi Laurent > > > > > > Gentle reminder on this. > > > > I won't have time before next week I

<    1   2   3