Re: [Intel-gfx] [PATCH 00/15] HuC loading for DG2

2022-06-13 Thread Ceraolo Spurio, Daniele
On 6/13/2022 1:16 AM, Tvrtko Ursulin wrote: On 10/06/2022 00:19, Daniele Ceraolo Spurio wrote: On DG2, HuC loading is performed by the GSC, via a PXP command. The load operation itself is relatively simple (just send a message to the GSC with the physical address of the HuC in LMEM), but the

Re: [Intel-gfx] [PATCH 00/15] HuC loading for DG2

2022-06-13 Thread Ceraolo Spurio, Daniele
On 6/13/2022 9:31 AM, Tvrtko Ursulin wrote: On 13/06/2022 16:39, Ceraolo Spurio, Daniele wrote: On 6/13/2022 1:16 AM, Tvrtko Ursulin wrote: On 10/06/2022 00:19, Daniele Ceraolo Spurio wrote: On DG2, HuC loading is performed by the GSC, via a PXP command. The load operation itself is

Re: [Intel-gfx] [PATCH 00/15] HuC loading for DG2

2022-06-13 Thread Ceraolo Spurio, Daniele
On 6/13/2022 9:56 AM, Tvrtko Ursulin wrote: On 13/06/2022 17:41, Ceraolo Spurio, Daniele wrote: On 6/13/2022 9:31 AM, Tvrtko Ursulin wrote: On 13/06/2022 16:39, Ceraolo Spurio, Daniele wrote: On 6/13/2022 1:16 AM, Tvrtko Ursulin wrote: On 10/06/2022 00:19, Daniele Ceraolo Spurio wrote

Re: [Intel-gfx] [PATCH 00/15] HuC loading for DG2

2022-06-13 Thread Ceraolo Spurio, Daniele
On 6/13/2022 10:39 AM, Tvrtko Ursulin wrote: On 13/06/2022 18:06, Ceraolo Spurio, Daniele wrote: On 6/13/2022 9:56 AM, Tvrtko Ursulin wrote: On 13/06/2022 17:41, Ceraolo Spurio, Daniele wrote: On 6/13/2022 9:31 AM, Tvrtko Ursulin wrote: On 13/06/2022 16:39, Ceraolo Spurio, Daniele

Re: [Intel-gfx] [PATCH 00/15] HuC loading for DG2

2022-06-14 Thread Ceraolo Spurio, Daniele
On 6/14/2022 12:44 AM, Tvrtko Ursulin wrote: On 13/06/2022 19:13, Ceraolo Spurio, Daniele wrote: On 6/13/2022 10:39 AM, Tvrtko Ursulin wrote: On 13/06/2022 18:06, Ceraolo Spurio, Daniele wrote: On 6/13/2022 9:56 AM, Tvrtko Ursulin wrote: On 13/06/2022 17:41, Ceraolo Spurio, Daniele wrote

Re: [Intel-gfx] [PATCH 00/15] HuC loading for DG2

2022-06-15 Thread Ceraolo Spurio, Daniele
On 6/15/2022 3:13 AM, Tvrtko Ursulin wrote: On 15/06/2022 00:15, Ye, Tony wrote: On 6/14/2022 8:30 AM, Ceraolo Spurio, Daniele wrote: On 6/14/2022 12:44 AM, Tvrtko Ursulin wrote: On 13/06/2022 19:13, Ceraolo Spurio, Daniele wrote: On 6/13/2022 10:39 AM, Tvrtko Ursulin wrote: On 13/06

Re: [Intel-gfx] [PATCH] drm/i915/guc: ADL-N should use the same GuC FW as ADL-S

2022-06-21 Thread Ceraolo Spurio, Daniele
On 6/21/2022 5:34 PM, Matt Roper wrote: On Tue, Jun 21, 2022 at 04:30:05PM -0700, Daniele Ceraolo Spurio wrote: The only difference between the ADL S and P GuC FWs is the HWConfig support. ADL-N does not support HWConfig, so we should use the same binary as ADL-S, otherwise the GuC might atte

Re: [Intel-gfx] [PATCH 00/15] HuC loading for DG2

2022-07-05 Thread Ceraolo Spurio, Daniele
On 6/15/2022 7:28 PM, Zhang, Carl wrote: On From: Ye, Tony Sent: Thursday, June 16, 2022 12:15 AM On 6/15/2022 3:13 AM, Tvrtko Ursulin wrote: On 15/06/2022 00:15, Ye, Tony wrote: On 6/14/2022 8:30 AM, Ceraolo Spurio, Daniele wrote: On 6/14/2022 12:44 AM, Tvrtko Ursulin wrote: On 13/06

Re: [Intel-gfx] [PATCH 00/15] HuC loading for DG2

2022-07-06 Thread Ceraolo Spurio, Daniele
On 7/6/2022 10:26 AM, Ye, Tony wrote: On 7/5/2022 4:30 PM, Ceraolo Spurio, Daniele wrote: On 6/15/2022 7:28 PM, Zhang, Carl wrote: On From: Ye, Tony Sent: Thursday, June 16, 2022 12:15 AM On 6/15/2022 3:13 AM, Tvrtko Ursulin wrote: On 15/06/2022 00:15, Ye, Tony wrote: On 6/14/2022 8

Re: [Intel-gfx] [PATCH v10 1/5] drm/i915/gsc: add gsc as a mei auxiliary device

2022-03-09 Thread Ceraolo Spurio, Daniele
On 3/8/2022 8:36 AM, Alexander Usyskin wrote: From: Tomas Winkler GSC is a graphics system controller, it provides a chassis controller for graphics discrete cards. There are two MEI interfaces in GSC: HECI1 and HECI2. Both interfaces are on the BAR0 at offsets 0x00258000 and 0x00259000. G

Re: [Intel-gfx] [PATCH v10 2/5] mei: add support for graphics system controller (gsc) devices

2022-03-09 Thread Ceraolo Spurio, Daniele
On 3/8/2022 8:36 AM, Alexander Usyskin wrote: From: Tomas Winkler GSC is a graphics system controller, based on CSE, it provides a chassis controller for graphics discrete cards, as well as it supports media protection on selected devices. mei_gsc binds to a auxiliary devices exposed by Inte

Re: [Intel-gfx] [PATCH v10 3/5] mei: gsc: setup char driver alive in spite of firmware handshake failure

2022-03-09 Thread Ceraolo Spurio, Daniele
the logic to fetch the FW version, as that is interesting info for sysfs. Not a blocker. Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler Reviewed-by: Daniele Ceraolo Spurio Daniele --- drivers/misc/mei/gsc-me.c | 11 ++- 1 file changed, 6 insertions(+), 5

Re: [Intel-gfx] [PATCH v10 5/5] mei: gsc: retrieve the firmware version

2022-03-09 Thread Ceraolo Spurio, Daniele
On 3/8/2022 8:36 AM, Alexander Usyskin wrote: Add a hook to retrieve the firmware version of the GSC devices to bus-fixup. GSC has a different MKHI clients GUIDs but the same message structure to retrieve the firmware version as MEI so mei_fwver() can be reused. CC: Ashutosh Dixit Signed-off

Re: [Intel-gfx] [PATCH v11 1/5] drm/i915/gsc: add gsc as a mei auxiliary device

2022-03-16 Thread Ceraolo Spurio, Daniele
GEN12_COMPUTE3_RING_BASE 0x26000 #define BLT_RING_BASE 0x22000 +#define DG1_GSC_HECI1_BASE 0x00258000 +#define DG1_GSC_HECI2_BASE 0x00259000 You ended up keeping the HECI1 define. Not a blocker, so: Reviewed-by: Daniele Ceraolo Spurio Daniele diff --git a/drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH v11 2/5] mei: add support for graphics system controller (gsc) devices

2022-03-16 Thread Ceraolo Spurio, Daniele
Intel discrete driver i915. Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler Reviewed-by: Daniele Ceraolo Spurio Daniele --- V4: drop debug prints replace selects with depends on in Kconfig V5: Rebase V6: Rebase V7: add Greg KH Reviewed-by V8: Rebase V9: Rebase V11

Re: [Intel-gfx] [PATCH v11 0/5] Add driver for GSC controller

2022-03-22 Thread Ceraolo Spurio, Daniele
Can you re-send this series with an added patch to force CONFIG_INTEL_MEI_GSC to be selected for CI? we don't need to review or merge that additional patch, but I want to make sure we get CI results with the config turned on before we merge this series. I'm also going to ping the CI team to see

Re: [Intel-gfx] [PATCH] drm/i915: fix remaining_timeout in intel_gt_retire_requests_timeout

2022-03-25 Thread Ceraolo Spurio, Daniele
On 3/25/2022 11:37 AM, Das, Nirmoy wrote: On 3/25/2022 6:58 PM, Daniele Ceraolo Spurio wrote: In intel_gt_wait_for_idle, we use the remaining timeout returned from intel_gt_retire_requests_timeout to wait on the GuC being idle. However, the returned variable can have a negative value if some

Re: [Intel-gfx] [PATCH v11 0/5] Add driver for GSC controller

2022-03-28 Thread Ceraolo Spurio, Daniele
Hi, Yes, the series doesn't need an update, but on the other hand I don't think we can update the config repo before the new config option is merged, which we can't do without first running CI with the config enabled, so we have a catch-22 situation. That's why I suggested that you resend the

Re: [Intel-gfx] [PATCH v2] drm/i915/guc: Support programming the EU priority in the GuC descriptor

2022-05-06 Thread Ceraolo Spurio, Daniele
On 5/6/2022 12:51 AM, Tvrtko Ursulin wrote: On 05/05/2022 19:56, John Harrison wrote: On 5/4/2022 16:46, Daniele Ceraolo Spurio wrote: From: Matthew Brost In GuC submission mode the EU priority must be updated by the GuC rather than the driver as the GuC owns the programming of the conte

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

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

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

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

Re: [Intel-gfx] [PATCH] drm/i915/reset: Add additional steps for Wa_22011802037 for execlist backend

2022-06-09 Thread Ceraolo Spurio, Daniele
12: In addition to stopping the cs, we need +* to wait for any pending mi force wakeups +*/ + if (IS_GRAPHICS_VER(engine->i915, 11, 12)) + intel_engine_wait_for_pending_mi_fw(engine); + Ringbuffer submission is not supported on gen 11 and 12, so no need for this. Wit

Re: [Intel-gfx] [PATCH 07/12] drm/i915/guc: Route semaphores to GuC for Gen12+

2022-07-16 Thread Ceraolo Spurio, Daniele
context switch out when their condition is not satisfied, which is not something we currently allow (but we do plan to as you mentioned). Also, the routing only happens when in GuC submission mode. Reviewed-by: Daniele Ceraolo Spurio Daniele Signed-off-by: Michał Winiarski --- drivers/gpu

Re: [Intel-gfx] [PATCH] drm/i915/guc: support v69 in parallel to v70

2022-07-17 Thread Ceraolo Spurio, Daniele
On 7/15/2022 3:54 PM, Daniele Ceraolo Spurio wrote: This patch re-introduces support for GuC v69 in parallel to v70. As this is a quick fix, v69 has been re-introduced as the single "fallback" guc version in case v70 is not available on disk. All v69 specific code has been labeled as such for

Re: [Intel-gfx] [PATCH] drm/i915/guc: support v69 in parallel to v70

2022-07-18 Thread Ceraolo Spurio, Daniele
On 7/18/2022 3:02 AM, Tvrtko Ursulin wrote: Hi, On 15/07/2022 23:54, Daniele Ceraolo Spurio wrote: This patch re-introduces support for GuC v69 in parallel to v70. As this is a quick fix, v69 has been re-introduced as the single "fallback" guc version in case v70 is not available on disk. A

Re: [Intel-gfx] [RFC] drm/i915/huc: better define HuC status getparam possible return values.

2022-07-18 Thread Ceraolo Spurio, Daniele
On 7/18/2022 4:26 AM, Tvrtko Ursulin wrote: On 09/07/2022 00:48, Daniele Ceraolo Spurio wrote: The current HuC status getparam return values are a bit confusing in regards to what happens in some scenarios. In particular, most of the error cases cause the ioctl to return an error, but a coup

Re: [Intel-gfx] [PATCH] drm/i915/guc: support v69 in parallel to v70

2022-07-18 Thread Ceraolo Spurio, Daniele
On 7/18/2022 2:19 PM, John Harrison wrote: On 7/15/2022 15:54, Daniele Ceraolo Spurio wrote: This patch re-introduces support for GuC v69 in parallel to v70. As this is a quick fix, v69 has been re-introduced as the single "fallback" guc version in case v70 is not available on disk. All v69 s

Re: [Intel-gfx] [PATCH] drm/i915/guc: support v69 in parallel to v70

2022-07-19 Thread Ceraolo Spurio, Daniele
On 7/19/2022 12:34 AM, Tvrtko Ursulin wrote: On 18/07/2022 17:41, Ceraolo Spurio, Daniele wrote: On 7/18/2022 3:02 AM, Tvrtko Ursulin wrote: Hi, On 15/07/2022 23:54, Daniele Ceraolo Spurio wrote: This patch re-introduces support for GuC v69 in parallel to v70. As this is a quick fix

Re: [Intel-gfx] [PATCH] drm/i915/guc: support v69 in parallel to v70

2022-07-21 Thread Ceraolo Spurio, Daniele
On 7/21/2022 2:29 AM, Tvrtko Ursulin wrote: On 19/07/2022 16:29, Ceraolo Spurio, Daniele wrote: On 7/19/2022 12:34 AM, Tvrtko Ursulin wrote: On 18/07/2022 17:41, Ceraolo Spurio, Daniele wrote: On 7/18/2022 3:02 AM, Tvrtko Ursulin wrote: Hi, On 15/07/2022 23:54, Daniele Ceraolo

Re: [Intel-gfx] [PATCH] drm/i915/guc: Don't send policy update for child contexts.

2022-07-27 Thread Ceraolo Spurio, Daniele
On 7/27/2022 6:44 PM, John Harrison wrote: On 7/27/2022 17:33, Daniele Ceraolo Spurio wrote: The GuC FW applies the parent context policy to all the children, so individual updates to the children are not supported and we should not send them. Note that sending the message did not have any f

Re: [Intel-gfx] [PATCH 6/6] drm/i915/guc: Don't abort on CTB_UNUSED status

2022-07-28 Thread Ceraolo Spurio, Daniele
stead make sure all CT messages (if any) have been processed before the disable. Not a blocker for this patch, can be done as a follow-up. Reviewed-by: Daniele Ceraolo Spurio Daniele Signed-off-by: John Harrison --- .../i915/gt/uc/abi/guc_communication_ctb_abi.h | 8 +--- drivers/gpu

Re: [Intel-gfx] [PATCH 1/1] drm/i915/dg2: Update DG2 to GuC v70.4.1

2022-08-01 Thread Ceraolo Spurio, Daniele
still under force_probe. Don't need to re-send, just add it on when merging. Reviewed-by: Daniele Ceraolo Spurio Daniele Signed-off-by: John Harrison --- drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/

Re: [Intel-gfx] [PATCH] drm/i915/pxp: don't start pxp without mei_pxp bind

2022-08-09 Thread Ceraolo Spurio, Daniele
On 8/9/2022 3:57 PM, Juston Li wrote: pxp will not start correctly until after mei_pxp bind completes and intel_pxp_init_hw() is called. Signed-off-by: Juston Li --- drivers/gpu/drm/i915/pxp/intel_pxp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i9

Re: [Intel-gfx] [PATCH] drm/i915/pxp: don't start pxp without mei_pxp bind

2022-08-09 Thread Ceraolo Spurio, Daniele
On 8/9/2022 4:20 PM, Juston Li wrote: On Tue, Aug 9, 2022 at 4:10 PM Ceraolo Spurio, Daniele wrote: On 8/9/2022 3:57 PM, Juston Li wrote: pxp will not start correctly until after mei_pxp bind completes and intel_pxp_init_hw() is called. Signed-off-by: Juston Li --- drivers/gpu/drm

Re: [Intel-gfx] [PATCH] drm/i915/guc: clear stalled request after a reset

2022-08-12 Thread Ceraolo Spurio, Daniele
On 8/12/2022 12:29 AM, Tvrtko Ursulin wrote: On 11/08/2022 22:08, Daniele Ceraolo Spurio wrote: If the GuC CTs are full and we need to stall the request submission while waiting for space, we save the stalled request and where the stall occurred; when the CTs have space again we pick up the

Re: [Intel-gfx] [PATCH v2] drm/i915/pxp: don't start pxp without mei_pxp bind

2022-08-15 Thread Ceraolo Spurio, Daniele
On 8/9/2022 5:42 PM, Juston Li wrote: pxp will not start correctly until after mei_pxp bind completes and intel_pxp_init_hw() is called. This fixes a race condition during bootup where we observed a small window for pxp commands to be sent before mei_pxp bind completed. Changes since v1: - c

Re: [Intel-gfx] [PATCH v2 00/15] drm/i915: HuC loading for DG2

2022-08-19 Thread Ceraolo Spurio, Daniele
On 8/19/2022 12:21 AM, Greg Kroah-Hartman wrote: On Thu, Aug 18, 2022 at 04:02:28PM -0700, Daniele Ceraolo Spurio wrote: Note that this series includes several mei patches that add support for sending the HuC loading command via mei-gsc. These patches depend on the GSC support for DG2 [1], wh

Re: [Intel-gfx] [PATCH 07/20] drm/i915/gsc: skip irq initialization if using polling

2022-04-11 Thread Ceraolo Spurio, Daniele
th the commit message updated: Reviewed-by: Daniele Ceraolo Spurio Daniele + intf->irq = irq_alloc_desc(0); if (intf->irq < 0) { drm_err(&i915->drm, "gsc irq error %d\n", intf->irq); @@ -109,6 +114,7 @@ static void gsc_init_one(struct

Re: [Intel-gfx] [PATCH 08/20] drm/i915/gsc: add slow_fw flag to the mei auxiliary device

2022-04-11 Thread Ceraolo Spurio, Daniele
On 4/7/2022 5:58 AM, Alexander Usyskin wrote: Add slow_fw flag to the mei auxiliary device info to inform the mei driver about slow underlying firmware. Such firmware will require to use larger operation timeouts. Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler Might be wort

Re: [Intel-gfx] [PATCH 09/20] drm/i915/gsc: add slow_fw flag to the gsc device definition

2022-04-11 Thread Ceraolo Spurio, Daniele
On 4/7/2022 5:58 AM, Alexander Usyskin wrote: Add slow_fw flag to the gsc device definition and pass it to mei auxiliary device. Signed-off-by: Alexander Usyskin Reviewed-by: Daniele Ceraolo Spurio Daniele --- drivers/gpu/drm/i915/gt/intel_gsc.c | 2 ++ 1 file changed, 2 insertions

Re: [Intel-gfx] [PATCH 1/3] drm/i915/guc: Update context registration to new GuC API

2022-04-11 Thread Ceraolo Spurio, Daniele
* NB: GuC interface supports 64 bit LRCA even though i915 +* only supports 32 bit currently. +*/ It's not i915 that only supports 32b, it's the HW. Assuming that, as you said in the cover letter, this is going to be squashed before merge and

Re: [Intel-gfx] [PATCH 2/3] drm/i915/guc: Update scheduling policies to new GuC API

2022-04-11 Thread Ceraolo Spurio, Daniele
igned-off-by: John Harrison Reviewed-by: Daniele Ceraolo Spurio Daniele --- .../gpu/drm/i915/gt/uc/abi/guc_actions_abi.h | 4 +- drivers/gpu/drm/i915/gt/uc/abi/guc_klvs_abi.h | 15 ++ drivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h | 19 +- .../gpu/drm/i915/gt/uc/intel_guc_submiss

Re: [Intel-gfx] [PATCH 3/3] drm/i915/guc: Update to GuC version 70.1.1

2022-04-11 Thread Ceraolo Spurio, Daniele
On 4/8/2022 11:03 AM, john.c.harri...@intel.com wrote: From: John Harrison Update to the latest GuC firmware release. Signed-off-by: John Harrison Reviewed-by: Daniele Ceraolo Spurio Daniele --- drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c | 32 1 file

Re: [Intel-gfx] [PATCH v2 4/7] drm/i915/guc: use the memcpy_from_wc call from the drm

2022-04-11 Thread Ceraolo Spurio, Daniele
On 3/21/2022 2:14 PM, Lucas De Marchi wrote: On Thu, Mar 03, 2022 at 11:30:10PM +0530, Balasubramani Vivekanandan wrote: memcpy_from_wc functions in i915_memcpy.c will be removed and replaced by the implementation in drm_cache.c. Updated to use the functions provided by drm_cache.c. v2: Chec

Re: [Intel-gfx] [PATCH 14/20] drm/i915/dg2: add gsc with special gsc bar offsets

2022-04-13 Thread Ceraolo Spurio, Daniele
On 4/7/2022 5:58 AM, Alexander Usyskin wrote: From: Tomas Winkler DG2 uses different GSC offsets on memory bar and uses PXP head (HECI1). Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler Reviewed-by: Daniele Ceraolo Spurio Daniele --- drivers/gpu/drm/i915/gt

Re: [Intel-gfx] [PATCH] drm/i915: Don't show client busyness in fdinfo with GuC submission

2022-04-14 Thread Ceraolo Spurio, Daniele
On 4/13/2022 3:57 PM, Ashutosh Dixit wrote: Client busyness is not available when GuC submission is used. Don't show it in fdinfo till this is supported by GuC. GuC does support this, but we don't yet have code in place in i915 to fetch the data, so this commit message needs a slightly rewo

Re: [Intel-gfx] [PATCH v2] drm/i915: Don't show engine information in fdinfo with GuC submission

2022-04-14 Thread Ceraolo Spurio, Daniele
d as FIXME since the code isn't working around a bug, just returning early due to a non-supported feature. IMO better to drop the FIXME tag, but anyway: Reviewed-by: Daniele Ceraolo Spurio Daniele +* till fetching engine busyness is implemented in the GuC submission backend

Re: [Intel-gfx] [PATCH 07/10] drm/i915/guc: Enable GuC based workarounds for DG2

2022-04-15 Thread Ceraolo Spurio, Daniele
On 4/13/2022 12:27 PM, Umesh Nerlige Ramappa wrote: From: John Harrison There are some workarounds for DG2 that are implemented in the GuC firmware. However, the KMD is required to enable these by setting the appropriate flag as GuC does not know what platform it is running on. Wa_1601175

Re: [Intel-gfx] [PATCH 3/6] drm/i915/guc: Enable GuC based workarounds for DG2

2022-04-18 Thread Ceraolo Spurio, Daniele
. Wa_16011759253 Wa_14012630569 Wa_14013746162 Signed-off-by: John Harrison CC: Matt Roper Reviewed-by: Daniele Ceraolo Spurio Daniele --- drivers/gpu/drm/i915/gt/uc/intel_guc.c | 14 ++ drivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h | 2 ++ 2 files changed, 16 insertions

Re: [Intel-gfx] [PATCH 2/6] drm/i915/guc: Enable Wa_22011802037 for gen12 GuC based platforms

2022-04-18 Thread Ceraolo Spurio, Daniele
given that gen11 defaults to execlists submission and that we'd need to specially enable GuC in CI to cover, I can see how making it a follow-up makes things simpler, so not a blocker. Signed-off-by: Umesh Nerlige Ramappa Reviewed-by: Daniele Ceraolo Spurio Daniele --- drivers/gp

Re: [Intel-gfx] [PATCH v2 2/7] mei: add support for graphics system controller (gsc) devices

2022-04-18 Thread Ceraolo Spurio, Daniele
On 4/18/2022 5:07 PM, Daniele Ceraolo Spurio wrote: From: Tomas Winkler GSC is a graphics system controller, based on CSE, it provides a chassis controller for graphics discrete cards, as well as it supports media protection on selected devices. mei_gsc binds to a auxiliary devices exposed

Re: [Intel-gfx] ✗ Fi.CI.IGT: failure for GSC support (rev7)

2022-04-21 Thread Ceraolo Spurio, Daniele
On 4/19/2022 6:17 PM, Patchwork wrote: Project List - Patchwork *Patch Details* *Series:* GSC support (rev7) *URL:* https://patchwork.freedesktop.org/series/102160/ *State:*failure *Details:* https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_102160v7/index.html CI Bug Log

Re: [Intel-gfx] [PATCH 1/4] drm/i915/huc: check HW directly for HuC auth status

2022-04-27 Thread Ceraolo Spurio, Daniele
On 4/26/2022 5:26 PM, Daniele Ceraolo Spurio wrote: The huc_is_authenticated function return is based on our SW tracking of the HuC auth status. However, around suspend/resume and reset this can go out of sync with the actual HW state, which is why we use huc_check_state() to look at the actua

Re: [Intel-gfx] [PATCH 2/2] drm/i915/dg2: Define GuC firmware version for DG2

2022-04-27 Thread Ceraolo Spurio, Daniele
On 4/27/2022 9:55 AM, john.c.harri...@intel.com wrote: From: John Harrison First release of GuC for DG2. Reviewed-by: Daniele Ceraolo Spurio Daniele Signed-off-by: John Harrison CC: Tomasz Mistat CC: Ramalingam C CC: Daniele Ceraolo Spurio --- drivers/gpu/drm/i915/gt/uc

Re: [Intel-gfx] [PATCH] drm/i915/guc: Support programming the EU priority in the GuC descriptor

2022-05-03 Thread Ceraolo Spurio, Daniele
On 5/3/2022 5:44 PM, Daniele Ceraolo Spurio wrote: From: Matthew Brost The EU priority register must be updated by the GuC rather than the driver as it is context specific and only the GuC knows which context is currently executing. Cc: John Harrison Cc: Matt Roper Signed-off-by: Matthew

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

2022-02-15 Thread Ceraolo Spurio, Daniele
On 2/15/2022 1:09 AM, Tvrtko Ursulin wrote: On 15/02/2022 01:11, Daniele Ceraolo Spurio wrote: Move initialization of submission-related spinlock, lists and workers to init_early. This fixes an issue where if the GuC init fails we might still try to get the lock in the context cleanup code.

Re: [Intel-gfx] [PATCH 01/15] drm/i915/dg2: Define GuC firmware version for DG2

2022-02-18 Thread Ceraolo Spurio, Daniele
On 2/18/2022 10:47 AM, Ramalingam C wrote: From: John Harrison First release of GuC for DG2. Signed-off-by: John Harrison CC: Tomasz Mistat CC: Ramalingam C CC: Daniele Ceraolo Spurio Reviewed-by: Daniele Ceraolo Spurio Daniele --- drivers/gpu/drm/i915/gt/uc/intel_uc_fw.c | 1

Re: [Intel-gfx] [PATCH 1/8] drm/i915/guc: Do not conflate lrc_desc with GuC id for registration

2022-02-18 Thread Ceraolo Spurio, Daniele
helper functions for context id mappings to better reflect their purpose and to differentiate from other registration related helper functions. Signed-off-by: John Harrison Reviewed-by: Daniele Ceraolo Spurio Daniele --- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 69

Re: [Intel-gfx] [PATCH 2/8] drm/i915/guc: Add an explicit 'submission_initialized' flag

2022-02-18 Thread Ceraolo Spurio, Daniele
way, so: Reviewed-by: Daniele Ceraolo Spurio Daniele --- drivers/gpu/drm/i915/gt/uc/intel_guc.h| 2 ++ drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 8 +--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc.h b/drivers

Re: [Intel-gfx] [PATCH 1/3] drm/i915/guc: Limit scheduling properties to avoid overflow

2022-02-22 Thread Ceraolo Spurio, Daniele
d in the GuC interface. If I'm correct, IMO we need to ask the GuC team to add them in, because it shouldn't be our responsibility to convert from ms to GuC clocks, considering that the interface is in ms. Not a blocker for this patch. Reviewed-by: Daniele Ceraolo Spurio Daniele + struct guc_policies { u32 submission_queue_depth[GUC_MAX_ENGINE_CLASSES]; /* In micro seconds. How much time to allow before DPC processing is

Re: [Intel-gfx] [PATCH 3/8] drm/i915/guc: Better name for context id limit

2022-02-22 Thread Ceraolo Spurio, Daniele
something like "the desc pool is sized based on the maximum numbers of contexts supported by the GuC, so define that limit directly". While at it, also update a kzalloc(sizeof()*count) to be a kcalloc(count,size). Signed-off-by: John Harrison Reviewed-by: Daniele Ceraolo Spurio

Re: [Intel-gfx] [PATCH 4/8] drm/i915/guc: Split guc_lrc_desc_pin apart

2022-02-22 Thread Ceraolo Spurio, Daniele
the place where the return values are actually ignored. Signed-off-by: John Harrison Reviewed-by: Daniele Ceraolo Spurio Daniele --- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 45 --- 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/drivers/gpu/drm/

Re: [Intel-gfx] [PATCH 5/8] drm/i915/guc: Move lrc desc setup to where it is needed

2022-02-22 Thread Ceraolo Spurio, Daniele
On 2/17/2022 3:52 PM, john.c.harri...@intel.com wrote: From: John Harrison The LRC descriptor was being initialised early on in the context registration sequence. It could then be determined that the actual registration needs to be delayed and the descriptor would be wiped out. This is ineff

Re: [Intel-gfx] [PATCH 6/8] drm/i915/guc: Rename desc_idx to ctx_id

2022-02-22 Thread Ceraolo Spurio, Daniele
: Daniele Ceraolo Spurio Daniele --- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 56 +-- 1 file changed, 28 insertions(+), 28 deletions(-) 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 aa74ec74194a

Re: [Intel-gfx] [PATCH 7/8] drm/i915/guc: Drop obsolete H2G definitions

2022-02-22 Thread Ceraolo Spurio, Daniele
and they're being removed entirely in v70, so: Reviewed-by: Daniele Ceraolo Spurio Daniele Signed-off-by: John Harrison --- drivers/gpu/drm/i915/gt/uc/abi/guc_actions_abi.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/uc/abi/guc_actions_abi.h b/driver

Re: [Intel-gfx] [PATCH 8/8] drm/i915/guc: Fix potential invalid pointer dereferences when decoding G2Hs

2022-02-22 Thread Ceraolo Spurio, Daniele
On 2/17/2022 3:52 PM, john.c.harri...@intel.com wrote: From: John Harrison Some G2H handlers were reading the context id field from the payload before checking the payload met the minimum length required. Signed-off-by: John Harrison Reviewed-by: Daniele Ceraolo Spurio While double-che

Re: [Intel-gfx] [PATCH v2] drm/i915/guc: Do not complain about stale reset notifications

2022-02-22 Thread Ceraolo Spurio, Daniele
: banned = %d, blocked = %d", The if statement above checks for !banned, so if we're here we're banned for sure, no need to print it as if it was conditional. I'd reword it as something like: "Ignoring reset notification for banned context 0x%04X ...". With that

Re: [Intel-gfx] [PATCH 5/8] drm/i915/guc: Move lrc desc setup to where it is needed

2022-02-23 Thread Ceraolo Spurio, Daniele
On 2/23/2022 12:23 PM, John Harrison wrote: On 2/22/2022 17:12, Ceraolo Spurio, Daniele wrote: On 2/17/2022 3:52 PM, john.c.harri...@intel.com wrote: From: John Harrison The LRC descriptor was being initialised early on in the context registration sequence. It could then be determined

Re: [Intel-gfx] [PATCH v2 4/8] drm/i915/guc: Split guc_lrc_desc_pin apart

2022-02-25 Thread Ceraolo Spurio, Daniele
the place where the return values are actually ignored. v2: Move some more splitting from a later patch (and do it correctly). Signed-off-by: John Harrison Reviewed-by: Daniele Ceraolo Spurio Daniele --- .../gpu/drm/i915/gt/uc/intel_guc_submission.c | 54 +++ 1 file c

Re: [Intel-gfx] [PATCH v2 5/8] drm/i915/guc: Move lrc desc setup to where it is needed

2022-02-25 Thread Ceraolo Spurio, Daniele
inefficient, so move the setup to later in the process after the point of no return. v2: Move some split changes into the split patch (and do them correctly). Signed-off-by: John Harrison Reviewed-by: Daniele Ceraolo Spurio Daniele --- drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 6

Re: [Intel-gfx] [PATCH] drm/i915/guc: Fix flag query helper function to not modify state

2022-02-28 Thread Ceraolo Spurio, Daniele
: John Harrison |Reviewed-by: Daniele Ceraolo Spurio Daniele| --- drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c b/drivers/gpu/drm/i915/gt/uc/intel_guc_sub

Re: [Intel-gfx] [PATCH] drm/i915/guc: Fix flag query helper function to not modify state

2022-02-28 Thread Ceraolo Spurio, Daniele
ed-off-by: John Harrison I seem to have confused patchwork by doing a cut & paste of my r-b from a different review, so here it is again: Reviewed-by: Daniele Ceraolo Spurio Daniele --- drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletio

Re: [Intel-gfx] [PATCH v2 08/13] drm/i915/xehp/guc: enable compute engine inside GuC

2022-03-01 Thread Ceraolo Spurio, Daniele
On 2/28/2022 9:42 AM, Matt Roper wrote: From: Daniele Ceraolo Spurio Tell GuC that CCS is enabled by setting a bit in its ADS. Cc: Vinay Belgaumkar Original-author: Michel Thierry Signed-off-by: Daniele Ceraolo Spurio Signed-off-by: Matt Roper --- drivers/gpu/drm/i915/gt/intel_gt_regs.

Re: [Intel-gfx] [PATCH v2 10/13] drm/i915/xehp: Don't support parallel submission on compute / render

2022-03-01 Thread Ceraolo Spurio, Daniele
On 2/28/2022 9:42 AM, Matt Roper wrote: From: Matthew Brost A different emit breadcrumbs ring programming is required for compute / render and we don't have UMD user so just reject parallel submission for these engine classes. Signed-off-by: Matthew Brost Signed-off-by: Matt Roper Exclu

Re: [Intel-gfx] [PATCH v2 12/13] drm/i915/xehp: Add compute workarounds

2022-03-01 Thread Ceraolo Spurio, Daniele
wa_write_or(wal, XEHP_L3NODEARBCFG, XEHP_LNESPARE); These 2 WAs are also implemented for DG2 (with different IDs). Are you planning to move them over to this function as a follow up? All the WA implementations match the specs, so as long as there is a plan for D

Re: [Intel-gfx] [PATCH v3] drm/i915/guc: Do not complain about stale reset notifications

2022-03-01 Thread Ceraolo Spurio, Daniele
esets are happening even if they are being ignored). v2: Better wording for the message (review feedback from Tvrtko). v3: Fix rebase issue (review feedback from Daniele). Signed-off-by: John Harrison Reviewed-by: Daniele Ceraolo Spurio Daniele --- drivers/gpu/drm/i915/

Re: [Intel-gfx] [PATCH v3 09/13] drm/i915/xehp/guc: enable compute engine inside GuC

2022-03-01 Thread Ceraolo Spurio, Daniele
On 3/1/2022 3:15 PM, Matt Roper wrote: From: Daniele Ceraolo Spurio Tell GuC that CCS is enabled by setting a bit in its ADS. It's a mask, not a bit. Reviewed-by: Daniele Ceraolo Spurio Daniele Cc: Vinay Belgaumkar Original-author: Michel Thierry Signed-off-by: Daniele Ce

Re: [Intel-gfx] [PATCH 1/2] drm/i915/uc: Support for version reduced and multiple firmware files

2022-08-25 Thread Ceraolo Spurio, Daniele
On 8/16/2022 1:28 PM, john.c.harri...@intel.com wrote: From: John Harrison There was a misunderstanding in how firmware file compatibility should be managed within i915. This has been clarified as: i915 must support all existing firmware releases forever new minor firmware releases sho

Re: [Intel-gfx] [PATCH v3] drm/i915/pxp: don't start pxp without mei_pxp bind

2022-08-25 Thread Ceraolo Spurio, Daniele
On 8/23/2022 2:15 PM, Juston Li wrote: On Fri, Aug 19, 2022 at 4:53 AM Andrzej Hajda wrote: On 18.08.2022 19:42, Juston Li wrote: pxp will not start correctly until after mei_pxp bind completes and intel_pxp_init_hw() is called. Wait for the bind to complete before proceeding with startup.

Re: [Intel-gfx] [PATCH v2 1/3] drm/i915/uc: Support for version reduced and multiple firmware files

2022-08-26 Thread Ceraolo Spurio, Daniele
On 8/25/2022 8:05 PM, john.c.harri...@intel.com wrote: From: John Harrison There was a misunderstanding in how firmware file compatibility should be managed within i915. This has been clarified as: i915 must support all existing firmware releases forever new minor firmware releases sho

Re: [Intel-gfx] [PATCH v2 1/3] drm/i915/uc: Support for version reduced and multiple firmware files

2022-08-26 Thread Ceraolo Spurio, Daniele
On 8/26/2022 9:40 AM, John Harrison wrote: On 8/26/2022 09:35, Ceraolo Spurio, Daniele wrote: On 8/25/2022 8:05 PM, john.c.harri...@intel.com wrote: From: John Harrison There was a misunderstanding in how firmware file compatibility should be managed within i915. This has been clarified

Re: [Intel-gfx] [PATCH v2 2/3] drm/i915/uc: Add patch level version number support

2022-08-26 Thread Ceraolo Spurio, Daniele
On 8/25/2022 8:05 PM, john.c.harri...@intel.com wrote: From: John Harrison With the move to un-versioned filenames, it becomes more difficult to know exactly what version of a given firmware is being used. So add the patch level version number to the debugfs output. Also, support matching b

Re: [Intel-gfx] [PATCH v7 02/15] mei: add kdoc for struct mei_aux_device

2022-09-01 Thread Ceraolo Spurio, Daniele
On 8/6/2022 5:26 AM, Tomas Winkler wrote: struct mei_aux_device is an interface structure requires proper documenation. Signed-off-by: Tomas Winkler Reviewed-by: Daniele Ceraolo Spurio Daniele --- include/linux/mei_aux.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a

Re: [Intel-gfx] [PATCH v7 05/15] drm/i915/gsc: add GSC XeHP SDV platform definition

2022-09-01 Thread Ceraolo Spurio, Daniele
: Vitaly Lubart Signed-off-by: Tomas Winkler Signed-off-by: Alexander Usyskin Reviewed-by: Daniele Ceraolo Spurio Daniele --- drivers/gpu/drm/i915/gt/intel_gsc.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/gpu/drm/i915/gt/intel_gsc.c b/drivers/gpu/drm/i915

Re: [Intel-gfx] [PATCH v7 06/15] mei: gsc: use polling instead of interrupts

2022-09-01 Thread Ceraolo Spurio, Daniele
} + + schedule_timeout_interruptible(msecs_to_jiffies(polling_timeout)); + } IMO this loop could have used a couple of comments to make it easier to understand what's going on with the various waits and timeouts. Not a blocker. Reviewed-by: Daniele Ceraolo S

Re: [Intel-gfx] [PATCH v7 07/15] mei: gsc: wait for reset thread on stop

2022-09-01 Thread Ceraolo Spurio, Daniele
On 8/6/2022 5:26 AM, Tomas Winkler wrote: From: Alexander Usyskin Wait for reset work to complete before initiating stop reset flow sequence. Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler Reviewed-by: Daniele Ceraolo Spurio Daniele --- drivers/misc/mei/init.c | 2

Re: [Intel-gfx] [PATCH v7 08/15] mei: extend timeouts on slow devices.

2022-09-01 Thread Ceraolo Spurio, Daniele
NT_INTR_RECEIVED, + dev->timeouts.pgi); Shouldn't this be timeouts.d0i3, given that it replaces mei_secs_to_jiffies(MEI_D0I3_TIMEOUT)? Apart from this, all the other replacements look ok, so with this fixed: Reviewed-by: Daniele Ceraolo Spurio Daniele mutex_lock(&dev-

Re: [Intel-gfx] [PATCH v7 09/15] mei: bus: export common mkhi definitions into a separate header

2022-09-01 Thread Ceraolo Spurio, Daniele
On 8/6/2022 5:26 AM, Tomas Winkler wrote: From: Vitaly Lubart Exported common mkhi definitions from bus-fixup.c into a separate header file mkhi.h for other driver usage. Signed-off-by: Vitaly Lubart Signed-off-by: Tomas Winkler Signed-off-by: Alexander Usyskin --- drivers/misc/mei/bus

Re: [Intel-gfx] [PATCH v7 10/15] mei: mkhi: add memory ready command

2022-09-01 Thread Ceraolo Spurio, Daniele
date aside, this is: Reviewed-by: Daniele Ceraolo Spurio Daniele --- drivers/misc/mei/mkhi.h | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/misc/mei/mkhi.h b/drivers/misc/mei/mkhi.h index 27a9b476904e..056b76e73d40 100644 --- a/drivers/misc/mei

Re: [Intel-gfx] [PATCH v7 11/15] mei: gsc: setup gsc extended operational memory

2022-09-01 Thread Ceraolo Spurio, Daniele
On 8/6/2022 5:26 AM, Tomas Winkler wrote: 1. Retrieve extended operational memory physical pointers from the auxiliary device info. 2. Setup memory registers. 3. Notify firmware that the memory is ready by sending the memory ready command. 4. Disable PXP device if GSC is not in PXP mod

Re: [Intel-gfx] [PATCH v7 12/15] mei: gsc: add transition to PXP mode in resume flow

2022-09-01 Thread Ceraolo Spurio, Daniele
On 8/6/2022 5:26 AM, Tomas Winkler wrote: From: Vitaly Lubart Added transition to PXP mode in resume flow. CC: Daniele Ceraolo Spurio Signed-off-by: Vitaly Lubart Signed-off-by: Tomas Winkler Signed-off-by: Alexander Usyskin Reviewed-by: Daniele Ceraolo Spurio Daniele

Re: [Intel-gfx] [PATCH v7 13/15] mei: debugfs: add pxp mode to devstate in debugfs

2022-09-01 Thread Ceraolo Spurio, Daniele
could be monitored to ensure that pxp is in the ready state. CC: Vitaly Lubart Signed-off-by: Tomas Winkler Signed-off-by: Alexander Usyskin Reviewed-by: Daniele Ceraolo Spurio Daniele --- drivers/misc/mei/debugfs.c | 17 + 1 file changed, 17 insertions(+) diff --git a

Re: [Intel-gfx] [PATCH 6/8] drm/i915/xelpmp: Expose media as another GT

2022-09-01 Thread Ceraolo Spurio, Daniele
On 8/29/2022 10:02 AM, Matt Roper wrote: Xe_LPM+ platforms have "standalone media." I.e., the media unit is designed as an additional GT with its own engine list, GuC, forcewake, etc. Let's allow platforms to include media GTs in their device info. Cc: Aravind Iddamsetty Signed-off-by: Mat

Re: [Intel-gfx] [PATCH 7/8] drm/i915/mtl: Use primary GT's irq lock for media GT

2022-09-01 Thread Ceraolo Spurio, Daniele
On 8/29/2022 10:02 AM, Matt Roper wrote: When we hook up interrupts (in the next patch), interrupts for the media GT are still processed as part of the primary GT's interrupt flow. As such, we should share the same IRQ lock with the primary GT. Let's convert gt->irq_lock into a pointer and j

Re: [Intel-gfx] [PATCH 8/8] drm/i915/mtl: Hook up interrupts for standalone media

2022-09-01 Thread Ceraolo Spurio, Daniele
media GT instance as well. Bspec: 45605 Cc: Anusha Srivatsa Signed-off-by: Matt Roper Reviewed-by: Daniele Ceraolo Spurio Daniele --- drivers/gpu/drm/i915/gt/intel_gt_irq.c | 19 +++ drivers/gpu/drm/i915/gt/intel_gt_regs.h | 2 ++ drivers/gpu/drm/i915/gt/intel_sa_media.c |

Re: [Intel-gfx] [PATCH v7 11/15] mei: gsc: setup gsc extended operational memory

2022-09-04 Thread Ceraolo Spurio, Daniele
solution that uses the same firmware client and have no need in special initialization. makes sense. Could use a comment, but anyway: Reviewed-by: Daniele Ceraolo Spurio Daniele

Re: [Intel-gfx] [PATCH v3 2/3] drm/i915/uc: Add patch level version number support

2022-09-06 Thread Ceraolo Spurio, Daniele
On 8/26/2022 6:17 PM, john.c.harri...@intel.com wrote: From: John Harrison With the move to un-versioned filenames, it becomes more difficult to know exactly what version of a given firmware is being used. So add the patch level version number to the debugfs output. Also, support matching b

Re: [Intel-gfx] [PATCH v3 3/3] drm/i915/uc: Enable version reduced firmware files for newest platforms

2022-09-06 Thread Ceraolo Spurio, Daniele
On 8/26/2022 6:17 PM, john.c.harri...@intel.com wrote: From: John Harrison Going forwards, the intention is for GuC firmware files to be named for their major version only and HuC firmware files to have no version number in the name at all. This patch adds those entries for DG1/2 and ADL-P/S

Re: [Intel-gfx] [PATCH v3 3/3] drm/i915/uc: Enable version reduced firmware files for newest platforms

2022-09-07 Thread Ceraolo Spurio, Daniele
On 9/6/2022 1:29 PM, Ceraolo Spurio, Daniele wrote: On 8/26/2022 6:17 PM, john.c.harri...@intel.com wrote: From: John Harrison Going forwards, the intention is for GuC firmware files to be named for their major version only and HuC firmware files to have no version number in the name at

Re: [Intel-gfx] [PATCH v8 02/16] mei: add kdoc for struct mei_aux_device

2022-09-07 Thread Ceraolo Spurio, Daniele
On 9/7/2022 8:57 AM, Tomas Winkler wrote: struct mei_aux_device is an interface structure requires proper documenation. Signed-off-by: Tomas Winkler This is unchanged from the previously reviewed rev, so this still applies: Reviewed-by: Daniele Ceraolo Spurio Daniele --- include

  1   2   3   4   >