[Intel-gfx] [PATCH v2 06/17] drm/display/dp_mst: Sanitize payload iteration in drm_dp_mst_dump_topology()

2023-01-31 Thread Imre Deak
Simplify the loop iterating the payloads by using a helper to get a payload by its VCPI (keeping the list VCPI sorted). This also removes the assumption that the biggest VCPI matches the number of payloads (even though this holds now). Suggested-by: Ville Syrjälä Cc: Lyude Paul Cc: Ville Syrjälä

Re: [Intel-gfx] [PATCH v2 06/17] drm/display/dp_mst: Sanitize payload iteration in drm_dp_mst_dump_topology()

2023-01-31 Thread Lyude Paul
On Tue, 2023-01-31 at 17:05 +0200, Imre Deak wrote: > Simplify the loop iterating the payloads by using a helper to get a > payload by its VCPI (keeping the list VCPI sorted). This also removes > the assumption that the biggest VCPI matches the number of payloads > (even though this holds now). >

Re: [Intel-gfx] [PATCH v2 06/17] drm/display/dp_mst: Sanitize payload iteration in drm_dp_mst_dump_topology()

2023-02-03 Thread Ville Syrjälä
On Tue, Jan 31, 2023 at 05:05:37PM +0200, Imre Deak wrote: > Simplify the loop iterating the payloads by using a helper to get a > payload by its VCPI (keeping the list VCPI sorted). This also removes > the assumption that the biggest VCPI matches the number of payloads > (even though this holds no

Re: [Intel-gfx] [PATCH v2 06/17] drm/display/dp_mst: Sanitize payload iteration in drm_dp_mst_dump_topology()

2023-02-03 Thread Imre Deak
On Fri, Feb 03, 2023 at 02:22:44PM +0200, Ville Syrjälä wrote: > On Tue, Jan 31, 2023 at 05:05:37PM +0200, Imre Deak wrote: > > Simplify the loop iterating the payloads by using a helper to get a > > payload by its VCPI (keeping the list VCPI sorted). This also removes > > the assumption that the b