Re: [Intel-gfx] [PATCH] drm/i915/pmu: Turn off the timer to sample frequencies when GT is parked

2023-05-23 Thread Dixit, Ashutosh
On Fri, 12 May 2023 01:59:08 -0700, Tvrtko Ursulin wrote: > Hi Tvrtko, > On 12/05/2023 02:53, Ashutosh Dixit wrote: > > pmu_needs_timer() keeps the timer running even when GT is parked, > > ostensibly to sample requested/actual frequencies. However > > frequency_sample() has the following: > > >

Re: [Intel-gfx] [PATCH] i915/perf: Avoid reading OA reports before they land

2023-05-23 Thread Dixit, Ashutosh
On Mon, 22 May 2023 15:08:42 -0700, Umesh Nerlige Ramappa wrote: > Hi Umesh, > On Mon, May 22, 2023 at 01:20:12PM -0700, Dixit, Ashutosh wrote: > > On Fri, 19 May 2023 15:56:42 -0700, Umesh Nerlige Ramappa wrote: > >> > >> On DG2, capturing OA reports while

Re: [Intel-gfx] [PATCH 3/3] i915/perf: Drop the aged_tail from rewind logic

2023-05-31 Thread Dixit, Ashutosh
On Wed, 31 May 2023 16:56:34 -0700, Umesh Nerlige Ramappa wrote: > Hi Umesh, > Instead of aged_tail use an iterator that starts from the hw_tail and > goes backward until the oa_buffer.tail looking for valid reports. Hmm I don't think this description is correct. All this patch is doing is the

Re: [Intel-gfx] [PATCH 1/3] i915/perf: Drop the aging_tail logic in perf OA

2023-05-31 Thread Dixit, Ashutosh
On Wed, 31 May 2023 16:56:32 -0700, Umesh Nerlige Ramappa wrote: > Hi Umesh, > On DG2, capturing OA reports while running heavy render workloads > sometimes results in invalid OA reports where 64-byte chunks inside > reports have stale values. Under memory pressure, high OA sampling rates >

Re: [Intel-gfx] [PATCH 2/3] i915/perf: Do not add ggtt offset to hw_tail

2023-05-31 Thread Dixit, Ashutosh
On Wed, 31 May 2023 16:56:33 -0700, Umesh Nerlige Ramappa wrote: > > ggtt offset for hw_tail is not required for the calculations, so drop > it. > > Signed-off-by: Umesh Nerlige Ramappa > --- > drivers/gpu/drm/i915/i915_perf.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff

Re: [Intel-gfx] [PATCH] drm/i915/perf: Consider OA buffer boundary when zeroing out reports

2023-06-16 Thread Dixit, Ashutosh
On Thu, 15 Jun 2023 18:50:35 -0700, Umesh Nerlige Ramappa wrote: > > For reports that are not powers of 2, reports at the end of the OA > buffer may get split across the buffer boundary. When zeroing out such > reports, take the split into consideration. > > Fixes: 09a36015d9a0 ("drm/i915/perf:

Re: [Intel-gfx] [PATCH] drm/i915/perf: Determine context valid in OA reports

2023-06-16 Thread Dixit, Ashutosh
On Thu, 15 Jun 2023 18:38:50 -0700, Umesh Nerlige Ramappa wrote: > Hi Umesh, > When supporting OA for TGL, it was seen that the context valid bit in > the report ID was not defined, however revisiting the spec seems to have > this bit defined. The bit is used to determine if a context is valid

Re: [Intel-gfx] [igt-dev] [PATCH v3 i-g-t] tests/i915_pm_freq_api: Add a suspend subtest

2023-06-22 Thread Dixit, Ashutosh
On Fri, 16 Jun 2023 08:50:48 -0700, Vinay Belgaumkar wrote: > > Verify that SLPC API works as expected after a suspend. Added > another subtest that does multiple GT resets and checks freq api > works as expected after each one. > > We now check requested frequency instead of soft min/max after a

Re: [Intel-gfx] [PATCH] drm/i915/guc: Dump perf_limit_reasons for debug

2023-06-26 Thread Dixit, Ashutosh
On Mon, 26 Jun 2023 19:12:18 -0700, Vinay Belgaumkar wrote: > > GuC load takes longer sometimes due to GT frequency not ramping up. > Add perf_limit_reasons to the existing warn print to see if frequency > is being throttled. > > Signed-off-by: Vinay Belgaumkar > --- >

Re: [Intel-gfx] [PATCH v2] drm/i915/guc: Dump perf_limit_reasons for debug

2023-06-27 Thread Dixit, Ashutosh
On Tue, 27 Jun 2023 12:13:36 -0700, Vinay Belgaumkar wrote: > > GuC load takes longer sometimes due to GT frequency not ramping up. > Add perf_limit_reasons to the existing warn print to see if frequency > is being throttled. > > v2: Review comments (Ashutosh) Reviewed-by: Ashutosh Dixit > >

Re: [Intel-gfx] [PATCH] drm/i915/guc: Dump perf_limit_reasons for debug

2023-06-27 Thread Dixit, Ashutosh
On Mon, 26 Jun 2023 21:02:14 -0700, Belgaumkar, Vinay wrote: > > > On 6/26/2023 8:17 PM, Dixit, Ashutosh wrote: > > On Mon, 26 Jun 2023 19:12:18 -0700, Vinay Belgaumkar wrote: > >> GuC load takes longer sometimes due to GT frequency not ramping up. > >> Add perf_l

Re: [Intel-gfx] [PATCH] drm/i915/guc/slpc: Apply min softlimit correctly

2023-06-13 Thread Dixit, Ashutosh
On Fri, 09 Jun 2023 15:02:52 -0700, Vinay Belgaumkar wrote: > Hi Vinay, > We were skipping when min_softlimit was equal to RPn. We need to apply > it rergardless as efficient frequency will push the SLPC min to RPe. regardless > This will break scenarios where user sets a min softlimit < RPe

Re: [Intel-gfx] [PATCH] drm/i915/perf: Consider OA buffer boundary when zeroing out reports

2023-06-16 Thread Dixit, Ashutosh
On Fri, 16 Jun 2023 10:34:02 -0700, Umesh Nerlige Ramappa wrote: > > For reports that are not powers of 2, reports at the end of the OA > buffer may get split across the buffer boundary. When zeroing out such > reports, take the split into consideration. > > v2: Use OA_BUFFER_SIZE (Ashutosh) > >

Re: [Intel-gfx] [PATCH] drm/i915/guc/slpc: Apply min softlimit correctly

2023-06-15 Thread Dixit, Ashutosh
On Fri, 09 Jun 2023 15:02:52 -0700, Vinay Belgaumkar wrote: > Hi Vinay, > We were skipping when min_softlimit was equal to RPn. We need to apply > it rergardless as efficient frequency will push the SLPC min to RPe. > This will break scenarios where user sets a min softlimit < RPe before > reset

Re: [Intel-gfx] [PATCH 4/6] drm/i915/pmu: Add reference counting to the sampling timer

2023-05-10 Thread Dixit, Ashutosh
On Tue, 09 May 2023 10:25:16 -0700, Dixit, Ashutosh wrote: > > On Fri, 05 May 2023 17:58:14 -0700, Umesh Nerlige Ramappa wrote: > > > > From: Tvrtko Ursulin > > > > We do not want to have timers per tile and waste CPU cycles and energy via > > multiple

Re: [Intel-gfx] [PATCH] drm/i915/guc/slpc: Disable rps_boost debugfs

2023-05-12 Thread Dixit, Ashutosh
On Fri, 12 May 2023 16:56:03 -0700, Vinay Belgaumkar wrote: > Hi Vinay, > rps_boost debugfs shows host turbo related info. This is not valid > when SLPC is enabled. A couple of thoughts about this. It appears people are know only about rps_boost_info and don't know about guc_slpc_info? So: a.

Re: [Intel-gfx] [PATCH 6/6] drm/i915/pmu: Export counters from all tiles

2023-05-12 Thread Dixit, Ashutosh
On Fri, 12 May 2023 11:53:32 -0700, Umesh Nerlige Ramappa wrote: > > On Fri, May 12, 2023 at 10:08:58AM -0700, Dixit, Ashutosh wrote: > > On Fri, 12 May 2023 03:57:35 -0700, Tvrtko Ursulin wrote: > >> > >> > >> On 11/05/2023 19:57, Dixit, Ashutosh wrote: &g

Re: [Intel-gfx] [PATCH 4/6] drm/i915/pmu: Add reference counting to the sampling timer

2023-05-12 Thread Dixit, Ashutosh
On Fri, 05 May 2023 17:58:14 -0700, Umesh Nerlige Ramappa wrote: > Hi Umesh/Tvrtko, > From: Tvrtko Ursulin > > We do not want to have timers per tile and waste CPU cycles and energy via > multiple wake-up sources, for a relatively un-important task of PMU > sampling, so keeping a single timer

Re: [Intel-gfx] [PATCH 4/6] drm/i915/pmu: Add reference counting to the sampling timer

2023-05-12 Thread Dixit, Ashutosh
On Fri, 12 May 2023 15:44:00 -0700, Umesh Nerlige Ramappa wrote: > > On Fri, May 12, 2023 at 03:29:03PM -0700, Dixit, Ashutosh wrote: > > On Fri, 05 May 2023 17:58:14 -0700, Umesh Nerlige Ramappa wrote: > >> > > > > Hi Umesh/Tvrtko, > > > >> From:

Re: [Intel-gfx] [PATCH] drm/i915/hwmon: Silence UBSAN uninitialized bool variable warning

2023-05-12 Thread Dixit, Ashutosh
On Fri, 12 May 2023 02:33:33 -0700, Andi Shyti wrote: > Hi Andi, > > On Thu, May 11, 2023 at 10:43:30AM -0700, Dixit, Ashutosh wrote: > > On Wed, 10 May 2023 11:36:06 -0700, Ashutosh Dixit wrote: > > > > > > Loading i915 on UBSAN enabled kernels (CONFIG_UBSA

Re: [Intel-gfx] [PATCH 4/6] drm/i915/pmu: Add reference counting to the sampling timer

2023-05-12 Thread Dixit, Ashutosh
On Fri, 12 May 2023 18:55:43 -0700, Umesh Nerlige Ramappa wrote: > > From: Tvrtko Ursulin > > We do not want to have timers per tile and waste CPU cycles and energy via > multiple wake-up sources, for a relatively un-important task of PMU > sampling, so keeping a single timer works well. But we

Re: [Intel-gfx] [PATCH 5/6] drm/i915/pmu: Prepare for multi-tile non-engine counters

2023-05-12 Thread Dixit, Ashutosh
On Fri, 12 May 2023 18:55:44 -0700, Umesh Nerlige Ramappa wrote: > > From: Tvrtko Ursulin > > Reserve some bits in the counter config namespace which will carry the > tile id and prepare the code to handle this. > > No per tile counters have been added yet. > > v2: > - Fix checkpatch issues > -

Re: [Intel-gfx] [PATCH 5/6] drm/i915/pmu: Prepare for multi-tile non-engine counters

2023-05-12 Thread Dixit, Ashutosh
On Fri, 12 May 2023 13:57:59 -0700, Umesh Nerlige Ramappa wrote: > > On Fri, May 12, 2023 at 11:56:18AM +0100, Tvrtko Ursulin wrote: > > > > On 12/05/2023 02:08, Dixit, Ashutosh wrote: > >> On Fri, 05 May 2023 17:58:15 -0700, Umesh Nerlige Ramappa wrote: >

Re: [Intel-gfx] [PATCH 5/6] drm/i915/pmu: Prepare for multi-tile non-engine counters

2023-05-15 Thread Dixit, Ashutosh
On Mon, 15 May 2023 03:10:56 -0700, Tvrtko Ursulin wrote: > Hi Tvrtko, > On 12/05/2023 21:57, Umesh Nerlige Ramappa wrote: > > On Fri, May 12, 2023 at 11:56:18AM +0100, Tvrtko Ursulin wrote: > >> > >> On 12/05/2023 02:08, Dixit, Ashutosh wrote: > >>>

Re: [Intel-gfx] [PATCH 4/6] drm/i915/pmu: Add reference counting to the sampling timer

2023-05-15 Thread Dixit, Ashutosh
On Mon, 15 May 2023 02:52:35 -0700, Tvrtko Ursulin wrote: > > On 13/05/2023 00:44, Umesh Nerlige Ramappa wrote: > > On Fri, May 12, 2023 at 04:20:19PM -0700, Dixit, Ashutosh wrote: > >> On Fri, 12 May 2023 15:44:00 -0700, Umesh Nerlige Ramappa wrote: > >>> > &g

Re: [Intel-gfx] [PATCH] drm/i915/guc/slpc: Disable rps_boost debugfs

2023-05-15 Thread Dixit, Ashutosh
On Mon, 15 May 2023 15:58:26 -0700, Dixit, Ashutosh wrote: > > On Mon, 15 May 2023 15:23:58 -0700, Belgaumkar, Vinay wrote: > > > > > > On 5/12/2023 5:39 PM, Dixit, Ashutosh wrote: > > > On Fri, 12 May 2023 16:56:03 -0700, Vinay Belgaumkar wrote: > > >

Re: [Intel-gfx] [PATCH] drm/i915/guc/slpc: Disable rps_boost debugfs

2023-05-15 Thread Dixit, Ashutosh
On Mon, 15 May 2023 15:23:58 -0700, Belgaumkar, Vinay wrote: > > > On 5/12/2023 5:39 PM, Dixit, Ashutosh wrote: > > On Fri, 12 May 2023 16:56:03 -0700, Vinay Belgaumkar wrote: > > Hi Vinay, > > > >> rps_boost debugfs shows host turbo related info. This is

Re: [Intel-gfx] [PATCH 4/6] drm/i915/pmu: Add reference counting to the sampling timer

2023-05-16 Thread Dixit, Ashutosh
On Tue, 16 May 2023 00:12:45 -0700, Tvrtko Ursulin wrote: > > On 15/05/2023 22:24, Dixit, Ashutosh wrote: > > On Mon, 15 May 2023 02:52:35 -0700, Tvrtko Ursulin wrote: > >> > >> On 13/05/2023 00:44, Umesh Nerlige Ramappa wrote: > >>> On Fri, May 12, 2023

Re: [Intel-gfx] [PATCH] drm/i915/pmu: Change bitmask of enabled events to u32

2023-05-16 Thread Dixit, Ashutosh
On Tue, 16 May 2023 02:24:45 -0700, Tvrtko Ursulin wrote: > > From: Tvrtko Ursulin > > Having it as u64 was a confusing (but harmless) mistake. > > Also add some asserts to make sure the internal field does not overflow > in the future. > > Signed-off-by: Tvrtko Ursulin > Cc: Ashutosh Dixit >

Re: [Intel-gfx] [PATCH v5 1/7] drm/i915/pmu: Change bitmask of enabled events to u32

2023-05-16 Thread Dixit, Ashutosh
On Tue, 16 May 2023 16:35:28 -0700, Umesh Nerlige Ramappa wrote: > Hi Umesh/Tvrtko, Mostly repeating comments/questions made on the previous patch below. > From: Tvrtko Ursulin > > Having it as u64 was a confusing (but harmless) mistake. > > Also add some asserts to make sure the internal

Re: [Intel-gfx] [PATCH v5 6/7] drm/i915/pmu: Prepare for multi-tile non-engine counters

2023-05-16 Thread Dixit, Ashutosh
On Tue, 16 May 2023 16:35:33 -0700, Umesh Nerlige Ramappa wrote: > Hi Umesh, > +static u64 frequency_enabled_mask(void) u32 > +{ > + unsigned int i; > + u64 mask = 0; u32 > + > + for (i = 0; i < I915_PMU_MAX_GTS; i++) > + mask |=

Re: [Intel-gfx] [PATCH 6/6] drm/i915/pmu: Export counters from all tiles

2023-05-11 Thread Dixit, Ashutosh
On Fri, 05 May 2023 17:58:16 -0700, Umesh Nerlige Ramappa wrote: > One drive-by comment: > diff --git a/drivers/gpu/drm/i915/i915_pmu.c b/drivers/gpu/drm/i915/i915_pmu.c > index 12b2f3169abf..284e5c5b97bb 100644 > --- a/drivers/gpu/drm/i915/i915_pmu.c > +++ b/drivers/gpu/drm/i915/i915_pmu.c > @@

Re: [Intel-gfx] [PATCH] drm/i915/hwmon: Silence UBSAN uninitialized bool variable warning

2023-05-11 Thread Dixit, Ashutosh
On Wed, 10 May 2023 11:36:06 -0700, Ashutosh Dixit wrote: > > Loading i915 on UBSAN enabled kernels (CONFIG_UBSAN/CONFIG_UBSAN_BOOL) > causes the following warning: > > UBSAN: invalid-load in drivers/gpu/drm/i915/gt/uc/intel_uc.c:558:2 > load of value 255 is not a valid value for type '_Bool'

Re: [Intel-gfx] [PATCH 5/6] drm/i915/pmu: Prepare for multi-tile non-engine counters

2023-05-11 Thread Dixit, Ashutosh
On Fri, 05 May 2023 17:58:15 -0700, Umesh Nerlige Ramappa wrote: > > From: Tvrtko Ursulin > > Reserve some bits in the counter config namespace which will carry the > tile id and prepare the code to handle this. > > No per tile counters have been added yet. > > v2: > - Fix checkpatch issues > -

Re: [Intel-gfx] [PATCH 6/6] drm/i915/pmu: Export counters from all tiles

2023-05-12 Thread Dixit, Ashutosh
On Fri, 12 May 2023 03:57:35 -0700, Tvrtko Ursulin wrote: > > > On 11/05/2023 19:57, Dixit, Ashutosh wrote: > > On Fri, 05 May 2023 17:58:16 -0700, Umesh Nerlige Ramappa wrote: > >> > > > > One drive-by comment: > > > >> diff --git a/drivers/g

Re: [Intel-gfx] [PATCH v5 1/7] drm/i915/pmu: Change bitmask of enabled events to u32

2023-05-17 Thread Dixit, Ashutosh
On Wed, 17 May 2023 01:26:15 -0700, Tvrtko Ursulin wrote: > > > On 17/05/2023 07:55, Umesh Nerlige Ramappa wrote: > > On Tue, May 16, 2023 at 05:25:50PM -0700, Dixit, Ashutosh wrote: > >> On Tue, 16 May 2023 16:35:28 -0700, Umesh Nerlige Ramappa wrote: > &g

Re: [Intel-gfx] [PATCH v5 1/7] drm/i915/pmu: Change bitmask of enabled events to u32

2023-05-17 Thread Dixit, Ashutosh
On Wed, 17 May 2023 13:15:14 -0700, Umesh Nerlige Ramappa wrote: > > Leaving it as is. @Ashutosh, okay to use your R-b without any changes to > this patch? Yes. Reviewed-by: Ashutosh Dixit

Re: [Intel-gfx] [PATCH v6 6/7] drm/i915/pmu: Prepare for multi-tile non-engine counters

2023-05-17 Thread Dixit, Ashutosh
On Wed, 17 May 2023 13:55:41 -0700, Umesh Nerlige Ramappa wrote: > > From: Tvrtko Ursulin > > Reserve some bits in the counter config namespace which will carry the > tile id and prepare the code to handle this. > > No per tile counters have been added yet. > > v2: > - Fix checkpatch issues > -

Re: [Intel-gfx] [PATCH 4/6] drm/i915/pmu: Add reference counting to the sampling timer

2023-05-09 Thread Dixit, Ashutosh
On Fri, 05 May 2023 17:58:14 -0700, Umesh Nerlige Ramappa wrote: > > From: Tvrtko Ursulin > > We do not want to have timers per tile and waste CPU cycles and energy via > multiple wake-up sources, for a relatively un-important task of PMU > sampling, so keeping a single timer works well. But we

Re: [PATCH] drm/xe: Fix build without CONFIG_FAULT_INJECTION

2023-12-18 Thread Dixit, Ashutosh
On Mon, 18 Dec 2023 06:57:14 -0800, Thomas Hellström wrote: > > > On 12/18/23 15:30, Rodrigo Vivi wrote: > > Ideally this header could be included without the CONFIG_FAULT_INJECTION > > and it would take care itself for the includes it needs. > > So, let's temporary workaround this by moving this

Re: [PATCH] drm/i915/perf: Update handling of MMIO triggered reports

2023-12-18 Thread Dixit, Ashutosh
On Mon, 18 Dec 2023 16:05:43 -0800, Umesh Nerlige Ramappa wrote: > Hi Umesh, > On XEHP platforms user is not able to find MMIO triggered reports in the > OA buffer since i915 squashes the context ID fields. These context ID > fields hold the MMIO trigger markers. > > Update logic to not squash

Re: [PATCH] drm/i915/perf: Update handling of MMIO triggered reports

2023-12-18 Thread Dixit, Ashutosh
On Mon, 18 Dec 2023 21:28:33 -0800, Dixit, Ashutosh wrote: > > On Mon, 18 Dec 2023 16:05:43 -0800, Umesh Nerlige Ramappa wrote: > > > > Hi Umesh, > > > On XEHP platforms user is not able to find MMIO triggered reports in the > > OA buffer since i915 squashes the co

Re: [PATCH] drm/i915/perf: Update handling of MMIO triggered reports

2023-12-18 Thread Dixit, Ashutosh
On Mon, 18 Dec 2023 22:07:38 -0800, Umesh Nerlige Ramappa wrote: > > On Mon, Dec 18, 2023 at 09:48:39PM -0800, Dixit, Ashutosh wrote: > > On Mon, 18 Dec 2023 21:28:33 -0800, Dixit, Ashutosh wrote: > >> > >> On Mon, 18 Dec 2023 16:05:43 -0800, Umesh Nerlige Ramappa wr

Re: [PATCH v2] drm/hwmon: Fix abi doc warnings

2024-01-27 Thread Dixit, Ashutosh
On Sat, 27 Jan 2024 08:50:40 -0800, Badal Nilawar wrote: > Hi Badal, > This fixes warnings in xe, i915 hwmon docs > > Warning: /sys/devices/.../hwmon/hwmon/curr1_crit is defined 2 times: > Documentation/ABI/testing/sysfs-driver-intel-xe-hwmon:35 >

Re: [PATCH v2] drm/hwmon: Fix abi doc warnings

2024-01-29 Thread Dixit, Ashutosh
On Mon, 29 Jan 2024 07:18:59 -0800, Lucas De Marchi wrote: > > On Sat, Jan 27, 2024 at 12:10:08PM -0800, Ashutosh Dixit wrote: > > On Sat, 27 Jan 2024 08:50:40 -0800, Badal Nilawar wrote: > >> > > > > Hi Badal, > > > >> This fixes warnings in xe, i915 hwmon docs > >> > >> Warning:

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

2024-04-09 Thread Dixit, Ashutosh
On Tue, 09 Apr 2024 21:28:55 -0700, Ashutosh Dixit wrote: > > There are no hwmon selftests so there is no need to enable hwmon for > selftests. So enable hwmon only for real driver load. > > Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/10366 This will resolve this CI issue for now

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

2024-04-10 Thread Dixit, Ashutosh
On Tue, 09 Apr 2024 22:17:38 -0700, Nilawar, Badal wrote: > > > +#if IS_ENABLED(CONFIG_DRM_I915_SELFTEST) > > + return i915_selftest.live || i915_selftest.perf || i915_selftest.mock; > > +#else > > + return false; > > +#endif > > +} > I think you moved this function here as this is only used

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

2024-04-16 Thread Dixit, Ashutosh
On Tue, 16 Apr 2024 11:55:20 -0700, Rodrigo Vivi wrote: > Hi Rodrigo, > > @@ -849,5 +849,26 @@ void i915_hwmon_register(struct drm_i915_private *i915) > > > > void i915_hwmon_unregister(struct drm_i915_private *i915) > > { > > - fetch_and_zero(>hwmon); > > + struct i915_hwmon *hwmon =

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

2024-04-17 Thread Dixit, Ashutosh
On Wed, 17 Apr 2024 01:28:48 -0700, Andi Shyti wrote: > Hi Andi, > > @@ -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; > > > > -

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

2024-04-18 Thread Dixit, Ashutosh
On Thu, 18 Apr 2024 14:56:58 -0700, Andi Shyti wrote: > > > 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

Re: ✗ Fi.CI.IGT: failure for drm/i915/hwmon: Get rid of devm (rev6)

2024-04-18 Thread Dixit, Ashutosh
On Thu, 18 Apr 2024 15:57:49 -0700, Patchwork wrote: > > Project List - Patchwork > > Patch Details > > Series: drm/i915/hwmon: Get rid of devm (rev6) > URL: https://patchwork.freedesktop.org/series/132400/ > State: failure > Details: >

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

2024-04-15 Thread Dixit, Ashutosh
On Sat, 13 Apr 2024 07:43:50 -0700, Armin Wolf wrote: > Hi Armin, > Am 13.04.24 um 02:10 schrieb Ashutosh Dixit: > > > When both hwmon and hwmon drvdata (on which hwmon depends) are device > > managed resources, the expectation, on device unbind, is that hwmon will be > > released before the

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

2024-04-14 Thread Dixit, Ashutosh
On Fri, 12 Apr 2024 17:10:31 -0700, Ashutosh Dixit wrote: > > When both hwmon and hwmon drvdata (on which hwmon depends) are device > managed resources, the expectation, on device unbind, is that hwmon will be > released before the drvdata. However, it appears devres does not do this >

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

2024-04-15 Thread Dixit, Ashutosh
On Mon, 15 Apr 2024 16:35:02 -0700, Armin Wolf wrote: > Hi Armin, > Am 16.04.24 um 00:36 schrieb Ashutosh Dixit: > > @@ -818,10 +818,10 @@ void i915_hwmon_register(struct drm_i915_private > > *i915) > > hwm_get_preregistration_info(i915); > > > > /* hwmon_dev points to device hwmon */

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

2024-04-10 Thread Dixit, Ashutosh
On Wed, 10 Apr 2024 06:53:15 -0700, Andi Shyti wrote: > Hi Andi, > please use "git format-patch -v 3 ..." which generates subject > [PATCH v3] ...". Otherwise it gets confusing to see the patch > that needs to be reviewed. Sure, sorry! > > On Tue, Apr 09, 2024 at 11:05:49PM -0700, Ashutosh

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

2024-04-10 Thread Dixit, Ashutosh
On Wed, 10 Apr 2024 04:42:46 -0700, Ville Syrjälä wrote: > > On Tue, Apr 09, 2024 at 09:28:55PM -0700, Ashutosh Dixit wrote: > > There are no hwmon selftests so there is no need to enable hwmon for > > selftests. So enable hwmon only for real driver load. > > > > Closes:

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

2024-04-12 Thread Dixit, Ashutosh
On Thu, 11 Apr 2024 03:47:13 -0700, Ville Syrjälä wrote: > > On Wed, Apr 10, 2024 at 10:09:32PM -0700, Dixit, Ashutosh wrote: > > On Wed, 10 Apr 2024 04:42:46 -0700, Ville Syrjälä wrote: > > > > > > On Tue, Apr 09, 2024 at 09:28:55PM -0700, Ashutosh Dixit wro

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

2024-04-12 Thread Dixit, Ashutosh
On Fri, 12 Apr 2024 17:35:15 -0700, Dixit, Ashutosh wrote: > > On Thu, 11 Apr 2024 03:47:13 -0700, Ville Syrjälä wrote: > > > > On Wed, Apr 10, 2024 at 10:09:32PM -0700, Dixit, Ashutosh wrote: > > > On Wed, 10 Apr 2024 04:42:46 -0700, Ville Syrjälä wrote: > > >

Re: [PATCH] drm/xe/xe_ggtt: No need to use xe_pm_runtime_get_noresume

2024-04-29 Thread Dixit, Ashutosh
On Mon, 29 Apr 2024 11:24:27 -0700, Rodrigo Vivi wrote: > > On Mon, Apr 29, 2024 at 09:29:15AM -0700, Ashutosh Dixit wrote: > > Switching from xe_device_mem_access_get/put to xe_pm_runtime_get/put > > results in the following WARNING in xe_oa: > > > > [11614.356168] xe :00:02.0: Missing outer

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

2024-03-12 Thread Dixit, Ashutosh
On Mon, 11 Mar 2024 13:34:58 -0700, 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> [197.085473] WARNING:

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

2024-03-12 Thread Dixit, Ashutosh
On Tue, 12 Mar 2024 13:34:25 -0700, Janusz Krzysztofik wrote: > Hi Janusz, > On Tuesday, 12 March 2024 17:25:14 CET Dixit, Ashutosh wrote: > > On Mon, 11 Mar 2024 13:34:58 -0700, Janusz Krzysztofik wrote: > > > > > > In i915 hwmon sysfs getter path we now t

Re: [PATCH] drm/i915/hwmon: Remove i915_hwmon_unregister() during driver unbind

2024-03-28 Thread Dixit, Ashutosh
On Wed, 27 Mar 2024 13:37:19 -0700, Dixit, Ashutosh wrote: > > On Wed, 27 Mar 2024 02:15:27 -0700, Krzysztofik, Janusz wrote: > > > > Hi Janusz, > > > For me, that still doesn't explain why you think that i915->hwmon reset to > > NULL on i915 driver unregister c

Re: [PATCH] drm/i915/hwmon: Remove i915_hwmon_unregister() during driver unbind

2024-03-27 Thread Dixit, Ashutosh
On Tue, 26 Mar 2024 05:48:38 -0700, Badal Nilawar wrote: > Hi Badal, > i915_hwmon and its resources are managed resources of i915 dev. > During i915 driver unregister flow the function i915_hwmon_unregister() > explicitly makes i915_hwmon resource NULL. This happen before > hwmon is actually

Re: [PATCH] drm/i915/hwmon: Remove i915_hwmon_unregister() during driver unbind

2024-03-27 Thread Dixit, Ashutosh
On Wed, 27 Mar 2024 02:15:27 -0700, Krzysztofik, Janusz wrote: > Hi Janusz, > For me, that still doesn't explain why you think that i915->hwmon reset to > NULL on i915 driver unregister can be the root cause of the reported UAF in > hwmon sysfs and this patch is going to fix that UAF issue. I

Please apply "drm/i915/hwmon: Get rid of devm" to stable trees (Option 2)

2024-05-25 Thread Dixit, Ashutosh
Patch subject: drm/i915/hwmon: Get rid of devm Commit ID: 5bc9de065b8bb9b8dd8799ecb4592d0403b54281 Reason: Fixes potential kernel crash listed in https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10366 Kernel versions:6.2

<    1   2   3   4   5   6