diff options
27 files changed, 109 insertions, 1042 deletions
diff --git a/conf/machine/include/imx8mm-evk.inc b/conf/machine/include/imx8mm-evk.inc index 3ea562ff..85419a45 100644 --- a/conf/machine/include/imx8mm-evk.inc +++ b/conf/machine/include/imx8mm-evk.inc | |||
@@ -3,15 +3,20 @@ MACHINEOVERRIDES =. "imx-boot-container:mx8:mx8m:mx8mm:" | |||
3 | require conf/machine/include/imx-base.inc | 3 | require conf/machine/include/imx-base.inc |
4 | require conf/machine/include/arm/armv8a/tune-cortexa53.inc | 4 | require conf/machine/include/arm/armv8a/tune-cortexa53.inc |
5 | 5 | ||
6 | # Mainline BSP defaults to "generic" cortexa53 configuration, | ||
7 | # adjust it here to include crypto extension which enables | ||
8 | # inline NEON and FPU code generation | ||
9 | DEFAULTTUNE:use-mainline-bsp = "cortexa53-crypto" | ||
10 | |||
6 | MACHINE_FEATURES += "pci wifi bluetooth bcm43455 bcm4356" | 11 | MACHINE_FEATURES += "pci wifi bluetooth bcm43455 bcm4356" |
7 | 12 | ||
8 | # NXP BSP can consume proprietary jailhouse, BCM4359, and QCA9377 driver and firmware | 13 | # NXP BSP can consume proprietary jailhouse and BCM4359 firmware |
9 | # Since the firmware is not available publicly, and rather distributed | 14 | # Since the firmware is not available publicly, and rather distributed |
10 | # under "Proprietary" license - we opt-out from using it in all BSPs | 15 | # under "Proprietary" license - we opt-out from using it in all BSPs |
11 | # and pin it to NXP BSP only | 16 | # and pin it to NXP BSP only |
12 | # OP-TEE is also applicable to NXP BSP, mainline BSP seems not to have | 17 | # OP-TEE is also applicable to NXP BSP, mainline BSP seems not to have |
13 | # a full support for it yet. | 18 | # a full support for it yet. |
14 | MACHINE_FEATURES:append:use-nxp-bsp = " optee jailhouse bcm4359 qca9377" | 19 | MACHINE_FEATURES:append:use-nxp-bsp = " optee jailhouse bcm4359" |
15 | 20 | ||
16 | KERNEL_DEVICETREE = " \ | 21 | KERNEL_DEVICETREE = " \ |
17 | freescale/${KERNEL_DEVICETREE_BASENAME}.dtb \ | 22 | freescale/${KERNEL_DEVICETREE_BASENAME}.dtb \ |
diff --git a/conf/machine/include/imx8mn-evk.inc b/conf/machine/include/imx8mn-evk.inc index 3c867473..4f897349 100644 --- a/conf/machine/include/imx8mn-evk.inc +++ b/conf/machine/include/imx8mn-evk.inc | |||
@@ -3,6 +3,11 @@ MACHINEOVERRIDES =. "imx-boot-container:mx8:mx8m:mx8mn:" | |||
3 | require conf/machine/include/imx-base.inc | 3 | require conf/machine/include/imx-base.inc |
4 | require conf/machine/include/arm/armv8a/tune-cortexa53.inc | 4 | require conf/machine/include/arm/armv8a/tune-cortexa53.inc |
5 | 5 | ||
6 | # Mainline BSP defaults to "generic" cortexa53 configuration, | ||
7 | # adjust it here to include crypto extension which enables | ||
8 | # inline NEON and FPU code generation | ||
9 | DEFAULTTUNE:use-mainline-bsp = "cortexa53-crypto" | ||
10 | |||
6 | MACHINE_FEATURES += "wifi bluetooth bcm43455 bcm4356" | 11 | MACHINE_FEATURES += "wifi bluetooth bcm43455 bcm4356" |
7 | 12 | ||
8 | # NXP BSP can consume proprietary jailhouse and Broadcom drivers | 13 | # NXP BSP can consume proprietary jailhouse and Broadcom drivers |
diff --git a/conf/machine/include/imx8mp-evk.inc b/conf/machine/include/imx8mp-evk.inc index 9697b3f6..7635d08c 100644 --- a/conf/machine/include/imx8mp-evk.inc +++ b/conf/machine/include/imx8mp-evk.inc | |||
@@ -3,6 +3,11 @@ MACHINEOVERRIDES =. "imx-boot-container:mx8:mx8m:mx8mp:" | |||
3 | require conf/machine/include/imx-base.inc | 3 | require conf/machine/include/imx-base.inc |
4 | require conf/machine/include/arm/armv8a/tune-cortexa53.inc | 4 | require conf/machine/include/arm/armv8a/tune-cortexa53.inc |
5 | 5 | ||
6 | # Mainline BSP defaults to "generic" cortexa53 configuration, | ||
7 | # adjust it here to include crypto extension which enables | ||
8 | # inline NEON and FPU code generation | ||
9 | DEFAULTTUNE:use-mainline-bsp = "cortexa53-crypto" | ||
10 | |||
6 | MACHINE_FEATURES += "pci wifi bluetooth" | 11 | MACHINE_FEATURES += "pci wifi bluetooth" |
7 | 12 | ||
8 | # NXP BSP can consume proprietary jailhouse and Marvell drivers | 13 | # NXP BSP can consume proprietary jailhouse and Marvell drivers |
diff --git a/recipes-bsp/firmware-qca/firmware-qca.inc b/recipes-bsp/firmware-qca/firmware-qca.inc deleted file mode 100644 index f33f4eb9..00000000 --- a/recipes-bsp/firmware-qca/firmware-qca.inc +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | # Copyright (C) 2018-2020 NXP | ||
2 | |||
3 | SUMMARY = "Qualcomm Wi-Fi and Bluetooth firmware" | ||
4 | SECTION = "base" | ||
5 | LICENSE = "Proprietary" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=fd4b227530cd88a82af6a5982cfb724d \ | ||
7 | file://QUALCOMM_ATHEROS_LICENSE_AGREEMENT.pdf;md5=e629669cf17f6a2a6872e067582986e3 \ | ||
8 | " | ||
9 | |||
10 | SRC_URI = " ${FSL_MIRROR}/firmware-qca-${PV}.bin;fsl-eula=true" | ||
11 | SRC_URI[md5sum] = "75b1b2a8dea8f81609ccfc072d42fa86" | ||
12 | SRC_URI[sha256sum] = "6ad56ac1df841e252ac6db0a8966082715a3cb6dc7189426bade13333a16fd9d" | ||
13 | S = "${WORKDIR}/firmware-qca-${PV}" | ||
14 | |||
15 | inherit fsl-eula-unpack | ||
diff --git a/recipes-bsp/firmware-qca/firmware-qca6174_3.0.2.bb b/recipes-bsp/firmware-qca/firmware-qca6174_3.0.2.bb deleted file mode 100644 index a625a9d5..00000000 --- a/recipes-bsp/firmware-qca/firmware-qca6174_3.0.2.bb +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | # Copyright (C) 2019-2020 NXP | ||
2 | |||
3 | require firmware-qca.inc | ||
4 | |||
5 | SUMMARY = "Qualcomm Wi-Fi and Bluetooth firmware" | ||
6 | DESCRIPTION = "Qualcomm Wi-Fi and Bluetooth firmware for modules such as QCA6174A" | ||
7 | SECTION = "base" | ||
8 | LICENSE = "Proprietary" | ||
9 | |||
10 | inherit allarch | ||
11 | |||
12 | do_install () { | ||
13 | # Install firmware.conf for QCA modules | ||
14 | install -d ${D}${sysconfdir}/bluetooth | ||
15 | install -m 644 ${S}/1CQ_QCA6174A_LEA_2.0/etc/bluetooth/firmware.conf ${D}${sysconfdir}/bluetooth | ||
16 | |||
17 | # Install firmware files | ||
18 | install -d ${D}${base_libdir} | ||
19 | cp -r ${S}/1CQ_QCA6174A_LEA_2.0/lib/firmware ${D}${base_libdir} | ||
20 | } | ||
21 | |||
22 | FILES:${PN} = " \ | ||
23 | ${sysconfdir}/bluetooth/firmware.conf \ | ||
24 | ${base_libdir}/firmware/qca6174 \ | ||
25 | ${base_libdir}/firmware/wlan \ | ||
26 | ${base_libdir}/firmware/* \ | ||
27 | " | ||
diff --git a/recipes-bsp/firmware-qca/firmware-qca9377_3.0.2.bb b/recipes-bsp/firmware-qca/firmware-qca9377_3.0.2.bb deleted file mode 100644 index d6bf5caf..00000000 --- a/recipes-bsp/firmware-qca/firmware-qca9377_3.0.2.bb +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | # Copyright (C) 2018-2020 NXP | ||
2 | |||
3 | require firmware-qca.inc | ||
4 | |||
5 | SUMMARY = "Qualcomm Wi-Fi and Bluetooth firmware" | ||
6 | DESCRIPTION = "Qualcomm Wi-Fi and Bluetooth firmware for modules such as QCA9377-3" | ||
7 | SECTION = "base" | ||
8 | LICENSE = "Proprietary" | ||
9 | |||
10 | inherit allarch | ||
11 | |||
12 | do_install () { | ||
13 | # Install firmware.conf for QCA modules | ||
14 | install -d ${D}${sysconfdir}/bluetooth | ||
15 | install -m 644 ${S}/1PJ_QCA9377-3_LEA_3.0/etc/bluetooth/firmware.conf ${D}${sysconfdir}/bluetooth | ||
16 | |||
17 | # Install firmware files | ||
18 | install -d ${D}${base_libdir} | ||
19 | cp -r ${S}/1PJ_QCA9377-3_LEA_3.0/lib/firmware ${D}${base_libdir} | ||
20 | } | ||
21 | |||
22 | FILES:${PN} = " \ | ||
23 | ${sysconfdir}/bluetooth/firmware.conf \ | ||
24 | ${base_libdir}/firmware/qca \ | ||
25 | ${base_libdir}/firmware/qca9377 \ | ||
26 | ${base_libdir}/firmware/wlan \ | ||
27 | " | ||
diff --git a/recipes-bsp/firmware-qca/qca-tools_3.0.2.bb b/recipes-bsp/firmware-qca/qca-tools_3.0.2.bb deleted file mode 100644 index fd0c2e74..00000000 --- a/recipes-bsp/firmware-qca/qca-tools_3.0.2.bb +++ /dev/null | |||
@@ -1,20 +0,0 @@ | |||
1 | # Copyright (C) 2018-2020 NXP | ||
2 | |||
3 | require firmware-qca.inc | ||
4 | |||
5 | SUMMARY = "Qualcomm Wi-Fi and Bluetooth tools" | ||
6 | DESCRIPTION = "Qualcomm Wi-Fi and Bluetooth tools for modules such as QCA6174A and QCA9377" | ||
7 | LICENSE = "Proprietary" | ||
8 | |||
9 | DEPENDS = "libnl zlib" | ||
10 | |||
11 | FCC_TOOLS_FOLDER ?= "qca9377_qca6174_arm32" | ||
12 | FCC_TOOLS_FOLDER:aarch64 = "qca9377_qca6174_arm64" | ||
13 | |||
14 | do_install() { | ||
15 | install -d ${D}${sbindir}/fcc_tools | ||
16 | cp -r ${S}/fcc_tools/${FCC_TOOLS_FOLDER} ${D}${sbindir}/fcc_tools | ||
17 | } | ||
18 | |||
19 | COMPATIBLE_HOST = '(aarch64|arm).*-linux' | ||
20 | COMPATIBLE_HOST:libc-musl = 'null' | ||
diff --git a/recipes-fsl/packagegroups/packagegroup-fsl-qca6174.bb b/recipes-fsl/packagegroups/packagegroup-fsl-qca6174.bb deleted file mode 100644 index 201f7d21..00000000 --- a/recipes-fsl/packagegroups/packagegroup-fsl-qca6174.bb +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | # Copyright 2019 NXP | ||
2 | |||
3 | SUMMARY = "Qualcomm Wi-Fi support" | ||
4 | |||
5 | inherit packagegroup | ||
6 | |||
7 | RDEPENDS:${PN} = " \ | ||
8 | kernel-module-qca6174 \ | ||
9 | firmware-qca6174 \ | ||
10 | " | ||
11 | |||
12 | COMPATIBLE_HOST = '(aarch64|arm).*-linux' | ||
13 | COMPATIBLE_HOST:libc-musl = 'null' | ||
diff --git a/recipes-fsl/packagegroups/packagegroup-fsl-qca9377.bb b/recipes-fsl/packagegroups/packagegroup-fsl-qca9377.bb deleted file mode 100644 index 2e3e9ced..00000000 --- a/recipes-fsl/packagegroups/packagegroup-fsl-qca9377.bb +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | # Copyright 2019 NXP | ||
2 | |||
3 | SUMMARY = "Qualcomm Wi-Fi support" | ||
4 | |||
5 | inherit packagegroup | ||
6 | |||
7 | RDEPENDS:${PN} = " \ | ||
8 | kernel-module-qca9377 \ | ||
9 | firmware-qca9377 \ | ||
10 | " | ||
11 | COMPATIBLE_HOST = '(aarch64|arm).*-linux' | ||
12 | COMPATIBLE_HOST:libc-musl = 'null' | ||
diff --git a/recipes-graphics/imx-gpu-apitrace/imx-gpu-apitrace/0001-dlsym-workaround-glibc-2.34-build-failure.patch b/recipes-graphics/imx-gpu-apitrace/imx-gpu-apitrace/0001-dlsym-workaround-glibc-2.34-build-failure.patch new file mode 100644 index 00000000..9f3410d7 --- /dev/null +++ b/recipes-graphics/imx-gpu-apitrace/imx-gpu-apitrace/0001-dlsym-workaround-glibc-2.34-build-failure.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From d11884c88eac803c174f759414d0162154450b6a Mon Sep 17 00:00:00 2001 | ||
2 | From: Andrey Zhizhikin <andrey.z@gmail.com> | ||
3 | Date: Thu, 2 Sep 2021 09:43:33 +0000 | ||
4 | Subject: [PATCH] dlsym: workaround glibc 2.34 build failure | ||
5 | |||
6 | As suggested in [1], upstream component does not have a solution for the | ||
7 | issue, and therefore for glibc version >= 2.34 dlsym wrappers should be | ||
8 | skipped. | ||
9 | |||
10 | Link: [1]: https://github.com/apitrace/apitrace/issues/756 | ||
11 | |||
12 | Upstream-Status: Pending | ||
13 | Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com> | ||
14 | --- | ||
15 | wrappers/dlsym.cpp | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/wrappers/dlsym.cpp b/wrappers/dlsym.cpp | ||
19 | index cdf5cfdb..4061afc4 100644 | ||
20 | --- a/wrappers/dlsym.cpp | ||
21 | +++ b/wrappers/dlsym.cpp | ||
22 | @@ -34,7 +34,7 @@ | ||
23 | #include "os.hpp" | ||
24 | |||
25 | |||
26 | -#ifdef __GLIBC__ | ||
27 | +#if defined(__GLIBC__) && !(__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34) | ||
28 | |||
29 | |||
30 | #include <dlfcn.h> | ||
31 | -- | ||
32 | 2.17.1 | ||
33 | |||
diff --git a/recipes-graphics/imx-gpu-apitrace/imx-gpu-apitrace_9.0.0.bb b/recipes-graphics/imx-gpu-apitrace/imx-gpu-apitrace_9.0.0.bb index a6de94d2..dfa8dde7 100644 --- a/recipes-graphics/imx-gpu-apitrace/imx-gpu-apitrace_9.0.0.bb +++ b/recipes-graphics/imx-gpu-apitrace/imx-gpu-apitrace_9.0.0.bb | |||
@@ -4,7 +4,9 @@ LICENSE = "MIT" | |||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=aeb969185a143c3c25130bc2c3ef9a50" | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=aeb969185a143c3c25130bc2c3ef9a50" |
5 | DEPENDS = "imx-gpu-viv zlib libpng procps" | 5 | DEPENDS = "imx-gpu-viv zlib libpng procps" |
6 | 6 | ||
7 | SRC_URI = "git://source.codeaurora.org/external/imx/apitrace-imx.git;protocol=https;branch=imx_9.0" | 7 | SRC_URI = "git://source.codeaurora.org/external/imx/apitrace-imx.git;protocol=https;branch=imx_9.0 \ |
8 | file://0001-dlsym-workaround-glibc-2.34-build-failure.patch \ | ||
9 | " | ||
8 | SRCREV = "c50e6a954e44998f2e3793a8de863e961f8008c6" | 10 | SRCREV = "c50e6a954e44998f2e3793a8de863e961f8008c6" |
9 | 11 | ||
10 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
@@ -44,6 +46,3 @@ FILES:${PN} += " \ | |||
44 | 46 | ||
45 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | 47 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" |
46 | COMPATIBLE_MACHINE = "(imxgpu)" | 48 | COMPATIBLE_MACHINE = "(imxgpu)" |
47 | |||
48 | # see https://github.com/apitrace/apitrace/issues/756 | ||
49 | PNBLACKLIST[imx-gpu-apitrace] ?= "Upstream needs porting to glibc 2.34+" | ||
diff --git a/recipes-graphics/mesa/mesa/0001-dri-add-createImageWithModifiers2-interface.patch b/recipes-graphics/mesa/mesa/0001-dri-add-createImageWithModifiers2-interface.patch deleted file mode 100644 index 261c54cc..00000000 --- a/recipes-graphics/mesa/mesa/0001-dri-add-createImageWithModifiers2-interface.patch +++ /dev/null | |||
@@ -1,67 +0,0 @@ | |||
1 | From afd8b2f498a417de6ecdbd13045d97c9ecf4391b Mon Sep 17 00:00:00 2001 | ||
2 | From: Simon Ser <contact@emersion.fr> | ||
3 | Date: Mon, 14 Dec 2020 18:32:47 +0100 | ||
4 | Subject: [PATCH] dri: add createImageWithModifiers2 interface | ||
5 | |||
6 | With the addition of createImageWithModifiers usage flags were | ||
7 | dropped, as it was believed at the time that modifers will be a | ||
8 | full replacement for the usage flags. This has turned out to be | ||
9 | untrue, as modifiers are not able to describe buffer placement. | ||
10 | |||
11 | Add a new version of the interface, that allows to specifiy | ||
12 | use flags in addition to the modifier. | ||
13 | |||
14 | Signed-off-by: Simon Ser <contact@emersion.fr> | ||
15 | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> | ||
16 | Reviewed-by: Daniel Stone <daniels@collabora.com> | ||
17 | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8106> | ||
18 | Upstream-Status: Applied [https://gitlab.freedesktop.org/mesa/mesa/-/commit/afd8b2f498a417de6ecdbd13045d97c9ecf4391b] | ||
19 | --- | ||
20 | include/GL/internal/dri_interface.h | 24 +++++++++++++++++++++++- | ||
21 | 1 file changed, 23 insertions(+), 1 deletion(-) | ||
22 | |||
23 | diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h | ||
24 | index 9b85e67ce49..a7d9903f94e 100644 | ||
25 | --- a/include/GL/internal/dri_interface.h | ||
26 | +++ b/include/GL/internal/dri_interface.h | ||
27 | @@ -1328,7 +1328,7 @@ struct __DRIdri2ExtensionRec { | ||
28 | * extensions. | ||
29 | */ | ||
30 | #define __DRI_IMAGE "DRI_IMAGE" | ||
31 | -#define __DRI_IMAGE_VERSION 18 | ||
32 | +#define __DRI_IMAGE_VERSION 19 | ||
33 | |||
34 | /** | ||
35 | * These formats correspond to the similarly named MESA_FORMAT_* | ||
36 | @@ -1803,6 +1803,28 @@ struct __DRIimageExtensionRec { | ||
37 | uint32_t flags, | ||
38 | unsigned *error, | ||
39 | void *loaderPrivate); | ||
40 | + | ||
41 | + /** | ||
42 | + * Creates an image with implementation's favorite modifiers and the | ||
43 | + * provided usage flags. | ||
44 | + * | ||
45 | + * This acts like createImageWithModifiers except usage is also specified. | ||
46 | + * | ||
47 | + * The created image should be destroyed with destroyImage(). | ||
48 | + * | ||
49 | + * Returns the new DRIimage. The chosen modifier can be obtained later on | ||
50 | + * and passed back to things like the kernel's AddFB2 interface. | ||
51 | + * | ||
52 | + * \sa __DRIimageRec::createImage | ||
53 | + * | ||
54 | + * \since 19 | ||
55 | + */ | ||
56 | + __DRIimage *(*createImageWithModifiers2)(__DRIscreen *screen, | ||
57 | + int width, int height, int format, | ||
58 | + const uint64_t *modifiers, | ||
59 | + const unsigned int modifier_count, | ||
60 | + unsigned int use, | ||
61 | + void *loaderPrivate); | ||
62 | }; | ||
63 | |||
64 | |||
65 | -- | ||
66 | 2.31.1 | ||
67 | |||
diff --git a/recipes-graphics/mesa/mesa/0002-dri-add-loader_dri_create_image-helper.patch b/recipes-graphics/mesa/mesa/0002-dri-add-loader_dri_create_image-helper.patch deleted file mode 100644 index 1e5d0f69..00000000 --- a/recipes-graphics/mesa/mesa/0002-dri-add-loader_dri_create_image-helper.patch +++ /dev/null | |||
@@ -1,336 +0,0 @@ | |||
1 | From cb9ae4273d680ab34fc2ca933c4f960e7f086275 Mon Sep 17 00:00:00 2001 | ||
2 | From: Lucas Stach <l.stach@pengutronix.de> | ||
3 | Date: Tue, 15 Dec 2020 14:39:32 +0100 | ||
4 | Subject: [PATCH] dri: add loader_dri_create_image helper | ||
5 | |||
6 | The DRI image extension already has two different ways to allocate an | ||
7 | image (with and without a modifier) and will soon grow a third one. | ||
8 | Add a helper, which handles calling the appropriate implementation to | ||
9 | get rid of code duplication in the winsys. | ||
10 | |||
11 | This convert the two obvious call sites (GBM dri and EGL wayland) | ||
12 | that profit from the code dedup. | ||
13 | |||
14 | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> | ||
15 | Reviewed-by: Daniel Stone <daniels@collabora.com> | ||
16 | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8106> | ||
17 | Upstream-Status: Applied [https://gitlab.freedesktop.org/mesa/mesa/-/commit/cb9ae4273d680ab34fc2ca933c4f960e7f086275] | ||
18 | --- | ||
19 | src/egl/drivers/dri2/platform_wayland.c | 60 +++++++--------------- | ||
20 | src/gbm/backends/dri/gbm_dri.c | 53 +++++-------------- | ||
21 | src/loader/Makefile.sources | 2 + | ||
22 | src/loader/loader_dri_helper.c | 68 +++++++++++++++++++++++++ | ||
23 | src/loader/loader_dri_helper.h | 33 ++++++++++++ | ||
24 | src/loader/meson.build | 2 +- | ||
25 | 6 files changed, 134 insertions(+), 84 deletions(-) | ||
26 | create mode 100644 src/loader/loader_dri_helper.c | ||
27 | create mode 100644 src/loader/loader_dri_helper.h | ||
28 | |||
29 | diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c | ||
30 | index 26b6711952c..180380b4c4c 100644 | ||
31 | --- a/src/egl/drivers/dri2/platform_wayland.c | ||
32 | +++ b/src/egl/drivers/dri2/platform_wayland.c | ||
33 | @@ -40,6 +40,7 @@ | ||
34 | #include <sys/mman.h> | ||
35 | |||
36 | #include "egl_dri2.h" | ||
37 | +#include "loader_dri_helper.h" | ||
38 | #include "loader.h" | ||
39 | #include "util/u_vector.h" | ||
40 | #include "util/anon_file.h" | ||
41 | @@ -578,28 +579,16 @@ get_back_bo(struct dri2_egl_surface *dri2_surf) | ||
42 | dri2_surf->back->linear_copy == NULL) { | ||
43 | /* The LINEAR modifier should be a perfect alias of the LINEAR use | ||
44 | * flag; try the new interface first before the old, then fall back. */ | ||
45 | - if (dri2_dpy->image->base.version >= 15 && | ||
46 | - dri2_dpy->image->createImageWithModifiers) { | ||
47 | - uint64_t linear_mod = DRM_FORMAT_MOD_LINEAR; | ||
48 | - | ||
49 | - dri2_surf->back->linear_copy = | ||
50 | - dri2_dpy->image->createImageWithModifiers(dri2_dpy->dri_screen, | ||
51 | - dri2_surf->base.Width, | ||
52 | - dri2_surf->base.Height, | ||
53 | - linear_dri_image_format, | ||
54 | - &linear_mod, | ||
55 | - 1, | ||
56 | - NULL); | ||
57 | - } else { | ||
58 | - dri2_surf->back->linear_copy = | ||
59 | - dri2_dpy->image->createImage(dri2_dpy->dri_screen, | ||
60 | - dri2_surf->base.Width, | ||
61 | - dri2_surf->base.Height, | ||
62 | - linear_dri_image_format, | ||
63 | - use_flags | | ||
64 | - __DRI_IMAGE_USE_LINEAR, | ||
65 | - NULL); | ||
66 | - } | ||
67 | + uint64_t linear_mod = DRM_FORMAT_MOD_LINEAR; | ||
68 | + | ||
69 | + dri2_surf->back->linear_copy = | ||
70 | + loader_dri_create_image(dri2_dpy->dri_screen, dri2_dpy->image, | ||
71 | + dri2_surf->base.Width, | ||
72 | + dri2_surf->base.Height, | ||
73 | + linear_dri_image_format, | ||
74 | + use_flags | __DRI_IMAGE_USE_LINEAR, | ||
75 | + &linear_mod, 1, NULL); | ||
76 | + | ||
77 | if (dri2_surf->back->linear_copy == NULL) | ||
78 | return -1; | ||
79 | } | ||
80 | @@ -609,26 +598,13 @@ get_back_bo(struct dri2_egl_surface *dri2_surf) | ||
81 | * createImageWithModifiers, then fall back to the old createImage, | ||
82 | * and hope it allocates an image which is acceptable to the winsys. | ||
83 | */ | ||
84 | - if (num_modifiers && dri2_dpy->image->base.version >= 15 && | ||
85 | - dri2_dpy->image->createImageWithModifiers) { | ||
86 | - dri2_surf->back->dri_image = | ||
87 | - dri2_dpy->image->createImageWithModifiers(dri2_dpy->dri_screen, | ||
88 | - dri2_surf->base.Width, | ||
89 | - dri2_surf->base.Height, | ||
90 | - dri_image_format, | ||
91 | - modifiers, | ||
92 | - num_modifiers, | ||
93 | - NULL); | ||
94 | - } else { | ||
95 | - dri2_surf->back->dri_image = | ||
96 | - dri2_dpy->image->createImage(dri2_dpy->dri_screen, | ||
97 | - dri2_surf->base.Width, | ||
98 | - dri2_surf->base.Height, | ||
99 | - dri_image_format, | ||
100 | - dri2_dpy->is_different_gpu ? | ||
101 | - 0 : use_flags, | ||
102 | - NULL); | ||
103 | - } | ||
104 | + dri2_surf->back->dri_image = | ||
105 | + loader_dri_create_image(dri2_dpy->dri_screen, dri2_dpy->image, | ||
106 | + dri2_surf->base.Width, | ||
107 | + dri2_surf->base.Height, | ||
108 | + dri_image_format, | ||
109 | + dri2_dpy->is_different_gpu ? 0 : use_flags, | ||
110 | + modifiers, num_modifiers, NULL); | ||
111 | |||
112 | dri2_surf->back->age = 0; | ||
113 | } | ||
114 | diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c | ||
115 | index 751b2e56497..dff0b3c7ecf 100644 | ||
116 | --- a/src/gbm/backends/dri/gbm_dri.c | ||
117 | +++ b/src/gbm/backends/dri/gbm_dri.c | ||
118 | @@ -47,6 +47,7 @@ | ||
119 | #include "gbm_driint.h" | ||
120 | |||
121 | #include "gbmint.h" | ||
122 | +#include "loader_dri_helper.h" | ||
123 | #include "loader.h" | ||
124 | #include "util/debug.h" | ||
125 | #include "util/macros.h" | ||
126 | @@ -1151,8 +1152,7 @@ gbm_dri_bo_create(struct gbm_device *gbm, | ||
127 | struct gbm_dri_device *dri = gbm_dri_device(gbm); | ||
128 | struct gbm_dri_bo *bo; | ||
129 | int dri_format; | ||
130 | - unsigned dri_use = 0, i; | ||
131 | - bool has_valid_modifier; | ||
132 | + unsigned dri_use = 0; | ||
133 | |||
134 | /* Callers of this may specify a modifier, or a dri usage, but not both. The | ||
135 | * newer modifier interface deprecates the older usage flags. | ||
136 | @@ -1191,50 +1191,21 @@ gbm_dri_bo_create(struct gbm_device *gbm, | ||
137 | /* Gallium drivers requires shared in order to get the handle/stride */ | ||
138 | dri_use |= __DRI_IMAGE_USE_SHARE; | ||
139 | |||
140 | - if (modifiers) { | ||
141 | - if (!dri->image || dri->image->base.version < 14 || | ||
142 | - !dri->image->createImageWithModifiers) { | ||
143 | - errno = ENOSYS; | ||
144 | - goto failed; | ||
145 | - } | ||
146 | - | ||
147 | - /* It's acceptable to create an image with INVALID modifier in the list, | ||
148 | - * but it cannot be on the only modifier (since it will certainly fail | ||
149 | - * later). While we could easily catch this after modifier creation, doing | ||
150 | - * the check here is a convenient debug check likely pointing at whatever | ||
151 | - * interface the client is using to build its modifier list. | ||
152 | - */ | ||
153 | - has_valid_modifier = false; | ||
154 | - for (i = 0; i < count; i++) { | ||
155 | - if (modifiers[i] != DRM_FORMAT_MOD_INVALID) { | ||
156 | - has_valid_modifier = true; | ||
157 | - break; | ||
158 | - } | ||
159 | - } | ||
160 | - if (!has_valid_modifier) { | ||
161 | - errno = EINVAL; | ||
162 | - goto failed; | ||
163 | - } | ||
164 | - | ||
165 | - bo->image = | ||
166 | - dri->image->createImageWithModifiers(dri->screen, | ||
167 | - width, height, | ||
168 | - dri_format, | ||
169 | - modifiers, count, | ||
170 | - bo); | ||
171 | - | ||
172 | - if (bo->image) { | ||
173 | - /* The client passed in a list of invalid modifiers */ | ||
174 | - assert(gbm_dri_bo_get_modifier(&bo->base) != DRM_FORMAT_MOD_INVALID); | ||
175 | - } | ||
176 | - } else { | ||
177 | - bo->image = dri->image->createImage(dri->screen, width, height, | ||
178 | - dri_format, dri_use, bo); | ||
179 | + if (modifiers && (dri->image->base.version < 14 || | ||
180 | + !dri->image->createImageWithModifiers)) { | ||
181 | + errno = ENOSYS; | ||
182 | + return NULL; | ||
183 | } | ||
184 | |||
185 | + bo->image = loader_dri_create_image(dri->screen, dri->image, width, height, | ||
186 | + dri_format, dri_use, modifiers, count, | ||
187 | + bo); | ||
188 | if (bo->image == NULL) | ||
189 | goto failed; | ||
190 | |||
191 | + if (modifiers) | ||
192 | + assert(gbm_dri_bo_get_modifier(&bo->base) != DRM_FORMAT_MOD_INVALID); | ||
193 | + | ||
194 | dri->image->queryImage(bo->image, __DRI_IMAGE_ATTRIB_HANDLE, | ||
195 | &bo->base.handle.s32); | ||
196 | dri->image->queryImage(bo->image, __DRI_IMAGE_ATTRIB_STRIDE, | ||
197 | diff --git a/src/loader/Makefile.sources b/src/loader/Makefile.sources | ||
198 | index b61ef1cd943..6627222ac30 100644 | ||
199 | --- a/src/loader/Makefile.sources | ||
200 | +++ b/src/loader/Makefile.sources | ||
201 | @@ -1,4 +1,6 @@ | ||
202 | LOADER_C_FILES := \ | ||
203 | + loader_dri_helper.c \ | ||
204 | + loader_dri_helper.h \ | ||
205 | loader.c \ | ||
206 | loader.h \ | ||
207 | pci_id_driver_map.c \ | ||
208 | diff --git a/src/loader/loader_dri_helper.c b/src/loader/loader_dri_helper.c | ||
209 | new file mode 100644 | ||
210 | index 00000000000..21419f087d6 | ||
211 | --- /dev/null | ||
212 | +++ b/src/loader/loader_dri_helper.c | ||
213 | @@ -0,0 +1,68 @@ | ||
214 | +/* | ||
215 | + * Permission to use, copy, modify, distribute, and sell this software and its | ||
216 | + * documentation for any purpose is hereby granted without fee, provided that | ||
217 | + * the above copyright notice appear in all copies and that both that copyright | ||
218 | + * notice and this permission notice appear in supporting documentation, and | ||
219 | + * that the name of the copyright holders not be used in advertising or | ||
220 | + * publicity pertaining to distribution of the software without specific, | ||
221 | + * written prior permission. The copyright holders make no representations | ||
222 | + * about the suitability of this software for any purpose. It is provided "as | ||
223 | + * is" without express or implied warranty. | ||
224 | + * | ||
225 | + * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, | ||
226 | + * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO | ||
227 | + * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR | ||
228 | + * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, | ||
229 | + * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | ||
230 | + * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE | ||
231 | + * OF THIS SOFTWARE. | ||
232 | + */ | ||
233 | + | ||
234 | +#include <errno.h> | ||
235 | +#include <stdbool.h> | ||
236 | +#include <stdio.h> | ||
237 | +#include <sys/types.h> | ||
238 | + | ||
239 | +#include <GL/gl.h> /* dri_interface needs GL types */ | ||
240 | +#include <GL/internal/dri_interface.h> | ||
241 | + | ||
242 | +#include "drm-uapi/drm_fourcc.h" | ||
243 | +#include "loader_dri_helper.h" | ||
244 | + | ||
245 | +__DRIimage *loader_dri_create_image(__DRIscreen *screen, | ||
246 | + const __DRIimageExtension *image, | ||
247 | + uint32_t width, uint32_t height, | ||
248 | + uint32_t dri_format, uint32_t dri_usage, | ||
249 | + const uint64_t *modifiers, | ||
250 | + unsigned int modifiers_count, | ||
251 | + void *loaderPrivate) | ||
252 | +{ | ||
253 | + if (modifiers && | ||
254 | + image->base.version > 14 && image->createImageWithModifiers) { | ||
255 | + bool has_valid_modifier = false; | ||
256 | + int i; | ||
257 | + | ||
258 | + /* It's acceptable to create an image with INVALID modifier in the list, | ||
259 | + * but it cannot be on the only modifier (since it will certainly fail | ||
260 | + * later). While we could easily catch this after modifier creation, doing | ||
261 | + * the check here is a convenient debug check likely pointing at whatever | ||
262 | + * interface the client is using to build its modifier list. | ||
263 | + */ | ||
264 | + for (i = 0; i < modifiers_count; i++) { | ||
265 | + if (modifiers[i] != DRM_FORMAT_MOD_INVALID) { | ||
266 | + has_valid_modifier = true; | ||
267 | + break; | ||
268 | + } | ||
269 | + } | ||
270 | + if (!has_valid_modifier) | ||
271 | + return NULL; | ||
272 | + | ||
273 | + return image->createImageWithModifiers(screen, width, height, | ||
274 | + dri_format, modifiers, | ||
275 | + modifiers_count, loaderPrivate); | ||
276 | + } | ||
277 | + | ||
278 | + /* No modifier given or fallback to the legacy createImage allowed */ | ||
279 | + return image->createImage(screen, width, height, dri_format, dri_usage, | ||
280 | + loaderPrivate); | ||
281 | +} | ||
282 | diff --git a/src/loader/loader_dri_helper.h b/src/loader/loader_dri_helper.h | ||
283 | new file mode 100644 | ||
284 | index 00000000000..e0aae69477b | ||
285 | --- /dev/null | ||
286 | +++ b/src/loader/loader_dri_helper.h | ||
287 | @@ -0,0 +1,33 @@ | ||
288 | +/* | ||
289 | + * Permission to use, copy, modify, distribute, and sell this software and its | ||
290 | + * documentation for any purpose is hereby granted without fee, provided that | ||
291 | + * the above copyright notice appear in all copies and that both that copyright | ||
292 | + * notice and this permission notice appear in supporting documentation, and | ||
293 | + * that the name of the copyright holders not be used in advertising or | ||
294 | + * publicity pertaining to distribution of the software without specific, | ||
295 | + * written prior permission. The copyright holders make no representations | ||
296 | + * about the suitability of this software for any purpose. It is provided "as | ||
297 | + * is" without express or implied warranty. | ||
298 | + * | ||
299 | + * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, | ||
300 | + * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO | ||
301 | + * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR | ||
302 | + * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, | ||
303 | + * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | ||
304 | + * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE | ||
305 | + * OF THIS SOFTWARE. | ||
306 | + */ | ||
307 | + | ||
308 | +#include <stdbool.h> | ||
309 | +#include <sys/types.h> | ||
310 | + | ||
311 | +#include <GL/gl.h> /* dri_interface needs GL types */ | ||
312 | +#include <GL/internal/dri_interface.h> | ||
313 | + | ||
314 | +__DRIimage *loader_dri_create_image(__DRIscreen *screen, | ||
315 | + const __DRIimageExtension *image, | ||
316 | + uint32_t width, uint32_t height, | ||
317 | + uint32_t dri_format, uint32_t dri_usage, | ||
318 | + const uint64_t *modifiers, | ||
319 | + unsigned int modifiers_count, | ||
320 | + void *loaderPrivate); | ||
321 | diff --git a/src/loader/meson.build b/src/loader/meson.build | ||
322 | index 34a43e33f09..57a93c3aa17 100644 | ||
323 | --- a/src/loader/meson.build | ||
324 | +++ b/src/loader/meson.build | ||
325 | @@ -47,7 +47,7 @@ endif | ||
326 | |||
327 | libloader = static_library( | ||
328 | 'loader', | ||
329 | - ['loader.c', 'pci_id_driver_map.c'], | ||
330 | + ['loader_dri_helper.c', 'loader.c', 'pci_id_driver_map.c'], | ||
331 | c_args : loader_c_args, | ||
332 | gnu_symbol_visibility : 'hidden', | ||
333 | include_directories : [inc_include, inc_src, inc_util], | ||
334 | -- | ||
335 | 2.31.1 | ||
336 | |||
diff --git a/recipes-graphics/mesa/mesa/0003-loader-dri3-convert-to-loader_dri_create_image.patch b/recipes-graphics/mesa/mesa/0003-loader-dri3-convert-to-loader_dri_create_image.patch deleted file mode 100644 index daba1a50..00000000 --- a/recipes-graphics/mesa/mesa/0003-loader-dri3-convert-to-loader_dri_create_image.patch +++ /dev/null | |||
@@ -1,93 +0,0 @@ | |||
1 | From 8fd5b16efc60ad666b05ec745109d0a482b6157b Mon Sep 17 00:00:00 2001 | ||
2 | From: Lucas Stach <l.stach@pengutronix.de> | ||
3 | Date: Tue, 15 Dec 2020 14:52:28 +0100 | ||
4 | Subject: [PATCH] loader/dri3: convert to loader_dri_create_image | ||
5 | |||
6 | Get rid of the code duplication and makes it easier to hook in a | ||
7 | new createImageWithModifiers2, but obscures the code flow a bit. | ||
8 | |||
9 | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> | ||
10 | Reviewed-by: Daniel Stone <daniels@collabora.com> | ||
11 | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8106> | ||
12 | Upstream-Status: Applied [https://gitlab.freedesktop.org/mesa/mesa/-/commit/8fd5b16efc60ad666b05ec745109d0a482b6157b] | ||
13 | --- | ||
14 | src/loader/loader_dri3_helper.c | 40 ++++++++++----------------------- | ||
15 | 1 file changed, 12 insertions(+), 28 deletions(-) | ||
16 | |||
17 | diff --git a/src/loader/loader_dri3_helper.c b/src/loader/loader_dri3_helper.c | ||
18 | index 6c4b704ae5b..c5e340e6942 100644 | ||
19 | --- a/src/loader/loader_dri3_helper.c | ||
20 | +++ b/src/loader/loader_dri3_helper.c | ||
21 | @@ -34,6 +34,7 @@ | ||
22 | |||
23 | #include <X11/Xlib-xcb.h> | ||
24 | |||
25 | +#include "loader_dri_helper.h" | ||
26 | #include "loader_dri3_helper.h" | ||
27 | #include "util/macros.h" | ||
28 | #include "drm-uapi/drm_fourcc.h" | ||
29 | @@ -1314,6 +1315,8 @@ dri3_alloc_render_buffer(struct loader_dri3_drawable *draw, unsigned int format, | ||
30 | struct xshmfence *shm_fence; | ||
31 | int buffer_fds[4], fence_fd; | ||
32 | int num_planes = 0; | ||
33 | + uint64_t *modifiers = NULL; | ||
34 | + uint32_t count = 0; | ||
35 | int i, mod; | ||
36 | int ret; | ||
37 | |||
38 | @@ -1348,8 +1351,6 @@ dri3_alloc_render_buffer(struct loader_dri3_drawable *draw, unsigned int format, | ||
39 | xcb_dri3_get_supported_modifiers_cookie_t mod_cookie; | ||
40 | xcb_dri3_get_supported_modifiers_reply_t *mod_reply; | ||
41 | xcb_generic_error_t *error = NULL; | ||
42 | - uint64_t *modifiers = NULL; | ||
43 | - uint32_t count = 0; | ||
44 | |||
45 | mod_cookie = xcb_dri3_get_supported_modifiers(draw->conn, | ||
46 | draw->window, | ||
47 | @@ -1395,34 +1396,17 @@ dri3_alloc_render_buffer(struct loader_dri3_drawable *draw, unsigned int format, | ||
48 | } | ||
49 | |||
50 | free(mod_reply); | ||
51 | - | ||
52 | - /* don't use createImageWithModifiers() if we have no | ||
53 | - * modifiers, other things depend on the use flags when | ||
54 | - * there are no modifiers to know that a buffer can be | ||
55 | - * shared. | ||
56 | - */ | ||
57 | - if (modifiers) { | ||
58 | - buffer->image = draw->ext->image->createImageWithModifiers(draw->dri_screen, | ||
59 | - width, height, | ||
60 | - format, | ||
61 | - modifiers, | ||
62 | - count, | ||
63 | - buffer); | ||
64 | - } | ||
65 | - | ||
66 | - free(modifiers); | ||
67 | } | ||
68 | #endif | ||
69 | - if (!buffer->image) | ||
70 | - buffer->image = draw->ext->image->createImage(draw->dri_screen, | ||
71 | - width, height, | ||
72 | - format, | ||
73 | - __DRI_IMAGE_USE_SHARE | | ||
74 | - __DRI_IMAGE_USE_SCANOUT | | ||
75 | - __DRI_IMAGE_USE_BACKBUFFER | | ||
76 | - (draw->is_protected_content ? | ||
77 | - __DRI_IMAGE_USE_PROTECTED : 0), | ||
78 | - buffer); | ||
79 | + buffer->image = loader_dri_create_image(draw->dri_screen, draw->ext->image, | ||
80 | + width, height, format, | ||
81 | + __DRI_IMAGE_USE_SHARE | | ||
82 | + __DRI_IMAGE_USE_SCANOUT | | ||
83 | + __DRI_IMAGE_USE_BACKBUFFER | | ||
84 | + (draw->is_protected_content ? | ||
85 | + __DRI_IMAGE_USE_PROTECTED : 0), | ||
86 | + modifiers, count, buffer); | ||
87 | + free(modifiers); | ||
88 | |||
89 | pixmap_buffer = buffer->image; | ||
90 | |||
91 | -- | ||
92 | 2.31.1 | ||
93 | |||
diff --git a/recipes-graphics/mesa/mesa/0004-loader-dri-hook-up-createImageWithModifiers2.patch b/recipes-graphics/mesa/mesa/0004-loader-dri-hook-up-createImageWithModifiers2.patch deleted file mode 100644 index c80978a7..00000000 --- a/recipes-graphics/mesa/mesa/0004-loader-dri-hook-up-createImageWithModifiers2.patch +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | From c03e79d7831f253b16d6f52f2fb959eb02257a8b Mon Sep 17 00:00:00 2001 | ||
2 | From: Lucas Stach <l.stach@pengutronix.de> | ||
3 | Date: Tue, 15 Dec 2020 14:59:21 +0100 | ||
4 | Subject: [PATCH] loader/dri: hook up createImageWithModifiers2 | ||
5 | |||
6 | Call into the new modifiers with usage createImage variant when available | ||
7 | to provide the DRI implementation with more context about the allocation. | ||
8 | |||
9 | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> | ||
10 | Reviewed-by: Daniel Stone <daniels@collabora.com> | ||
11 | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8106> | ||
12 | Upstream-Status: Applied [https://gitlab.freedesktop.org/mesa/mesa/-/commit/c03e79d7831f253b16d6f52f2fb959eb02257a8b] | ||
13 | --- | ||
14 | src/loader/loader_dri_helper.c | 12 +++++++++--- | ||
15 | 1 file changed, 9 insertions(+), 3 deletions(-) | ||
16 | |||
17 | diff --git a/src/loader/loader_dri_helper.c b/src/loader/loader_dri_helper.c | ||
18 | index 21419f087d6..972ca2da26a 100644 | ||
19 | --- a/src/loader/loader_dri_helper.c | ||
20 | +++ b/src/loader/loader_dri_helper.c | ||
21 | @@ -57,9 +57,15 @@ __DRIimage *loader_dri_create_image(__DRIscreen *screen, | ||
22 | if (!has_valid_modifier) | ||
23 | return NULL; | ||
24 | |||
25 | - return image->createImageWithModifiers(screen, width, height, | ||
26 | - dri_format, modifiers, | ||
27 | - modifiers_count, loaderPrivate); | ||
28 | + if (image->base.version >= 19 && image->createImageWithModifiers2) | ||
29 | + return image->createImageWithModifiers2(screen, width, height, | ||
30 | + dri_format, modifiers, | ||
31 | + modifiers_count, dri_usage, | ||
32 | + loaderPrivate); | ||
33 | + else | ||
34 | + return image->createImageWithModifiers(screen, width, height, | ||
35 | + dri_format, modifiers, | ||
36 | + modifiers_count, loaderPrivate); | ||
37 | } | ||
38 | |||
39 | /* No modifier given or fallback to the legacy createImage allowed */ | ||
40 | -- | ||
41 | 2.31.1 | ||
42 | |||
diff --git a/recipes-graphics/mesa/mesa/0005-gallium-dri-copy-image-use-in-dup_image.patch b/recipes-graphics/mesa/mesa/0005-gallium-dri-copy-image-use-in-dup_image.patch deleted file mode 100644 index 57251ed7..00000000 --- a/recipes-graphics/mesa/mesa/0005-gallium-dri-copy-image-use-in-dup_image.patch +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | From 3701cb9439058e71c1981bd80c5a9e1383815b08 Mon Sep 17 00:00:00 2001 | ||
2 | From: Lucas Stach <l.stach@pengutronix.de> | ||
3 | Date: Fri, 13 Nov 2020 14:26:23 +0100 | ||
4 | Subject: [PATCH] gallium/dri: copy image use in dup_image | ||
5 | |||
6 | Don't lose the use flags when dup'ing an image. | ||
7 | |||
8 | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> | ||
9 | Reviewed-by: Daniel Stone <daniels@collabora.com> | ||
10 | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8106> | ||
11 | Upstream-Status: Applied [https://gitlab.freedesktop.org/mesa/mesa/-/commit/3701cb9439058e71c1981bd80c5a9e1383815b08] | ||
12 | --- | ||
13 | src/gallium/frontends/dri/dri2.c | 1 + | ||
14 | 1 file changed, 1 insertion(+) | ||
15 | |||
16 | diff --git a/src/gallium/frontends/dri/dri2.c b/src/gallium/frontends/dri/dri2.c | ||
17 | index 9999b31b022..08a9ed9693c 100644 | ||
18 | --- a/src/gallium/frontends/dri/dri2.c | ||
19 | +++ b/src/gallium/frontends/dri/dri2.c | ||
20 | @@ -1326,6 +1326,7 @@ dri2_dup_image(__DRIimage *image, void *loaderPrivate) | ||
21 | img->dri_format = image->dri_format; | ||
22 | /* This should be 0 for sub images, but dup is also used for base images. */ | ||
23 | img->dri_components = image->dri_components; | ||
24 | + img->use = image->use; | ||
25 | img->loader_private = loaderPrivate; | ||
26 | img->sPriv = image->sPriv; | ||
27 | |||
28 | -- | ||
29 | 2.31.1 | ||
30 | |||
diff --git a/recipes-graphics/mesa/mesa/0006-dri-don-t-call-modifier-interfaces-when-modifiers_co.patch b/recipes-graphics/mesa/mesa/0006-dri-don-t-call-modifier-interfaces-when-modifiers_co.patch deleted file mode 100644 index 765cc0ac..00000000 --- a/recipes-graphics/mesa/mesa/0006-dri-don-t-call-modifier-interfaces-when-modifiers_co.patch +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | From 77fcf700826d6637e4e407c73c209f3b1718a26e Mon Sep 17 00:00:00 2001 | ||
2 | From: Lucas Stach <l.stach@pengutronix.de> | ||
3 | Date: Thu, 20 May 2021 18:07:12 +0200 | ||
4 | Subject: [PATCH] dri: don't call modifier interfaces when modifiers_count is 0 | ||
5 | |||
6 | The wayland EGL platform sets the modifier count to 0 in some cases | ||
7 | to signal that modifiers should not be used, even if a list of modifiers | ||
8 | is present. The loader_dri_create_image helper didn't handle this case | ||
9 | properly and called the modifierful driver interface with a 0 modifier | ||
10 | count, leading to the obvious outcome of the driver being unable to | ||
11 | allocate an image. | ||
12 | |||
13 | Fixes: cb9ae4273d68 ("dri: add loader_dri_create_image helper") | ||
14 | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> | ||
15 | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10903> | ||
16 | Upstream-Status: Applied [https://gitlab.freedesktop.org/mesa/mesa/-/commit/77fcf700826d6637e4e407c73c209f3b1718a26e] | ||
17 | --- | ||
18 | src/loader/loader_dri_helper.c | 2 +- | ||
19 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
20 | |||
21 | diff --git a/src/loader/loader_dri_helper.c b/src/loader/loader_dri_helper.c | ||
22 | index 972ca2da26a..ff6ce35953f 100644 | ||
23 | --- a/src/loader/loader_dri_helper.c | ||
24 | +++ b/src/loader/loader_dri_helper.c | ||
25 | @@ -37,7 +37,7 @@ __DRIimage *loader_dri_create_image(__DRIscreen *screen, | ||
26 | unsigned int modifiers_count, | ||
27 | void *loaderPrivate) | ||
28 | { | ||
29 | - if (modifiers && | ||
30 | + if (modifiers && modifiers_count > 0 && | ||
31 | image->base.version > 14 && image->createImageWithModifiers) { | ||
32 | bool has_valid_modifier = false; | ||
33 | int i; | ||
34 | -- | ||
35 | 2.31.1 | ||
36 | |||
diff --git a/recipes-graphics/mesa/mesa/0007-frontend-dri-add-EXPLICIT_FLUSH-hint-in-dri2_resourc.patch b/recipes-graphics/mesa/mesa/0007-frontend-dri-add-EXPLICIT_FLUSH-hint-in-dri2_resourc.patch deleted file mode 100644 index 43bd86bd..00000000 --- a/recipes-graphics/mesa/mesa/0007-frontend-dri-add-EXPLICIT_FLUSH-hint-in-dri2_resourc.patch +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | From 3824429da0e0e68b78534b1e0ab7e386bcb2b2e2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Lucas Stach <l.stach@pengutronix.de> | ||
3 | Date: Fri, 13 Nov 2020 14:59:52 +0100 | ||
4 | Subject: [PATCH] frontend/dri: add EXPLICIT_FLUSH hint in | ||
5 | dri2_resource_get_param | ||
6 | |||
7 | dri2_resource_get_param() is called from two different places right now. | ||
8 | Only one of them adds the EXPLICIT_FLUSH hint to the handle usage, which | ||
9 | may disable the optimizations provided by this hint without a reason. | ||
10 | |||
11 | Make sure to always add this hint when appropriate. | ||
12 | |||
13 | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> | ||
14 | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7603> | ||
15 | Upstream-Status: Applied [https://gitlab.freedesktop.org/mesa/mesa/-/commit/3824429da0e0e68b78534b1e0ab7e386bcb2b2e2] | ||
16 | --- | ||
17 | src/gallium/frontends/dri/dri2.c | 6 +++--- | ||
18 | 1 file changed, 3 insertions(+), 3 deletions(-) | ||
19 | |||
20 | diff --git a/src/gallium/frontends/dri/dri2.c b/src/gallium/frontends/dri/dri2.c | ||
21 | index 0220513368e..8ed47c25825 100644 | ||
22 | --- a/src/gallium/frontends/dri/dri2.c | ||
23 | +++ b/src/gallium/frontends/dri/dri2.c | ||
24 | @@ -1252,6 +1252,9 @@ dri2_resource_get_param(__DRIimage *image, enum pipe_resource_param param, | ||
25 | if (!pscreen->resource_get_param) | ||
26 | return false; | ||
27 | |||
28 | + if (image->use & __DRI_IMAGE_USE_BACKBUFFER) | ||
29 | + handle_usage |= PIPE_HANDLE_USAGE_EXPLICIT_FLUSH; | ||
30 | + | ||
31 | return pscreen->resource_get_param(pscreen, NULL, image->texture, | ||
32 | image->plane, 0, 0, param, handle_usage, | ||
33 | value); | ||
34 | @@ -1296,9 +1299,6 @@ dri2_query_image_by_resource_param(__DRIimage *image, int attrib, int *value) | ||
35 | |||
36 | handle_usage = PIPE_HANDLE_USAGE_FRAMEBUFFER_WRITE; | ||
37 | |||
38 | - if (image->use & __DRI_IMAGE_USE_BACKBUFFER) | ||
39 | - handle_usage |= PIPE_HANDLE_USAGE_EXPLICIT_FLUSH; | ||
40 | - | ||
41 | if (!dri2_resource_get_param(image, param, handle_usage, &res_param)) | ||
42 | return false; | ||
43 | |||
44 | -- | ||
45 | 2.31.1 | ||
46 | |||
diff --git a/recipes-graphics/mesa/mesa/0008-etnaviv-remove-double-assigment-of-surface-texture.patch b/recipes-graphics/mesa/mesa/0008-etnaviv-remove-double-assigment-of-surface-texture.patch deleted file mode 100644 index 7f43be10..00000000 --- a/recipes-graphics/mesa/mesa/0008-etnaviv-remove-double-assigment-of-surface-texture.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | From 1c539bbb06f318d2bd0f93701b532f77894e391d Mon Sep 17 00:00:00 2001 | ||
2 | From: Lucas Stach <l.stach@pengutronix.de> | ||
3 | Date: Fri, 13 Nov 2020 15:03:37 +0100 | ||
4 | Subject: [PATCH] etnaviv: remove double assigment of surface->texture | ||
5 | |||
6 | surf->base.texture is already assigned earlier via a proper | ||
7 | pipe_resource_reference call. Remove the superfluous assignement. | ||
8 | |||
9 | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> | ||
10 | Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> | ||
11 | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7603> | ||
12 | Upstream-Status: Applied [https://gitlab.freedesktop.org/mesa/mesa/-/commit/1c539bbb06f318d2bd0f93701b532f77894e391d] | ||
13 | --- | ||
14 | src/gallium/drivers/etnaviv/etnaviv_surface.c | 1 - | ||
15 | 1 file changed, 1 deletion(-) | ||
16 | |||
17 | diff --git a/src/gallium/drivers/etnaviv/etnaviv_surface.c b/src/gallium/drivers/etnaviv/etnaviv_surface.c | ||
18 | index c78973bdb09..52a937652d2 100644 | ||
19 | --- a/src/gallium/drivers/etnaviv/etnaviv_surface.c | ||
20 | +++ b/src/gallium/drivers/etnaviv/etnaviv_surface.c | ||
21 | @@ -112,7 +112,6 @@ etna_create_surface(struct pipe_context *pctx, struct pipe_resource *prsc, | ||
22 | etna_screen_resource_alloc_ts(pctx->screen, rsc); | ||
23 | } | ||
24 | |||
25 | - surf->base.texture = &rsc->base; | ||
26 | surf->base.format = templat->format; | ||
27 | surf->base.width = rsc->levels[level].width; | ||
28 | surf->base.height = rsc->levels[level].height; | ||
29 | -- | ||
30 | 2.31.1 | ||
31 | |||
diff --git a/recipes-graphics/mesa/mesa/0009-etnaviv-flush-used-render-buffers-on-context-flush-w.patch b/recipes-graphics/mesa/mesa/0009-etnaviv-flush-used-render-buffers-on-context-flush-w.patch deleted file mode 100644 index 4534cd5a..00000000 --- a/recipes-graphics/mesa/mesa/0009-etnaviv-flush-used-render-buffers-on-context-flush-w.patch +++ /dev/null | |||
@@ -1,168 +0,0 @@ | |||
1 | From 7b9d8d1936d72af6fd1bfd30afed354bb76b4c0c Mon Sep 17 00:00:00 2001 | ||
2 | From: Lucas Stach <l.stach@pengutronix.de> | ||
3 | Date: Fri, 13 Nov 2020 15:05:55 +0100 | ||
4 | Subject: [PATCH] etnaviv: flush used render buffers on context flush when | ||
5 | neccessary | ||
6 | |||
7 | Some resources like backbuffers are explicitly flushed by the frontend | ||
8 | at the appropriate time, others however won't get flushed explicitly. | ||
9 | Remember those resources when they get emitted as a render buffer and | ||
10 | flush them on a context flush to make their content visible to other | ||
11 | entities sharing the buffer. | ||
12 | |||
13 | We still keep the optimized path for most resources where the frontend | ||
14 | promises to do the flushing for us and only enable implicit flushing | ||
15 | when a buffer handle is exported/imported without the | ||
16 | PIPE_HANDLE_USAGE_EXPLICIT_FLUSH flag set. | ||
17 | |||
18 | Signed-off-by: Lucas Stach <l.stach@pengutronix.de> | ||
19 | Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> | ||
20 | Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7603> | ||
21 | Upstream-Status: Applied [https://gitlab.freedesktop.org/mesa/mesa/-/commit/7b9d8d1936d72af6fd1bfd30afed354bb76b4c0c] | ||
22 | --- | ||
23 | src/gallium/drivers/etnaviv/etnaviv_context.c | 16 ++++++++++++++++ | ||
24 | src/gallium/drivers/etnaviv/etnaviv_context.h | 3 +++ | ||
25 | src/gallium/drivers/etnaviv/etnaviv_resource.c | 7 +++++++ | ||
26 | src/gallium/drivers/etnaviv/etnaviv_resource.h | 2 ++ | ||
27 | src/gallium/drivers/etnaviv/etnaviv_state.c | 18 ++++++++++++++++++ | ||
28 | 5 files changed, 46 insertions(+) | ||
29 | |||
30 | diff --git a/src/gallium/drivers/etnaviv/etnaviv_context.c b/src/gallium/drivers/etnaviv/etnaviv_context.c | ||
31 | index 4dd9e427ea1..581edc78d2f 100644 | ||
32 | --- a/src/gallium/drivers/etnaviv/etnaviv_context.c | ||
33 | +++ b/src/gallium/drivers/etnaviv/etnaviv_context.c | ||
34 | @@ -129,6 +129,9 @@ etna_context_destroy(struct pipe_context *pctx) | ||
35 | _mesa_set_destroy(ctx->used_resources_write, NULL); | ||
36 | |||
37 | } | ||
38 | + if (ctx->flush_resources) | ||
39 | + _mesa_set_destroy(ctx->flush_resources, NULL); | ||
40 | + | ||
41 | mtx_unlock(&ctx->lock); | ||
42 | |||
43 | if (ctx->dummy_desc_bo) | ||
44 | @@ -490,6 +493,14 @@ etna_flush(struct pipe_context *pctx, struct pipe_fence_handle **fence, | ||
45 | list_for_each_entry(struct etna_acc_query, aq, &ctx->active_acc_queries, node) | ||
46 | etna_acc_query_suspend(aq, ctx); | ||
47 | |||
48 | + /* flush all resources that need an implicit flush */ | ||
49 | + set_foreach(ctx->flush_resources, entry) { | ||
50 | + struct pipe_resource *prsc = (struct pipe_resource *)entry->key; | ||
51 | + | ||
52 | + pctx->flush_resource(pctx, prsc); | ||
53 | + } | ||
54 | + _mesa_set_clear(ctx->flush_resources, NULL); | ||
55 | + | ||
56 | etna_cmd_stream_flush(ctx->stream, ctx->in_fence_fd, | ||
57 | (flags & PIPE_FLUSH_FENCE_FD) ? &out_fence_fd : NULL); | ||
58 | |||
59 | @@ -596,6 +607,11 @@ etna_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags) | ||
60 | if (!ctx->used_resources_write) | ||
61 | goto fail; | ||
62 | |||
63 | + ctx->flush_resources = _mesa_set_create(NULL, _mesa_hash_pointer, | ||
64 | + _mesa_key_pointer_equal); | ||
65 | + if (!ctx->flush_resources) | ||
66 | + goto fail; | ||
67 | + | ||
68 | mtx_init(&ctx->lock, mtx_recursive); | ||
69 | |||
70 | /* context ctxate setup */ | ||
71 | diff --git a/src/gallium/drivers/etnaviv/etnaviv_context.h b/src/gallium/drivers/etnaviv/etnaviv_context.h | ||
72 | index 72000f2122b..21e4d3f33ca 100644 | ||
73 | --- a/src/gallium/drivers/etnaviv/etnaviv_context.h | ||
74 | +++ b/src/gallium/drivers/etnaviv/etnaviv_context.h | ||
75 | @@ -206,6 +206,9 @@ struct etna_context { | ||
76 | struct set *used_resources_read; | ||
77 | struct set *used_resources_write; | ||
78 | |||
79 | + /* resources that must be flushed implicitly at the context flush time */ | ||
80 | + struct set *flush_resources; | ||
81 | + | ||
82 | mtx_t lock; | ||
83 | }; | ||
84 | |||
85 | diff --git a/src/gallium/drivers/etnaviv/etnaviv_resource.c b/src/gallium/drivers/etnaviv/etnaviv_resource.c | ||
86 | index ae4f24b9b44..0c8c28e66aa 100644 | ||
87 | --- a/src/gallium/drivers/etnaviv/etnaviv_resource.c | ||
88 | +++ b/src/gallium/drivers/etnaviv/etnaviv_resource.c | ||
89 | @@ -265,6 +265,7 @@ etna_resource_alloc(struct pipe_screen *pscreen, unsigned layout, | ||
90 | rsc->base.nr_samples = nr_samples; | ||
91 | rsc->layout = layout; | ||
92 | rsc->halign = halign; | ||
93 | + rsc->explicit_flush = true; | ||
94 | |||
95 | pipe_reference_init(&rsc->base.reference, 1); | ||
96 | util_range_init(&rsc->valid_buffer_range); | ||
97 | @@ -519,6 +520,9 @@ etna_resource_from_handle(struct pipe_screen *pscreen, | ||
98 | rsc->layout = modifier_to_layout(handle->modifier); | ||
99 | rsc->halign = TEXTURE_HALIGN_FOUR; | ||
100 | |||
101 | + if (usage & PIPE_HANDLE_USAGE_EXPLICIT_FLUSH) | ||
102 | + rsc->explicit_flush = true; | ||
103 | + | ||
104 | level->width = tmpl->width0; | ||
105 | level->height = tmpl->height0; | ||
106 | level->depth = tmpl->depth0; | ||
107 | @@ -584,6 +588,9 @@ etna_resource_get_handle(struct pipe_screen *pscreen, | ||
108 | handle->offset = rsc->levels[0].offset; | ||
109 | handle->modifier = layout_to_modifier(rsc->layout); | ||
110 | |||
111 | + if (!(usage & PIPE_HANDLE_USAGE_EXPLICIT_FLUSH)) | ||
112 | + rsc->explicit_flush = false; | ||
113 | + | ||
114 | if (handle->type == WINSYS_HANDLE_TYPE_SHARED) { | ||
115 | return etna_bo_get_name(rsc->bo, &handle->handle) == 0; | ||
116 | } else if (handle->type == WINSYS_HANDLE_TYPE_KMS) { | ||
117 | diff --git a/src/gallium/drivers/etnaviv/etnaviv_resource.h b/src/gallium/drivers/etnaviv/etnaviv_resource.h | ||
118 | index cb83e891d34..167cf4ed069 100644 | ||
119 | --- a/src/gallium/drivers/etnaviv/etnaviv_resource.h | ||
120 | +++ b/src/gallium/drivers/etnaviv/etnaviv_resource.h | ||
121 | @@ -93,6 +93,8 @@ struct etna_resource { | ||
122 | struct pipe_resource *texture; | ||
123 | /* for when PE doesn't support the base layout */ | ||
124 | struct pipe_resource *render; | ||
125 | + /* frontend flushes resource via an explicit call to flush_resource */ | ||
126 | + bool explicit_flush; | ||
127 | |||
128 | enum etna_resource_status status; | ||
129 | |||
130 | diff --git a/src/gallium/drivers/etnaviv/etnaviv_state.c b/src/gallium/drivers/etnaviv/etnaviv_state.c | ||
131 | index 44b1c4f8fab..1ad839799f2 100644 | ||
132 | --- a/src/gallium/drivers/etnaviv/etnaviv_state.c | ||
133 | +++ b/src/gallium/drivers/etnaviv/etnaviv_state.c | ||
134 | @@ -753,6 +753,21 @@ etna_update_zsa(struct etna_context *ctx) | ||
135 | return true; | ||
136 | } | ||
137 | |||
138 | +static bool | ||
139 | +etna_record_flush_resources(struct etna_context *ctx) | ||
140 | +{ | ||
141 | + struct pipe_framebuffer_state *fb = &ctx->framebuffer_s; | ||
142 | + | ||
143 | + if (fb->nr_cbufs > 0) { | ||
144 | + struct etna_surface *surf = etna_surface(fb->cbufs[0]); | ||
145 | + | ||
146 | + if (!etna_resource(surf->prsc)->explicit_flush) | ||
147 | + _mesa_set_add(ctx->flush_resources, surf->prsc); | ||
148 | + } | ||
149 | + | ||
150 | + return true; | ||
151 | +} | ||
152 | + | ||
153 | struct etna_state_updater { | ||
154 | bool (*update)(struct etna_context *ctx); | ||
155 | uint32_t dirty; | ||
156 | @@ -780,6 +795,9 @@ static const struct etna_state_updater etna_state_updates[] = { | ||
157 | }, | ||
158 | { | ||
159 | etna_update_zsa, ETNA_DIRTY_ZSA | ETNA_DIRTY_SHADER, | ||
160 | + }, | ||
161 | + { | ||
162 | + etna_record_flush_resources, ETNA_DIRTY_FRAMEBUFFER, | ||
163 | } | ||
164 | }; | ||
165 | |||
166 | -- | ||
167 | 2.31.1 | ||
168 | |||
diff --git a/recipes-graphics/mesa/mesa_%.bbappend b/recipes-graphics/mesa/mesa_%.bbappend index fedadab2..acddfbc6 100644 --- a/recipes-graphics/mesa/mesa_%.bbappend +++ b/recipes-graphics/mesa/mesa_%.bbappend | |||
@@ -1,16 +1,3 @@ | |||
1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:" | ||
2 | SRC_URI:append:use-mainline-bsp = " \ | ||
3 | file://0001-dri-add-createImageWithModifiers2-interface.patch \ | ||
4 | file://0002-dri-add-loader_dri_create_image-helper.patch \ | ||
5 | file://0003-loader-dri3-convert-to-loader_dri_create_image.patch \ | ||
6 | file://0004-loader-dri-hook-up-createImageWithModifiers2.patch \ | ||
7 | file://0005-gallium-dri-copy-image-use-in-dup_image.patch \ | ||
8 | file://0006-dri-don-t-call-modifier-interfaces-when-modifiers_co.patch \ | ||
9 | file://0007-frontend-dri-add-EXPLICIT_FLUSH-hint-in-dri2_resourc.patch \ | ||
10 | file://0008-etnaviv-remove-double-assigment-of-surface-texture.patch \ | ||
11 | file://0009-etnaviv-flush-used-render-buffers-on-context-flush-w.patch \ | ||
12 | " | ||
13 | |||
14 | PROVIDES:remove:imxgpu = "virtual/egl" | 1 | PROVIDES:remove:imxgpu = "virtual/egl" |
15 | PROVIDES:remove:imxgpu3d = "virtual/libgl virtual/libgles1 virtual/libgles2" | 2 | PROVIDES:remove:imxgpu3d = "virtual/libgl virtual/libgles1 virtual/libgles2" |
16 | 3 | ||
diff --git a/recipes-kernel/kernel-modules/kernel-module-qca6174_3.0.bb b/recipes-kernel/kernel-modules/kernel-module-qca6174_3.0.bb deleted file mode 100644 index 40eadef3..00000000 --- a/recipes-kernel/kernel-modules/kernel-module-qca6174_3.0.bb +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | require kernel-module-qcacld-lea.inc | ||
2 | |||
3 | SUMMARY = "Qualcomm WiFi driver for QCA module 6174" | ||
4 | |||
5 | EXTRA_OEMAKE += " \ | ||
6 | CONFIG_ROME_IF=pci \ | ||
7 | CONFIG_WLAN_FEATURE_11W=y \ | ||
8 | CONFIG_WLAN_FEATURE_FILS=y \ | ||
9 | CONFIG_WLAN_WAPI_MODE_11AC_DISABLE=y \ | ||
10 | MODNAME=qca6174 \ | ||
11 | CONFIG_WLAN_FEATURE_DSRC=y \ | ||
12 | " | ||
13 | |||
14 | RDEPENDS:${PN} += "firmware-qca6174" | ||
diff --git a/recipes-kernel/kernel-modules/kernel-module-qca9377_3.1.bb b/recipes-kernel/kernel-modules/kernel-module-qca9377_3.1.bb deleted file mode 100644 index 92bc01fc..00000000 --- a/recipes-kernel/kernel-modules/kernel-module-qca9377_3.1.bb +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | require kernel-module-qcacld-lea.inc | ||
2 | |||
3 | SUMMARY = "Qualcomm WiFi driver for QCA module 9377" | ||
4 | |||
5 | EXTRA_OEMAKE += " \ | ||
6 | CONFIG_CLD_HL_SDIO_CORE=y \ | ||
7 | CONFIG_FEATURE_COEX_PTA_CONFIG_ENABLE=y \ | ||
8 | CONFIG_PER_VDEV_TX_DESC_POOL=1 \ | ||
9 | CONFIG_QCA_LL_TX_FLOW_CT=1 \ | ||
10 | CONFIG_QCA_SUPPORT_TXRX_DRIVER_TCP_DEL_ACK=y \ | ||
11 | CONFIG_WLAN_FEATURE_FILS=y \ | ||
12 | CONFIG_WLAN_WAPI_MODE_11AC_DISABLE=y \ | ||
13 | MODNAME=qca9377 \ | ||
14 | SAP_AUTH_OFFLOAD=1 \ | ||
15 | " | ||
16 | |||
17 | RDEPENDS:${PN} += "firmware-qca9377" | ||
diff --git a/recipes-kernel/kernel-modules/kernel-module-qcacld-lea.inc b/recipes-kernel/kernel-modules/kernel-module-qcacld-lea.inc deleted file mode 100644 index a7b8a4e6..00000000 --- a/recipes-kernel/kernel-modules/kernel-module-qcacld-lea.inc +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | SUMMARY = "Qualcomm WiFi driver for QCA module 9377 and 6174" | ||
2 | LICENSE = "BSD & GPLv2" | ||
3 | LIC_FILES_CHKSUM = "file://CORE/HDD/src/wlan_hdd_main.c;beginline=1;endline=20;md5=ec8d62116b13db773825ebf7cf91be1d;" | ||
4 | |||
5 | QCACLD_SRC ?= "git://source.codeaurora.org/external/imx/qcacld-2.0-imx.git;protocol=https" | ||
6 | SRC_URI = "${QCACLD_SRC};branch=IMX_CNSS.LEA.NRT_3.0_KRL5.4" | ||
7 | SRCREV = "7dc91e5977f31d60741c55682564788c0f930163" | ||
8 | |||
9 | S = "${WORKDIR}/git" | ||
10 | |||
11 | inherit module | ||
12 | |||
13 | EXTRA_OEMAKE += " \ | ||
14 | CONFIG_CFG80211_INTERNAL_REGDB=y \ | ||
15 | CONFIG_HDD_WLAN_WAIT_TIME=10000 \ | ||
16 | CONFIG_LINUX_QCMBR=y \ | ||
17 | CONFIG_NON_QC_PLATFORM=y \ | ||
18 | CONFIG_PMF_SUPPORT=y \ | ||
19 | TARGET_BUILD_VARIANT=user \ | ||
20 | " | ||
21 | |||
22 | COMPATIBLE_MACHINE = "(imx)" | ||
23 | COMPATIBLE_HOST:libc-musl = 'null' | ||
diff --git a/recipes-kernel/linux/linux-fslc-mfgtool_5.12.bb b/recipes-kernel/linux/linux-fslc-mfgtool_5.14.bb index 09d35c91..09d35c91 100644 --- a/recipes-kernel/linux/linux-fslc-mfgtool_5.12.bb +++ b/recipes-kernel/linux/linux-fslc-mfgtool_5.14.bb | |||
diff --git a/recipes-kernel/linux/linux-fslc/armv8a/defconfig b/recipes-kernel/linux/linux-fslc/armv8a/defconfig index 612b48fd..65a142a3 100644 --- a/recipes-kernel/linux/linux-fslc/armv8a/defconfig +++ b/recipes-kernel/linux/linux-fslc/armv8a/defconfig | |||
@@ -29,8 +29,10 @@ CONFIG_KALLSYMS_ALL=y | |||
29 | CONFIG_PROFILING=y | 29 | CONFIG_PROFILING=y |
30 | CONFIG_ARCH_ACTIONS=y | 30 | CONFIG_ARCH_ACTIONS=y |
31 | CONFIG_ARCH_AGILEX=y | 31 | CONFIG_ARCH_AGILEX=y |
32 | CONFIG_ARCH_N5X=y | ||
32 | CONFIG_ARCH_SUNXI=y | 33 | CONFIG_ARCH_SUNXI=y |
33 | CONFIG_ARCH_ALPINE=y | 34 | CONFIG_ARCH_ALPINE=y |
35 | CONFIG_ARCH_APPLE=y | ||
34 | CONFIG_ARCH_BCM2835=y | 36 | CONFIG_ARCH_BCM2835=y |
35 | CONFIG_ARCH_BCM4908=y | 37 | CONFIG_ARCH_BCM4908=y |
36 | CONFIG_ARCH_BCM_IPROC=y | 38 | CONFIG_ARCH_BCM_IPROC=y |
@@ -41,6 +43,7 @@ CONFIG_ARCH_K3=y | |||
41 | CONFIG_ARCH_LAYERSCAPE=y | 43 | CONFIG_ARCH_LAYERSCAPE=y |
42 | CONFIG_ARCH_LG1K=y | 44 | CONFIG_ARCH_LG1K=y |
43 | CONFIG_ARCH_HISI=y | 45 | CONFIG_ARCH_HISI=y |
46 | CONFIG_ARCH_KEEMBAY=y | ||
44 | CONFIG_ARCH_MEDIATEK=y | 47 | CONFIG_ARCH_MEDIATEK=y |
45 | CONFIG_ARCH_MESON=y | 48 | CONFIG_ARCH_MESON=y |
46 | CONFIG_ARCH_MVEBU=y | 49 | CONFIG_ARCH_MVEBU=y |
@@ -50,7 +53,7 @@ CONFIG_ARCH_RENESAS=y | |||
50 | CONFIG_ARCH_ROCKCHIP=y | 53 | CONFIG_ARCH_ROCKCHIP=y |
51 | CONFIG_ARCH_S32=y | 54 | CONFIG_ARCH_S32=y |
52 | CONFIG_ARCH_SEATTLE=y | 55 | CONFIG_ARCH_SEATTLE=y |
53 | CONFIG_ARCH_STRATIX10=y | 56 | CONFIG_ARCH_INTEL_SOCFPGA=y |
54 | CONFIG_ARCH_SYNQUACER=y | 57 | CONFIG_ARCH_SYNQUACER=y |
55 | CONFIG_ARCH_TEGRA=y | 58 | CONFIG_ARCH_TEGRA=y |
56 | CONFIG_ARCH_SPRD=y | 59 | CONFIG_ARCH_SPRD=y |
@@ -226,6 +229,7 @@ CONFIG_PCI_HOST_THUNDER_PEM=y | |||
226 | CONFIG_PCI_HOST_THUNDER_ECAM=y | 229 | CONFIG_PCI_HOST_THUNDER_ECAM=y |
227 | CONFIG_PCIE_ROCKCHIP_HOST=m | 230 | CONFIG_PCIE_ROCKCHIP_HOST=m |
228 | CONFIG_PCIE_BRCMSTB=m | 231 | CONFIG_PCIE_BRCMSTB=m |
232 | CONFIG_PCI_IMX6=y | ||
229 | CONFIG_PCI_LAYERSCAPE=y | 233 | CONFIG_PCI_LAYERSCAPE=y |
230 | CONFIG_PCIE_LAYERSCAPE_GEN4=y | 234 | CONFIG_PCIE_LAYERSCAPE_GEN4=y |
231 | CONFIG_PCI_HISI=y | 235 | CONFIG_PCI_HISI=y |
@@ -286,6 +290,7 @@ CONFIG_SCSI_UFSHCD=y | |||
286 | CONFIG_SCSI_UFSHCD_PLATFORM=y | 290 | CONFIG_SCSI_UFSHCD_PLATFORM=y |
287 | CONFIG_SCSI_UFS_QCOM=m | 291 | CONFIG_SCSI_UFS_QCOM=m |
288 | CONFIG_SCSI_UFS_HISI=y | 292 | CONFIG_SCSI_UFS_HISI=y |
293 | CONFIG_SCSI_UFS_EXYNOS=y | ||
289 | CONFIG_ATA=y | 294 | CONFIG_ATA=y |
290 | CONFIG_SATA_AHCI=y | 295 | CONFIG_SATA_AHCI=y |
291 | CONFIG_SATA_AHCI_PLATFORM=y | 296 | CONFIG_SATA_AHCI_PLATFORM=y |
@@ -360,7 +365,7 @@ CONFIG_MESON_GXL_PHY=m | |||
360 | CONFIG_MICREL_PHY=y | 365 | CONFIG_MICREL_PHY=y |
361 | CONFIG_MICROSEMI_PHY=y | 366 | CONFIG_MICROSEMI_PHY=y |
362 | CONFIG_AT803X_PHY=y | 367 | CONFIG_AT803X_PHY=y |
363 | CONFIG_REALTEK_PHY=m | 368 | CONFIG_REALTEK_PHY=y |
364 | CONFIG_ROCKCHIP_PHY=y | 369 | CONFIG_ROCKCHIP_PHY=y |
365 | CONFIG_VITESSE_PHY=y | 370 | CONFIG_VITESSE_PHY=y |
366 | CONFIG_USB_PEGASUS=m | 371 | CONFIG_USB_PEGASUS=m |
@@ -449,6 +454,7 @@ CONFIG_I2C_GPIO=m | |||
449 | CONFIG_I2C_IMX=y | 454 | CONFIG_I2C_IMX=y |
450 | CONFIG_I2C_IMX_LPI2C=y | 455 | CONFIG_I2C_IMX_LPI2C=y |
451 | CONFIG_I2C_MESON=y | 456 | CONFIG_I2C_MESON=y |
457 | CONFIG_I2C_MT65XX=y | ||
452 | CONFIG_I2C_MV64XXX=y | 458 | CONFIG_I2C_MV64XXX=y |
453 | CONFIG_I2C_OMAP=y | 459 | CONFIG_I2C_OMAP=y |
454 | CONFIG_I2C_OWL=y | 460 | CONFIG_I2C_OWL=y |
@@ -466,6 +472,9 @@ CONFIG_SPI=y | |||
466 | CONFIG_SPI_ARMADA_3700=y | 472 | CONFIG_SPI_ARMADA_3700=y |
467 | CONFIG_SPI_BCM2835=m | 473 | CONFIG_SPI_BCM2835=m |
468 | CONFIG_SPI_BCM2835AUX=m | 474 | CONFIG_SPI_BCM2835AUX=m |
475 | CONFIG_SPI_DESIGNWARE=m | ||
476 | CONFIG_SPI_DW_DMA=y | ||
477 | CONFIG_SPI_DW_MMIO=m | ||
469 | CONFIG_SPI_FSL_LPSPI=y | 478 | CONFIG_SPI_FSL_LPSPI=y |
470 | CONFIG_SPI_FSL_QUADSPI=y | 479 | CONFIG_SPI_FSL_QUADSPI=y |
471 | CONFIG_SPI_NXP_FLEXSPI=y | 480 | CONFIG_SPI_NXP_FLEXSPI=y |
@@ -484,7 +493,6 @@ CONFIG_SPI_S3C64XX=y | |||
484 | CONFIG_SPI_SH_MSIOF=m | 493 | CONFIG_SPI_SH_MSIOF=m |
485 | CONFIG_SPI_SUN6I=y | 494 | CONFIG_SPI_SUN6I=y |
486 | CONFIG_SPI_SPIDEV=m | 495 | CONFIG_SPI_SPIDEV=m |
487 | CONFIG_MTK_PMIC_WRAP=m | ||
488 | CONFIG_SPMI=y | 496 | CONFIG_SPMI=y |
489 | CONFIG_PINCTRL_SINGLE=y | 497 | CONFIG_PINCTRL_SINGLE=y |
490 | CONFIG_PINCTRL_MAX77620=y | 498 | CONFIG_PINCTRL_MAX77620=y |
@@ -495,6 +503,7 @@ CONFIG_PINCTRL_IMX8MM=y | |||
495 | CONFIG_PINCTRL_IMX8MN=y | 503 | CONFIG_PINCTRL_IMX8MN=y |
496 | CONFIG_PINCTRL_IMX8MP=y | 504 | CONFIG_PINCTRL_IMX8MP=y |
497 | CONFIG_PINCTRL_IMX8MQ=y | 505 | CONFIG_PINCTRL_IMX8MQ=y |
506 | CONFIG_PINCTRL_IMX8QM=y | ||
498 | CONFIG_PINCTRL_IMX8QXP=y | 507 | CONFIG_PINCTRL_IMX8QXP=y |
499 | CONFIG_PINCTRL_IMX8DXL=y | 508 | CONFIG_PINCTRL_IMX8DXL=y |
500 | CONFIG_PINCTRL_MSM=y | 509 | CONFIG_PINCTRL_MSM=y |
@@ -511,6 +520,7 @@ CONFIG_PINCTRL_SC7180=y | |||
511 | CONFIG_PINCTRL_SDM845=y | 520 | CONFIG_PINCTRL_SDM845=y |
512 | CONFIG_PINCTRL_SM8150=y | 521 | CONFIG_PINCTRL_SM8150=y |
513 | CONFIG_PINCTRL_SM8250=y | 522 | CONFIG_PINCTRL_SM8250=y |
523 | CONFIG_PINCTRL_SM8350=y | ||
514 | CONFIG_PINCTRL_LPASS_LPI=m | 524 | CONFIG_PINCTRL_LPASS_LPI=m |
515 | CONFIG_GPIO_ALTERA=m | 525 | CONFIG_GPIO_ALTERA=m |
516 | CONFIG_GPIO_DAVINCI=y | 526 | CONFIG_GPIO_DAVINCI=y |
@@ -521,6 +531,7 @@ CONFIG_GPIO_MXC=y | |||
521 | CONFIG_GPIO_PL061=y | 531 | CONFIG_GPIO_PL061=y |
522 | CONFIG_GPIO_RCAR=y | 532 | CONFIG_GPIO_RCAR=y |
523 | CONFIG_GPIO_UNIPHIER=y | 533 | CONFIG_GPIO_UNIPHIER=y |
534 | CONFIG_GPIO_VISCONTI=y | ||
524 | CONFIG_GPIO_WCD934X=m | 535 | CONFIG_GPIO_WCD934X=m |
525 | CONFIG_GPIO_XGENE=y | 536 | CONFIG_GPIO_XGENE=y |
526 | CONFIG_GPIO_XGENE_SB=y | 537 | CONFIG_GPIO_XGENE_SB=y |
@@ -595,6 +606,7 @@ CONFIG_MFD_EXYNOS_LPASS=m | |||
595 | CONFIG_MFD_HI6421_PMIC=y | 606 | CONFIG_MFD_HI6421_PMIC=y |
596 | CONFIG_MFD_HI655X_PMIC=y | 607 | CONFIG_MFD_HI655X_PMIC=y |
597 | CONFIG_MFD_MAX77620=y | 608 | CONFIG_MFD_MAX77620=y |
609 | CONFIG_MFD_MT6397=y | ||
598 | CONFIG_MFD_SPMI_PMIC=y | 610 | CONFIG_MFD_SPMI_PMIC=y |
599 | CONFIG_MFD_RK808=y | 611 | CONFIG_MFD_RK808=y |
600 | CONFIG_MFD_SEC_CORE=y | 612 | CONFIG_MFD_SEC_CORE=y |
@@ -612,6 +624,8 @@ CONFIG_REGULATOR_HI655X=y | |||
612 | CONFIG_REGULATOR_MAX77620=y | 624 | CONFIG_REGULATOR_MAX77620=y |
613 | CONFIG_REGULATOR_MAX8973=y | 625 | CONFIG_REGULATOR_MAX8973=y |
614 | CONFIG_REGULATOR_MP8859=y | 626 | CONFIG_REGULATOR_MP8859=y |
627 | CONFIG_REGULATOR_MT6358=y | ||
628 | CONFIG_REGULATOR_MT6397=y | ||
615 | CONFIG_REGULATOR_PCA9450=y | 629 | CONFIG_REGULATOR_PCA9450=y |
616 | CONFIG_REGULATOR_PF8X00=y | 630 | CONFIG_REGULATOR_PF8X00=y |
617 | CONFIG_REGULATOR_PFUZE100=y | 631 | CONFIG_REGULATOR_PFUZE100=y |
@@ -650,6 +664,7 @@ CONFIG_VIDEO_SAMSUNG_EXYNOS_GSC=m | |||
650 | CONFIG_VIDEO_RENESAS_FDP1=m | 664 | CONFIG_VIDEO_RENESAS_FDP1=m |
651 | CONFIG_VIDEO_RENESAS_FCP=m | 665 | CONFIG_VIDEO_RENESAS_FCP=m |
652 | CONFIG_VIDEO_RENESAS_VSP1=m | 666 | CONFIG_VIDEO_RENESAS_VSP1=m |
667 | CONFIG_VIDEO_QCOM_VENUS=m | ||
653 | CONFIG_SDR_PLATFORM_DRIVERS=y | 668 | CONFIG_SDR_PLATFORM_DRIVERS=y |
654 | CONFIG_VIDEO_RCAR_DRIF=m | 669 | CONFIG_VIDEO_RCAR_DRIF=m |
655 | CONFIG_VIDEO_IMX219=m | 670 | CONFIG_VIDEO_IMX219=m |
@@ -683,13 +698,16 @@ CONFIG_DRM_MSM=m | |||
683 | CONFIG_DRM_TEGRA=m | 698 | CONFIG_DRM_TEGRA=m |
684 | CONFIG_DRM_PANEL_LVDS=m | 699 | CONFIG_DRM_PANEL_LVDS=m |
685 | CONFIG_DRM_PANEL_SIMPLE=m | 700 | CONFIG_DRM_PANEL_SIMPLE=m |
701 | CONFIG_DRM_PANEL_BOE_TV101WUM_NL6=m | ||
686 | CONFIG_DRM_PANEL_MANTIX_MLAF057WE51=m | 702 | CONFIG_DRM_PANEL_MANTIX_MLAF057WE51=m |
687 | CONFIG_DRM_PANEL_RAYDIUM_RM67191=m | 703 | CONFIG_DRM_PANEL_RAYDIUM_RM67191=m |
688 | CONFIG_DRM_PANEL_SITRONIX_ST7703=m | 704 | CONFIG_DRM_PANEL_SITRONIX_ST7703=m |
689 | CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA=m | 705 | CONFIG_DRM_PANEL_TRULY_NT35597_WQXGA=m |
690 | CONFIG_DRM_DISPLAY_CONNECTOR=m | 706 | CONFIG_DRM_DISPLAY_CONNECTOR=m |
707 | CONFIG_DRM_LONTIUM_LT8912B=m | ||
691 | CONFIG_DRM_NWL_MIPI_DSI=m | 708 | CONFIG_DRM_NWL_MIPI_DSI=m |
692 | CONFIG_DRM_LONTIUM_LT9611=m | 709 | CONFIG_DRM_LONTIUM_LT9611=m |
710 | CONFIG_DRM_PARADE_PS8640=m | ||
693 | CONFIG_DRM_SII902X=m | 711 | CONFIG_DRM_SII902X=m |
694 | CONFIG_DRM_SIMPLE_BRIDGE=m | 712 | CONFIG_DRM_SIMPLE_BRIDGE=m |
695 | CONFIG_DRM_THINE_THC63LVD1024=m | 713 | CONFIG_DRM_THINE_THC63LVD1024=m |
@@ -704,6 +722,8 @@ CONFIG_DRM_VC4=m | |||
704 | CONFIG_DRM_ETNAVIV=m | 722 | CONFIG_DRM_ETNAVIV=m |
705 | CONFIG_DRM_HISI_HIBMC=m | 723 | CONFIG_DRM_HISI_HIBMC=m |
706 | CONFIG_DRM_HISI_KIRIN=m | 724 | CONFIG_DRM_HISI_KIRIN=m |
725 | CONFIG_DRM_MEDIATEK=m | ||
726 | CONFIG_DRM_MEDIATEK_HDMI=m | ||
707 | CONFIG_DRM_MXSFB=m | 727 | CONFIG_DRM_MXSFB=m |
708 | CONFIG_DRM_MESON=m | 728 | CONFIG_DRM_MESON=m |
709 | CONFIG_DRM_PL111=m | 729 | CONFIG_DRM_PL111=m |
@@ -758,12 +778,16 @@ CONFIG_SND_SOC_AK4613=m | |||
758 | CONFIG_SND_SOC_ES7134=m | 778 | CONFIG_SND_SOC_ES7134=m |
759 | CONFIG_SND_SOC_ES7241=m | 779 | CONFIG_SND_SOC_ES7241=m |
760 | CONFIG_SND_SOC_GTM601=m | 780 | CONFIG_SND_SOC_GTM601=m |
781 | CONFIG_SND_SOC_MSM8916_WCD_ANALOG=m | ||
782 | CONFIG_SND_SOC_MSM8916_WCD_DIGITAL=m | ||
761 | CONFIG_SND_SOC_PCM3168A_I2C=m | 783 | CONFIG_SND_SOC_PCM3168A_I2C=m |
762 | CONFIG_SND_SOC_RT5659=m | 784 | CONFIG_SND_SOC_RT5659=m |
763 | CONFIG_SND_SOC_SIMPLE_AMPLIFIER=m | 785 | CONFIG_SND_SOC_SIMPLE_AMPLIFIER=m |
786 | CONFIG_SND_SOC_SIMPLE_MUX=m | ||
764 | CONFIG_SND_SOC_TAS571X=m | 787 | CONFIG_SND_SOC_TAS571X=m |
765 | CONFIG_SND_SOC_WCD934X=m | 788 | CONFIG_SND_SOC_WCD934X=m |
766 | CONFIG_SND_SOC_WM8904=m | 789 | CONFIG_SND_SOC_WM8904=m |
790 | CONFIG_SND_SOC_WM8960=m | ||
767 | CONFIG_SND_SOC_WM8962=m | 791 | CONFIG_SND_SOC_WM8962=m |
768 | CONFIG_SND_SOC_WSA881X=m | 792 | CONFIG_SND_SOC_WSA881X=m |
769 | CONFIG_SND_SOC_LPASS_WSA_MACRO=m | 793 | CONFIG_SND_SOC_LPASS_WSA_MACRO=m |
@@ -777,6 +801,8 @@ CONFIG_USB_CONN_GPIO=m | |||
777 | CONFIG_USB=y | 801 | CONFIG_USB=y |
778 | CONFIG_USB_OTG=y | 802 | CONFIG_USB_OTG=y |
779 | CONFIG_USB_XHCI_HCD=y | 803 | CONFIG_USB_XHCI_HCD=y |
804 | CONFIG_USB_XHCI_PCI=m | ||
805 | CONFIG_USB_XHCI_PCI_RENESAS=m | ||
780 | CONFIG_USB_XHCI_TEGRA=y | 806 | CONFIG_USB_XHCI_TEGRA=y |
781 | CONFIG_USB_EHCI_HCD=y | 807 | CONFIG_USB_EHCI_HCD=y |
782 | CONFIG_USB_EHCI_EXYNOS=y | 808 | CONFIG_USB_EHCI_EXYNOS=y |
@@ -788,6 +814,7 @@ CONFIG_USB_RENESAS_USBHS_HCD=m | |||
788 | CONFIG_USB_RENESAS_USBHS=m | 814 | CONFIG_USB_RENESAS_USBHS=m |
789 | CONFIG_USB_ACM=m | 815 | CONFIG_USB_ACM=m |
790 | CONFIG_USB_STORAGE=y | 816 | CONFIG_USB_STORAGE=y |
817 | CONFIG_USB_MTU3=y | ||
791 | CONFIG_USB_MUSB_HDRC=y | 818 | CONFIG_USB_MUSB_HDRC=y |
792 | CONFIG_USB_MUSB_SUNXI=y | 819 | CONFIG_USB_MUSB_SUNXI=y |
793 | CONFIG_USB_DWC3=y | 820 | CONFIG_USB_DWC3=y |
@@ -847,6 +874,7 @@ CONFIG_MMC_DW_K3=y | |||
847 | CONFIG_MMC_DW_ROCKCHIP=y | 874 | CONFIG_MMC_DW_ROCKCHIP=y |
848 | CONFIG_MMC_SUNXI=y | 875 | CONFIG_MMC_SUNXI=y |
849 | CONFIG_MMC_BCM2835=y | 876 | CONFIG_MMC_BCM2835=y |
877 | CONFIG_MMC_MTK=y | ||
850 | CONFIG_MMC_SDHCI_XENON=y | 878 | CONFIG_MMC_SDHCI_XENON=y |
851 | CONFIG_MMC_SDHCI_AM654=y | 879 | CONFIG_MMC_SDHCI_AM654=y |
852 | CONFIG_MMC_OWL=y | 880 | CONFIG_MMC_OWL=y |
@@ -865,6 +893,7 @@ CONFIG_LEDS_TRIGGER_DEFAULT_ON=y | |||
865 | CONFIG_LEDS_TRIGGER_PANIC=y | 893 | CONFIG_LEDS_TRIGGER_PANIC=y |
866 | CONFIG_EDAC=y | 894 | CONFIG_EDAC=y |
867 | CONFIG_EDAC_GHES=y | 895 | CONFIG_EDAC_GHES=y |
896 | CONFIG_EDAC_LAYERSCAPE=m | ||
868 | CONFIG_RTC_CLASS=y | 897 | CONFIG_RTC_CLASS=y |
869 | CONFIG_RTC_DRV_DS1307=m | 898 | CONFIG_RTC_DRV_DS1307=m |
870 | CONFIG_RTC_DRV_HYM8563=m | 899 | CONFIG_RTC_DRV_HYM8563=m |
@@ -880,6 +909,7 @@ CONFIG_RTC_DRV_DS3232=y | |||
880 | CONFIG_RTC_DRV_PCF2127=m | 909 | CONFIG_RTC_DRV_PCF2127=m |
881 | CONFIG_RTC_DRV_EFI=y | 910 | CONFIG_RTC_DRV_EFI=y |
882 | CONFIG_RTC_DRV_CROS_EC=y | 911 | CONFIG_RTC_DRV_CROS_EC=y |
912 | CONFIG_RTC_DRV_FSL_FTM_ALARM=m | ||
883 | CONFIG_RTC_DRV_S3C=y | 913 | CONFIG_RTC_DRV_S3C=y |
884 | CONFIG_RTC_DRV_PL031=y | 914 | CONFIG_RTC_DRV_PL031=y |
885 | CONFIG_RTC_DRV_SUN6I=y | 915 | CONFIG_RTC_DRV_SUN6I=y |
@@ -916,6 +946,9 @@ CONFIG_VIRTIO_MMIO=y | |||
916 | CONFIG_XEN_GNTDEV=y | 946 | CONFIG_XEN_GNTDEV=y |
917 | CONFIG_XEN_GRANT_DEV_ALLOC=y | 947 | CONFIG_XEN_GRANT_DEV_ALLOC=y |
918 | CONFIG_MFD_CROS_EC_DEV=y | 948 | CONFIG_MFD_CROS_EC_DEV=y |
949 | CONFIG_STAGING=y | ||
950 | CONFIG_STAGING_MEDIA=y | ||
951 | CONFIG_VIDEO_HANTRO=m | ||
919 | CONFIG_CHROME_PLATFORMS=y | 952 | CONFIG_CHROME_PLATFORMS=y |
920 | CONFIG_CROS_EC=y | 953 | CONFIG_CROS_EC=y |
921 | CONFIG_CROS_EC_I2C=y | 954 | CONFIG_CROS_EC_I2C=y |
@@ -958,11 +991,13 @@ CONFIG_SDM_VIDEOCC_845=y | |||
958 | CONFIG_SDM_DISPCC_845=y | 991 | CONFIG_SDM_DISPCC_845=y |
959 | CONFIG_SM_GCC_8150=y | 992 | CONFIG_SM_GCC_8150=y |
960 | CONFIG_SM_GCC_8250=y | 993 | CONFIG_SM_GCC_8250=y |
994 | CONFIG_SM_GCC_8350=y | ||
961 | CONFIG_SM_GPUCC_8150=y | 995 | CONFIG_SM_GPUCC_8150=y |
962 | CONFIG_SM_GPUCC_8250=y | 996 | CONFIG_SM_GPUCC_8250=y |
963 | CONFIG_SM_DISPCC_8250=y | 997 | CONFIG_SM_DISPCC_8250=y |
964 | CONFIG_QCOM_HFPLL=y | 998 | CONFIG_QCOM_HFPLL=y |
965 | CONFIG_CLK_GFM_LPASS_SM8250=m | 999 | CONFIG_CLK_GFM_LPASS_SM8250=m |
1000 | CONFIG_CLK_RCAR_USB2_CLOCK_SEL=y | ||
966 | CONFIG_HWSPINLOCK=y | 1001 | CONFIG_HWSPINLOCK=y |
967 | CONFIG_HWSPINLOCK_QCOM=y | 1002 | CONFIG_HWSPINLOCK_QCOM=y |
968 | CONFIG_ARM_MHU=y | 1003 | CONFIG_ARM_MHU=y |
@@ -975,6 +1010,7 @@ CONFIG_ROCKCHIP_IOMMU=y | |||
975 | CONFIG_TEGRA_IOMMU_SMMU=y | 1010 | CONFIG_TEGRA_IOMMU_SMMU=y |
976 | CONFIG_ARM_SMMU=y | 1011 | CONFIG_ARM_SMMU=y |
977 | CONFIG_ARM_SMMU_V3=y | 1012 | CONFIG_ARM_SMMU_V3=y |
1013 | CONFIG_MTK_IOMMU=y | ||
978 | CONFIG_QCOM_IOMMU=y | 1014 | CONFIG_QCOM_IOMMU=y |
979 | CONFIG_REMOTEPROC=y | 1015 | CONFIG_REMOTEPROC=y |
980 | CONFIG_QCOM_Q6V5_MSS=m | 1016 | CONFIG_QCOM_Q6V5_MSS=m |
@@ -989,6 +1025,8 @@ CONFIG_OWL_PM_DOMAINS=y | |||
989 | CONFIG_RASPBERRYPI_POWER=y | 1025 | CONFIG_RASPBERRYPI_POWER=y |
990 | CONFIG_FSL_DPAA=y | 1026 | CONFIG_FSL_DPAA=y |
991 | CONFIG_FSL_MC_DPIO=y | 1027 | CONFIG_FSL_MC_DPIO=y |
1028 | CONFIG_FSL_RCPM=y | ||
1029 | CONFIG_MTK_PMIC_WRAP=y | ||
992 | CONFIG_QCOM_AOSS_QMP=y | 1030 | CONFIG_QCOM_AOSS_QMP=y |
993 | CONFIG_QCOM_COMMAND_DB=y | 1031 | CONFIG_QCOM_COMMAND_DB=y |
994 | CONFIG_QCOM_GENI_SE=y | 1032 | CONFIG_QCOM_GENI_SE=y |
@@ -1016,6 +1054,7 @@ CONFIG_ARCH_R8A77980=y | |||
1016 | CONFIG_ARCH_R8A77990=y | 1054 | CONFIG_ARCH_R8A77990=y |
1017 | CONFIG_ARCH_R8A77995=y | 1055 | CONFIG_ARCH_R8A77995=y |
1018 | CONFIG_ARCH_R8A779A0=y | 1056 | CONFIG_ARCH_R8A779A0=y |
1057 | CONFIG_ARCH_R9A07G044=y | ||
1019 | CONFIG_ROCKCHIP_PM_DOMAINS=y | 1058 | CONFIG_ROCKCHIP_PM_DOMAINS=y |
1020 | CONFIG_ARCH_TEGRA_132_SOC=y | 1059 | CONFIG_ARCH_TEGRA_132_SOC=y |
1021 | CONFIG_ARCH_TEGRA_210_SOC=y | 1060 | CONFIG_ARCH_TEGRA_210_SOC=y |
@@ -1023,6 +1062,8 @@ CONFIG_ARCH_TEGRA_186_SOC=y | |||
1023 | CONFIG_ARCH_TEGRA_194_SOC=y | 1062 | CONFIG_ARCH_TEGRA_194_SOC=y |
1024 | CONFIG_ARCH_TEGRA_234_SOC=y | 1063 | CONFIG_ARCH_TEGRA_234_SOC=y |
1025 | CONFIG_TI_SCI_PM_DOMAINS=y | 1064 | CONFIG_TI_SCI_PM_DOMAINS=y |
1065 | CONFIG_ARM_IMX_BUS_DEVFREQ=m | ||
1066 | CONFIG_ARM_IMX8M_DDRC_DEVFREQ=m | ||
1026 | CONFIG_EXTCON_PTN5150=m | 1067 | CONFIG_EXTCON_PTN5150=m |
1027 | CONFIG_EXTCON_USB_GPIO=y | 1068 | CONFIG_EXTCON_USB_GPIO=y |
1028 | CONFIG_EXTCON_USBC_CROS_EC=y | 1069 | CONFIG_EXTCON_USBC_CROS_EC=y |
@@ -1030,6 +1071,7 @@ CONFIG_RENESAS_RPCIF=m | |||
1030 | CONFIG_IIO=y | 1071 | CONFIG_IIO=y |
1031 | CONFIG_EXYNOS_ADC=y | 1072 | CONFIG_EXYNOS_ADC=y |
1032 | CONFIG_MAX9611=m | 1073 | CONFIG_MAX9611=m |
1074 | CONFIG_QCOM_SPMI_VADC=m | ||
1033 | CONFIG_QCOM_SPMI_ADC5=m | 1075 | CONFIG_QCOM_SPMI_ADC5=m |
1034 | CONFIG_ROCKCHIP_SARADC=m | 1076 | CONFIG_ROCKCHIP_SARADC=m |
1035 | CONFIG_IIO_CROS_EC_SENSORS_CORE=m | 1077 | CONFIG_IIO_CROS_EC_SENSORS_CORE=m |
@@ -1046,12 +1088,15 @@ CONFIG_PWM_BCM2835=m | |||
1046 | CONFIG_PWM_CROS_EC=m | 1088 | CONFIG_PWM_CROS_EC=m |
1047 | CONFIG_PWM_IMX27=m | 1089 | CONFIG_PWM_IMX27=m |
1048 | CONFIG_PWM_MESON=m | 1090 | CONFIG_PWM_MESON=m |
1091 | CONFIG_PWM_MTK_DISP=m | ||
1092 | CONFIG_PWM_MEDIATEK=m | ||
1049 | CONFIG_PWM_RCAR=m | 1093 | CONFIG_PWM_RCAR=m |
1050 | CONFIG_PWM_ROCKCHIP=y | 1094 | CONFIG_PWM_ROCKCHIP=y |
1051 | CONFIG_PWM_SAMSUNG=y | 1095 | CONFIG_PWM_SAMSUNG=y |
1052 | CONFIG_PWM_SL28CPLD=m | 1096 | CONFIG_PWM_SL28CPLD=m |
1053 | CONFIG_PWM_SUN4I=m | 1097 | CONFIG_PWM_SUN4I=m |
1054 | CONFIG_PWM_TEGRA=m | 1098 | CONFIG_PWM_TEGRA=m |
1099 | CONFIG_PWM_VISCONTI=m | ||
1055 | CONFIG_SL28CPLD_INTC=y | 1100 | CONFIG_SL28CPLD_INTC=y |
1056 | CONFIG_QCOM_PDC=y | 1101 | CONFIG_QCOM_PDC=y |
1057 | CONFIG_RESET_IMX7=y | 1102 | CONFIG_RESET_IMX7=y |
@@ -1065,6 +1110,7 @@ CONFIG_PHY_HI6220_USB=y | |||
1065 | CONFIG_PHY_HISTB_COMBPHY=y | 1110 | CONFIG_PHY_HISTB_COMBPHY=y |
1066 | CONFIG_PHY_HISI_INNO_USB2=y | 1111 | CONFIG_PHY_HISI_INNO_USB2=y |
1067 | CONFIG_PHY_MVEBU_CP110_COMPHY=y | 1112 | CONFIG_PHY_MVEBU_CP110_COMPHY=y |
1113 | CONFIG_PHY_MTK_TPHY=y | ||
1068 | CONFIG_PHY_QCOM_QMP=m | 1114 | CONFIG_PHY_QCOM_QMP=m |
1069 | CONFIG_PHY_QCOM_QUSB2=m | 1115 | CONFIG_PHY_QCOM_QUSB2=m |
1070 | CONFIG_PHY_QCOM_USB_HS=y | 1116 | CONFIG_PHY_QCOM_USB_HS=y |
@@ -1078,6 +1124,7 @@ CONFIG_PHY_ROCKCHIP_INNO_USB2=y | |||
1078 | CONFIG_PHY_ROCKCHIP_INNO_DSIDPHY=m | 1124 | CONFIG_PHY_ROCKCHIP_INNO_DSIDPHY=m |
1079 | CONFIG_PHY_ROCKCHIP_PCIE=m | 1125 | CONFIG_PHY_ROCKCHIP_PCIE=m |
1080 | CONFIG_PHY_ROCKCHIP_TYPEC=y | 1126 | CONFIG_PHY_ROCKCHIP_TYPEC=y |
1127 | CONFIG_PHY_SAMSUNG_UFS=y | ||
1081 | CONFIG_PHY_UNIPHIER_USB2=y | 1128 | CONFIG_PHY_UNIPHIER_USB2=y |
1082 | CONFIG_PHY_UNIPHIER_USB3=y | 1129 | CONFIG_PHY_UNIPHIER_USB3=y |
1083 | CONFIG_PHY_TEGRA_XUSB=y | 1130 | CONFIG_PHY_TEGRA_XUSB=y |
@@ -1089,6 +1136,7 @@ CONFIG_QCOM_L3_PMU=y | |||
1089 | CONFIG_NVMEM_IMX_OCOTP=y | 1136 | CONFIG_NVMEM_IMX_OCOTP=y |
1090 | CONFIG_NVMEM_IMX_OCOTP_SCU=y | 1137 | CONFIG_NVMEM_IMX_OCOTP_SCU=y |
1091 | CONFIG_QCOM_QFPROM=y | 1138 | CONFIG_QCOM_QFPROM=y |
1139 | CONFIG_MTK_EFUSE=y | ||
1092 | CONFIG_ROCKCHIP_EFUSE=y | 1140 | CONFIG_ROCKCHIP_EFUSE=y |
1093 | CONFIG_NVMEM_SUNXI_SID=y | 1141 | CONFIG_NVMEM_SUNXI_SID=y |
1094 | CONFIG_UNIPHIER_EFUSE=y | 1142 | CONFIG_UNIPHIER_EFUSE=y |
@@ -1115,6 +1163,7 @@ CONFIG_INTERCONNECT_QCOM_OSM_L3=m | |||
1115 | CONFIG_INTERCONNECT_QCOM_SDM845=y | 1163 | CONFIG_INTERCONNECT_QCOM_SDM845=y |
1116 | CONFIG_INTERCONNECT_QCOM_SM8150=m | 1164 | CONFIG_INTERCONNECT_QCOM_SM8150=m |
1117 | CONFIG_INTERCONNECT_QCOM_SM8250=m | 1165 | CONFIG_INTERCONNECT_QCOM_SM8250=m |
1166 | CONFIG_INTERCONNECT_QCOM_SM8350=m | ||
1118 | CONFIG_EXT2_FS=y | 1167 | CONFIG_EXT2_FS=y |
1119 | CONFIG_EXT3_FS=y | 1168 | CONFIG_EXT3_FS=y |
1120 | CONFIG_EXT4_FS_POSIX_ACL=y | 1169 | CONFIG_EXT4_FS_POSIX_ACL=y |
@@ -1157,6 +1206,7 @@ CONFIG_CRYPTO_DEV_HISI_TRNG=m | |||
1157 | CONFIG_CMA_SIZE_MBYTES=32 | 1206 | CONFIG_CMA_SIZE_MBYTES=32 |
1158 | CONFIG_PRINTK_TIME=y | 1207 | CONFIG_PRINTK_TIME=y |
1159 | CONFIG_DEBUG_INFO=y | 1208 | CONFIG_DEBUG_INFO=y |
1209 | CONFIG_DEBUG_INFO_REDUCED=y | ||
1160 | CONFIG_MAGIC_SYSRQ=y | 1210 | CONFIG_MAGIC_SYSRQ=y |
1161 | CONFIG_DEBUG_FS=y | 1211 | CONFIG_DEBUG_FS=y |
1162 | CONFIG_DEBUG_KERNEL=y | 1212 | CONFIG_DEBUG_KERNEL=y |
diff --git a/recipes-kernel/linux/linux-fslc_5.12.bb b/recipes-kernel/linux/linux-fslc_5.14.bb index ed24bcfd..90a90880 100644 --- a/recipes-kernel/linux/linux-fslc_5.12.bb +++ b/recipes-kernel/linux/linux-fslc_5.14.bb | |||
@@ -19,9 +19,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | |||
19 | # | 19 | # |
20 | # LINUX_VERSION define should match to the kernel version referenced by SRC_URI and | 20 | # LINUX_VERSION define should match to the kernel version referenced by SRC_URI and |
21 | # should be updated once patchlevel is merged. | 21 | # should be updated once patchlevel is merged. |
22 | LINUX_VERSION = "5.12.19" | 22 | LINUX_VERSION = "5.14" |
23 | 23 | ||
24 | KBRANCH = "5.12.x+fslc" | 24 | KBRANCH = "5.14.x+fslc" |
25 | SRCREV = "a7601274fa6ecb02a9335c8aac5575e8aa8d65fd" | 25 | SRCREV = "35f3f4421d3d7878593eef83e1093db8de60a37e" |
26 | 26 | ||
27 | COMPATIBLE_MACHINE = "(mxs|mx5|mx6|vf|use-mainline-bsp)" | 27 | COMPATIBLE_MACHINE = "(mxs|mx5|mx6|vf|use-mainline-bsp)" |