[Intel-gfx] [PATCH v1] drm/i915: Support more QGV points
Jani Nikula
jani.nikula at linux.intel.com
Fri Nov 22 11:46:12 UTC 2019
On Fri, 22 Nov 2019, Stanislav Lisovskiy <stanislav.lisovskiy at intel.com> wrote:
> According to BSpec 53998, there is a mask of
> max 8 SAGV/QGV points we need to support.
>
> Bumping this up to keep the CI happy(currently
> preventing tests to run), until all SAGV
> changes land.
>
> Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=112189
> Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy at intel.com>
> ---
> drivers/gpu/drm/i915/display/intel_bw.c | 2 +-
> drivers/gpu/drm/i915/i915_drv.h | 4 ++++
> 2 files changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/display/intel_bw.c b/drivers/gpu/drm/i915/display/intel_bw.c
> index 86e75e858008..ec4c127a40b6 100644
> --- a/drivers/gpu/drm/i915/display/intel_bw.c
> +++ b/drivers/gpu/drm/i915/display/intel_bw.c
> @@ -15,7 +15,7 @@ struct intel_qgv_point {
> };
>
> struct intel_qgv_info {
> - struct intel_qgv_point points[3];
> + struct intel_qgv_point points[I915_NUM_SAGV_POINTS];
> u8 num_points;
> u8 num_channels;
> u8 t_bl;
> diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
> index fdae5a919bc8..bd8ce341be22 100644
> --- a/drivers/gpu/drm/i915/i915_drv.h
> +++ b/drivers/gpu/drm/i915/i915_drv.h
> @@ -621,6 +621,10 @@ struct i915_gem_mm {
>
> #define I915_ENGINE_WEDGED_TIMEOUT (60 * HZ) /* Reset but no recovery? */
>
> +/* BSpec precisely defines this */
> +#define I915_NUM_SAGV_POINTS 8
Please put this in intel_bw.c, and we can move it out when we need it
elsewhere. And at that point, let's put it somewhere other than
i915_drv.h which should be reduced in size, not increased.
BR,
Jani.
> +
> +
> struct ddi_vbt_port_info {
> /* Non-NULL if port present. */
> const struct child_device_config *child;
--
Jani Nikula, Intel Open Source Graphics Center
More information about the Intel-gfx
mailing list