Re: [PATCH] drm/amdgpu: Add 'modeset' module parameter

2022-05-11 Thread Javier Martinez Canillas
On 5/12/22 08:17, Christian König wrote: > Am 11.05.22 um 20:36 schrieb Alex Deucher: >> On Wed, May 11, 2022 at 2:20 PM Lyude Paul wrote: >>> Many DRM drivers feature a 'modeset' argument, which can be used to >>> enable/disable the entire driver (as opposed to passing nomodeset to the >>> kernel

Re: [PATCH] drm/amdgpu: Add 'modeset' module parameter

2022-05-11 Thread Christian König
Am 11.05.22 um 20:36 schrieb Alex Deucher: On Wed, May 11, 2022 at 2:20 PM Lyude Paul wrote: Many DRM drivers feature a 'modeset' argument, which can be used to enable/disable the entire driver (as opposed to passing nomodeset to the kernel, which would disable modesetting globally and make it

[PULL] drm-intel-fixes

2022-05-11 Thread Joonas Lahtinen
Hi Dave & Daniel, One fix for memory corruption under heavy load (#5732, Cc: stable). Regards, Joonas *** drm-intel-fixes-2022-05-12: Fix for #5732: (Cc stable) kernel memory corruption when running a lot of OpenCL tests in parallel The following changes since commit c5eb0a61238dd6faf37f58c9

[REPORT] syscall reboot + umh + firmware fallback

2022-05-11 Thread Byungchul Park
+cc mcg...@kernel.org (firmware) +cc h...@sgi.com (syscall reboot) Hi Luis, Robin and folks, I'm developing a tool for lockup detection, DETP(Dependency Tracker). I got a DEPT report from Hyeonggon - Thanks, Hyeonggon! It doesn't mean the code *definitely* has a deadlock. However, it looks probl

Re: [PATCH 2/2] drm/i915/hdmi: Prune unsupported modes as per HDMI2.1 spec

2022-05-11 Thread Nautiyal, Ankit K
On 5/10/2022 12:31 PM, Ville Syrjälä wrote: On Mon, May 09, 2022 at 03:01:30PM +0530, Ankit Nautiyal wrote: As per Sec 7.8.1 of HDMI2.1 spec, sources that support modes: 4K100, 4K120, 8K50, 8K60 must support these modes in at least one of the below formats: i) uncompressed FRL, 420 format and

[pull] amdgpu, amdkfd drm-next-5.19

2022-05-11 Thread Alex Deucher
Hi Dave, Daniel, New stuff for 5.19. Mostly new IP block support. The following changes since commit 3da2c38231a4c62dafdbd762a199cfacaccd0533: drm/amdgpu: Free user pages if amdgpu_cs_parser_bos failed (2022-04-28 17:49:04 -0400) are available in the Git repository at: https://gitlab.fre

Re: [PATCH v1 01/15] mm: add zone device coherent type memory support

2022-05-11 Thread Alistair Popple
Alex Sierra writes: [...] > diff --git a/mm/rmap.c b/mm/rmap.c > index fedb82371efe..d57102cd4b43 100644 > --- a/mm/rmap.c > +++ b/mm/rmap.c > @@ -1995,7 +1995,8 @@ void try_to_migrate(struct folio *folio, enum ttu_flags > flags) > TTU_SYNC))) >

Re: [PATCH v1 04/15] mm: add device coherent checker to remove migration pte

2022-05-11 Thread Alistair Popple
"Sierra Guiza, Alejandro (Alex)" writes: > @apop...@nvidia.com Could you please check this patch? It's somehow related > to migrate_device_page() for long term device coherent pages. > > Regards, > Alex Sierra >> -Original Message- >> From: amd-gfx On Behalf Of Alex >> Sierra >> Sent:

Re: [Freedreno] Adding CI results to the kernel tree was Re: [RFC v2] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Theodore Ts'o
On Wed, May 11, 2022 at 06:33:32AM -0700, Rob Clark wrote: > > And ofc we want the expectations to be in the kernel tree because > there could be, for example, differences between -fixes and -next > branches. (Or even stable kernel branches if/when we get to the point > of running CI on those.)

Re: [PATCH v3 1/4] drm/dp: Add wait_hpd_asserted() callback to struct drm_dp_aux

2022-05-11 Thread Stephen Boyd
Quoting Douglas Anderson (2022-04-18 10:17:54) > Sometimes it's useful for users of the DP AUX bus (like panels) to be > able to poll HPD. Let's add a callback that allows DP AUX busses > drivers to provide this. > > Suggested-by: Dmitry Baryshkov > Signed-off-by: Douglas Anderson > --- > Left Dm

Re: [PATCH 1/2] drm/msm: don't free the IRQ if it was not requested

2022-05-11 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-05-11 18:30:55) > On 12/05/2022 04:29, Stephen Boyd wrote: > > Quoting Dmitry Baryshkov (2022-05-11 18:01:31) > >> On Thu, 12 May 2022 at 03:54, Stephen Boyd wrote: > >>> > >>> Quoting Dmitry Baryshkov (2022-05-06 18:00:20) > >>> > >>> Does this supersede commit 0101

Re: [PATCH 1/2] drm/msm: don't free the IRQ if it was not requested

2022-05-11 Thread Dmitry Baryshkov
On 12/05/2022 04:29, Stephen Boyd wrote: Quoting Dmitry Baryshkov (2022-05-11 18:01:31) On Thu, 12 May 2022 at 03:54, Stephen Boyd wrote: Quoting Dmitry Baryshkov (2022-05-06 18:00:20) Does this supersede commit 01013ba9bbdd ("drm/msm/disp/dpu1: avoid clearing hw interrupts if hw_intr is nul

Re: [PATCH 1/2] drm/msm: don't free the IRQ if it was not requested

2022-05-11 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-05-11 18:01:31) > On Thu, 12 May 2022 at 03:54, Stephen Boyd wrote: > > > > Quoting Dmitry Baryshkov (2022-05-06 18:00:20) > > > > Does this supersede commit 01013ba9bbdd ("drm/msm/disp/dpu1: avoid > > clearing hw interrupts if hw_intr is null during drm uninit")? I

Re: [PATCH v5] drm/msm/dp: Always clear mask bits to disable interrupts at dp_ctrl_reset_irq_ctrl()

2022-05-11 Thread Dmitry Baryshkov
On Thu, 12 May 2022 at 04:01, Stephen Boyd wrote: > > Quoting Dmitry Baryshkov (2022-05-11 17:41:50) > > On 12/05/2022 03:02, Kuogee Hsieh wrote: > > > diff --git a/drivers/gpu/drm/msm/dp/dp_ctrl.c > > > b/drivers/gpu/drm/msm/dp/dp_ctrl.c > > > index af7a80c..f3e333e 100644 > > > --- a/drivers/gp

Re: [PATCH 1/2] drm/msm: don't free the IRQ if it was not requested

2022-05-11 Thread Dmitry Baryshkov
On Thu, 12 May 2022 at 03:54, Stephen Boyd wrote: > > Quoting Dmitry Baryshkov (2022-05-06 18:00:20) > > As msm_drm_uninit() is called from the msm_drm_init() error path, > > additional care should be necessary as not to call the free_irq() for > > the IRQ that was not requested before (because an

Re: [PATCH v5] drm/msm/dp: Always clear mask bits to disable interrupts at dp_ctrl_reset_irq_ctrl()

2022-05-11 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-05-11 17:41:50) > On 12/05/2022 03:02, Kuogee Hsieh wrote: > > diff --git a/drivers/gpu/drm/msm/dp/dp_ctrl.c > > b/drivers/gpu/drm/msm/dp/dp_ctrl.c > > index af7a80c..f3e333e 100644 > > --- a/drivers/gpu/drm/msm/dp/dp_ctrl.c > > +++ b/drivers/gpu/drm/msm/dp/dp_ctrl.c

Re: [PATCH 1/2] drm/msm: don't free the IRQ if it was not requested

2022-05-11 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-05-06 18:00:20) > As msm_drm_uninit() is called from the msm_drm_init() error path, > additional care should be necessary as not to call the free_irq() for > the IRQ that was not requested before (because an error occured earlier > than the request_irq() call). > > Th

Re: [PATCH] drm/msm/dpu: remove NULL-ness check in dpu_hw_intr_destroy

2022-05-11 Thread Stephen Boyd
Quoting Dmitry Baryshkov (2022-05-07 04:40:09) > There is no need to check that kfree() argument is not NULL. Remove > extra check and call kfree() unconditionally. > > Reported-by: kernel test robot > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Stephen Boyd

Re: [PATCH v5] drm/msm/dp: Always clear mask bits to disable interrupts at dp_ctrl_reset_irq_ctrl()

2022-05-11 Thread Dmitry Baryshkov
On 12/05/2022 03:02, Kuogee Hsieh wrote: dp_catalog_ctrl_reset() will software reset DP controller. But it will not reset programmable registers to default value. DP driver still have to clear mask bits to interrupt status registers to disable interrupts after software reset of controller. At cu

[PATCH v5] drm/msm/dp: Always clear mask bits to disable interrupts at dp_ctrl_reset_irq_ctrl()

2022-05-11 Thread Kuogee Hsieh
dp_catalog_ctrl_reset() will software reset DP controller. But it will not reset programmable registers to default value. DP driver still have to clear mask bits to interrupt status registers to disable interrupts after software reset of controller. At current implementation, dp_ctrl_reset_irq_ctr

Re: [PATCH] drm/msm/dpu: add DRM_MODE_ROTATE_180 back to supported rotations

2022-05-11 Thread Stephen Boyd
Quoting Abhinav Kumar (2022-05-11 15:27:10) > DRM_MODE_ROTATE_180 was previously marked as supported even > for devices not supporting inline rotation. > > This is true because the SSPPs can always flip the image. > > After inline rotation support changes, this bit was removed > and kms_rotation_cr

Re: [PATCH] drm/msm/dpu: add DRM_MODE_ROTATE_180 back to supported rotations

2022-05-11 Thread Dmitry Baryshkov
On 12/05/2022 01:27, Abhinav Kumar wrote: DRM_MODE_ROTATE_180 was previously marked as supported even for devices not supporting inline rotation. This is true because the SSPPs can always flip the image. After inline rotation support changes, this bit was removed and kms_rotation_crc IGT test s

Re: [PATCH 1/2] drm/msm/dsi: move DSI host powerup to modeset time

2022-05-11 Thread Dmitry Baryshkov
On 12/05/2022 01:07, Rob Clark wrote: On Wed, May 11, 2022 at 2:49 PM Dmitry Baryshkov wrote: On 11/05/2022 23:06, Doug Anderson wrote: Hi, On Tue, Dec 7, 2021 at 2:29 PM Dmitry Baryshkov wrote: The DSI subsystem does not fully fall into the pre-enable/enable system of callbacks, since ty

Re: [PATCH v2] Revert "drm/msm/dsi: move DSI host powerup to modeset time"

2022-05-11 Thread Dmitry Baryshkov
On 12/05/2022 02:15, Douglas Anderson wrote: This reverts commit 7d8e9a90509f1bd1d193a0c93cb8d1dbad9049fb. The patch causes sc7180 Chromebooks that use the parade-ps8640 bridge chip to fail to turn the display back on after it turns off. Let's revert to get these devices back to a working state

Re: [PATCH v4] drm/msm/dp: Always clear mask bits to disable interrupts at dp_ctrl_reset_irq_ctrl()

2022-05-11 Thread Kuogee Hsieh
On 5/11/2022 2:47 PM, Dmitry Baryshkov wrote: On 12/05/2022 00:40, Kuogee Hsieh wrote: dp_catalog_ctrl_reset() will software reset DP controller. But it will not reset programmable registers to default value. DP driver still have to clear mask bits to interrupt status registers to disable inte

[PATCH v2] Revert "drm/msm/dsi: move DSI host powerup to modeset time"

2022-05-11 Thread Douglas Anderson
This reverts commit 7d8e9a90509f1bd1d193a0c93cb8d1dbad9049fb. The patch causes sc7180 Chromebooks that use the parade-ps8640 bridge chip to fail to turn the display back on after it turns off. Let's revert to get these devices back to a working state. It seems like the DSI powerup problem is some

Re: [PATCH] Revert "FROMGIT: drm/msm/dsi: move DSI host powerup to modeset time"

2022-05-11 Thread Doug Anderson
Hi, On Wed, May 11, 2022 at 4:07 PM Douglas Anderson wrote: > > This reverts commit c7e4a2a72e696aa6aed2c8b651279f491bb096fe. > > The patch causes sc7180 Chromebooks that use the parade-ps8640 bridge > chip to fail to turn the display back on after it turns off. > > Let's revert to get these devi

[PATCH] Revert "FROMGIT: drm/msm/dsi: move DSI host powerup to modeset time"

2022-05-11 Thread Douglas Anderson
This reverts commit c7e4a2a72e696aa6aed2c8b651279f491bb096fe. The patch causes sc7180 Chromebooks that use the parade-ps8640 bridge chip to fail to turn the display back on after it turns off. Let's revert to get these devices back to a working state. It seems like the DSI powerup problem is some

[PATCH v3 2/2] drm/probe-helper: For DP, add 640x480 if all other modes are bad

2022-05-11 Thread Douglas Anderson
As per Displayport spec section 5.2.1.2 ("Video Timing Format") says that all detachable sinks shall support 640x480 @60Hz as a fail safe mode. A DP compliance test expected us to utilize the above fact when all modes it presented to the DP source were not achievable. It presented only modes that

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

2022-05-11 Thread Douglas Anderson
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 or another goto. This change is intended to be a

Re: [PATCH] drm/msm/dpu: add DRM_MODE_ROTATE_180 back to supported rotations

2022-05-11 Thread Jessica Zhang
On 5/11/2022 3:27 PM, Abhinav Kumar wrote: DRM_MODE_ROTATE_180 was previously marked as supported even for devices not supporting inline rotation. This is true because the SSPPs can always flip the image. After inline rotation support changes, this bit was removed and kms_rotation_crc IGT te

[PATCH] drm/msm/dpu: add DRM_MODE_ROTATE_180 back to supported rotations

2022-05-11 Thread Abhinav Kumar
DRM_MODE_ROTATE_180 was previously marked as supported even for devices not supporting inline rotation. This is true because the SSPPs can always flip the image. After inline rotation support changes, this bit was removed and kms_rotation_crc IGT test starts skipping now whereas it was previously

Re: [PATCH v2] mgag200: Enable atomic gamma lut update

2022-05-11 Thread kernel test robot
Hi Jocelyn, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on tegra-drm/drm/tegra/for-next] [also build test WARNING on v5.18-rc6] [cannot apply to drm/drm-next drm-tip/drm-tip airlied/drm-next next-20220511] [If your patch is applied to the wrong git tree

Re: [PATCH 1/2] drm/msm/dsi: move DSI host powerup to modeset time

2022-05-11 Thread Rob Clark
On Wed, May 11, 2022 at 2:49 PM Dmitry Baryshkov wrote: > > On 11/05/2022 23:06, Doug Anderson wrote: > > Hi, > > > > On Tue, Dec 7, 2021 at 2:29 PM Dmitry Baryshkov > > wrote: > >> > >> The DSI subsystem does not fully fall into the pre-enable/enable system > >> of callbacks, since typically DSI

Re: [PATCH 1/2] drm/msm/dsi: move DSI host powerup to modeset time

2022-05-11 Thread Dmitry Baryshkov
On 11/05/2022 23:06, Doug Anderson wrote: Hi, On Tue, Dec 7, 2021 at 2:29 PM Dmitry Baryshkov wrote: The DSI subsystem does not fully fall into the pre-enable/enable system of callbacks, since typically DSI device bridge drivers expect to be able to communicate with DSI devices at the pre-ena

Re: [PATCH v4] drm/msm/dp: Always clear mask bits to disable interrupts at dp_ctrl_reset_irq_ctrl()

2022-05-11 Thread Dmitry Baryshkov
On 12/05/2022 00:40, Kuogee Hsieh wrote: dp_catalog_ctrl_reset() will software reset DP controller. But it will not reset programmable registers to default value. DP driver still have to clear mask bits to interrupt status registers to disable interrupts after software reset of controller. This p

[PATCH v4] drm/msm/dp: Always clear mask bits to disable interrupts at dp_ctrl_reset_irq_ctrl()

2022-05-11 Thread Kuogee Hsieh
dp_catalog_ctrl_reset() will software reset DP controller. But it will not reset programmable registers to default value. DP driver still have to clear mask bits to interrupt status registers to disable interrupts after software reset of controller. This patch removes the enable flag condition chec

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

2022-05-11 Thread Doug Anderson
Hi, On Wed, May 11, 2022 at 12:14 AM Thomas Zimmermann wrote: > > Hi > > Am 10.05.22 um 22:51 schrieb 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. When userspace looks at

Re: [PATCH v3] drm/msm/dp: Always clear mask bits to disable interrupts at dp_ctrl_reset_irq_ctrl()

2022-05-11 Thread Dmitry Baryshkov
On 11/05/2022 23:04, Kuogee Hsieh wrote: dp_catalog_ctrl_reset() will software reset DP controller. But it will not reset programmable registers to default value. DP driver still have to clear mask bits to interrupt status registers to disable interrupts after software reset of controller. This p

Re: [PATCH v2] mgag200: Enable atomic gamma lut update

2022-05-11 Thread kernel test robot
Hi Jocelyn, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on tegra-drm/drm/tegra/for-next] [also build test WARNING on v5.18-rc6] [cannot apply to drm/drm-next drm-tip/drm-tip airlied/drm-next next-20220511] [If your patch is applied to the wrong git tree

Re: [Freedreno] [RFC v2] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Daniel Vetter
On Wed, 11 May 2022 at 22:32, Rob Clark wrote: > > On Wed, May 11, 2022 at 12:14 PM Daniel Vetter wrote: > > > > On Wed, 11 May 2022 at 19:46, Rob Clark wrote: > > > > > > On Wed, May 11, 2022 at 10:12 AM Daniel Vetter wrote: > > > > > > > > On Tue, 10 May 2022 at 22:26, Rob Clark wrote: > > >

Re: [Freedreno] [RFC v2] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Rob Clark
On Wed, May 11, 2022 at 12:14 PM Daniel Vetter wrote: > > On Wed, 11 May 2022 at 19:46, Rob Clark wrote: > > > > On Wed, May 11, 2022 at 10:12 AM Daniel Vetter wrote: > > > > > > On Tue, 10 May 2022 at 22:26, Rob Clark wrote: > > > > > > > > On Tue, May 10, 2022 at 12:39 PM Jessica Zhang > > >

Re: [Freedreno] Adding CI results to the kernel tree was Re: [RFC v2] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Rob Clark
On Wed, May 11, 2022 at 12:12 PM Linus Torvalds wrote: > > On Wed, May 11, 2022 at 12:08 PM Linus Torvalds > wrote: > > > > The kernel tree might have just the expected *failures* listed, if > > there are any. Presumably the ci tree has to have the expected results > > anyway, so what's the advan

Re: Adding CI results to the kernel tree was Re: [RFC v2] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Rob Clark
On Wed, May 11, 2022 at 12:08 PM Linus Torvalds wrote: > > On Wed, May 11, 2022 at 11:40 AM Rob Clark wrote: > > > > It is missing in this revision of the RFC, but the intention is to > > have the gitlab-ci.yml point to a specific commit SHA in the > > gfx-ci/drm-ci[1] tree, to solve the problem

Re: [PATCH 1/2] drm/msm/dsi: move DSI host powerup to modeset time

2022-05-11 Thread Doug Anderson
Hi, On Tue, Dec 7, 2021 at 2:29 PM Dmitry Baryshkov wrote: > > The DSI subsystem does not fully fall into the pre-enable/enable system > of callbacks, since typically DSI device bridge drivers expect to be > able to communicate with DSI devices at the pre-enable() callback. The > reason is that f

[PATCH v3] drm/msm/dp: Always clear mask bits to disable interrupts at dp_ctrl_reset_irq_ctrl()

2022-05-11 Thread Kuogee Hsieh
dp_catalog_ctrl_reset() will software reset DP controller. But it will not reset programmable registers to default value. DP driver still have to clear mask bits to interrupt status registers to disable interrupts after software reset of controller. This patch removes the enable flag condition chec

Re: [PATCH v6 4/4] ALSA: hda - identify when audio is provided by a video driver

2022-05-11 Thread Daniel Vetter
On Mon, May 09, 2022 at 06:23:39PM +0200, Mauro Carvalho Chehab wrote: > On some devices, the hda driver needs to hook into a video driver, > in order to be able to properly access the audio hardware and/or > the power management function. > > That's the case of several snd_hda_intel devices that

Re: Improve TTMs empty object handling

2022-05-11 Thread Daniel Vetter
On Mon, May 09, 2022 at 03:09:40PM +0200, Christian König wrote: > Hi everyone, > > re-sending this because Daniel was requesting a background why this is > useful. Thanks a lot for typing this up. To make sure this isn't lost, could you add a patch to at least add this as a comment to ttm_buffer

Re: Adding CI results to the kernel tree was Re: [RFC v2] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Daniel Vetter
On Wed, May 11, 2022 at 10:33:06AM -0700, Linus Torvalds wrote: > On Tue, May 10, 2022 at 10:07 PM Dave Airlie wrote: > > > > > And use it to store expectations about what the drm/msm driver is > > > supposed to pass in the IGT test suite. > > > > I wanted to loop in Linus/Greg to see if there are

Re: Adding CI results to the kernel tree was Re: [RFC v2] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Linus Torvalds
On Wed, May 11, 2022 at 12:08 PM Linus Torvalds wrote: > > The kernel tree might have just the expected *failures* listed, if > there are any. Presumably the ci tree has to have the expected results > anyway, so what's the advantage of listing non-failures? .. put another way: I think a list of "

Re: [Freedreno] [RFC v2] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Daniel Vetter
On Wed, 11 May 2022 at 19:46, Rob Clark wrote: > > On Wed, May 11, 2022 at 10:12 AM Daniel Vetter wrote: > > > > On Tue, 10 May 2022 at 22:26, Rob Clark wrote: > > > > > > On Tue, May 10, 2022 at 12:39 PM Jessica Zhang > > > wrote: > > > > > > > > > > > > > > > > On 5/10/2022 7:13 AM, Tomeu Viz

Re: [PATCH v7 3/7] drm/i915: Prepare for multiple GTs

2022-05-11 Thread Ceraolo Spurio, Daniele
On 3/18/2022 4:39 PM, Andi Shyti wrote: From: Tvrtko Ursulin On a multi-tile platform, each tile has its own registers + GGTT space, and BAR 0 is extended to cover all of them. Up to four GTs are supported in i915->gt[], with slot zero shadowing the existing i915->gt0 to enable source compa

Re: [PATCH v4 11/15] drm/shmem-helper: Add generic memory shrinker

2022-05-11 Thread Daniel Vetter
On Wed, May 11, 2022 at 07:06:18PM +0300, Dmitry Osipenko wrote: > On 5/11/22 16:09, Daniel Vetter wrote: > > I'd like to ask you to reduce the scope of the patchset and build the > > shrinker only for virtio-gpu. I know that I first suggested to build > > upon shmem helpers, but it see

Re: Adding CI results to the kernel tree was Re: [RFC v2] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Linus Torvalds
On Wed, May 11, 2022 at 11:40 AM Rob Clark wrote: > > It is missing in this revision of the RFC, but the intention is to > have the gitlab-ci.yml point to a specific commit SHA in the > gfx-ci/drm-ci[1] tree, to solve the problem of keeping the results in > sync with the expectations. Ie. a kerne

Re: [PATCH v4 10/15] drm/shmem-helper: Take reservation lock instead of drm_gem_shmem locks

2022-05-11 Thread Daniel Vetter
On Wed, May 11, 2022 at 06:40:32PM +0300, Dmitry Osipenko wrote: > On 5/11/22 18:29, Daniel Vetter wrote: > > On Wed, May 11, 2022 at 06:14:00PM +0300, Dmitry Osipenko wrote: > >> On 5/11/22 17:24, Christian König wrote: > >>> Am 11.05.22 um 15:00 schrieb Daniel Vetter: > On Tue, May 10, 2022

Re: [PATCH v1 13/15] mm: handling Non-LRU pages returned by vm_normal_pages

2022-05-11 Thread Jason Gunthorpe
On Thu, May 05, 2022 at 04:34:36PM -0500, Alex Sierra wrote: > diff --git a/mm/memory.c b/mm/memory.c > index 76e3af9639d9..892c4cc54dc2 100644 > +++ b/mm/memory.c > @@ -621,6 +621,13 @@ struct page *vm_normal_page(struct vm_area_struct *vma, > unsigned long addr, > if (is_zero_pfn(

Re: [PATCH v5 10/10] drm/msm: Implement HDCP 1.x using the new drm HDCP helpers

2022-05-11 Thread Dmitry Baryshkov
On 11/04/2022 23:47, Sean Paul wrote: From: Sean Paul This patch adds HDCP 1.x support to msm DP connectors using the new HDCP helpers. As a note, msm drm driver already supports HDCP on the HDMI interface. Can it also be converted to use new helpers? Cc: Stephen Boyd Cc: Abhinav Kumar

Re: Adding CI results to the kernel tree was Re: [RFC v2] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Rob Clark
On Wed, May 11, 2022 at 10:33 AM Linus Torvalds wrote: > > On Tue, May 10, 2022 at 10:07 PM Dave Airlie wrote: > > > > > And use it to store expectations about what the drm/msm driver is > > > supposed to pass in the IGT test suite. > > > > I wanted to loop in Linus/Greg to see if there are any i

Re: [PATCH] drm/i915: Use i915_gem_object_ggtt_pin_ww for reloc_iomap

2022-05-11 Thread Maarten Lankhorst
Op 11-05-2022 om 20:23 schreef Matthew Auld: > On 11/05/2022 12:52, Maarten Lankhorst wrote: >> Instead of its own path, use the common path when it doesn't result >> in evicting any vma. This fixes the case where we don't wait for >> binding. >> > > https://gitlab.freedesktop.org/drm/intel/-/issue

Re: [PATCH] drm/amdgpu: Add 'modeset' module parameter

2022-05-11 Thread Alex Deucher
On Wed, May 11, 2022 at 2:20 PM Lyude Paul wrote: > > Many DRM drivers feature a 'modeset' argument, which can be used to > enable/disable the entire driver (as opposed to passing nomodeset to the > kernel, which would disable modesetting globally and make it difficult to > load amdgpu afterwards)

[PATCH 3/3] drm/client: Don't add new command-line mode

2022-05-11 Thread Thomas Zimmermann
Don't add a mode for the kernel's command-line parameters from within the DRM client code. Doing so can result in an unusable display. If there's no compatible command-line mode, the client will use one of the connector's preferred modes. All mode creation and validation has to be performed by the

[PATCH 1/3] drm: Always warn if user-defined modes are not supported

2022-05-11 Thread Thomas Zimmermann
Print a warning if a user-specifed display mode is not supported by the display pipeline. Users specified the display mode on the kernel command line with the use of the video= parameter. Setting an unsupported mode will leave the console blank, so we should at least let the user know why. Signed-

[PATCH 2/3] drm/client: Look for command-line modes first

2022-05-11 Thread Thomas Zimmermann
When picking a mode, first look for modes that have been specified by the user on the kernel's command line. Only if that fails, use the existing heuristic of picking a nearby mode from it's various parameters. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/drm_client_modeset.c | 11 ++

[PATCH 0/3] drm/client: Fix display-mode selection

2022-05-11 Thread Thomas Zimmermann
Pick user-defined display mode in DRM clients if the mode has been validated by the driver. Otherwise pick a preferred display mode. Booting the kernel with video= and giving an unsupported display mode can easily turn the display unusable. This is best tested by booting simpledrm with a display m

Re: [PATCH 1/2] dt-bindings: msm/dp: List supplies in the bindings

2022-05-11 Thread Doug Anderson
Hi, On Fri, May 6, 2022 at 6:36 AM Sankeerth Billakanti (QUIC) wrote: > > >> >> Our internal power grid documents list the regulators as > >> >> VDD_A_*_1P2 and VDD_A_*_0P9 for all the platforms. > >> > > >> >Do your internal power grid documents indicate what these supplies > >> >are powering? T

Re: [PATCH] drm/i915: Use i915_gem_object_ggtt_pin_ww for reloc_iomap

2022-05-11 Thread Matthew Auld
On 11/05/2022 12:52, Maarten Lankhorst wrote: Instead of its own path, use the common path when it doesn't result in evicting any vma. This fixes the case where we don't wait for binding. https://gitlab.freedesktop.org/drm/intel/-/issues/5806 If I'm reading that correctly waiting for the bind

[PATCH] drm/amdgpu: Add 'modeset' module parameter

2022-05-11 Thread Lyude Paul
Many DRM drivers feature a 'modeset' argument, which can be used to enable/disable the entire driver (as opposed to passing nomodeset to the kernel, which would disable modesetting globally and make it difficult to load amdgpu afterwards). Apparently amdgpu is actually missing this however, so let'

Re: [Freedreno] [RFC v2] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Rob Clark
On Wed, May 11, 2022 at 10:12 AM Daniel Vetter wrote: > > On Tue, 10 May 2022 at 22:26, Rob Clark wrote: > > > > On Tue, May 10, 2022 at 12:39 PM Jessica Zhang > > wrote: > > > > > > > > > > > > On 5/10/2022 7:13 AM, Tomeu Vizoso wrote: > > > > And use it to store expectations about what the drm

[pull] amdgpu drm-fixes-5.18

2022-05-11 Thread Alex Deucher
Hi Dave, Daniel, Fixes for 5.18. The following changes since commit 5727375215b0915f28806c337a7ba9835efd340b: Merge tag 'drm-msm-fixes-2022-04-30' of https://gitlab.freedesktop.org/drm/msm into drm-fixes (2022-05-06 11:22:03 +1000) are available in the Git repository at: https://gitlab.f

Re: [PATCH v2 3/3] drm/panel: introduce ebbg,ft8719 panel

2022-05-11 Thread Sam Ravnborg
Hi Joel, On Wed, May 11, 2022 at 10:58:11AM +0530, Joel Selvaraj wrote: > Add DRM panel driver for EBBG FT8719 6.18" 2246x1080 DSI video mode > panel, which can be found on some Xiaomi Poco F1 phones. The panel's > backlight is managed through QCOM WLED driver. > > Signed-off-by: Joel Selvaraj D

Re: [PATCH v5 7/7] fbdev: Make registered_fb[] private to fbmem.c

2022-05-11 Thread Javier Martinez Canillas
Hello Guenter, On 5/11/22 19:17, Guenter Roeck wrote: > On 5/11/22 10:00, Sam Ravnborg wrote: [snip] >>> struct fb_info *registered_fb[FB_MAX] __read_mostly; >>> -EXPORT_SYMBOL(registered_fb); >>> - >>> int num_registered_fb __read_mostly; >>> +#if IS_ENABLED(CONFIG_FB_OLPC_DCON) >>> +EXPORT

Re: Adding CI results to the kernel tree was Re: [RFC v2] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Linus Torvalds
On Tue, May 10, 2022 at 10:07 PM Dave Airlie wrote: > > > And use it to store expectations about what the drm/msm driver is > > supposed to pass in the IGT test suite. > > I wanted to loop in Linus/Greg to see if there are any issues raised > by adding CI results file to the tree in their minds, o

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

2022-05-11 Thread Marek Szyprowski
d a prototype of such solution. This approach finally >> resolved all the initialization issues! The bridge chain finally matches >> the hardware, no hack are needed, and everything is controlled by the >> DRM core. This prototype also includes the Jagan's patches, which ad

Re: [Freedreno] Adding CI results to the kernel tree was Re: [RFC v2] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Rob Clark
On Wed, May 11, 2022 at 9:43 AM Daniel Vetter wrote: > > On Wed, 11 May 2022 at 15:33, Rob Clark wrote: > > On Wed, May 11, 2022 at 4:50 AM Greg Kroah-Hartman > > wrote: > > > > > > On Wed, May 11, 2022 at 12:26:05PM +0200, Michel Dänzer wrote: > > > > On 2022-05-11 08:22, Greg Kroah-Hartman wro

Re: [PATCH v5 7/7] fbdev: Make registered_fb[] private to fbmem.c

2022-05-11 Thread Guenter Roeck
On 5/11/22 10:00, Sam Ravnborg wrote: Hi Javier. On Wed, May 11, 2022 at 01:32:30PM +0200, Javier Martinez Canillas wrote: From: Daniel Vetter Well except when the olpc dcon fbdev driver is enabled, that thing digs around in there in rather unfixable ways. Cc oldc_dcon maintainers as fyi.

Re: [Freedreno] [RFC v2] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Daniel Vetter
On Tue, 10 May 2022 at 22:26, Rob Clark wrote: > > On Tue, May 10, 2022 at 12:39 PM Jessica Zhang > wrote: > > > > > > > > On 5/10/2022 7:13 AM, Tomeu Vizoso wrote: > > > And use it to store expectations about what the drm/msm driver is > > > supposed to pass in the IGT test suite. > > > > > > Al

Re: [PATCH v5 7/7] fbdev: Make registered_fb[] private to fbmem.c

2022-05-11 Thread Sam Ravnborg
Hi Javier. On Wed, May 11, 2022 at 01:32:30PM +0200, Javier Martinez Canillas wrote: > From: Daniel Vetter > > Well except when the olpc dcon fbdev driver is enabled, that thing > digs around in there in rather unfixable ways. > > Cc oldc_dcon maintainers as fyi. Another way to fix this is to

Re: [Freedreno] Adding CI results to the kernel tree was Re: [RFC v2] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Daniel Vetter
On Wed, 11 May 2022 at 15:33, Rob Clark wrote: > On Wed, May 11, 2022 at 4:50 AM Greg Kroah-Hartman > wrote: > > > > On Wed, May 11, 2022 at 12:26:05PM +0200, Michel Dänzer wrote: > > > On 2022-05-11 08:22, Greg Kroah-Hartman wrote: > > > > On Wed, May 11, 2022 at 03:06:47PM +1000, Dave Airlie wr

Re: [PATCH v11 20/24] arm64: dts: rockchip: enable vop2 and hdmi tx on rock-3a

2022-05-11 Thread Piotr Oniszczuk
> Wiadomość napisana przez Peter Geis w dniu 11.05.2022, > o godz. 00:49: > > I've pulled your dts and with a few fixes got a working system from > it. At least on the v1.1 board cec is functional: > Total for dwhdmi-rockchip device /dev/cec0: 1, Succeeded: 1, Failed: > 0, Warnings: 0 Peter,

Re: [PATCH v4 5/7] drm/i915/gvt: Change from vfio_group_(un)pin_pages to vfio_(un)pin_pages

2022-05-11 Thread Wang, Zhi A
On 5/6/22 12:08 AM, Jason Gunthorpe wrote: > Use the existing vfio_device versions of vfio_(un)pin_pages(). There is no > reason to use a group interface here, kvmgt has easy access to a > vfio_device. > > Delete kvmgt_vdev::vfio_group since these calls were the last users. > > Reviewed-by: Kevin

Re: [PATCH v4 11/15] drm/shmem-helper: Add generic memory shrinker

2022-05-11 Thread Dmitry Osipenko
On 5/11/22 16:09, Daniel Vetter wrote: > I'd like to ask you to reduce the scope of the patchset and build the > shrinker only for virtio-gpu. I know that I first suggested to build > upon shmem helpers, but it seems that it's easier to do that in a later > patchset. The first

Re: [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add prefix for EBBG

2022-05-11 Thread Joel Selvaraj
On 11/05/22 13:50, Krzysztof Kozlowski wrote: > Please add Acked-by/Reviewed-by tags when posting new versions. However, > there's no need to repost patches *only* to add the tags. The upstream > maintainer will do that for acks received on the version they apply. > > https://elixir.bootlin.com

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

2022-05-11 Thread Dave Stevenson
tialization issues! The bridge chain finally matches > the hardware, no hack are needed, and everything is controlled by the > DRM core. This prototype also includes the Jagan's patches, which add > IMX support to Samsung DSIM. If one is interested, here is my git repo > with all the PoC patches: > > https://github.com/mszyprow/linux/tree/v5.18-next-20220511-dsi-rework

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

2022-05-11 Thread Marek Vasut
SIM. If one is interested, here is my git repo with all the PoC patches: https://github.com/mszyprow/linux/tree/v5.18-next-20220511-dsi-rework Can you CC me on the iMX DSIM discussion/patches ? It seems I was left out of it all, even though I work with the iMX8M DRM stuff extensively.

Re: [PATCH v4 10/15] drm/shmem-helper: Take reservation lock instead of drm_gem_shmem locks

2022-05-11 Thread Dmitry Osipenko
On 5/11/22 18:29, Daniel Vetter wrote: > On Wed, May 11, 2022 at 06:14:00PM +0300, Dmitry Osipenko wrote: >> On 5/11/22 17:24, Christian König wrote: >>> Am 11.05.22 um 15:00 schrieb Daniel Vetter: On Tue, May 10, 2022 at 04:39:53PM +0300, Dmitry Osipenko wrote: > [SNIP] > Since vmappi

Re: [PATCH v4 10/15] drm/shmem-helper: Take reservation lock instead of drm_gem_shmem locks

2022-05-11 Thread Daniel Vetter
On Wed, May 11, 2022 at 06:14:00PM +0300, Dmitry Osipenko wrote: > On 5/11/22 17:24, Christian König wrote: > > Am 11.05.22 um 15:00 schrieb Daniel Vetter: > >> On Tue, May 10, 2022 at 04:39:53PM +0300, Dmitry Osipenko wrote: > >>> [SNIP] > >>> Since vmapping implies implicit pinning, we can't use

[PATCH v2] mgag200: Enable atomic gamma lut update

2022-05-11 Thread Jocelyn Falempe
Add support for atomic update of gamma lut. With this patch the "Night light" feature of gnome3 is working properly on mgag200. v2: - Add a default linear gamma function - renamed functions with mgag200 prefix - use format's 4cc code instead of bit depth - use better interpolation for 16bits g

Re: [PATCH 1/8] drm: execution context for GEM buffers v2

2022-05-11 Thread Daniel Vetter
On Mon, May 09, 2022 at 05:01:33PM +0200, Christian König wrote: > Am 09.05.22 um 16:31 schrieb Daniel Vetter: > > On Wed, May 04, 2022 at 09:47:32AM +0200, Christian König wrote: > > > [SNIP] > > > +/* Make sure we have enough room and add an object the container */ > > > +static int drm_exec_obje

Re: [PATCH v4 10/15] drm/shmem-helper: Take reservation lock instead of drm_gem_shmem locks

2022-05-11 Thread Dmitry Osipenko
On 5/11/22 17:24, Christian König wrote: > Am 11.05.22 um 15:00 schrieb Daniel Vetter: >> On Tue, May 10, 2022 at 04:39:53PM +0300, Dmitry Osipenko wrote: >>> [SNIP] >>> Since vmapping implies implicit pinning, we can't use a separate lock in >>> drm_gem_shmem_vmap() because we need to protect the

Re: [PATCH v4 10/15] drm/shmem-helper: Take reservation lock instead of drm_gem_shmem locks

2022-05-11 Thread Daniel Vetter
On Wed, May 11, 2022 at 04:24:28PM +0200, Christian König wrote: > Am 11.05.22 um 15:00 schrieb Daniel Vetter: > > On Tue, May 10, 2022 at 04:39:53PM +0300, Dmitry Osipenko wrote: > > > [SNIP] > > > Since vmapping implies implicit pinning, we can't use a separate lock in > > > drm_gem_shmem_vmap()

Re: [PATCH v5, 4/5] drm/mediatek: keep dsi as LP00 before dcs cmds transfer

2022-05-11 Thread AngeloGioacchino Del Regno
Il 11/05/22 04:36, xinlei@mediatek.com ha scritto: From: Jitao Shi To comply with the panel sequence, hold the mipi signal to LP00 before the dcs cmds transmission, and pull the mipi signal high from LP00 to LP11 until the start of the dcs cmds transmission. The normal panel timing is : (

Re: [PATCH v2 05/12] drm: bridge: samsung-dsim: Add DSI init in bridge pre_enable()

2022-05-11 Thread Marek Szyprowski
On 04.05.2022 13:40, Jagan Teki wrote: > Host transfer() in DSI master will invoke only when the DSI commands > are sent from DSI devices like DSI Panel or DSI bridges and this > host transfer wouldn't invoke for I2C-based-DSI bridge drivers. > > Handling DSI host initialization in transfer calls m

Re: [PATCH] drm/bridge: cdns-dsi: Add support for pre_enable and post_enable control functions.

2022-05-11 Thread Laurent Pinchart
Hi Jayshri, Thank you for the patch. On Mon, Apr 11, 2022 at 04:06:06PM +0200, Jayshri Pawar wrote: > From: jpawar > > Add support for pre_enable and post_enable drm bridge control functions. > Making sure that host to be prepared before panel is powered up, > for the panels like TC358762. > >

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

2022-05-11 Thread Marek Szyprowski
ort to Samsung DSIM. If one is interested, here is my git repo with all the PoC patches: https://github.com/mszyprow/linux/tree/v5.18-next-20220511-dsi-rework Best regards -- Marek Szyprowski, PhD Samsung R&D Institute Poland

Re: [RFC] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Rob Clark
On Wed, May 11, 2022 at 7:26 AM Jani Nikula wrote: > > On Tue, 10 May 2022, Tomeu Vizoso wrote: > > And use it to store expectations about what the drm/msm driver is > > supposed to pass in the IGT test suite. > > > > Also include a configuration file that points to the out-of-tree CI > > scripts

Re: [PATCH 0/4] Remove support for Hyper-V 2008 and 2008R2/Win7

2022-05-11 Thread Wei Liu
On Mon, May 02, 2022 at 09:36:27AM -0700, Michael Kelley wrote: > Linux code for running as a Hyper-V guest includes special cases for the > first released versions of Hyper-V: 2008 and 2008R2/Windows 7. These > versions were very thinly used for running Linux guests when first > released more than

Re: [PATCH v6 1/4] dt-bindings: display: mediatek: dsi: Convert dsi_dtbinding to .yaml

2022-05-11 Thread Rob Herring
On Wed, May 11, 2022 at 2:24 AM Rex-BC Chen wrote: > > On Wed, 2022-05-04 at 17:19 +0800, Rex-BC Chen wrote: > > From: Xinlei Lee > > > > Convert mediatek,dsi.txt to mediatek,dsi.yaml format > > > > Signed-off-by: Xinlei Lee > > Signed-off-by: Rex-BC Chen > > --- > > .../display/mediatek/media

Re: [PATCH v6 1/4] dt-bindings: display: mediatek: dsi: Convert dsi_dtbinding to .yaml

2022-05-11 Thread Rob Herring
On Wed, 04 May 2022 17:19:20 +0800, Rex-BC Chen wrote: > From: Xinlei Lee > > Convert mediatek,dsi.txt to mediatek,dsi.yaml format > > Signed-off-by: Xinlei Lee > Signed-off-by: Rex-BC Chen > --- > .../display/mediatek/mediatek,dsi.txt | 62 -- > .../display/mediatek/mediatek

Re: [RFC] drm/msm: Add initial ci/ subdirectory

2022-05-11 Thread Jani Nikula
On Tue, 10 May 2022, Tomeu Vizoso wrote: > And use it to store expectations about what the drm/msm driver is > supposed to pass in the IGT test suite. > > Also include a configuration file that points to the out-of-tree CI > scripts. > > By storing the test expectations along the code we can make

Re: [PATCH v4 10/15] drm/shmem-helper: Take reservation lock instead of drm_gem_shmem locks

2022-05-11 Thread Christian König
Am 11.05.22 um 15:00 schrieb Daniel Vetter: On Tue, May 10, 2022 at 04:39:53PM +0300, Dmitry Osipenko wrote: [SNIP] Since vmapping implies implicit pinning, we can't use a separate lock in drm_gem_shmem_vmap() because we need to protect the drm_gem_shmem_get_pages(), which is invoked by drm_gem_

  1   2   >