Re: [PATCH v7 3/6] drm/sched: Convert the GPU scheduler to variable number of run-queues

2023-10-25 Thread kernel test robot
Hi Matthew, kernel test robot noticed the following build warnings: [auto build test WARNING on 201c8a7bd1f3f415920a2df4b8a8817e973f42fe] url: https://github.com/intel-lab-lkp/linux/commits/Matthew-Brost/drm-sched-Add-drm_sched_wqueue_-helpers/20231026-121313 base: 201c8a7bd1f3f415920a2df4

Re: [PATCH] accel/ivpu: Delete the TODO file

2023-10-25 Thread Stanislaw Gruszka
On Thu, Oct 19, 2023 at 12:43:54AM +0530, Deepak R Varma wrote: > The work items listed in the TODO file of this driver file are either > completed or dropped. The file is no more significant according > to the maintainers. Hence removing it from the sources. > > Suggested-by: Stanislaw Gruszka >

Re: [PATCH] accel/ivpu/37xx: Fix missing VPUIP interrupts

2023-10-25 Thread Stanislaw Gruszka
On Tue, Oct 24, 2023 at 06:19:52PM +0200, Stanislaw Gruszka wrote: > From: Karol Wachowski > > Move sequence of masking and unmasking global interrupts from buttress > interrupt handler to generic one that handles both VPUIP and BTRS > interrupts. Unmasking global interrupts will re-trigger MSI f

Re: [PATCH] drm: Use device_get_match_data()

2023-10-25 Thread Tomi Valkeinen
On 20/10/2023 15:52, Rob Herring wrote: Use preferred device_get_match_data() instead of of_match_device() to get the driver match data in a single step. With this, adjust the includes to explicitly include the correct headers. That also serves as preparation to remove implicit includes within th

Re: [PATCH v7 4/6] drm/sched: Split free_job into own work item

2023-10-25 Thread Luben Tuikov
On 2023-10-26 00:12, Matthew Brost wrote: > Rather than call free_job and run_job in same work item have a dedicated > work item for each. This aligns with the design and intended use of work > queues. > > v2: >- Test for DMA_FENCE_FLAG_TIMESTAMP_BIT before setting > timestamp in free_job

Re: [PATCH] vga_switcheroo: Fix impossible judgment condition

2023-10-25 Thread Dan Carpenter
On Thu, Oct 26, 2023 at 10:10:57AM +0800, Su Hui wrote: > 'id' is enum type like unsigned int, so it will never be less than zero. > > Fixes: 4aaf448fa975 ("vga_switcheroo: set audio client id according to bound > GPU id") > Signed-off-by: Su Hui > --- > drivers/gpu/vga/vga_switcheroo.c | 2 +-

Re: [PATCH v7 6/6] drm/sched: Add a helper to queue TDR immediately

2023-10-25 Thread Luben Tuikov
On 2023-10-26 00:12, Matthew Brost wrote: > Add a helper whereby a driver can invoke TDR immediately. > > v2: > - Drop timeout args, rename function, use mod delayed work (Luben) > v3: > - s/XE/Xe (Luben) > - present tense in commit message (Luben) > - Adjust comment for drm_sched_tdr_queue_im

Re: [PATCH v7 4/6] drm/sched: Split free_job into own work item

2023-10-25 Thread Luben Tuikov
On 2023-10-26 00:12, Matthew Brost wrote: > Rather than call free_job and run_job in same work item have a dedicated > work item for each. This aligns with the design and intended use of work > queues. > > v2: >- Test for DMA_FENCE_FLAG_TIMESTAMP_BIT before setting > timestamp in free_job

Re: [PATCH v7 3/6] drm/sched: Convert the GPU scheduler to variable number of run-queues

2023-10-25 Thread Luben Tuikov
On 2023-10-26 00:12, Matthew Brost wrote: > From: Luben Tuikov > > The GPU scheduler has now a variable number of run-queues, which are set up at > drm_sched_init() time. This way, each driver announces how many run-queues it > requires (supports) per each GPU scheduler it creates. Note, that run

Re: [PATCH v7 0/6] DRM scheduler changes for Xe

2023-10-25 Thread Luben Tuikov
Hi, On 2023-10-26 00:12, Matthew Brost wrote: > As a prerequisite to merging the new Intel Xe DRM driver [1] [2], we > have been asked to merge our common DRM scheduler patches first. > > This a continuation of a RFC [3] with all comments addressed, ready for > a full review, and hopefully in sta

[PATCH v7 4/6] drm/sched: Split free_job into own work item

2023-10-25 Thread Matthew Brost
Rather than call free_job and run_job in same work item have a dedicated work item for each. This aligns with the design and intended use of work queues. v2: - Test for DMA_FENCE_FLAG_TIMESTAMP_BIT before setting timestamp in free_job() work item (Danilo) v3: - Drop forward dec of drm_sc

[PATCH v7 3/6] drm/sched: Convert the GPU scheduler to variable number of run-queues

2023-10-25 Thread Matthew Brost
From: Luben Tuikov The GPU scheduler has now a variable number of run-queues, which are set up at drm_sched_init() time. This way, each driver announces how many run-queues it requires (supports) per each GPU scheduler it creates. Note, that run-queues correspond to scheduler "priorities", thus i

[PATCH v7 5/6] drm/sched: Add drm_sched_start_timeout_unlocked helper

2023-10-25 Thread Matthew Brost
Also add a lockdep assert to drm_sched_start_timeout. Signed-off-by: Matthew Brost Reviewed-by: Luben Tuikov --- drivers/gpu/drm/scheduler/sched_main.c | 23 +-- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/scheduler/sched_main.c b/drivers

[PATCH v7 2/6] drm/sched: Convert drm scheduler to use a work queue rather than kthread

2023-10-25 Thread Matthew Brost
In Xe, the new Intel GPU driver, a choice has made to have a 1 to 1 mapping between a drm_gpu_scheduler and drm_sched_entity. At first this seems a bit odd but let us explain the reasoning below. 1. In Xe the submission order from multiple drm_sched_entity is not guaranteed to be the same completi

[PATCH v7 6/6] drm/sched: Add a helper to queue TDR immediately

2023-10-25 Thread Matthew Brost
Add a helper whereby a driver can invoke TDR immediately. v2: - Drop timeout args, rename function, use mod delayed work (Luben) v3: - s/XE/Xe (Luben) - present tense in commit message (Luben) - Adjust comment for drm_sched_tdr_queue_imm (Luben) v4: - Adjust commit message (Luben) Cc: Luben

[PATCH v7 1/6] drm/sched: Add drm_sched_wqueue_* helpers

2023-10-25 Thread Matthew Brost
Add scheduler wqueue ready, stop, and start helpers to hide the implementation details of the scheduler from the drivers. v2: - s/sched_wqueue/sched_wqueue (Luben) - Remove the extra white line after the return-statement (Luben) - update drm_sched_wqueue_ready comment (Luben) Cc: Luben Tuik

[PATCH v7 0/6] DRM scheduler changes for Xe

2023-10-25 Thread Matthew Brost
As a prerequisite to merging the new Intel Xe DRM driver [1] [2], we have been asked to merge our common DRM scheduler patches first. This a continuation of a RFC [3] with all comments addressed, ready for a full review, and hopefully in state which can merged in the near future. More details of t

[pull] amdgpu drm-fixes-6.6

2023-10-25 Thread Alex Deucher
Hi Dave, Sima, One last fix for 6.6. The following changes since commit 05d3ef8bba77c1b5f98d941d8b2d4aeab8118ef1: Linux 6.6-rc7 (2023-10-22 12:11:21 -1000) are available in the Git repository at: https://gitlab.freedesktop.org/agd5f/linux.git tags/amd-drm-fixes-6.6-2023-10-25 for you to

[PATCH] drm/atomic-helper: Call stall_checks() before allocate drm_crtc_commit

2023-10-25 Thread oushixiong
From: Shixiong Ou It is wrong to call stall_checks() after allocating memory for struct drm_crtc_commit as it will cause memory leaks if too many nonblock commit works return -EBUSY. So it needs to call stall_checks() before allocate drm_crtc_commit. Signed-off-by: Shixiong Ou --- drivers/gpu/

Re: [PATCH v2 10/11] drm/mediatek: Add cmdq_insert_backup_cookie before secure pkt finalize

2023-10-25 Thread 胡俊光

[PATCH] vga_switcheroo: Fix impossible judgment condition

2023-10-25 Thread Su Hui
'id' is enum type like unsigned int, so it will never be less than zero. Fixes: 4aaf448fa975 ("vga_switcheroo: set audio client id according to bound GPU id") Signed-off-by: Su Hui --- drivers/gpu/vga/vga_switcheroo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/g

Re: [PATCH 1/1] drm/mediatek: Fix errors when reporting rotation capability

2023-10-25 Thread 胡俊光

Re: [PATCH v5 5/6] soc: qcom: pmic-glink: switch to DRM_AUX_HPD_BRIDGE

2023-10-25 Thread Bjorn Andersson
On Thu, Oct 26, 2023 at 01:28:06AM +0300, Dmitry Baryshkov wrote: > Use the freshly defined DRM_AUX_HPD_BRIDGE instead of open-coding the > same functionality for the DRM bridge chain termination. > Reviewed-by: Bjorn Andersson Acked-by: Bjorn Andersson Regards, Bjorn

Re: [PATCH 1/1] drm/mediatek: Add missing plane settings when async update

2023-10-25 Thread 胡俊光

Re: [PATCH] drm/amd/display: add kernel docs for dc_stream_forward_crc_window

2023-10-25 Thread kernel test robot
Hi Sagar, kernel test robot noticed the following build warnings: [auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING on linus/master v6.6-rc7 next-20231025] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to

Re: Blank screen on boot of Linux 6.5 and later on Lenovo ThinkPad L570

2023-10-25 Thread Huacai Chen
Hi, Jaak, On Thu, Oct 26, 2023 at 2:49 AM Jaak Ristioja wrote: > > On 25.10.23 16:23, Huacai Chen wrote: > > On Wed, Oct 25, 2023 at 6:08 PM Thorsten Leemhuis > > wrote: > >> > >> Javier, Dave, Sima, > >> > >> On 23.10.23 00:54, Evan Preston wrote: > >>> On 2023-10-20 Fri 05:48pm, Huacai Chen wr

[PATCH v5 5/6] soc: qcom: pmic-glink: switch to DRM_AUX_HPD_BRIDGE

2023-10-25 Thread Dmitry Baryshkov
Use the freshly defined DRM_AUX_HPD_BRIDGE instead of open-coding the same functionality for the DRM bridge chain termination. Signed-off-by: Dmitry Baryshkov --- drivers/soc/qcom/Kconfig | 1 + drivers/soc/qcom/pmic_glink_altmode.c | 33 --- 2 files changed

[PATCH v5 6/6] usb: typec: qcom-pmic-typec: switch to DRM_AUX_HPD_BRIDGE

2023-10-25 Thread Dmitry Baryshkov
Use the freshly defined DRM_AUX_HPD_BRIDGE instead of open-coding the same functionality for the DRM bridge chain termination. Signed-off-by: Dmitry Baryshkov --- drivers/usb/typec/tcpm/Kconfig| 1 + drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c | 41 +++ 2 files

[PATCH v5 2/6] phy: qcom: qmp-combo: switch to DRM_AUX_BRIDGE

2023-10-25 Thread Dmitry Baryshkov
Switch to using the new DRM_AUX_BRIDGE helper to create the transparent DRM bridge device instead of handcoding corresponding functionality. Acked-by: Vinod Koul Signed-off-by: Dmitry Baryshkov --- drivers/phy/qualcomm/Kconfig | 2 +- drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 44

[PATCH v5 4/6] drm/bridge: implement generic DP HPD bridge

2023-10-25 Thread Dmitry Baryshkov
Several USB-C controllers implement a pretty simple DRM bridge which implements just the HPD notification operations. Add special helper for creating such simple bridges. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/bridge/Kconfig | 8 ++ drivers/gpu/drm/bridge/Makefile

[PATCH v5 3/6] usb: typec: nb7vpq904m: switch to DRM_AUX_BRIDGE

2023-10-25 Thread Dmitry Baryshkov
Switch to using the new DRM_AUX_BRIDGE helper to create the transparent DRM bridge device instead of handcoding corresponding functionality. Reviewed-by: Heikki Krogerus Acked-by: Greg Kroah-Hartman Signed-off-by: Dmitry Baryshkov --- drivers/usb/typec/mux/Kconfig | 2 +- drivers/usb/typ

[PATCH v5 1/6] drm/bridge: add transparent bridge helper

2023-10-25 Thread Dmitry Baryshkov
Define a helper for creating simple transparent bridges which serve the only purpose of linking devices into the bridge chain up to the last bridge representing the connector. This is especially useful for DP/USB-C bridge chains, which can span across several devices, but do not require any additio

[PATCH v5 0/6] drm: simplify support for transparent DRM bridges

2023-10-25 Thread Dmitry Baryshkov
Supporting DP/USB-C can result in a chain of several transparent bridges (PHY, redrivers, mux, etc). All attempts to implement DP support in a different way resulted either in series of hacks or in device tree not reflecting the actual hardware design. This results in drivers having similar boile

Re: [PATCH v2 6/6] drm/vs: Add hdmi driver

2023-10-25 Thread Dmitry Baryshkov
On 25/10/2023 13:39, Keith Zhao wrote: add hdmi driver as encoder and connect Signed-off-by: Keith Zhao --- drivers/gpu/drm/verisilicon/Kconfig | 8 +- drivers/gpu/drm/verisilicon/Makefile| 1 + drivers/gpu/drm/verisilicon/starfive_hdmi.c | 949 dri

[PATCH] drm/rockchip: vop2: Add NV20 and NV30 support

2023-10-25 Thread Jonas Karlman
Add support for the 10-bit 4:2:2 and 4:4:4 formats NV20 and NV30. These formats can be tested using modetest [1]: modetest -P @:1920x1080@ e.g. on a ROCK 3 Model A (rk3568): modetest -P 43@67:1920x1080@NV20 -F tiles,tiles modetest -P 43@67:1920x1080@NV30 -F smpte,smpte [1] https://gitlab

Re: [PATCH v2 3/6] drm/fourcc: Add drm/vs tiled modifiers

2023-10-25 Thread Emil Renner Berthing
Keith Zhao wrote: > For each modifier, add the corresponding description > > Signed-off-by: Keith Zhao > --- > include/uapi/drm/drm_fourcc.h | 57 +++ > 1 file changed, 57 insertions(+) > > diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h

Re: [PATCH v2 2/6] riscv: dts: starfive: jh7110: add dc controller and hdmi node

2023-10-25 Thread Emil Renner Berthing
Keith Zhao wrote: > Add the dc controller and hdmi node for the Starfive JH7110 SoC. > > Signed-off-by: Keith Zhao > --- > .../jh7110-starfive-visionfive-2.dtsi | 91 +++ > arch/riscv/boot/dts/starfive/jh7110.dtsi | 41 + > 2 files changed, 132 insertions(+) >

Re: [PATCH] drm: panel: simple: specify bpc for powertip_ph800480t013_idf02

2023-10-25 Thread Marco Felsch
+Cc: stable The commit misses the Fixes tag. On Mon, Jul 31, 2023 at 02:47:47PM +0200, Neil Armstrong wrote: > On 27/07/2023 19:24, Dmitry Baryshkov wrote: > > Specify bpc value for the powertip_ph800480t013_idf02 panel to stop drm > > code from complaining about unexpected bpc value (0). > > >

Re: Blank screen on boot of Linux 6.5 and later on Lenovo ThinkPad L570

2023-10-25 Thread Jaak Ristioja
On 25.10.23 16:23, Huacai Chen wrote: On Wed, Oct 25, 2023 at 6:08 PM Thorsten Leemhuis wrote: Javier, Dave, Sima, On 23.10.23 00:54, Evan Preston wrote: On 2023-10-20 Fri 05:48pm, Huacai Chen wrote: On Fri, Oct 20, 2023 at 5:35 PM Linux regression tracking (Thorsten Leemhuis) wrote: On 0

Re: [PATCH v2 4/6] drm/vs: Register DRM device

2023-10-25 Thread Emil Renner Berthing
Keith Zhao wrote: > Implement drm device registration interface > > Thomas Zimmermann wrote: > You are replacing almost all of the GEM DMA object's helper code. > Either inherit directly from drm_gem_object drop the dependency entirely, > or you could try to fit your code into GEM DMA as well > > E

Re: [RFC PATCH v2 06/17] drm/doc/rfc: Describe why prescriptive color pipeline is needed

2023-10-25 Thread Alex Goins
Thank you Harry and all other contributors for your work on this. Responses inline - On Mon, 23 Oct 2023, Pekka Paalanen wrote: > On Fri, 20 Oct 2023 11:23:28 -0400 > Harry Wentland wrote: > > > On 2023-10-20 10:57, Pekka Paalanen wrote: > > > On Fri, 20 Oct 2023 16:22:56 +0200 > > > Sebastian

dri-devel@lists.freedesktop.org

2023-10-25 Thread Ville Syrjälä
On Wed, Oct 25, 2023 at 10:28:56PM +0300, Dmitry Baryshkov wrote: > On 25/10/2023 13:39, Keith Zhao wrote: > > add 2 crtcs and 8 planes in vs-drm > > > > Signed-off-by: Keith Zhao > > --- > > drivers/gpu/drm/verisilicon/Makefile |8 +- > > drivers/gpu/drm/verisilicon/vs_crtc.c | 257 ++

dri-devel@lists.freedesktop.org

2023-10-25 Thread Dmitry Baryshkov
On 25/10/2023 13:39, Keith Zhao wrote: add 2 crtcs and 8 planes in vs-drm Signed-off-by: Keith Zhao --- drivers/gpu/drm/verisilicon/Makefile |8 +- drivers/gpu/drm/verisilicon/vs_crtc.c | 257 drivers/gpu/drm/verisilicon/vs_crtc.h | 43 + drivers/gpu/drm/verisilicon/vs_dc.c

Re: [PATCH 4/5] dt-bindings: arm: rockchip: Add Powkiddy RK2023

2023-10-25 Thread Chris Morgan
On Tue, Oct 24, 2023 at 05:47:37PM +0200, Heiko Stübner wrote: > Hi Chris, > > Am Freitag, 20. Oktober 2023, 17:03:08 CEST schrieb Chris Morgan: > > On Thu, Oct 19, 2023 at 07:45:17PM +0200, Heiko Stübner wrote: > > > Hey Chris, > > > > > > Am Donnerstag, 19. Oktober 2023, 16:43:56 CEST schrieb C

Re: [PATCH v6 4/7] drm/sched: Add DRM_SCHED_POLICY_SINGLE_ENTITY scheduling policy

2023-10-25 Thread Luben Tuikov
Hi Matt, On 2023-10-25 11:13, Matthew Brost wrote: > On Mon, Oct 23, 2023 at 11:50:26PM -0400, Luben Tuikov wrote: >> Hi, >> >> On 2023-10-17 11:09, Matthew Brost wrote: >>> DRM_SCHED_POLICY_SINGLE_ENTITY creates a 1 to 1 relationship between >>> scheduler and entity. No priorities or run queue us

Re: [PATCH v2 2/2] drm/todo: Add entry to clean up former seltests suites

2023-10-25 Thread Maira Canal
Hi Maxime, Wouldn't be nice to add to the TODO list an item regarding the deleted drm_mm tests? Something just to remember us to develop new tests for it in the future. Best Regards, - Maíra On 10/25/23 10:24, Maxime Ripard wrote: Most of those suites are undocumented and aren't really clear a

[PATCH v2 1/1] dt-bindings: backlight: mp3309c: remove two required properties

2023-10-25 Thread Flavio Suligoi
The two properties: - max-brightness - default brightness are not really required, so they can be removed from the "required" section. The "max-brightness" is no longer used in the current version of the driver (it was used only in the first version). The "default-brightness", if omitted in the D

[PATCH v2 0/1] dt-bindings: backlight: mp3309c: remove two required properties

2023-10-25 Thread Flavio Suligoi
This patch remove the following two not-required properties from the "required" section: - max-brightness - default brightness These properties are not really required, so they can be removed from the "required" section. The "max-brightness" is no longer used in the current version of the driver

Re: [PATCH v2 4/6] drm/vs: Register DRM device

2023-10-25 Thread Dmitry Baryshkov
On 25/10/2023 13:39, Keith Zhao wrote: Implement drm device registration interface Thomas Zimmermann wrote: You are replacing almost all of the GEM DMA object's helper code. Either inherit directly from drm_gem_object drop the dependency entirely, or you could try to fit your code into GEM DMA a

Re: [PATCH v2 3/6] drm/fourcc: Add drm/vs tiled modifiers

2023-10-25 Thread Simon Ser
Thinking about this again, it seems like you could start with just simple enumerated modifiers like Intel does, and then only switch to more complicated logic with macros and fields if there is an actual need in the future.

Re: [PATCH v2 3/6] drm/fourcc: Add drm/vs tiled modifiers

2023-10-25 Thread Simon Ser
Would be good to have an overview comment to explain how bits in the modifier are used and how everything is tied up together, e.g. what the type and tile mode mean. Also some docs for DRM_FORMAT_MOD_VERISILICON_TYPE_NORMAL would be nice. (If there is no other type, this can be removed, the bits w

Re: [PATCH v2 3/6] drm/fourcc: Add drm/vs tiled modifiers

2023-10-25 Thread Dmitry Baryshkov
On 25/10/2023 13:39, Keith Zhao wrote: For each modifier, add the corresponding description Signed-off-by: Keith Zhao --- include/uapi/drm/drm_fourcc.h | 57 +++ 1 file changed, 57 insertions(+) diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/dr

Re: [PATCH v2 10/11] drm/tests: Add test for drm_mode_addfb2()

2023-10-25 Thread Maxime Ripard
On Tue, Oct 24, 2023 at 04:10:01PM -0300, Carlos Eduardo Gallo Filho wrote: > Add a single KUnit test case for the drm_mode_addfb2 function. > > Signed-off-by: Carlos Eduardo Gallo Filho > --- > v2: > - Reorder kunit cases alphabetically. > - Rely on drm_kunit_helper_alloc_device() for mock i

Re: [Intel-gfx] [PATCH v2 1/5] drm/i915/guc: Create the guc_to_i915() wrapper

2023-10-25 Thread Nirmoy Das
On 10/25/2023 4:53 PM, Andi Shyti wrote: Hi Nirmoy, +static inline struct drm_i915_private *guc_to_i915(struct intel_guc *guc) +{ + return guc_to_gt(guc)->i915; +} + We don't want inline functions in headers files[1]. Otherwise the series looks fine to me: the reason for that patch is

Re: [RFC PATCH 03/10] drm/mipi-dsi: add API for manual control over the DSI link power state

2023-10-25 Thread Dmitry Baryshkov
On 25/10/2023 15:44, Maxime Ripard wrote: On Thu, Oct 19, 2023 at 02:19:51PM +0300, Dmitry Baryshkov wrote: On Thu, 19 Oct 2023 at 12:26, Maxime Ripard wrote: On Mon, Oct 16, 2023 at 07:53:48PM +0300, Dmitry Baryshkov wrote: The MIPI DSI links do not fully fall into the DRM callbacks model.

Re: [PATCH v6 4/7] drm/sched: Add DRM_SCHED_POLICY_SINGLE_ENTITY scheduling policy

2023-10-25 Thread Matthew Brost
On Mon, Oct 23, 2023 at 11:50:26PM -0400, Luben Tuikov wrote: > Hi, > > On 2023-10-17 11:09, Matthew Brost wrote: > > DRM_SCHED_POLICY_SINGLE_ENTITY creates a 1 to 1 relationship between > > scheduler and entity. No priorities or run queue used in this mode. > > Intended for devices with firmware

Re: [PATCH v2 09/11] drm/tests: Add test for drm_framebuffer_free()

2023-10-25 Thread Maxime Ripard
On Tue, Oct 24, 2023 at 04:10:00PM -0300, Carlos Eduardo Gallo Filho wrote: > Add a single KUnit test case for the drm_framebuffer_free function. > > Signed-off-by: Carlos Eduardo Gallo Filho > --- > v2: > - Reorder kunit cases alphabetically. > --- > drivers/gpu/drm/tests/drm_framebuffer_test

Re: [PATCH v2 08/11] drm/tests: Add test for drm_framebuffer_init()

2023-10-25 Thread Maxime Ripard
On Tue, Oct 24, 2023 at 04:09:59PM -0300, Carlos Eduardo Gallo Filho wrote: > Add a single KUnit test case for the drm_framebuffer_init function. > > Signed-off-by: Carlos Eduardo Gallo Filho > --- > v2: > - Reorder kunit cases alphabetically. > - Let fb1.dev unset instead of set it to wrong_

Re: [Intel-gfx] [PATCH v2 1/5] drm/i915/guc: Create the guc_to_i915() wrapper

2023-10-25 Thread Andi Shyti
Hi Nirmoy, > > +static inline struct drm_i915_private *guc_to_i915(struct intel_guc *guc) > > +{ > > + return guc_to_gt(guc)->i915; > > +} > > + > > We don't want inline functions in headers files[1]. Otherwise the series > looks fine to me: the reason for that patch is that we were including

Re: [PATCH v2 07/11] drm/tests: Add test for drm_framebuffer_lookup()

2023-10-25 Thread Maxime Ripard
Hi, On Tue, Oct 24, 2023 at 04:09:58PM -0300, Carlos Eduardo Gallo Filho wrote: > Add a single KUnit test case for the drm_framebuffer_lookup function. > > Signed-off-by: Carlos Eduardo Gallo Filho > --- > v2: > - Reorder kunit cases alphabetically. > - Replace drm_mode_object_add() call to

Re: [PATCH] drm/atomic: Spelling fix in comments

2023-10-25 Thread Hamza Mahfooz
Hi Kunwu, Can you make the tagline something along the lines of `drm/atomic helper: fix spelling mistake "preceeding" -> "preceding"`, in general to determine an appropriate prefix, you can see what previous commits used when making changes to files in your particular patch, e.g. using the follow

Re: [PATCH v2 06/11] drm/tests: Add test for drm_framebuffer_cleanup()

2023-10-25 Thread Maxime Ripard
Hi, On Tue, Oct 24, 2023 at 04:09:57PM -0300, Carlos Eduardo Gallo Filho wrote: > Add a single KUnit test case for the drm_framebuffer_cleanup function. > > Signed-off-by: Carlos Eduardo Gallo Filho > --- > v2: > - Reorder kunit cases alphabetically. > - Rely on drm_kunit_helper_alloc_device

Re: [Intel-gfx] [PATCH v2 1/5] drm/i915/guc: Create the guc_to_i915() wrapper

2023-10-25 Thread Nirmoy Das
Hi Andi, On 10/25/2023 4:35 PM, Andi Shyti wrote: Given a reference to "guc", the guc_to_i915() returns the pointer to "i915" private data. Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/gt/intel_gt.h| 5 + drivers/gpu/drm/i915/gt/uc/intel_guc.c| 2 +-

Re: [PATCH v2 04/11] drm/tests: Add test case for drm_internal_framebuffer_create()

2023-10-25 Thread Maxime Ripard
Hi, On Tue, Oct 24, 2023 at 04:09:55PM -0300, Carlos Eduardo Gallo Filho wrote: > Introduce a test to cover the creation of framebuffer with > modifier on a device that doesn't support it. > > Signed-off-by: Carlos Eduardo Gallo Filho > --- > v2: > - Reorder kunit cases alphabetically. > --- >

Re: [PATCH v2] drm/doc: ci: Require more context for flaky tests

2023-10-25 Thread Helen Koike
On 25/10/2023 11:24, Maxime Ripard wrote: Flaky tests can be very difficult to reproduce after the facts, which will make it even harder to ever fix. Let's document the metadata we agreed on to provide more context to anyone trying to address these fixes. Link: https://lore.kernel.org/dri-d

[PATCH v2 4/5] drm/i915: Use the new gt_to_guc() wrapper

2023-10-25 Thread Andi Shyti
Get the guc reference from the gt using the gt_to_guc() helper. Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/i915_debugfs_params.c | 5 +++-- drivers/gpu/drm/i915/selftests/intel_scheduler_helpers.c | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/driv

[PATCH v2 5/5] drm/i915/guc: Use the ce_to_guc() wrapper whenever possible

2023-10-25 Thread Andi Shyti
Get the guc reference from the ce using the ce_to_guc() helper. Just a leftover from previous cleanups. Signed-off-by: Andi Shyti --- 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_submiss

[PATCH v2 3/5] drm/i915/guc: Use the new gt_to_guc() wrapper

2023-10-25 Thread Andi Shyti
Get the guc reference from the gt using the gt_to_guc() helper. Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/gt/uc/intel_gsc_fw.c | 4 +-- drivers/gpu/drm/i915/gt/uc/intel_gsc_proxy.c | 3 +- drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c| 2 +- .../gpu/drm/i915/gt/uc/intel_guc_cap

[PATCH v2 2/5] drm/i915/gt: Create the gt_to_guc() wrapper

2023-10-25 Thread Andi Shyti
We already have guc_to_gt() and getting to guc from the GT it requires some mental effort. Add the gt_to_guc(). Given the reference to the "gt", the gt_to_guc() will return the pinter to the "guc". Update all the files under the gt/ directory. Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915

Re: [PATCH v2 03/11] drm/tests: Replace strcpy to strscpy on drm_test_framebuffer_create test

2023-10-25 Thread Maxime Ripard
On Tue, 24 Oct 2023 16:09:54 -0300, Carlos Eduardo Gallo Filho wrote: > Replace the use of strcpy to strscpy on the test_to_desc of the > drm_test_framebuffer_create test for better security and reliability. > > Signed-off-by: Carlos Eduardo Gallo Filho Acked-by: Maxime Ripard Thanks! Maxime

[PATCH v2 1/5] drm/i915/guc: Create the guc_to_i915() wrapper

2023-10-25 Thread Andi Shyti
Given a reference to "guc", the guc_to_i915() returns the pointer to "i915" private data. Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/gt/intel_gt.h| 5 + drivers/gpu/drm/i915/gt/uc/intel_guc.c| 2 +- drivers/gpu/drm/i915/gt/uc/intel_guc_capture.c| 2

[PATCH v2 0/5] Add gt_to_guc and guc_to_i915 helpers

2023-10-25 Thread Andi Shyti
Hi, while working on the GuC TLB invalidation these days, I just wished I had the two helpers I am submitting today: gt_to_guc() guc_to_i915() Now I have them, at the next GuC TLB invalidation my life will be easier :-) Andi Changelog: == - add the gt_to_guc() helper and change

Re: [PATCH v2 02/11] drm/tests: Add parameters to the drm_test_framebuffer_create test

2023-10-25 Thread Maxime Ripard
Hi, On Tue, Oct 24, 2023 at 04:09:53PM -0300, Carlos Eduardo Gallo Filho wrote: > Extend the existing test case to cover: > 1. Invalid flag atribute in the struct drm_mode_fb_cmd2. > 2. Pixel format which requires non-linear modifier with > DRM_FORMAT_MOD_LINEAR set. > 3. Non-zero buffer offset fo

Re: [PATCH v2 01/11] drm/tests: Stop using deprecated dev_private member on drm_framebuffer tests

2023-10-25 Thread Maxime Ripard
Hi, On Tue, Oct 24, 2023 at 04:09:52PM -0300, Carlos Eduardo Gallo Filho wrote: > The dev_private member of drm_device is deprecated and its use should > be avoided. Stop using it by embedding the drm_device onto a mock struct > with a void pointer like dev_private, using it instead. > > Also sta

[PATCH v2] drm/doc: ci: Require more context for flaky tests

2023-10-25 Thread Maxime Ripard
Flaky tests can be very difficult to reproduce after the facts, which will make it even harder to ever fix. Let's document the metadata we agreed on to provide more context to anyone trying to address these fixes. Link: https://lore.kernel.org/dri-devel/CAPj87rPbJ1V1-R7WMTHkDat2A4nwSd61Df9mdGH2P

Re: [PATCH] drm/doc: ci: Require more context for flaky tests

2023-10-25 Thread Maxime Ripard
On Wed, Oct 25, 2023 at 09:47:07AM -0300, Helen Koike wrote: > > > > > +  # Version: 6.6-rc1 > > > > > +  # Failure Rate: 100 > > > > > > Maybe also: > > > > > ># Pipeline url: > > > https://gitlab.freedesktop.org/helen.fornazier/linux/-/pipelines/1014435 > > > > Sounds like a good idea yeah

Re: [PATCH v2] drm/logicvc: Kconfig: select REGMAP and REGMAP_MMIO

2023-10-25 Thread Sui Jingfeng
Hi, On 2023/10/25 18:11, Paul Kocialkowski wrote: Hi, On Tue 20 Jun 23, 11:56, Sui Jingfeng wrote: Hi, On 2023/6/8 15:15, Paul Kocialkowski wrote: Hi, On Thu 08 Jun 23, 10:42, Sui Jingfeng wrote: drm/logicvc driver is depend on REGMAP and REGMAP_MMIO, should select this two kconfig option

Re: [PATCH v2 6/6] drm/vs: Add hdmi driver

2023-10-25 Thread Maxime Ripard
On Wed, Oct 25, 2023 at 06:39:57PM +0800, Keith Zhao wrote: > +static int starfive_hdmi_setup(struct starfive_hdmi *hdmi, > +struct drm_display_mode *mode) > +{ > + hdmi_modb(hdmi, STARFIVE_BIAS_CONTROL, STARFIVE_BIAS_ENABLE, > STARFIVE_BIAS_ENABLE); > + hdmi_wr

[PATCH] drm/amd/display: add kernel docs for dc_stream_forward_crc_window

2023-10-25 Thread Sagar Vashnav
Add kernel documentation for the dc_stream_forward_crc_window Signed-off-by: Sagar Vashnav --- drivers/gpu/drm/amd/display/dc/core/dc.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 17

dri-devel@lists.freedesktop.org

2023-10-25 Thread Maxime Ripard
On Wed, Oct 25, 2023 at 06:39:56PM +0800, Keith Zhao wrote: > +static struct drm_crtc_state * > +vs_crtc_atomic_duplicate_state(struct drm_crtc *crtc) > +{ > + struct vs_crtc_state *ori_state; > + struct vs_crtc_state *state; > + > + if (!crtc->state) > + return NULL; > + >

Re: Blank screen on boot of Linux 6.5 and later on Lenovo ThinkPad L570

2023-10-25 Thread Linux regression tracking (Thorsten Leemhuis)
On 25.10.23 15:23, Huacai Chen wrote: > On Wed, Oct 25, 2023 at 6:08 PM Thorsten Leemhuis > wrote: >> >> Javier, Dave, Sima, >> >> On 23.10.23 00:54, Evan Preston wrote: >>> On 2023-10-20 Fri 05:48pm, Huacai Chen wrote: On Fri, Oct 20, 2023 at 5:35 PM Linux regression tracking (Thorsten

Re: Blank screen on boot of Linux 6.5 and later on Lenovo ThinkPad L570

2023-10-25 Thread Javier Martinez Canillas
Huacai Chen writes: Hello, > On Wed, Oct 25, 2023 at 6:08 PM Thorsten Leemhuis > wrote: [...] >> >> This additional report makes me wonder if we should revert the culprit >> (60aebc9559492c ("drivers/firmware: Move sysfb_init() from >> device_initcall to subsys_initcall_sync") [v6.5-rc1]). Bu

[PATCH v2 2/2] drm/todo: Add entry to clean up former seltests suites

2023-10-25 Thread Maxime Ripard
Most of those suites are undocumented and aren't really clear about what they are testing. Let's add a TODO entry as a future task to get started into KUnit and DRM. Signed-off-by: Maxime Ripard --- Documentation/gpu/todo.rst | 17 + 1 file changed, 17 insertions(+) diff --git a

[PATCH v2 1/2] drm/tests: Remove slow tests

2023-10-25 Thread Maxime Ripard
Both the drm_buddy and drm_mm tests have been converted from selftest to kunit recently. However, a significant portion of them are trying to exert some part of their API over a huge number of iterations and with random variations of their parameters. They are thus more a way to discover new bugs

Re: Blank screen on boot of Linux 6.5 and later on Lenovo ThinkPad L570

2023-10-25 Thread Huacai Chen
On Wed, Oct 25, 2023 at 6:08 PM Thorsten Leemhuis wrote: > > Javier, Dave, Sima, > > On 23.10.23 00:54, Evan Preston wrote: > > On 2023-10-20 Fri 05:48pm, Huacai Chen wrote: > >> On Fri, Oct 20, 2023 at 5:35 PM Linux regression tracking (Thorsten > >> Leemhuis) wrote: > >>> On 09.10.23 10:54, Hua

[PATCH 2/2] drm/logicvc: Define max dimensions from USHRT_MAX

2023-10-25 Thread Paul Kocialkowski
Use the existing macro instead of redefining it. Signed-off-by: Paul Kocialkowski --- drivers/gpu/drm/logicvc/logicvc_regs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/logicvc/logicvc_regs.h b/drivers/gpu/drm/logicvc/logicvc_regs.h index 4aae27e9ba2b..0f

[PATCH 1/2] drm/logicvc: Avoid possible overflow in layer buffer setup variables

2023-10-25 Thread Paul Kocialkowski
The buffer_sel, voffset and hoffset values are calculated from u32 values and might overflow under certain conditions. Move them to u32 definitions instead of u8/u16 to avoid the issue. Signed-off-by: Paul Kocialkowski Reported-by: Dan Carpenter Fixes: efeeaefe9be5 ("drm: Add support for the Lo

Re: [Intel-gfx] [PATCH v4 3/3] drm/i915/gt: Timeout when waiting for idle in suspending

2023-10-25 Thread Tvrtko Ursulin
On 04/10/2023 18:59, Teres Alexis, Alan Previn wrote: On Thu, 2023-09-28 at 13:46 +0100, Tvrtko Ursulin wrote: On 27/09/2023 17:36, Teres Alexis, Alan Previn wrote: Thanks for taking the time to review this Tvrtko, replies inline below. alan:snip Main concern is that we need to be sure th

Re: [PATCH v2 1/6] dt-bindings: display: Add yamls for JH7110 display system

2023-10-25 Thread Krzysztof Kozlowski
On 25/10/2023 12:39, Keith Zhao wrote: > StarFive SoCs JH7110 display system: A nit, subject: drop second/last, redundant "yamls for". The "dt-bindings" prefix is already stating that these are bindings, so format is fixed. > lcd-controller bases verisilicon dc8200 IP, > and hdmi bases Innosilico

Re: [PATCH] drm/doc: ci: Require more context for flaky tests

2023-10-25 Thread Helen Koike
On 23/10/2023 12:09, Maxime Ripard wrote: On Fri, Oct 20, 2023 at 01:33:59AM -0300, Helen Koike wrote: On 19/10/2023 13:51, Helen Koike wrote: On 19/10/2023 06:46, Maxime Ripard wrote: Flaky tests can be very difficult to reproduce after the facts, which will make it even harder to ever fix

Re: [RFC PATCH 03/10] drm/mipi-dsi: add API for manual control over the DSI link power state

2023-10-25 Thread Maxime Ripard
On Thu, Oct 19, 2023 at 02:19:51PM +0300, Dmitry Baryshkov wrote: > On Thu, 19 Oct 2023 at 12:26, Maxime Ripard wrote: > > > > On Mon, Oct 16, 2023 at 07:53:48PM +0300, Dmitry Baryshkov wrote: > > > The MIPI DSI links do not fully fall into the DRM callbacks model. > > > > Explaining why would hel

Re: [PATCH] drm/i915/mtl: avoid stringop-overflow warning

2023-10-25 Thread Jani Nikula
On Tue, 24 Oct 2023, Andi Shyti wrote: > Hi Jani, > >> > static void rc6_res_reg_init(struct intel_rc6 *rc6) >> > { >> > - memset(rc6->res_reg, INVALID_MMIO_REG.reg, sizeof(rc6->res_reg)); >> >> That's just bollocks. memset() is byte granularity, while >> INVALID_MMIO_REG.reg is u32. If the va

Re: [PATCH v5 7/7] drm/i915: Implement fbdev emulation as in-kernel client

2023-10-25 Thread Hogander, Jouni
Hi Thomas, couple of minor comments and a question below. On Wed, 2023-09-27 at 12:26 +0200, Thomas Zimmermann wrote: > Replace all code that initializes or releases fbdev emulation > throughout the driver. Instead initialize the fbdev client by a > single call to i915_fbdev_setup() after i915 has

Re: Evoc proposal

2023-10-25 Thread Maira Canal
Hi David, EVoC is on hold at the current moment due to some bureaucracy issues. I'm CCing other possible mentors, but at the moment, I'm not sure if a EVoC project is possible. Best Regards, - Maíra On 10/24/23 22:57, DAVID WALTERS wrote: Hello, I have a draft of a proposal that I would lik

[PATCH v2 2/6] riscv: dts: starfive: jh7110: add dc controller and hdmi node

2023-10-25 Thread Keith Zhao
Add the dc controller and hdmi node for the Starfive JH7110 SoC. Signed-off-by: Keith Zhao --- .../jh7110-starfive-visionfive-2.dtsi | 91 +++ arch/riscv/boot/dts/starfive/jh7110.dtsi | 41 + 2 files changed, 132 insertions(+) diff --git a/arch/riscv/boot/dt

[PATCH v2 3/6] drm/fourcc: Add drm/vs tiled modifiers

2023-10-25 Thread Keith Zhao
For each modifier, add the corresponding description Signed-off-by: Keith Zhao --- include/uapi/drm/drm_fourcc.h | 57 +++ 1 file changed, 57 insertions(+) diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h index 8db7fd3f7..a580a848c 10064

[PATCH] drm: mediatek: mtk_disp_gamma: Fix breakage due to merge issue

2023-10-25 Thread AngeloGioacchino Del Regno
While the commit that was sent to the mailing lists was fine, something happened during merge and the mtk_gamma_set() function got broken as a writel() was turned into a readl(). Fix that by changing that back to the expected writel(). Fixes: a6b39cd248f3 ("drm/mediatek: De-commonize disp_aal/dis

Re: [PATCH v3 1/3] pwm: make it possible to apply pwm changes in atomic context

2023-10-25 Thread Uwe Kleine-König
Hello, On Wed, Oct 25, 2023 at 10:53:27AM +0100, Sean Young wrote: > On Mon, Oct 23, 2023 at 02:34:17PM +0100, Daniel Thompson wrote: > > On Sun, Oct 22, 2023 at 11:46:22AM +0100, Sean Young wrote: > > > On Sat, Oct 21, 2023 at 11:08:22AM +0200, Hans de Goede wrote: > > > > On 10/19/23 12:51, Uwe

[PATCH v2 0/6] DRM driver for verisilicon

2023-10-25 Thread Keith Zhao
This patch is a drm driver for Starfive Soc JH7110, I am sending Drm driver part and HDMI driver part. We used GEM framework for buffer management , and for buffer allocation,we use DMA APIs. the Starfive HDMI servers as interface between a LCD Controller and a HDMI bus. A HDMI TX consists of o

[PATCH v2 4/6] drm/vs: Register DRM device

2023-10-25 Thread Keith Zhao
Implement drm device registration interface Thomas Zimmermann wrote: You are replacing almost all of the GEM DMA object's helper code. Either inherit directly from drm_gem_object drop the dependency entirely, or you could try to fit your code into GEM DMA as well Eventually I found an answer and

  1   2   >