Re: [PATCH v2] drm/i915/mtl: Update workaround 14018778641

2024-05-24 Thread Andi Shyti
Hi, > > On Mon, May 13, 2024 at 02:19:17PM +, Chen, Angus wrote: > > > The WA should be extended to cover VDBOX engine. We found that > > > 28-channels 1080p VP9 encoding may hit this issue. > > > > > > Signed-off-by: Chen, Angus > > > --- > > > drivers/gpu/drm/i915/gt/intel_workarounds.c

[PATCH v2] drm/i915: Increase FLR timeout from 3s to 9s

2024-05-23 Thread Andi Shyti
Following the guidelines it takes 3 seconds to perform an FLR reset. Let's give it a bit more slack because this time can change depending on the platform and on the firmware Signed-off-by: Andi Shyti --- Hi, In this second version I removed patch 2 that was ignoring the FLR reset timeouts

Re: [PATCH v2] drm/i915/mtl: Update workaround 14018778641

2024-05-23 Thread Andi Shyti
Hi Angus, On Mon, May 13, 2024 at 02:19:17PM +, Chen, Angus wrote: > The WA should be extended to cover VDBOX engine. We found that > 28-channels 1080p VP9 encoding may hit this issue. > > Signed-off-by: Chen, Angus > --- > drivers/gpu/drm/i915/gt/intel_workarounds.c | 3 +++ > 1 file

Re: [PATCH] drm/i915/gt: Fix CCS id's calculation for CCS mode setting

2024-05-22 Thread Andi Shyti
> The whole point of the previous fixes has been to change the CCS > hardware configuration to generate only one stream available to > the compute users. We did this by changing the info.engine_mask > that is set during device probe, reset during the detection of > the fused engines, and finally

Re: [PATCH 2/2] drm/i915: Don't treat FLR resets as errors

2024-05-21 Thread Andi Shyti
Hi Nirmoy, On Fri, May 17, 2024 at 10:13:37PM +0200, Nirmoy Das wrote: > Hi Andi, > > On 5/17/2024 9:34 PM, Andi Shyti wrote: > > Hi Nirmoy, > > On Fri, May 17, 2024 at 04:00:02PM +0200, Nirmoy Das wrote: > > On 5/17/2024 1:25 PM, Andi Shyti wr

Re: [PATCH 2/2] drm/i915: Don't treat FLR resets as errors

2024-05-17 Thread Andi Shyti
Hi Nirmoy, On Fri, May 17, 2024 at 04:00:02PM +0200, Nirmoy Das wrote: > On 5/17/2024 1:25 PM, Andi Shyti wrote: > > If we timeout while waiting for an FLR reset, there is nothing we > > can do and i915 doesn't have any control on it. In any case the > > system is s

[PATCH 2/2] drm/i915: Don't treat FLR resets as errors

2024-05-17 Thread Andi Shyti
of an error. Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10955 Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/intel_uncore.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_uncore.c b/drivers/gpu/drm/i915/intel_uncore.c index

[PATCH 1/2] drm/i915: Increase FLR timeout from 3s to 9s

2024-05-17 Thread Andi Shyti
Following the guidelines it takes 3 seconds to perform an FLR reset. Let's give it a bit more slack because this time can change depending on the platform and on the firmware Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10955 Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915

[PATCH 0/2] Don't be alarmed at FLR timeouts

2024-05-17 Thread Andi Shyti
fucntions without any effect. While at it, increase the timeout. Thanks, Andi Andi Shyti (2): drm/i915: Increase FLR timeout from 3s to 9s drm/i915: Don't treat FLR resets as errors drivers/gpu/drm/i915/intel_uncore.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions

Re: [PATCH] drm/i915/gt: Fix CCS id's calculation for CCS mode setting

2024-05-17 Thread Andi Shyti
Hi, On Fri, May 17, 2024 at 11:06:16AM +0200, Andi Shyti wrote: > The whole point of the previous fixes has been to change the CCS > hardware configuration to generate only one stream available to > the compute users. We did this by changing the info.engine_mask > that is set during

Re: [PATCH] drm/i915/selftests: Set always_coherent to false when reading from CPU

2024-05-17 Thread Andi Shyti
n't have the latest > changes made by GPU. > > Cc: Andi Shyti > Cc: Janusz Krzysztofik > Cc: Jonathan Cavitt > Signed-off-by: Nirmoy Das you can add: Reviewed-by: Andi Shyti Thanks, Andi

[PATCH] drm/i915/gt: Fix CCS id's calculation for CCS mode setting

2024-05-17 Thread Andi Shyti
The whole point of the previous fixes has been to change the CCS hardware configuration to generate only one stream available to the compute users. We did this by changing the info.engine_mask that is set during device probe, reset during the detection of the fused engines, and finally reset again

Re: [PATCH] drm/i915/gt: Disarm breadcrumbs if engines are already idle

2024-05-14 Thread Andi Shyti
Hi Janusz, On Tue, Apr 23, 2024 at 06:23:10PM +0200, Janusz Krzysztofik wrote: > From: Chris Wilson > > The breadcrumbs use a GT wakeref for guarding the interrupt, but are > disarmed during release of the engine wakeref. This leaves a hole where > we may attach a breadcrumb just as the engine

Re: [PATCH v2 03/12] drm/i915: Make I2C terminology more inclusive

2024-05-06 Thread Andi Shyti
Hi, On Fri, May 03, 2024 at 03:34:12PM -0400, Rodrigo Vivi wrote: > On Fri, May 03, 2024 at 06:13:24PM +, Easwar Hariharan wrote: > > I2C v7, SMBus 3.2, and I3C 1.1.1 specifications have replaced "master/slave" > > with more appropriate terms. Inspired by and following on to Wolfram's > >

Re: [PATCH] drm/i915/mtl: Update workaround 14018778641

2024-04-29 Thread Andi Shyti
Hi Angus, ... > @@ -1586,6 +1586,8 @@ xelpmp_gt_workarounds_init(struct intel_gt *gt, struct > i915_wa_list *wal) >*/ > wa_write_or(wal, XELPMP_GSC_MOD_CTRL, FORCE_MISS_FTLB); > > + wa_write_or(wal, XELPMP_VDBX_MOD_CTRL, FORCE_MISS_FTLB); Can you please add the reference of

Re: [PATCH] drm/i915/gt: Automate CCS Mode setting during engine resets

2024-04-26 Thread Andi Shyti
Hi, On Fri, Apr 26, 2024 at 02:07:23AM +0200, Andi Shyti wrote: > We missed setting the CCS mode during resume and engine resets. > Create a workaround to be added in the engine's workaround list. > This workaround sets the XEHP_CCS_MODE value at every reset. > > The issue ca

[PATCH] drm/i915/gt: Automate CCS Mode setting during engine resets

2024-04-25 Thread Andi Shyti
encounter a fence timeout: Fence expiration time out i915-:03:00.0:clpeak[2387]:2! Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10895 Fixes: 6db31251bb26 ("drm/i915/gt: Enable only one CCS for compute workload") Reported-by: Gnattu OC Signed-off-by: Andi Shyti

Re: ✗ Fi.CI.IGT: failure for series starting with [v2,1/2] drm/i915: Refactor confusing __intel_gt_reset() (rev2)

2024-04-24 Thread Andi Shyti
Hi Nirmoy, On Wed, Apr 24, 2024 at 10:56:36AM +0200, Nirmoy Das wrote: > > On 4/24/2024 10:16 AM, Patchwork wrote: > > Patch Details > > Series: series starting with [v2,1/2] drm/i915: Refactor confusing > __intel_gt_reset() (rev2) > URL:

Re: [PATCH v2 2/2] drm/i915: Fix gt reset with GuC submission is disabled

2024-04-23 Thread Andi Shyti
Hi Nirmoy, > > > Currently intel_gt_reset() kills the GuC and then resets requested > > > engines. This is problematic because there is a dedicated CSB FIFO > > > which only GuC can access and if that FIFO fills up, the hardware > > > will block on the next context switch until there is space

Re: [PATCH] drm/i915/gt: Refactor uabi engine class/instance list creation

2024-04-23 Thread Andi Shyti
Hi Nirmoy, On Tue, Apr 23, 2024 at 11:02:06AM +0200, Nirmoy Das wrote: > On 4/17/2024 12:49 AM, Andi Shyti wrote: ... > void intel_engines_driver_register(struct drm_i915_private *i915) > { > - u16 name_instance, other_instance = 0; > + u16

Re: [PATCH v2] drm/i915/gem: Downgrade stolen lmem setup warning

2024-04-23 Thread Andi Shyti
d ff ff 0f b7 d2 48 c7 c6 00 d9 > <4> [144.862299] RSP: 0018:c90005607980 EFLAGS: 00010207 > <4> [144.862315] RAX: fff0 RBX: 0003 RCX: > > > Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/10833 > Suggested-by: Chris Wilson > Signed-off-by: Jonathan Cavitt Reviewed-by: Andi Shyti Thanks, Andi

Re: [PATCH v2 2/2] drm/i915: Fix gt reset with GuC submission is disabled

2024-04-23 Thread Andi Shyti
t(struct intel_gt *gt, > > intel_overlay_reset(gt->i915); > > + /* sanitize uC after engine reset */ > + if (!intel_uc_uses_guc_submission(>uc)) > + intel_uc_reset_prepare(>uc); Reviewed-by: Andi Shyti Thanks, Andi

Re: [PATCH v2 1/2] drm/i915: Refactor confusing __intel_gt_reset()

2024-04-23 Thread Andi Shyti
_engines() next to > intel_gt_reset_engine() to make diff simple(John) > > Cc: John Harrison > Signed-off-by: Nirmoy Das Reviewed-by: Andi Shyti Thanks, Andi

[CI 2/2] drm/i915/gt: Force ccs_mode 4

2024-04-22 Thread Andi Shyti
Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/gt/intel_gt_ccs_mode.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/intel_gt_ccs_mode.c b/drivers/gpu/drm/i915/gt/intel_gt_ccs_mode.c index 044219c5960a..d0f181a8e73e 100644

[CI 1/2] Revert "drm/i915/gt: Do not generate the command streamer for all the CCS"

2024-04-22 Thread Andi Shyti
This reverts commit ea315f98e5d6d3191b74beb0c3e5fc16081d517c. --- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 17 - 1 file changed, 17 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/intel_engine_cs.c b/drivers/gpu/drm/i915/gt/intel_engine_cs.c index 8c44af1c3451..476651bd0a21

[CI 0/2] Force CCS mode to the maximum

2024-04-22 Thread Andi Shyti
/-/issues/10895 Andi Shyti (2): Revert "drm/i915/gt: Do not generate the command streamer for all the CCS" drm/i915/gt: Force ccs_mode 4 drivers/gpu/drm/i915/gt/intel_engine_cs.c | 17 - drivers/gpu/drm/i915/gt/intel_gt_ccs_mode.c | 12 2 files

Re: [PATCH] drm/i915/hwmon: Get rid of devm

2024-04-18 Thread Andi Shyti
itly during device unbind. > > v2: Change commit message and other minor code changes > v3: Cleanup from i915_hwmon_register on error (Armin Wolf) > v4: Eliminate potential static analyzer warning (Rodrigo) > Eliminate fetch_and_zero (Jani) > v5: Restore previous logic for ddat_gt->hwmon_dev error return (Andi) Thanks! Reviewed-by: Andi Shyti Andi

Re: [PATCH v4] drm/i915/hwmon: Get rid of devm

2024-04-17 Thread Andi Shyti
Hi Ashutosh, > @@ -839,16 +837,38 @@ void i915_hwmon_register(struct drm_i915_private *i915) > if (!hwm_gt_is_visible(ddat_gt, hwmon_energy, > hwmon_energy_input, 0)) > continue; > > - hwmon_dev = devm_hwmon_device_register_with_info(dev, >

[PATCH] drm/i915/gt: Refactor uabi engine class/instance list creation

2024-04-16 Thread Andi Shyti
For the upcoming changes we need a cleaner way to build the list of uabi engines. Suggested-by: Tvrtko Ursulin Signed-off-by: Andi Shyti --- Hi, just sending this patch to unburden the coming series from this single patch inherited from a previously sent series. Andi drivers/gpu/drm/i915/gt

Re: [PATCH][next] drm/i915: remove redundant assignement to variable err

2024-04-15 Thread Andi Shyti
> removed. > > Cleans up clang scan build warning: > drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c:1075:5: warning: Value > stored to 'err' is never read [deadcode.DeadStores] > > Signed-off-by: Colin Ian King Reviewed-by: Andi Shyti Thanks, Andi

[PATCH v3 3/3] drm/i915/gem: Calculate object page offset for partial memory mapping

2024-04-11 Thread Andi Shyti
son. Signed-off-by: Andi Shyti Cc: Chris Wilson Cc: Lionel Landwerlin --- drivers/gpu/drm/i915/gem/i915_gem_mman.c | 10 +++--- drivers/gpu/drm/i915/i915_mm.c | 12 +++- drivers/gpu/drm/i915/i915_mm.h | 3 ++- 3 files changed, 20 insertions(+), 5 deletions(-) diff --

[PATCH v3 2/3] drm/i915/gem: Do not look for the exact address in node

2024-04-11 Thread Andi Shyti
In preparation for the upcoming partial memory mapping feature, we want to make sure that when looking for a node we consider also the offset and not just the starting address of the virtual memory node. Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/gem/i915_gem_mman.c | 6 +++--- 1 file

[PATCH v3 1/3] drm/i915/gem: Increment vma offset when mapping fb objects

2024-04-11 Thread Andi Shyti
Until now the "vm_pgoff" was not used and there has been no need to set its offset. But now, because we want to support partial mappings with a given offset, we need it to be set. Suggested-by: Chris Wilson Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/gem/i915_gem_mman.c | 2

[PATCH v3 0/3] Add support for partial mapping

2024-04-11 Thread Andi Shyti
ame as the starting address due to the offset. v1 -> v2: - Enable support for CPU memory - Increment vm_pgoff for fb objects Andi Shyti (3): drm/i915/gem: Increment vma offset when mapping fb objects drm/i915/gem: Do not look for the exact address in node drm/i915/gem: Calculate object page

[PATCH i-g-t] i915/gem_mmap_offset: Partial mmap and munmap

2024-04-11 Thread Andi Shyti
From: Chris Wilson Based on a test case developed by Lionel Landwerlin, this exercises creation of partial mmaps using both direct methods of a partial mmap() (where the mmap() only covers a portion of the object) and munmap() to do the same. Signed-off-by: Chris Wilson Signed-off-by: Andi

Re: [PATCH 11/10] MAINTAINERS: update i915 and xe entries for include/drm/intel

2024-04-11 Thread Andi Shyti
> entries. > > Cc: Joonas Lahtinen > Cc: Lucas De Marchi > Cc: Oded Gabbay > Cc: Rodrigo Vivi > Cc: Thomas Hellström > Cc: Tvrtko Ursulin > Signed-off-by: Jani Nikula Reviewed-by: Andi Shyti Thanks, Andi

Re: [PATCH v2 2/2] drm/i915/gem: Calculate object page offset for partial memory mapping

2024-04-11 Thread Andi Shyti
Hi Nirmoy, On Thu, Apr 11, 2024 at 04:18:41PM +0200, Nirmoy Das wrote: > Hi Andi, > > On 3/29/2024 5:39 PM, Andi Shyti wrote: > > To enable partial memory mapping of GPU virtual memory, it's > > necessary to introduce an offset to the object's memory > >

Re: [PATCH v2] drm: move i915_drm.h under include/drm/intel

2024-04-11 Thread Andi Shyti
Hi Jani, On Wed, Apr 10, 2024 at 01:26:15PM +0300, Jani Nikula wrote: > Clean up the top level include/drm directory by grouping all the Intel > specific files under a common subdirectory. > > v2: Also fix comment in intel_pci_config.h (Ilpo) > > Cc: Daniel Vetter > Cc: Dave Airlie > Cc:

Re: [PATCH 05/10] drm: move intel_lpe_audio.h under include/drm/intel

2024-04-11 Thread Andi Shyti
nt intel_lpe_audio.h. Can't they be merged? And, perhaps, we could also think of dropping the intel_ prefix for the files inside drm/intel/. In any case, Reviewed-by: Andi Shyti Thanks, Andi

Re: [PATCH 04/10] drm: move i915_component.h under include/drm/intel

2024-04-11 Thread Andi Shyti
Hi Jani, On Wed, Apr 10, 2024 at 01:05:11PM +0300, Jani Nikula wrote: > Clean up the top level include/drm directory by grouping all the Intel > specific files under a common subdirectory. > > Cc: Daniel Vetter > Cc: Dave Airlie > Cc: Lucas De Marchi > Cc: Tomas Winkler > Cc: Jaroslav Kysela

Re: [PATCH 03/10] drm: move i915_gsc_proxy_mei_interface.h under include/drm/intel

2024-04-11 Thread Andi Shyti
> Signed-off-by: Jani Nikula Reviewed-by: Andi Shyti Thanks, Andi

Re: [PATCH 02/10] drm: move intel-gtt.h under include/drm/intel

2024-04-10 Thread Andi Shyti
On Wed, Apr 10, 2024 at 01:05:09PM +0300, Jani Nikula wrote: > Clean up the top level include/drm directory by grouping all the Intel > specific files under a common subdirectory. > > Cc: Daniel Vetter > Cc: Dave Airlie > Cc: Lucas De Marchi > Signed-off-by: Jani Nikul

Re: [PATCH 01/10] drm/i915: use system include for drm headers

2024-04-10 Thread Andi Shyti
Hi Jani, On Wed, Apr 10, 2024 at 01:05:08PM +0300, Jani Nikula wrote: > Use <> instead of "" for including headers from include/, even if the > file is in the same directory. > > Signed-off-by: Jani Nikula Reviewed-by: Andi Shyti Thanks, Andi

Re: [PATCH] drm/i915: Don't enable hwmon for selftests

2024-04-10 Thread Andi Shyti
if (!IS_DGFX(i915)) > + if (!IS_DGFX(i915) || is_i915_selftest()) > return; I wonder if this is the right place to put it or rather place it in i915_driver.c and avoid calling i915_hwmon_register() at all. In any case, it's good: Reviewed-by: Andi Shyti Thanks, Andi

Re: [PATCH] drm/i915/guc: Fix the fix for reset lock confusion

2024-04-03 Thread Andi Shyti
ncel is safe (from a lockdep perspective) or not. > Instead, use the actual reset mutex state (both the genuine one and > the custom rolled BACKOFF one). > > Fixes: 0e00a8814eec ("drm/i915/guc: Avoid circular locking issue on busyness > flush") > Signed-off-by: John Harr

Re: ✗ Fi.CI.IGT: failure for Disable automatic load CCS load balancing (rev14)

2024-03-29 Thread Andi Shyti
Hi, On Sat, Mar 30, 2024 at 12:03:08AM -, Patchwork wrote: > Patch Details > > Series: Disable automatic load CCS load balancing (rev14) > URL: https://patchwork.freedesktop.org/series/129951/ > State: failure > Details: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_129951v14/ >

Re: [PATCH v0 02/14] drm/amdgpu,drm/radeon: Make I2C terminology more inclusive

2024-03-29 Thread Andi Shyti
Hi, On Fri, Mar 29, 2024 at 10:28:14AM -0700, Easwar Hariharan wrote: > On 3/29/2024 10:16 AM, Andi Shyti wrote: > > Hi Easwar, > > > > On Fri, Mar 29, 2024 at 05:00:26PM +, Easwar Hariharan wrote: > >> I2C v7, SMBus 3.2, and I3C specifications have replaced &

Re: [PATCH v0 02/14] drm/amdgpu,drm/radeon: Make I2C terminology more inclusive

2024-03-29 Thread Andi Shyti
Hi Easwar, On Fri, Mar 29, 2024 at 05:00:26PM +, Easwar Hariharan wrote: > I2C v7, SMBus 3.2, and I3C specifications have replaced "master/slave" I don't understand why we forget that i3c is 1.1.1 :-) > with more appropriate terms. Inspired by and following on to Wolfram's > series to fix

[PATCH v2 2/2] drm/i915/gem: Calculate object page offset for partial memory mapping

2024-03-29 Thread Andi Shyti
son. Signed-off-by: Andi Shyti Cc: Chris Wilson Cc: Lionel Landwerlin --- drivers/gpu/drm/i915/gem/i915_gem_mman.c | 10 +++--- drivers/gpu/drm/i915/i915_mm.c | 12 +++- drivers/gpu/drm/i915/i915_mm.h | 3 ++- 3 files changed, 20 insertions(+), 5 deletions(-) diff --

[PATCH v2 1/2] drm/i915/gem: Increment vma offset when mapping fb objects

2024-03-29 Thread Andi Shyti
Until now the "vm_pgoff" was not used and there has been no need to set its offset. But now, because we want to support partial mappings with a given offset, we need it to be set. Suggested-by: Chris Wilson Signed-off-by: Andi Shyti --- drivers/gpu/drm/i915/gem/i915_gem_mman.c | 2

[PATCH v2 0/2] Add support for partial mapping

2024-03-29 Thread Andi Shyti
CPU memory - Increment vm_pgoff for fb objects Andi Shyti (2): drm/i915/gem: Increment vma offset when mapping fb objects drm/i915/gem: Calculate object page offset for partial memory mapping drivers/gpu/drm/i915/gem/i915_gem_mman.c | 12 +--- drivers/gpu/drm/i915/i915_m

Re: [PATCH] drm/i915/guc: Remove bogus null check

2024-03-29 Thread Andi Shyti
Hi Rodrigo, On Thu, Mar 28, 2024 at 09:39:17PM -0400, Rodrigo Vivi wrote: > On Thu, Mar 28, 2024 at 10:41:55PM +0100, Andi Shyti wrote: > > On Thu, Mar 28, 2024 at 05:31:07PM -0400, Rodrigo Vivi wrote: > > > This null check is bogus because we are already using 'ce' stuff &g

Re: [PATCH] drm/i915/guc: Remove bogus null check

2024-03-28 Thread Andi Shyti
Hi Rodrigo, On Thu, Mar 28, 2024 at 05:31:07PM -0400, Rodrigo Vivi wrote: > This null check is bogus because we are already using 'ce' stuff > in many places before this function is called. > > Having this here is useless and confuses static analyzer tools > that can see: > > struct

Re: [PATCHv2] drm/xe/display: check for error on drmm_mutex_init

2024-03-28 Thread Andi Shyti
Hi Arun, > > On Thu, Mar 28, 2024 at 12:33:09PM +0200, Jani Nikula wrote: > > > On Thu, 28 Mar 2024, Andi Shyti wrote: > > > >> - drmm_mutex_init(>drm, >sb_lock); > > > >> - drmm_mutex_init(>drm, >display.backlight.lock); &

Re: [PATCH] drm/i915/gem: Calculate object page offset for partial memory mapping

2024-03-28 Thread Andi Shyti
Hi Nirmoy, On Tue, Mar 26, 2024 at 01:05:37PM +0100, Nirmoy Das wrote: > On 3/26/2024 12:12 PM, Andi Shyti wrote: > > > > diff --git a/drivers/gpu/drm/i915/gem/i915_gem_mman.c > > > > b/drivers/gpu/drm/i915/gem/i915_gem_mman.c > > > >

Re: [PATCHv2] drm/xe/display: check for error on drmm_mutex_init

2024-03-28 Thread Andi Shyti
Hi Jani, On Thu, Mar 28, 2024 at 12:33:09PM +0200, Jani Nikula wrote: > On Thu, 28 Mar 2024, Andi Shyti wrote: > >> - drmm_mutex_init(>drm, >sb_lock); > >> - drmm_mutex_init(>drm, >display.backlight.lock); > >> - drmm_mutex_init(>drm, >di

Re: [PATCH] drm/i915/gt: Limit the reserved VM space to only the platforms that need it

2024-03-28 Thread Andi Shyti
Hi Nirmoy, On Thu, Mar 28, 2024 at 09:54:12AM +0100, Nirmoy Das wrote: > On 3/27/2024 9:05 PM, Andi Shyti wrote: > > Commit 9bb66c179f50 ("drm/i915: Reserve some kernel space per > > vm") reduces the available VM space of one page in order to apply > > Wa

Re: [PATCH] drm/i915/gem: Replace dev_priv with i915

2024-03-28 Thread Andi Shyti
Hi, On Thu, Mar 28, 2024 at 08:18:33AM +0100, Andi Shyti wrote: > Anyone using 'dev_priv' instead of 'i915' in a cleaned-up area > should be fined and required to do community service for a few > days. Not to scare people off, I would add another sentence in between: "Using

Re: [PATCHv2] drm/xe/display: check for error on drmm_mutex_init

2024-03-28 Thread Andi Shyti
Hi Arun, ... > - drmm_mutex_init(>drm, >sb_lock); > - drmm_mutex_init(>drm, >display.backlight.lock); > - drmm_mutex_init(>drm, >display.audio.mutex); > - drmm_mutex_init(>drm, >display.wm.wm_mutex); > - drmm_mutex_init(>drm, >display.pps.mutex); > - drmm_mutex_init(>drm,

[PATCH v8 3/3] drm/i915/gt: Enable only one CCS for compute workload

2024-03-28 Thread Andi Shyti
5/dg2: Drop force_probe requirement") Signed-off-by: Andi Shyti Cc: Chris Wilson Cc: Joonas Lahtinen Cc: Matt Roper Cc: # v6.2+ Reviewed-by: Matt Roper Acked-by: Michal Mrozek --- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/gt/intel_gt_ccs_m

[PATCH v8 2/3] drm/i915/gt: Do not generate the command streamer for all the CCS

2024-03-28 Thread Andi Shyti
t;) Signed-off-by: Andi Shyti Cc: Chris Wilson Cc: Joonas Lahtinen Cc: Matt Roper Cc: # v6.2+ Acked-by: Michal Mrozek Reviewed-by: Matt Roper --- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/gpu/drm/i915/gt/intel_engi

[PATCH v8 1/3] drm/i915/gt: Disable HW load balancing for CCS

2024-03-28 Thread Andi Shyti
The hardware should not dynamically balance the load between CCS engines. Wa_14019159160 recommends disabling it across all platforms. Fixes: d2eae8e98d59 ("drm/i915/dg2: Drop force_probe requirement") Signed-off-by: Andi Shyti Cc: Chris Wilson Cc: Joonas Lahtinen Cc: Matt Roper C

[PATCH v8 0/3] Disable automatic load CCS load balancing

2024-03-28 Thread Andi Shyti
-> v2 - In Patch 1 use the correct workaround number (thanks Matt). - In Patch 2 do not add the extra CCS engines to the exposed UABI engine list and adapt the engine counting accordingly (thanks Tvrtko). - Reword the commit of Patch 2 (thanks John). Andi Shyti (3): drm/i915/gt: Disabl

Re: [PATCH v7 2/3] drm/i915/gt: Do not generate the command streamer for all the CCS

2024-03-28 Thread Andi Shyti
Hi Matt, > > + /* > > +* Do not create the command streamer for CCS slices beyond the first. > > +* All the workload submitted to the first engine will be shared among > > +* all the slices. > > +* > > +* Once the user will be allowed to customize the CCS mode, then this > >

[PATCH] drm/i915/gem: Replace dev_priv with i915

2024-03-28 Thread Andi Shyti
Anyone using 'dev_priv' instead of 'i915' in a cleaned-up area should be fined and required to do community service for a few days. I thought I had cleaned up the 'gem/' directory in the past, but still, old aficionados of the 'dev_priv' name keep sneaking it in. Signed-off-by: Andi Shyti Cc

Re: [PATCH] drm/i915/gt: Limit the reserved VM space to only the platforms that need it

2024-03-27 Thread Andi Shyti
Hi, On Wed, Mar 27, 2024 at 09:05:46PM +0100, Andi Shyti wrote: > Commit 9bb66c179f50 ("drm/i915: Reserve some kernel space per > vm") reduces the available VM space of one page in order to apply > Wa_16018031267 and Wa_16018063123. > > This page was reserved indiscrimit

[PATCH] drm/i915/gt: Limit the reserved VM space to only the platforms that need it

2024-03-27 Thread Andi Shyti
("drm/i915: Reserve some kernel space per vm") Signed-off-by: Andi Shyti Cc: Andrzej Hajda Cc: Chris Wilson Cc: Jonathan Cavitt Cc: Nirmoy Das --- drivers/gpu/drm/i915/gt/gen8_ppgtt.c | 3 +++ drivers/gpu/drm/i915/gt/intel_gt.c | 6 ++ drivers/gpu/drm/i915/gt/intel_gt.h |

[PATCH v7 3/3] drm/i915/gt: Enable only one CCS for compute workload

2024-03-27 Thread Andi Shyti
5/dg2: Drop force_probe requirement") Signed-off-by: Andi Shyti Cc: Chris Wilson Cc: Joonas Lahtinen Cc: Matt Roper Cc: # v6.2+ Reviewed-by: Matt Roper Acked-by: Michal Mrozek --- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/gt/intel_gt_ccs_m

[PATCH v7 2/3] drm/i915/gt: Do not generate the command streamer for all the CCS

2024-03-27 Thread Andi Shyti
t;) Signed-off-by: Andi Shyti Cc: Chris Wilson Cc: Joonas Lahtinen Cc: Matt Roper Cc: # v6.2+ Acked-by: Michal Mrozek --- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/gpu/drm/i915/gt/intel_engine_cs.c b/drivers/gpu/d

[PATCH v7 1/3] drm/i915/gt: Disable HW load balancing for CCS

2024-03-27 Thread Andi Shyti
The hardware should not dynamically balance the load between CCS engines. Wa_14019159160 recommends disabling it across all platforms. Fixes: d2eae8e98d59 ("drm/i915/dg2: Drop force_probe requirement") Signed-off-by: Andi Shyti Cc: Chris Wilson Cc: Joonas Lahtinen Cc: Matt Roper C

[PATCH v7 0/3] Disable automatic load CCS load balancing

2024-03-27 Thread Andi Shyti
ch 1, in a cleaner outcome. v1 -> v2 - In Patch 1 use the correct workaround number (thanks Matt). - In Patch 2 do not add the extra CCS engines to the exposed UABI engine list and adapt the engine counting accordingly (thanks Tvrtko). - Reword the commit of Patch 2 (thanks John). Andi Shy

Re: [PATCH v6 2/3] drm/i915/gt: Do not generate the command streamer for all the CCS

2024-03-26 Thread Andi Shyti
Hi Matt, On Tue, Mar 26, 2024 at 02:30:33PM -0700, Matt Roper wrote: > On Tue, Mar 26, 2024 at 07:42:34PM +0100, Andi Shyti wrote: > > On Tue, Mar 26, 2024 at 09:03:10AM -0700, Matt Roper wrote: > > > On Wed, Mar 13, 2024 at 09:19:50PM +0100

Re: [PATCH v6 2/3] drm/i915/gt: Do not generate the command streamer for all the CCS

2024-03-26 Thread Andi Shyti
Hi Matt, On Tue, Mar 26, 2024 at 09:03:10AM -0700, Matt Roper wrote: > On Wed, Mar 13, 2024 at 09:19:50PM +0100, Andi Shyti wrote: > > + /* > > +* Do not create the command streamer for CCS slices > > +* beyond the fi

Re: [PATCH v6 0/3] Disable automatic load CCS load balancing

2024-03-26 Thread Andi Shyti
Hi Michal, Mark, can you please ack from your side this first batch of changes? Thanks, Andi On Wed, Mar 13, 2024 at 09:19:48PM +0100, Andi Shyti wrote: > Hi, > > this series does basically two things: > > 1. Disables automatic load balancing as adviced by the hardware >

Re: [PATCH v6 0/3] Disable automatic load CCS load balancing

2024-03-26 Thread Andi Shyti
Joonas, > 1. Disables automatic load balancing as adviced by the hardware >workaround. do we need a documentation update here? Andi

Re: [PATCH v7 0/3] drm/i915: Fix VMA UAF on destroy against deactivate race

2024-03-26 Thread Andi Shyti
Hi Janusz, On Tue, Mar 05, 2024 at 03:35:05PM +0100, Janusz Krzysztofik wrote: > Object debugging tools were sporadically reporting illegal attempts to > free a still active i915 VMA object when parking a GT believed to be idle. > > [161.359441] ODEBUG: free active (active state 0) object:

Re: [PATCH] drm/i915/gt: Reset queue_priority_hint on parking

2024-03-26 Thread Andi Shyti
Hi Janusz and Chris, > Fixes: 22b7a426bbe1 ("drm/i915/execlists: Preempt-to-busy") > Closes: https://gitlab.freedesktop.org/drm/intel/issues/10154 > Signed-off-by: Chris Wilson > Cc: Mika Kuoppala > Signed-off-by: Janusz Krzysztofik > Cc: Chris Wilson > Cc: # v5.4+ with the tags rearranged

Re: [PATCH] drm/i915/gem: Calculate object page offset for partial memory mapping

2024-03-26 Thread Andi Shyti
Hi Nirmoy, ... > > diff --git a/drivers/gpu/drm/i915/gem/i915_gem_mman.c > > b/drivers/gpu/drm/i915/gem/i915_gem_mman.c > > index a2195e28b625..57a2dda2c3cc 100644 > > --- a/drivers/gpu/drm/i915/gem/i915_gem_mman.c > > +++ b/drivers/gpu/drm/i915/gem/i915_gem_mman.c > > @@ -276,7 +276,7 @@

[PATCH] drm/i915/gem: Calculate object page offset for partial memory mapping

2024-03-25 Thread Andi Shyti
son . Signed-off-by: Andi Shyti Cc: Chris Wilson Cc: Lionel Landwerlin --- drivers/gpu/drm/i915/gem/i915_gem_mman.c | 8 +--- drivers/gpu/drm/i915/i915_mm.c | 12 +++- drivers/gpu/drm/i915/i915_mm.h | 3 ++- 3 files changed, 18 insertions(+), 5 deletions(-) diff --

[PATCH v2] drm/i915/gt: Report full vm address range

2024-03-21 Thread Andi Shyti
n the user requests the GTT size through ioctl (I915_CONTEXT_PARAM_GTT_SIZE). Fixes: 9bb66c179f50 ("drm/i915: Reserve some kernel space per vm") Signed-off-by: Andi Shyti Cc: Andrzej Hajda Cc: Chris Wilson Cc: Lionel Landwerlin Cc: Michal Mrozek Cc: Nirmoy Das Cc: # v6.2+ Acked-by:

Re: [PATCH] drm/i915/gt: Report full vm address range

2024-03-20 Thread Andi Shyti
Hi Michal, On Mon, Mar 18, 2024 at 05:21:54AM +, Mrozek, Michal wrote: > > > Lionel, Michal, thoughts? > Compute UMD needs to know exact GTT total size. the problem is that we cannot apply the workaround without reserving one page from the GTT total size and we need to apply the workaround.

Re: [PATCH v6 0/3] Disable automatic load CCS load balancing

2024-03-20 Thread Andi Shyti
Hi Tvrtko, On Wed, Mar 20, 2024 at 03:40:18PM +, Tvrtko Ursulin wrote: > On 20/03/2024 15:06, Andi Shyti wrote: > > Ping! Any thoughts here? > > I only casually observed the discussion after I saw Matt suggested further > simplifications. As I understood it, you will b

Re: [PATCH v6 0/3] Disable automatic load CCS load balancing

2024-03-20 Thread Andi Shyti
Ping! Any thoughts here? Andi On Wed, Mar 13, 2024 at 09:19:48PM +0100, Andi Shyti wrote: > Hi, > > this series does basically two things: > > 1. Disables automatic load balancing as adviced by the hardware >workaround. > > 2. Assigns all the CCS slices to one sing

Re: [PATCH] drm/i915/gt: Reset queue_priority_hint on parking

2024-03-20 Thread Andi Shyti
# v5.4+ this tag list is a bit confusing. Let's keep all Cc's together and, besides, Cc'eing the author looks a bit redundant. No need to resend also because I retriggered another round of test. Reviewed-by: Andi Shyti Thanks, Andi

Re: [PATCH] drm/i915/gt: Report full vm address range

2024-03-15 Thread Andi Shyti
Hi Nirmoy, > > In Mesa we've been relying on I915_CONTEXT_PARAM_GTT_SIZE so as long as > > that is adjusted by the kernel > > What do you mean by adjusted by, should it be a aligned size? > > I915_CONTEXT_PARAM_GTT_SIZE ioctl is returning vm->total which is > adjusted(reduced by a page). > >

Re: [PATCH v2] drm/i915/gem: Execbuffer objects must have struct pages.

2024-03-14 Thread Andi Shyti
Hi Jonathan, On Tue, Mar 12, 2024 at 07:55:06AM -0700, Jonathan Cavitt wrote: > We cannot write requests to objects without struct pages, so escape > early if the requests are bound to objects that lack them. > > Signed-off-by: Jonathan Cavitt is this a fix? Do you need Fixes: 544460c33821

[PATCH v6 3/3] drm/i915/gt: Enable only one CCS for compute workload

2024-03-13 Thread Andi Shyti
5/dg2: Drop force_probe requirement") Signed-off-by: Andi Shyti Cc: Chris Wilson Cc: Joonas Lahtinen Cc: Matt Roper Cc: # v6.2+ --- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/gt/intel_gt_ccs_mode.c | 39 + drivers/gpu/drm/i915/gt/intel_gt_

[PATCH v6 2/3] drm/i915/gt: Do not generate the command streamer for all the CCS

2024-03-13 Thread Andi Shyti
t;) Signed-off-by: Andi Shyti Cc: Chris Wilson Cc: Joonas Lahtinen Cc: Matt Roper Cc: # v6.2+ --- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 20 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/intel_engine_cs.c b/drivers/gpu/d

[PATCH v6 1/3] drm/i915/gt: Disable HW load balancing for CCS

2024-03-13 Thread Andi Shyti
The hardware should not dynamically balance the load between CCS engines. Wa_14019159160 recommends disabling it across all platforms. Fixes: d2eae8e98d59 ("drm/i915/dg2: Drop force_probe requirement") Signed-off-by: Andi Shyti Cc: Chris Wilson Cc: Joonas Lahtinen Cc: Matt Roper C

[PATCH v6 0/3] Disable automatic load CCS load balancing

2024-03-13 Thread Andi Shyti
unting accordingly (thanks Tvrtko). - Reword the commit of Patch 2 (thanks John). Andi Shyti (3): drm/i915/gt: Disable HW load balancing for CCS drm/i915/gt: Do not generate the command streamer for all the CCS drm/i915/gt: Enable only one CCS for compute workload drivers/gpu

[PATCH] drm/i915/gt: Report full vm address range

2024-03-13 Thread Andi Shyti
Commit 9bb66c179f50 ("drm/i915: Reserve some kernel space per vm") has reserved an object for kernel space usage. Userspace, though, needs to know the full address range. Fixes: 9bb66c179f50 ("drm/i915: Reserve some kernel space per vm") Signed-off-by: Andi Shyti Cc: Andr

Re: [PATCH v2] drm/i915/hwmon: Fix locking inversion in sysfs getter

2024-03-13 Thread Andi Shyti
Hi Janusz, On Mon, Mar 11, 2024 at 09:34:58PM +0100, Janusz Krzysztofik wrote: > In i915 hwmon sysfs getter path we now take a hwmon_lock, then acquire an > rpm wakeref. That results in lock inversion: > > <4> [197.079335] == > <4>

Re: [PATCH] drm/i915/selftests: Pick correct caching mode.

2024-03-13 Thread Andi Shyti
Hi Nirmoy, On Tue, Mar 12, 2024 at 12:18:15PM +0100, Nirmoy Das wrote: > Caching mode is HW dependent so pick a correct one using > intel_gt_coherent_map_type(). > > Cc: Andi Shyti > Cc: Janusz Krzysztofik > Cc: Jonathan Cavitt > Closes: https://gitlab.freedesktop.org/drm

Re: [PATCH v5 2/4] drm/i915/gt: Refactor uabi engine class/instance list creation

2024-03-12 Thread Andi Shyti
On Tue, Mar 12, 2024 at 10:08:33AM -0700, Matt Roper wrote: > On Fri, Mar 08, 2024 at 09:22:17PM +0100, Andi Shyti wrote: > > For the upcoming changes we need a cleaner way to build the list > > of uabi engines. > > > > Suggested-by: Tvrtko Ursulin > > Signed-of

Re: [PATCH v5 1/4] drm/i915/gt: Disable HW load balancing for CCS

2024-03-12 Thread Andi Shyti
Hi Matt, ... > > #define GEN12_RCU_MODE _MMIO(0x14800) > > #define GEN12_RCU_MODE_CCS_ENABLEREG_BIT(0) > > +#define XEHP_RCU_MODE_FIXED_SLICE_CCS_MODE REG_BIT(1) > > Nitpick: we usually order register bits in descending order. Aside from

Re: [PATCH v2] drm/i915/hwmon: Fix locking inversion in sysfs getter

2024-03-12 Thread Andi Shyti
+0xb5/0x100 > > Acquire the wakeref before the lock and hold it as long as the lock is > also held. Follow that pattern across the whole source file where similar > lock inversion can happen. > > v2: Keep hardware read under the lock so the whole operation of updating > energy from ha

Re: [PATCH] drm/i915/selftests: Pick correct caching mode.

2024-03-12 Thread Andi Shyti
Hi Nirmoy, On Tue, Mar 12, 2024 at 12:18:15PM +0100, Nirmoy Das wrote: > Caching mode is HW dependent so pick a correct one using > intel_gt_coherent_map_type(). > > Cc: Andi Shyti > Cc: Janusz Krzysztofik > Cc: Jonathan Cavitt > Closes: https://gitlab.freedesktop.org/drm

[PATCH v5 4/4] drm/i915/gt: Enable only one CCS for compute workload

2024-03-08 Thread Andi Shyti
5/dg2: Drop force_probe requirement") Requires: 075e003a9e22 ("drm/i915/gt: Refactor uabi engine class/instance list creation") Requires: 58b935268238 ("drm/i915/gt: Disable tests for CCS engines beyond the first") Signed-off-by: Andi Shyti Cc: Chris Wilson Cc: Joona

[PATCH v5 3/4] drm/i915/gt: Disable tests for CCS engines beyond the first

2024-03-08 Thread Andi Shyti
In anticipation of the upcoming commit that will operate with only one CCS stream, when more than one CCS slice is present, create a new for_each_available_engine() that excludes CCS engines beyond the forst. Begin using it in the hangcheck selftest. Signed-off-by: Andi Shyti --- drivers/gpu

[PATCH v5 2/4] drm/i915/gt: Refactor uabi engine class/instance list creation

2024-03-08 Thread Andi Shyti
For the upcoming changes we need a cleaner way to build the list of uabi engines. Suggested-by: Tvrtko Ursulin Signed-off-by: Andi Shyti Cc: # v6.2+ --- drivers/gpu/drm/i915/gt/intel_engine_user.c | 29 - 1 file changed, 17 insertions(+), 12 deletions(-) diff --git

  1   2   3   4   5   6   7   8   9   10   >