Re: [Intel-gfx] [PATCH] drm/i915: Move MCHBAR registers to their own header

2022-02-14 Thread Ville Syrjälä
On Mon, Feb 14, 2022 at 10:03:25PM -0800, Matt Roper wrote: > On Fri, Feb 11, 2022 at 10:41:53AM +0200, Ville Syrjälä wrote: > > On Thu, Feb 10, 2022 at 03:12:17PM -0800, Matt Roper wrote: > > > Registers that exist within the MCH BAR and are mirrored into the GPU's > > > MMIO space are a good cand

Re: [Intel-gfx] [RFC PATCH v2 0/1] Splitting up platform-specific calls

2022-02-14 Thread Lucas De Marchi
On Mon, Feb 14, 2022 at 10:05:56PM -0800, Casey Bowman wrote: On 2/11/22 05:51, Tvrtko Ursulin wrote: On 11/02/2022 11:55, Jani Nikula wrote: On Thu, 10 Feb 2022, Casey Bowman wrote: In this RFC I would like to ask the community their thoughts on how we can best handle splitting architectur

[Intel-gfx] [PATCH] drm/i915: Fix cursor coordinates on bigjoiner slave

2022-02-14 Thread Ville Syrjala
From: Ville Syrjälä Adjust the cursor dst coordinates appripriately when it's on the bigjoiner slave pipe. intel_atomic_plane_check_clipping() already did this but with the cursor we discard those results (apart from uapi.visible and error checks) since the hardware will be doing the clipping for

[Intel-gfx] [PATCH v2 2/2] drm/i915: Move MCHBAR registers to their own header

2022-02-14 Thread Matt Roper
Registers that exist within the MCH BAR and are mirrored into the GPU's MMIO space are a good candidate to separate out into their own header. For reference, the mirror of the MCH BAR starts at the following locations in the graphics MMIO space (the end of the MCHBAR range differs slightly on each

[Intel-gfx] [PATCH v2 1/2] drm/i915: Define MCH registers relative to MCHBAR_MIRROR_BASE

2022-02-14 Thread Matt Roper
A few of our MCH registers are defined with absolute register offsets. For consistency, let's switch their definitions to be relative offsets from MCHBAR_MIRROR_BASE. Cc: Ville Syrjälä Suggested-by: Ville Syrjälä Signed-off-by: Matt Roper --- drivers/gpu/drm/i915/i915_reg.h | 12 ++--

Re: [Intel-gfx] [RFC PATCH v2 0/1] Splitting up platform-specific calls

2022-02-14 Thread Casey Bowman
On 2/11/22 05:51, Tvrtko Ursulin wrote: On 11/02/2022 11:55, Jani Nikula wrote: On Thu, 10 Feb 2022, Casey Bowman wrote: In this RFC I would like to ask the community their thoughts on how we can best handle splitting architecture-specific calls. I would like to address the following: 1.

Re: [Intel-gfx] [PATCH] drm/i915: Move MCHBAR registers to their own header

2022-02-14 Thread Matt Roper
On Fri, Feb 11, 2022 at 10:41:53AM +0200, Ville Syrjälä wrote: > On Thu, Feb 10, 2022 at 03:12:17PM -0800, Matt Roper wrote: > > Registers that exist within the MCH BAR and are mirrored into the GPU's > > MMIO space are a good candidate to separate out into their own header. > > > > For reference,

[Intel-gfx] [PATCH 3/3] drm/i915: Fix for PHY_MISC_TC1 offset

2022-02-14 Thread Ramalingam C
From: Jouni Högander Currently ICL_PHY_MISC macro is returning offset 0x64C10 for PHY_E port. Correct offset is 0x64C14. Fix this by handling PHY_E port seprately. Signed-off-by: Matt Roper Signed-off-by: Jouni Högander Signed-off-by: Ramalingam C --- drivers/gpu/drm/i915/display/intel_snps

[Intel-gfx] [PATCH 2/3] drm/i915/dg2: Drop 38.4 MHz MPLLB tables

2022-02-14 Thread Ramalingam C
From: Matt Roper Our early understanding of DG2 was incorrect; since the 5th display isn't actually a Type-C output, 38.4 MHz input clocks are never used on this platform and we can drop the corresponding MPLLB tables. Cc: Anusha Srivatsa Cc: José Roberto de Souza Signed-off-by: Matt Roper Si

[Intel-gfx] [PATCH 1/3] drm/i915/dg2: Enable 5th display

2022-02-14 Thread Ramalingam C
From: Matt Roper DG2 supports a 5th display output which the hardware refers to as "TC1," even though it isn't a Type-C output. This behaves similarly to the TC1 on past platforms with just a couple minor differences: * DG2's TC1 bit in SDEISR is at bit 25 rather than 24 as it is on ICP/TGP

[Intel-gfx] [PATCH 0/3] drm/i915/dg2: 5th Display output

2022-02-14 Thread Ramalingam C
Fixing the 5th Display output for DG2. Jouni Högander (1): drm/i915: Fix for PHY_MISC_TC1 offset Matt Roper (2): drm/i915/dg2: Enable 5th display drm/i915/dg2: Drop 38.4 MHz MPLLB tables drivers/gpu/drm/i915/display/intel_gmbus.c| 16 +- drivers/gpu/drm/i915/display/intel_snps_phy.c

[Intel-gfx] [PATCH] drm/i915/perf: Skip the i915_perf_init for dg2

2022-02-14 Thread Ramalingam C
i915_perf is not enabled for dg2 yet, hence skip the feature initialization. Signed-off-by: Ramalingam C cc: Umesh Nerlige Ramappa --- drivers/gpu/drm/i915/i915_perf.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/i915_perf.c b/drivers/gpu/drm/i915/i915_perf.c ind

Re: [Intel-gfx] ✗ Fi.CI.IGT: failure for drm/i915/dg1: Update DMC_DEBUG3 register

2022-02-14 Thread Matt Roper
On Thu, Feb 10, 2022 at 07:10:32AM +, Patchwork wrote: > == Series Details == > > Series: drm/i915/dg1: Update DMC_DEBUG3 register > URL : https://patchwork.freedesktop.org/series/99942/ > State : failure > > == Summary == > > CI Bug Log - changes from CI_DRM_11207_full -> Patchwork_22233_

Re: [Intel-gfx] [PATCH v8 1/3] gpu: drm: separate panel orientation property creating and value setting

2022-02-14 Thread Hsin-Yi Wang
On Tue, Feb 15, 2022 at 9:17 AM Gabriel Krisman Bertazi wrote: > > Hsin-Yi Wang writes: > > > drm_dev_register() sets connector->registration_state to > > DRM_CONNECTOR_REGISTERED and dev->registered to true. If > > drm_connector_set_panel_orientation() is first called after > > drm_dev_register(

Re: [Intel-gfx] [PATCH v5 06/10] drm/i915/guc: Update GuC's log-buffer-state access for error capture.

2022-02-14 Thread Teres Alexis, Alan Previn
Looks like trying to move the vma up into guc-upper is impacting many other functions in intel_guc_log and intel_guc_log_debugfs. I'll have to take it back (the level of redesign i shall attempt with this series). I'll just move the log_stats back into intel_guc_log and have intel_guc_capture ha

[Intel-gfx] [PATCH] drm/i915/guc: Initialize GuC submission locks and queues early

2022-02-14 Thread Daniele Ceraolo Spurio
Move initialization of submission-related spinlock, lists and workers to init_early. This fixes an issue where if the GuC init fails we might still try to get the lock in the context cleanup code. Note that it is safe to call the GuC context cleanup code even if the init failed because all contexts

[Intel-gfx] linux-next: build failure after merge of the drm-intel tree

2022-02-14 Thread Stephen Rothwell
am beginning to wonder if you guys run stuff through your CI before relasing to linux-next. Especially important when removing #include statements from include files :-) I have used the drm-intel tree from next-20220214 for today. -- Cheers, Stephen Rothwell pgpEN1JYDctRF.pgp Description: OpenPGP digital signature

[Intel-gfx] [PATCH 2/2] drm/i915/gem: Don't try to map and fence large scanout buffers (v7)

2022-02-14 Thread Vivek Kasireddy
On platforms capable of allowing 8K (7680 x 4320) modes, pinning 2 or more framebuffers/scanout buffers results in only one that is mappable/ fenceable. Therefore, pageflipping between these 2 FBs where only one is mappable/fenceable creates latencies large enough to miss alternate vblanks thereby

[Intel-gfx] [PATCH 1/2] drm/mm: Add an iterator to optimally walk over holes for an allocation (v3)

2022-02-14 Thread Vivek Kasireddy
This iterator relies on drm_mm_first_hole() and drm_mm_next_hole() functions to identify suitable holes for an allocation of a given size by efficiently traversing the rbtree associated with the given allocator. It replaces the for loop in drm_mm_insert_node_in_range() and can also be used by drm

[Intel-gfx] [PATCH 0/2] drm/mm: Add an iterator to optimally walk over holes suitable for an allocation

2022-02-14 Thread Vivek Kasireddy
The first patch is a drm core patch that replaces the for loop in drm_mm_insert_node_in_range() with the iterator and would not cause any functional changes. The second patch is a i915 driver specific patch that also uses the iterator but solves a different problem. Cc: Tvrtko Ursulin Cc: Nirmoy

Re: [Intel-gfx] [PATCH 1/2] drm/i915/fbdev: add intel_fbdev_to_framebuffer() helper

2022-02-14 Thread Ville Syrjälä
On Mon, Feb 14, 2022 at 05:02:06PM +0200, Jani Nikula wrote: > Wrap accessing struct intel_fbdev guts in a helper. > > Signed-off-by: Jani Nikula > --- > drivers/gpu/drm/i915/display/intel_display_debugfs.c | 6 +++--- > drivers/gpu/drm/i915/display/intel_fbdev.c | 8 > driver

Re: [Intel-gfx] [PATCH 2/6] drm/i915: Fix bw atomic check when switching between SAGV vs. no SAGV

2022-02-14 Thread Ville Syrjälä
On Mon, Feb 14, 2022 at 07:03:05PM +0200, Lisovskiy, Stanislav wrote: > On Mon, Feb 14, 2022 at 12:24:57PM +0200, Ville Syrjälä wrote: > > On Mon, Feb 14, 2022 at 12:05:36PM +0200, Lisovskiy, Stanislav wrote: > > > On Mon, Feb 14, 2022 at 11:18:07AM +0200, Ville Syrjala wrote: > > > > From: Ville S

Re: [Intel-gfx] [PATCH v5 06/10] drm/i915/guc: Update GuC's log-buffer-state access for error capture.

2022-02-14 Thread Teres Alexis, Alan Previn
Matt, just a final confirmation on below > > > > > > > > > > On Fri, 2022-02-04 at 10:19 -0800, Matthew Brost wrote: > > > > > > On Wed, Jan 26, 2022 at 02:48:18AM -0800, Alan Previn wrote: > > > > > > > > > If the object lives at the GuC level, operate on it at the GuC level. > > > > e.g. > >

[Intel-gfx] [PATCH] drm/i915: Depend on !PREEMPT_RT.

2022-02-14 Thread Sebastian Andrzej Siewior
There are a few sections in the driver which are not compatible with PREEMPT_RT. They trigger warnings and can lead to deadlocks at runtime. Disable the i915 driver on a PREEMPT_RT enabled kernel. This way PREEMPT_RT itself can be enabled without needing to address the i915 issues first. The RT re

Re: [Intel-gfx] [PATCH 4/8] drm/i915: Use preempt_disable/enable_rt() where recommended

2022-02-14 Thread Mario Kleiner
On Fri, Feb 11, 2022 at 9:44 AM Sebastian Andrzej Siewior wrote: > > On 2022-01-27 00:29:37 [+0100], Mario Kleiner wrote: > > Hi, first thank you for implementing these preempt disables according to > Hi Mario, > > > the markers i left long ago. And sorry for the rather late reply. > > > > I had a

Re: [Intel-gfx] [PATCH 6/6] drm/i915: Pimp icl+ sagv pre/post update

2022-02-14 Thread Lisovskiy, Stanislav
On Mon, Feb 14, 2022 at 12:27:30PM +0200, Ville Syrjälä wrote: > On Mon, Feb 14, 2022 at 12:00:11PM +0200, Lisovskiy, Stanislav wrote: > > On Mon, Feb 14, 2022 at 11:18:11AM +0200, Ville Syrjala wrote: > > > From: Ville Syrjälä > > > > > > Add some debugs on what exactly we're doing to the QGV po

Re: [Intel-gfx] [PATCH 1/2] drm: Add HPD state to drm_connector_oob_hotplug_event()

2022-02-14 Thread Imre Deak
On Mon, Feb 07, 2022 at 08:43:27PM -0800, Bjorn Andersson wrote: > In some implementations, such as the Qualcomm platforms, the display > driver has no way to query the current HPD state and as such it's > impossible to distinguish between disconnect and attention events. > > Add a parameter to dr

Re: [Intel-gfx] [PATCH 6/6] drm/i915: Pimp icl+ sagv pre/post update

2022-02-14 Thread Lisovskiy, Stanislav
On Mon, Feb 14, 2022 at 12:27:30PM +0200, Ville Syrjälä wrote: > On Mon, Feb 14, 2022 at 12:00:11PM +0200, Lisovskiy, Stanislav wrote: > > On Mon, Feb 14, 2022 at 11:18:11AM +0200, Ville Syrjala wrote: > > > From: Ville Syrjälä > > > > > > Add some debugs on what exactly we're doing to the QGV po

[Intel-gfx] [stanislav.lisovs...@intel.com: Re: [PATCH 4/6] drm/i915: Unconfuse pre-icl vs. icl+ intel_sagv_{pre, post}_plane_update()]

2022-02-14 Thread Lisovskiy, Stanislav
Date: Mon, 14 Feb 2022 19:39:28 +0200 From: "Lisovskiy, Stanislav" To: Ville Syrjala Cc: intel-gfx@lists.freedesktop.org Subject: Re: [PATCH 4/6] drm/i915: Unconfuse pre-icl vs. icl+ intel_sagv_{pre,post}_plane_update() User-Agent: Mutt/1.9.4 (2018-02-28) On Mon, Feb 14, 2022 at 11:18:09AM +020

Re: [Intel-gfx] [PATCH 4/6] drm/i915: Unconfuse pre-icl vs. icl+ intel_sagv_{pre, post}_plane_update()

2022-02-14 Thread Lisovskiy, Stanislav
On Mon, Feb 14, 2022 at 11:18:09AM +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > intel_sagv_{pre,post}_plane_update() can accidentally forget > to bail out early on pre-icl and proceed down the icl+ codepath > at the end of the function. Fortunately it'll bail out before > it gets too far

[Intel-gfx] [PATCH 2/2] drm/i915/lrc: replace include with forward declarations

2022-02-14 Thread Jani Nikula
Prefer forward declarations over includes if possible. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/gt/intel_lrc.c | 2 ++ drivers/gpu/drm/i915/gt/intel_lrc.h | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/intel_lrc.c b/drivers/gpu/drm/i

[Intel-gfx] [PATCH 1/2] drm/i915/lrc: move lrc_get_runtime() to intel_lrc.c

2022-02-14 Thread Jani Nikula
Move the static inline next to the only caller. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/gt/intel_context_sseu.c | 1 + drivers/gpu/drm/i915/gt/intel_lrc.c | 11 +++ drivers/gpu/drm/i915/gt/intel_lrc.h | 11 --- drivers/gpu/drm/i915/i915_perf.c

[Intel-gfx] [PATCH] drm/i915/pxp: prefer forward declaration over includes

2022-02-14 Thread Jani Nikula
Always use forward declarations instead of includes in headers if possible. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/pxp/intel_pxp_pm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/pxp/intel_pxp_pm.h b/drivers/gpu/drm/i915/pxp/intel_pxp_pm.

Re: [Intel-gfx] [PATCH 3/6] drm/i915: Widen the QGV point mask

2022-02-14 Thread Lisovskiy, Stanislav
On Mon, Feb 14, 2022 at 11:18:08AM +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > adlp+ adds some extra bits to the QGV point mask. The code attempts > to handle that but forgot to actually make sure we can store those > bits in the bw state. Fix it. > > Cc: sta...@vger.kernel.org > Cc: S

Re: [Intel-gfx] [PATCH 2/6] drm/i915: Fix bw atomic check when switching between SAGV vs. no SAGV

2022-02-14 Thread Lisovskiy, Stanislav
On Mon, Feb 14, 2022 at 12:24:57PM +0200, Ville Syrjälä wrote: > On Mon, Feb 14, 2022 at 12:05:36PM +0200, Lisovskiy, Stanislav wrote: > > On Mon, Feb 14, 2022 at 11:18:07AM +0200, Ville Syrjala wrote: > > > From: Ville Syrjälä > > > > > > If the only thing that is changing is SAGV vs. no SAGV bu

Re: [Intel-gfx] [PATCH v12 1/5] drm: improve drm_buddy_alloc function

2022-02-14 Thread Christian König
Am 13.02.22 um 09:52 schrieb Arunpravin: - Make drm_buddy_alloc a single function to handle range allocation and non-range allocation demands - Implemented a new function alloc_range() which allocates the requested power-of-two block comply with range limitations - Moved order computation

[Intel-gfx] [PATCH V2 4/13] gpu: drm: radeon: use time_is_before_jiffies() instead of jiffies judgment

2022-02-14 Thread Qing Wang
From: Wang Qing It is better to use time_xxx() directly instead of jiffies judgment for understanding. Signed-off-by: Wang Qing --- drivers/gpu/drm/radeon/radeon_pm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/radeon_pm.c b/drivers/gpu/drm/rad

Re: [Intel-gfx] [RFC 00/12] locking: Separate lock tracepoints from lockdep/lock_stat (v1)

2022-02-14 Thread Mathieu Desnoyers
- On Feb 9, 2022, at 2:02 PM, Waiman Long long...@redhat.com wrote: > On 2/9/22 13:29, Mathieu Desnoyers wrote: >> - On Feb 9, 2022, at 1:19 PM, Waiman Long long...@redhat.com wrote: >> >>> On 2/9/22 04:09, Peter Zijlstra wrote: On Tue, Feb 08, 2022 at 10:41:56AM -0800, Namhyung Kim w

[Intel-gfx] [PATCH] drm/i915: fix build issue when using clang

2022-02-14 Thread Tong Zhang
drm/i915 target adds some extra cflags, especially it does re-apply -Wall. In clang this will override -Wno-format-security and cause the build to fail when CONFIG_DRM_I915_WERROR=y. While with GCC this does not happen. We reapply -Wno-format-security here to get around this issue. drivers/gpu/drm

[Intel-gfx] [PATCH V2 12/13] media: wl128x: use time_is_before_jiffies() instead of jiffies judgment

2022-02-14 Thread Qing Wang
From: Wang Qing It is better to use time_xxx() directly instead of jiffies judgment for understanding. Signed-off-by: Wang Qing --- drivers/media/radio/wl128x/fmdrv_common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/radio/wl128x/fmdrv_common.c b/drive

Re: [Intel-gfx] [RFC 00/12] locking: Separate lock tracepoints from lockdep/lock_stat (v1)

2022-02-14 Thread Mathieu Desnoyers
- On Feb 9, 2022, at 1:19 PM, Waiman Long long...@redhat.com wrote: > On 2/9/22 04:09, Peter Zijlstra wrote: >> On Tue, Feb 08, 2022 at 10:41:56AM -0800, Namhyung Kim wrote: >> >>> Eventually I'm mostly interested in the contended locks only and I >>> want to reduce the overhead in the fast pa

[Intel-gfx] [PATCH V2 2/13] clk: mvebu: use time_is_before_eq_jiffies() instead of jiffies judgment

2022-02-14 Thread Qing Wang
From: Wang Qing It is better use time_xxx() directly instead of jiffies judgment for understanding. Signed-off-by: Wang Qing --- drivers/clk/mvebu/armada-37xx-periph.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/mvebu/armada-37xx-periph.c b/drivers/clk/mv

[Intel-gfx] [PATCH V2 00/13] use time_is_xxx() instead of jiffies judgment

2022-02-14 Thread Qing Wang
From: Wang Qing It is better to use time_is_xxx() directly instead of jiffies judgment for understanding. Batch them in a series suggested by Joe. Wang Qing (14): block: xen: use time_is_before_eq_jiffies() instead of jiffies judgment clk: mvebu: use time_is_before_eq_jiffies() instead of j

Re: [Intel-gfx] [PATCH 1/2] drm: Add HPD state to drm_connector_oob_hotplug_event()

2022-02-14 Thread Bjorn Andersson
On Tue 08 Feb 02:39 PST 2022, Greg Kroah-Hartman wrote: > On Mon, Feb 07, 2022 at 08:43:27PM -0800, Bjorn Andersson wrote: > > In some implementations, such as the Qualcomm platforms, the display > > driver has no way to query the current HPD state and as such it's > > impossible to distinguish be

Re: [Intel-gfx] [PATCH 1/2] drm: Add HPD state to drm_connector_oob_hotplug_event()

2022-02-14 Thread Dmitry Baryshkov
On Thu, 10 Feb 2022 at 23:54, Bjorn Andersson wrote: > > On Tue 08 Feb 02:39 PST 2022, Greg Kroah-Hartman wrote: > > > On Mon, Feb 07, 2022 at 08:43:27PM -0800, Bjorn Andersson wrote: > > > In some implementations, such as the Qualcomm platforms, the display > > > driver has no way to query the cu

[Intel-gfx] [PATCH 18/49] drm/i915/pmu: replace cpumask_weight with cpumask_empty where appropriate

2022-02-14 Thread Yury Norov
i915_pmu_cpu_online() calls cpumask_weight() to check if any bit of a given cpumask is set. We can do it more efficiently with cpumask_empty() because cpumask_empty() stops traversing the cpumask as soon as it finds first set bit, while cpumask_weight() counts all bits unconditionally. Signed-off-

[Intel-gfx] [PATCH V2 5/13] hid: use time_is_after_jiffies() instead of jiffies judgment

2022-02-14 Thread Qing Wang
From: Wang Qing It is better to use time_xxx() directly instead of jiffies judgment for understanding. Signed-off-by: Wang Qing --- drivers/hid/intel-ish-hid/ipc/ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/intel-ish-hid/ipc/ipc.c b/drivers/hid/intel-i

Re: [Intel-gfx] [PATCH v12 1/5] drm: improve drm_buddy_alloc function

2022-02-14 Thread Christian König
Am 14.02.22 um 09:36 schrieb Matthew Auld: On Mon, 14 Feb 2022 at 06:32, Christian König wrote: Am 13.02.22 um 09:52 schrieb Arunpravin: - Make drm_buddy_alloc a single function to handle range allocation and non-range allocation demands - Implemented a new function alloc_range() which

[Intel-gfx] [PATCH V2 3/13] gpu: drm: i915: use time_is_after_jiffies() instead of jiffies judgment

2022-02-14 Thread Qing Wang
From: Wang Qing It is better use time_xxx() directly instead of jiffies judgment for understanding. Signed-off-by: Wang Qing --- drivers/gpu/drm/i915/gt/intel_gt_buffer_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/intel_gt_buffer_pool.c b/

[Intel-gfx] [PATCH] gpu: drm: i915: use time_after_eq() instead of jiffies judgment

2022-02-14 Thread Qing Wang
From: Wang Qing It is better use time_xxx() directly instead of jiffies judgment for understanding. Signed-off-by: Wang Qing --- drivers/gpu/drm/i915/gt/intel_gt_buffer_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/intel_gt_buffer_pool.c b/

Re: [Intel-gfx] [RFC 00/12] locking: Separate lock tracepoints from lockdep/lock_stat (v1)

2022-02-14 Thread Mathieu Desnoyers
- On Feb 9, 2022, at 2:22 PM, Namhyung Kim namhy...@kernel.org wrote: > Hello, > > On Wed, Feb 9, 2022 at 11:02 AM Waiman Long wrote: >> >> On 2/9/22 13:29, Mathieu Desnoyers wrote: >> > - On Feb 9, 2022, at 1:19 PM, Waiman Long long...@redhat.com wrote: >> > >> >> On 2/9/22 04:09, Peter

Re: [Intel-gfx] [PATCH 2/2] drm/msm/dp: Implement oob_hotplug_event()

2022-02-14 Thread Bjorn Andersson
On Mon 07 Feb 23:40 PST 2022, Greg Kroah-Hartman wrote: > On Mon, Feb 07, 2022 at 08:43:28PM -0800, Bjorn Andersson wrote: > > The Qualcomm DisplayPort driver contains traces of the necessary > > plumbing to hook up USB HPD, in the form of the dp_hpd module and the > > dp_usbpd_cb struct. Use this

[Intel-gfx] [PATCH V2 6/13] input: serio: use time_is_before_jiffies() instead of jiffies judgment

2022-02-14 Thread Qing Wang
From: Wang Qing It is better to use time_xxx() directly instead of jiffies judgment for understanding. Signed-off-by: Wang Qing --- drivers/input/serio/ps2-gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/serio/ps2-gpio.c b/drivers/input/serio/ps2-gp

[Intel-gfx] [PATCH V2 11/13] media: tda8083: use time_is_after_jiffies() instead of jiffies judgment

2022-02-14 Thread Qing Wang
From: Wang Qing It is better to use time_xxx() directly instead of jiffies judgment for understanding. Signed-off-by: Wang Qing --- drivers/media/dvb-frontends/tda8083.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/tda8083.c b/drivers/media/d

[Intel-gfx] [PATCH V2 13/13] media: vivid: use time_is_after_jiffies() instead of jiffies judgment

2022-02-14 Thread Qing Wang
From: Wang Qing It is better to use time_xxx() directly instead of jiffies judgment for understanding. Signed-off-by: Wang Qing --- drivers/media/test-drivers/vivid/vivid-kthread-cap.c | 3 ++- drivers/media/test-drivers/vivid/vivid-kthread-out.c | 3 ++- drivers/media/test-drivers/vivid/v

[Intel-gfx] [PATCH V2 9/13] media: si21xx: use time_is_before_jiffies() instead of jiffies judgment

2022-02-14 Thread Qing Wang
From: Wang Qing It is better to use time_xxx() directly instead of jiffies judgment for understanding. Signed-off-by: Wang Qing --- drivers/media/dvb-frontends/si21xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/si21xx.c b/drivers/media/dvb

Re: [Intel-gfx] [RFC 00/12] locking: Separate lock tracepoints from lockdep/lock_stat (v1)

2022-02-14 Thread Mathieu Desnoyers
- On Feb 9, 2022, at 2:45 PM, Namhyung Kim namhy...@kernel.org wrote: > On Wed, Feb 9, 2022 at 11:28 AM Mathieu Desnoyers > wrote: >> >> - On Feb 9, 2022, at 2:22 PM, Namhyung Kim namhy...@kernel.org wrote: >> > I'm also concerning dynamic allocated locks in a data structure. >> > If we k

Re: [Intel-gfx] [PATCH v4 14/14] drm/msm: Implement HDCP 1.x using the new drm HDCP helpers

2022-02-14 Thread Dmitry Baryshkov
On 05/11/2021 06:04, Sean Paul wrote: From: Sean Paul This patch adds HDCP 1.x support to msm DP connectors using the new HDCP helpers. Sean, is this something that you'd like to pursue further? We have picked up patches 8-11, which were independent from the rest of the changes. The rest see

[Intel-gfx] [PATCH V2 7/13] md: use time_is_before_jiffies(() instead of jiffies judgment

2022-02-14 Thread Qing Wang
From: Wang Qing It is better to use time_xxx() directly instead of jiffies judgment for understanding. Signed-off-by: Wang Qing --- drivers/md/dm-thin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c index f4234d6..dced764 --- a/

Re: [Intel-gfx] [PATCH] drm/i915: fix build issue when using clang

2022-02-14 Thread Nathan Chancellor
On Sat, Feb 12, 2022 at 10:51:06PM -0800, Tong Zhang wrote: > drm/i915 target adds some extra cflags, especially it does re-apply -Wall. > In clang this will override -Wno-format-security and cause the build to > fail when CONFIG_DRM_I915_WERROR=y. While with GCC this does not happen. > We reapply

Re: [Intel-gfx] [PATCH V2 00/13] use time_is_xxx() instead of jiffies judgment

2022-02-14 Thread 王擎
  >>On Thu, Feb 10, 2022 at 06:30:23PM -0800, Qing Wang wrote: >> From: Wang Qing >> >> It is better to use time_is_xxx() directly instead of jiffies judgment >> for understanding. > >Hi Wang, > >"judgement" doesn't really make sense as a description to an English >speaker.  The following a commi

[Intel-gfx] [PATCH V2 10/13] md: use time_is_before_eq_jiffies() instead of jiffies judgment

2022-02-14 Thread Qing Wang
From: Wang Qing It is better to use time_xxx() directly instead of jiffies judgment for understanding. Signed-off-by: Wang Qing --- drivers/md/dm-writecache.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/md/dm-writecache.c b/drivers/md/dm-writecache.c index

Re: [Intel-gfx] [PATCH 1/2] drm: Add HPD state to drm_connector_oob_hotplug_event()

2022-02-14 Thread Bjorn Andersson
On Thu 10 Feb 13:12 PST 2022, Dmitry Baryshkov wrote: > On Thu, 10 Feb 2022 at 23:54, Bjorn Andersson > wrote: > > > > On Tue 08 Feb 02:39 PST 2022, Greg Kroah-Hartman wrote: > > > > > On Mon, Feb 07, 2022 at 08:43:27PM -0800, Bjorn Andersson wrote: > > > > In some implementations, such as the Qu

[Intel-gfx] [PATCH V2 10/13] media: stv0299: use time_is_before_jiffies() instead of jiffies judgment

2022-02-14 Thread Qing Wang
From: Wang Qing It is better to use time_xxx() directly instead of jiffies judgment for understanding. Signed-off-by: Wang Qing --- drivers/media/dvb-frontends/stv0299.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/dvb-frontends/stv0299.c b/drivers/med

[Intel-gfx] [PATCH V2 1/13] block: xen: use time_is_before_eq_jiffies() instead of jiffies judgment

2022-02-14 Thread Qing Wang
From: Wang Qing It is better to use time_xxx() directly instead of jiffies judgment for understanding. Signed-off-by: Wang Qing --- drivers/block/xen-blkback/blkback.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/block/xen-blkback/blkback.c b/drivers/block/

[Intel-gfx] [PATCH] drm/syncobj: flatten dma_fence_chains on transfer

2022-02-14 Thread Christian König
It is illegal to add a dma_fence_chain as timeline point. Flatten out the fences into a dma_fence_array instead. Signed-off-by: Christian König --- drivers/gpu/drm/drm_syncobj.c | 61 --- 1 file changed, 56 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/d

[Intel-gfx] [PATCH 0/2] drm/i915/fbdev: hide struct intel_fbdev

2022-02-14 Thread Jani Nikula
Jani Nikula (2): drm/i915/fbdev: add intel_fbdev_to_framebuffer() helper drm/i915/fbdev: hide struct intel_fbdev in intel_fbdev.c .../drm/i915/display/intel_display_debugfs.c | 6 ++--- .../drm/i915/display/intel_display_types.h| 21 drivers/gpu/drm/i915/display/intel_f

[Intel-gfx] [PATCH 2/2] drm/i915/fbdev: hide struct intel_fbdev in intel_fbdev.c

2022-02-14 Thread Jani Nikula
As all access to struct intel_fbdev guts is nicely stowed away in intel_fbdev.c, we can hide the struct definition there too. Signed-off-by: Jani Nikula --- .../drm/i915/display/intel_display_types.h| 21 --- drivers/gpu/drm/i915/display/intel_fbdev.c| 17 +++

[Intel-gfx] [PATCH 1/2] drm/i915/fbdev: add intel_fbdev_to_framebuffer() helper

2022-02-14 Thread Jani Nikula
Wrap accessing struct intel_fbdev guts in a helper. Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/display/intel_display_debugfs.c | 6 +++--- drivers/gpu/drm/i915/display/intel_fbdev.c | 8 drivers/gpu/drm/i915/display/intel_fbdev.h | 7 +++ 3 files changed

Re: [Intel-gfx] [PATCH] drm/i915: move i915_gem_object_needs_bit17_swizzle() to intel_ggtt_fencing.[ch]

2022-02-14 Thread Tvrtko Ursulin
On 14/02/2022 13:24, Jani Nikula wrote: Move i915_gem_object_needs_bit17_swizzle() next to the other bit_17_swizzle functions. Also un-inline while at it; does not seem like this is a function needed in hot paths. Cc: Tvrtko Ursulin Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/gt/in

[Intel-gfx] [PATCH] drm/i915: move i915_gem_object_needs_bit17_swizzle() to intel_ggtt_fencing.[ch]

2022-02-14 Thread Jani Nikula
Move i915_gem_object_needs_bit17_swizzle() next to the other bit_17_swizzle functions. Also un-inline while at it; does not seem like this is a function needed in hot paths. Cc: Tvrtko Ursulin Signed-off-by: Jani Nikula --- drivers/gpu/drm/i915/gt/intel_ggtt_fencing.c | 8 drivers/gpu/

Re: [Intel-gfx] [PATCH v4 00/14] drm/i915: drm_i915.h cleanup

2022-02-14 Thread Jani Nikula
On Thu, 10 Feb 2022, Tvrtko Ursulin wrote: > On 10/02/2022 15:45, Jani Nikula wrote: >> I've sent parts of this before. Another rebase round. > > All look good to me. > > Acked-by: Tvrtko Ursulin Thanks a bunch, pushed the lot! > Going forward you can maybe impress the readers even more by incl

[Intel-gfx] [PATCH 2/4] drm/i915: Check async flip capability early on

2022-02-14 Thread Ville Syrjala
From: Ville Syrjälä Since the async flip state check is done very late and thus it can see potentially all the planes in the state (due to the wm/ddb optimization) we need to move the "can the requested plane do async flips at all?" check much earlier. For this purpose we introduce intel_async_fl

[Intel-gfx] [PATCH 0/4] drm/i915: Fix async flip wm0/ddb optimization

2022-02-14 Thread Ville Syrjala
From: Ville Syrjälä Turns out the async flip wm0/ddb optimization doesn't work at all currently. Let's fix it. It also had problems with leaving SAGV on mistakenly but those were handled via a separate series since it was a more generic issue. Cc: Stanislav Lisovskiy Ville Syrjälä (4): drm/i

[Intel-gfx] [PATCH 1/4] drm/i915: Don't skip ddb allocation if data_rate==0

2022-02-14 Thread Ville Syrjala
From: Ville Syrjälä data_rate==0 no longer means a plane is disabled, it could also mean we want to use the minimum ddb allocation for it. Hence we can't bail out early during ddb allocation or else we'll simply forget to allocate any ddb for such planes. Cc: Stanislav Lisovskiy Fixes: 6a4d8cc6

[Intel-gfx] [PATCH 4/4] drm/i915: Pimp async flip debugs

2022-02-14 Thread Ville Syrjala
From: Ville Syrjälä Print the offending plane/crtc id+name in the async flip debugs. Cc: Stanislav Lisovskiy Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/display/intel_display.c | 63 ++-- 1 file changed, 44 insertions(+), 19 deletions(-) diff --git a/drivers/gpu/drm

[Intel-gfx] [PATCH 3/4] drm/i915: Fix the async flip wm0/ddb optimization

2022-02-14 Thread Ville Syrjala
From: Ville Syrjälä The current implementation of the async flip wm0/ddb optimization does not work at all. The biggest problem is that we skip the whole intel_pipe_update_{start,end}() dance and thus never actually complete the commit that is trying to do the wm/ddb change. To fix this we need

Re: [Intel-gfx] [PATCH 6/6] drm/i915: Pimp icl+ sagv pre/post update

2022-02-14 Thread Ville Syrjälä
On Mon, Feb 14, 2022 at 12:00:11PM +0200, Lisovskiy, Stanislav wrote: > On Mon, Feb 14, 2022 at 11:18:11AM +0200, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > Add some debugs on what exactly we're doing to the QGV point mask > > in the icl+ sagv pre/post plane update hooks. Currently we'r

Re: [Intel-gfx] [PATCH 2/6] drm/i915: Fix bw atomic check when switching between SAGV vs. no SAGV

2022-02-14 Thread Ville Syrjälä
On Mon, Feb 14, 2022 at 12:05:36PM +0200, Lisovskiy, Stanislav wrote: > On Mon, Feb 14, 2022 at 11:18:07AM +0200, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > If the only thing that is changing is SAGV vs. no SAGV but > > the number of active planes and the total data rates end up > > unc

Re: [Intel-gfx] [PATCH 1/6] drm/i915: Correctly populate use_sagv_wm for all pipes

2022-02-14 Thread Lisovskiy, Stanislav
On Mon, Feb 14, 2022 at 11:18:06AM +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > When changing between SAGV vs. no SAGV on tgl+ we have to > update the use_sagv_wm flag for all the crtcs or else > an active pipe not already in the state will end up using > the wrong watermarks. That is es

Re: [Intel-gfx] [PATCH 2/6] drm/i915: Fix bw atomic check when switching between SAGV vs. no SAGV

2022-02-14 Thread Lisovskiy, Stanislav
On Mon, Feb 14, 2022 at 11:18:07AM +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > If the only thing that is changing is SAGV vs. no SAGV but > the number of active planes and the total data rates end up > unchanged we currently bail out of intel_bw_atomic_check() > early and forget to actu

[Intel-gfx] [RFC v2 5/5] drm/hdmi21: Add frl_dfm_helper to Makefile

2022-02-14 Thread Vandita Kulkarni
Add the new frl_dfm_helper file to drm Makefile Signed-off-by: Vandita Kulkarni --- drivers/gpu/drm/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/Makefile b/drivers/gpu/drm/Makefile index 8675c2af7ae1..81fe3df8bfda 100644 --- a/drivers/gpu/drm/Ma

[Intel-gfx] [RFC v2 4/5] drm/hdmi21: Add support for DFM calculation with DSC

2022-02-14 Thread Vandita Kulkarni
From: Ankit Nautiyal Add helper functions for calculating FRL capacity and DFM requirements with given compressed bpp. Signed-off-by: Ankit Nautiyal Signed-off-by: Vandita Kulkarni --- drivers/gpu/drm/drm_frl_dfm_helper.c | 297 +++ include/drm/drm_frl_dfm_helper.h

[Intel-gfx] [RFC v2 3/5] drm/hdmi21: Add helpers to verify non-dsc DFM requirements

2022-02-14 Thread Vandita Kulkarni
Add helpers to compute DFM variables and to verify if the DFM requirements are met or not in non dsc cases. Signed-off-by: Vandita Kulkarni --- drivers/gpu/drm/drm_frl_dfm_helper.c | 161 +++ include/drm/drm_frl_dfm_helper.h | 2 + 2 files changed, 163 insertions(+)

[Intel-gfx] [RFC v2 2/5] drm/hdmi21: Add non dsc frl capacity computation helpers

2022-02-14 Thread Vandita Kulkarni
Add helper functions for computing non dsc frl link characteristics Signed-off-by: Vandita Kulkarni --- drivers/gpu/drm/drm_frl_dfm_helper.c | 396 +++ 1 file changed, 396 insertions(+) create mode 100644 drivers/gpu/drm/drm_frl_dfm_helper.c diff --git a/drivers/gpu/drm

[Intel-gfx] [RFC v2 1/5] drm/hdmi21: Define frl_dfm structure

2022-02-14 Thread Vandita Kulkarni
Define frl_dfm structure to hold frl characteristics needed for frl capacity computation in order to meet the data flow metering requirement. Signed-off-by: Vandita Kulkarni --- include/drm/drm_frl_dfm_helper.h | 124 +++ 1 file changed, 124 insertions(+) create mode

[Intel-gfx] [RFC v2 0/5] Add data flow metering support for HDMI2.1

2022-02-14 Thread Vandita Kulkarni
The below patches add support for data flow metering as mentioned in the section 6.5.6 FRL data flow metering of HDMI 2.1 specification. Add functions to calclulate the DFM parameters for the given frl config, which is further used to evaluate the data flow metering requirement as specified in the

Re: [Intel-gfx] [PATCH 6/6] drm/i915: Pimp icl+ sagv pre/post update

2022-02-14 Thread Lisovskiy, Stanislav
On Mon, Feb 14, 2022 at 11:18:11AM +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > Add some debugs on what exactly we're doing to the QGV point mask > in the icl+ sagv pre/post plane update hooks. Currently we're just > guessing. > > Cc: Stanislav Lisovskiy > Signed-off-by: Ville Syrjälä

[Intel-gfx] [PATCH 5/6] drm/i915: Split pre-icl vs. icl+ SAGV hooks apart

2022-02-14 Thread Ville Syrjala
From: Ville Syrjälä To further reduce the confusion between the pre-icl vs. icl+ SAGV codepaths let's do a full split. Cc: Stanislav Lisovskiy Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_pm.c | 120 1 file changed, 77 insertions(+), 43 deletion

[Intel-gfx] [PATCH 6/6] drm/i915: Pimp icl+ sagv pre/post update

2022-02-14 Thread Ville Syrjala
From: Ville Syrjälä Add some debugs on what exactly we're doing to the QGV point mask in the icl+ sagv pre/post plane update hooks. Currently we're just guessing. Cc: Stanislav Lisovskiy Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/i915/intel_pm.c | 37 - 1

[Intel-gfx] [PATCH 4/6] drm/i915: Unconfuse pre-icl vs. icl+ intel_sagv_{pre, post}_plane_update()

2022-02-14 Thread Ville Syrjala
From: Ville Syrjälä intel_sagv_{pre,post}_plane_update() can accidentally forget to bail out early on pre-icl and proceed down the icl+ codepath at the end of the function. Fortunately it'll bail out before it gets too far due to old_qgv_mask==new_qgv_mask==0 so no real bug here. But lets make th

[Intel-gfx] [PATCH 3/6] drm/i915: Widen the QGV point mask

2022-02-14 Thread Ville Syrjala
From: Ville Syrjälä adlp+ adds some extra bits to the QGV point mask. The code attempts to handle that but forgot to actually make sure we can store those bits in the bw state. Fix it. Cc: sta...@vger.kernel.org Cc: Stanislav Lisovskiy Fixes: 192fbfb76744 ("drm/i915: Implement PSF GV point supp

[Intel-gfx] [PATCH 1/6] drm/i915: Correctly populate use_sagv_wm for all pipes

2022-02-14 Thread Ville Syrjala
From: Ville Syrjälä When changing between SAGV vs. no SAGV on tgl+ we have to update the use_sagv_wm flag for all the crtcs or else an active pipe not already in the state will end up using the wrong watermarks. That is especially bad when we end up with the tighter non-SAGV watermarks with SAGV

[Intel-gfx] [PATCH 2/6] drm/i915: Fix bw atomic check when switching between SAGV vs. no SAGV

2022-02-14 Thread Ville Syrjala
From: Ville Syrjälä If the only thing that is changing is SAGV vs. no SAGV but the number of active planes and the total data rates end up unchanged we currently bail out of intel_bw_atomic_check() early and forget to actually compute the new WGV point mask and thus won't actually enable/disable

[Intel-gfx] [PATCH 0/6] drm/i915: SAGV fixes

2022-02-14 Thread Ville Syrjala
From: Ville Syrjälä While pokingaround the watermarks/etc. I noticed our SAGV code has a bunch of bugs. Let's try to fix it. Cc: Stanislav Lisovskiy Ville Syrjälä (6): drm/i915: Correctly populate use_sagv_wm for all pipes drm/i915: Fix bw atomic check when switching between SAGV vs. no SA

Re: [Intel-gfx] [PATCH v12 1/5] drm: improve drm_buddy_alloc function

2022-02-14 Thread Matthew Auld
On Mon, 14 Feb 2022 at 06:32, Christian König wrote: > > Am 13.02.22 um 09:52 schrieb Arunpravin: > > - Make drm_buddy_alloc a single function to handle > >range allocation and non-range allocation demands > > > > - Implemented a new function alloc_range() which allocates > >the requested