All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Murthy, Arun R" <arun.r.murthy@intel.com>
To: Suraj Kandpal <suraj.kandpal@intel.com>,
	<dri-devel@lists.freedesktop.org>,
	<intel-xe@lists.freedesktop.org>,
	<intel-gfx@lists.freedesktop.org>
Cc: <ankit.k.nautiyal@intel.com>, <uma.shankar@intel.com>
Subject: Re: [PATCH 04/28] drm/i915/writeback: Add writeback registers
Date: Mon, 28 Jul 2025 12:01:16 +0530	[thread overview]
Message-ID: <7da11f03-29fe-4bae-af0a-c85de7e68140@intel.com> (raw)
In-Reply-To: <20250725050409.2687242-5-suraj.kandpal@intel.com>

On 25-07-2025 10:33, Suraj Kandpal wrote:
> Add writeback registers to its own file.
>
> Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
> ---
>   .../drm/i915/display/intel_writeback_reg.h    | 136 ++++++++++++++++++
>   1 file changed, 136 insertions(+)
>   create mode 100644 drivers/gpu/drm/i915/display/intel_writeback_reg.h
>
> diff --git a/drivers/gpu/drm/i915/display/intel_writeback_reg.h b/drivers/gpu/drm/i915/display/intel_writeback_reg.h
> new file mode 100644
> index 000000000000..ffe302ef3dd9
> --- /dev/null
> +++ b/drivers/gpu/drm/i915/display/intel_writeback_reg.h
> @@ -0,0 +1,136 @@
> +/* SPDX-License-Identifier: MIT */
> +/*
> + * Copyright © 2024 Intel Corporation
> + */
After updating the copyright!

Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com>

Thanks and Regards,
Arun R Murthy
--------------------

> +
> +#ifndef __INTEL_WRITEBACK_REGS_H__
> +#define __INTEL_WRITEBACK_REGS_H__
> +
> +#include "intel_display_reg_defs.h"
> +
> +/* WD 0 and 1 */
> +#define TRANSCODER_WD0_OFFSET	0x6e000
> +#define TRANSCODER_WD1_OFFSET	0x6d800
> +
> +/* WD 0 and 1 */
> +#define PIPE_WD0_OFFSET		0x7e008
> +#define PIPE_WD1_OFFSET		0x7d008
> +
> +/* Gen12 WD */
> +#define _MMIO_WD(tc, wd0, wd1)	_MMIO_TRANS((tc) - TRANSCODER_WD_0, wd0, wd1)
> +
> +#define WD_TRANS_ENABLE		REG_BIT(31)
> +#define WD_TRANS_STATE		REG_BIT(30)
> +
> +/* WD transcoder control */
> +#define _WD_TRANS_FUNC_CTL_0	0x6e400
> +#define _WD_TRANS_FUNC_CTL_1	0x6ec00
> +#define WD_TRANS_FUNC_CTL(tc)	_MMIO_WD(tc,\
> +				_WD_TRANS_FUNC_CTL_0,\
> +				_WD_TRANS_FUNC_CTL_1)
> +
> +#define TRANS_WD_FUNC_ENABLE		REG_BIT(31)
> +#define WD_TRIGGERED_CAP_MODE_ENABLE	REG_BIT(30)
> +#define START_TRIGGER_FRAME		REG_BIT(29)
> +#define STOP_TRIGGER_FRAME		REG_BIT(28)
> +#define WD_INPUT_SELECT_MASK		REG_GENMASK(14, 12)
> +#define WD_INPUT_PIPE_A			REG_FIELD_PREP(WD_INPUT_SELECT_MASK, 0)
> +#define WD_INPUT_PIPE_B			REG_FIELD_PREP(WD_INPUT_SELECT_MASK, 5)
> +#define WD_INPUT_PIPE_C			REG_FIELD_PREP(WD_INPUT_SELECT_MASK, 6)
> +#define WD_INPUT_PIPE_D			REG_FIELD_PREP(WD_INPUT_SELECT_MASK, 7)
> +#define WD_COLOR_MODE_MASK		REG_GENMASK(22, 20)
> +#define WD_CONTROL_POINTERS             REG_GENMASK(19, 18)
> +#define WD_DISABLE_POINTERS             REG_FIELD_PREP(WD_CONTROL_POINTERS, 3)
> +#define WD_PIX_FMT_YUYV			REG_FIELD_PREP(WD_COLOR_MODE_MASK, 1)
> +#define WD_PIX_FMT_XYUV8888		REG_FIELD_PREP(WD_COLOR_MODE_MASK, 2)
> +#define WD_PIX_FMT_XBGR8888		REG_FIELD_PREP(WD_COLOR_MODE_MASK, 3)
> +#define WD_PIX_FMT_Y410			REG_FIELD_PREP(WD_COLOR_MODE_MASK, 4)
> +#define WD_PIX_FMT_YUV422		REG_FIELD_PREP(WD_COLOR_MODE_MASK, 5)
> +#define WD_PIX_FMT_XBGR2101010		REG_FIELD_PREP(WD_COLOR_MODE_MASK, 6)
> +#define WD_PIX_FMT_RGB565		REG_FIELD_PREP(WD_COLOR_MODE_MASK, 7)
> +#define WD_FRAME_NUMBER_MASK		REG_GENMASK(3, 0)
> +#define WD_FRAME_NUMBER(n)		REG_FIELD_PREP(WD_FRAME_NUMBER_MASK, n)
> +
> +#define _WD_STRIDE_0			0x6e510
> +#define _WD_STRIDE_1			0x6ed10
> +#define WD_STRIDE(tc)			_MMIO_WD(tc,\
> +					_WD_STRIDE_0,\
> +					_WD_STRIDE_1)
> +#define WD_STRIDE_MASK			REG_GENMASK(15, 6)
> +
> +#define _WD_STREAMCAP_CTL0		0x6e590
> +#define _WD_STREAMCAP_CTL1		0x6ed90
> +#define WD_STREAMCAP_CTL(tc)		_MMIO_WD(tc,\
> +					_WD_STREAMCAP_CTL0,\
> +					_WD_STREAMCAP_CTL1)
> +
> +#define WD_STREAM_CAP_MODE_EN		REG_BIT(31)
> +#define WD_SLICING_STRAT_MASK		REG_GENMASK(25, 24)
> +#define WD_SLICING_STRAT_1_1		REG_FIELD_PREP(WD_SLICING_STRAT_MASK, 0)
> +#define WD_SLICING_STRAT_2_1		REG_FIELD_PREP(WD_SLICING_STRAT_MASK, 1)
> +#define WD_SLICING_STRAT_4_1		REG_FIELD_PREP(WD_SLICING_STRAT_MASK, 2)
> +#define WD_SLICING_STRAT_8_1		REG_FIELD_PREP(WD_SLICING_STRAT_MASK, 3)
> +#define WD_STREAM_OVERRUN_STATUS	1
> +
> +#define _WD_SURF_0			0x6e514
> +#define _WD_SURF_1			0x6ed14
> +#define WD_SURF(tc)			_MMIO_WD(tc,\
> +					_WD_SURF_0,\
> +					_WD_SURF_1)
> +
> +#define _WD_IMR_0			0x6e560
> +#define _WD_IMR_1			0x6ed60
> +#define WD_IMR(tc)			_MMIO_WD(tc,\
> +					_WD_IMR_0,\
> +					_WD_IMR_1)
> +#define WD_FRAME_COMPLETE_INT		REG_BIT(7)
> +#define WD_GTT_FAULT_INT		REG_BIT(6)
> +#define WD_VBLANK_INT			REG_BIT(5)
> +#define WD_OVERRUN_INT			REG_BIT(4)
> +#define WD_CAPTURING_INT		REG_BIT(3)
> +#define WD_WRITE_COMPLETE_INT		REG_BIT(2)
> +
> +#define _WD_IIR_0			0x6e564
> +#define _WD_IIR_1			0x6ed64
> +#define WD_IIR(tc)			_MMIO_WD(tc,\
> +					_WD_IIR_0,\
> +					_WD_IIR_1)
> +
> +#define _WD_FRAME_STATUS_0		0x6e568
> +#define _WD_FRAME_STATUS_1		0x6ed68
> +#define WD_FRAME_STATUS(tc)		_MMIO_WD(tc,\
> +					_WD_FRAME_STATUS_0,\
> +					_WD_FRAME_STATUS_1)
> +
> +#define WD_FRAME_COMPLETE		REG_BIT(31)
> +#define WD_STATE_MASK			REG_GENMASK(26, 24)
> +#define WD_STATE_IDLE			REG_FIELD_PREP(WD_STATE_MASK, 0)
> +#define WD_STATE_CAPSTART		REG_FIELD_PREP(WD_STATE_MASK, 1)
> +#define WD_STATE_FRAME_START		REG_FIELD_PREP(WD_STATE_MASK, 2)
> +#define WD_STATE_CAPACITIVE		REG_FIELD_PREP(WD_STATE_MASK, 3)
> +#define WD_STATE_TG_DONE		REG_FIELD_PREP(WD_STATE_MASK, 4)
> +#define WD_STATE_WDX_DONE		REG_FIELD_PREP(WD_STATE_MASK, 5)
> +#define WD_STATE_QUICK_CAP		REG_FIELD_PREP(WD_STATE_MASK, 6)
> +
> +#define _WD_27_M_0			0x6e524
> +#define _WD_27_M_1			0x6ed24
> +#define WD_27_M(tc)			_MMIO_WD(tc,\
> +					_WD_27_M_0,\
> +					_WD_27_M_1)
> +
> +#define _WD_27_N_0			0x6e528
> +
> +/* Address looks wrong in bspec: */
> +#define _WD_27_N_1			0x6ec28
> +#define WD_27_N(tc)			_MMIO_WD(tc,\
> +					_WD_27_N_0,\
> +					_WD_27_N_1)
> +
> +#define _WD_TAIL_CFG_0			0x6e520
> +#define _WD_TAIL_CFG_1			0x6ed20
> +
> +#define WD_TAIL_CFG(tc)			_MMIO_WD(tc,\
> +					_WD_TAIL_CFG_0,\
> +					_WD_TAIL_CFG_1)
> +
> +#endif /* __INTEL_WRITEBACK_REGS_H__ */

  reply	other threads:[~2025-07-28  6:31 UTC|newest]

Thread overview: 61+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-25  5:03 [PATCH 00/28] Enable Pipe writeback Suraj Kandpal
2025-07-25  5:03 ` [PATCH 01/28] drm/writeback: Add function that takes preallocated connector Suraj Kandpal
2025-07-26 12:15   ` Dmitry Baryshkov
2025-07-26 16:41     ` Kandpal, Suraj
2025-07-27 15:33       ` Dmitry Baryshkov
2025-08-01  4:03         ` Kandpal, Suraj
2025-07-25  5:03 ` [PATCH 02/28] drm/writeback: Add a helper function to get writeback connector Suraj Kandpal
2025-07-26 12:20   ` Dmitry Baryshkov
2025-07-26 16:43     ` Kandpal, Suraj
2025-07-27 15:33       ` Dmitry Baryshkov
2025-08-01  4:04         ` Kandpal, Suraj
2025-07-25  5:03 ` [PATCH 03/28] drm/writeback: Define function to get drm_connector from writeback Suraj Kandpal
2025-07-26 12:33   ` Dmitry Baryshkov
2025-07-26 16:49     ` Kandpal, Suraj
2025-07-27 15:54       ` Dmitry Baryshkov
2025-08-01  5:18         ` Kandpal, Suraj
2025-08-01 10:17           ` Dmitry Baryshkov
2025-08-01 11:57             ` Jani Nikula
2025-08-01 13:19               ` Dmitry Baryshkov
2025-08-01 13:57                 ` Jani Nikula
2025-08-01 14:32             ` Kandpal, Suraj
2025-07-25  5:03 ` [PATCH 04/28] drm/i915/writeback: Add writeback registers Suraj Kandpal
2025-07-28  6:31   ` Murthy, Arun R [this message]
2025-07-25  5:03 ` [PATCH 05/28] drm/i915/writeback: Add some preliminary writeback definitions Suraj Kandpal
2025-07-25  5:03 ` [PATCH 06/28] drm/i915/writeback: Init writeback connector Suraj Kandpal
2025-07-25  5:03 ` [PATCH 07/28] drm/i915/writeback: Add function for get_writeback_connector Suraj Kandpal
2025-07-25  5:03 ` [PATCH 08/28] drm/i915/writeback: Define the get_connector_from_writeback hook Suraj Kandpal
2025-07-25  5:03 ` [PATCH 09/28] drm/i915/writeback: Add function to get modes Suraj Kandpal
2025-07-25  5:03 ` [PATCH 10/28] drm/i915/writeback: Add hook to check modes Suraj Kandpal
2025-07-25  5:03 ` [PATCH 11/28] drm/i915/writeback: Define encoder->get_hw_state Suraj Kandpal
2025-07-26 11:55   ` kernel test robot
2025-07-25  5:03 ` [PATCH 12/28] drm/i915/writeback: Fill encoder->get_config Suraj Kandpal
2025-07-25  5:03 ` [PATCH 13/28] drm/i915/writeback: Add private structure for writeback job Suraj Kandpal
2025-07-25  5:03 ` [PATCH 14/28] drm/i915/writeback: Define function for prepare and cleanup hooks Suraj Kandpal
2025-07-26 13:42   ` kernel test robot
2025-07-25  5:03 ` [PATCH 15/28] drm/i915/writeback: Define compute_config for writeback Suraj Kandpal
2025-07-25  5:03 ` [PATCH 16/28] drm/i915/writeback: Define function for connector function detect Suraj Kandpal
2025-07-25  5:03 ` [PATCH 17/28] drm/i915/writeback: Define function to destroy writeback connector Suraj Kandpal
2025-07-26 12:40   ` Dmitry Baryshkov
2025-07-26 16:29     ` Kandpal, Suraj
2025-07-27 15:55       ` Dmitry Baryshkov
2025-07-25  5:03 ` [PATCH 18/28] drm/i915/writeback: Add connector atomic check Suraj Kandpal
2025-07-26 12:38   ` Dmitry Baryshkov
2025-07-25  5:04 ` [PATCH 19/28] drm/i915/writeback: Add the enable sequence from writeback Suraj Kandpal
2025-07-25  5:04 ` [PATCH 20/28] drm/i915/writeback: Add writeback to xe Makefile Suraj Kandpal
2025-07-25  5:04 ` [PATCH 21/28] drm/i915/writeback: Define writeback frame capture function Suraj Kandpal
2025-07-25  5:04 ` [PATCH 22/28] drm/i915/writeback: Configure WD_STRIDE reg Suraj Kandpal
2025-07-25  5:04 ` [PATCH 23/28] drm/i915/writeback: Configure WD_SURF register Suraj Kandpal
2025-07-25  5:04 ` [PATCH 24/28] drm/i915/writeback: Enable writeback interrupts Suraj Kandpal
2025-07-25  5:04 ` [PATCH 25/28] drm/i915/writeback: Initialize writeback encoder Suraj Kandpal
2025-07-25  5:04 ` [PATCH 26/28] drm/i915/writeback: Define the disable sequence for writeback Suraj Kandpal
2025-07-25  5:04 ` [PATCH 27/28] drm/i915/writeback: Make exception for writeback connector Suraj Kandpal
2025-07-26 16:06   ` kernel test robot
2025-07-25  5:04 ` [PATCH 28/28] drm/i915/writeback: Modify state verify function Suraj Kandpal
2025-07-25  5:21 ` ✗ CI.checkpatch: warning for Enable Pipe writeback Patchwork
2025-07-25  5:22 ` ✓ CI.KUnit: success " Patchwork
2025-07-25  5:37 ` ✗ CI.checksparse: warning " Patchwork
2025-07-25  6:04 ` ✗ Xe.CI.BAT: failure " Patchwork
2025-07-25  7:15 ` ✗ Xe.CI.Full: " Patchwork
2025-07-26 12:39 ` [PATCH 00/28] " Dmitry Baryshkov
2025-07-26 16:33   ` Kandpal, Suraj

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=7da11f03-29fe-4bae-af0a-c85de7e68140@intel.com \
    --to=arun.r.murthy@intel.com \
    --cc=ankit.k.nautiyal@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=suraj.kandpal@intel.com \
    --cc=uma.shankar@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.