Re: [PATCH v4 5/7] drm/simpledrm: Preallocate format-conversion buffer in atomic_check

2023-10-09 Thread Javier Martinez Canillas
Thomas Zimmermann writes: Hello Thomas, > Hi Javier > > Am 09.10.23 um 10:58 schrieb Javier Martinez Canillas: >> Thomas Zimmermann writes: >> >> Hello Thomas, >> >>> Hi Javier >>> >>> Am 05.10.23 um 15:38 schrieb Javier Martinez Canillas: Thomas Zimmermann writes: >> >> [...] >>

Re: [PATCH v4 5/7] drm/simpledrm: Preallocate format-conversion buffer in atomic_check

2023-10-09 Thread Thomas Zimmermann
Hi Javier Am 09.10.23 um 10:58 schrieb Javier Martinez Canillas: Thomas Zimmermann writes: Hello Thomas, Hi Javier Am 05.10.23 um 15:38 schrieb Javier Martinez Canillas: Thomas Zimmermann writes: [...] +static int simpledrm_primary_plane_helper_atomic_check(struct drm_plane *plane, +

Re: [PATCH v4 5/7] drm/simpledrm: Preallocate format-conversion buffer in atomic_check

2023-10-09 Thread Javier Martinez Canillas
Thomas Zimmermann writes: Hello Thomas, > Hi Javier > > Am 05.10.23 um 15:38 schrieb Javier Martinez Canillas: >> Thomas Zimmermann writes: [...] >>> +static int simpledrm_primary_plane_helper_atomic_check(struct drm_plane >>> *plane, >>> + st

Re: [PATCH v4 5/7] drm/simpledrm: Preallocate format-conversion buffer in atomic_check

2023-10-09 Thread Thomas Zimmermann
Hi Javier Am 05.10.23 um 15:38 schrieb Javier Martinez Canillas: Thomas Zimmermann writes: Hello Thomas, Preallocate the format-conversion state's storage in the plane's atomic_check function if a format conversion is necessary. Allows the update to fail if no memory is available. Avoids the

Re: [PATCH v4 5/7] drm/simpledrm: Preallocate format-conversion buffer in atomic_check

2023-10-05 Thread Javier Martinez Canillas
Thomas Zimmermann writes: Hello Thomas, > Preallocate the format-conversion state's storage in the plane's > atomic_check function if a format conversion is necessary. Allows > the update to fail if no memory is available. Avoids the same > allocation within atomic_update, which may not fail. >

[PATCH v4 5/7] drm/simpledrm: Preallocate format-conversion buffer in atomic_check

2023-10-05 Thread Thomas Zimmermann
Preallocate the format-conversion state's storage in the plane's atomic_check function if a format conversion is necessary. Allows the update to fail if no memory is available. Avoids the same allocation within atomic_update, which may not fail. Also inline drm_plane_helper_atomic_check() into the