[PATCH] drm/i915/gvt: Do not use I915_NUM_ENGINES to iterate over the mocs regs array

Zhenyu Wang zhenyuw at linux.intel.com
Tue Jan 16 02:28:12 UTC 2018


On 2018.01.12 08:48:07 -0800, Michel Thierry wrote:
> On 1/8/2018 10:37 AM, Michel Thierry wrote:
> > The mocs reg array is defined locally but then we iterate over its
> > elements using I915_NUM_ENGINES. There is no 'hard' connection between
> > I915_NUM_ENGINES and the regs array and there will be problems if either
> > of them increases.
> 
> Heads up, there is already a patch floating in intel-gfx that will increase
> I915_NUM_ENGINES,
> https://lists.freedesktop.org/archives/intel-gfx/2018-January/151967.html
> 
>

Thanks for head up! I've applied your fix already, need to double check
if there're other possible break.

-- 
Open Source Technology Center, Intel ltd.

$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20180116/0116f625/attachment.sig>


More information about the intel-gvt-dev mailing list