Re: [Intel-gfx] [PATCH 10/10] drm/i915/dmc: protect against loading wrong firmware

2019-05-23 Thread Rodrigo Vivi
On Thu, May 23, 2019 at 01:24:20AM -0700, Lucas De Marchi wrote: > In intel_package_header version 2 there's a new field in the > fw_info table that must be 0, otherwise it's not the correct DMC > firmware. Add a check for version 2 or later. > > Signed-off-by: Lucas De Marchi > --- > drivers/gp

[Intel-gfx] [PATCH 10/10] drm/i915/dmc: protect against loading wrong firmware

2019-05-23 Thread Lucas De Marchi
In intel_package_header version 2 there's a new field in the fw_info table that must be 0, otherwise it's not the correct DMC firmware. Add a check for version 2 or later. Signed-off-by: Lucas De Marchi --- drivers/gpu/drm/i915/intel_csr.c | 14 +++--- 1 file changed, 11 insertions(+), 3