From: Jani Nikula <jani.nikula@linux.intel.com>
To: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>,
intel-gfx@lists.freedesktop.org
Cc: tomi.p.sarvela@intel.com
Subject: Re: [PATCH v1] drm/i915: Support more QGV points
Date: Fri, 22 Nov 2019 13:46:12 +0200 [thread overview]
Message-ID: <871ru0w2uz.fsf@intel.com> (raw)
In-Reply-To: <20191122111514.22181-1-stanislav.lisovskiy@intel.com>
On Fri, 22 Nov 2019, Stanislav Lisovskiy <stanislav.lisovskiy@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@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
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
WARNING: multiple messages have this Message-ID (diff)
From: Jani Nikula <jani.nikula@linux.intel.com>
To: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>,
intel-gfx@lists.freedesktop.org
Cc: tomi.p.sarvela@intel.com
Subject: Re: [Intel-gfx] [PATCH v1] drm/i915: Support more QGV points
Date: Fri, 22 Nov 2019 13:46:12 +0200 [thread overview]
Message-ID: <871ru0w2uz.fsf@intel.com> (raw)
Message-ID: <20191122114612.vMhBBFhaA7A150QGWyBZxUPw4hXyPmcwlcPLcOg3EEk@z> (raw)
In-Reply-To: <20191122111514.22181-1-stanislav.lisovskiy@intel.com>
On Fri, 22 Nov 2019, Stanislav Lisovskiy <stanislav.lisovskiy@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@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
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2019-11-22 11:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-22 11:15 [PATCH v1] drm/i915: Support more QGV points Stanislav Lisovskiy
2019-11-22 11:15 ` [Intel-gfx] " Stanislav Lisovskiy
2019-11-22 11:46 ` Jani Nikula [this message]
2019-11-22 11:46 ` Jani Nikula
2019-11-22 11:57 ` Lisovskiy, Stanislav
2019-11-22 11:57 ` [Intel-gfx] " Lisovskiy, Stanislav
2019-11-22 12:39 ` ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
2019-11-22 12:39 ` [Intel-gfx] " Patchwork
2019-11-22 13:03 ` ✓ Fi.CI.BAT: success " Patchwork
2019-11-22 13:03 ` [Intel-gfx] " 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=871ru0w2uz.fsf@intel.com \
--to=jani.nikula@linux.intel.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=stanislav.lisovskiy@intel.com \
--cc=tomi.p.sarvela@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.