From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Cc: intel-xe@lists.freedesktop.org
Subject: Re: [Intel-xe] [PATCH 2/3] drm/xe: Add skip_guc_pc flag
Date: Tue, 28 Nov 2023 16:32:25 -0500 [thread overview]
Message-ID: <ZWZcaYDi0eChrZmU@intel.com> (raw)
In-Reply-To: <20231127222236.68999-3-vinay.belgaumkar@intel.com>
On Mon, Nov 27, 2023 at 02:22:35PM -0800, Vinay Belgaumkar wrote:
> This flag can be used to disable GuC based power management. This
> could be used for debug or comparison to host based C6.
>
> v2: Fix missing definition
>
> Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
> drivers/gpu/drm/xe/xe_device_types.h | 2 ++
> drivers/gpu/drm/xe/xe_pci.c | 2 ++
> 2 files changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/xe_device_types.h b/drivers/gpu/drm/xe/xe_device_types.h
> index 2712905c7a91..b1877270960a 100644
> --- a/drivers/gpu/drm/xe/xe_device_types.h
> +++ b/drivers/gpu/drm/xe/xe_device_types.h
> @@ -264,6 +264,8 @@ struct xe_device {
> u8 supports_mmio_ext:1;
> /** @has_heci_gscfi: device has heci gscfi */
> u8 has_heci_gscfi:1;
> + /** @skip_guc_pc: Skip GuC based PM feature init */
> + u8 skip_guc_pc:1;
>
> #if IS_ENABLED(CONFIG_DRM_XE_DISPLAY)
> struct {
> diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
> index cb762c11dd0f..d54cae326e1a 100644
> --- a/drivers/gpu/drm/xe/xe_pci.c
> +++ b/drivers/gpu/drm/xe/xe_pci.c
> @@ -64,6 +64,7 @@ struct xe_device_desc {
> u8 has_sriov:1;
> u8 bypass_mtcfg:1;
> u8 supports_mmio_ext:1;
> + u8 skip_guc_pc:1;
> };
>
> __diag_push();
> @@ -592,6 +593,7 @@ static int xe_info_init(struct xe_device *xe,
> xe->info.has_asid = graphics_desc->has_asid;
> xe->info.has_flat_ccs = graphics_desc->has_flat_ccs;
> xe->info.has_range_tlb_invalidation = graphics_desc->has_range_tlb_invalidation;
> + xe->info.skip_guc_pc = desc->skip_guc_pc;
>
> xe->info.enable_display = IS_ENABLED(CONFIG_DRM_XE_DISPLAY) &&
> enable_display &&
> --
> 2.38.1
>
next prev parent reply other threads:[~2023-11-28 21:34 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-27 22:22 [Intel-xe] [PATCH v4 0/3] drm/xe: Add a flag that can disable GuC PM Vinay Belgaumkar
2023-11-27 22:22 ` [Intel-xe] [PATCH 1/3] drm/xe: Rename xe_gt_idle_sysfs to xe_gt_idle Vinay Belgaumkar
2023-11-28 21:31 ` Rodrigo Vivi
2023-11-27 22:22 ` [Intel-xe] [PATCH 2/3] drm/xe: Add skip_guc_pc flag Vinay Belgaumkar
2023-11-28 21:32 ` Rodrigo Vivi [this message]
2023-11-27 22:22 ` [Intel-xe] [PATCH 3/3] drm/xe: Manually setup C6 when skip_guc_pc is set Vinay Belgaumkar
2023-11-28 21:33 ` Rodrigo Vivi
2023-11-27 22:52 ` [Intel-xe] ✓ CI.Patch_applied: success for drm/xe: Add a flag that can disable GuC PM (rev4) Patchwork
2023-11-27 22:52 ` [Intel-xe] ✗ CI.checkpatch: warning " Patchwork
2023-11-27 22:53 ` [Intel-xe] ✓ CI.KUnit: success " Patchwork
2023-11-27 23:00 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-11-27 23:01 ` [Intel-xe] ✓ CI.Hooks: " Patchwork
2023-11-27 23:02 ` [Intel-xe] ✓ CI.checksparse: " Patchwork
2023-11-27 23:37 ` [Intel-xe] ✓ CI.BAT: " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2023-11-27 19:58 [Intel-xe] [PATCH v3 0/3] drm/xe: Add a flag that can disable GuC PM Vinay Belgaumkar
2023-11-27 19:58 ` [Intel-xe] [PATCH 2/3] drm/xe: Add skip_guc_pc flag Vinay Belgaumkar
2023-11-27 18:54 [Intel-xe] [PATCH 0/3] drm/xe: Add a flag that can disable GuC PM Vinay Belgaumkar
2023-11-27 18:54 ` [Intel-xe] [PATCH 2/3] drm/xe: Add skip_guc_pc flag Vinay Belgaumkar
2023-11-22 21:04 [Intel-xe] [PATCH 0/3] drm/xe: Add a flag that can disable GuC PM Vinay Belgaumkar
2023-11-22 21:04 ` [Intel-xe] [PATCH 2/3] drm/xe: Add skip_guc_pc flag Vinay Belgaumkar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZWZcaYDi0eChrZmU@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=vinay.belgaumkar@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.