1- From git@z Thu Jan 1 00:00:00 1970
2- Subject: [PATCH] media: mediatek: vcodec: mark
3- vdec_vp9_slice_map_counts_eob_coef noinline
1+ From 8b55f8818900c99dd4f55a59a103f5b29e41eb2c Mon Sep 17 00:00:00 2001
42From: Arnd Bergmann <
[email protected] >
53Date: Fri, 18 Oct 2024 15:14:42 +0000
6- 7- MIME-Version: 1.0
8- Content-Type: text/plain; charset="utf-8"
9- Content-Transfer-Encoding: 7bit
4+ Subject: media: mediatek: vcodec: mark vdec_vp9_slice_map_counts_eob_coef
5+ noinline
106
117With KASAN enabled, clang fails to optimize the inline version of
128vdec_vp9_slice_map_counts_eob_coef() properly, leading to kilobytes
@@ -22,20 +18,19 @@ the problem completely.
2218
2319Signed-off-by: Arnd Bergmann <
[email protected] >
2420Reviewed-by: Nathan Chancellor <
[email protected] >
25- Link: https://lore.kernel.org/r/
[email protected] 21+ Signed-off-by: Sebastian Fricke <
[email protected] >
22+ Signed-off-by: Mauro Carvalho Chehab <
[email protected] >
2623---
27- I have not come to a conclusion on how exactly clang fails to do this
28- right, but can provide the .config and/or preprocessed source files
29- and command line if we think this should be fixed in clang.
24+ Link: https://git.linuxtv.org/media.git/commit/?id=8b55f8818900c99dd4f55a59a103f5b29e41eb2c
3025---
31- .../mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c | 3 ++-
26+ .../media/platform/ mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c | 3 ++-
3227 1 file changed, 2 insertions(+), 1 deletion(-)
3328
3429diff --git a/drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c b/drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
3530index eea709d93820..47c302745c1d 100644
3631--- a/drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
3732+++ b/drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_vp9_req_lat_if.c
38- @@ -1188,7 +1188,8 @@ static int vdec_vp9_slice_setup_lat(struct vdec_vp9_slice_instance *instance,
33+ @@ -1188,7 +1188,8 @@ err:
3934 return ret;
4035 }
4136
@@ -46,5 +41,5 @@ index eea709d93820..47c302745c1d 100644
4641 struct vdec_vp9_slice_frame_counts *counts,
4742 struct v4l2_vp9_frame_symbol_counts *counts_helper)
4843- -
49- 2.39.5
44+ cgit v1.2.3
5045
0 commit comments