Re: [Intel-gfx] [PATCH v3 02/22] drm/i915/bios: Make copies of VBT data blocks

2022-04-07 Thread Ville Syrjälä
On Thu, Apr 07, 2022 at 03:06:04PM +0300, Jani Nikula wrote: > On Thu, 07 Apr 2022, Ville Syrjälä wrote: > > On Thu, Apr 07, 2022 at 01:23:38PM +0300, Jani Nikula wrote: > >> On Wed, 06 Apr 2022, Ville Syrjala wrote: > >> > From: Ville Syrjälä > >> > > >> > Make a copy of each VB data block

Re: [Intel-gfx] [PATCH v3 02/22] drm/i915/bios: Make copies of VBT data blocks

2022-04-07 Thread Jani Nikula
On Thu, 07 Apr 2022, Ville Syrjälä wrote: > On Thu, Apr 07, 2022 at 01:23:38PM +0300, Jani Nikula wrote: >> On Wed, 06 Apr 2022, Ville Syrjala wrote: >> > From: Ville Syrjälä >> > >> > Make a copy of each VB data block with a guaranteed minimum >> > size. The extra (if any) will just be left

Re: [Intel-gfx] [PATCH v3 02/22] drm/i915/bios: Make copies of VBT data blocks

2022-04-07 Thread Ville Syrjälä
On Thu, Apr 07, 2022 at 01:23:38PM +0300, Jani Nikula wrote: > On Wed, 06 Apr 2022, Ville Syrjala wrote: > > From: Ville Syrjälä > > > > Make a copy of each VB data block with a guaranteed minimum > > size. The extra (if any) will just be left zeroed. > > > > This means we don't have to worry

Re: [Intel-gfx] [PATCH v3 02/22] drm/i915/bios: Make copies of VBT data blocks

2022-04-07 Thread Jani Nikula
On Wed, 06 Apr 2022, Ville Syrjala wrote: > From: Ville Syrjälä > > Make a copy of each VB data block with a guaranteed minimum > size. The extra (if any) will just be left zeroed. > > This means we don't have to worry about going out of bounds > when accessing any of the structure members.

[Intel-gfx] [PATCH v3 02/22] drm/i915/bios: Make copies of VBT data blocks

2022-04-06 Thread Ville Syrjala
From: Ville Syrjälä Make a copy of each VB data block with a guaranteed minimum size. The extra (if any) will just be left zeroed. This means we don't have to worry about going out of bounds when accessing any of the structure members. Otherwise that could easliy happen if we simply get the