From: John Harrison <john.c.harrison@intel.com>
To: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>,
<intel-gfx@lists.freedesktop.org>
Cc: alexander.usyskin@intel.com
Subject: Re: [Intel-gfx] [PATCH v2 6/7] drm/i915/dg2: add gsc with special gsc bar offsets
Date: Tue, 19 Apr 2022 10:28:28 -0700 [thread overview]
Message-ID: <a4ed45eb-d5a5-9feb-2ddd-037d08db2679@intel.com> (raw)
In-Reply-To: <20220419000737.420867-7-daniele.ceraolospurio@intel.com>
On 4/18/2022 17:07, Daniele Ceraolo Spurio wrote:
> From: Tomas Winkler <tomas.winkler@intel.com>
>
> DG2 uses different GSC offsets on memory bar
> and uses PXP head (HECI1).
>
> v2 (Daniele): Rebased to before the ATS patches
Have checked that the rebase looks good. I don't really know much about
the GSC code but I can verify that Daniele's rebase has correctly kept
the code that he previously reviewed as good. So based on his r-b of v1,
v2 is:
Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
>
> Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
> Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> #v1
> Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
> ---
> drivers/gpu/drm/i915/gt/intel_gsc.c | 22 +++++++++++++++++++++-
> drivers/gpu/drm/i915/i915_pci.c | 1 +
> drivers/gpu/drm/i915/i915_reg.h | 2 ++
> 3 files changed, 24 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/gt/intel_gsc.c b/drivers/gpu/drm/i915/gt/intel_gsc.c
> index 21e860861f0b5..0e494028b81d0 100644
> --- a/drivers/gpu/drm/i915/gt/intel_gsc.c
> +++ b/drivers/gpu/drm/i915/gt/intel_gsc.c
> @@ -54,6 +54,19 @@ static const struct gsc_def gsc_def_dg1[] = {
> }
> };
>
> +static const struct gsc_def gsc_def_dg2[] = {
> + {
> + .name = "mei-gsc",
> + .bar = DG2_GSC_HECI1_BASE,
> + .bar_size = GSC_BAR_LENGTH,
> + },
> + {
> + .name = "mei-gscfi",
> + .bar = DG2_GSC_HECI2_BASE,
> + .bar_size = GSC_BAR_LENGTH,
> + }
> +};
> +
> static void gsc_release_dev(struct device *dev)
> {
> struct auxiliary_device *aux_dev = to_auxiliary_dev(dev);
> @@ -90,7 +103,14 @@ static void gsc_init_one(struct drm_i915_private *i915,
> if (intf_id == 0 && !HAS_HECI_PXP(i915))
> return;
>
> - def = &gsc_def_dg1[intf_id];
> + if (IS_DG1(i915)) {
> + def = &gsc_def_dg1[intf_id];
> + } else if (IS_DG2(i915)) {
> + def = &gsc_def_dg2[intf_id];
> + } else {
> + drm_warn_once(&i915->drm, "Unknown platform\n");
> + return;
> + }
>
> if (!def->name) {
> drm_warn_once(&i915->drm, "HECI%d is not implemented!\n", intf_id + 1);
> diff --git a/drivers/gpu/drm/i915/i915_pci.c b/drivers/gpu/drm/i915/i915_pci.c
> index 06e6dad0d7f71..cb6dcc3f48f4f 100644
> --- a/drivers/gpu/drm/i915/i915_pci.c
> +++ b/drivers/gpu/drm/i915/i915_pci.c
> @@ -1051,6 +1051,7 @@ static const struct intel_device_info xehpsdv_info = {
> .has_4tile = 1, \
> .has_64k_pages = 1, \
> .has_guc_deprivilege = 1, \
> + .has_heci_pxp = 1, \
> .needs_compact_pt = 1, \
> .platform_engine_mask = \
> BIT(RCS0) | BIT(BCS0) | \
> diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
> index 1dd7b7de60029..efcfe32cd8eba 100644
> --- a/drivers/gpu/drm/i915/i915_reg.h
> +++ b/drivers/gpu/drm/i915/i915_reg.h
> @@ -978,6 +978,8 @@
> #define BLT_RING_BASE 0x22000
> #define DG1_GSC_HECI1_BASE 0x00258000
> #define DG1_GSC_HECI2_BASE 0x00259000
> +#define DG2_GSC_HECI1_BASE 0x00373000
> +#define DG2_GSC_HECI2_BASE 0x00374000
>
>
>
next prev parent reply other threads:[~2022-04-19 17:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-19 0:07 [Intel-gfx] [PATCH v2 0/7] GSC support Daniele Ceraolo Spurio
2022-04-19 0:07 ` [Intel-gfx] [PATCH v2 1/7] drm/i915/gsc: add gsc as a mei auxiliary device Daniele Ceraolo Spurio
2022-04-19 0:07 ` [Intel-gfx] [PATCH v2 2/7] mei: add support for graphics system controller (gsc) devices Daniele Ceraolo Spurio
2022-04-19 1:26 ` Ceraolo Spurio, Daniele
2022-04-19 0:07 ` [Intel-gfx] [PATCH v2 3/7] mei: gsc: setup char driver alive in spite of firmware handshake failure Daniele Ceraolo Spurio
2022-04-19 0:07 ` [Intel-gfx] [PATCH v2 4/7] mei: gsc: add runtime pm handlers Daniele Ceraolo Spurio
2022-04-19 0:07 ` [Intel-gfx] [PATCH v2 5/7] mei: gsc: retrieve the firmware version Daniele Ceraolo Spurio
2022-04-19 0:07 ` [Intel-gfx] [PATCH v2 6/7] drm/i915/dg2: add gsc with special gsc bar offsets Daniele Ceraolo Spurio
2022-04-19 17:28 ` John Harrison [this message]
2022-04-19 0:07 ` [Intel-gfx] [PATCH v2 7/7] HAX: drm/i915: force INTEL_MEI_GSC on for CI Daniele Ceraolo Spurio
2022-04-19 0:39 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for GSC support (rev6) Patchwork
2022-04-19 0:39 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2022-04-19 1:02 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2022-04-19 2:17 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
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=a4ed45eb-d5a5-9feb-2ddd-037d08db2679@intel.com \
--to=john.c.harrison@intel.com \
--cc=alexander.usyskin@intel.com \
--cc=daniele.ceraolospurio@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox