diff options
Diffstat (limited to 'meta-ti-bsp/recipes-kernel')
35 files changed, 317 insertions, 400 deletions
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch b/meta-ti-bsp/recipes-kernel/linux/files/0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch new file mode 100644 index 00000000..56a06e01 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/files/0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch | |||
@@ -0,0 +1,55 @@ | |||
1 | From 2c78d22a78584f2a17eb33b5b5fd6fa602c2af8d Mon Sep 17 00:00:00 2001 | ||
2 | From: Ryan Eatmon <reatmon@ti.com> | ||
3 | Date: Wed, 17 Jul 2024 16:19:20 -0500 | ||
4 | Subject: [PATCH] drivers: gpu: drm: msm: registers: improve reproducibility | ||
5 | |||
6 | The files generated by gen_header.py capture the source path to the | ||
7 | input files and the date. While that can be informative, it varies | ||
8 | based on where and when the kernel was built as the full path is | ||
9 | captured. | ||
10 | |||
11 | Since all of the files that this tool is run on is under the drivers | ||
12 | directory, this modifies the application to strip all of the path before | ||
13 | drivers. Additionally it prints <stripped> instead of the date. | ||
14 | |||
15 | Both changes solve the reproducibility issue. | ||
16 | |||
17 | Upstream-Status: Inappropriate | ||
18 | |||
19 | Signed-off-by: Ryan Eatmon <reatmon@ti.com> | ||
20 | --- | ||
21 | drivers/gpu/drm/msm/registers/gen_header.py | 8 +++++--- | ||
22 | 1 file changed, 5 insertions(+), 3 deletions(-) | ||
23 | |||
24 | diff --git a/drivers/gpu/drm/msm/registers/gen_header.py b/drivers/gpu/drm/msm/registers/gen_header.py | ||
25 | index 3926485bb197..a409404627c7 100644 | ||
26 | --- a/drivers/gpu/drm/msm/registers/gen_header.py | ||
27 | +++ b/drivers/gpu/drm/msm/registers/gen_header.py | ||
28 | @@ -11,6 +11,7 @@ import collections | ||
29 | import argparse | ||
30 | import time | ||
31 | import datetime | ||
32 | +import re | ||
33 | |||
34 | class Error(Exception): | ||
35 | def __init__(self, message): | ||
36 | @@ -877,13 +878,14 @@ The rules-ng-ng source files this header was generated from are: | ||
37 | """) | ||
38 | maxlen = 0 | ||
39 | for filepath in p.xml_files: | ||
40 | - maxlen = max(maxlen, len(filepath)) | ||
41 | + new_filepath = re.sub("^.+drivers","drivers",filepath) | ||
42 | + maxlen = max(maxlen, len(new_filepath)) | ||
43 | for filepath in p.xml_files: | ||
44 | - pad = " " * (maxlen - len(filepath)) | ||
45 | + pad = " " * (maxlen - len(new_filepath)) | ||
46 | filesize = str(os.path.getsize(filepath)) | ||
47 | filesize = " " * (7 - len(filesize)) + filesize | ||
48 | filetime = time.ctime(os.path.getmtime(filepath)) | ||
49 | - print("- " + filepath + pad + " (" + filesize + " bytes, from " + filetime + ")") | ||
50 | + print("- " + new_filepath + pad + " (" + filesize + " bytes, from <stripped>)") | ||
51 | if p.copyright_year: | ||
52 | current_year = str(datetime.date.today().year) | ||
53 | print() | ||
54 | -- | ||
55 | 2.17.1 | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/0001-gcc-plugins-Fix-build-for-upcoming-GCC-release.patch b/meta-ti-bsp/recipes-kernel/linux/files/0001-gcc-plugins-Fix-build-for-upcoming-GCC-release.patch deleted file mode 100644 index 3dfa31a1..00000000 --- a/meta-ti-bsp/recipes-kernel/linux/files/0001-gcc-plugins-Fix-build-for-upcoming-GCC-release.patch +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | From 3cd29a3d7c25cca9989e7d8966141f725fa99c68 Mon Sep 17 00:00:00 2001 | ||
2 | From: Palmer Dabbelt <palmer@rivosinc.com> | ||
3 | Date: Fri, 13 Jan 2023 09:30:33 -0800 | ||
4 | Subject: [PATCH] gcc-plugins: Fix build for upcoming GCC release | ||
5 | |||
6 | The upcoming GCC release has refactored the gimple plugin interface a | ||
7 | bit and unless gimple-iterator.h is included before gimple-fold.h I end | ||
8 | up with a bunch of missing declarations when building the stack | ||
9 | protector plugin. | ||
10 | |||
11 | Upstream-Status: Backport [https://lore.kernel.org/all/20230113173033.4380-1-palmer@rivosinc.com/] | ||
12 | Reported-by: Palmer Dabbelt <palmer@rivosinc.com> | ||
13 | Acked-by: Palmer Dabbelt <palmer@rivosinc.com> | ||
14 | Link: https://lore.kernel.org/all/20230113173033.4380-1-palmer@rivosinc.com/ | ||
15 | Cc: linux-hardening@vger.kernel.org | ||
16 | Signed-off-by: Kees Cook <keescook@chromium.org> | ||
17 | --- | ||
18 | scripts/gcc-plugins/gcc-common.h | 2 +- | ||
19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
20 | |||
21 | --- a/scripts/gcc-plugins/gcc-common.h | ||
22 | +++ b/scripts/gcc-plugins/gcc-common.h | ||
23 | @@ -108,7 +108,9 @@ | ||
24 | #include "varasm.h" | ||
25 | #include "stor-layout.h" | ||
26 | #include "internal-fn.h" | ||
27 | +#include "gimple.h" | ||
28 | #include "gimple-expr.h" | ||
29 | +#include "gimple-iterator.h" | ||
30 | #include "gimple-fold.h" | ||
31 | #include "context.h" | ||
32 | #include "tree-ssa-alias.h" | ||
33 | @@ -124,13 +126,10 @@ | ||
34 | #include "gimplify.h" | ||
35 | #endif | ||
36 | |||
37 | -#include "gimple.h" | ||
38 | - | ||
39 | #if BUILDING_GCC_VERSION >= 4009 | ||
40 | #include "tree-ssa-operands.h" | ||
41 | #include "tree-phinodes.h" | ||
42 | #include "tree-cfg.h" | ||
43 | -#include "gimple-iterator.h" | ||
44 | #include "gimple-ssa.h" | ||
45 | #include "ssa-iterators.h" | ||
46 | #endif | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/0001-perf-python-Fix-compile-for-32bit-platforms.patch b/meta-ti-bsp/recipes-kernel/linux/files/0001-perf-python-Fix-compile-for-32bit-platforms.patch new file mode 100644 index 00000000..12e12c68 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/files/0001-perf-python-Fix-compile-for-32bit-platforms.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From a51ebf08cec81d84ac258da1c0ead139d6ddc94f Mon Sep 17 00:00:00 2001 | ||
2 | From: Ryan Eatmon <reatmon@ti.com> | ||
3 | Date: Tue, 2 Jul 2024 11:07:14 -0500 | ||
4 | Subject: [master][PATCH] perf python: Fix compile for 32bit platforms | ||
5 | |||
6 | The definition for perf_sample is missing on 32bit compiles: | ||
7 | |||
8 | tools/perf/util/python.c:75:28: error: field 'sample' has incomplete type | ||
9 | 75 | struct perf_sample sample; | ||
10 | |||
11 | Adding #include "sample.h" fixes it. | ||
12 | |||
13 | Upstream-Status: Inappropriate | ||
14 | |||
15 | Signed-off-by: Ryan Eatmon <reatmon@ti.com> | ||
16 | --- | ||
17 | tools/perf/util/python.c | 2 ++ | ||
18 | 1 file changed, 2 insertions(+) | ||
19 | |||
20 | diff --git a/tools/perf/util/python.c b/tools/perf/util/python.c | ||
21 | index 3be882b2e845..de64ca3cf2d1 100644 | ||
22 | --- a/tools/perf/util/python.c | ||
23 | +++ b/tools/perf/util/python.c | ||
24 | @@ -1,3 +1,5 @@ | ||
25 | +#include "sample.h" | ||
26 | + | ||
27 | // SPDX-License-Identifier: GPL-2.0 | ||
28 | #include <Python.h> | ||
29 | #include <structmember.h> | ||
30 | -- | ||
31 | 2.17.1 | ||
32 | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/0001-vt-conmakehash-improve-reproducibility-for-v6.10.patch b/meta-ti-bsp/recipes-kernel/linux/files/0001-vt-conmakehash-improve-reproducibility-for-v6.10.patch new file mode 100644 index 00000000..f9fdece8 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/files/0001-vt-conmakehash-improve-reproducibility-for-v6.10.patch | |||
@@ -0,0 +1,60 @@ | |||
1 | From 4907fa9ff1dbdd72ce9fa7855091fb604a35a62d Mon Sep 17 00:00:00 2001 | ||
2 | From: Ryan Eatmon <reatmon@ti.com> | ||
3 | Date: Wed, 17 Jul 2024 14:55:10 -0500 | ||
4 | Subject: [PATCH] vt/conmakehash: improve reproducibility for v6.10 | ||
5 | |||
6 | The file generated by conmakehash capture the application | ||
7 | path used to generate the file. While that can be informative, | ||
8 | it varies based on where the kernel was built, as the full | ||
9 | path is captured. | ||
10 | |||
11 | We tweak the application to use a second input as the "capture | ||
12 | name", and then modify the Makefile to pass the basename of | ||
13 | the source, making it reproducible. | ||
14 | |||
15 | This could be improved by using some sort of path mapping, | ||
16 | or the application manipualing argv[1] itself, but for now | ||
17 | this solves the reprodicibility issue. | ||
18 | |||
19 | Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> | ||
20 | |||
21 | Upstream-Status: Inappropriate | ||
22 | |||
23 | Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> | ||
24 | |||
25 | This is a minior rework of Bruce's original patch for the v6.10 kernel. | ||
26 | |||
27 | Signed-off-by: Ryan Eatmon <reatmon@ti.com> | ||
28 | --- | ||
29 | drivers/tty/vt/Makefile | 2 +- | ||
30 | drivers/tty/vt/conmakehash.c | 2 ++ | ||
31 | 2 files changed, 3 insertions(+), 1 deletion(-) | ||
32 | |||
33 | diff --git a/drivers/tty/vt/Makefile b/drivers/tty/vt/Makefile | ||
34 | index 2c8ce8b592ed..8532077ed3bb 100644 | ||
35 | --- a/drivers/tty/vt/Makefile | ||
36 | +++ b/drivers/tty/vt/Makefile | ||
37 | @@ -15,7 +15,7 @@ clean-files := consolemap_deftbl.c defkeymap.c | ||
38 | hostprogs += conmakehash | ||
39 | |||
40 | quiet_cmd_conmk = CONMK $@ | ||
41 | - cmd_conmk = $(obj)/conmakehash $< > $@ | ||
42 | + cmd_conmk = $(obj)/conmakehash $< $(shell basename $<) > $@ | ||
43 | |||
44 | $(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE) $(obj)/conmakehash | ||
45 | $(call cmd,conmk) | ||
46 | diff --git a/drivers/tty/vt/conmakehash.c b/drivers/tty/vt/conmakehash.c | ||
47 | index dc2177fec715..9cd4096a8ffa 100644 | ||
48 | --- a/drivers/tty/vt/conmakehash.c | ||
49 | +++ b/drivers/tty/vt/conmakehash.c | ||
50 | @@ -112,6 +112,8 @@ int main(int argc, char *argv[]) | ||
51 | else | ||
52 | rel_tblname = tblname; | ||
53 | |||
54 | + rel_tblname = argv[2]; | ||
55 | + | ||
56 | /* For now we assume the default font is always 256 characters. */ | ||
57 | fontlen = 256; | ||
58 | |||
59 | -- | ||
60 | 2.17.1 | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/0001-vt-conmakehash-improve-reproducibility.patch b/meta-ti-bsp/recipes-kernel/linux/files/0001-vt-conmakehash-improve-reproducibility.patch new file mode 100644 index 00000000..211460c1 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/files/0001-vt-conmakehash-improve-reproducibility.patch | |||
@@ -0,0 +1,56 @@ | |||
1 | From 0f586f4ee8adacac79b64d1f3d47799a5eb7fbea Mon Sep 17 00:00:00 2001 | ||
2 | From: Bruce Ashfield <bruce.ashfield@gmail.com> | ||
3 | Date: Sun, 10 Jul 2022 21:37:07 -0400 | ||
4 | Subject: [PATCH] vt/conmakehash: improve reproducibility | ||
5 | |||
6 | The file generated by conmakehash capture the application | ||
7 | path used to generate the file. While that can be informative, | ||
8 | it varies based on where the kernel was built, as the full | ||
9 | path is captured. | ||
10 | |||
11 | We tweak the application to use a second input as the "capture | ||
12 | name", and then modify the Makefile to pass the basename of | ||
13 | the source, making it reproducible. | ||
14 | |||
15 | This could be improved by using some sort of path mapping, | ||
16 | or the application manipualing argv[1] itself, but for now | ||
17 | this solves the reprodicibility issue. | ||
18 | |||
19 | Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> | ||
20 | |||
21 | Upstream-Status: Inappropriate | ||
22 | |||
23 | Signed-off-by: Denys Dmytriyenko <denys@konsulko.com> | ||
24 | --- | ||
25 | drivers/tty/vt/Makefile | 2 +- | ||
26 | drivers/tty/vt/conmakehash.c | 2 +- | ||
27 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
28 | |||
29 | diff --git a/drivers/tty/vt/Makefile b/drivers/tty/vt/Makefile | ||
30 | index fe30ce512819..cb51c21b58f9 100644 | ||
31 | --- a/drivers/tty/vt/Makefile | ||
32 | +++ b/drivers/tty/vt/Makefile | ||
33 | @@ -15,7 +15,7 @@ clean-files := consolemap_deftbl.c defkeymap.c | ||
34 | hostprogs += conmakehash | ||
35 | |||
36 | quiet_cmd_conmk = CONMK $@ | ||
37 | - cmd_conmk = $(obj)/conmakehash $< > $@ | ||
38 | + cmd_conmk = $(obj)/conmakehash $< $(shell basename $<) > $@ | ||
39 | |||
40 | $(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE) $(obj)/conmakehash | ||
41 | $(call cmd,conmk) | ||
42 | diff --git a/drivers/tty/vt/conmakehash.c b/drivers/tty/vt/conmakehash.c | ||
43 | index cddd789fe46e..d62510b280e9 100644 | ||
44 | --- a/drivers/tty/vt/conmakehash.c | ||
45 | +++ b/drivers/tty/vt/conmakehash.c | ||
46 | @@ -253,7 +253,7 @@ int main(int argc, char *argv[]) | ||
47 | #include <linux/types.h>\n\ | ||
48 | \n\ | ||
49 | u8 dfont_unicount[%d] = \n\ | ||
50 | -{\n\t", argv[1], fontlen); | ||
51 | +{\n\t", argv[2], fontlen); | ||
52 | |||
53 | for ( i = 0 ; i < fontlen ; i++ ) | ||
54 | { | ||
55 | -- | ||
56 | 2.25.1 | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/files/init_disassemble_info-signature-changes-causes-compile-failures.patch b/meta-ti-bsp/recipes-kernel/linux/files/init_disassemble_info-signature-changes-causes-compile-failures.patch deleted file mode 100644 index e1e04c34..00000000 --- a/meta-ti-bsp/recipes-kernel/linux/files/init_disassemble_info-signature-changes-causes-compile-failures.patch +++ /dev/null | |||
@@ -1,111 +0,0 @@ | |||
1 | |||
2 | Adaption of a patch [A] applied to meta-arm for the kernel. But since TI has it's own | ||
3 | kernel we have to "adjust" the patch to match our files. | ||
4 | |||
5 | [A] https://patchwork.yoctoproject.org/project/arm/patch/20220824025819.4888-1-jon.mason@arm.com/#5104 | ||
6 | |||
7 | Upstream-Status: Pending | ||
8 | |||
9 | Signed-off-by: Ryan Eatmon <reatmon@ti.com> | ||
10 | |||
11 | |||
12 | |||
13 | From 1b2013986271de39360cf79e62ed9b7d2cc59f9b Mon Sep 17 00:00:00 2001 | ||
14 | From: Andres Freund <andres@anarazel.de> | ||
15 | Date: Wed, 22 Jun 2022 11:19:18 -0700 | ||
16 | Subject: [PATCH] init_disassemble_info() signature changes causes compile | ||
17 | failures | ||
18 | MIME-Version: 1.0 | ||
19 | Content-Type: text/plain; charset=UTF-8 | ||
20 | Content-Transfer-Encoding: 8bit | ||
21 | |||
22 | Hi, | ||
23 | |||
24 | binutils changed the signature of init_disassemble_info(), which now causes | ||
25 | perf and bpftool to fail to compile (e.g. on debian unstable). | ||
26 | |||
27 | Relevant binutils commit: https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=60a3da00bd5407f07d64dff82a4dae98230dfaac | ||
28 | |||
29 | util/annotate.c: In function ?symbol__disassemble_bpf?: | ||
30 | util/annotate.c:1765:9: error: too few arguments to function ?init_disassemble_info? | ||
31 | 1765 | init_disassemble_info(&info, s, | ||
32 | | ^~~~~~~~~~~~~~~~~~~~~ | ||
33 | In file included from util/annotate.c:1718: | ||
34 | /usr/include/dis-asm.h:472:13: note: declared here | ||
35 | 472 | extern void init_disassemble_info (struct disassemble_info *dinfo, void *stream, | ||
36 | | ^~~~~~~~~~~~~~~~~~~~~ | ||
37 | |||
38 | with equivalent failures in | ||
39 | |||
40 | tools/bpf/bpf_jit_disasm.c | ||
41 | tools/bpf/bpftool/jit_disasm.c | ||
42 | |||
43 | The fix is easy enough, add a wrapper around fprintf() that conforms to the | ||
44 | new signature. | ||
45 | |||
46 | However I assume the necessary feature test and wrapper should only be added | ||
47 | once? I don't know the kernel stuff well enough to choose the right structure | ||
48 | here. | ||
49 | |||
50 | Attached is my local fix for perf. Obviously would need work to be a real | ||
51 | solution. | ||
52 | |||
53 | Greetings, | ||
54 | |||
55 | Andres Freund | ||
56 | --- | ||
57 | |||
58 | binutils 2.39 changed the signature of init_disassemble_info(), | ||
59 | which now causes perf and bpftool to fail to compile. | ||
60 | |||
61 | Relevant binutils commit: [1] | ||
62 | |||
63 | There is a proper fix in development upstream[2]. | ||
64 | This is a work-around for older kernels. | ||
65 | |||
66 | [1] https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=60a3da00bd5407f07d64dff82a4dae98230dfaac | ||
67 | [2] https://patchwork.kernel.org/project/netdevbpf/cover/20220801013834.156015-1-andres@anarazel.de/ | ||
68 | |||
69 | Upstream-Status: Pending | ||
70 | Signed-off-by: Anton Antonov <Anton.Antonov@arm.com> | ||
71 | |||
72 | |||
73 | tools/perf/util/annotate.c | 15 ++++++++++++++- | ||
74 | 1 file changed, 14 insertions(+), 1 deletion(-) | ||
75 | |||
76 | diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c | ||
77 | index 308189454788..6573d2b07548 100644 | ||
78 | --- a/tools/perf/util/annotate.c | ||
79 | +++ b/tools/perf/util/annotate.c | ||
80 | @@ -1685,6 +1685,18 @@ | ||
81 | #include <bfd.h> | ||
82 | #include <dis-asm.h> | ||
83 | |||
84 | +static int fprintf_styled(void *, enum disassembler_style, const char* fmt, ...) | ||
85 | +{ | ||
86 | + va_list args; | ||
87 | + int r; | ||
88 | + | ||
89 | + va_start(args, fmt); | ||
90 | + r = vprintf(fmt, args); | ||
91 | + va_end(args); | ||
92 | + | ||
93 | + return r; | ||
94 | +} | ||
95 | + | ||
96 | static int symbol__disassemble_bpf(struct symbol *sym, | ||
97 | struct annotate_args *args) | ||
98 | { | ||
99 | @@ -1727,7 +1739,8 @@ static int symbol__disassemble_bpf(struct symbol *sym, | ||
100 | goto out; | ||
101 | } | ||
102 | init_disassemble_info(&info, s, | ||
103 | - (fprintf_ftype) fprintf); | ||
104 | + (fprintf_ftype) fprintf, | ||
105 | + fprintf_styled); | ||
106 | |||
107 | info.arch = bfd_get_arch(bfdf); | ||
108 | info.mach = bfd_get_mach(bfdf); | ||
109 | -- | ||
110 | 2.17.1 | ||
111 | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-bb.org/0001-blk-iocost-avoid-64-bit-division-in-ioc_timer_fn.patch b/meta-ti-bsp/recipes-kernel/linux/linux-bb.org/0001-blk-iocost-avoid-64-bit-division-in-ioc_timer_fn.patch deleted file mode 100644 index a7806c22..00000000 --- a/meta-ti-bsp/recipes-kernel/linux/linux-bb.org/0001-blk-iocost-avoid-64-bit-division-in-ioc_timer_fn.patch +++ /dev/null | |||
@@ -1,56 +0,0 @@ | |||
1 | From 5f2779dfa7b8cc7dfd4a1b6586d86e0d193266f3 Mon Sep 17 00:00:00 2001 | ||
2 | From: Arnd Bergmann <arnd@arndb.de> | ||
3 | Date: Wed, 18 Jan 2023 09:07:01 +0100 | ||
4 | Subject: [PATCH] blk-iocost: avoid 64-bit division in ioc_timer_fn | ||
5 | |||
6 | The behavior of 'enum' types has changed in gcc-13, so now the | ||
7 | UNBUSY_THR_PCT constant is interpreted as a 64-bit number because | ||
8 | it is defined as part of the same enum definition as some other | ||
9 | constants that do not fit within a 32-bit integer. This in turn | ||
10 | leads to some inefficient code on 32-bit architectures as well | ||
11 | as a link error: | ||
12 | |||
13 | arm-linux-gnueabi/bin/arm-linux-gnueabi-ld: block/blk-iocost.o: in function `ioc_timer_fn': | ||
14 | blk-iocost.c:(.text+0x68e8): undefined reference to `__aeabi_uldivmod' | ||
15 | arm-linux-gnueabi-ld: blk-iocost.c:(.text+0x6908): undefined reference to `__aeabi_uldivmod' | ||
16 | |||
17 | Split the enum definition to keep the 64-bit timing constants in | ||
18 | a separate enum type from those constants that can clearly fit | ||
19 | within a smaller type. | ||
20 | |||
21 | Signed-off-by: Arnd Bergmann <arnd@arndb.de> | ||
22 | Acked-by: Tejun Heo <tj@kernel.org> | ||
23 | Link: https://lore.kernel.org/r/20230118080706.3303186-1-arnd@kernel.org | ||
24 | Signed-off-by: Jens Axboe <axboe@kernel.dk> | ||
25 | --- | ||
26 | block/blk-iocost.c | 8 +++++--- | ||
27 | 1 file changed, 5 insertions(+), 3 deletions(-) | ||
28 | |||
29 | diff --git a/block/blk-iocost.c b/block/blk-iocost.c | ||
30 | index 6955605629e4..b691b6bb498f 100644 | ||
31 | --- a/block/blk-iocost.c | ||
32 | +++ b/block/blk-iocost.c | ||
33 | @@ -258,6 +258,11 @@ enum { | ||
34 | VRATE_MIN = VTIME_PER_USEC * VRATE_MIN_PPM / MILLION, | ||
35 | VRATE_CLAMP_ADJ_PCT = 4, | ||
36 | |||
37 | + /* switch iff the conditions are met for longer than this */ | ||
38 | + AUTOP_CYCLE_NSEC = 10LLU * NSEC_PER_SEC, | ||
39 | +}; | ||
40 | + | ||
41 | +enum { | ||
42 | /* if IOs end up waiting for requests, issue less */ | ||
43 | RQ_WAIT_BUSY_PCT = 5, | ||
44 | |||
45 | @@ -296,9 +301,6 @@ enum { | ||
46 | /* don't let cmds which take a very long time pin lagging for too long */ | ||
47 | MAX_LAGGING_PERIODS = 10, | ||
48 | |||
49 | - /* switch iff the conditions are met for longer than this */ | ||
50 | - AUTOP_CYCLE_NSEC = 10LLU * NSEC_PER_SEC, | ||
51 | - | ||
52 | /* | ||
53 | * Count IO size in 4k pages. The 12bit shift helps keeping | ||
54 | * size-proportional components of cost calculation in closer | ||
55 | -- | ||
56 | 2.40.1 | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-bb.org/0001-block-blk-iocost-gcc13-keep-large-values-in-a-new-en.patch b/meta-ti-bsp/recipes-kernel/linux/linux-bb.org/0001-block-blk-iocost-gcc13-keep-large-values-in-a-new-en.patch deleted file mode 100644 index f5d0f476..00000000 --- a/meta-ti-bsp/recipes-kernel/linux/linux-bb.org/0001-block-blk-iocost-gcc13-keep-large-values-in-a-new-en.patch +++ /dev/null | |||
@@ -1,54 +0,0 @@ | |||
1 | From ff1cc97b1f4c10db224f276d9615b22835b8c424 Mon Sep 17 00:00:00 2001 | ||
2 | From: "Jiri Slaby (SUSE)" <jirislaby@kernel.org> | ||
3 | Date: Tue, 13 Dec 2022 13:08:26 +0100 | ||
4 | Subject: [PATCH] block/blk-iocost (gcc13): keep large values in a new enum | ||
5 | |||
6 | Since gcc13, each member of an enum has the same type as the enum [1]. And | ||
7 | that is inherited from its members. Provided: | ||
8 | VTIME_PER_SEC_SHIFT = 37, | ||
9 | VTIME_PER_SEC = 1LLU << VTIME_PER_SEC_SHIFT, | ||
10 | ... | ||
11 | AUTOP_CYCLE_NSEC = 10LLU * NSEC_PER_SEC, | ||
12 | the named type is unsigned long. | ||
13 | |||
14 | This generates warnings with gcc-13: | ||
15 | block/blk-iocost.c: In function 'ioc_weight_prfill': | ||
16 | block/blk-iocost.c:3037:37: error: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' | ||
17 | |||
18 | block/blk-iocost.c: In function 'ioc_weight_show': | ||
19 | block/blk-iocost.c:3047:34: error: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' | ||
20 | |||
21 | So split the anonymous enum with large values to a separate enum, so | ||
22 | that they don't affect other members. | ||
23 | |||
24 | [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36113 | ||
25 | |||
26 | Cc: Martin Liska <mliska@suse.cz> | ||
27 | Cc: Tejun Heo <tj@kernel.org> | ||
28 | Cc: Josef Bacik <josef@toxicpanda.com> | ||
29 | Cc: Jens Axboe <axboe@kernel.dk> | ||
30 | Cc: cgroups@vger.kernel.org | ||
31 | Cc: linux-block@vger.kernel.org | ||
32 | Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org> | ||
33 | Link: https://lore.kernel.org/r/20221213120826.17446-1-jirislaby@kernel.org | ||
34 | Signed-off-by: Jens Axboe <axboe@kernel.dk> | ||
35 | --- | ||
36 | block/blk-iocost.c | 2 ++ | ||
37 | 1 file changed, 2 insertions(+) | ||
38 | |||
39 | diff --git a/block/blk-iocost.c b/block/blk-iocost.c | ||
40 | index d1bdc12deaa7..549ddc9e0c6f 100644 | ||
41 | --- a/block/blk-iocost.c | ||
42 | +++ b/block/blk-iocost.c | ||
43 | @@ -232,7 +232,9 @@ enum { | ||
44 | |||
45 | /* 1/64k is granular enough and can easily be handled w/ u32 */ | ||
46 | WEIGHT_ONE = 1 << 16, | ||
47 | +}; | ||
48 | |||
49 | +enum { | ||
50 | /* | ||
51 | * As vtime is used to calculate the cost of each IO, it needs to | ||
52 | * be fairly high precision. For example, it should be able to | ||
53 | -- | ||
54 | 2.40.1 | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-bb.org/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-bb.org/defconfig deleted file mode 100644 index a5de2e24..00000000 --- a/meta-ti-bsp/recipes-kernel/linux/linux-bb.org/defconfig +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | use-kernel-config=bb.org_defconfig | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb b/meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb deleted file mode 100644 index 144028e5..00000000 --- a/meta-ti-bsp/recipes-kernel/linux/linux-bb.org_git.bb +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | SECTION = "kernel" | ||
2 | SUMMARY = "BeagleBoard.org Linux kernel" | ||
3 | LICENSE = "GPL-2.0-only" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | ||
5 | |||
6 | COMPATIBLE_MACHINE = "beagle.*" | ||
7 | |||
8 | inherit kernel | ||
9 | |||
10 | require recipes-kernel/linux/setup-defconfig.inc | ||
11 | require recipes-kernel/linux/ti-kernel.inc | ||
12 | |||
13 | # BB.org hasn't switched to "vendored" DTB layout by default yet | ||
14 | KERNEL_DTBVENDORED = "0" | ||
15 | |||
16 | DEPENDS += "gmp-native libmpc-native" | ||
17 | |||
18 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} ${EXTRA_DTC_ARGS}" | ||
19 | |||
20 | S = "${WORKDIR}/git" | ||
21 | |||
22 | # 6.1.69 version for 32-bit | ||
23 | SRCREV:armv7a = "a1f26a19581970f76220c68c438981796ce5b767" | ||
24 | PV:armv7a = "6.1.69+git" | ||
25 | BRANCH:armv7a = "v6.1.69-ti-r22" | ||
26 | |||
27 | # 6.1.69 version for 64-bit | ||
28 | SRCREV:aarch64 = "bc76b5d278271f66a6faeb2d09cb09fc6c57dd3c" | ||
29 | PV:aarch64 = "6.1.69+git" | ||
30 | BRANCH:aarch64 = "v6.1.69-ti-arm64-r24" | ||
31 | |||
32 | SRC_URI = " \ | ||
33 | git://github.com/beagleboard/linux.git;protocol=https;branch=${BRANCH} \ | ||
34 | file://defconfig \ | ||
35 | " | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb index 5c495d46..388110ad 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-mainline_git.bb | |||
@@ -3,40 +3,31 @@ SUMMARY = "Mainline Linux kernel for TI devices" | |||
3 | LICENSE = "GPL-2.0-only" | 3 | LICENSE = "GPL-2.0-only" |
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" |
5 | 5 | ||
6 | inherit kernel | 6 | inherit kernel_deprecated |
7 | 7 | ||
8 | require recipes-kernel/linux/ti-kernel.inc | 8 | require recipes-kernel/linux/ti-kernel.inc |
9 | 9 | ||
10 | DEPENDS += "gmp-native libmpc-native" | 10 | DEPENDS += "gmp-native libmpc-native" |
11 | 11 | ||
12 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \ | 12 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} ${EXTRA_DTC_ARGS}" |
13 | ${EXTRA_DTC_ARGS}" | ||
14 | 13 | ||
15 | S = "${WORKDIR}/git" | 14 | S = "${UNPACKDIR}/${BB_GIT_DEFAULT_DESTSUFFIX}" |
16 | 15 | ||
17 | # 6.6 Mainline version | 16 | # 6.12 Mainline version |
18 | SRCREV = "ffc253263a1375a65fa6c9f62a893e9767fbebfa" | 17 | SRCREV = "adc218676eef25575469234709c2d87185ca223a" |
19 | PV = "6.6+git" | 18 | PV = "6.12" |
20 | |||
21 | # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild | ||
22 | MACHINE_KERNEL_PR:append = "b" | ||
23 | PR = "${MACHINE_KERNEL_PR}" | ||
24 | 19 | ||
25 | KERNEL_GIT_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git" | 20 | KERNEL_GIT_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git" |
26 | KERNEL_GIT_PROTOCOL = "https" | 21 | BRANCH = "master" |
27 | KERNEL_GIT_BRANCH = "master" | 22 | |
28 | SRC_URI += " \ | 23 | KERNEL_DEFCONFIG = "" |
29 | ${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${KERNEL_GIT_BRANCH} \ | 24 | |
25 | KERNEL_REPRODUCIBILITY_PATCHES = " \ | ||
26 | file://0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch \ | ||
27 | file://0001-perf-python-Fix-compile-for-32bit-platforms.patch \ | ||
30 | " | 28 | " |
31 | 29 | ||
32 | DEFCONFIG_NAME = "multi_v7_defconfig" | 30 | DEFCONFIG_NAME = "multi_v7_defconfig" |
33 | DEFCONFIG_NAME:omapl138 = "davinci_all_defconfig" | 31 | DEFCONFIG_NAME:omapl138 = "davinci_all_defconfig" |
34 | DEFCONFIG_NAME:k3 = "defconfig" | 32 | DEFCONFIG_NAME:k3 = "defconfig" |
35 | KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} O=${B} ${DEFCONFIG_NAME}" | 33 | KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} O=${B} ${DEFCONFIG_NAME}" |
36 | |||
37 | do_shared_workdir:prepend() { | ||
38 | cd ${B} | ||
39 | echo >> Module.symvers | ||
40 | } | ||
41 | |||
42 | FILES:${KERNEL_PACKAGE_NAME}-devicetree += "/${KERNEL_IMAGEDEST}/*.itb" | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-next_git.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-next_git.bb index f1a14ab1..1feb7564 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-next_git.bb +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-next_git.bb | |||
@@ -1,26 +1,13 @@ | |||
1 | SECTION = "kernel" | 1 | require linux-ti-mainline_git.bb |
2 | SUMMARY = "Linux-next kernel for TI devices" | ||
3 | LICENSE = "GPL-2.0-only" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | ||
5 | 2 | ||
6 | inherit kernel | 3 | SUMMARY = "Linux-next kernel for TI devices" |
7 | 4 | ||
8 | require recipes-kernel/linux/ti-kernel.inc | ||
9 | include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if d.getVar('KERNEL_DEVICETREE_PREFIX') else ''} | 5 | include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if d.getVar('KERNEL_DEVICETREE_PREFIX') else ''} |
10 | 6 | ||
11 | DEPENDS += "gmp-native libmpc-native" | ||
12 | |||
13 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} ${EXTRA_DTC_ARGS}" | ||
14 | |||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | # 6.6.0-rc3+ version | 7 | # 6.6.0-rc3+ version |
18 | SRCREV = "6465e260f48790807eef06b583b38ca9789b6072" | 8 | SRCREV = "6465e260f48790807eef06b583b38ca9789b6072" |
19 | PV = "6.6.0-rc3+git" | 9 | PV = "6.6.0-rc3+git" |
20 | 10 | ||
21 | SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git;protocol=https;branch=master" | 11 | KERNEL_GIT_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git" |
22 | 12 | ||
23 | DEFCONFIG_NAME = "multi_v7_defconfig" | 13 | KERNEL_REPRODUCIBILITY_PATCHES = "" |
24 | DEFCONFIG_NAME:omapl138 = "davinci_all_defconfig" | ||
25 | DEFCONFIG_NAME:k3 = "defconfig" | ||
26 | KERNEL_CONFIG_COMMAND = "oe_runmake -C ${S} O=${B} ${DEFCONFIG_NAME}" | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.1/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/defconfig index 24b53cf7..24b53cf7 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.1/defconfig +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/defconfig | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.1/k3/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/k3/defconfig index ef1d3efd..ef1d3efd 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.1/k3/defconfig +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/k3/defconfig | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.1/omapl138/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/omapl138/defconfig index 099493af..099493af 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.1/omapl138/defconfig +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/omapl138/defconfig | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.6/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/ti33x/defconfig index 24b53cf7..24b53cf7 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.6/defconfig +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/ti33x/defconfig | |||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/ti43x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/ti43x/defconfig new file mode 100644 index 00000000..24b53cf7 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/ti43x/defconfig | |||
@@ -0,0 +1,2 @@ | |||
1 | use-kernel-config=multi_v7_defconfig | ||
2 | config-fragment=kernel/configs/ti_multi_v7_prune.config | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/defconfig new file mode 100644 index 00000000..43089dc8 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/defconfig | |||
@@ -0,0 +1,2 @@ | |||
1 | use-kernel-config=multi_v7_defconfig | ||
2 | config-fragment=kernel/configs/ti_multi_v7_prune.config kernel/configs/ti_rt.config | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/k3/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/k3/defconfig new file mode 100644 index 00000000..47d78664 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/k3/defconfig | |||
@@ -0,0 +1,2 @@ | |||
1 | use-kernel-config=defconfig | ||
2 | config-fragment=kernel/configs/ti_arm64_prune.config kernel/configs/ti_rt.config | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.6/omapl138/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/omapl138/defconfig index 099493af..3d890b6e 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.6/omapl138/defconfig +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/omapl138/defconfig | |||
@@ -1 +1,2 @@ | |||
1 | use-kernel-config=davinci_all_defconfig | 1 | use-kernel-config=davinci_all_defconfig |
2 | config-fragment= | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/ti33x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/ti33x/defconfig new file mode 100644 index 00000000..43089dc8 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/ti33x/defconfig | |||
@@ -0,0 +1,2 @@ | |||
1 | use-kernel-config=multi_v7_defconfig | ||
2 | config-fragment=kernel/configs/ti_multi_v7_prune.config kernel/configs/ti_rt.config | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/ti43x/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/ti43x/defconfig new file mode 100644 index 00000000..43089dc8 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/ti43x/defconfig | |||
@@ -0,0 +1,2 @@ | |||
1 | use-kernel-config=multi_v7_defconfig | ||
2 | config-fragment=kernel/configs/ti_multi_v7_prune.config kernel/configs/ti_rt.config | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb index 45461419..9fe0eb02 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.1.bb | |||
@@ -8,8 +8,8 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.1:" | |||
8 | 8 | ||
9 | BRANCH = "ti-rt-linux-6.1.y" | 9 | BRANCH = "ti-rt-linux-6.1.y" |
10 | 10 | ||
11 | SRCREV = "01dbe4e64bacaa4c891c1997f2724c320698d61f" | 11 | SRCREV = "9e8992fb839c642e3c20ee8ce69a30dbaae7f498" |
12 | 12 | ||
13 | include ${@ 'recipes-kernel/linux/ti-extras-rt.inc' if d.getVar('TI_EXTRAS') else ''} | 13 | include ${@ 'recipes-kernel/linux/ti-extras-rt.inc' if d.getVar('TI_EXTRAS') else ''} |
14 | 14 | ||
15 | PV = "6.1.82+git" | 15 | PV = "6.1.119+git" |
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.12.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.12.bb new file mode 100644 index 00000000..9e5c4ee4 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.12.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | require linux-ti-staging_6.12.bb | ||
2 | |||
3 | KERNEL_LOCALVERSION:append = "-rt" | ||
4 | |||
5 | # Look in the generic major.minor directory for files | ||
6 | # This will have priority over generic non-rt path | ||
7 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.12:" | ||
8 | |||
9 | include ${@ 'recipes-kernel/linux/ti-extras-rt.inc' if d.getVar('TI_EXTRAS') else ''} | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.6.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.6.bb index e527e070..e817b530 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.6.bb +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt_6.6.bb | |||
@@ -1,7 +1,5 @@ | |||
1 | require linux-ti-staging_6.6.bb | 1 | require linux-ti-staging_6.6.bb |
2 | 2 | ||
3 | DEFAULT_PREFERENCE = "-1" | ||
4 | |||
5 | KERNEL_LOCALVERSION:append = "-rt" | 3 | KERNEL_LOCALVERSION:append = "-rt" |
6 | 4 | ||
7 | # Look in the generic major.minor directory for files | 5 | # Look in the generic major.minor directory for files |
@@ -10,8 +8,8 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.6:" | |||
10 | 8 | ||
11 | BRANCH = "ti-rt-linux-6.6.y" | 9 | BRANCH = "ti-rt-linux-6.6.y" |
12 | 10 | ||
13 | SRCREV = "82fd2ecb48b6bdb66081cb2f24b9bdfce218dea6" | 11 | SRCREV = "c79d7ef3a56ff61dd83d5527520b419a4f0e32e2" |
14 | 12 | ||
15 | include ${@ 'recipes-kernel/linux/ti-extras-rt.inc' if d.getVar('TI_EXTRAS') else ''} | 13 | include ${@ 'recipes-kernel/linux/ti-extras-rt.inc' if d.getVar('TI_EXTRAS') else ''} |
16 | 14 | ||
17 | PV = "6.6.23+git" | 15 | PV = "6.6.58+git" |
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.6/k3/defconfig b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.6/k3/defconfig deleted file mode 100644 index ef1d3efd..00000000 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest-6.6/k3/defconfig +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | use-kernel-config=defconfig | ||
2 | config-fragment=kernel/configs/ti_arm64_prune.config | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_6.1.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_6.1.bb deleted file mode 100644 index 9c170e65..00000000 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_6.1.bb +++ /dev/null | |||
@@ -1,5 +0,0 @@ | |||
1 | require linux-ti-staging_6.1.bb | ||
2 | |||
3 | # Look in the generic major.minor directory for files | ||
4 | # This will have priority over generic non-rt path | ||
5 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.1:" | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_6.6.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_6.6.bb deleted file mode 100644 index 21090904..00000000 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-systest_6.6.bb +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | require linux-ti-staging_6.6.bb | ||
2 | |||
3 | DEFAULT_PREFERENCE = "-1" | ||
4 | |||
5 | # Look in the generic major.minor directory for files | ||
6 | # This will have priority over generic non-rt path | ||
7 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.6:" | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb index a58494df..97fa6463 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.1.bb | |||
@@ -4,7 +4,7 @@ LICENSE = "GPL-2.0-only" | |||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" |
5 | 5 | ||
6 | inherit ti-secdev | 6 | inherit ti-secdev |
7 | inherit kernel | 7 | inherit kernel_deprecated |
8 | 8 | ||
9 | require recipes-kernel/linux/setup-defconfig.inc | 9 | require recipes-kernel/linux/setup-defconfig.inc |
10 | require recipes-kernel/linux/ti-kernel.inc | 10 | require recipes-kernel/linux/ti-kernel.inc |
@@ -19,21 +19,12 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.1:" | |||
19 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \ | 19 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \ |
20 | ${EXTRA_DTC_ARGS}" | 20 | ${EXTRA_DTC_ARGS}" |
21 | 21 | ||
22 | S = "${WORKDIR}/git" | 22 | S = "${UNPACKDIR}/${BB_GIT_DEFAULT_DESTSUFFIX}" |
23 | 23 | ||
24 | BRANCH ?= "ti-linux-6.1.y" | 24 | BRANCH ?= "ti-linux-6.1.y" |
25 | 25 | ||
26 | SRCREV ?= "e44f83d2aa4366b3097307c5915d03696cf3e1b8" | 26 | SRCREV ?= "e4e8b16e66f592749984b2d287e0479e93ef35b3" |
27 | PV = "6.1.82+git" | 27 | PV = "6.1.119+git" |
28 | |||
29 | # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild | ||
30 | MACHINE_KERNEL_PR:append = "b" | ||
31 | PR = "${MACHINE_KERNEL_PR}" | ||
32 | |||
33 | KERNEL_GIT_URI ?= "git://git.ti.com/git/ti-linux-kernel/ti-linux-kernel.git" | ||
34 | KERNEL_GIT_PROTOCOL = "https" | ||
35 | SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \ | ||
36 | file://defconfig" | ||
37 | 28 | ||
38 | # Special configuration for remoteproc/rpmsg IPC modules | 29 | # Special configuration for remoteproc/rpmsg IPC modules |
39 | module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample" | 30 | module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample" |
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb new file mode 100644 index 00000000..15ff3311 --- /dev/null +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.12.bb | |||
@@ -0,0 +1,37 @@ | |||
1 | SECTION = "kernel" | ||
2 | SUMMARY = "Linux kernel for TI devices" | ||
3 | LICENSE = "GPL-2.0-only" | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | ||
5 | |||
6 | inherit ti-secdev | ||
7 | inherit kernel_deprecated | ||
8 | |||
9 | require recipes-kernel/linux/setup-defconfig.inc | ||
10 | require recipes-kernel/linux/ti-kernel.inc | ||
11 | include ${@ 'recipes-kernel/linux/ti-kernel-devicetree-prefix.inc' if d.getVar('KERNEL_DEVICETREE_PREFIX') else ''} | ||
12 | include ${@ 'recipes-kernel/linux/ti-extras.inc' if d.getVar('TI_EXTRAS') else ''} | ||
13 | |||
14 | DEPENDS += "gmp-native libmpc-native" | ||
15 | |||
16 | # Look in the generic major.minor directory for files | ||
17 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.12:" | ||
18 | |||
19 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \ | ||
20 | ${EXTRA_DTC_ARGS}" | ||
21 | |||
22 | S = "${UNPACKDIR}/${BB_GIT_DEFAULT_DESTSUFFIX}" | ||
23 | |||
24 | BRANCH ?= "ti-linux-6.12.y" | ||
25 | |||
26 | SRCREV ?= "34d0b070130a8cd2cddd9260389ad974e8cb8468" | ||
27 | PV = "6.12.33+git" | ||
28 | |||
29 | KERNEL_REPRODUCIBILITY_PATCHES = " \ | ||
30 | file://0001-drivers-gpu-drm-msm-registers-improve-reproducibilit.patch \ | ||
31 | " | ||
32 | |||
33 | # Special configuration for remoteproc/rpmsg IPC modules | ||
34 | module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample" | ||
35 | module_conf_ti_k3_r5_remoteproc = "softdep ti_k3_r5_remoteproc pre: virtio_rpmsg_bus" | ||
36 | module_conf_ti_k3_dsp_remoteproc = "softdep ti_k3_dsp_remoteproc pre: virtio_rpmsg_bus" | ||
37 | KERNEL_MODULE_PROBECONF += "rpmsg_client_sample ti_k3_r5_remoteproc ti_k3_dsp_remoteproc" | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb index 4871f3cf..4714bba1 100644 --- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb +++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging_6.6.bb | |||
@@ -4,9 +4,7 @@ LICENSE = "GPL-2.0-only" | |||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" |
5 | 5 | ||
6 | inherit ti-secdev | 6 | inherit ti-secdev |
7 | inherit kernel | 7 | inherit kernel_deprecated |
8 | |||
9 | DEFAULT_PREFERENCE = "-1" | ||
10 | 8 | ||
11 | require recipes-kernel/linux/setup-defconfig.inc | 9 | require recipes-kernel/linux/setup-defconfig.inc |
12 | require recipes-kernel/linux/ti-kernel.inc | 10 | require recipes-kernel/linux/ti-kernel.inc |
@@ -21,21 +19,16 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-6.6:" | |||
21 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \ | 19 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT} \ |
22 | ${EXTRA_DTC_ARGS}" | 20 | ${EXTRA_DTC_ARGS}" |
23 | 21 | ||
24 | S = "${WORKDIR}/git" | 22 | S = "${UNPACKDIR}/${BB_GIT_DEFAULT_DESTSUFFIX}" |
25 | 23 | ||
26 | BRANCH ?= "ti-linux-6.6.y" | 24 | BRANCH ?= "ti-linux-6.6.y" |
27 | 25 | ||
28 | SRCREV ?= "02bfb99615b1c26a06d0af269e97401251a25c40" | 26 | SRCREV ?= "a7758da17c2807e5285d6546b6797aae1d34a7d6" |
29 | PV = "6.6.23+git" | 27 | PV = "6.6.58+git" |
30 | |||
31 | # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild | ||
32 | MACHINE_KERNEL_PR:append = "b" | ||
33 | PR = "${MACHINE_KERNEL_PR}" | ||
34 | 28 | ||
35 | KERNEL_GIT_URI ?= "git://git.ti.com/git/ti-linux-kernel/ti-linux-kernel.git" | 29 | KERNEL_REPRODUCIBILITY_PATCHES = " \ |
36 | KERNEL_GIT_PROTOCOL = "https" | 30 | file://0001-vt-conmakehash-improve-reproducibility.patch \ |
37 | SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \ | 31 | " |
38 | file://defconfig" | ||
39 | 32 | ||
40 | # Special configuration for remoteproc/rpmsg IPC modules | 33 | # Special configuration for remoteproc/rpmsg IPC modules |
41 | module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample" | 34 | module_conf_rpmsg_client_sample = "blacklist rpmsg_client_sample" |
diff --git a/meta-ti-bsp/recipes-kernel/linux/setup-defconfig.inc b/meta-ti-bsp/recipes-kernel/linux/setup-defconfig.inc index 8da90c79..213f6871 100644 --- a/meta-ti-bsp/recipes-kernel/linux/setup-defconfig.inc +++ b/meta-ti-bsp/recipes-kernel/linux/setup-defconfig.inc | |||
@@ -9,7 +9,7 @@ do_configure() { | |||
9 | # Always copy the defconfig file to .config to keep consistency | 9 | # Always copy the defconfig file to .config to keep consistency |
10 | # between the case where there is a real config and the in kernel | 10 | # between the case where there is a real config and the in kernel |
11 | # tree config | 11 | # tree config |
12 | cp ${WORKDIR}/defconfig ${B}/.config | 12 | cp ${UNPACKDIR}/defconfig ${B}/.config |
13 | 13 | ||
14 | scm_version=$(printf '%s%s' -g $(git -C ${S} rev-parse --verify HEAD 2>/dev/null | cut -c1-12)) | 14 | scm_version=$(printf '%s%s' -g $(git -C ${S} rev-parse --verify HEAD 2>/dev/null | cut -c1-12)) |
15 | 15 | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc b/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc index 530a1783..dba9ef38 100644 --- a/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc +++ b/meta-ti-bsp/recipes-kernel/linux/ti-extras-rt.inc | |||
@@ -2,10 +2,10 @@ | |||
2 | # Use different commit, repo and branch for TI extras build | 2 | # Use different commit, repo and branch for TI extras build |
3 | # This will have priority over generic rt path | 3 | # This will have priority over generic rt path |
4 | 4 | ||
5 | COMPATIBLE_MACHINE = "am62xx|am62pxx" | 5 | COMPATIBLE_MACHINE = "am62xx|am62pxx|am62lxx" |
6 | 6 | ||
7 | BRANCH = "ti-rt-linux-6.1.y" | 7 | BRANCH = "ti-linux-6.12.y" |
8 | BRANCH:tie-jailhouse = "ti-rt-linux-6.1.y-jailhouse" | 8 | BRANCH:tie-jailhouse = "ti-linux-6.12.y-jailhouse" |
9 | 9 | ||
10 | SRCREV = "685e77152461bd6b791500f717bec62d17c1b36d" | 10 | SRCREV = "c9e21a1ebd757f2b4487035382bbf65299cf8170" |
11 | SRCREV:tie-jailhouse = "a74088b40b4d27478a2af5c20cdc0b4ec8ed9470" | 11 | SRCREV:tie-jailhouse = "229a48602ad1557612a4ffabec6a3cbcdd745f87" |
diff --git a/meta-ti-bsp/recipes-kernel/linux/ti-extras.inc b/meta-ti-bsp/recipes-kernel/linux/ti-extras.inc index 0b22aca9..4b7a9f20 100644 --- a/meta-ti-bsp/recipes-kernel/linux/ti-extras.inc +++ b/meta-ti-bsp/recipes-kernel/linux/ti-extras.inc | |||
@@ -2,13 +2,13 @@ | |||
2 | # Use different commit, repo and branch for TI extras build | 2 | # Use different commit, repo and branch for TI extras build |
3 | # This will have priority over generic rt path | 3 | # This will have priority over generic rt path |
4 | 4 | ||
5 | COMPATIBLE_MACHINE = "am62xx|am62pxx" | 5 | COMPATIBLE_MACHINE = "am62xx|am62pxx|am62lxx" |
6 | 6 | ||
7 | BRANCH = "ti-linux-6.1.y" | 7 | BRANCH = "ti-linux-6.12.y" |
8 | BRANCH:tie-jailhouse = "ti-linux-6.1.y-jailhouse" | 8 | BRANCH:tie-jailhouse = "ti-linux-6.12.y-jailhouse" |
9 | 9 | ||
10 | SRCREV = "ec058c3ddc5377c629e988a95ef84826b14a3307" | 10 | SRCREV = "c9e21a1ebd757f2b4487035382bbf65299cf8170" |
11 | SRCREV:tie-jailhouse = "d035e0cc72399f1c087a63c4210d29e79a7a66e4" | 11 | SRCREV:tie-jailhouse = "229a48602ad1557612a4ffabec6a3cbcdd745f87" |
12 | 12 | ||
13 | KERNEL_GIT_URI = "git://git.ti.com/git/processor-sdk/linux.git" | 13 | KERNEL_GIT_URI = "git://git.ti.com/git/processor-sdk/linux.git" |
14 | 14 | ||
diff --git a/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc b/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc index dd5578f5..8c14446a 100644 --- a/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc +++ b/meta-ti-bsp/recipes-kernel/linux/ti-kernel.inc | |||
@@ -12,3 +12,17 @@ EXTRA_DTC_ARGS += "${@get_extra_dtc_args(d)}" | |||
12 | # the kernel. | 12 | # the kernel. |
13 | KERNEL_DTBDEST = "${KERNEL_IMAGEDEST}/dtb" | 13 | KERNEL_DTBDEST = "${KERNEL_IMAGEDEST}/dtb" |
14 | KERNEL_DTBVENDORED = "1" | 14 | KERNEL_DTBVENDORED = "1" |
15 | |||
16 | KERNEL_GIT_URI ?= "git://git.ti.com/git/ti-linux-kernel/ti-linux-kernel.git" | ||
17 | KERNEL_GIT_PROTOCOL ?= "https" | ||
18 | KERNEL_GIT_BRANCH ?= "branch=${BRANCH}" | ||
19 | |||
20 | KERNEL_DEFCONFIG ?= "file://defconfig" | ||
21 | |||
22 | KERNEL_REPRODUCIBILITY_PATCHES ?= "" | ||
23 | |||
24 | SRC_URI = " \ | ||
25 | ${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};${KERNEL_GIT_BRANCH} \ | ||
26 | ${KERNEL_DEFCONFIG} \ | ||
27 | ${KERNEL_REPRODUCIBILITY_PATCHES} \ | ||
28 | " | ||