Re: [PATCH] drm/i915/uc: Include requested frequency in slow firmware load messages

2025-01-16 Thread John Harrison
On 1/16/2025 03:52, Krzysztof Karas wrote: Hi John, From: John Harrison To aid debug of sporadic issues, include the requested frequency in the debug message as well as the actual frequency. That way we know for certain that the clamping is not because the driver forgot to ask

Re: [PATCH] drm/i915: Add debug print about hw config table size

2025-01-06 Thread John Harrison
On 12/24/2024 11:10, Daniele Ceraolo Spurio wrote: On 12/24/2024 10:13 AM, John Harrison wrote: On 12/23/2024 15:20, Daniele Ceraolo Spurio wrote: On 12/20/2024 5:19 PM, john.c.harri...@intel.com wrote: From: John Harrison Add debug info to help investigate a very rare bug: https

Re: [PATCH] drm/i915: Add debug print about hw config table size

2024-12-24 Thread John Harrison
On 12/23/2024 15:20, Daniele Ceraolo Spurio wrote: On 12/20/2024 5:19 PM, john.c.harri...@intel.com wrote: From: John Harrison Add debug info to help investigate a very rare bug: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13385 Signed-off-by: John Harrison --- drivers/gpu

Re: [PATCH][next] drm/xe/guc: Fix inverted logic on snapshot->copy check

2024-10-09 Thread John Harrison
x this by using the correct non-null pointer check logic. Fixes: d8ce1a977226 ("drm/xe/guc: Use a two stage dump for GuC logs and add more info") Signed-off-by: Colin Ian King Reviewed-by: John Harrison Thanks for the fix. --- drivers/gpu/drm/xe/xe_guc_log.c | 2 +- 1 file change

Re: [PATCH v8 00/11] drm/xe/guc: Improve GuC log dumping and add to devcoredump

2024-09-19 Thread John Harrison
Please ignore, sent to the wrong mailing list! John.

Re: [PATCH v2] drm/print: Introduce drm_line_printer

2024-06-14 Thread John Harrison
On 5/30/2024 14:09, Michal Wajdeczko wrote: On 30.05.2024 20:47, John Harrison wrote: On 5/30/2024 02:33, Michal Wajdeczko wrote: On 30.05.2024 09:49, Jani Nikula wrote: On Wed, 29 May 2024, John Harrison wrote: On 5/28/2024 06:06, Michal Wajdeczko wrote: This drm printer wrapper can be

Re: [PATCH v2] drm/print: Introduce drm_line_printer

2024-06-14 Thread John Harrison
On 5/30/2024 14:27, Michal Wajdeczko wrote: On 30.05.2024 20:47, John Harrison wrote: On 5/30/2024 00:49, Jani Nikula wrote: On Wed, 29 May 2024, John Harrison wrote: On 5/28/2024 06:06, Michal Wajdeczko wrote: This drm printer wrapper can be used to increase the robustness of the captured

Re: [PATCH v2] drm/print: Introduce drm_line_printer

2024-06-14 Thread John Harrison
On 5/30/2024 12:37, Jani Nikula wrote: On Thu, 30 May 2024, John Harrison wrote: Except that the whole reason this was started was because Michal absolutely refuses to allow line counted output in a sysfs/debugfs file because "it is unnecessary and breaks the decoding tools". I'

Re: [PATCH v2] drm/print: Introduce drm_line_printer

2024-05-30 Thread John Harrison
On 5/30/2024 02:33, Michal Wajdeczko wrote: On 30.05.2024 09:49, Jani Nikula wrote: On Wed, 29 May 2024, John Harrison wrote: On 5/28/2024 06:06, Michal Wajdeczko wrote: This drm printer wrapper can be used to increase the robustness of the captured output generated by any other drm_printer

Re: [PATCH v2] drm/print: Introduce drm_line_printer

2024-05-30 Thread John Harrison
On 5/30/2024 00:49, Jani Nikula wrote: On Wed, 29 May 2024, John Harrison wrote: On 5/28/2024 06:06, Michal Wajdeczko wrote: This drm printer wrapper can be used to increase the robustness of the captured output generated by any other drm_printer to make sure we didn't lost any interme

Re: [PATCH v2] drm/print: Introduce drm_line_printer

2024-05-29 Thread John Harrison
uring some crash data. Signed-off-by: Michal Wajdeczko Cc: Jani Nikula Cc: John Harrison --- v2: don't abuse prefix, use union instead (Jani) don't use 'dp' as name, prefer 'p' (Jani) add support for unique series identifier (John) --- drivers/gpu/drm/

Re: [PATCH] drm/i915/guc: Enable w/a 14019882105 for DG2 and MTL

2024-05-28 Thread John Harrison
On 5/28/2024 13:21, Matt Roper wrote: On Fri, May 24, 2024 at 06:41:20PM -0700, john.c.harri...@intel.com wrote: From: John Harrison Enable another workaround that is implemented inside the GuC. Signed-off-by: John Harrison --- drivers/gpu/drm/i915/gt/uc/abi/guc_klvs_abi.h | 1

Re: [RFC] drm/print: Introduce drm_line_printer

2024-05-23 Thread John Harrison
On 5/23/2024 16:54, Daniele Ceraolo Spurio wrote: Forwarded Message Subject:[RFC] drm/print: Introduce drm_line_printer Date: Tue, 14 May 2024 16:56:31 +0200 From: Michal Wajdeczko To: dri-devel@lists.freedesktop.org This drm printer wrapper can be used to in

Re: [PATCH 4/4] drm/xe/guc: Expose raw access to GuC log over debugfs

2024-05-14 Thread John Harrison
On 5/14/2024 13:41, Michal Wajdeczko wrote: On 14.05.2024 20:13, John Harrison wrote: On 5/14/2024 07:58, Michal Wajdeczko wrote: On 13.05.2024 18:53, John Harrison wrote: On 5/12/2024 08:36, Michal Wajdeczko wrote: We already provide the content of the GuC log in debugsfs, but it is in a

Re: [PATCH 4/4] drm/xe/guc: Expose raw access to GuC log over debugfs

2024-05-14 Thread John Harrison
On 5/14/2024 14:15, Michal Wajdeczko wrote: On 14.05.2024 22:31, Matthew Brost wrote: On Tue, May 14, 2024 at 11:13:14AM -0700, John Harrison wrote: On 5/14/2024 07:58, Michal Wajdeczko wrote: On 13.05.2024 18:53, John Harrison wrote: On 5/12/2024 08:36, Michal Wajdeczko wrote: We already

Re: [PATCH 4/4] drm/xe/guc: Expose raw access to GuC log over debugfs

2024-05-14 Thread John Harrison
On 5/14/2024 07:58, Michal Wajdeczko wrote: On 13.05.2024 18:53, John Harrison wrote: On 5/12/2024 08:36, Michal Wajdeczko wrote: We already provide the content of the GuC log in debugsfs, but it is in a text format where each log dword is printed as hexadecimal number, which does not scale

Re: [PATCH 4/4] drm/xe/guc: Expose raw access to GuC log over debugfs

2024-05-13 Thread John Harrison
most atomic copy of the log into a temporary buffer before reading it out. Doing the read in separate chunks is only going to make that problem even worse. John. Signed-off-by: Michal Wajdeczko Cc: Lucas De Marchi Cc: John Harrison --- Cc: linux-fsde...@vger.kernel.org Cc: dri-devel@lists.freed

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

2024-04-22 Thread John Harrison
CSB FIFO. To address this issue, the GuC should be killed only after resetting the requested engines and before calling intel_gt_init_hw(). v2: Improve commit message(John) Cc: John Harrison Signed-off-by: Nirmoy Das Reviewed-by: John Harrison --- drivers/gpu/drm/i915/gt/intel_reset.c | 16

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

2024-04-22 Thread John Harrison
diff simple(John) Cc: John Harrison Signed-off-by: Nirmoy Das Reviewed-by: John Harrison --- drivers/gpu/drm/i915/gt/intel_engine_cs.c | 2 +- .../drm/i915/gt/intel_execlists_submission.c | 2 +- drivers/gpu/drm/i915/gt/intel_gt.c| 2 +- drivers/gpu/drm/i915/gt

Re: [PATCH 3/3] drm/i915: Fix gt reset with GuC submission disabled

2024-04-18 Thread John Harrison
On 4/18/2024 10:10, Nirmoy Das wrote: Currently intel_gt_reset() happens as follows: reset_prepare() ---> Sends GDRST to GuC, GuC is in GS_MIA_IN_RESET do_reset() intel_gt_reset_all_engines() *_engine_reset_prepare() -->RESET_CTL expects running GuC Not technically correct. There is no d

Re: [PATCH 2/3] drm/i915 Rename intel_engine_reset to intel_gt_engine_recover

2024-04-18 Thread John Harrison
On 4/18/2024 10:10, Nirmoy Das wrote: intel_engine_reset() not only reset a engine but also tries to recover it so give it a proper name without any functional changes. Not seeing what the difference is. If this was a super low level function (with an __ prefix for example) then one might expect

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

2024-04-18 Thread John Harrison
On 4/18/2024 10:10, Nirmoy Das wrote: __intel_gt_reset() is really for resetting engines though the name might suggest something else. So add two helper functions to remove confusions with no functional changes. Technically you only added one and just moved the other :). It already existed, it j

Re: [PATCH] drm/i915/guc: Update w/a 14019159160

2024-03-12 Thread John Harrison
On 3/12/2024 09:24, Matt Roper wrote: On Thu, Mar 07, 2024 at 06:01:29PM -0800, john.c.harri...@intel.com wrote: From: John Harrison An existing workaround has been extended in both platforms affected and implementation complexity. Signed-off-by: John Harrison --- drivers/gpu/drm/i915/gt

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

2024-03-07 Thread John Harrison
On 3/7/2024 12:02, Andi Shyti wrote: Hi Matt, On Wed, Mar 06, 2024 at 03:46:09PM -0800, Matt Roper wrote: On Wed, Mar 06, 2024 at 02:22:45AM +0100, Andi Shyti wrote: The hardware should not dynamically balance the load between CCS engines. Wa_14019159160 recommends disabling it across all plat

Re: [PATCH v3 3/3] drm/i915/guc: Enable Wa_14019159160

2024-02-26 Thread John Harrison
On 2/26/2024 05:25, Nilawar, Badal wrote: Hi John, On 04-01-2024 23:35, john.c.harri...@intel.com wrote: From: John Harrison Use the new w/a KLV support to enable a MTL w/a. Note, this w/a is a super-set of Wa_16019325821, so requires turning that one as well as setting the new flag for

Re: [PATCH v3] drm/i915/guc: Simplify/extend platform check for Wa_14018913170

2024-02-20 Thread John Harrison
On 2/19/2024 12:28, Rodrigo Vivi wrote: On Fri, Feb 16, 2024 at 10:38:41AM -0800, john.c.harri...@intel.com wrote: From: John Harrison The above w/a is required for every platform that the i915 driver supports. It is fixed on the latest platforms but they are only supported by Xe instead of

Re: [PATCH 2/2] drm/i915/gt: Set default CCS mode '1'

2024-02-15 Thread John Harrison
On 2/15/2024 14:34, Andi Shyti wrote: Hi John, On Thu, Feb 15, 2024 at 01:23:24PM -0800, John Harrison wrote: On 2/15/2024 05:59, Andi Shyti wrote: Since CCS automatic load balancing is disabled, we will impose a fixed balancing policy that involves setting all the CCS engines to work

Re: [PATCH 2/2] drm/i915/gt: Set default CCS mode '1'

2024-02-15 Thread John Harrison
On 2/15/2024 05:59, Andi Shyti wrote: Since CCS automatic load balancing is disabled, we will impose a fixed balancing policy that involves setting all the CCS engines to work together on the same load. Simultaneously, the user will see only 1 CCS rather than the actual number. As of now, this c

Re: [RFC] drm/i915: Add GuC submission interface version query

2024-02-08 Thread John Harrison
On 2/8/2024 00:41, Tvrtko Ursulin wrote: On 07/02/2024 19:34, John Harrison wrote: On 2/7/2024 10:49, Tvrtko Ursulin wrote: On 07/02/2024 18:12, John Harrison wrote: On 2/7/2024 03:56, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Add a new query to the GuC submission interface version. Mesa

Re: [RFC] drm/i915: Add GuC submission interface version query

2024-02-07 Thread John Harrison
On 2/7/2024 12:47, Souza, Jose wrote: On Wed, 2024-02-07 at 11:52 -0800, John Harrison wrote: On 2/7/2024 11:43, Souza, Jose wrote: On Wed, 2024-02-07 at 11:34 -0800, John Harrison wrote: On 2/7/2024 10:49, Tvrtko Ursulin wrote: On 07/02/2024 18:12, John Harrison wrote: On 2/7/2024 03:56

Re: [RFC] drm/i915: Add GuC submission interface version query

2024-02-07 Thread John Harrison
On 2/7/2024 11:43, Souza, Jose wrote: On Wed, 2024-02-07 at 11:34 -0800, John Harrison wrote: On 2/7/2024 10:49, Tvrtko Ursulin wrote: On 07/02/2024 18:12, John Harrison wrote: On 2/7/2024 03:56, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Add a new query to the GuC submission interface

Re: [RFC] drm/i915: Add GuC submission interface version query

2024-02-07 Thread John Harrison
On 2/7/2024 10:49, Tvrtko Ursulin wrote: On 07/02/2024 18:12, John Harrison wrote: On 2/7/2024 03:56, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Add a new query to the GuC submission interface version. Mesa intends to use this information to check for old firmware versions with a known bug

Re: [RFC] drm/i915: Add GuC submission interface version query

2024-02-07 Thread John Harrison
. Which avoids the need to add any padding too. I don't follow how potential 8 vs 32 confusion means jump to 64?! Compile tested only. Signed-off-by: Tvrtko Ursulin Cc: Kenneth Graunke Cc: Jose Souza Cc: Sagar Ghuge Cc: Paulo Zanoni Cc: John Harrison Cc: Rodrigo Vivi Cc: Jani Nikula

Re: [PATCH] drm/i915/gt: Restart the heartbeat timer when forcing a pulse

2024-01-31 Thread John Harrison
On 1/31/2024 10:48, Janusz Krzysztofik wrote: Hi John, On Wednesday, 10 January 2024 22:02:16 CET john.c.harri...@intel.com wrote: From: John Harrison The context persistence code does things like send super high priority heartbeat pulses to ensure any leaked context can still be pre-empted

Re: [PATCH] drm/i915/huc: Allow for very slow HuC loading

2024-01-05 Thread John Harrison
On 1/4/2024 12:34, Daniele Ceraolo Spurio wrote: On 1/2/2024 2:22 PM, john.c.harri...@intel.com wrote: From: John Harrison A failure to load the HuC is occasionally observed where the cause is believed to be a low GT frequency leading to very long load times. So a) increase the timeout so

Re: [PATCH v2] drm/i915/gt: Convert reset prepare failure log to trace

2023-12-05 Thread John Harrison
On 12/5/2023 02:39, Nirmoy Das wrote: Hi John, On 12/5/2023 10:10 AM, John Harrison wrote: On 12/5/2023 00:52, Nirmoy Das wrote: gen8_engine_reset_prepare() can fail when HW fails to set RESET_CTL_READY_TO_RESET bit. In some cases this is not fatal error as driver will retry. Convert the log

Re: [PATCH v2] drm/i915/gt: Convert reset prepare failure log to trace

2023-12-05 Thread John Harrison
R may have more success, but that is not something that i915 currently does. John. v2: Improve commit message(Tvrtko) Cc: Tvrtko Ursulin Cc: John Harrison Cc: Andi Shyti Cc: Andrzej Hajda Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/5591 Signed-off-by: Nirmoy Das Review

Re: [PATCH 1/1] drm/i915/pxp: Add missing tag for Wa_14019159160

2023-11-21 Thread John Harrison
On 11/21/2023 10:55, Alan Previn wrote: Add missing tag for "Wa_14019159160 - Case 2" (for existing PXP code that ensures run alone mode bit is set to allow PxP-decryption. Signed-off-by: Alan Previn --- drivers/gpu/drm/i915/gt/intel_lrc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletio

Re: [Intel-gfx] [PATCH 2/2] drm/i915/guc: Add a selftest for FAST_REQUEST errors

2023-11-09 Thread John Harrison
On 11/9/2023 12:33, Daniele Ceraolo Spurio wrote: On 11/6/2023 3:59 PM, john.c.harri...@intel.com wrote: From: John Harrison There is a mechanism for reporting errors from fire and forget H2G messages. This is the only way to find out about almost any error in the GuC backend submission path

Re: [Intel-gfx] [PATCH 3/4] drm/i915/guc: Add support for w/a KLVs

2023-10-27 Thread John Harrison
On 10/6/2023 17:38, Belgaumkar, Vinay wrote: On 9/15/2023 2:55 PM, john.c.harri...@intel.com wrote: From: John Harrison To prevent running out of bits, new w/a enable flags are being added via a KLV system instead of a 32 bit flags word. Signed-off-by: John Harrison ---   .../gpu/drm/i915

Re: [Intel-gfx] [PATCH 2/4] drm/i915: Enable Wa_16019325821

2023-10-27 Thread John Harrison
On 10/6/2023 17:10, Belgaumkar, Vinay wrote: On 9/15/2023 2:55 PM, john.c.harri...@intel.com wrote: From: John Harrison Some platforms require holding RCS context switches until CCS is idle (the reverse w/a of Wa_14014475959). Some platforms require both versions. Signed-off-by: John

Re: [Intel-gfx] [PATCH 3/3] drm/i915/mtl: Add counters for engine busyness ticks

2023-10-19 Thread John Harrison
value to the user as is. Signed-off-by: Umesh Nerlige Ramappa Signed-off-by: John Harrison ---   drivers/gpu/drm/i915/gt/intel_engine.h    |  1 +   drivers/gpu/drm/i915/gt/intel_engine_cs.c | 16 +   drivers/gpu/drm/i915/gt/intel_engine_types.h  | 12   drivers/gpu/drm/i915/gt

Re: [Intel-gfx] [PATCH] drm/i915/mtl: Don't set PIPE_CONTROL_FLUSH_L3

2023-10-16 Thread John Harrison
On 10/16/2023 15:55, Vinay Belgaumkar wrote: This bit does not cause an explicit L3 flush. We already use At all? Or only on newer hardware? And as a genuine spec change or as a bug / workaround? If the hardware has re-purposed the bit then it is probably worth at least adding a comment to th

Re: [Intel-gfx] [PATCH] drm/i915/guc: Suppress 'ignoring reset notification' message

2023-10-12 Thread John Harrison
On 10/12/2023 03:21, Tvrtko Ursulin wrote: On 21/09/2023 19:20, john.c.harri...@intel.com wrote: From: John Harrison If an active context has been banned (e.g. Ctrl+C killed) then it is likely to be reset as part of evicting it from the hardware. That results in a 'ignoring context

Re: [PATCH RESEND v2 0/2] Add drm_dbg_ratelimited()

2023-10-10 Thread John Harrison
On 10/10/2023 05:15, Andi Shyti wrote: Hi, I might have picked up the wrong series and missed some reviews and the extra patch from Nirmoy with a real use of the drm_dbg_ratelimited() that John was looking for. Thanks, Andi I just found the original post of this from back in January (https://p

Re: [Intel-gfx] [PATCH 1/2] drm/i915/gt: More use of GT specific print helpers

2023-10-09 Thread John Harrison
On 10/9/2023 13:02, Andi Shyti wrote: Hi John, ... if (intf_id >= INTEL_GSC_NUM_INTERFACES) { - drm_warn_once(>->i915->drm, "GSC irq: intf_id %d is out of range", intf_id); + gt_warn_once(gt, "GSC irq: intf_id %d is out of range", intf_id);

Re: [Intel-gfx] [PATCH 2/2] drm/i915: More use of GT specific print helpers

2023-10-09 Thread John Harrison
On 10/9/2023 12:54, Andi Shyti wrote: Hi John, ... --- a/drivers/gpu/drm/i915/i915_driver.c +++ b/drivers/gpu/drm/i915/i915_driver.c @@ -71,6 +71,7 @@ #include "gem/i915_gem_pm.h" #include "gt/intel_gt.h" #include "gt/intel_gt_pm.h" +#include "gt/intel_gt_print.h" #include "gt/intel_rc

Re: [Intel-gfx] [PATCH 1/2] drm/i915/gt: More use of GT specific print helpers

2023-10-09 Thread John Harrison
On 10/9/2023 12:50, Andi Shyti wrote: Hi John, ... if (intf_id >= INTEL_GSC_NUM_INTERFACES) { - drm_warn_once(>->i915->drm, "GSC irq: intf_id %d is out of range", intf_id); + gt_warn_once(gt, "GSC irq: intf_id %d is out of range", intf_id);

Re: [Intel-gfx] [PATCH] drm/print: Add drm_dbg_ratelimited

2023-10-09 Thread John Harrison
On 10/9/2023 12:43, Andi Shyti wrote: Hi John, From: Nirmoy Das Add a function for ratelimitted debug print. Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas Zimmermann Cc: David Airlie Cc: Daniel Vetter Reviewed-by: Matthew Auld Reviewed-by: Andi Shyti Signed-off-by: Nirmoy Das Si

Re: [Intel-gfx] [PATCH] drm/print: Add drm_dbg_ratelimited

2023-10-09 Thread John Harrison
On 10/9/2023 09:52, Andi Shyti wrote: Hi, From: Nirmoy Das Add a function for ratelimitted debug print. Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas Zimmermann Cc: David Airlie Cc: Daniel Vetter Reviewed-by: Matthew Auld Reviewed-by: Andi Shyti Signed-off-by: Nirmoy Das Signed-

Re: [PATCH 1/3] drm/i915/guc: Support new and improved engine busyness

2023-10-06 Thread John Harrison
On 10/3/2023 13:58, Umesh Nerlige Ramappa wrote: On Fri, Sep 22, 2023 at 03:25:08PM -0700, john.c.harri...@intel.com wrote: From: John Harrison The GuC has been extended to support a much more friendly engine busyness interface. So partition the old interface into a 'busy_v1' spa

Re: [Intel-gfx] [RFC PATCH] drm/i915/gt: Do not treat MCR locking timeouts as errors

2023-10-04 Thread John Harrison
On 10/4/2023 13:58, Andi Shyti wrote: Hi Matt, The MCR steering semaphore is a shared lock entry between i915 and various firmware components. Getting the lock might sinchronize on some shared resources. Sometimes though, it might happen that the firmware forgets to unlock causing unnecessary

Re: [Intel-gfx] [RFC PATCH] drm/i915/gt: Do not treat MCR locking timeouts as errors

2023-10-04 Thread John Harrison
On 10/4/2023 13:09, Andi Shyti wrote: Hi John, The MCR steering semaphore is a shared lock entry between i915 and various firmware components. Getting the lock might sinchronize on some shared resources. Sometimes though, it might happen that the firmware forgets to unlock causing unnecessary

Re: [Intel-gfx] [RFC PATCH] drm/i915/gt: Do not treat MCR locking timeouts as errors

2023-10-04 Thread John Harrison
On 10/4/2023 12:35, Andi Shyti wrote: Hi John, The MCR steering semaphore is a shared lock entry between i915 and various firmware components. Getting the lock might sinchronize on some shared resources. Sometimes though, it might happen that the firmware forgets to unlock causing unnecessary

Re: [Intel-gfx] [RFC PATCH] drm/i915/gt: Do not treat MCR locking timeouts as errors

2023-10-04 Thread John Harrison
On 10/4/2023 07:08, Andi Shyti wrote: Hi Tvrtko, The MCR steering semaphore is a shared lock entry between i915 and various firmware components. Getting the lock might sinchronize on some shared resources. Sometimes though, it might happen that the firmware forgets to unlock causing unnecessar

Re: [Intel-gfx] [PATCH v2] drm/i915/huc: silence injected failure in the load via GSC path

2023-09-07 Thread John Harrison
ne to less than 100 characters (checkpatch). Link: https://gitlab.freedesktop.org/drm/intel/-/issues/7061 Signed-off-by: Daniele Ceraolo Spurio Reviewed-by: Andi Shyti #v1 Reviewed-by: John Harrison Although aren't we supposed to be using %pe / PTR_ERR(ret) these days? Not a blocker but

Re: [PATCH v5] drm/i915: Avoid circular locking dependency when flush delayed work on gt reset

2023-09-06 Thread John Harrison
On 9/6/2023 02:17, Andi Shyti wrote: Hi John, static void guc_cancel_busyness_worker(struct intel_guc *guc) { - cancel_delayed_work_sync(&guc->timestamp.work); + /* +* When intel_gt_reset was called, task will hold a lock. +* To cacel delayed work here, the

Re: [Intel-gfx] [PATCH v5] drm/i915: Avoid circular locking dependency when flush delayed work on gt reset

2023-09-06 Thread John Harrison
On 9/5/2023 23:50, Daniel Vetter wrote: On Mon, Aug 28, 2023 at 04:01:38PM -0700, John Harrison wrote: On 8/23/2023 10:37, John Harrison wrote: On 8/23/2023 09:00, Daniel Vetter wrote: On Tue, Aug 22, 2023 at 11:53:24AM -0700, John Harrison wrote: On 8/11/2023 11:20, Zhanjun Dong wrote

Re: [PATCH v5] drm/i915: Avoid circular locking dependency when flush delayed work on gt reset

2023-08-31 Thread John Harrison
On 8/31/2023 07:00, Andi Shyti wrote: Hi, diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c b/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c index a0e3ef1c65d2..600388c849f7 100644 --- a/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c +++ b/drivers/gpu/drm/i915/gt/uc/intel_gu

Re: [Intel-gfx] [PATCH v5] drm/i915: Avoid circular locking dependency when flush delayed work on gt reset

2023-08-28 Thread John Harrison
On 8/23/2023 10:37, John Harrison wrote: On 8/23/2023 09:00, Daniel Vetter wrote: On Tue, Aug 22, 2023 at 11:53:24AM -0700, John Harrison wrote: On 8/11/2023 11:20, Zhanjun Dong wrote: This attempts to avoid circular locking dependency between flush delayed work and intel_gt_reset. When

Re: [PATCH v5] drm/i915: Avoid circular locking dependency when flush delayed work on gt reset

2023-08-23 Thread John Harrison
On 8/23/2023 09:00, Daniel Vetter wrote: On Tue, Aug 22, 2023 at 11:53:24AM -0700, John Harrison wrote: On 8/11/2023 11:20, Zhanjun Dong wrote: This attempts to avoid circular locking dependency between flush delayed work and intel_gt_reset. When intel_gt_reset was called, task will hold a

Re: [PATCH v5] drm/i915: Avoid circular locking dependency when flush delayed work on gt reset

2023-08-22 Thread John Harrison
possible cirular locking dependency warning. When intel_gt_reset called, reset_in_progress flag will be set, add code to check the flag, call async verion if reset is in progress. Signed-off-by: Zhanjun Dong Cc: John Harrison Cc: Andi Shyti Cc: Daniel Vetter --- drivers/gpu/drm/i915/gt/uc

Re: [Intel-gfx] [PATCH] drm/i915/guc: Fix potential null pointer deref in GuC 'steal id' test

2023-08-07 Thread John Harrison
On 8/3/2023 06:28, Andi Shyti wrote: Hi John, On Wed, Aug 02, 2023 at 11:49:40AM -0700, john.c.harri...@intel.com wrote: From: John Harrison It was noticed that if the very first 'stealing' request failed to create for some reason then the 'steal all ids' loop would i

Re: [Intel-gfx] [PATCH v3] drm/i915: Avoid circular locking dependency when flush delayed work on gt reset

2023-07-24 Thread John Harrison
On 6/15/2023 14:15, Zhanjun Dong wrote: This attempts to avoid circular locking dependency between flush delayed work and intel_gt_reset. Switched from cancel_delayed_work_sync to cancel_delayed_work, the non-sync version for reset path, it is safe as the worker has the trylock code to handle

Re: [Intel-gfx] [PATCH] drm/i915/huc: check HuC and GuC version compatibility on MTL

2023-07-17 Thread John Harrison
ff-by: Daniele Ceraolo Spurio Cc: John Harrison ---   drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c | 42   1 file changed, 42 insertions(+) diff --git a/drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c b/drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c index 08e16017584b..f0cc5bb47fa0 1

Re: [Intel-gfx] [PATCH] drm/i915: Avoid circular locking dependency when flush delayed work on gt reset

2023-06-07 Thread John Harrison
On 6/7/2023 12:03, Zhanjun Dong wrote: This attempts to avoid circular locking dependency between flush delayed work and intel_gt_reset. Switched from cancel_delayed_work_sync to cancel_delayed_work, the non-sync version for reset path, it is safe as the worker has the trylock code to handle t

Re: [Intel-gfx] [PATCH] drm/i915: Avoid circular locking dependency when flush delayed work on gt reset

2023-06-07 Thread John Harrison
On 6/6/2023 10:53, John Harrison wrote: On 6/5/2023 20:00, Zhanjun Dong wrote: This attemps to avoid circular locing dependency between flush delayed work and intel_gt_reset. locing -> locking WARNING: possible circular locking dependency detected 6.4.0-rc1-drmtip_1340-g31e3463b0edb+

Re: [Intel-gfx] [PATCH] drm/i915: Avoid circular locking dependency when flush delayed work on gt reset

2023-06-06 Thread John Harrison
On 6/5/2023 20:00, Zhanjun Dong wrote: This attemps to avoid circular locing dependency between flush delayed work and intel_gt_reset. locing -> locking WARNING: possible circular locking dependency detected 6.4.0-rc1-drmtip_1340-g31e3463b0edb+ #1 Not tainted ---

Re: [PATCH v5 3/7] drm/i915/huc: Load GSC-enabled HuC via DMA xfer if the fuse says so

2023-06-01 Thread John Harrison
ut having to implement further code changes. v2: s/is_meu_binary/has_gsc_headers/, clearer logs (John) v3: split check for GSC access, better comments (John) Signed-off-by: Daniele Ceraolo Spurio Cc: Alan Previn Cc: John Harrison --- drivers/gpu/drm/i915/gt/uc/intel_huc.c| 49 +++

Re: [PATCH v5 4/7] drm/i915/huc: differentiate the 2 steps of the MTL HuC auth flow

2023-06-01 Thread John Harrison
: Daniele Ceraolo Spurio Cc: Alan Previn Cc: John Harrison Reviewed-by: Alan Previn #v2 Reviewed-by: John Harrison --- drivers/gpu/drm/i915/gt/uc/intel_huc.c | 111 - drivers/gpu/drm/i915/gt/uc/intel_huc.h | 16 ++- drivers/gpu/drm/i915/gt/uc/intel_huc_fw.c

Re: [PATCH v5 3/7] drm/i915/huc: Load GSC-enabled HuC via DMA xfer if the fuse says so

2023-06-01 Thread John Harrison
ut having to implement further code changes. v2: s/is_meu_binary/has_gsc_headers/, clearer logs (John) v3: split check for GSC access, better comments (John) Signed-off-by: Daniele Ceraolo Spurio Cc: Alan Previn Cc: John Harrison Reviewed-by: John Harrison --- drivers/gpu/drm/

Re: [PATCH v5 2/7] drm/i915/huc: Parse the GSC-enabled HuC binary

2023-06-01 Thread John Harrison
e names to match meu defines (s/CPT/CPD/), update commit message, check ccs validity, drop old version location defines. v3: drop references to the MEU tool to reduce confusion, fix log (John) v4: fix log for real (John) Signed-off-by: Daniele Ceraolo Spurio Cc: Alan Previn Cc: John Harriso

Re: [PATCH v4] drm/i915/huc: differentiate the 2 steps of the MTL HuC auth flow

2023-05-30 Thread John Harrison
On 5/30/2023 17:14, Ceraolo Spurio, Daniele wrote: On 5/30/2023 5:01 PM, John Harrison wrote: On 5/30/2023 08:29, Daniele Ceraolo Spurio wrote: Before we add the second step of the MTL HuC auth (via GSC), we need to have the ability to differentiate between them. To do so, the huc

Re: [PATCH v3 3/7] drm/i915/huc: Load GSC-enabled HuC via DMA xfer if the fuse says so

2023-05-30 Thread John Harrison
On 5/30/2023 17:11, Ceraolo Spurio, Daniele wrote: On 5/30/2023 4:51 PM, John Harrison wrote: On 5/26/2023 17:52, Daniele Ceraolo Spurio wrote: In the previous patch we extracted the offset of the legacy-style HuC binary located within the GSC-enabled blob, so now we can use that to load the

Re: [PATCH v3 2/7] drm/i915/huc: Parse the GSC-enabled HuC binary

2023-05-30 Thread John Harrison
On 5/30/2023 17:06, Ceraolo Spurio, Daniele wrote: On 5/30/2023 4:30 PM, John Harrison wrote: On 5/26/2023 17:52, Daniele Ceraolo Spurio wrote: The new binaries that support the 2-step authentication contain the legacy-style binary, which we can use for loading the HuC via DMA. To find out

Re: [PATCH v4] drm/i915/huc: differentiate the 2 steps of the MTL HuC auth flow

2023-05-30 Thread John Harrison
v3: add a better comment at the top of the HuC file to explain the different approaches to load and auth (John) v4: update call to intel_huc_is_authenticated in the pxp code to check for GSC authentication Signed-off-by: Daniele Ceraolo Spurio Cc: Alan Previn Cc: John Harrison Reviewed-by

Re: [PATCH v3 3/7] drm/i915/huc: Load GSC-enabled HuC via DMA xfer if the fuse says so

2023-05-30 Thread John Harrison
ut having to implement further code changes. v2: s/is_meu_binary/has_gsc_headers/, clearer logs (John) Signed-off-by: Daniele Ceraolo Spurio Cc: Alan Previn Cc: John Harrison --- drivers/gpu/drm/i915/gt/uc/intel_huc.c| 29 ++- drivers/gpu/drm/i915/gt/uc/intel_huc.h

Re: [PATCH v3 2/7] drm/i915/huc: Parse the GSC-enabled HuC binary

2023-05-30 Thread John Harrison
e names to match meu defines (s/CPT/CPD/), update commit message, check ccs validity, drop old version location defines. v3: drop references to the MEU tool to reduce confusion, fix log (John) Signed-off-by: Daniele Ceraolo Spurio Cc: Alan Previn Cc: John Harrison Reviewed-by: Alan Previ

Re: [PATCH v3 1/7] drm/i915/uc: perma-pin firmwares

2023-05-30 Thread John Harrison
olo Spurio Cc: Alan Previn Cc: John Harrison Reviewed-by: John Harrison --- drivers/gpu/drm/i915/gt/intel_ggtt.c | 3 ++ drivers/gpu/drm/i915/gt/uc/intel_gsc_uc.c | 7 +++- drivers/gpu/drm/i915/gt/uc/intel_guc.c| 2 +- drivers/gpu/drm/i915/gt/uc/intel_huc.c| 2 +- driver

Re: [PATCH 3/3] drm/i915/guc: Track all sent actions to GuC

2023-05-30 Thread John Harrison
Wajdeczko Signed-off-by: John Harrison Reviewed-by: John Harrison --- drivers/gpu/drm/i915/Kconfig.debug| 1 + drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c | 68 ++- drivers/gpu/drm/i915/gt/uc/intel_guc_ct.h | 11 3 files changed, 77 insertions(+), 3 deletions

Re: [PATCH 2/3] drm/i915/guc: Update log for unsolicited CTB response

2023-05-30 Thread John Harrison
On 5/26/2023 16:55, john.c.harri...@intel.com wrote: From: Michal Wajdeczko Instead of printing message fence twice, include HXG header of the unexpected message and its len. Signed-off-by: Michal Wajdeczko Signed-off-by: John Harrison Reviewed-by: John Harrison --- drivers/gpu/drm

Re: [PATCH 1/3] drm/i915/guc: Use FAST_REQUEST for non-blocking H2G calls

2023-05-30 Thread John Harrison
and the related fence is not stored. Instead such messages are treated as unexpected, which will give an indication of potential GuC misprogramming that warrants extra debugging effort. Signed-off-by: Michal Wajdeczko Signed-off-by: John Harrison Reviewed-by: John Harrison --- .../gpu/drm

Re: [Intel-gfx] [PATCH v2 8/8] drm/i915/huc: define HuC FW version for MTL

2023-05-25 Thread John Harrison
On 4/28/2023 11:58, Daniele Ceraolo Spurio wrote: Follow the same logic as DG2, so just a meu binary with no version number. Signed-off-by: Daniele Ceraolo Spurio Cc: Alan Previn Reviewed-by: John Harrison --- drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c | 1 + 1 file changed, 1 insertion

Re: [PATCH v2 7/8] drm/i915/mtl/huc: Use the media gt for the HuC getparam

2023-05-25 Thread John Harrison
. Signed-off-by: Daniele Ceraolo Spurio Cc: John Harrison --- drivers/gpu/drm/i915/i915_getparam.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_getparam.c b/drivers/gpu/drm/i915/i915_getparam.c index 2238e096c957..7aa47550e4f2 100644 --- a

Re: [Intel-gfx] [PATCH v2 5/8] drm/i915/huc: differentiate the 2 steps of the MTL HuC auth flow

2023-05-19 Thread John Harrison
On 4/28/2023 11:58, Daniele Ceraolo Spurio wrote: Before we add the second step of the MTL HuC auth (via GSC), we need to have the ability to differentiate between them. To do so, the huc authentication check is duplicated for GuC and GSC auth, with meu binaries being considered fully authenticat

Re: [Intel-gfx] [PATCH v2 4/8] drm/i915/huc: Load GSC-enabled HuC via DMA xfer if the fuse says so

2023-05-19 Thread John Harrison
On 4/28/2023 11:58, Daniele Ceraolo Spurio wrote: In the previous patch we extracted the offset of the legacy-style HuC binary located within the GSC-enabled blob, so now we can use that to load the HuC via DMA if the fuse is set that way. Note that we now need to differentiate between "GSC-enabl

Re: [Intel-gfx] [PATCH v2] drm/i915/huc: Parse the GSC-enabled HuC binary

2023-05-17 Thread John Harrison
On 5/2/2023 08:27, Daniele Ceraolo Spurio wrote: The new binaries that support the 2-step authentication have contain the have contain? legacy-style binary, which we can use for loading the HuC via DMA. To find out where this is located in the image, we need to parse the meu 'meu manifest' nee

Re: [Intel-gfx] [PATCH v2 2/8] drm/i915/uc: perma-pin firmwares

2023-05-17 Thread John Harrison
On 4/28/2023 11:58, Daniele Ceraolo Spurio wrote: Now that each FW has its own reserved area, we can keep them always pinned and skip the pin/unpin dance on reset. This will make things easier for the 2-step HuC authentication, which requires the FW to be pinned in GGTT after the xfer is complete

Re: [Intel-gfx] [PATCH v2 1/2] drm/i915: Dump error capture to kernel log

2023-05-16 Thread John Harrison
On 5/16/2023 13:52, Rodrigo Vivi wrote: On Tue, May 16, 2023 at 12:21:05PM -0700, John Harrison wrote: On 5/16/2023 12:17, Belgaumkar, Vinay wrote: > On 4/18/2023 11:17 AM, [1]john.c.harri...@intel.

Re: [Intel-gfx] [PATCH v2 1/2] drm/i915: Dump error capture to kernel log

2023-05-16 Thread John Harrison
On 5/16/2023 12:17, Belgaumkar, Vinay wrote: On 4/18/2023 11:17 AM, john.c.harri...@intel.com wrote: From: John Harrison This is useful for getting debug information out in certain situations, such as failing kernel selftests and CI runs that don't log error captures. It is especially u

Re: [Intel-gfx] [PATCH 2/2] drm/i915/mtl: Update GuC firmware version for MTL to 70.6.6

2023-05-04 Thread John Harrison
On 5/4/2023 13:29, Lucas De Marchi wrote: On Thu, May 04, 2023 at 01:22:52PM -0700, john.c.harri...@intel.com wrote: From: John Harrison Also switch to using reduced version file naming as it is no longer such a work-in-progress and likely to change. Signed-off-by: John Harrison commit

Re: [Intel-gfx] [PATCH 4/6] drm/i915/uc: Enhancements to firmware table validation

2023-04-28 Thread John Harrison
On 4/28/2023 17:30, John Harrison wrote: On 4/28/2023 17:26, Ceraolo Spurio, Daniele wrote: On 4/28/2023 5:16 PM, John Harrison wrote: On 4/28/2023 17:04, Ceraolo Spurio, Daniele wrote: On 4/20/2023 6:15 PM, john.c.harri...@intel.com wrote: From: John Harrison The validation of the

Re: [PATCH 4/6] drm/i915/uc: Enhancements to firmware table validation

2023-04-28 Thread John Harrison
On 4/28/2023 17:26, Ceraolo Spurio, Daniele wrote: On 4/28/2023 5:16 PM, John Harrison wrote: On 4/28/2023 17:04, Ceraolo Spurio, Daniele wrote: On 4/20/2023 6:15 PM, john.c.harri...@intel.com wrote: From: John Harrison The validation of the firmware table was being done inside the code for

Re: [Intel-gfx] [PATCH 6/6] drm/i915/uc: Make unexpected firmware versions an error in debug builds

2023-04-28 Thread John Harrison
On 4/28/2023 17:19, Ceraolo Spurio, Daniele wrote: On 4/20/2023 6:15 PM, john.c.harri...@intel.com wrote: From: John Harrison If the DEBUG_GEM config option is set then escalate the 'unexpected firmware version' message from a notice to an error. This will ensure that the CI sys

Re: [PATCH 4/6] drm/i915/uc: Enhancements to firmware table validation

2023-04-28 Thread John Harrison
On 4/28/2023 17:04, Ceraolo Spurio, Daniele wrote: On 4/20/2023 6:15 PM, john.c.harri...@intel.com wrote: From: John Harrison The validation of the firmware table was being done inside the code for scanning the table for the next available firmware blob. Which is unnecessary. So pull it out

Re: [Intel-gfx] [PATCH 3/5] drm/i915/guc: Capture list clean up - 2

2023-04-26 Thread John Harrison
On 4/25/2023 11:54, Teres Alexis, Alan Previn wrote: On Thu, 2023-04-06 at 15:26 -0700, john.c.harri...@intel.com wrote: From: John Harrison Don't use 'xe_lp*' prefixes for register lists that are common with Gen8. alan:snip @@ -177,32 +177,32 @@ stat

Re: [Intel-gfx] [PATCH 4/5] drm/i915/guc: Capture list clean up - 3

2023-04-26 Thread John Harrison
On 4/26/2023 10:29, John Harrison wrote: On 4/25/2023 12:05, Teres Alexis, Alan Previn wrote: On Thu, 2023-04-06 at 15:26 -0700,john.c.harri...@intel.com wrote: From: John Harrison Fix Xe_LP name. Signed-off-by: John Harrison alan:snip -/* GEN9/XE_LPD - Render / Compute Per-Engine

Re: [Intel-gfx] [PATCH 4/5] drm/i915/guc: Capture list clean up - 3

2023-04-26 Thread John Harrison
On 4/25/2023 12:05, Teres Alexis, Alan Previn wrote: On Thu, 2023-04-06 at 15:26 -0700,john.c.harri...@intel.com wrote: From: John Harrison Fix Xe_LP name. Signed-off-by: John Harrison alan:snip -/* GEN9/XE_LPD - Render / Compute Per-Engine-Instance */ +/* GEN8+ Render / Compute Per

Re: [PATCH 1/5] drm/i915/guc: Don't capture Gen8 regs on Xe devices

2023-04-26 Thread John Harrison
On 4/25/2023 10:55, Teres Alexis, Alan Previn wrote: On Thu, 2023-04-06 at 15:26 -0700, Harrison, John C wrote: From: John Harrison A pair of pre-Xe registers were being included in the Xe capture list. GuC was rejecting those as being invalid and logging errors about them. So, stop doing it

Re: [Intel-gfx] [PATCH 5/5] drm/i915/uc: Reject doplicate entries in firmware table

2023-04-19 Thread John Harrison
On 4/19/2023 10:33, Ceraolo Spurio, Daniele wrote: On 4/19/2023 10:12 AM, John Harrison wrote: On 4/19/2023 10:02, John Harrison wrote: On 4/18/2023 16:24, Ceraolo Spurio, Daniele wrote: Typo doplicate in patch title On 4/14/2023 5:57 PM, john.c.harri...@intel.com wrote: From: John Harrison

  1   2   3   4   5   6   >