Re: [Freedreno] [PATCH 1/9] drm/amd/pm: Annotate struct smu10_voltage_dependency_table with __counted_by

2023-09-23 Thread Gustavo A. R. Silva
On 9/22/23 11:32, Kees Cook wrote: Prepare for the coming implementation by GCC and Clang of the __counted_by attribute. Flexible array members annotated with __counted_by can have their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS (for array indexing) and CONFIG_FORTIF

Re: [Freedreno] [PATCH 8/9] drm/vmwgfx: Annotate struct vmw_surface_dirty with __counted_by

2023-09-23 Thread Gustavo A. R. Silva
On 9/22/23 11:32, Kees Cook wrote: Prepare for the coming implementation by GCC and Clang of the __counted_by attribute. Flexible array members annotated with __counted_by can have their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS (for array indexing) and CONFIG_FORTIF

Re: [Freedreno] [PATCH v3 1/7] drm/msm/dp: tie dp_display_irq_handler() with dp driver

2023-09-23 Thread Dmitry Baryshkov
On Sat, 23 Sept 2023 at 02:03, Kuogee Hsieh wrote: > > > On 9/15/2023 5:29 PM, Dmitry Baryshkov wrote: > > On Sat, 16 Sept 2023 at 00:38, Kuogee Hsieh wrote: > >> Currently the dp_display_irq_handler() is executed at msm_dp_modeset_init() > >> which ties irq registration to the DPU device's life

[Freedreno] [RFC PATCH 0/3] drm/msm/dpu: convert even more MDP5 platforms

2023-09-23 Thread Dmitry Baryshkov
Extend DPU driver with experimental support for even more MDP5 platforms: MSM8937, MSM8917, MSM8953. As with other MDP5 devices, one has to pass `msm.prefer_mdp5=false` kernel param to test DPU driver insead of using MDP5. Dependencies: [1] [1] https://patchwork.freedesktop.org/series/123294/ D

[Freedreno] [RFC PATCH 3/3] drm/msm/dpu: add support for MSM8917

2023-09-23 Thread Dmitry Baryshkov
Experimental support for MSM8917, which has MDP5 v1.15. It looks like trimmed down version of MSM8937. Even fewer PP, LM and no DSI1. Signed-off-by: Dmitry Baryshkov --- .../msm/disp/dpu1/catalog/dpu_1_15_msm8917.h | 190 ++ .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c| 1 +

[Freedreno] [RFC PATCH 1/3] drm/msm/dpu: add support for MSM8953

2023-09-23 Thread Dmitry Baryshkov
Experimental support for MSM8953, which has MDP5 v1.16. It looks like trimmed down version of MSM8996. Less SSPP, LM and PP blocks. No DSC, etc. Signed-off-by: Dmitry Baryshkov --- .../msm/disp/dpu1/catalog/dpu_1_16_msm8953.h | 221 ++ .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c

[Freedreno] [RFC PATCH 2/3] drm/msm/dpu: add support for MSM8937

2023-09-23 Thread Dmitry Baryshkov
Experimental support for MSM8937, which has MDP5 v1.14. It looks like trimmed down version of MSM8996. Less SSPP, LM and PP blocks. No DSC, etc. Signed-off-by: Dmitry Baryshkov --- .../msm/disp/dpu1/catalog/dpu_1_14_msm8937.h | 213 ++ .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c

Re: [Freedreno] [PATCH 7/9] drm/virtio: Annotate struct virtio_gpu_object_array with __counted_by

2023-09-23 Thread Gustavo A. R. Silva
On 9/22/23 11:32, Kees Cook wrote: Prepare for the coming implementation by GCC and Clang of the __counted_by attribute. Flexible array members annotated with __counted_by can have their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS (for array indexing) and CONFIG_FORTIF