Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Brost <matthew.brost@intel.com>
To: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Cc: <intel-xe@lists.freedesktop.org>,
	Lucas De Marchi <lucas.demarchi@intel.com>,
	Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>,
	Tejas Upadhyay <tejas.upadhyay@intel.com>
Subject: Re: [PATCH v2 1/2] drm/xe: Set mask bits for CCS_MODE register
Date: Tue, 8 Oct 2024 14:56:49 +0000	[thread overview]
Message-ID: <ZwVIMaD31AGX6UxU@DUT025-TGLU.fm.intel.com> (raw)
In-Reply-To: <20241008073628.377433-2-balasubramani.vivekanandan@intel.com>

On Tue, Oct 08, 2024 at 01:06:27PM +0530, Balasubramani Vivekanandan wrote:
> CCS_MODE register requires setting mask bits from Xe2+ platforms. Set
> the mask bits unconditionally, as those bits are unused for older
> platforms.
> 
> Signed-off-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>

I think you need a fixes tag here. I haven't looked at the bspec to
determine if this change is correct though.

Matt

> ---
>  drivers/gpu/drm/xe/regs/xe_gt_regs.h | 2 +-
>  drivers/gpu/drm/xe/xe_gt_ccs_mode.c  | 6 ++++++
>  2 files changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/regs/xe_gt_regs.h b/drivers/gpu/drm/xe/regs/xe_gt_regs.h
> index 9dd70934ca15..e136b663af98 100644
> --- a/drivers/gpu/drm/xe/regs/xe_gt_regs.h
> +++ b/drivers/gpu/drm/xe/regs/xe_gt_regs.h
> @@ -562,7 +562,7 @@
>   *   [4-6]     RSVD
>   *   [7]       Disabled
>   */
> -#define CCS_MODE				XE_REG(0x14804)
> +#define CCS_MODE				XE_REG(0x14804, XE_REG_OPTION_MASKED)
>  #define   CCS_MODE_CSLICE_0_3_MASK		REG_GENMASK(11, 0) /* 3 bits per cslice */
>  #define   CCS_MODE_CSLICE_MASK			0x7 /* CCS0-3 + rsvd */
>  #define   CCS_MODE_CSLICE_WIDTH			ilog2(CCS_MODE_CSLICE_MASK + 1)
> diff --git a/drivers/gpu/drm/xe/xe_gt_ccs_mode.c b/drivers/gpu/drm/xe/xe_gt_ccs_mode.c
> index 9360ac4de489..246190b3e2bb 100644
> --- a/drivers/gpu/drm/xe/xe_gt_ccs_mode.c
> +++ b/drivers/gpu/drm/xe/xe_gt_ccs_mode.c
> @@ -68,6 +68,12 @@ static void __xe_gt_apply_ccs_mode(struct xe_gt *gt, u32 num_engines)
>  		}
>  	}
>  
> +	/*
> +	 * Mask bits need to be set for the register. Though only Xe2+
> +	 * platforms require setting of mask bits, it won't harm for older
> +	 * platforms as these bits are unused there.
> +	 */
> +	mode |= CCS_MODE_CSLICE_0_3_MASK << 16;
>  	xe_mmio_write32(&gt->mmio, CCS_MODE, mode);
>  
>  	xe_gt_dbg(gt, "CCS_MODE=%x config:%08x, num_engines:%d, num_slices:%d\n",
> -- 
> 2.34.1
> 

  reply	other threads:[~2024-10-08 14:57 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-08  7:36 [PATCH v2 0/2] compute mode change refactoring Balasubramani Vivekanandan
2024-10-08  7:36 ` [PATCH v2 1/2] drm/xe: Set mask bits for CCS_MODE register Balasubramani Vivekanandan
2024-10-08 14:56   ` Matthew Brost [this message]
2024-10-08 16:34   ` Lucas De Marchi
2024-10-31  5:55     ` Lucas De Marchi
2024-10-08  7:36 ` [PATCH v2 2/2] drm/xe: Use the filelist from drm for ccs_mode change Balasubramani Vivekanandan
2024-10-08 14:54   ` Matthew Brost
2024-10-08 15:20     ` Lucas De Marchi
2024-10-08 15:42       ` Matthew Brost
2024-10-08 16:55         ` Lucas De Marchi
2024-10-08 17:24           ` Matthew Brost
2024-10-08 18:00             ` Matthew Brost
2024-10-10 11:03               ` Vivekanandan, Balasubramani
2024-10-10 16:02                 ` Lucas De Marchi
2024-10-12  4:43                   ` Matthew Brost
2024-10-12 23:45                     ` Lucas De Marchi
2024-11-01 13:11                       ` Lucas De Marchi
2024-11-01 14:23                         ` Matthew Brost
2024-10-08  8:16 ` ✓ CI.Patch_applied: success for compute mode change refactoring Patchwork
2024-10-08  8:17 ` ✓ CI.checkpatch: " Patchwork
2024-10-08  8:18 ` ✓ CI.KUnit: " Patchwork
2024-10-08  8:29 ` ✓ CI.Build: " Patchwork
2024-10-08  8:32 ` ✓ CI.Hooks: " Patchwork
2024-10-08  8:33 ` ✓ CI.checksparse: " Patchwork
2024-10-08  8:56 ` ✓ CI.BAT: " Patchwork
2024-10-08 12:43 ` ✗ CI.FULL: 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=ZwVIMaD31AGX6UxU@DUT025-TGLU.fm.intel.com \
    --to=matthew.brost@intel.com \
    --cc=balasubramani.vivekanandan@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=lucas.demarchi@intel.com \
    --cc=niranjana.vishwanathapura@intel.com \
    --cc=tejas.upadhyay@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox