From: Jani Nikula <jani.nikula@intel.com>
To: Madhav Chauhan <madhav.chauhan@intel.com>,
intel-gfx@lists.freedesktop.org
Cc: paulo.r.zanoni@intel.com, rodrigo.vivi@intel.com
Subject: Re: [PATCH v2 07/20] drm/i915/icl: Define AUX lane registers for Port A/B
Date: Wed, 04 Jul 2018 17:54:31 +0300 [thread overview]
Message-ID: <87k1qboxug.fsf@intel.com> (raw)
In-Reply-To: <1530622074-28307-8-git-send-email-madhav.chauhan@intel.com>
On Tue, 03 Jul 2018, Madhav Chauhan <madhav.chauhan@intel.com> wrote:
> This patch defines AUX lane registers for PORT_PCS_DW1,
> PORT_TX_DW2, PORT_TX_DW4, PORT_TX_DW5 used during
> dsi enabling.
>
> Signed-off-by: Madhav Chauhan <madhav.chauhan@intel.com>
> ---
> drivers/gpu/drm/i915/i915_reg.h | 22 ++++++++++++++++++++++
> 1 file changed, 22 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
> index 3fa8f02..d3ce1a9 100644
> --- a/drivers/gpu/drm/i915/i915_reg.h
> +++ b/drivers/gpu/drm/i915/i915_reg.h
> @@ -1780,16 +1780,21 @@ enum i915_power_well_id {
> _CNL_PORT_PCS_DW1_LN0_D, \
> _CNL_PORT_PCS_DW1_LN0_AE, \
> _CNL_PORT_PCS_DW1_LN0_F))
> +
> #define _ICL_PORT_PCS_DW1_GRP_A 0x162604
> #define _ICL_PORT_PCS_DW1_GRP_B 0x6C604
> #define _ICL_PORT_PCS_DW1_LN0_A 0x162804
> #define _ICL_PORT_PCS_DW1_LN0_B 0x6C804
> +#define _ICL_PORT_PCS_DW1_AUX_B 0x6c304
> #define ICL_PORT_PCS_DW1_GRP(port) _MMIO_PORT(port,\
> _ICL_PORT_PCS_DW1_GRP_A, \
> _ICL_PORT_PCS_DW1_GRP_B)
> #define ICL_PORT_PCS_DW1_LN0(port) _MMIO_PORT(port, \
> _ICL_PORT_PCS_DW1_LN0_A, \
> _ICL_PORT_PCS_DW1_LN0_B)
> +#define ICL_PORT_PCS_DW1_AUX(port) _MMIO_PORT(port, \
> + _CNL_PORT_PCS_DW1_GRP_AE, \
I think for consistency with the rest of the registers here you should
add 0x162304 as _ICL_PORT_PCS_DW1_AUX_A. Clearly that's been decided for
the rest of these registers.
> + _ICL_PORT_PCS_DW1_AUX_B)
> #define COMMON_KEEPER_EN (1 << 26)
>
> /* CNL Port TX registers */
> @@ -1826,16 +1831,23 @@ enum i915_power_well_id {
> #define _ICL_PORT_TX_DW2_GRP_B 0x6C688
> #define _ICL_PORT_TX_DW2_LN0_A 0x162888
> #define _ICL_PORT_TX_DW2_LN0_B 0x6C888
> +#define _ICL_PORT_TX_DW2_AUX_A 0x162388
> +#define _ICL_PORT_TX_DW2_AUX_B 0x6c388
> #define ICL_PORT_TX_DW2_GRP(port) _MMIO_PORT(port, \
> _ICL_PORT_TX_DW2_GRP_A, \
> _ICL_PORT_TX_DW2_GRP_B)
> #define ICL_PORT_TX_DW2_LN0(port) _MMIO_PORT(port, \
> _ICL_PORT_TX_DW2_LN0_A, \
> _ICL_PORT_TX_DW2_LN0_B)
> +#define ICL_PORT_TX_DW2_AUX(port) _MMIO_PORT(port, \
> + _ICL_PORT_TX_DW2_AUX_A, \
> + _ICL_PORT_TX_DW2_AUX_B)
> #define SWING_SEL_UPPER(x) (((x) >> 3) << 15)
> #define SWING_SEL_UPPER_MASK (1 << 15)
> #define SWING_SEL_LOWER(x) (((x) & 0x7) << 11)
> #define SWING_SEL_LOWER_MASK (0x7 << 11)
> +#define FRC_LATENCY_OPTIM_MASK (0x7 << 8)
> +#define FRC_LATENCY_OPTIM_VAL(x) ((x) << 8)
^^^
Three spaces like the rest of them.
With the above two things fixed,
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
> #define RCOMP_SCALAR(x) ((x) << 0)
> #define RCOMP_SCALAR_MASK (0xFF << 0)
>
> @@ -1851,6 +1863,8 @@ enum i915_power_well_id {
> #define _ICL_PORT_TX_DW4_LN0_A 0x162890
> #define _ICL_PORT_TX_DW4_LN1_A 0x162990
> #define _ICL_PORT_TX_DW4_LN0_B 0x6C890
> +#define _ICL_PORT_TX_DW4_AUX_A 0x162390
> +#define _ICL_PORT_TX_DW4_AUX_B 0x6c390
> #define ICL_PORT_TX_DW4_GRP(port) _MMIO_PORT(port, \
> _ICL_PORT_TX_DW4_GRP_A, \
> _ICL_PORT_TX_DW4_GRP_B)
> @@ -1859,6 +1873,9 @@ enum i915_power_well_id {
> _ICL_PORT_TX_DW4_LN0_B) + \
> ((ln) * (_ICL_PORT_TX_DW4_LN1_A - \
> _ICL_PORT_TX_DW4_LN0_A)))
> +#define ICL_PORT_TX_DW4_AUX(port) _MMIO_PORT(port, \
> + _ICL_PORT_TX_DW4_AUX_A, \
> + _ICL_PORT_TX_DW4_AUX_B)
> #define LOADGEN_SELECT (1 << 31)
> #define POST_CURSOR_1(x) ((x) << 12)
> #define POST_CURSOR_1_MASK (0x3F << 12)
> @@ -1873,12 +1890,17 @@ enum i915_power_well_id {
> #define _ICL_PORT_TX_DW5_GRP_B 0x6C694
> #define _ICL_PORT_TX_DW5_LN0_A 0x162894
> #define _ICL_PORT_TX_DW5_LN0_B 0x6C894
> +#define _ICL_PORT_TX_DW5_AUX_A 0x162394
> +#define _ICL_PORT_TX_DW5_AUX_B 0x6c394
> #define ICL_PORT_TX_DW5_GRP(port) _MMIO_PORT(port, \
> _ICL_PORT_TX_DW5_GRP_A, \
> _ICL_PORT_TX_DW5_GRP_B)
> #define ICL_PORT_TX_DW5_LN0(port) _MMIO_PORT(port, \
> _ICL_PORT_TX_DW5_LN0_A, \
> _ICL_PORT_TX_DW5_LN0_B)
> +#define ICL_PORT_TX_DW5_AUX(port) _MMIO_PORT(port, \
> + _ICL_PORT_TX_DW5_AUX_A, \
> + _ICL_PORT_TX_DW5_AUX_B)
> #define TX_TRAINING_EN (1 << 31)
> #define TAP2_DISABLE (1 << 30)
> #define TAP3_DISABLE (1 << 29)
--
Jani Nikula, Intel Open Source Graphics Center
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2018-07-04 14:54 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-03 12:47 [PATCH v2 00/20] ICELAKE DSI DRIVER Madhav Chauhan
2018-07-03 12:47 ` [PATCH v2 01/20] drm/i915/icl: Define register for DSI PLL Madhav Chauhan
2018-07-03 12:47 ` [PATCH v2 02/20] drm/i915/icl: Program DSI Escape clock Divider Madhav Chauhan
2018-07-03 12:47 ` [PATCH v2 03/20] drm/i915/icl: Define DSI mode ctl register Madhav Chauhan
2018-07-03 12:47 ` [PATCH v2 04/20] drm/i915/icl: Enable DSI IO power Madhav Chauhan
2018-07-03 12:47 ` [PATCH v2 05/20] drm/i915/icl: Define PORT_CL_DW_10 register Madhav Chauhan
2018-07-04 14:38 ` Jani Nikula
2018-07-04 15:11 ` Chauhan, Madhav
2018-07-03 12:47 ` [PATCH v2 06/20] drm/i915/icl: Power down unused DSI lanes Madhav Chauhan
2018-07-03 12:47 ` [PATCH v2 07/20] drm/i915/icl: Define AUX lane registers for Port A/B Madhav Chauhan
2018-07-04 14:54 ` Jani Nikula [this message]
2018-07-05 9:43 ` Chauhan, Madhav
2018-07-03 12:47 ` [PATCH v2 08/20] drm/i915/icl: Configure lane sequencing of combo phy transmitter Madhav Chauhan
2018-07-03 12:47 ` [PATCH v2 09/20] drm/i915/icl: DSI vswing programming sequence Madhav Chauhan
2018-07-03 12:47 ` [PATCH v2 10/20] drm/i915/icl: Enable DDI Buffer Madhav Chauhan
2018-07-03 12:47 ` [PATCH v2 11/20] drm/i915/icl: Define T_INIT_MASTER registers Madhav Chauhan
2018-07-03 12:47 ` [PATCH v2 12/20] drm/i915/icl: Program " Madhav Chauhan
2018-07-03 12:47 ` [PATCH v2 13/20] drm/i915/icl: Define data/clock lanes dphy timing registers Madhav Chauhan
2018-07-03 12:47 ` [PATCH v2 14/20] drm/i915/icl: Program DSI clock and data lane timing params Madhav Chauhan
2018-07-03 12:47 ` [PATCH v2 15/20] drm/i915/icl: Define TA_TIMING_PARAM registers Madhav Chauhan
2018-07-03 12:47 ` [PATCH v2 16/20] drm/i915/icl: Program " Madhav Chauhan
2018-07-03 12:47 ` [PATCH v2 17/20] drm/i915/icl: Get DSI transcoder for a given port Madhav Chauhan
2018-07-03 12:47 ` [PATCH v2 18/20] drm/i915/icl: Add macros for MMIO of DSI transcoder registers Madhav Chauhan
2018-07-03 12:47 ` [PATCH v2 19/20] drm/i915/icl: Define TRANS_DSI_FUNC_CONF register Madhav Chauhan
2018-07-03 12:47 ` [PATCH v2 20/20] drm/i915/icl: Configure DSI transcoders Madhav Chauhan
2018-07-03 13:52 ` ✗ Fi.CI.CHECKPATCH: warning for ICELAKE DSI DRIVER (rev2) Patchwork
2018-07-03 13:59 ` ✗ Fi.CI.SPARSE: " Patchwork
2018-07-03 14:15 ` ✓ Fi.CI.BAT: success " Patchwork
2018-07-03 22:48 ` ✓ Fi.CI.IGT: " 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=87k1qboxug.fsf@intel.com \
--to=jani.nikula@intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=madhav.chauhan@intel.com \
--cc=paulo.r.zanoni@intel.com \
--cc=rodrigo.vivi@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.