[Intel-gfx] [PATCH 1/2] drm: Add Panel Self Refresh DP addresses

Keith Packard keithp at keithp.com
Tue Oct 4 01:31:22 CEST 2011


On Mon, 3 Oct 2011 15:14:14 -0700, Ben Widawsky <ben at bwidawsk.net> wrote:

> +# define DP_PSR_SUPPORTED                   1

That's PSR version 1, not just a simple boolean

> +# define DP_PSR_SETUP_TIME_330              (0 << 1)
> +# define DP_PSR_SETUP_TIME_275              (1 << 1)
> +# define DP_PSR_SETUP_TIME_220              (2 << 1)
> +# define DP_PSR_SETUP_TIME_165              (3 << 1)
> +# define DP_PSR_SETUP_TIME_110              (4 << 1)
> +# define DP_PSR_SETUP_TIME_55               (5 << 1)
> +# define DP_PSR_SETUP_TIME_0                (6 << 1)

Need a DP_PSR_SETUP_TIME_MASK to indicate which bits are relevant here

> +# define DP_PSR_MAIN_LIKE_ACTIVE           (1 << 1)

LINK, I assume


> +# define DP_PSR_SINK_INACTIVE               (1 << 0)
> +# define DP_PSR_SINK_ACTIVE_SRC_SYNCED      (1 << 1)
> +# define DP_PSR_SINK_ACTIVE_RFB             (1 << 2)
> +# define DP_PSR_SINK_ACTIVE_SINK_SYNCED     (1 << 3)
> +# define DP_PSR_SINK_ACTIVE_RESYNC          (1 << 4)
> +# define DP_PSR_SINK_INTERNAL_ERROR         (1 << 7)

These are all wrong. Bits 2:0 are a 3 bit field.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20111003/12ec0556/attachment.sig>


More information about the Intel-gfx mailing list