diff --git a/.gitmodules b/.gitmodules index 1e05bcc7..09f727d3 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,4 +1,4 @@ [submodule "buildroot"] path = buildroot - url = https://github.com/j1nx/buildroot.git - branch = ovos-2023.02.x + url = https://github.com/OpenVoiceOS/buildroot.git + branch = ovos-2024.02.x diff --git a/buildroot b/buildroot index 47ddc8af..12cfc729 160000 --- a/buildroot +++ b/buildroot @@ -1 +1 @@ -Subproject commit 47ddc8afd0405dcae4ee8aeb4922bd934c5f8b28 +Subproject commit 12cfc7297fbf3cdc2d48a816f4286804231be440 diff --git a/buildroot-external/Config.in b/buildroot-external/Config.in index 6e3b8a30..2e55c80a 100644 --- a/buildroot-external/Config.in +++ b/buildroot-external/Config.in @@ -93,7 +93,6 @@ menu "KDE Framework and Plasma" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/kf5-threadweaver/Config.in" endmenu source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/ksm-preload/Config.in" - source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/libcanberra/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/libgpiod2/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/libre/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/librem/Config.in" @@ -145,10 +144,8 @@ menu "Additional external python modules" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-audio-metadata/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-autocommand/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-bitstruct/Config.in" - source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-blinker/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-board/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-bs4/Config.in" - source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-cachetools/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-casttube/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-click-default-group/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-colour/Config.in" @@ -173,7 +170,6 @@ menu "Additional external python modules" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-gitpython/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-google-api-python-client/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-google-auth-httplib2/Config.in" - source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-google-auth/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-google-trans-new/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-gpiod/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-gpsdclient/Config.in" @@ -182,7 +178,6 @@ menu "Additional external python modules" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-h3/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-hijri-converter/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-holidays/Config.in" - source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-humanhash3/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-importlib-metadata/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-inflect/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-jaraco-collections/Config.in" @@ -203,7 +198,6 @@ menu "Additional external python modules" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-monotonic/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-msk/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-msm/Config.in" - source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-multi-key-dict/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-neon-lang-plugin-libretranslate/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-neon-phal-plugin-fan/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-neon-phal-plugin-linear-led/Config.in" @@ -237,17 +231,13 @@ menu "Additional external python modules" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-pyaudio/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-pychromecast/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-pycpuinfo/Config.in" - source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-pyee/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-pyftdi/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-pygithub/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-pyjokes/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-pymeeus/Config.in" - source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-pymplayer/Config.in" - source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-pyowm/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-pytube/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-pytzdata/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-pywebio/Config.in" - source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-pyxdg/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-quantulum3/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-quebra-frases/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-rakekeywords/Config.in" @@ -263,7 +253,6 @@ menu "Additional external python modules" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-smbus2/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-smmap/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-sonopy/Config.in" - source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-source/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-speech2text/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-speechrecognition/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-sqlalchemy-json/Config.in" @@ -285,7 +274,6 @@ menu "Additional external python modules" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-vosk-api/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-webcolors/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-webrtcvad/Config.in" - source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-wheel/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-wikipedia-api/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-wikipedia-for-humans/Config.in" source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/python-xmlrunner/Config.in" diff --git a/buildroot-external/configs/rpi4_64_defconfig b/buildroot-external/configs/rpi4_64_defconfig index 05b2299d..82397504 100644 --- a/buildroot-external/configs/rpi4_64_defconfig +++ b/buildroot-external/configs/rpi4_64_defconfig @@ -1,13 +1,9 @@ BR2_aarch64=y BR2_cortex_a72=y -BR2_PACKAGE_GLIBC_UTILS=y -BR2_BINUTILS_VERSION_2_39_X=y -BR2_GCC_VERSION_12_X=y -BR2_TOOLCHAIN_BUILDROOT_CXX=y +BR2_TOOLCHAIN_EXTERNAL=y BR2_DL_DIR="../../downloads" BR2_CCACHE=y BR2_CCACHE_DIR="ccache" -BR2_OPTIMIZE_2=y BR2_ENABLE_LTO=y BR2_GLOBAL_PATCH_DIR="$(BR2_EXTERNAL)/patches $(BR2_EXTERNAL)/board/ovos/raspberrypi/patches" BR2_FORCE_HOST_BUILD=y @@ -18,6 +14,7 @@ BR2_TARGET_GENERIC_PASSWD_SHA512=y BR2_INIT_SYSTEMD=y # BR2_TARGET_ENABLE_ROOT_LOGIN is not set BR2_SYSTEM_BIN_SH_BASH=y +# BR2_TARGET_GENERIC_GETTY is not set # BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set BR2_SYSTEM_DHCP="eth0" # BR2_ENABLE_LOCALE_PURGE is not set @@ -30,7 +27,7 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="$(BR2_EXTERNAL)/scripts/post-image.sh" BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_EXTERNAL)/board/ovos/raspberrypi/rpi4" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_TARBALL=y -BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,5e78d297b997dcc7a78ba747a62fb28d0b6a10d8)/linux-5e78d297b997dcc7a78ba747a62fb28d0b6a10d8.tar.gz" +BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,9e78addad23f9fc66b0c6399d9234e44a89d699a)/linux-9e78addad23f9fc66b0c6399d9234e44a89d699a.tar.gz" BR2_LINUX_KERNEL_DEFCONFIG="bcm2711" BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL)/kernel/ovos.config $(BR2_EXTERNAL)/kernel/device-drivers.config $(BR2_EXTERNAL)/kernel/docker.config $(BR2_EXTERNAL)/board/ovos/raspberrypi/kernel.config" BR2_LINUX_KERNEL_LZ4=y @@ -65,11 +62,11 @@ BR2_PACKAGE_FFMPEG_AVRESAMPLE=y BR2_PACKAGE_FFMPEG_POSTPROC=y BR2_PACKAGE_FLAC=y BR2_PACKAGE_PIPEWIRE=y -BR2_PACKAGE_PIPEWIRE_COMPRESS_OFFLOAD=y BR2_PACKAGE_PIPEWIRE_EXAMPLES=y BR2_PACKAGE_PIPEWIRE_GSTREAMER=y BR2_PACKAGE_PIPEWIRE_V4L2=y BR2_PACKAGE_PULSEAUDIO=y +BR2_PACKAGE_TINYCOMPRESS=y BR2_PACKAGE_V4L2GRAB=y BR2_PACKAGE_V4L2LOOPBACK=y BR2_PACKAGE_V4L2LOOPBACK_UTILS=y @@ -179,7 +176,7 @@ BR2_PACKAGE_LIBV4L_UTILS=y BR2_PACKAGE_JSON_GLIB=y BR2_PACKAGE_LIBCAMERA=y BR2_PACKAGE_LIBCAMERA_V4L2=y -BR2_PACKAGE_LIBCAMERA_PIPELINE_RASPBERRYPI=y +BR2_PACKAGE_LIBCAMERA_PIPELINE_RPI_VC4=y BR2_PACKAGE_LIBCAMERA_PIPELINE_SIMPLE=y BR2_PACKAGE_LIBCAMERA_PIPELINE_UVCVIDEO=y BR2_PACKAGE_LIBCAMERA_PIPELINE_VIMC=y @@ -198,7 +195,6 @@ BR2_PACKAGE_ZEROMQ_WEBSOCKET=y BR2_PACKAGE_LIBCAP_TOOLS=y BR2_PACKAGE_LIBNPTH=y BR2_PACKAGE_LIBFRIBIDI=y -BR2_PACKAGE_PCRE2=y BR2_PACKAGE_AARDVARK_DNS=y BR2_PACKAGE_AVAHI=y BR2_PACKAGE_AVAHI_DAEMON=y @@ -298,7 +294,6 @@ BR2_PACKAGE_UTIL_LINUX_MOUNTPOINT=y BR2_PACKAGE_UTIL_LINUX_PARTX=y BR2_PACKAGE_UTIL_LINUX_PIVOT_ROOT=y BR2_PACKAGE_UTIL_LINUX_SU=y -BR2_PACKAGE_UTIL_LINUX_SULOGIN=y BR2_PACKAGE_UTIL_LINUX_SWITCH_ROOT=y BR2_PACKAGE_UTIL_LINUX_ZRAMCTL=y BR2_PACKAGE_LESS=y @@ -318,8 +313,6 @@ BR2_PACKAGE_HOST_MTOOLS=y BR2_PACKAGE_HOST_PKGCONF=y BR2_PACKAGE_BTSPEAKER=y BR2_PACKAGE_HOSTNAME_SERVICE=y -BR2_PACKAGE_LIBGPIOD2=y -BR2_PACKAGE_LIBGPIOD2_TOOLS=y BR2_PACKAGE_NCPAMIXER=y BR2_PACKAGE_OVOS_BUS_SERVER=y BR2_PACKAGE_OVOS_CONTAINERS=y @@ -332,6 +325,5 @@ BR2_PACKAGE_ROC_TOOLKIT=y BR2_PACKAGE_RPI_EEPROM=y BR2_PACKAGE_USERLAND_TOOLS=y BR2_PACKAGE_VOCALFUSION=y -BR2_PACKAGE_WIFI_CONNECT=y BR2_PACKAGE_PYTHON_ADAFRUIT_BLINKA=y BR2_PACKAGE_PYTHON_SMBUS2=y diff --git a/buildroot-external/package/libcanberra/Config.in b/buildroot-external/package/libcanberra/Config.in deleted file mode 100644 index c97f4b4c..00000000 --- a/buildroot-external/package/libcanberra/Config.in +++ /dev/null @@ -1,8 +0,0 @@ -config BR2_PACKAGE_LIBCANBERRA - bool "libcanberra" - select BR2_PACKAGE_ALSA_LIB - select BR2_PACKAGE_LIBVORBIS - help - Portable sound event library - - http://0pointer.de/lennart/projects/libcanberra diff --git a/buildroot-external/package/libcanberra/libcanberra.mk b/buildroot-external/package/libcanberra/libcanberra.mk deleted file mode 100644 index 7e0dc650..00000000 --- a/buildroot-external/package/libcanberra/libcanberra.mk +++ /dev/null @@ -1,16 +0,0 @@ -############################################################# -# -# libcanberra -# -############################################################# - -LIBCANBERRA_VERSION = 0.30 -LIBCANBERRA_SOURCE = libcanberra-$(LIBCANBERRA_VERSION).tar.xz -LIBCANBERRA_SITE = http://0pointer.de/lennart/projects/libcanberra -LIBCANBERRA_INSTALL_STAGING = YES -LIBCANBERRA_DEPENDENCIES = libvorbis libtool alsa-lib -LIBCANBERRA_CONF_OPTS += --disable-oss -LIBCANBERRA_LICENSE = LGPLv2.1+ -LIBCANBERRA_LICENSE_FILES = LGPL - -$(eval $(autotools-package)) diff --git a/buildroot-external/package/ovos-containers/ovos-containers.mk b/buildroot-external/package/ovos-containers/ovos-containers.mk index 73fd5f23..0f7e7915 100644 --- a/buildroot-external/package/ovos-containers/ovos-containers.mk +++ b/buildroot-external/package/ovos-containers/ovos-containers.mk @@ -9,6 +9,7 @@ OVOS_CONTAINERS_LICENSE = Apache License 2.0 OVOS_CONTAINERS_LICENSE_FILES = $(BR2_EXTERNAL_OPENVOICEOS_PATH)/../LICENSE OVOS_CONTAINERS_SITE = $(BR2_EXTERNAL_OPENVOICEOS_PATH)/package/ovos-containers OVOS_CONTAINERS_SITE_METHOD = local +#OVOS_CONTAINERS_DEPENDENCIES = host-skopeo host-podman host-jq OVOS_CONTAINERS_IMAGES = ovos-phal \ ovos-messagebus \ diff --git a/buildroot-external/package/python-blinker/Config.in b/buildroot-external/package/python-blinker/Config.in deleted file mode 100644 index f6058411..00000000 --- a/buildroot-external/package/python-blinker/Config.in +++ /dev/null @@ -1,6 +0,0 @@ -config BR2_PACKAGE_PYTHON_BLINKER - bool "python-blinker" - help - Fast, simple object-to-object and broadcast signaling. - - http://pythonhosted.org/blinker/ diff --git a/buildroot-external/package/python-blinker/python-blinker.hash b/buildroot-external/package/python-blinker/python-blinker.hash deleted file mode 100644 index cdb8a6c7..00000000 --- a/buildroot-external/package/python-blinker/python-blinker.hash +++ /dev/null @@ -1,5 +0,0 @@ -# md5, sha256 from https://pypi.org/pypi/blinker/json -md5 8b3722381f83c2813c52de3016b68d33 blinker-1.4.tar.gz -sha256 471aee25f3992bd325afa3772f1063dbdbbca947a041b8b89466dc00d606f8b6 blinker-1.4.tar.gz -# Locally computed sha256 checksums -sha256 ee99a909e1b04f53f3d49383e6462ba268cf49388bb3a657455dac9e38cdf0ea LICENSE diff --git a/buildroot-external/package/python-blinker/python-blinker.mk b/buildroot-external/package/python-blinker/python-blinker.mk deleted file mode 100644 index a374de26..00000000 --- a/buildroot-external/package/python-blinker/python-blinker.mk +++ /dev/null @@ -1,14 +0,0 @@ -################################################################################ -# -# python-blinker -# -################################################################################ - -PYTHON_BLINKER_VERSION = 1.4 -PYTHON_BLINKER_SOURCE = blinker-$(PYTHON_BLINKER_VERSION).tar.gz -PYTHON_BLINKER_SITE = https://files.pythonhosted.org/packages/1b/51/e2a9f3b757eb802f61dc1f2b09c8c99f6eb01cf06416c0671253536517b6 -PYTHON_BLINKER_SETUP_TYPE = setuptools -PYTHON_BLINKER_LICENSE = MIT -PYTHON_BLINKER_LICENSE_FILES = LICENSE - -$(eval $(python-package)) diff --git a/buildroot-external/package/python-cachetools/Config.in b/buildroot-external/package/python-cachetools/Config.in deleted file mode 100644 index 8c5e90c4..00000000 --- a/buildroot-external/package/python-cachetools/Config.in +++ /dev/null @@ -1,6 +0,0 @@ -config BR2_PACKAGE_PYTHON_CACHETOOLS - bool "python-cachetools" - help - Extensible memoizing collections and decorators. - - https://github.com/tkem/cachetools diff --git a/buildroot-external/package/python-cachetools/python-cachetools.hash b/buildroot-external/package/python-cachetools/python-cachetools.hash deleted file mode 100644 index 7a81cc42..00000000 --- a/buildroot-external/package/python-cachetools/python-cachetools.hash +++ /dev/null @@ -1,5 +0,0 @@ -# md5, sha256 from https://pypi.org/pypi/cachetools/json -md5 aced22583c2ce8672f73e570e5430bd7 cachetools-2.1.0.tar.gz -sha256 90f1d559512fc073483fe573ef5ceb39bf6ad3d39edc98dc55178a2b2b176fa3 cachetools-2.1.0.tar.gz -# Locally computed sha256 checksums -sha256 67aece1bc071b753da8a24bcf8953b0e7cd873780aeddce5990864822fdb734b LICENSE diff --git a/buildroot-external/package/python-cachetools/python-cachetools.mk b/buildroot-external/package/python-cachetools/python-cachetools.mk deleted file mode 100644 index 497e5b8f..00000000 --- a/buildroot-external/package/python-cachetools/python-cachetools.mk +++ /dev/null @@ -1,14 +0,0 @@ -################################################################################ -# -# python-cachetools -# -################################################################################ - -PYTHON_CACHETOOLS_VERSION = 2.1.0 -PYTHON_CACHETOOLS_SOURCE = cachetools-$(PYTHON_CACHETOOLS_VERSION).tar.gz -PYTHON_CACHETOOLS_SITE = https://files.pythonhosted.org/packages/87/41/b3e00059f3c34b57a653d2120d213715abb4327b36fee22e59c1da977d25 -PYTHON_CACHETOOLS_SETUP_TYPE = setuptools -PYTHON_CACHETOOLS_LICENSE = MIT -PYTHON_CACHETOOLS_LICENSE_FILES = LICENSE - -$(eval $(python-package)) diff --git a/buildroot-external/package/python-google-auth/Config.in b/buildroot-external/package/python-google-auth/Config.in deleted file mode 100644 index 204251ab..00000000 --- a/buildroot-external/package/python-google-auth/Config.in +++ /dev/null @@ -1,10 +0,0 @@ -config BR2_PACKAGE_PYTHON_GOOGLE_AUTH - bool "python-google-auth" - select BR2_PACKAGE_PYTHON_PYASN1_MODULES # runtime - select BR2_PACKAGE_PYTHON_RSA # runtime - select BR2_PACKAGE_PYTHON_SIX # runtime - select BR2_PACKAGE_PYTHON_CACHETOOLS # runtime - help - Google Authentication Library. - - https://github.com/GoogleCloudPlatform/google-auth-library-python diff --git a/buildroot-external/package/python-google-auth/python-google-auth.hash b/buildroot-external/package/python-google-auth/python-google-auth.hash deleted file mode 100644 index d1d9139b..00000000 --- a/buildroot-external/package/python-google-auth/python-google-auth.hash +++ /dev/null @@ -1,5 +0,0 @@ -# md5, sha256 from https://pypi.org/pypi/google-auth/json -md5 d231e262e5e3bf835b1a118b6904a81c google-auth-1.5.1.tar.gz -sha256 9ca363facbf2622d9ba828017536ccca2e0f58bd15e659b52f312172f8815530 google-auth-1.5.1.tar.gz -# Locally computed sha256 checksums -sha256 c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE diff --git a/buildroot-external/package/python-google-auth/python-google-auth.mk b/buildroot-external/package/python-google-auth/python-google-auth.mk deleted file mode 100644 index 48b5076e..00000000 --- a/buildroot-external/package/python-google-auth/python-google-auth.mk +++ /dev/null @@ -1,14 +0,0 @@ -################################################################################ -# -# python-google-auth -# -################################################################################ - -PYTHON_GOOGLE_AUTH_VERSION = 1.5.1 -PYTHON_GOOGLE_AUTH_SOURCE = google-auth-$(PYTHON_GOOGLE_AUTH_VERSION).tar.gz -PYTHON_GOOGLE_AUTH_SITE = https://files.pythonhosted.org/packages/7e/cd/dae5c39974b040741215ed346263152c93af21a22dc124c7ad451fbee417 -PYTHON_GOOGLE_AUTH_SETUP_TYPE = setuptools -PYTHON_GOOGLE_AUTH_LICENSE = Apache-2.0 -PYTHON_GOOGLE_AUTH_LICENSE_FILES = LICENSE - -$(eval $(python-package)) diff --git a/buildroot-external/package/python-humanhash3/Config.in b/buildroot-external/package/python-humanhash3/Config.in deleted file mode 100644 index 7f53e88e..00000000 --- a/buildroot-external/package/python-humanhash3/Config.in +++ /dev/null @@ -1,6 +0,0 @@ -config BR2_PACKAGE_PYTHON_HUMANHASH3 - bool "python-humanhash3" - help - Human-readable representations of digests. - - https://github.com/blag/humanhash diff --git a/buildroot-external/package/python-humanhash3/python-humanhash3.hash b/buildroot-external/package/python-humanhash3/python-humanhash3.hash deleted file mode 100644 index 8c61a50f..00000000 --- a/buildroot-external/package/python-humanhash3/python-humanhash3.hash +++ /dev/null @@ -1,3 +0,0 @@ -# md5, sha256 from https://pypi.org/pypi/humanhash3/json -md5 c892640cca499ba5a83cfe152d295b9d humanhash3-0.0.6.tar.gz -sha256 89ae15f6034bdb07e53ac2b2e246cc7131940766d2b2b70b7398dd27c640b1ab humanhash3-0.0.6.tar.gz diff --git a/buildroot-external/package/python-humanhash3/python-humanhash3.mk b/buildroot-external/package/python-humanhash3/python-humanhash3.mk deleted file mode 100644 index 66d268ef..00000000 --- a/buildroot-external/package/python-humanhash3/python-humanhash3.mk +++ /dev/null @@ -1,13 +0,0 @@ -################################################################################ -# -# python-humanhash3 -# -################################################################################ - -PYTHON_HUMANHASH3_VERSION = 0.0.6 -PYTHON_HUMANHASH3_SOURCE = humanhash3-$(PYTHON_HUMANHASH3_VERSION).tar.gz -PYTHON_HUMANHASH3_SITE = https://files.pythonhosted.org/packages/01/06/733ffbb45b78c34eba21d72e71a67f44af6efcdfb2e31ccaa837eb5144be -PYTHON_HUMANHASH3_SETUP_TYPE = distutils -PYTHON_HUMANHASH3_LICENSE = Public Domain - -$(eval $(python-package)) diff --git a/buildroot-external/package/python-multi-key-dict/Config.in b/buildroot-external/package/python-multi-key-dict/Config.in deleted file mode 100644 index 2127a678..00000000 --- a/buildroot-external/package/python-multi-key-dict/Config.in +++ /dev/null @@ -1,6 +0,0 @@ -config BR2_PACKAGE_PYTHON_MULTI_KEY_DICT - bool "python-multi-key-dict" - help - Multi key dictionary implementation. - - https://github.com/formiaczek/multi_key_dict diff --git a/buildroot-external/package/python-multi-key-dict/python-multi-key-dict.hash b/buildroot-external/package/python-multi-key-dict/python-multi-key-dict.hash deleted file mode 100644 index 06a9873d..00000000 --- a/buildroot-external/package/python-multi-key-dict/python-multi-key-dict.hash +++ /dev/null @@ -1,3 +0,0 @@ -# md5, sha256 from https://pypi.org/pypi/multi-key-dict/json -md5 fea179deaaf496872c9db77dab30d523 multi_key_dict-2.0.3.tar.gz -sha256 deebdec17aa30a1c432cb3f437e81f8621e1c0542a0c0617a74f71e232e9939e multi_key_dict-2.0.3.tar.gz diff --git a/buildroot-external/package/python-multi-key-dict/python-multi-key-dict.mk b/buildroot-external/package/python-multi-key-dict/python-multi-key-dict.mk deleted file mode 100644 index 8f1c62de..00000000 --- a/buildroot-external/package/python-multi-key-dict/python-multi-key-dict.mk +++ /dev/null @@ -1,13 +0,0 @@ -################################################################################ -# -# python-multi-key-dict -# -################################################################################ - -PYTHON_MULTI_KEY_DICT_VERSION = 2.0.3 -PYTHON_MULTI_KEY_DICT_SOURCE = multi_key_dict-$(PYTHON_MULTI_KEY_DICT_VERSION).tar.gz -PYTHON_MULTI_KEY_DICT_SITE = https://files.pythonhosted.org/packages/6d/97/2e9c47ca1bbde6f09cb18feb887d5102e8eacd82fbc397c77b221f27a2ab -PYTHON_MULTI_KEY_DICT_SETUP_TYPE = distutils -PYTHON_MULTI_KEY_DICT_LICENSE = MIT - -$(eval $(python-package)) diff --git a/buildroot-external/package/python-pyee/Config.in b/buildroot-external/package/python-pyee/Config.in deleted file mode 100644 index 4cb1b8f0..00000000 --- a/buildroot-external/package/python-pyee/Config.in +++ /dev/null @@ -1,6 +0,0 @@ -config BR2_PACKAGE_PYTHON_PYEE - bool "python-pyee" - help - A port of node.js's EventEmitter to python. - - https://github.com/jfhbrook/pyee diff --git a/buildroot-external/package/python-pyee/python-pyee.hash b/buildroot-external/package/python-pyee/python-pyee.hash deleted file mode 100644 index af25e1f9..00000000 --- a/buildroot-external/package/python-pyee/python-pyee.hash +++ /dev/null @@ -1,3 +0,0 @@ -# md5, sha256 from https://pypi.org/pypi/pyee/json -md5 5e7dd623f031e8b22a9e1fa64bf00a5c pyee-5.0.0.tar.gz -sha256 2770c4928abc721f46b705e6a72b0c59480c4a69c9a83ca0b00bb994f1ea4b32 pyee-9.0.4.tar.gz diff --git a/buildroot-external/package/python-pyee/python-pyee.mk b/buildroot-external/package/python-pyee/python-pyee.mk deleted file mode 100644 index 91917d93..00000000 --- a/buildroot-external/package/python-pyee/python-pyee.mk +++ /dev/null @@ -1,14 +0,0 @@ -################################################################################ -# -# python-pyee -# -################################################################################ - -PYTHON_PYEE_VERSION = 9.0.4 -PYTHON_PYEE_SOURCE = pyee-$(PYTHON_PYEE_VERSION).tar.gz -PYTHON_PYEE_SITE = https://files.pythonhosted.org/packages/99/d0/32803671d5d9dc032c766ad6c0716db98fa9b2c6ad9ec544f04849e9d3c7 -PYTHON_PYEE_SETUP_TYPE = distutils -PYTHON_PYEE_LICENSE = MIT -PYTHON_PYEE_DEPENDENCIES = host-python-pytest-runner - -$(eval $(python-package)) diff --git a/buildroot-external/package/python-pymplayer/Config.in b/buildroot-external/package/python-pymplayer/Config.in deleted file mode 100644 index a4bbaff7..00000000 --- a/buildroot-external/package/python-pymplayer/Config.in +++ /dev/null @@ -1,6 +0,0 @@ -config BR2_PACKAGE_PYTHON_PYMPLAYER - bool "python-pymplayer" - help - mplayer python api. - - https://github.com/JarbasAl/py_mplayer diff --git a/buildroot-external/package/python-pymplayer/python-pymplayer.hash b/buildroot-external/package/python-pymplayer/python-pymplayer.hash deleted file mode 100644 index 8924a5d0..00000000 --- a/buildroot-external/package/python-pymplayer/python-pymplayer.hash +++ /dev/null @@ -1,2 +0,0 @@ -# sha256 from https://pypi.org -sha256 4e8e4581761fffdd8915829baf2b16b83265a6aa75455f1647667fdc8091bad2 python-pymplayer-eaa0a1dbfc60cb0f4f1b3e495d665714c089474a-br1.tar.gz diff --git a/buildroot-external/package/python-pymplayer/python-pymplayer.mk b/buildroot-external/package/python-pymplayer/python-pymplayer.mk deleted file mode 100644 index 5ea10054..00000000 --- a/buildroot-external/package/python-pymplayer/python-pymplayer.mk +++ /dev/null @@ -1,13 +0,0 @@ -################################################################################ -# -# python-pymplayer -# -################################################################################ - -PYTHON_PYMPLAYER_VERSION = eaa0a1dbfc60cb0f4f1b3e495d665714c089474a -PYTHON_PYMPLAYER_SITE = https://github.com/JarbasAl/py_mplayer.git -PYTHON_PYMPLAYER_SITE_METHOD = git -PYTHON_PYMPLAYER_SETUP_TYPE = distutils -PYTHON_PYMPLAYER_LICENSE = MIT - -$(eval $(python-package)) diff --git a/buildroot-external/package/python-pyowm/Config.in b/buildroot-external/package/python-pyowm/Config.in deleted file mode 100644 index e759ab42..00000000 --- a/buildroot-external/package/python-pyowm/Config.in +++ /dev/null @@ -1,9 +0,0 @@ -config BR2_PACKAGE_PYTHON_PYOWM - bool "python-pyowm" - help - PyOWM is a client Python wrapper library for the - OpenWeatherMap web API. It allows quick and easy - consumption of OWM weather data from Python applications - via a simple object model and in a human-friendly fashion. - - http://github.com/csparpa/pyowm diff --git a/buildroot-external/package/python-pyowm/python-pyowm.hash b/buildroot-external/package/python-pyowm/python-pyowm.hash deleted file mode 100644 index 66f75a53..00000000 --- a/buildroot-external/package/python-pyowm/python-pyowm.hash +++ /dev/null @@ -1,2 +0,0 @@ -# sha256 from https://pypi.org/pypi/ -sha256 5d41bcc3b6169d3cc606bffe80945ab4b65578ed7818ef13db8e16d836845442 pyowm-2.6.1.tar.gz diff --git a/buildroot-external/package/python-pyowm/python-pyowm.mk b/buildroot-external/package/python-pyowm/python-pyowm.mk deleted file mode 100644 index 6ba4ee6d..00000000 --- a/buildroot-external/package/python-pyowm/python-pyowm.mk +++ /dev/null @@ -1,13 +0,0 @@ -################################################################################ -# -# python-pyowm -# -################################################################################ - -PYTHON_PYOWM_VERSION = 2.6.1 -PYTHON_PYOWM_SOURCE = pyowm-$(PYTHON_PYOWM_VERSION).tar.gz -PYTHON_PYOWM_SITE = https://files.pythonhosted.org/packages/3a/1b/94282ac9ea7f737a6eea9520fed026200b63853b3196392814506c456b00 -PYTHON_PYOWM_SETUP_TYPE = distutils -PYTHON_PYOWM_LICENSE = MIT - -$(eval $(python-package)) diff --git a/buildroot-external/package/python-pyxdg/Config.in b/buildroot-external/package/python-pyxdg/Config.in deleted file mode 100644 index c6985deb..00000000 --- a/buildroot-external/package/python-pyxdg/Config.in +++ /dev/null @@ -1,6 +0,0 @@ -config BR2_PACKAGE_PYTHON_PYXDG - bool "python-pyxdg" - help - PyXDG is a python library to access freedesktop.org standards.. - - https://freedesktop.org/wiki/Software/pyxdg/ diff --git a/buildroot-external/package/python-pyxdg/python-pyxdg.hash b/buildroot-external/package/python-pyxdg/python-pyxdg.hash deleted file mode 100644 index a55fbcea..00000000 --- a/buildroot-external/package/python-pyxdg/python-pyxdg.hash +++ /dev/null @@ -1,2 +0,0 @@ -# md5, sha256 from https://pypi.org/pypi/pyxdg/json -sha256 fe2928d3f532ed32b39c32a482b54136fe766d19936afc96c8f00645f9da1a06 pyxdg-0.26.tar.gz diff --git a/buildroot-external/package/python-pyxdg/python-pyxdg.mk b/buildroot-external/package/python-pyxdg/python-pyxdg.mk deleted file mode 100644 index 8d530e9b..00000000 --- a/buildroot-external/package/python-pyxdg/python-pyxdg.mk +++ /dev/null @@ -1,12 +0,0 @@ -################################################################################ -# -# python-pyxdg -# -################################################################################ - -PYTHON_PYXDG_VERSION = 0.26 -PYTHON_PYXDG_SOURCE = pyxdg-$(PYTHON_PYXDG_VERSION).tar.gz -PYTHON_PYXDG_SITE = https://files.pythonhosted.org/packages/47/6e/311d5f22e2b76381719b5d0c6e9dc39cd33999adae67db71d7279a6d70f4 -PYTHON_PYXDG_SETUP_TYPE = distutils - -$(eval $(python-package)) diff --git a/buildroot-external/package/python-source/Config.in b/buildroot-external/package/python-source/Config.in deleted file mode 100644 index 2e896473..00000000 --- a/buildroot-external/package/python-source/Config.in +++ /dev/null @@ -1,6 +0,0 @@ -config BR2_PACKAGE_PYTHON_SOURCE - bool "python-source" - help - A simple printer of source list. - - http://www.cctv.com diff --git a/buildroot-external/package/python-source/python-source.hash b/buildroot-external/package/python-source/python-source.hash deleted file mode 100644 index 983e933f..00000000 --- a/buildroot-external/package/python-source/python-source.hash +++ /dev/null @@ -1,3 +0,0 @@ -# md5, sha256 from https://pypi.org/pypi/source/json -md5 75cfced3e80a80e06e60a90b4118dfa5 source-1.2.0.zip -sha256 c72a255f39264da1b495da33fd68ae026e4b6247f0da4fd0c1414d685be9bde0 source-1.2.0.zip diff --git a/buildroot-external/package/python-source/python-source.mk b/buildroot-external/package/python-source/python-source.mk deleted file mode 100644 index 9dd1c0fc..00000000 --- a/buildroot-external/package/python-source/python-source.mk +++ /dev/null @@ -1,18 +0,0 @@ -################################################################################ -# -# python-source -# -################################################################################ - -PYTHON_SOURCE_VERSION = 1.2.0 -PYTHON_SOURCE_SOURCE = source-$(PYTHON_SOURCE_VERSION).zip -PYTHON_SOURCE_SITE = https://files.pythonhosted.org/packages/cd/44/8dfdedc238dbab3abacebbe4f76308847af8ff71bee20c668326b7941f76 -PYTHON_SOURCE_SETUP_TYPE = distutils - -define PYTHON_SOURCE_EXTRACT_CMDS - $(UNZIP) -d $(@D) $(DL_DIR)/python-source/$(PYTHON_SOURCE_SOURCE) - mv $(@D)/source-$(PYTHON_SOURCE_VERSION)/* $(@D) - $(RM) -r $(@D)/source-$(PYTHON_SOURCE_VERSION) -endef - -$(eval $(python-package)) diff --git a/buildroot-external/package/python-wheel/Config.in b/buildroot-external/package/python-wheel/Config.in deleted file mode 100644 index 0f91f833..00000000 --- a/buildroot-external/package/python-wheel/Config.in +++ /dev/null @@ -1,8 +0,0 @@ -config BR2_PACKAGE_PYTHON_WHEEL - bool "python-wheel" - help - This library is the reference implementation - of the Python wheel packaging standard, as - defined in PEP 427. - - https://github.com/pypa/wheel diff --git a/buildroot-external/package/python-wheel/python-wheel.hash b/buildroot-external/package/python-wheel/python-wheel.hash deleted file mode 100644 index 3e49bead..00000000 --- a/buildroot-external/package/python-wheel/python-wheel.hash +++ /dev/null @@ -1,2 +0,0 @@ -# sha256 from https://pypi.org/pypi/ -sha256 e2ef7239991699e3355d54f8e968a21bb940a1dbf34a4d226741e64462516fad wheel-0.37.0.tar.gz diff --git a/buildroot-external/package/python-wheel/python-wheel.mk b/buildroot-external/package/python-wheel/python-wheel.mk deleted file mode 100644 index 2673a877..00000000 --- a/buildroot-external/package/python-wheel/python-wheel.mk +++ /dev/null @@ -1,13 +0,0 @@ -################################################################################ -# -# python-wheel -# -################################################################################ - -PYTHON_WHEEL_VERSION = 0.37.0 -PYTHON_WHEEL_SOURCE = wheel-$(PYTHON_WHEEL_VERSION).tar.gz -PYTHON_WHEEL_SITE = https://files.pythonhosted.org/packages/4e/be/8139f127b4db2f79c8b117c80af56a3078cc4824b5b94250c7f81a70e03b -PYTHON_WHEEL_SETUP_TYPE = setuptools - -$(eval $(python-package)) -$(eval $(host-python-package)) diff --git a/buildroot-external/patches/grub2/0003-efidisk-pass-buffers-with-higher-alignment.patch b/buildroot-external/patches/grub2/0003-efidisk-pass-buffers-with-higher-alignment.patch deleted file mode 100644 index 91a0214d..00000000 --- a/buildroot-external/patches/grub2/0003-efidisk-pass-buffers-with-higher-alignment.patch +++ /dev/null @@ -1,73 +0,0 @@ -From 7eaacdbf00ec29931553384f914c229c6078582e Mon Sep 17 00:00:00 2001 -Message-Id: <7eaacdbf00ec29931553384f914c229c6078582e.1652945863.git.stefan@agner.ch> -In-Reply-To: <184b6a054e04bb4c7fb4885a30d62314229dc551.1652945863.git.stefan@agner.ch> -References: <184b6a054e04bb4c7fb4885a30d62314229dc551.1652945863.git.stefan@agner.ch> -From: Stefan Agner -Date: Thu, 5 May 2022 15:46:51 +0200 -Subject: [PATCH] efidisk: pass buffers with higher alignment - -Some devices report a IoAlign value of 2, however seem to require a -buffer with higher alignment. - -The UEFI specification is saying: "IoAlign values of 0 and 1 mean that -the buffer can be placed anywhere in memory. Otherwise, IoAlign must -be a power of 2, and the requirement is that the start address of a -buffer must be evenly divisible by IoAlign with no remainder." - -It seems that this got misinterpreted by some vendors assuming IoAlign -is 2^IoAlign. There is also such a hint in an example in earlier -versions of the Driver Writer's Guide: -ScsiPassThruMode.IoAlign = 2; // Data must be alligned on 4-byte boundary - -However, it is unsafe to just blindly align buffers by 2^IoAlign, as -this would lead to an overflow for systems which use block size -alignment (e.g. 512 bytes, for example U-Boot). - -Ontop of that, some devices seem to report no alignment requirements -but seem to read corrupt data or report read errors if the buffer is -not aligned. - -Work around by using an alignment of at least BlockSize (typically 512 -bytes) in any casea. Also make sure that IoAlign is still respected as -per UEFI specification if a higher alignment than block size is -requested. - -Note: The problem has only noticed with compressed squashfs. It seems -that ext4 (and presumably other file system drivers) pass buffers with -a higher alignment already. - -Acked-by: Heinrich Schuchardt -Signed-off-by: Stefan Agner ---- - grub-core/disk/efi/efidisk.c | 15 +++++++++++++-- - 1 file changed, 13 insertions(+), 2 deletions(-) - -diff --git a/grub-core/disk/efi/efidisk.c b/grub-core/disk/efi/efidisk.c -index 9e20af70e..c6e37f131 100644 ---- a/grub-core/disk/efi/efidisk.c -+++ b/grub-core/disk/efi/efidisk.c -@@ -553,8 +553,19 @@ grub_efidisk_readwrite (struct grub_disk *disk, grub_disk_addr_t sector, - d = disk->data; - bio = d->block_io; - -- /* Set alignment to 1 if 0 specified */ -- io_align = bio->media->io_align ? bio->media->io_align : 1; -+ /* -+ * If IoAlign is > 1, it should represent the required alignment. However, -+ * some UEFI implementation on Intel NUC systems seem to use IoAlign=2 but -+ * require 2^IoAlign. Some implementation seem to require alignment despite -+ * not reporting any requirements. -+ * -+ * Make sure to align to at least block size in any case. -+ */ -+ if (bio->media->io_align < bio->media->block_size) -+ io_align = bio->media->block_size; -+ else -+ io_align = bio->media->io_align; -+ - num_bytes = size << disk->log_sector_size; - - if ((grub_addr_t) buf & (io_align - 1)) --- -2.36.1 - diff --git a/buildroot-external/patches/linux/0001-sched-Constrain-locks-in-sched_submit_work.patch b/buildroot-external/patches/linux/0001-sched-Constrain-locks-in-sched_submit_work.patch index 52e60f36..64b8ac03 100644 --- a/buildroot-external/patches/linux/0001-sched-Constrain-locks-in-sched_submit_work.patch +++ b/buildroot-external/patches/linux/0001-sched-Constrain-locks-in-sched_submit_work.patch @@ -1,7 +1,7 @@ -From 71103fe2c85e989e7b5374cead80c0d75425f1de Mon Sep 17 00:00:00 2001 +From f75402b89331eb0888900ae15fe7a8ec08564e90 Mon Sep 17 00:00:00 2001 From: Peter Zijlstra Date: Fri, 8 Sep 2023 18:22:48 +0200 -Subject: [PATCH 001/195] sched: Constrain locks in sched_submit_work() +Subject: [PATCH 001/196] sched: Constrain locks in sched_submit_work() Even though sched_submit_work() is ran from preemptible context, it is discouraged to have it use blocking locks due to the recursion @@ -50,5 +50,5 @@ index a854b71836dd..a9bf40d18cec 100644 static void sched_update_worker(struct task_struct *tsk) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0002-locking-rtmutex-Avoid-unconditional-slowpath-for-DEB.patch b/buildroot-external/patches/linux/0002-locking-rtmutex-Avoid-unconditional-slowpath-for-DEB.patch index c38c8f34..f9871a5b 100644 --- a/buildroot-external/patches/linux/0002-locking-rtmutex-Avoid-unconditional-slowpath-for-DEB.patch +++ b/buildroot-external/patches/linux/0002-locking-rtmutex-Avoid-unconditional-slowpath-for-DEB.patch @@ -1,7 +1,7 @@ -From 30c0fabb5665235a7e6dd945be69945e9c6dc069 Mon Sep 17 00:00:00 2001 +From ac013e45d292b1339ee9da48307bc36e860e075e Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Fri, 8 Sep 2023 18:22:49 +0200 -Subject: [PATCH 002/195] locking/rtmutex: Avoid unconditional slowpath for +Subject: [PATCH 002/196] locking/rtmutex: Avoid unconditional slowpath for DEBUG_RT_MUTEXES With DEBUG_RT_MUTEXES enabled the fast-path rt_mutex_cmpxchg_acquire() @@ -82,5 +82,5 @@ index d1473c624105..c7196de838ed 100644 ww_mutex_set_context_fastpath(lock, ww_ctx); return 0; -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0003-sched-Extract-__schedule_loop.patch b/buildroot-external/patches/linux/0003-sched-Extract-__schedule_loop.patch index 55185166..428c227c 100644 --- a/buildroot-external/patches/linux/0003-sched-Extract-__schedule_loop.patch +++ b/buildroot-external/patches/linux/0003-sched-Extract-__schedule_loop.patch @@ -1,7 +1,7 @@ -From 67e70cee63df0dcf79656f4902fb1a563a9bd28f Mon Sep 17 00:00:00 2001 +From 441d37212b3185e39a4eba30acb9f2aefc8f157a Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Fri, 8 Sep 2023 18:22:50 +0200 -Subject: [PATCH 003/195] sched: Extract __schedule_loop() +Subject: [PATCH 003/196] sched: Extract __schedule_loop() There are currently two implementations of this basic __schedule() loop, and there is soon to be a third. @@ -59,5 +59,5 @@ index a9bf40d18cec..ed5f5e3f6239 100644 NOKPROBE_SYMBOL(schedule_rtlock); #endif -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0004-sched-Provide-rt_mutex-specific-scheduler-helpers.patch b/buildroot-external/patches/linux/0004-sched-Provide-rt_mutex-specific-scheduler-helpers.patch index 3ee2984a..8e2fe451 100644 --- a/buildroot-external/patches/linux/0004-sched-Provide-rt_mutex-specific-scheduler-helpers.patch +++ b/buildroot-external/patches/linux/0004-sched-Provide-rt_mutex-specific-scheduler-helpers.patch @@ -1,7 +1,7 @@ -From 9e47eb505e7f3ed5408d3d66e91ebb6982768023 Mon Sep 17 00:00:00 2001 +From a8e46d57627a4d965d528b7ba8ed107d500257f6 Mon Sep 17 00:00:00 2001 From: Peter Zijlstra Date: Fri, 8 Sep 2023 18:22:51 +0200 -Subject: [PATCH 004/195] sched: Provide rt_mutex specific scheduler helpers +Subject: [PATCH 004/196] sched: Provide rt_mutex specific scheduler helpers With PREEMPT_RT there is a rt_mutex recursion problem where sched_submit_work() can use an rtlock (aka spinlock_t). More @@ -133,5 +133,5 @@ index ed5f5e3f6239..90f9124ac027 100644 { if (pi_task) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0005-locking-rtmutex-Use-rt_mutex-specific-scheduler-help.patch b/buildroot-external/patches/linux/0005-locking-rtmutex-Use-rt_mutex-specific-scheduler-help.patch index aba1d68e..6ca01031 100644 --- a/buildroot-external/patches/linux/0005-locking-rtmutex-Use-rt_mutex-specific-scheduler-help.patch +++ b/buildroot-external/patches/linux/0005-locking-rtmutex-Use-rt_mutex-specific-scheduler-help.patch @@ -1,7 +1,7 @@ -From be4c4dd6d8b7daa71457f2d02eead010dc5b77b5 Mon Sep 17 00:00:00 2001 +From 1516b657591d065dbad2dbcd031a419802536191 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Fri, 8 Sep 2023 18:22:52 +0200 -Subject: [PATCH 005/195] locking/rtmutex: Use rt_mutex specific scheduler +Subject: [PATCH 005/196] locking/rtmutex: Use rt_mutex specific scheduler helpers Have rt_mutex use the rt_mutex specific scheduler helpers to avoid @@ -187,5 +187,5 @@ index 48a19ed8486d..842037b2ba54 100644 /* * The common functions which get wrapped into the rwlock API. -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0006-locking-rtmutex-Add-a-lockdep-assert-to-catch-potent.patch b/buildroot-external/patches/linux/0006-locking-rtmutex-Add-a-lockdep-assert-to-catch-potent.patch index 5db59d4f..0053dc4a 100644 --- a/buildroot-external/patches/linux/0006-locking-rtmutex-Add-a-lockdep-assert-to-catch-potent.patch +++ b/buildroot-external/patches/linux/0006-locking-rtmutex-Add-a-lockdep-assert-to-catch-potent.patch @@ -1,7 +1,7 @@ -From beef31a7b4f8b038bfd4490f654df84668b806dc Mon Sep 17 00:00:00 2001 +From 6e0ef4c9025663e48a28d0f9f37117f7468884b9 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Fri, 8 Sep 2023 18:22:53 +0200 -Subject: [PATCH 006/195] locking/rtmutex: Add a lockdep assert to catch +Subject: [PATCH 006/196] locking/rtmutex: Add a lockdep assert to catch potential nested blocking There used to be a BUG_ON(current->pi_blocked_on) in the lock acquisition @@ -62,5 +62,5 @@ index 842037b2ba54..38e292454fcc 100644 rtlock_slowlock(rtm); } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0007-futex-pi-Fix-recursive-rt_mutex-waiter-state.patch b/buildroot-external/patches/linux/0007-futex-pi-Fix-recursive-rt_mutex-waiter-state.patch index 4c553af5..a3ba02c2 100644 --- a/buildroot-external/patches/linux/0007-futex-pi-Fix-recursive-rt_mutex-waiter-state.patch +++ b/buildroot-external/patches/linux/0007-futex-pi-Fix-recursive-rt_mutex-waiter-state.patch @@ -1,7 +1,7 @@ -From 067017a07e06c6ab7a99d0a9da097d3cdbc07d74 Mon Sep 17 00:00:00 2001 +From c727d5f5dcbe3a30ed56920957f32cade3dfd2cf Mon Sep 17 00:00:00 2001 From: Peter Zijlstra Date: Fri, 15 Sep 2023 17:19:44 +0200 -Subject: [PATCH 007/195] futex/pi: Fix recursive rt_mutex waiter state +Subject: [PATCH 007/196] futex/pi: Fix recursive rt_mutex waiter state Some new assertions pointed out that the existing code has nested rt_mutex wait state in the futex code. @@ -200,5 +200,5 @@ index cba8b1a6a4cc..4c73e0b81acc 100644 /* * Fixup the pi_state owner and possibly acquire the lock if we -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0008-signal-Add-proper-comment-about-the-preempt-disable-.patch b/buildroot-external/patches/linux/0008-signal-Add-proper-comment-about-the-preempt-disable-.patch index 00627f3f..8171fd92 100644 --- a/buildroot-external/patches/linux/0008-signal-Add-proper-comment-about-the-preempt-disable-.patch +++ b/buildroot-external/patches/linux/0008-signal-Add-proper-comment-about-the-preempt-disable-.patch @@ -1,7 +1,7 @@ -From 854cc4a6294ebc631fceda57138d1419977e9c87 Mon Sep 17 00:00:00 2001 +From ed5e3fcceec56a9401a00bfdd6e2545e064ea774 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Thu, 3 Aug 2023 12:09:31 +0200 -Subject: [PATCH 008/195] signal: Add proper comment about the preempt-disable +Subject: [PATCH 008/196] signal: Add proper comment about the preempt-disable in ptrace_stop(). Commit 53da1d9456fe7 ("fix ptrace slowness") added a preempt-disable section @@ -48,5 +48,5 @@ index 09019017d669..051ed8114cd4 100644 preempt_disable(); read_unlock(&tasklist_lock); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0009-signal-Don-t-disable-preemption-in-ptrace_stop-on-PR.patch b/buildroot-external/patches/linux/0009-signal-Don-t-disable-preemption-in-ptrace_stop-on-PR.patch index df2b7b74..6db31427 100644 --- a/buildroot-external/patches/linux/0009-signal-Don-t-disable-preemption-in-ptrace_stop-on-PR.patch +++ b/buildroot-external/patches/linux/0009-signal-Don-t-disable-preemption-in-ptrace_stop-on-PR.patch @@ -1,7 +1,7 @@ -From 819c398c8fc580efa6af71d8880e57d762c7b53a Mon Sep 17 00:00:00 2001 +From b9cc1762c1cb78dc3ea579526c2810aaa5095b76 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Thu, 3 Aug 2023 12:09:32 +0200 -Subject: [PATCH 009/195] signal: Don't disable preemption in ptrace_stop() on +Subject: [PATCH 009/196] signal: Don't disable preemption in ptrace_stop() on PREEMPT_RT. On PREEMPT_RT keeping preemption disabled during the invocation of @@ -49,5 +49,5 @@ index 051ed8114cd4..b71026341056 100644 cgroup_leave_frozen(true); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0010-drm-amd-display-Remove-migrate_en-dis-from-dc_fpu_be.patch b/buildroot-external/patches/linux/0010-drm-amd-display-Remove-migrate_en-dis-from-dc_fpu_be.patch index 81ac1ac8..a0a419c2 100644 --- a/buildroot-external/patches/linux/0010-drm-amd-display-Remove-migrate_en-dis-from-dc_fpu_be.patch +++ b/buildroot-external/patches/linux/0010-drm-amd-display-Remove-migrate_en-dis-from-dc_fpu_be.patch @@ -1,7 +1,7 @@ -From beec053e6c4b3efcfb0c71e5594de0df4651d6f8 Mon Sep 17 00:00:00 2001 +From 940963fd380191ddc53a1519e9a43e9f64acff7d Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Thu, 21 Sep 2023 16:15:12 +0200 -Subject: [PATCH 010/195] drm/amd/display: Remove migrate_en/dis from +Subject: [PATCH 010/196] drm/amd/display: Remove migrate_en/dis from dc_fpu_begin(). This is a revert of the commit mentioned below while it is not wrong, as @@ -87,5 +87,5 @@ index 172aa10a8800..86f4c0e04654 100644 if (cpu_has_feature(CPU_FTR_VSX_COMP)) { disable_kernel_vsx(); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0011-drm-amd-display-Simplify-the-per-CPU-usage.patch b/buildroot-external/patches/linux/0011-drm-amd-display-Simplify-the-per-CPU-usage.patch index 2e8d9f5e..4b7fdb8a 100644 --- a/buildroot-external/patches/linux/0011-drm-amd-display-Simplify-the-per-CPU-usage.patch +++ b/buildroot-external/patches/linux/0011-drm-amd-display-Simplify-the-per-CPU-usage.patch @@ -1,7 +1,7 @@ -From 13345b6e1dccf7f0404111eb4081834eaf628563 Mon Sep 17 00:00:00 2001 +From 5a4030acca5d80c89c7c5d456ce6d368c8b06c3d Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Thu, 21 Sep 2023 16:15:13 +0200 -Subject: [PATCH 011/195] drm/amd/display: Simplify the per-CPU usage. +Subject: [PATCH 011/196] drm/amd/display: Simplify the per-CPU usage. The fpu_recursion_depth counter is used to ensure that dc_fpu_begin() can be invoked multiple times while the FPU-disable function itself is @@ -128,5 +128,5 @@ index 86f4c0e04654..8bd5926b47e0 100644 + preempt_enable(); } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0012-drm-amd-display-Add-a-warning-if-the-FPU-is-used-out.patch b/buildroot-external/patches/linux/0012-drm-amd-display-Add-a-warning-if-the-FPU-is-used-out.patch index 12c5a57d..c6e067c6 100644 --- a/buildroot-external/patches/linux/0012-drm-amd-display-Add-a-warning-if-the-FPU-is-used-out.patch +++ b/buildroot-external/patches/linux/0012-drm-amd-display-Add-a-warning-if-the-FPU-is-used-out.patch @@ -1,7 +1,7 @@ -From 533bd452afe45e25b387a11ab7748f9633995fee Mon Sep 17 00:00:00 2001 +From 571a36167db85f02eee543494804642690368288 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Thu, 21 Sep 2023 16:15:14 +0200 -Subject: [PATCH 012/195] drm/amd/display: Add a warning if the FPU is used +Subject: [PATCH 012/196] drm/amd/display: Add a warning if the FPU is used outside from task context. Add a warning if the FPU is used from any context other than task @@ -27,5 +27,5 @@ index 8bd5926b47e0..4ae4720535a5 100644 depth = __this_cpu_inc_return(fpu_recursion_depth); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0013-drm-amd-display-Move-the-memory-allocation-out-of-dc.patch b/buildroot-external/patches/linux/0013-drm-amd-display-Move-the-memory-allocation-out-of-dc.patch index 55541c37..7369fc7a 100644 --- a/buildroot-external/patches/linux/0013-drm-amd-display-Move-the-memory-allocation-out-of-dc.patch +++ b/buildroot-external/patches/linux/0013-drm-amd-display-Move-the-memory-allocation-out-of-dc.patch @@ -1,7 +1,7 @@ -From 7c34575c85d40e203f3b18ccb63e526d978b1c78 Mon Sep 17 00:00:00 2001 +From ac9bf004c54c34415488830ec5cbdd2c85a77619 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Thu, 21 Sep 2023 16:15:15 +0200 -Subject: [PATCH 013/195] drm/amd/display: Move the memory allocation out of +Subject: [PATCH 013/196] drm/amd/display: Move the memory allocation out of dcn21_validate_bandwidth_fp(). dcn21_validate_bandwidth_fp() is invoked while FPU access has been @@ -92,5 +92,5 @@ index c51badf7b68a..a81a0b9e6884 100644 void dcn21_clk_mgr_set_bw_params_wm_table(struct clk_bw_params *bw_params); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0014-drm-amd-display-Move-the-memory-allocation-out-of-dc.patch b/buildroot-external/patches/linux/0014-drm-amd-display-Move-the-memory-allocation-out-of-dc.patch index 49f66a4a..8a412c87 100644 --- a/buildroot-external/patches/linux/0014-drm-amd-display-Move-the-memory-allocation-out-of-dc.patch +++ b/buildroot-external/patches/linux/0014-drm-amd-display-Move-the-memory-allocation-out-of-dc.patch @@ -1,7 +1,7 @@ -From bf3d7bb0ed627ca816eb490b7ac2b26ec02e63d5 Mon Sep 17 00:00:00 2001 +From 3f2c3255ff61a58382c5a9ade34c950b92fa2a10 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Thu, 21 Sep 2023 16:15:16 +0200 -Subject: [PATCH 014/195] drm/amd/display: Move the memory allocation out of +Subject: [PATCH 014/196] drm/amd/display: Move the memory allocation out of dcn20_validate_bandwidth_fp(). dcn20_validate_bandwidth_fp() is invoked while FPU access has been @@ -126,5 +126,5 @@ index a81a0b9e6884..b6c34198ddc8 100644 struct pp_smu_wm_range_sets *ranges, struct _vcs_dpi_soc_bounding_box_st *loaded_bb); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0015-net-Avoid-the-IPI-to-free-the.patch b/buildroot-external/patches/linux/0015-net-Avoid-the-IPI-to-free-the.patch index d3528eb7..9485d160 100644 --- a/buildroot-external/patches/linux/0015-net-Avoid-the-IPI-to-free-the.patch +++ b/buildroot-external/patches/linux/0015-net-Avoid-the-IPI-to-free-the.patch @@ -1,7 +1,7 @@ -From 30de1da993f600f4771b3f3724ce0667f66ac69b Mon Sep 17 00:00:00 2001 +From 1ae5a33601b65a31467bdb074b566d48296b1359 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Mon, 15 Aug 2022 17:29:50 +0200 -Subject: [PATCH 015/195] net: Avoid the IPI to free the +Subject: [PATCH 015/196] net: Avoid the IPI to free the skb_attempt_defer_free() collects a skbs, which was allocated on a remote CPU, on a per-CPU list. These skbs are either freed on that @@ -40,7 +40,7 @@ index b8e60a20416b..ffa5248a90e2 100644 static inline void input_queue_head_incr(struct softnet_data *sd) diff --git a/net/core/dev.c b/net/core/dev.c -index e480afb50d4c..227338b8cda8 100644 +index d72a4ff689ca..3c08e3dd115b 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -4705,15 +4705,6 @@ static void rps_trigger_softirq(void *data) @@ -92,7 +92,7 @@ index e480afb50d4c..227338b8cda8 100644 static int napi_threaded_poll(void *data) { struct napi_struct *napi = data; -@@ -11606,7 +11623,11 @@ static int __init net_dev_init(void) +@@ -11615,7 +11632,11 @@ static int __init net_dev_init(void) INIT_CSD(&sd->csd, rps_trigger_softirq, sd); sd->cpu = i; #endif @@ -124,5 +124,5 @@ index 011d69029112..9a9fbe18bf2f 100644 static void skb_splice_csum_page(struct sk_buff *skb, struct page *page, -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0016-x86-Allow-to-enable-RT.patch b/buildroot-external/patches/linux/0016-x86-Allow-to-enable-RT.patch index 3065153b..fc773f62 100644 --- a/buildroot-external/patches/linux/0016-x86-Allow-to-enable-RT.patch +++ b/buildroot-external/patches/linux/0016-x86-Allow-to-enable-RT.patch @@ -1,7 +1,7 @@ -From c17f2c393b160199e64c464189661283345d2e73 Mon Sep 17 00:00:00 2001 +From d312cf65a294c2b7b473cb487f8bda3161b9d72d Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Wed, 7 Aug 2019 18:15:38 +0200 -Subject: [PATCH 016/195] x86: Allow to enable RT +Subject: [PATCH 016/196] x86: Allow to enable RT Allow to select RT. @@ -24,5 +24,5 @@ index fe3292e310d4..984068efd48b 100644 select HAVE_ARCH_SOFT_DIRTY select MODULES_USE_ELF_RELA -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0017-x86-Enable-RT-also-on-32bit.patch b/buildroot-external/patches/linux/0017-x86-Enable-RT-also-on-32bit.patch index 834fea53..01577723 100644 --- a/buildroot-external/patches/linux/0017-x86-Enable-RT-also-on-32bit.patch +++ b/buildroot-external/patches/linux/0017-x86-Enable-RT-also-on-32bit.patch @@ -1,7 +1,7 @@ -From 44e5f60ede7f2407fe12fa477b09f1a156e0634b Mon Sep 17 00:00:00 2001 +From 06505d443d8b5674ebf4577ce6f372c939a36998 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Thu, 7 Nov 2019 17:49:20 +0100 -Subject: [PATCH 017/195] x86: Enable RT also on 32bit +Subject: [PATCH 017/196] x86: Enable RT also on 32bit Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner @@ -30,5 +30,5 @@ index 984068efd48b..1b445e289190 100644 select ARCH_USE_MEMTEST select ARCH_USE_QUEUED_RWLOCKS -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0018-sched-rt-Don-t-try-push-tasks-if-there-are-none.patch b/buildroot-external/patches/linux/0018-sched-rt-Don-t-try-push-tasks-if-there-are-none.patch index 886ab5e4..8ed9f622 100644 --- a/buildroot-external/patches/linux/0018-sched-rt-Don-t-try-push-tasks-if-there-are-none.patch +++ b/buildroot-external/patches/linux/0018-sched-rt-Don-t-try-push-tasks-if-there-are-none.patch @@ -1,7 +1,7 @@ -From f4ac796216884ec5942d1d74fde86d1ed5f1f695 Mon Sep 17 00:00:00 2001 +From a52edbca61751c78ec7f0a0d386c726f3ed609cd Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Tue, 1 Aug 2023 17:26:48 +0200 -Subject: [PATCH 018/195] sched/rt: Don't try push tasks if there are none. +Subject: [PATCH 018/196] sched/rt: Don't try push tasks if there are none. I have a RT task X at a high priority and cyclictest on each CPU with lower priority than X's. If X is active and each CPU wakes their own @@ -59,5 +59,5 @@ index 904dd8534597..563161845e79 100644 rd->rto_cpu = -1; -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0019-softirq-Use-a-dedicated-thread-for-timer-wakeups.patch b/buildroot-external/patches/linux/0019-softirq-Use-a-dedicated-thread-for-timer-wakeups.patch index 53308866..dc68f1ed 100644 --- a/buildroot-external/patches/linux/0019-softirq-Use-a-dedicated-thread-for-timer-wakeups.patch +++ b/buildroot-external/patches/linux/0019-softirq-Use-a-dedicated-thread-for-timer-wakeups.patch @@ -1,7 +1,7 @@ -From ddbe9f49b78c945704d68bd7333b354b13527703 Mon Sep 17 00:00:00 2001 +From 196e6be48c3feb1e5c17c651431b96dd16377788 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Wed, 1 Dec 2021 17:41:09 +0100 -Subject: [PATCH 019/195] softirq: Use a dedicated thread for timer wakeups. +Subject: [PATCH 019/196] softirq: Use a dedicated thread for timer wakeups. A timer/hrtimer softirq is raised in-IRQ context. With threaded interrupts enabled or on PREEMPT_RT this leads to waking the ksoftirqd @@ -194,10 +194,10 @@ index 210cf5f8d92c..c29c30106eb8 100644 } early_initcall(spawn_ksoftirqd); diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c -index 760793998cdd..9f4d7ab03e39 100644 +index edb0f821dcea..a7290012179a 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c -@@ -1808,7 +1808,7 @@ void hrtimer_interrupt(struct clock_event_device *dev) +@@ -1809,7 +1809,7 @@ void hrtimer_interrupt(struct clock_event_device *dev) if (!ktime_before(now, cpu_base->softirq_expires_next)) { cpu_base->softirq_expires_next = KTIME_MAX; cpu_base->softirq_activated = 1; @@ -206,7 +206,7 @@ index 760793998cdd..9f4d7ab03e39 100644 } __hrtimer_run_queues(cpu_base, now, flags, HRTIMER_ACTIVE_HARD); -@@ -1921,7 +1921,7 @@ void hrtimer_run_queues(void) +@@ -1922,7 +1922,7 @@ void hrtimer_run_queues(void) if (!ktime_before(now, cpu_base->softirq_expires_next)) { cpu_base->softirq_expires_next = KTIME_MAX; cpu_base->softirq_activated = 1; @@ -229,5 +229,5 @@ index 63a8ce7177dd..7cad6fe3c035 100644 /* -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0020-rcutorture-Also-force-sched-priority-to-timersd-on-b.patch b/buildroot-external/patches/linux/0020-rcutorture-Also-force-sched-priority-to-timersd-on-b.patch index c716957b..013b6479 100644 --- a/buildroot-external/patches/linux/0020-rcutorture-Also-force-sched-priority-to-timersd-on-b.patch +++ b/buildroot-external/patches/linux/0020-rcutorture-Also-force-sched-priority-to-timersd-on-b.patch @@ -1,7 +1,7 @@ -From f089c645b517d22f97433deffaaedc9fd6f9b598 Mon Sep 17 00:00:00 2001 +From 5cad67f914fcb553250226df80262091c892b24b Mon Sep 17 00:00:00 2001 From: Frederic Weisbecker Date: Tue, 5 Apr 2022 03:07:51 +0200 -Subject: [PATCH 020/195] rcutorture: Also force sched priority to timersd on +Subject: [PATCH 020/196] rcutorture: Also force sched priority to timersd on boosting test. ksoftirqd is statically boosted to the priority level right above the @@ -76,5 +76,5 @@ index c29c30106eb8..1277abc94228 100644 static unsigned int local_pending_timers(void) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0021-tick-Fix-timer-storm-since-introduction-of-timersd.patch b/buildroot-external/patches/linux/0021-tick-Fix-timer-storm-since-introduction-of-timersd.patch index 7c1378b8..669eda90 100644 --- a/buildroot-external/patches/linux/0021-tick-Fix-timer-storm-since-introduction-of-timersd.patch +++ b/buildroot-external/patches/linux/0021-tick-Fix-timer-storm-since-introduction-of-timersd.patch @@ -1,7 +1,7 @@ -From ed846d5dfed571d1dc9ab756a1240a93018004b5 Mon Sep 17 00:00:00 2001 +From 258f3ad84b7913d34d1ba886504d32c6035e9062 Mon Sep 17 00:00:00 2001 From: Frederic Weisbecker Date: Tue, 5 Apr 2022 03:07:52 +0200 -Subject: [PATCH 021/195] tick: Fix timer storm since introduction of timersd +Subject: [PATCH 021/196] tick: Fix timer storm since introduction of timersd If timers are pending while the tick is reprogrammed on nohz_mode, the next expiry is not armed to fire now, it is delayed one jiffy forward @@ -98,7 +98,7 @@ index 1277abc94228..a4d359e2c2b5 100644 static void wake_timersd(void) { diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c -index 5cbd0cee83c0..2d7036714c81 100644 +index 55cbc49f70d1..1a0ed106b192 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -795,7 +795,7 @@ static void tick_nohz_restart(struct tick_sched *ts, ktime_t now) @@ -111,5 +111,5 @@ index 5cbd0cee83c0..2d7036714c81 100644 static ktime_t tick_nohz_next_event(struct tick_sched *ts, int cpu) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0022-softirq-Wake-ktimers-thread-also-in-softirq.patch b/buildroot-external/patches/linux/0022-softirq-Wake-ktimers-thread-also-in-softirq.patch index 11a54908..949ed3a0 100644 --- a/buildroot-external/patches/linux/0022-softirq-Wake-ktimers-thread-also-in-softirq.patch +++ b/buildroot-external/patches/linux/0022-softirq-Wake-ktimers-thread-also-in-softirq.patch @@ -1,7 +1,7 @@ -From cb9cea518effb1b12b36be953f46c66fcca40c2f Mon Sep 17 00:00:00 2001 +From a1f12ecc3cd8e461adc6179d1c5879f6e8e75a79 Mon Sep 17 00:00:00 2001 From: Junxiao Chang Date: Mon, 20 Feb 2023 09:12:20 +0100 -Subject: [PATCH 022/195] softirq: Wake ktimers thread also in softirq. +Subject: [PATCH 022/196] softirq: Wake ktimers thread also in softirq. If the hrtimer is raised while a softirq is processed then it does not wake the corresponding ktimers thread. This is due to the optimisation in the @@ -45,5 +45,5 @@ index a4d359e2c2b5..c2474cc4fa51 100644 tick_irq_exit(); } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0023-zram-Replace-bit-spinlocks-with-spinlock_t-for-PREEM.patch b/buildroot-external/patches/linux/0023-zram-Replace-bit-spinlocks-with-spinlock_t-for-PREEM.patch index 9a8c1a0e..21199f0b 100644 --- a/buildroot-external/patches/linux/0023-zram-Replace-bit-spinlocks-with-spinlock_t-for-PREEM.patch +++ b/buildroot-external/patches/linux/0023-zram-Replace-bit-spinlocks-with-spinlock_t-for-PREEM.patch @@ -1,7 +1,7 @@ -From d25c9b1588e64c6b128e958bdb998668f65bd03a Mon Sep 17 00:00:00 2001 +From 03e700d918bec8e9cf7b84b0547aa3416951ac91 Mon Sep 17 00:00:00 2001 From: Mike Galbraith Date: Thu, 31 Mar 2016 04:08:28 +0200 -Subject: [PATCH 023/195] zram: Replace bit spinlocks with spinlock_t for +Subject: [PATCH 023/196] zram: Replace bit spinlocks with spinlock_t for PREEMPT_RT. The bit spinlock disables preemption. The spinlock_t lock becomes a sleeping @@ -98,5 +98,5 @@ index ca7a15bd4845..e64eb607eb45 100644 ktime_t ac_time; #endif -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0024-preempt-Put-preempt_enable-within-an-instrumentation.patch b/buildroot-external/patches/linux/0024-preempt-Put-preempt_enable-within-an-instrumentation.patch index e2fffea1..f7ee6e4b 100644 --- a/buildroot-external/patches/linux/0024-preempt-Put-preempt_enable-within-an-instrumentation.patch +++ b/buildroot-external/patches/linux/0024-preempt-Put-preempt_enable-within-an-instrumentation.patch @@ -1,7 +1,7 @@ -From 537326d9f40fb9b84eb9df67a0f8da0b4deee025 Mon Sep 17 00:00:00 2001 +From d2531fe36026bcaf2fc22454911e6ef75b937579 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Wed, 8 Mar 2023 16:29:38 +0100 -Subject: [PATCH 024/195] preempt: Put preempt_enable() within an +Subject: [PATCH 024/196] preempt: Put preempt_enable() within an instrumentation*() section. Callers of preempt_enable() can be within an noinstr section leading to: @@ -48,5 +48,5 @@ index 9aa6358a1a16..cd16f0330fba 100644 #define preempt_check_resched() \ -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0025-sched-core-Provide-a-method-to-check-if-a-task-is-PI.patch b/buildroot-external/patches/linux/0025-sched-core-Provide-a-method-to-check-if-a-task-is-PI.patch index 34da5d05..fb936c73 100644 --- a/buildroot-external/patches/linux/0025-sched-core-Provide-a-method-to-check-if-a-task-is-PI.patch +++ b/buildroot-external/patches/linux/0025-sched-core-Provide-a-method-to-check-if-a-task-is-PI.patch @@ -1,7 +1,7 @@ -From a3b4b96acf6a09da67d22e7aa8a62f250bfc6e25 Mon Sep 17 00:00:00 2001 +From 480a24076ff3f106924b91564cae088f7e04914c Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Fri, 4 Aug 2023 13:30:37 +0200 -Subject: [PATCH 025/195] sched/core: Provide a method to check if a task is +Subject: [PATCH 025/196] sched/core: Provide a method to check if a task is PI-boosted. Provide a method to check if a task inherited the priority from another @@ -57,5 +57,5 @@ index 90f9124ac027..7134598e3284 100644 * yield - yield the current processor to other threads. * -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0026-softirq-Add-function-to-preempt-serving-softirqs.patch b/buildroot-external/patches/linux/0026-softirq-Add-function-to-preempt-serving-softirqs.patch index 2c515beb..caff37b4 100644 --- a/buildroot-external/patches/linux/0026-softirq-Add-function-to-preempt-serving-softirqs.patch +++ b/buildroot-external/patches/linux/0026-softirq-Add-function-to-preempt-serving-softirqs.patch @@ -1,7 +1,7 @@ -From c330e617b94bbc517da0aaabecfd3b3c007d3e62 Mon Sep 17 00:00:00 2001 +From ac962468dfe43f7a986b0c1a71a4a824686afe1c Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Fri, 4 Aug 2023 13:30:38 +0200 -Subject: [PATCH 026/195] softirq: Add function to preempt serving softirqs. +Subject: [PATCH 026/196] softirq: Add function to preempt serving softirqs. Add a functionality for the softirq handler to preempt its current work if needed. The softirq core has no particular state. It reads and resets @@ -63,5 +63,5 @@ index c2474cc4fa51..cae0ae2e2b0b 100644 * Invoked from ksoftirqd_run() outside of the interrupt disabled section * to acquire the per CPU local lock for reentrancy protection. -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0027-time-Allow-to-preempt-after-a-callback.patch b/buildroot-external/patches/linux/0027-time-Allow-to-preempt-after-a-callback.patch index d406e878..97001b96 100644 --- a/buildroot-external/patches/linux/0027-time-Allow-to-preempt-after-a-callback.patch +++ b/buildroot-external/patches/linux/0027-time-Allow-to-preempt-after-a-callback.patch @@ -1,7 +1,7 @@ -From 811417a29d37605f932c88499d94379ac8535991 Mon Sep 17 00:00:00 2001 +From ae915e145a1a823d3b54adb8b5cda19fa8f8dcde Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Fri, 4 Aug 2023 13:30:39 +0200 -Subject: [PATCH 027/195] time: Allow to preempt after a callback. +Subject: [PATCH 027/196] time: Allow to preempt after a callback. The TIMER_SOFTIRQ handler invokes timer callbacks of the expired timers. Before each invocation the timer_base::lock is dropped. The only lock @@ -48,5 +48,5 @@ index 7cad6fe3c035..b3fbe97d1e34 100644 raw_spin_lock_irq(&base->lock); } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0028-serial-core-Provide-port-lock-wrappers.patch b/buildroot-external/patches/linux/0028-serial-core-Provide-port-lock-wrappers.patch deleted file mode 100644 index 2f46b47f..00000000 --- a/buildroot-external/patches/linux/0028-serial-core-Provide-port-lock-wrappers.patch +++ /dev/null @@ -1,131 +0,0 @@ -From 681f56a112fc24a97bfdffcef7655e5bf9ffb6e8 Mon Sep 17 00:00:00 2001 -From: Thomas Gleixner -Date: Thu, 14 Sep 2023 20:43:18 +0206 -Subject: [PATCH 028/195] serial: core: Provide port lock wrappers -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -When a serial port is used for kernel console output, then all -modifications to the UART registers which are done from other contexts, -e.g. getty, termios, are interference points for the kernel console. - -So far this has been ignored and the printk output is based on the -principle of hope. The rework of the console infrastructure which aims to -support threaded and atomic consoles, requires to mark sections which -modify the UART registers as unsafe. This allows the atomic write function -to make informed decisions and eventually to restore operational state. It -also allows to prevent the regular UART code from modifying UART registers -while printk output is in progress. - -All modifications of UART registers are guarded by the UART port lock, -which provides an obvious synchronization point with the console -infrastructure. - -Provide wrapper functions for spin_[un]lock*(port->lock) invocations so -that the console mechanics can be applied later on at a single place and -does not require to copy the same logic all over the drivers. - -Signed-off-by: Thomas Gleixner -Reviewed-by: Ilpo Järvinen -Signed-off-by: John Ogness -Link: https://lore.kernel.org/r/20230914183831.587273-2-john.ogness@linutronix.de -Signed-off-by: Greg Kroah-Hartman -Signed-off-by: Sebastian Andrzej Siewior ---- - include/linux/serial_core.h | 79 +++++++++++++++++++++++++++++++++++++ - 1 file changed, 79 insertions(+) - -diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h -index bb6f073bc159..f1d5c0d1568c 100644 ---- a/include/linux/serial_core.h -+++ b/include/linux/serial_core.h -@@ -588,6 +588,85 @@ struct uart_port { - void *private_data; /* generic platform data pointer */ - }; - -+/** -+ * uart_port_lock - Lock the UART port -+ * @up: Pointer to UART port structure -+ */ -+static inline void uart_port_lock(struct uart_port *up) -+{ -+ spin_lock(&up->lock); -+} -+ -+/** -+ * uart_port_lock_irq - Lock the UART port and disable interrupts -+ * @up: Pointer to UART port structure -+ */ -+static inline void uart_port_lock_irq(struct uart_port *up) -+{ -+ spin_lock_irq(&up->lock); -+} -+ -+/** -+ * uart_port_lock_irqsave - Lock the UART port, save and disable interrupts -+ * @up: Pointer to UART port structure -+ * @flags: Pointer to interrupt flags storage -+ */ -+static inline void uart_port_lock_irqsave(struct uart_port *up, unsigned long *flags) -+{ -+ spin_lock_irqsave(&up->lock, *flags); -+} -+ -+/** -+ * uart_port_trylock - Try to lock the UART port -+ * @up: Pointer to UART port structure -+ * -+ * Returns: True if lock was acquired, false otherwise -+ */ -+static inline bool uart_port_trylock(struct uart_port *up) -+{ -+ return spin_trylock(&up->lock); -+} -+ -+/** -+ * uart_port_trylock_irqsave - Try to lock the UART port, save and disable interrupts -+ * @up: Pointer to UART port structure -+ * @flags: Pointer to interrupt flags storage -+ * -+ * Returns: True if lock was acquired, false otherwise -+ */ -+static inline bool uart_port_trylock_irqsave(struct uart_port *up, unsigned long *flags) -+{ -+ return spin_trylock_irqsave(&up->lock, *flags); -+} -+ -+/** -+ * uart_port_unlock - Unlock the UART port -+ * @up: Pointer to UART port structure -+ */ -+static inline void uart_port_unlock(struct uart_port *up) -+{ -+ spin_unlock(&up->lock); -+} -+ -+/** -+ * uart_port_unlock_irq - Unlock the UART port and re-enable interrupts -+ * @up: Pointer to UART port structure -+ */ -+static inline void uart_port_unlock_irq(struct uart_port *up) -+{ -+ spin_unlock_irq(&up->lock); -+} -+ -+/** -+ * uart_port_lock_irqrestore - Unlock the UART port, restore interrupts -+ * @up: Pointer to UART port structure -+ * @flags: The saved interrupt flags for restore -+ */ -+static inline void uart_port_unlock_irqrestore(struct uart_port *up, unsigned long flags) -+{ -+ spin_unlock_irqrestore(&up->lock, flags); -+} -+ - static inline int serial_port_in(struct uart_port *up, int offset) - { - return up->serial_in(up, offset); --- -2.43.0 - diff --git a/buildroot-external/patches/linux/0029-serial-core-Use-lock-wrappers.patch b/buildroot-external/patches/linux/0028-serial-core-Use-lock-wrappers.patch similarity index 89% rename from buildroot-external/patches/linux/0029-serial-core-Use-lock-wrappers.patch rename to buildroot-external/patches/linux/0028-serial-core-Use-lock-wrappers.patch index f15e8fc2..4bdf9d25 100644 --- a/buildroot-external/patches/linux/0029-serial-core-Use-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0028-serial-core-Use-lock-wrappers.patch @@ -1,7 +1,7 @@ -From e642eaa68ae3692f66e9f8b987f23aebc709e326 Mon Sep 17 00:00:00 2001 +From e20fab51907c073d83831b2810d06305e037bdc1 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:19 +0206 -Subject: [PATCH 029/195] serial: core: Use lock wrappers +Subject: [PATCH 028/196] serial: core: Use lock wrappers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -41,10 +41,10 @@ Signed-off-by: Sebastian Andrzej Siewior 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h -index f1d5c0d1568c..3091c62ec37b 100644 +index 27a26092493a..f43aca7f3b01 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h -@@ -1035,14 +1035,14 @@ static inline void uart_unlock_and_check_sysrq(struct uart_port *port) +@@ -1057,14 +1057,14 @@ static inline void uart_unlock_and_check_sysrq(struct uart_port *port) u8 sysrq_ch; if (!port->has_sysrq) { @@ -61,7 +61,7 @@ index f1d5c0d1568c..3091c62ec37b 100644 if (sysrq_ch) handle_sysrq(sysrq_ch); -@@ -1054,14 +1054,14 @@ static inline void uart_unlock_and_check_sysrq_irqrestore(struct uart_port *port +@@ -1076,14 +1076,14 @@ static inline void uart_unlock_and_check_sysrq_irqrestore(struct uart_port *port u8 sysrq_ch; if (!port->has_sysrq) { @@ -78,7 +78,7 @@ index f1d5c0d1568c..3091c62ec37b 100644 if (sysrq_ch) handle_sysrq(sysrq_ch); -@@ -1077,12 +1077,12 @@ static inline int uart_prepare_sysrq_char(struct uart_port *port, u8 ch) +@@ -1099,12 +1099,12 @@ static inline int uart_prepare_sysrq_char(struct uart_port *port, u8 ch) } static inline void uart_unlock_and_check_sysrq(struct uart_port *port) { @@ -94,5 +94,5 @@ index f1d5c0d1568c..3091c62ec37b 100644 #endif /* CONFIG_MAGIC_SYSRQ_SERIAL */ -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0030-serial-21285-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0029-serial-21285-Use-port-lock-wrappers.patch similarity index 95% rename from buildroot-external/patches/linux/0030-serial-21285-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0029-serial-21285-Use-port-lock-wrappers.patch index 648e8eba..a7363947 100644 --- a/buildroot-external/patches/linux/0030-serial-21285-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0029-serial-21285-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 5acefbbc9066e05a67448a4ddbf2385cf8caedd5 Mon Sep 17 00:00:00 2001 +From 624855d352783d9df2a3de3be77cf25a9a2eace9 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:20 +0206 -Subject: [PATCH 030/195] serial: 21285: Use port lock wrappers +Subject: [PATCH 029/196] serial: 21285: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -76,5 +76,5 @@ index d756fcc884cb..4de0c975ebdc 100644 static const char *serial21285_type(struct uart_port *port) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0031-serial-8250_aspeed_vuart-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0030-serial-8250_aspeed_vuart-Use-port-lock-wrappers.patch similarity index 95% rename from buildroot-external/patches/linux/0031-serial-8250_aspeed_vuart-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0030-serial-8250_aspeed_vuart-Use-port-lock-wrappers.patch index 9a8717e1..a519e99a 100644 --- a/buildroot-external/patches/linux/0031-serial-8250_aspeed_vuart-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0030-serial-8250_aspeed_vuart-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From c33a0cbdf0fa230865a8dfdb6470235689178915 Mon Sep 17 00:00:00 2001 +From 30550a4dbe3e00fec073ed3f1e5b3302f0df992c Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:21 +0206 -Subject: [PATCH 031/195] serial: 8250_aspeed_vuart: Use port lock wrappers +Subject: [PATCH 030/196] serial: 8250_aspeed_vuart: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -62,5 +62,5 @@ index 4a9e71b2dbbc..021949f252f8 100644 lsr = serial_port_in(port, UART_LSR); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0032-serial-8250_bcm7271-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0031-serial-8250_bcm7271-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0032-serial-8250_bcm7271-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0031-serial-8250_bcm7271-Use-port-lock-wrappers.patch index de2a3623..d0e9422e 100644 --- a/buildroot-external/patches/linux/0032-serial-8250_bcm7271-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0031-serial-8250_bcm7271-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 9b3ce8f4924d20af62e1958030c88c035e5664a6 Mon Sep 17 00:00:00 2001 +From 3877ad09bffd062add43fc7a2ebac91e13deb790 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:22 +0206 -Subject: [PATCH 032/195] serial: 8250_bcm7271: Use port lock wrappers +Subject: [PATCH 031/196] serial: 8250_bcm7271: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -152,5 +152,5 @@ index aa5aff046756..ff0662c68725 100644 return 0; -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0033-serial-8250-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0032-serial-8250-Use-port-lock-wrappers.patch similarity index 99% rename from buildroot-external/patches/linux/0033-serial-8250-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0032-serial-8250-Use-port-lock-wrappers.patch index de2ee7e9..d27eb04c 100644 --- a/buildroot-external/patches/linux/0033-serial-8250-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0032-serial-8250-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 580e52e63f02c9243031af81c819aa0098ba9d75 Mon Sep 17 00:00:00 2001 +From 21397e587ef53d219da3aeac88bcc7cbf474852a Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:23 +0206 -Subject: [PATCH 033/195] serial: 8250: Use port lock wrappers +Subject: [PATCH 032/196] serial: 8250: Use port lock wrappers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -468,5 +468,5 @@ index 141627370aab..5b57254ae975 100644 static unsigned int probe_baud(struct uart_port *port) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0034-serial-8250_dma-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0033-serial-8250_dma-Use-port-lock-wrappers.patch similarity index 95% rename from buildroot-external/patches/linux/0034-serial-8250_dma-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0033-serial-8250_dma-Use-port-lock-wrappers.patch index 1ac0eec9..baa30460 100644 --- a/buildroot-external/patches/linux/0034-serial-8250_dma-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0033-serial-8250_dma-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 70ceea48d1051ec15b3a8d66f62386b323e12e4e Mon Sep 17 00:00:00 2001 +From 93094c1874ab303b8dc1782172f24c10a42cd408 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:24 +0206 -Subject: [PATCH 034/195] serial: 8250_dma: Use port lock wrappers +Subject: [PATCH 033/196] serial: 8250_dma: Use port lock wrappers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -81,5 +81,5 @@ index 7fa66501792d..8b30ca8fdd3f 100644 int serial8250_tx_dma(struct uart_8250_port *p) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0035-serial-8250_dw-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0034-serial-8250_dw-Use-port-lock-wrappers.patch similarity index 95% rename from buildroot-external/patches/linux/0035-serial-8250_dw-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0034-serial-8250_dw-Use-port-lock-wrappers.patch index 65107ccb..37e4d6df 100644 --- a/buildroot-external/patches/linux/0035-serial-8250_dw-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0034-serial-8250_dw-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 5cca2b99cbc7d88d8eeb8087e9130e127c83d385 Mon Sep 17 00:00:00 2001 +From 2a6e5944a151a85fbb67a497d67c8a33ee6645d0 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:25 +0206 -Subject: [PATCH 035/195] serial: 8250_dw: Use port lock wrappers +Subject: [PATCH 034/196] serial: 8250_dw: Use port lock wrappers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @@ -70,5 +70,5 @@ index a1f2259cc9a9..53c284bb271d 100644 if (status & (UART_LSR_DR | UART_LSR_BI)) { dw8250_writel_ext(p, RZN1_UART_RDMACR, 0); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0036-serial-8250_exar-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0035-serial-8250_exar-Use-port-lock-wrappers.patch similarity index 94% rename from buildroot-external/patches/linux/0036-serial-8250_exar-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0035-serial-8250_exar-Use-port-lock-wrappers.patch index 4dca6ecb..7b0ee62d 100644 --- a/buildroot-external/patches/linux/0036-serial-8250_exar-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0035-serial-8250_exar-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 6dcc66687c18aa95a2fc928da69a9f68f97b08c2 Mon Sep 17 00:00:00 2001 +From 74a615bca2e2128d4ae9b52795a2e60dcaf9c712 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:26 +0206 -Subject: [PATCH 036/195] serial: 8250_exar: Use port lock wrappers +Subject: [PATCH 035/196] serial: 8250_exar: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -53,5 +53,5 @@ index 8385be846840..91cf690b7c71 100644 return serial8250_do_startup(port); } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0037-serial-8250_fsl-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0036-serial-8250_fsl-Use-port-lock-wrappers.patch similarity index 95% rename from buildroot-external/patches/linux/0037-serial-8250_fsl-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0036-serial-8250_fsl-Use-port-lock-wrappers.patch index a8f930ce..17b7ee08 100644 --- a/buildroot-external/patches/linux/0037-serial-8250_fsl-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0036-serial-8250_fsl-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From b7a99e7acecb90b637d07620ed35754c7152004e Mon Sep 17 00:00:00 2001 +From d601a7a993aba887c6dc64bb9efc6762d5643780 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:27 +0206 -Subject: [PATCH 037/195] serial: 8250_fsl: Use port lock wrappers +Subject: [PATCH 036/196] serial: 8250_fsl: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -64,5 +64,5 @@ index 6af4e1c1210a..f522eb5026c9 100644 } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0038-serial-8250_mtk-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0037-serial-8250_mtk-Use-port-lock-wrappers.patch similarity index 95% rename from buildroot-external/patches/linux/0038-serial-8250_mtk-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0037-serial-8250_mtk-Use-port-lock-wrappers.patch index 26230f00..8657862f 100644 --- a/buildroot-external/patches/linux/0038-serial-8250_mtk-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0037-serial-8250_mtk-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From a91dd09d7fdf4ded721028676a9f5e44a2a754af Mon Sep 17 00:00:00 2001 +From ad44b165b3fe2140abff5cab7910d10866706978 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:28 +0206 -Subject: [PATCH 038/195] serial: 8250_mtk: Use port lock wrappers +Subject: [PATCH 037/196] serial: 8250_mtk: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -78,5 +78,5 @@ index 74da5676ce67..23457daae8a1 100644 if (tty_termios_baud_rate(termios)) tty_termios_encode_baud_rate(termios, baud, baud); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0039-serial-8250_omap-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0038-serial-8250_omap-Use-port-lock-wrappers.patch similarity index 98% rename from buildroot-external/patches/linux/0039-serial-8250_omap-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0038-serial-8250_omap-Use-port-lock-wrappers.patch index 4e93c279..bfcd7f0e 100644 --- a/buildroot-external/patches/linux/0039-serial-8250_omap-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0038-serial-8250_omap-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 4b82e23b67db0cbe2a97110597d9c97137fd3c5c Mon Sep 17 00:00:00 2001 +From 8a7fda3f428f68d7948da5ed9ff9bae4ec9c52a0 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:29 +0206 -Subject: [PATCH 039/195] serial: 8250_omap: Use port lock wrappers +Subject: [PATCH 038/196] serial: 8250_omap: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -237,5 +237,5 @@ index 346167afe9e1..db5519ce0192 100644 priv->latency = priv->calc_latency; -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0040-serial-8250_pci1xxxx-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0039-serial-8250_pci1xxxx-Use-port-lock-wrappers.patch similarity index 95% rename from buildroot-external/patches/linux/0040-serial-8250_pci1xxxx-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0039-serial-8250_pci1xxxx-Use-port-lock-wrappers.patch index 347c8de5..03bb8b03 100644 --- a/buildroot-external/patches/linux/0040-serial-8250_pci1xxxx-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0039-serial-8250_pci1xxxx-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From b52d5efa5d1afba0b8e8c56b3fd6af134643a292 Mon Sep 17 00:00:00 2001 +From e13e4c41a1cb64f703b8a71a185c4e29fadac5fc Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:30 +0206 -Subject: [PATCH 040/195] serial: 8250_pci1xxxx: Use port lock wrappers +Subject: [PATCH 039/196] serial: 8250_pci1xxxx: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -67,5 +67,5 @@ index a3b25779d921..53e238c8cc89 100644 mutex_unlock(&tport->mutex); } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0041-serial-altera_jtaguart-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0040-serial-altera_jtaguart-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0041-serial-altera_jtaguart-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0040-serial-altera_jtaguart-Use-port-lock-wrappers.patch index 8aa15db2..ae98b33e 100644 --- a/buildroot-external/patches/linux/0041-serial-altera_jtaguart-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0040-serial-altera_jtaguart-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 174bb9e1e1fa3d4ef2c46054621435dbf7a7dc66 Mon Sep 17 00:00:00 2001 +From 2d04716961088673b757343a2d075858886fb27c Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:31 +0206 -Subject: [PATCH 041/195] serial: altera_jtaguart: Use port lock wrappers +Subject: [PATCH 040/196] serial: altera_jtaguart: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -134,5 +134,5 @@ index 5fab4c978891..7090b251dd4d 100644 #endif -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0042-serial-altera_uart-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0041-serial-altera_uart-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0042-serial-altera_uart-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0041-serial-altera_uart-Use-port-lock-wrappers.patch index d3d78055..efd8aa4b 100644 --- a/buildroot-external/patches/linux/0042-serial-altera_uart-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0041-serial-altera_uart-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 9f6bc0c5b8dabce9436c34fea6a89469b652c41a Mon Sep 17 00:00:00 2001 +From db6d50be344aa102ac938287676ab60e9cb2dc39 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:32 +0206 -Subject: [PATCH 042/195] serial: altera_uart: Use port lock wrappers +Subject: [PATCH 041/196] serial: altera_uart: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -117,5 +117,5 @@ index a9c41942190c..77835ac68df2 100644 if (port->irq) free_irq(port->irq, port); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0043-serial-amba-pl010-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0042-serial-amba-pl010-Use-port-lock-wrappers.patch similarity index 96% rename from buildroot-external/patches/linux/0043-serial-amba-pl010-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0042-serial-amba-pl010-Use-port-lock-wrappers.patch index 29318b5d..95f3df78 100644 --- a/buildroot-external/patches/linux/0043-serial-amba-pl010-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0042-serial-amba-pl010-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From c3a76ebbc1bc4735df825ef0639312c01bb0e07c Mon Sep 17 00:00:00 2001 +From 8504980f6ecdabe092852eac2efaa683011996f9 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:33 +0206 -Subject: [PATCH 043/195] serial: amba-pl010: Use port lock wrappers +Subject: [PATCH 042/196] serial: amba-pl010: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -113,5 +113,5 @@ index b5a7404cbacb..eabbf8afc9b5 100644 } } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0044-serial-amba-pl011-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0043-serial-amba-pl011-Use-port-lock-wrappers.patch similarity index 98% rename from buildroot-external/patches/linux/0044-serial-amba-pl011-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0043-serial-amba-pl011-Use-port-lock-wrappers.patch index 0f6c161d..d8805f3a 100644 --- a/buildroot-external/patches/linux/0044-serial-amba-pl011-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0043-serial-amba-pl011-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 81e1e4da2b424a5f718ce4cfae82035f8de62531 Mon Sep 17 00:00:00 2001 +From 96c7d649adbd0d1dd0b530112b93dcc2bbf1066f Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:34 +0206 -Subject: [PATCH 044/195] serial: amba-pl011: Use port lock wrappers +Subject: [PATCH 043/196] serial: amba-pl011: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -328,5 +328,5 @@ index cd3913b933c7..aec67d740e44 100644 clk_disable(uap->clk); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0045-serial-apb-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0044-serial-apb-Use-port-lock-wrappers.patch similarity index 95% rename from buildroot-external/patches/linux/0045-serial-apb-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0044-serial-apb-Use-port-lock-wrappers.patch index 5bebccf7..0984c546 100644 --- a/buildroot-external/patches/linux/0045-serial-apb-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0044-serial-apb-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 0418ef3fdcdb25846f9cddf7a69ce8c097a483be Mon Sep 17 00:00:00 2001 +From ed166a0a00c424b2b9dd29b758500775c1c1a275 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:35 +0206 -Subject: [PATCH 045/195] serial: apb: Use port lock wrappers +Subject: [PATCH 044/196] serial: apb: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -77,5 +77,5 @@ index d3cb341f2c55..364599f256db 100644 static const char *apbuart_type(struct uart_port *port) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0046-serial-ar933x-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0045-serial-ar933x-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0046-serial-ar933x-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0045-serial-ar933x-Use-port-lock-wrappers.patch index 82fc7b22..1dfe9b22 100644 --- a/buildroot-external/patches/linux/0046-serial-ar933x-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0045-serial-ar933x-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 44c925a7d696a264d3a2a82719ebf8edb6ed867d Mon Sep 17 00:00:00 2001 +From 8777b7deb3069b2747696a2971979eaf11d0d42c Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:36 +0206 -Subject: [PATCH 046/195] serial: ar933x: Use port lock wrappers +Subject: [PATCH 045/196] serial: ar933x: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -145,5 +145,5 @@ index 924c1a89347c..ffd234673177 100644 local_irq_restore(flags); } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0047-serial-arc_uart-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0046-serial-arc_uart-Use-port-lock-wrappers.patch similarity index 96% rename from buildroot-external/patches/linux/0047-serial-arc_uart-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0046-serial-arc_uart-Use-port-lock-wrappers.patch index 5791a1c5..c161dfdd 100644 --- a/buildroot-external/patches/linux/0047-serial-arc_uart-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0046-serial-arc_uart-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 0898d04709fe45ddfbc0268f1bc4e1d6e7ef2c13 Mon Sep 17 00:00:00 2001 +From 58e377ebb1f28e1922aa731d02f8906b0585e8ed Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:37 +0206 -Subject: [PATCH 047/195] serial: arc_uart: Use port lock wrappers +Subject: [PATCH 046/196] serial: arc_uart: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -98,5 +98,5 @@ index ad4ae19b6ce3..1aa5b2b49c26 100644 static struct console arc_console = { -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0048-serial-atmel-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0047-serial-atmel-Use-port-lock-wrappers.patch similarity index 96% rename from buildroot-external/patches/linux/0048-serial-atmel-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0047-serial-atmel-Use-port-lock-wrappers.patch index cd8146a5..899aa12b 100644 --- a/buildroot-external/patches/linux/0048-serial-atmel-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0047-serial-atmel-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 46a1206089037fef9ea2f392d727c159d1466d61 Mon Sep 17 00:00:00 2001 +From ad6ee8430287f4d453bdbe0870c897f3568cb50f Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:38 +0206 -Subject: [PATCH 048/195] serial: atmel: Use port lock wrappers +Subject: [PATCH 047/196] serial: atmel: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -120,5 +120,5 @@ index 88cdafa5ac54..1946fafc3f3e 100644 } } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0049-serial-bcm63xx-uart-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0048-serial-bcm63xx-uart-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0049-serial-bcm63xx-uart-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0048-serial-bcm63xx-uart-Use-port-lock-wrappers.patch index b613cea2..fb7ca139 100644 --- a/buildroot-external/patches/linux/0049-serial-bcm63xx-uart-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0048-serial-bcm63xx-uart-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 0bce8cca5301c02cad41bebb779749e2ffa36424 Mon Sep 17 00:00:00 2001 +From bc56987ad8ef8a8948ba64ffa8302ea324913079 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:39 +0206 -Subject: [PATCH 049/195] serial: bcm63xx-uart: Use port lock wrappers +Subject: [PATCH 048/196] serial: bcm63xx-uart: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -129,5 +129,5 @@ index 0dd8cceb837c..4a08fd5ee61b 100644 } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0050-serial-cpm_uart-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0049-serial-cpm_uart-Use-port-lock-wrappers.patch similarity index 95% rename from buildroot-external/patches/linux/0050-serial-cpm_uart-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0049-serial-cpm_uart-Use-port-lock-wrappers.patch index cb99efac..d3e51d78 100644 --- a/buildroot-external/patches/linux/0050-serial-cpm_uart-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0049-serial-cpm_uart-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 1d8309a42134af8335590a7b58e24aa6ba8172bc Mon Sep 17 00:00:00 2001 +From 664d0c4022312cc8691aa574818f4301e9698f35 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:40 +0206 -Subject: [PATCH 050/195] serial: cpm_uart: Use port lock wrappers +Subject: [PATCH 049/196] serial: cpm_uart: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -71,5 +71,5 @@ index 626423022d62..be4af6eda4c2 100644 } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0051-serial-digicolor-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0050-serial-digicolor-Use-port-lock-wrappers.patch similarity index 96% rename from buildroot-external/patches/linux/0051-serial-digicolor-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0050-serial-digicolor-Use-port-lock-wrappers.patch index faeaf7b7..421a0672 100644 --- a/buildroot-external/patches/linux/0051-serial-digicolor-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0050-serial-digicolor-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From ab7a1a85b420f839afe9b6ac94e420c0016f47a7 Mon Sep 17 00:00:00 2001 +From 9ae489d6a664bdc487229b8847c4f29a126fb228 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:41 +0206 -Subject: [PATCH 051/195] serial: digicolor: Use port lock wrappers +Subject: [PATCH 050/196] serial: digicolor: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -114,5 +114,5 @@ index 128b5479e813..5004125f3045 100644 /* Wait for transmitter to become empty */ do { -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0052-serial-dz-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0051-serial-dz-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0052-serial-dz-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0051-serial-dz-Use-port-lock-wrappers.patch index 1c8b6b13..bf010bff 100644 --- a/buildroot-external/patches/linux/0052-serial-dz-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0051-serial-dz-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 3579237b515dfb4878cbc1eb1d2313d6b0fb2b7d Mon Sep 17 00:00:00 2001 +From 279159191fb892ad19a47abfe969e4cdc19d8ff0 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:42 +0206 -Subject: [PATCH 052/195] serial: dz: Use port lock wrappers +Subject: [PATCH 051/196] serial: dz: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -162,5 +162,5 @@ index 667f52e83277..6df7af9edc1c 100644 do { trdy = dz_in(dport, DZ_CSR); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0053-serial-linflexuart-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0052-serial-linflexuart-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0053-serial-linflexuart-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0052-serial-linflexuart-Use-port-lock-wrappers.patch index e0ee6212..98ccd784 100644 --- a/buildroot-external/patches/linux/0053-serial-linflexuart-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0052-serial-linflexuart-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From ab1c17a33ff558e1044149c683ec559daca8b962 Mon Sep 17 00:00:00 2001 +From 9ab5733ab07134629faf9863da976517fefa5d2a Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:43 +0206 -Subject: [PATCH 053/195] serial: linflexuart: Use port lock wrappers +Subject: [PATCH 052/196] serial: linflexuart: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -144,5 +144,5 @@ index 249cb380c3c6..7fa809a405e8 100644 /* -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0054-serial-fsl_lpuart-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0053-serial-fsl_lpuart-Use-port-lock-wrappers.patch similarity index 99% rename from buildroot-external/patches/linux/0054-serial-fsl_lpuart-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0053-serial-fsl_lpuart-Use-port-lock-wrappers.patch index f91989ff..35b04742 100644 --- a/buildroot-external/patches/linux/0054-serial-fsl_lpuart-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0053-serial-fsl_lpuart-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From be3a24b837786995c78967d477f7015686b79880 Mon Sep 17 00:00:00 2001 +From 46bfa550759cde139a65320e120a534c997d9ac2 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:44 +0206 -Subject: [PATCH 054/195] serial: fsl_lpuart: Use port lock wrappers +Subject: [PATCH 053/196] serial: fsl_lpuart: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -390,5 +390,5 @@ index f72e1340b47d..6d0cfb2e86b4 100644 dmaengine_terminate_sync(sport->dma_tx_chan); } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0055-serial-icom-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0054-serial-icom-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0055-serial-icom-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0054-serial-icom-Use-port-lock-wrappers.patch index e5b22695..8bdae50e 100644 --- a/buildroot-external/patches/linux/0055-serial-icom-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0054-serial-icom-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From c05570c9a89bbc1bdcdf29372853012b7f78d8f6 Mon Sep 17 00:00:00 2001 +From 09d3a495672166b07e612721a98429bb70bec397 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:45 +0206 -Subject: [PATCH 055/195] serial: icom: Use port lock wrappers +Subject: [PATCH 054/196] serial: icom: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -152,5 +152,5 @@ index 819f957b6b84..a75eafbcbea3 100644 static const char *icom_type(struct uart_port *port) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0056-serial-imx-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0055-serial-imx-Use-port-lock-wrappers.patch similarity index 94% rename from buildroot-external/patches/linux/0056-serial-imx-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0055-serial-imx-Use-port-lock-wrappers.patch index 076ce23e..86f317c7 100644 --- a/buildroot-external/patches/linux/0056-serial-imx-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0055-serial-imx-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From cc5463fe75395f9912053e3256c5c78f7313c094 Mon Sep 17 00:00:00 2001 +From 07d331feb4488de7831ce3f0b4fbc5a211e74663 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:46 +0206 -Subject: [PATCH 056/195] serial: imx: Use port lock wrappers +Subject: [PATCH 055/196] serial: imx: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -37,7 +37,7 @@ Signed-off-by: Sebastian Andrzej Siewior 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c -index cd36251ba1c0..4123cb76c324 100644 +index 2fbb9b597752..54b760d845c0 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -575,7 +575,7 @@ static void imx_uart_dma_tx_callback(void *data) @@ -268,7 +268,7 @@ index cd36251ba1c0..4123cb76c324 100644 return 0; } -@@ -2005,9 +2005,9 @@ imx_uart_console_write(struct console *co, const char *s, unsigned int count) +@@ -2001,9 +2001,9 @@ imx_uart_console_write(struct console *co, const char *s, unsigned int count) if (sport->port.sysrq) locked = 0; else if (oops_in_progress) @@ -280,7 +280,7 @@ index cd36251ba1c0..4123cb76c324 100644 /* * First, save UCR1/2/3 and then disable interrupts -@@ -2035,7 +2035,7 @@ imx_uart_console_write(struct console *co, const char *s, unsigned int count) +@@ -2031,7 +2031,7 @@ imx_uart_console_write(struct console *co, const char *s, unsigned int count) imx_uart_ucrs_restore(sport, &old_ucr); if (locked) @@ -289,7 +289,7 @@ index cd36251ba1c0..4123cb76c324 100644 } /* -@@ -2193,10 +2193,10 @@ static enum hrtimer_restart imx_trigger_start_tx(struct hrtimer *t) +@@ -2189,10 +2189,10 @@ static enum hrtimer_restart imx_trigger_start_tx(struct hrtimer *t) struct imx_port *sport = container_of(t, struct imx_port, trigger_start_tx); unsigned long flags; @@ -302,7 +302,7 @@ index cd36251ba1c0..4123cb76c324 100644 return HRTIMER_NORESTART; } -@@ -2206,10 +2206,10 @@ static enum hrtimer_restart imx_trigger_stop_tx(struct hrtimer *t) +@@ -2202,10 +2202,10 @@ static enum hrtimer_restart imx_trigger_stop_tx(struct hrtimer *t) struct imx_port *sport = container_of(t, struct imx_port, trigger_stop_tx); unsigned long flags; @@ -315,7 +315,7 @@ index cd36251ba1c0..4123cb76c324 100644 return HRTIMER_NORESTART; } -@@ -2476,9 +2476,9 @@ static void imx_uart_restore_context(struct imx_port *sport) +@@ -2472,9 +2472,9 @@ static void imx_uart_restore_context(struct imx_port *sport) { unsigned long flags; @@ -327,7 +327,7 @@ index cd36251ba1c0..4123cb76c324 100644 return; } -@@ -2493,7 +2493,7 @@ static void imx_uart_restore_context(struct imx_port *sport) +@@ -2489,7 +2489,7 @@ static void imx_uart_restore_context(struct imx_port *sport) imx_uart_writel(sport, sport->saved_reg[2], UCR3); imx_uart_writel(sport, sport->saved_reg[3], UCR4); sport->context_saved = false; @@ -336,7 +336,7 @@ index cd36251ba1c0..4123cb76c324 100644 } static void imx_uart_save_context(struct imx_port *sport) -@@ -2501,7 +2501,7 @@ static void imx_uart_save_context(struct imx_port *sport) +@@ -2497,7 +2497,7 @@ static void imx_uart_save_context(struct imx_port *sport) unsigned long flags; /* Save necessary regs */ @@ -345,7 +345,7 @@ index cd36251ba1c0..4123cb76c324 100644 sport->saved_reg[0] = imx_uart_readl(sport, UCR1); sport->saved_reg[1] = imx_uart_readl(sport, UCR2); sport->saved_reg[2] = imx_uart_readl(sport, UCR3); -@@ -2513,7 +2513,7 @@ static void imx_uart_save_context(struct imx_port *sport) +@@ -2509,7 +2509,7 @@ static void imx_uart_save_context(struct imx_port *sport) sport->saved_reg[8] = imx_uart_readl(sport, UBMR); sport->saved_reg[9] = imx_uart_readl(sport, IMX21_UTS); sport->context_saved = true; @@ -355,5 +355,5 @@ index cd36251ba1c0..4123cb76c324 100644 static void imx_uart_enable_wakeup(struct imx_port *sport, bool on) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0057-serial-ip22zilog-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0056-serial-ip22zilog-Use-port-lock-wrappers.patch similarity index 98% rename from buildroot-external/patches/linux/0057-serial-ip22zilog-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0056-serial-ip22zilog-Use-port-lock-wrappers.patch index b7ea67d0..4ccf10e0 100644 --- a/buildroot-external/patches/linux/0057-serial-ip22zilog-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0056-serial-ip22zilog-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 7701e267b929a56a55983404c00d4736ffadb847 Mon Sep 17 00:00:00 2001 +From f5e3e9348a0f40d7684f54037e1e29707a9afc6f Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:47 +0206 -Subject: [PATCH 057/195] serial: ip22zilog: Use port lock wrappers +Subject: [PATCH 056/196] serial: ip22zilog: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -186,5 +186,5 @@ index 845ff706bc59..320b29cd4683 100644 if (options) uart_parse_options(options, &baud, &parity, &bits, &flow); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0058-serial-jsm-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0057-serial-jsm-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0058-serial-jsm-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0057-serial-jsm-Use-port-lock-wrappers.patch index 52b4cd03..de7d3a53 100644 --- a/buildroot-external/patches/linux/0058-serial-jsm-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0057-serial-jsm-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 05c4ac5f565e1ee2b28fe1c1d1fa490d7fa6b766 Mon Sep 17 00:00:00 2001 +From 2d16a8c5689cf2e2249a8011b795e1d0abab80af Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:48 +0206 -Subject: [PATCH 058/195] serial: jsm: Use port lock wrappers +Subject: [PATCH 057/196] serial: jsm: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -127,5 +127,5 @@ index 222afc270c88..ce0fef7e2c66 100644 static const char *jsm_tty_type(struct uart_port *port) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0059-serial-liteuart-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0058-serial-liteuart-Use-port-lock-wrappers.patch similarity index 96% rename from buildroot-external/patches/linux/0059-serial-liteuart-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0058-serial-liteuart-Use-port-lock-wrappers.patch index cabd08f1..da428980 100644 --- a/buildroot-external/patches/linux/0059-serial-liteuart-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0058-serial-liteuart-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From f874ed9f1662ee8fabfebd26a21932420fe8519b Mon Sep 17 00:00:00 2001 +From 51106ea475766f95499f66c81695ba0ba2844023 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:49 +0206 -Subject: [PATCH 059/195] serial: liteuart: Use port lock wrappers +Subject: [PATCH 058/196] serial: liteuart: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -111,5 +111,5 @@ index d881cdd2a58f..a25ab1efe38f 100644 static int liteuart_console_setup(struct console *co, char *options) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0060-serial-lpc32xx_hs-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0059-serial-lpc32xx_hs-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0060-serial-lpc32xx_hs-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0059-serial-lpc32xx_hs-Use-port-lock-wrappers.patch index 5f4800e4..be31d09f 100644 --- a/buildroot-external/patches/linux/0060-serial-lpc32xx_hs-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0059-serial-lpc32xx_hs-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 9e8eb2f943add1f6eedbdb30e247d9be86bf2f8c Mon Sep 17 00:00:00 2001 +From c6983dd875db2ab4340af77fca5afdcbb6e92a8a Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:50 +0206 -Subject: [PATCH 060/195] serial: lpc32xx_hs: Use port lock wrappers +Subject: [PATCH 059/196] serial: lpc32xx_hs: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -149,5 +149,5 @@ index b38fe4728c26..5149a947b7fe 100644 /* Don't rewrite B0 */ if (tty_termios_baud_rate(termios)) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0061-serial-ma35d1-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0060-serial-ma35d1-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0061-serial-ma35d1-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0060-serial-ma35d1-Use-port-lock-wrappers.patch index d1712e01..72defd08 100644 --- a/buildroot-external/patches/linux/0061-serial-ma35d1-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0060-serial-ma35d1-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 294b8734d1b7df5b8bd169179926820cf601ee49 Mon Sep 17 00:00:00 2001 +From 26ecac5fb6df25e05028221e98b442d3440996cf Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:51 +0206 -Subject: [PATCH 061/195] serial: ma35d1: Use port lock wrappers +Subject: [PATCH 060/196] serial: ma35d1: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -118,5 +118,5 @@ index 69da24565b99..73910c54d6be 100644 static int __init ma35d1serial_console_setup(struct console *co, char *options) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0062-serial-mcf-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0061-serial-mcf-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0062-serial-mcf-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0061-serial-mcf-Use-port-lock-wrappers.patch index 03042c75..e787d1f2 100644 --- a/buildroot-external/patches/linux/0062-serial-mcf-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0061-serial-mcf-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 6c3f1909ab8c0fc94df3475a77d308b8ad7f7a98 Mon Sep 17 00:00:00 2001 +From 9839424386e00349034515ff5bc12cb0d8aa47fb Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:52 +0206 -Subject: [PATCH 062/195] serial: mcf: Use port lock wrappers +Subject: [PATCH 061/196] serial: mcf: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -128,5 +128,5 @@ index 1666ce012e5e..91b15243f6c6 100644 return ret; } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0063-serial-men_z135_uart-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0062-serial-men_z135_uart-Use-port-lock-wrappers.patch similarity index 95% rename from buildroot-external/patches/linux/0063-serial-men_z135_uart-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0062-serial-men_z135_uart-Use-port-lock-wrappers.patch index a1f1f428..6a0eab35 100644 --- a/buildroot-external/patches/linux/0063-serial-men_z135_uart-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0062-serial-men_z135_uart-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From ebfe5facac5e1f8837c7fd7f4502baed9832eccd Mon Sep 17 00:00:00 2001 +From d0d166377656a57a11a75a0936a72356daba9eb0 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:53 +0206 -Subject: [PATCH 063/195] serial: men_z135_uart: Use port lock wrappers +Subject: [PATCH 062/196] serial: men_z135_uart: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -77,5 +77,5 @@ index d2502aaa3e8c..8048fa542fc4 100644 static const char *men_z135_type(struct uart_port *port) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0064-serial-meson-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0063-serial-meson-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0064-serial-meson-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0063-serial-meson-Use-port-lock-wrappers.patch index 5638df70..f11a4dbb 100644 --- a/buildroot-external/patches/linux/0064-serial-meson-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0063-serial-meson-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 348c0f05fb287f150e7eaa783c40cb73910f589d Mon Sep 17 00:00:00 2001 +From d79a588b6e1f2d943dcf94453d53e0ecf1a38eaf Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:54 +0206 -Subject: [PATCH 064/195] serial: meson: Use port lock wrappers +Subject: [PATCH 063/196] serial: meson: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -169,5 +169,5 @@ index 9388b9ddea3b..4c1d2089a0bb 100644 } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0065-serial-milbeaut_usio-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0064-serial-milbeaut_usio-Use-port-lock-wrappers.patch similarity index 96% rename from buildroot-external/patches/linux/0065-serial-milbeaut_usio-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0064-serial-milbeaut_usio-Use-port-lock-wrappers.patch index 724697d4..5a68bea4 100644 --- a/buildroot-external/patches/linux/0065-serial-milbeaut_usio-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0064-serial-milbeaut_usio-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 59f470864a900f23b39ad6692168ab33dd33a0fe Mon Sep 17 00:00:00 2001 +From 98dc64ab1fdd00244eefd8bb5796577c7ad6b778 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:55 +0206 -Subject: [PATCH 065/195] serial: milbeaut_usio: Use port lock wrappers +Subject: [PATCH 064/196] serial: milbeaut_usio: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -102,5 +102,5 @@ index 70a910085e93..db3b81f2aa57 100644 static const char *mlb_usio_type(struct uart_port *port) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0066-serial-mpc52xx-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0065-serial-mpc52xx-Use-port-lock-wrappers.patch similarity index 95% rename from buildroot-external/patches/linux/0066-serial-mpc52xx-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0065-serial-mpc52xx-Use-port-lock-wrappers.patch index e1e412ea..f64f4732 100644 --- a/buildroot-external/patches/linux/0066-serial-mpc52xx-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0065-serial-mpc52xx-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 17acd9305f444fb66b8a2a8eb3d040f74907ca10 Mon Sep 17 00:00:00 2001 +From 1803501f5d4ad38b1c8eb7ff838f16937fa3976a Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:56 +0206 -Subject: [PATCH 066/195] serial: mpc52xx: Use port lock wrappers +Subject: [PATCH 065/196] serial: mpc52xx: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -90,5 +90,5 @@ index 916507b8f31d..a252465e745f 100644 return ret; } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0067-serial-mps2-uart-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0066-serial-mps2-uart-Use-port-lock-wrappers.patch similarity index 96% rename from buildroot-external/patches/linux/0067-serial-mps2-uart-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0066-serial-mps2-uart-Use-port-lock-wrappers.patch index 2348ba0f..a5f27501 100644 --- a/buildroot-external/patches/linux/0067-serial-mps2-uart-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0066-serial-mps2-uart-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 1ad745e8278c9d2958889fd70decb229a98b4a08 Mon Sep 17 00:00:00 2001 +From 8375fd64426b9440da7af602dd3ffa6e4f09324a Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:57 +0206 -Subject: [PATCH 067/195] serial: mps2-uart: Use port lock wrappers +Subject: [PATCH 066/196] serial: mps2-uart: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -104,5 +104,5 @@ index ea5a7911cb15..2a4c09f3a834 100644 if (tty_termios_baud_rate(termios)) tty_termios_encode_baud_rate(termios, baud, baud); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0068-serial-msm-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0067-serial-msm-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0068-serial-msm-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0067-serial-msm-Use-port-lock-wrappers.patch index bd2ca50f..5d6ee029 100644 --- a/buildroot-external/patches/linux/0068-serial-msm-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0067-serial-msm-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 95b731805a3b7e7d594541e3ddb7b2a987c24275 Mon Sep 17 00:00:00 2001 +From a6e8aee3001c0312bb7e408bf47ce1ab3cfb32ab Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:58 +0206 -Subject: [PATCH 068/195] serial: msm: Use port lock wrappers +Subject: [PATCH 067/196] serial: msm: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -186,5 +186,5 @@ index 90953e679e38..597264b546fd 100644 local_irq_restore(flags); } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0069-serial-mvebu-uart-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0068-serial-mvebu-uart-Use-port-lock-wrappers.patch similarity index 96% rename from buildroot-external/patches/linux/0069-serial-mvebu-uart-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0068-serial-mvebu-uart-Use-port-lock-wrappers.patch index 17850672..753b9388 100644 --- a/buildroot-external/patches/linux/0069-serial-mvebu-uart-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0068-serial-mvebu-uart-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From d3a42c4d712ef7bf405d2468e3f013fcd32d3a6a Mon Sep 17 00:00:00 2001 +From 7ac7e384900ed2ffe0fe5a04265b366ce7238a3f Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:43:59 +0206 -Subject: [PATCH 069/195] serial: mvebu-uart: Use port lock wrappers +Subject: [PATCH 068/196] serial: mvebu-uart: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -109,5 +109,5 @@ index ea924e9b913b..0255646bc175 100644 static int mvebu_uart_console_setup(struct console *co, char *options) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0070-serial-omap-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0069-serial-omap-Use-port-lock-wrappers.patch similarity index 98% rename from buildroot-external/patches/linux/0070-serial-omap-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0069-serial-omap-Use-port-lock-wrappers.patch index 73c9fcaf..b0cc94c0 100644 --- a/buildroot-external/patches/linux/0070-serial-omap-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0069-serial-omap-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 059528b5643354ab806041acc5a1a1e0d1c2a05a Mon Sep 17 00:00:00 2001 +From e2bbf91f5aa8efe291dd496739c348eae6b65d2d Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:00 +0206 -Subject: [PATCH 070/195] serial: omap: Use port lock wrappers +Subject: [PATCH 069/196] serial: omap: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -181,5 +181,5 @@ index 135a838f517a..f4c6ff806465 100644 } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0071-serial-owl-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0070-serial-owl-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0071-serial-owl-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0070-serial-owl-Use-port-lock-wrappers.patch index 05262d82..55a04fcb 100644 --- a/buildroot-external/patches/linux/0071-serial-owl-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0070-serial-owl-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 6372b921a79e114b21e1a158030758b22986d48e Mon Sep 17 00:00:00 2001 +From 9b2feafb80e749f910979bf5c22ee1685b53048f Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:01 +0206 -Subject: [PATCH 071/195] serial: owl: Use port lock wrappers +Subject: [PATCH 070/196] serial: owl: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -148,5 +148,5 @@ index e99970a9437f..919f5e5aa0f1 100644 local_irq_restore(flags); } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0072-serial-pch-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0071-serial-pch-Use-port-lock-wrappers.patch similarity index 96% rename from buildroot-external/patches/linux/0072-serial-pch-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0071-serial-pch-Use-port-lock-wrappers.patch index 1b08746b..b0338461 100644 --- a/buildroot-external/patches/linux/0072-serial-pch-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0071-serial-pch-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From e6d006d61488b46458c637b77c156484ee68cc6a Mon Sep 17 00:00:00 2001 +From b6db5f63edaf7679a15ec55f25ca8d0eb91fdfeb Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:02 +0206 -Subject: [PATCH 072/195] serial: pch: Use port lock wrappers +Subject: [PATCH 071/196] serial: pch: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -81,5 +81,5 @@ index cc83b772b7ca..436cc6d52a11 100644 spin_unlock(&priv->lock); local_irq_restore(flags); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0073-serial-pic32-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0072-serial-pic32-Use-port-lock-wrappers.patch similarity index 96% rename from buildroot-external/patches/linux/0073-serial-pic32-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0072-serial-pic32-Use-port-lock-wrappers.patch index 9854d043..a3e7cab8 100644 --- a/buildroot-external/patches/linux/0073-serial-pic32-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0072-serial-pic32-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 4420e84a1cc8a64b440520172b3dc258d75679ac Mon Sep 17 00:00:00 2001 +From c14bc8b2990b302c6491ff9f1fc07bacc74f6a02 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:03 +0206 -Subject: [PATCH 073/195] serial: pic32: Use port lock wrappers +Subject: [PATCH 072/196] serial: pic32: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -119,5 +119,5 @@ index e308d5022b3f..3a95bf5d55d3 100644 /* serial core request to claim uart iomem */ -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0074-serial-pmac_zilog-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0073-serial-pmac_zilog-Use-port-lock-wrappers.patch similarity index 98% rename from buildroot-external/patches/linux/0074-serial-pmac_zilog-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0073-serial-pmac_zilog-Use-port-lock-wrappers.patch index 66d83563..9f9c9f10 100644 --- a/buildroot-external/patches/linux/0074-serial-pmac_zilog-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0073-serial-pmac_zilog-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 41aaedf1ff5d6a4f5b3cec38d4ab6d88f483c6ff Mon Sep 17 00:00:00 2001 +From df5dddad723275a657d5d1bbeb832a71bdbf6b69 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:04 +0206 -Subject: [PATCH 074/195] serial: pmac_zilog: Use port lock wrappers +Subject: [PATCH 073/196] serial: pmac_zilog: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -233,5 +233,5 @@ index 13668ffdb1e7..c8bf08c19c64 100644 /* -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0075-serial-pxa-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0074-serial-pxa-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0075-serial-pxa-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0074-serial-pxa-Use-port-lock-wrappers.patch index bec52c87..88764f94 100644 --- a/buildroot-external/patches/linux/0075-serial-pxa-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0074-serial-pxa-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 994b12b364b53ad616b7754cfbab5aedda0685f7 Mon Sep 17 00:00:00 2001 +From 2c8fbdf011421d0e63a7c1d116fd4ad727fb9b5e Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:05 +0206 -Subject: [PATCH 075/195] serial: pxa: Use port lock wrappers +Subject: [PATCH 074/196] serial: pxa: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -151,5 +151,5 @@ index 73c60f5ea027..46e70e155aab 100644 clk_disable(up->clk); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0076-serial-qcom-geni-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0075-serial-qcom-geni-Use-port-lock-wrappers.patch similarity index 95% rename from buildroot-external/patches/linux/0076-serial-qcom-geni-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0075-serial-qcom-geni-Use-port-lock-wrappers.patch index e5916282..53bbe1b3 100644 --- a/buildroot-external/patches/linux/0076-serial-qcom-geni-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0075-serial-qcom-geni-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From ab7a1ccddd4087f353992edc5b94bdadfc04dd13 Mon Sep 17 00:00:00 2001 +From de2377b368081f7322e4ee7ed6f4a157f263ef22 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:06 +0206 -Subject: [PATCH 076/195] serial: qcom-geni: Use port lock wrappers +Subject: [PATCH 075/196] serial: qcom-geni: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -72,5 +72,5 @@ index b8aa4c1293ba..7e78f97e8f43 100644 m_irq_status = readl(uport->membase + SE_GENI_M_IRQ_STATUS); s_irq_status = readl(uport->membase + SE_GENI_S_IRQ_STATUS); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0077-serial-rda-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0076-serial-rda-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0077-serial-rda-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0076-serial-rda-Use-port-lock-wrappers.patch index b1c77258..08e354bb 100644 --- a/buildroot-external/patches/linux/0077-serial-rda-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0076-serial-rda-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 11c6ea3822ae8cdc779394e80156ca190afb39b7 Mon Sep 17 00:00:00 2001 +From 83a13a640f9b3927770dfdf6014780d739062197 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:07 +0206 -Subject: [PATCH 077/195] serial: rda: Use port lock wrappers +Subject: [PATCH 076/196] serial: rda: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -178,5 +178,5 @@ index be5c842b5ba9..d824c8318f33 100644 local_irq_restore(flags); } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0078-serial-rp2-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0077-serial-rp2-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0078-serial-rp2-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0077-serial-rp2-Use-port-lock-wrappers.patch index c8f8c8b3..7ddad850 100644 --- a/buildroot-external/patches/linux/0078-serial-rp2-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0077-serial-rp2-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 9830facf32b2bee258c489097189f2a856f30896 Mon Sep 17 00:00:00 2001 +From 90f64dfee3a0f539bf8c18fff8b502a3e59cf0cf Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:08 +0206 -Subject: [PATCH 078/195] serial: rp2: Use port lock wrappers +Subject: [PATCH 077/196] serial: rp2: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -115,5 +115,5 @@ index de220ac8ca54..d46a81cddfcd 100644 static const char *rp2_uart_type(struct uart_port *port) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0079-serial-sa1100-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0078-serial-sa1100-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0079-serial-sa1100-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0078-serial-sa1100-Use-port-lock-wrappers.patch index 3c6a622f..385d46cb 100644 --- a/buildroot-external/patches/linux/0079-serial-sa1100-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0078-serial-sa1100-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 57684c97b61471e24fa3afe63cea5b55b9a7bbee Mon Sep 17 00:00:00 2001 +From be60b8b83c06c81681588ea0d81dac85e14a775b Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:09 +0206 -Subject: [PATCH 079/195] serial: sa1100: Use port lock wrappers +Subject: [PATCH 078/196] serial: sa1100: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -118,5 +118,5 @@ index ad011f1e2f4d..be7bcd75d9f4 100644 static const char *sa1100_type(struct uart_port *port) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0080-serial-samsung_tty-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0079-serial-samsung_tty-Use-port-lock-wrappers.patch similarity index 98% rename from buildroot-external/patches/linux/0080-serial-samsung_tty-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0079-serial-samsung_tty-Use-port-lock-wrappers.patch index 2df3846b..cb91f568 100644 --- a/buildroot-external/patches/linux/0080-serial-samsung_tty-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0079-serial-samsung_tty-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From cb8fcedea78ec07e196951f9f150242005406f50 Mon Sep 17 00:00:00 2001 +From 6e66d71f16182d96094a77a8756c364823924eb4 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:10 +0206 -Subject: [PATCH 080/195] serial: samsung_tty: Use port lock wrappers +Subject: [PATCH 079/196] serial: samsung_tty: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -246,5 +246,5 @@ index 07fb8a9dac63..ee51a0368a55 100644 /* Shouldn't be __init, as it can be instantiated from other module */ -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0081-serial-sb1250-duart-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0080-serial-sb1250-duart-Use-port-lock-wrappers.patch similarity index 96% rename from buildroot-external/patches/linux/0081-serial-sb1250-duart-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0080-serial-sb1250-duart-Use-port-lock-wrappers.patch index c8ebf900..24551468 100644 --- a/buildroot-external/patches/linux/0081-serial-sb1250-duart-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0080-serial-sb1250-duart-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 0d303667c4173db6f3adf10f33763c789d98afe5 Mon Sep 17 00:00:00 2001 +From 628b4e3f91830141e702ec59d5d376eb1ad9eea8 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:11 +0206 -Subject: [PATCH 081/195] serial: sb1250-duart: Use port lock wrappers +Subject: [PATCH 080/196] serial: sb1250-duart: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -86,5 +86,5 @@ index f3cd69346482..dbec29d9a6c3 100644 static int __init sbd_console_setup(struct console *co, char *options) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0081-serial-sc16is7xx-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0081-serial-sc16is7xx-Use-port-lock-wrappers.patch new file mode 100644 index 00000000..b556b8d8 --- /dev/null +++ b/buildroot-external/patches/linux/0081-serial-sc16is7xx-Use-port-lock-wrappers.patch @@ -0,0 +1,64 @@ +From 2ec2be76520133c2703eb4997ac1215a8bdfb735 Mon Sep 17 00:00:00 2001 +From: Thomas Gleixner +Date: Thu, 14 Sep 2023 20:44:12 +0206 +Subject: [PATCH 081/196] serial: sc16is7xx: Use port lock wrappers + +When a serial port is used for kernel console output, then all +modifications to the UART registers which are done from other contexts, +e.g. getty, termios, are interference points for the kernel console. + +So far this has been ignored and the printk output is based on the +principle of hope. The rework of the console infrastructure which aims to +support threaded and atomic consoles, requires to mark sections which +modify the UART registers as unsafe. This allows the atomic write function +to make informed decisions and eventually to restore operational state. It +also allows to prevent the regular UART code from modifying UART registers +while printk output is in progress. + +All modifications of UART registers are guarded by the UART port lock, +which provides an obvious synchronization point with the console +infrastructure. + +To avoid adding this functionality to all UART drivers, wrap the +spin_[un]lock*() invocations for uart_port::lock into helper functions +which just contain the spin_[un]lock*() invocations for now. In a +subsequent step these helpers will gain the console synchronization +mechanisms. + +Converted with coccinelle. No functional change. + +Signed-off-by: Thomas Gleixner +Signed-off-by: John Ogness +Link: https://lore.kernel.org/r/20230914183831.587273-56-john.ogness@linutronix.de +Signed-off-by: Greg Kroah-Hartman +Signed-off-by: Sebastian Andrzej Siewior +--- + drivers/tty/serial/sc16is7xx.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c +index f75b8bceb8ca..2d7470457af4 100644 +--- a/drivers/tty/serial/sc16is7xx.c ++++ b/drivers/tty/serial/sc16is7xx.c +@@ -804,6 +804,7 @@ static void sc16is7xx_tx_proc(struct kthread_work *ws) + { + struct uart_port *port = &(to_sc16is7xx_one(ws, tx_work)->port); + struct sc16is7xx_one *one = to_sc16is7xx_one(port, port); ++ unsigned long flags; + + if ((port->rs485.flags & SER_RS485_ENABLED) && + (port->rs485.delay_rts_before_send > 0)) +@@ -812,6 +813,10 @@ static void sc16is7xx_tx_proc(struct kthread_work *ws) + mutex_lock(&one->efr_lock); + sc16is7xx_handle_tx(port); + mutex_unlock(&one->efr_lock); ++ ++ uart_port_lock_irqsave(port, &flags); ++ sc16is7xx_ier_set(port, SC16IS7XX_IER_THRI_BIT); ++ uart_port_unlock_irqrestore(port, flags); + } + + static void sc16is7xx_reconf_rs485(struct uart_port *port) +-- +2.43.2 + diff --git a/buildroot-external/patches/linux/0082-serial-sc16is7xx-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0082-serial-sc16is7xx-Use-port-lock-wrappers.patch deleted file mode 100644 index 395fef68..00000000 --- a/buildroot-external/patches/linux/0082-serial-sc16is7xx-Use-port-lock-wrappers.patch +++ /dev/null @@ -1,186 +0,0 @@ -From dbc779923fac8271f6e0d47a7648c333c97727e3 Mon Sep 17 00:00:00 2001 -From: Thomas Gleixner -Date: Thu, 14 Sep 2023 20:44:12 +0206 -Subject: [PATCH 082/195] serial: sc16is7xx: Use port lock wrappers - -When a serial port is used for kernel console output, then all -modifications to the UART registers which are done from other contexts, -e.g. getty, termios, are interference points for the kernel console. - -So far this has been ignored and the printk output is based on the -principle of hope. The rework of the console infrastructure which aims to -support threaded and atomic consoles, requires to mark sections which -modify the UART registers as unsafe. This allows the atomic write function -to make informed decisions and eventually to restore operational state. It -also allows to prevent the regular UART code from modifying UART registers -while printk output is in progress. - -All modifications of UART registers are guarded by the UART port lock, -which provides an obvious synchronization point with the console -infrastructure. - -To avoid adding this functionality to all UART drivers, wrap the -spin_[un]lock*() invocations for uart_port::lock into helper functions -which just contain the spin_[un]lock*() invocations for now. In a -subsequent step these helpers will gain the console synchronization -mechanisms. - -Converted with coccinelle. No functional change. - -Signed-off-by: Thomas Gleixner -Signed-off-by: John Ogness -Link: https://lore.kernel.org/r/20230914183831.587273-56-john.ogness@linutronix.de -Signed-off-by: Greg Kroah-Hartman -Signed-off-by: Sebastian Andrzej Siewior ---- - drivers/tty/serial/sc16is7xx.c | 40 +++++++++++++++++----------------- - 1 file changed, 20 insertions(+), 20 deletions(-) - -diff --git a/drivers/tty/serial/sc16is7xx.c b/drivers/tty/serial/sc16is7xx.c -index 6aeb821d9b1d..a99c58cd5706 100644 ---- a/drivers/tty/serial/sc16is7xx.c -+++ b/drivers/tty/serial/sc16is7xx.c -@@ -668,9 +668,9 @@ static void sc16is7xx_handle_tx(struct uart_port *port) - } - - if (uart_circ_empty(xmit) || uart_tx_stopped(port)) { -- spin_lock_irqsave(&port->lock, flags); -+ uart_port_lock_irqsave(port, &flags); - sc16is7xx_stop_tx(port); -- spin_unlock_irqrestore(&port->lock, flags); -+ uart_port_unlock_irqrestore(port, flags); - return; - } - -@@ -696,13 +696,13 @@ static void sc16is7xx_handle_tx(struct uart_port *port) - sc16is7xx_fifo_write(port, to_send); - } - -- spin_lock_irqsave(&port->lock, flags); -+ uart_port_lock_irqsave(port, &flags); - if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS) - uart_write_wakeup(port); - - if (uart_circ_empty(xmit)) - sc16is7xx_stop_tx(port); -- spin_unlock_irqrestore(&port->lock, flags); -+ uart_port_unlock_irqrestore(port, flags); - } - - static unsigned int sc16is7xx_get_hwmctrl(struct uart_port *port) -@@ -734,7 +734,7 @@ static void sc16is7xx_update_mlines(struct sc16is7xx_one *one) - - one->old_mctrl = status; - -- spin_lock_irqsave(&port->lock, flags); -+ uart_port_lock_irqsave(port, &flags); - if ((changed & TIOCM_RNG) && (status & TIOCM_RNG)) - port->icount.rng++; - if (changed & TIOCM_DSR) -@@ -745,7 +745,7 @@ static void sc16is7xx_update_mlines(struct sc16is7xx_one *one) - uart_handle_cts_change(port, status & TIOCM_CTS); - - wake_up_interruptible(&port->state->port.delta_msr_wait); -- spin_unlock_irqrestore(&port->lock, flags); -+ uart_port_unlock_irqrestore(port, flags); - } - - static bool sc16is7xx_port_irq(struct sc16is7xx_port *s, int portno) -@@ -836,9 +836,9 @@ static void sc16is7xx_tx_proc(struct kthread_work *ws) - sc16is7xx_handle_tx(port); - mutex_unlock(&s->efr_lock); - -- spin_lock_irqsave(&port->lock, flags); -+ uart_port_lock_irqsave(port, &flags); - sc16is7xx_ier_set(port, SC16IS7XX_IER_THRI_BIT); -- spin_unlock_irqrestore(&port->lock, flags); -+ uart_port_unlock_irqrestore(port, flags); - } - - static void sc16is7xx_reconf_rs485(struct uart_port *port) -@@ -849,14 +849,14 @@ static void sc16is7xx_reconf_rs485(struct uart_port *port) - struct serial_rs485 *rs485 = &port->rs485; - unsigned long irqflags; - -- spin_lock_irqsave(&port->lock, irqflags); -+ uart_port_lock_irqsave(port, &irqflags); - if (rs485->flags & SER_RS485_ENABLED) { - efcr |= SC16IS7XX_EFCR_AUTO_RS485_BIT; - - if (rs485->flags & SER_RS485_RTS_AFTER_SEND) - efcr |= SC16IS7XX_EFCR_RTS_INVERT_BIT; - } -- spin_unlock_irqrestore(&port->lock, irqflags); -+ uart_port_unlock_irqrestore(port, irqflags); - - sc16is7xx_port_update(port, SC16IS7XX_EFCR_REG, mask, efcr); - } -@@ -867,10 +867,10 @@ static void sc16is7xx_reg_proc(struct kthread_work *ws) - struct sc16is7xx_one_config config; - unsigned long irqflags; - -- spin_lock_irqsave(&one->port.lock, irqflags); -+ uart_port_lock_irqsave(&one->port, &irqflags); - config = one->config; - memset(&one->config, 0, sizeof(one->config)); -- spin_unlock_irqrestore(&one->port.lock, irqflags); -+ uart_port_unlock_irqrestore(&one->port, irqflags); - - if (config.flags & SC16IS7XX_RECONF_MD) { - u8 mcr = 0; -@@ -976,18 +976,18 @@ static void sc16is7xx_throttle(struct uart_port *port) - * value set in MCR register. Stop reading data from RX FIFO so the - * AutoRTS feature will de-activate RTS output. - */ -- spin_lock_irqsave(&port->lock, flags); -+ uart_port_lock_irqsave(port, &flags); - sc16is7xx_ier_clear(port, SC16IS7XX_IER_RDI_BIT); -- spin_unlock_irqrestore(&port->lock, flags); -+ uart_port_unlock_irqrestore(port, flags); - } - - static void sc16is7xx_unthrottle(struct uart_port *port) - { - unsigned long flags; - -- spin_lock_irqsave(&port->lock, flags); -+ uart_port_lock_irqsave(port, &flags); - sc16is7xx_ier_set(port, SC16IS7XX_IER_RDI_BIT); -- spin_unlock_irqrestore(&port->lock, flags); -+ uart_port_unlock_irqrestore(port, flags); - } - - static unsigned int sc16is7xx_tx_empty(struct uart_port *port) -@@ -1126,7 +1126,7 @@ static void sc16is7xx_set_termios(struct uart_port *port, - /* Setup baudrate generator */ - baud = sc16is7xx_set_baud(port, baud); - -- spin_lock_irqsave(&port->lock, flags); -+ uart_port_lock_irqsave(port, &flags); - - /* Update timeout according to new baud rate */ - uart_update_timeout(port, termios->c_cflag, baud); -@@ -1134,7 +1134,7 @@ static void sc16is7xx_set_termios(struct uart_port *port, - if (UART_ENABLE_MS(port, termios->c_cflag)) - sc16is7xx_enable_ms(port); - -- spin_unlock_irqrestore(&port->lock, flags); -+ uart_port_unlock_irqrestore(port, flags); - } - - static int sc16is7xx_config_rs485(struct uart_port *port, struct ktermios *termios, -@@ -1221,9 +1221,9 @@ static int sc16is7xx_startup(struct uart_port *port) - sc16is7xx_port_write(port, SC16IS7XX_IER_REG, val); - - /* Enable modem status polling */ -- spin_lock_irqsave(&port->lock, flags); -+ uart_port_lock_irqsave(port, &flags); - sc16is7xx_enable_ms(port); -- spin_unlock_irqrestore(&port->lock, flags); -+ uart_port_unlock_irqrestore(port, flags); - - return 0; - } --- -2.43.0 - diff --git a/buildroot-external/patches/linux/0083-serial-tegra-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0082-serial-tegra-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0083-serial-tegra-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0082-serial-tegra-Use-port-lock-wrappers.patch index 40007527..891c8f59 100644 --- a/buildroot-external/patches/linux/0083-serial-tegra-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0082-serial-tegra-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 474f6fec5c746e48feb8a9f58e6fb8fe5b954317 Mon Sep 17 00:00:00 2001 +From c2a7bbba0b8c5cbce14465ff6338fde4b1e52e2c Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:13 +0206 -Subject: [PATCH 083/195] serial: tegra: Use port lock wrappers +Subject: [PATCH 082/196] serial: tegra: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -177,5 +177,5 @@ index d4ec943cb8e9..6d4006b41975 100644 static const char *tegra_uart_type(struct uart_port *u) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0084-serial-core-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0083-serial-core-Use-port-lock-wrappers.patch similarity index 88% rename from buildroot-external/patches/linux/0084-serial-core-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0083-serial-core-Use-port-lock-wrappers.patch index 8c1aa8c2..070487c0 100644 --- a/buildroot-external/patches/linux/0084-serial-core-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0083-serial-core-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 35ab587884e5fc3ec2a95e1c2f1ea4f33f0205b0 Mon Sep 17 00:00:00 2001 +From 0e9950b3324b08df7d223472910fabbd0a661519 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:14 +0206 -Subject: [PATCH 084/195] serial: core: Use port lock wrappers +Subject: [PATCH 083/196] serial: core: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -38,7 +38,7 @@ Signed-off-by: Sebastian Andrzej Siewior 2 files changed, 48 insertions(+), 48 deletions(-) diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c -index 18b49b1439a5..fa0791ba9773 100644 +index 083ea4de48f9..fea8a8eca0c0 100644 --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty/serial/serial_core.c @@ -79,7 +79,7 @@ static inline void uart_port_deref(struct uart_port *uport) @@ -151,19 +151,19 @@ index 18b49b1439a5..fa0791ba9773 100644 uart_port_deref(uport); icount->cts = cnow.cts; -@@ -1421,9 +1421,9 @@ static int uart_rs485_config(struct uart_port *port) - uart_sanitize_serial_rs485(port, rs485); +@@ -1432,9 +1432,9 @@ static int uart_rs485_config(struct uart_port *port) uart_set_rs485_termination(port, rs485); + uart_set_rs485_rx_during_tx(port, rs485); - spin_lock_irqsave(&port->lock, flags); + uart_port_lock_irqsave(port, &flags); ret = port->rs485_config(port, NULL, rs485); - spin_unlock_irqrestore(&port->lock, flags); + uart_port_unlock_irqrestore(port, flags); - if (ret) + if (ret) { memset(rs485, 0, sizeof(*rs485)); - -@@ -1436,9 +1436,9 @@ static int uart_get_rs485_config(struct uart_port *port, + /* unset GPIOs */ +@@ -1451,9 +1451,9 @@ static int uart_get_rs485_config(struct uart_port *port, unsigned long flags; struct serial_rs485 aux; @@ -175,25 +175,25 @@ index 18b49b1439a5..fa0791ba9773 100644 if (copy_to_user(rs485, &aux, sizeof(aux))) return -EFAULT; -@@ -1465,7 +1465,7 @@ static int uart_set_rs485_config(struct tty_struct *tty, struct uart_port *port, - uart_sanitize_serial_rs485(port, &rs485); +@@ -1481,7 +1481,7 @@ static int uart_set_rs485_config(struct tty_struct *tty, struct uart_port *port, uart_set_rs485_termination(port, &rs485); + uart_set_rs485_rx_during_tx(port, &rs485); - spin_lock_irqsave(&port->lock, flags); + uart_port_lock_irqsave(port, &flags); ret = port->rs485_config(port, &tty->termios, &rs485); if (!ret) { port->rs485 = rs485; -@@ -1474,7 +1474,7 @@ static int uart_set_rs485_config(struct tty_struct *tty, struct uart_port *port, +@@ -1490,7 +1490,7 @@ static int uart_set_rs485_config(struct tty_struct *tty, struct uart_port *port, if (!(rs485.flags & SER_RS485_ENABLED)) port->ops->set_mctrl(port, port->mctrl); } - spin_unlock_irqrestore(&port->lock, flags); + uart_port_unlock_irqrestore(port, flags); - if (ret) - return ret; - -@@ -1493,9 +1493,9 @@ static int uart_get_iso7816_config(struct uart_port *port, + if (ret) { + /* restore old GPIO settings */ + gpiod_set_value_cansleep(port->rs485_term_gpio, +@@ -1515,9 +1515,9 @@ static int uart_get_iso7816_config(struct uart_port *port, if (!port->iso7816_config) return -ENOTTY; @@ -205,7 +205,7 @@ index 18b49b1439a5..fa0791ba9773 100644 if (copy_to_user(iso7816, &aux, sizeof(aux))) return -EFAULT; -@@ -1524,9 +1524,9 @@ static int uart_set_iso7816_config(struct uart_port *port, +@@ -1546,9 +1546,9 @@ static int uart_set_iso7816_config(struct uart_port *port, if (iso7816.reserved[i]) return -EINVAL; @@ -217,7 +217,7 @@ index 18b49b1439a5..fa0791ba9773 100644 if (ret) return ret; -@@ -1743,9 +1743,9 @@ static void uart_tty_port_shutdown(struct tty_port *port) +@@ -1765,9 +1765,9 @@ static void uart_tty_port_shutdown(struct tty_port *port) if (WARN(!uport, "detached port still initialized!\n")) return; @@ -229,7 +229,7 @@ index 18b49b1439a5..fa0791ba9773 100644 uart_port_shutdown(port); -@@ -1759,10 +1759,10 @@ static void uart_tty_port_shutdown(struct tty_port *port) +@@ -1781,10 +1781,10 @@ static void uart_tty_port_shutdown(struct tty_port *port) /* * Free the transmit buffer. */ @@ -242,7 +242,7 @@ index 18b49b1439a5..fa0791ba9773 100644 free_page((unsigned long)buf); -@@ -1905,10 +1905,10 @@ static bool uart_carrier_raised(struct tty_port *port) +@@ -1927,10 +1927,10 @@ static bool uart_carrier_raised(struct tty_port *port) */ if (WARN_ON(!uport)) return true; @@ -255,7 +255,7 @@ index 18b49b1439a5..fa0791ba9773 100644 uart_port_deref(uport); return mctrl & TIOCM_CAR; -@@ -2025,9 +2025,9 @@ static void uart_line_info(struct seq_file *m, struct uart_driver *drv, int i) +@@ -2047,9 +2047,9 @@ static void uart_line_info(struct seq_file *m, struct uart_driver *drv, int i) pm_state = state->pm_state; if (pm_state != UART_PM_STATE_ON) uart_change_pm(state, UART_PM_STATE_ON); @@ -267,7 +267,7 @@ index 18b49b1439a5..fa0791ba9773 100644 if (pm_state != UART_PM_STATE_ON) uart_change_pm(state, pm_state); -@@ -2366,9 +2366,9 @@ int uart_suspend_port(struct uart_driver *drv, struct uart_port *uport) +@@ -2388,9 +2388,9 @@ int uart_suspend_port(struct uart_driver *drv, struct uart_port *uport) */ if (!console_suspend_enabled && uart_console(uport)) { if (uport->ops->start_rx) { @@ -279,7 +279,7 @@ index 18b49b1439a5..fa0791ba9773 100644 } goto unlock; } -@@ -2383,7 +2383,7 @@ int uart_suspend_port(struct uart_driver *drv, struct uart_port *uport) +@@ -2405,7 +2405,7 @@ int uart_suspend_port(struct uart_driver *drv, struct uart_port *uport) tty_port_set_suspended(port, true); tty_port_set_initialized(port, false); @@ -288,7 +288,7 @@ index 18b49b1439a5..fa0791ba9773 100644 ops->stop_tx(uport); if (!(uport->rs485.flags & SER_RS485_ENABLED)) ops->set_mctrl(uport, 0); -@@ -2391,7 +2391,7 @@ int uart_suspend_port(struct uart_driver *drv, struct uart_port *uport) +@@ -2413,7 +2413,7 @@ int uart_suspend_port(struct uart_driver *drv, struct uart_port *uport) mctrl = uport->mctrl; uport->mctrl = 0; ops->stop_rx(uport); @@ -297,7 +297,7 @@ index 18b49b1439a5..fa0791ba9773 100644 /* * Wait for the transmitter to empty. -@@ -2463,9 +2463,9 @@ int uart_resume_port(struct uart_driver *drv, struct uart_port *uport) +@@ -2485,9 +2485,9 @@ int uart_resume_port(struct uart_driver *drv, struct uart_port *uport) uart_change_pm(state, UART_PM_STATE_ON); uport->ops->set_termios(uport, &termios, NULL); if (!console_suspend_enabled && uport->ops->start_rx) { @@ -309,7 +309,7 @@ index 18b49b1439a5..fa0791ba9773 100644 } if (console_suspend_enabled) console_start(uport->cons); -@@ -2476,10 +2476,10 @@ int uart_resume_port(struct uart_driver *drv, struct uart_port *uport) +@@ -2498,10 +2498,10 @@ int uart_resume_port(struct uart_driver *drv, struct uart_port *uport) int ret; uart_change_pm(state, UART_PM_STATE_ON); @@ -322,7 +322,7 @@ index 18b49b1439a5..fa0791ba9773 100644 if (console_suspend_enabled || !uart_console(uport)) { /* Protected by port mutex for now */ struct tty_struct *tty = port->tty; -@@ -2489,11 +2489,11 @@ int uart_resume_port(struct uart_driver *drv, struct uart_port *uport) +@@ -2511,11 +2511,11 @@ int uart_resume_port(struct uart_driver *drv, struct uart_port *uport) if (tty) uart_change_line_settings(tty, state, NULL); uart_rs485_config(uport); @@ -336,7 +336,7 @@ index 18b49b1439a5..fa0791ba9773 100644 tty_port_set_initialized(port, true); } else { /* -@@ -2596,11 +2596,11 @@ uart_configure_port(struct uart_driver *drv, struct uart_state *state, +@@ -2618,11 +2618,11 @@ uart_configure_port(struct uart_driver *drv, struct uart_state *state, * keep the DTR setting that is set in uart_set_options() * We probably don't need a spinlock around this, but */ @@ -368,5 +368,5 @@ index 862423237007..88975a4df306 100644 out: pm_runtime_mark_last_busy(dev); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0085-serial-mctrl_gpio-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0084-serial-mctrl_gpio-Use-port-lock-wrappers.patch similarity index 94% rename from buildroot-external/patches/linux/0085-serial-mctrl_gpio-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0084-serial-mctrl_gpio-Use-port-lock-wrappers.patch index 233d9d94..03c30d05 100644 --- a/buildroot-external/patches/linux/0085-serial-mctrl_gpio-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0084-serial-mctrl_gpio-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 77a426d250a95697152b29c393513c73ad6f4772 Mon Sep 17 00:00:00 2001 +From e95dcd064a7ecf11a88145697128827b6758169e Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:15 +0206 -Subject: [PATCH 085/195] serial: mctrl_gpio: Use port lock wrappers +Subject: [PATCH 084/196] serial: mctrl_gpio: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -59,5 +59,5 @@ index 7d5aaa8d422b..e51ca593ab86 100644 return IRQ_HANDLED; } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0086-serial-txx9-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0085-serial-txx9-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0086-serial-txx9-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0085-serial-txx9-Use-port-lock-wrappers.patch index 4f205ed4..60bfc92c 100644 --- a/buildroot-external/patches/linux/0086-serial-txx9-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0085-serial-txx9-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From b1ee2eaa909ee219932e86310fe966657fff4060 Mon Sep 17 00:00:00 2001 +From 918c8367f5c88ac4ea0ff1a156be9e4bcd74c2fd Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:16 +0206 -Subject: [PATCH 086/195] serial: txx9: Use port lock wrappers +Subject: [PATCH 085/196] serial: txx9: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -135,5 +135,5 @@ index be08fb6f749c..eaa980722455 100644 static void -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0087-serial-sh-sci-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0086-serial-sh-sci-Use-port-lock-wrappers.patch similarity index 98% rename from buildroot-external/patches/linux/0087-serial-sh-sci-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0086-serial-sh-sci-Use-port-lock-wrappers.patch index 6a640b5d..736e6b15 100644 --- a/buildroot-external/patches/linux/0087-serial-sh-sci-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0086-serial-sh-sci-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 7c5ba6cc363eab3d3c27edbbbb958f2f617cce00 Mon Sep 17 00:00:00 2001 +From f510bfd2152db83a547548eff4b5103cd87e4c37 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:17 +0206 -Subject: [PATCH 087/195] serial: sh-sci: Use port lock wrappers +Subject: [PATCH 086/196] serial: sh-sci: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -303,5 +303,5 @@ index a560b729fa3b..84ab434c94ba 100644 static int serial_console_setup(struct console *co, char *options) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0088-serial-sifive-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0087-serial-sifive-Use-port-lock-wrappers.patch similarity index 96% rename from buildroot-external/patches/linux/0088-serial-sifive-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0087-serial-sifive-Use-port-lock-wrappers.patch index 23284e0a..721a9ab2 100644 --- a/buildroot-external/patches/linux/0088-serial-sifive-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0087-serial-sifive-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 464791cf577c67c26de9ee124546d4e4e8a95e51 Mon Sep 17 00:00:00 2001 +From 775e19bba15cd37cab089d25a15e101403896537 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:18 +0206 -Subject: [PATCH 088/195] serial: sifive: Use port lock wrappers +Subject: [PATCH 087/196] serial: sifive: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -103,5 +103,5 @@ index d195c5de52e7..b296e57a9dee 100644 } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0089-serial-sprd-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0088-serial-sprd-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0089-serial-sprd-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0088-serial-sprd-Use-port-lock-wrappers.patch index 4c0d4f07..9fe7617b 100644 --- a/buildroot-external/patches/linux/0089-serial-sprd-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0088-serial-sprd-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From b87cb75afb584b20bcff39c2ddba3508cdf9b40b Mon Sep 17 00:00:00 2001 +From 9947b04ede5ec32ab6ba7044096014001c8da5d5 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:19 +0206 -Subject: [PATCH 089/195] serial: sprd: Use port lock wrappers +Subject: [PATCH 088/196] serial: sprd: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -163,5 +163,5 @@ index f328fa57231f..f257525f9299 100644 static int sprd_console_setup(struct console *co, char *options) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0090-serial-st-asc-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0089-serial-st-asc-Use-port-lock-wrappers.patch similarity index 96% rename from buildroot-external/patches/linux/0090-serial-st-asc-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0089-serial-st-asc-Use-port-lock-wrappers.patch index 02cd4d0b..9aef7e24 100644 --- a/buildroot-external/patches/linux/0090-serial-st-asc-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0089-serial-st-asc-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From f30192f8abd390bd52acd714116bf3a8ee58bd85 Mon Sep 17 00:00:00 2001 +From 85b7f9be5d14b5a6c8baac45488a13d8a4b5f1bc Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:20 +0206 -Subject: [PATCH 090/195] serial: st-asc: Use port lock wrappers +Subject: [PATCH 089/196] serial: st-asc: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -111,5 +111,5 @@ index 92b9f6894006..a821f5d76a26 100644 static int asc_console_setup(struct console *co, char *options) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0091-serial-stm32-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0090-serial-stm32-Use-port-lock-wrappers.patch similarity index 85% rename from buildroot-external/patches/linux/0091-serial-stm32-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0090-serial-stm32-Use-port-lock-wrappers.patch index dde950c0..51b71967 100644 --- a/buildroot-external/patches/linux/0091-serial-stm32-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0090-serial-stm32-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From f38eda20e69a53bacd0eebd4686b60c6f949c65e Mon Sep 17 00:00:00 2001 +From 359f0d1e6b006a6296c949598fc409321b89721e Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:21 +0206 -Subject: [PATCH 091/195] serial: stm32: Use port lock wrappers +Subject: [PATCH 090/196] serial: stm32: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -37,10 +37,10 @@ Signed-off-by: Sebastian Andrzej Siewior 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c -index 5e9cf0c48813..8c51ec9433d6 100644 +index b6f4f436a565..f0901bedcc28 100644 --- a/drivers/tty/serial/stm32-usart.c +++ b/drivers/tty/serial/stm32-usart.c -@@ -537,7 +537,7 @@ static void stm32_usart_rx_dma_complete(void *arg) +@@ -533,7 +533,7 @@ static void stm32_usart_rx_dma_complete(void *arg) unsigned int size; unsigned long flags; @@ -49,7 +49,7 @@ index 5e9cf0c48813..8c51ec9433d6 100644 size = stm32_usart_receive_chars(port, false); uart_unlock_and_check_sysrq_irqrestore(port, flags); if (size) -@@ -643,9 +643,9 @@ static void stm32_usart_tx_dma_complete(void *arg) +@@ -639,9 +639,9 @@ static void stm32_usart_tx_dma_complete(void *arg) stm32_usart_tx_dma_terminate(stm32port); /* Let's see if we have pending data to send */ @@ -61,7 +61,7 @@ index 5e9cf0c48813..8c51ec9433d6 100644 } static void stm32_usart_tx_interrupt_enable(struct uart_port *port) -@@ -889,7 +889,7 @@ static irqreturn_t stm32_usart_interrupt(int irq, void *ptr) +@@ -885,7 +885,7 @@ static irqreturn_t stm32_usart_interrupt(int irq, void *ptr) if (!stm32_port->throttled) { if (((sr & USART_SR_RXNE) && !stm32_usart_rx_dma_started(stm32_port)) || ((sr & USART_SR_ERR_MASK) && stm32_usart_rx_dma_started(stm32_port))) { @@ -70,7 +70,7 @@ index 5e9cf0c48813..8c51ec9433d6 100644 size = stm32_usart_receive_chars(port, false); uart_unlock_and_check_sysrq(port); if (size) -@@ -898,14 +898,14 @@ static irqreturn_t stm32_usart_interrupt(int irq, void *ptr) +@@ -894,14 +894,14 @@ static irqreturn_t stm32_usart_interrupt(int irq, void *ptr) } if ((sr & USART_SR_TXE) && !(stm32_port->tx_ch)) { @@ -88,7 +88,7 @@ index 5e9cf0c48813..8c51ec9433d6 100644 size = stm32_usart_receive_chars(port, false); uart_unlock_and_check_sysrq(port); if (size) -@@ -993,7 +993,7 @@ static void stm32_usart_throttle(struct uart_port *port) +@@ -989,7 +989,7 @@ static void stm32_usart_throttle(struct uart_port *port) const struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; unsigned long flags; @@ -97,7 +97,7 @@ index 5e9cf0c48813..8c51ec9433d6 100644 /* * Pause DMA transfer, so the RX data gets queued into the FIFO. -@@ -1006,7 +1006,7 @@ static void stm32_usart_throttle(struct uart_port *port) +@@ -1002,7 +1002,7 @@ static void stm32_usart_throttle(struct uart_port *port) stm32_usart_clr_bits(port, ofs->cr3, stm32_port->cr3_irq); stm32_port->throttled = true; @@ -106,7 +106,7 @@ index 5e9cf0c48813..8c51ec9433d6 100644 } /* Unthrottle the remote, the input buffer can now accept data. */ -@@ -1016,7 +1016,7 @@ static void stm32_usart_unthrottle(struct uart_port *port) +@@ -1012,7 +1012,7 @@ static void stm32_usart_unthrottle(struct uart_port *port) const struct stm32_usart_offsets *ofs = &stm32_port->info->ofs; unsigned long flags; @@ -115,7 +115,7 @@ index 5e9cf0c48813..8c51ec9433d6 100644 stm32_usart_set_bits(port, ofs->cr1, stm32_port->cr1_irq); if (stm32_port->cr3_irq) stm32_usart_set_bits(port, ofs->cr3, stm32_port->cr3_irq); -@@ -1030,7 +1030,7 @@ static void stm32_usart_unthrottle(struct uart_port *port) +@@ -1026,7 +1026,7 @@ static void stm32_usart_unthrottle(struct uart_port *port) if (stm32_port->rx_ch) stm32_usart_rx_dma_start_or_resume(port); @@ -124,7 +124,7 @@ index 5e9cf0c48813..8c51ec9433d6 100644 } /* Receive stop */ -@@ -1158,7 +1158,7 @@ static void stm32_usart_set_termios(struct uart_port *port, +@@ -1154,7 +1154,7 @@ static void stm32_usart_set_termios(struct uart_port *port, baud = uart_get_baud_rate(port, termios, old, 0, port->uartclk / 8); @@ -133,7 +133,7 @@ index 5e9cf0c48813..8c51ec9433d6 100644 ret = readl_relaxed_poll_timeout_atomic(port->membase + ofs->isr, isr, -@@ -1349,7 +1349,7 @@ static void stm32_usart_set_termios(struct uart_port *port, +@@ -1345,7 +1345,7 @@ static void stm32_usart_set_termios(struct uart_port *port, writel_relaxed(cr1, port->membase + ofs->cr1); stm32_usart_set_bits(port, ofs->cr1, BIT(cfg->uart_enable_bit)); @@ -142,7 +142,7 @@ index 5e9cf0c48813..8c51ec9433d6 100644 /* Handle modem control interrupts */ if (UART_ENABLE_MS(port, termios->c_cflag)) -@@ -1399,9 +1399,9 @@ static void stm32_usart_pm(struct uart_port *port, unsigned int state, +@@ -1395,9 +1395,9 @@ static void stm32_usart_pm(struct uart_port *port, unsigned int state, pm_runtime_get_sync(port->dev); break; case UART_PM_STATE_OFF: @@ -154,7 +154,7 @@ index 5e9cf0c48813..8c51ec9433d6 100644 pm_runtime_put_sync(port->dev); break; } -@@ -1884,9 +1884,9 @@ static void stm32_usart_console_write(struct console *co, const char *s, +@@ -1880,9 +1880,9 @@ static void stm32_usart_console_write(struct console *co, const char *s, int locked = 1; if (oops_in_progress) @@ -166,7 +166,7 @@ index 5e9cf0c48813..8c51ec9433d6 100644 /* Save and disable interrupts, enable the transmitter */ old_cr1 = readl_relaxed(port->membase + ofs->cr1); -@@ -1900,7 +1900,7 @@ static void stm32_usart_console_write(struct console *co, const char *s, +@@ -1896,7 +1896,7 @@ static void stm32_usart_console_write(struct console *co, const char *s, writel_relaxed(old_cr1, port->membase + ofs->cr1); if (locked) @@ -175,7 +175,7 @@ index 5e9cf0c48813..8c51ec9433d6 100644 } static int stm32_usart_console_setup(struct console *co, char *options) -@@ -2035,7 +2035,7 @@ static int __maybe_unused stm32_usart_serial_en_wakeup(struct uart_port *port, +@@ -2031,7 +2031,7 @@ static int __maybe_unused stm32_usart_serial_en_wakeup(struct uart_port *port, * low-power mode. */ if (stm32_port->rx_ch) { @@ -185,5 +185,5 @@ index 5e9cf0c48813..8c51ec9433d6 100644 if (!stm32_usart_rx_dma_pause(stm32_port)) size += stm32_usart_receive_chars(port, true); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0092-serial-sunhv-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0091-serial-sunhv-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0092-serial-sunhv-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0091-serial-sunhv-Use-port-lock-wrappers.patch index 16d2c1b0..6869100d 100644 --- a/buildroot-external/patches/linux/0092-serial-sunhv-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0091-serial-sunhv-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 4c8b426cf155a8284dc64853010725ece9810e3a Mon Sep 17 00:00:00 2001 +From b32120a6b6f52c62d9a1d8929cd5fd717306ef01 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:22 +0206 -Subject: [PATCH 092/195] serial: sunhv: Use port lock wrappers +Subject: [PATCH 091/196] serial: sunhv: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -150,5 +150,5 @@ index c671d674bce4..5bfc0040f17b 100644 static struct console sunhv_console = { -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0093-serial-sunplus-uart-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0092-serial-sunplus-uart-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0093-serial-sunplus-uart-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0092-serial-sunplus-uart-Use-port-lock-wrappers.patch index c314da0d..7fd3bf55 100644 --- a/buildroot-external/patches/linux/0093-serial-sunplus-uart-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0092-serial-sunplus-uart-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 383e3a378b83cc2a435d50751516c8a7c022ee8c Mon Sep 17 00:00:00 2001 +From ee1490b16afd2f4858a64fad528f82075f1da182 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:23 +0206 -Subject: [PATCH 093/195] serial: sunplus-uart: Use port lock wrappers +Subject: [PATCH 092/196] serial: sunplus-uart: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -147,5 +147,5 @@ index 3aacd5eb414c..4251f4e1ba99 100644 local_irq_restore(flags); } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0094-serial-sunsab-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0093-serial-sunsab-Use-port-lock-wrappers.patch similarity index 97% rename from buildroot-external/patches/linux/0094-serial-sunsab-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0093-serial-sunsab-Use-port-lock-wrappers.patch index 701abfba..66f369eb 100644 --- a/buildroot-external/patches/linux/0094-serial-sunsab-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0093-serial-sunsab-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 9424a2fdae3f6ceec361fa77faa1a31df9660de6 Mon Sep 17 00:00:00 2001 +From f187f2fe0b3045229a97ce77efd0d3c9824ef153 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:24 +0206 -Subject: [PATCH 094/195] serial: sunsab: Use port lock wrappers +Subject: [PATCH 093/196] serial: sunsab: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -177,5 +177,5 @@ index 40eeaf835bba..6aa51a6f8063 100644 return 0; } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0095-serial-sunsu-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0094-serial-sunsu-Use-port-lock-wrappers.patch similarity index 98% rename from buildroot-external/patches/linux/0095-serial-sunsu-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0094-serial-sunsu-Use-port-lock-wrappers.patch index b088aa9a..f11893a5 100644 --- a/buildroot-external/patches/linux/0095-serial-sunsu-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0094-serial-sunsu-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 019d68cf48294f90d060fcc70eb0a1741cf209a8 Mon Sep 17 00:00:00 2001 +From 3dc65f31fdf6ccc15dd02e2956a276d591f3acc6 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:25 +0206 -Subject: [PATCH 095/195] serial: sunsu: Use port lock wrappers +Subject: [PATCH 094/196] serial: sunsu: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -220,5 +220,5 @@ index 58a4342ad0f9..1e051cc2591c 100644 /* -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0096-serial-sunzilog-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0095-serial-sunzilog-Use-port-lock-wrappers.patch similarity index 98% rename from buildroot-external/patches/linux/0096-serial-sunzilog-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0095-serial-sunzilog-Use-port-lock-wrappers.patch index 698aa009..8da1648b 100644 --- a/buildroot-external/patches/linux/0096-serial-sunzilog-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0095-serial-sunzilog-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From a710d18b512ec6d51c7eee146313ef2077e9a2a1 Mon Sep 17 00:00:00 2001 +From 7c8bc5cc26ab2d530384d7548626ca02e6ec97ce Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:26 +0206 -Subject: [PATCH 096/195] serial: sunzilog: Use port lock wrappers +Subject: [PATCH 095/196] serial: sunzilog: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -212,5 +212,5 @@ index c8c71c56264c..d3b5e864b727 100644 #ifdef CONFIG_SERIO if (up->flags & (SUNZILOG_FLAG_CONS_KEYB | -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0097-serial-timbuart-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0096-serial-timbuart-Use-port-lock-wrappers.patch similarity index 95% rename from buildroot-external/patches/linux/0097-serial-timbuart-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0096-serial-timbuart-Use-port-lock-wrappers.patch index 38271d73..146f0bc7 100644 --- a/buildroot-external/patches/linux/0097-serial-timbuart-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0096-serial-timbuart-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 3a2ce0caeb2f2ea82d08f46db8c18fe27b1ab6ea Mon Sep 17 00:00:00 2001 +From aad664874ddcaac93ae482c104079f38998c5c19 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:27 +0206 -Subject: [PATCH 097/195] serial: timbuart: Use port lock wrappers +Subject: [PATCH 096/196] serial: timbuart: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -72,5 +72,5 @@ index 0859394a78cd..0cc6524f5e8b 100644 static const char *timbuart_type(struct uart_port *port) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0098-serial-uartlite-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0097-serial-uartlite-Use-port-lock-wrappers.patch similarity index 96% rename from buildroot-external/patches/linux/0098-serial-uartlite-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0097-serial-uartlite-Use-port-lock-wrappers.patch index 5977ab53..b34fe622 100644 --- a/buildroot-external/patches/linux/0098-serial-uartlite-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0097-serial-uartlite-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From d0eb93b9661524a8b03e176c3f1b73c99380cc6d Mon Sep 17 00:00:00 2001 +From ef2a7b964c311147671f8da0f1a029600f8feb11 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:28 +0206 -Subject: [PATCH 098/195] serial: uartlite: Use port lock wrappers +Subject: [PATCH 097/196] serial: uartlite: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -106,5 +106,5 @@ index b225a78f6175..404c14acafa5 100644 static int ulite_console_setup(struct console *co, char *options) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0099-serial-ucc_uart-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0098-serial-ucc_uart-Use-port-lock-wrappers.patch similarity index 94% rename from buildroot-external/patches/linux/0099-serial-ucc_uart-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0098-serial-ucc_uart-Use-port-lock-wrappers.patch index ff4ebfe4..3098198d 100644 --- a/buildroot-external/patches/linux/0099-serial-ucc_uart-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0098-serial-ucc_uart-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From fff1f8923b71ca177a24ea89a77b29fb6ea52802 Mon Sep 17 00:00:00 2001 +From 98036540f2e54a9bfa0bd4972c6f805d4a335f61 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:29 +0206 -Subject: [PATCH 099/195] serial: ucc_uart: Use port lock wrappers +Subject: [PATCH 098/196] serial: ucc_uart: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -60,5 +60,5 @@ index b06661b80f41..ed7a6bb5596a 100644 /* -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0100-serial-vt8500-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0099-serial-vt8500-Use-port-lock-wrappers.patch similarity index 95% rename from buildroot-external/patches/linux/0100-serial-vt8500-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0099-serial-vt8500-Use-port-lock-wrappers.patch index 0e5bfd6a..f2766b12 100644 --- a/buildroot-external/patches/linux/0100-serial-vt8500-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0099-serial-vt8500-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From 56104c2c18580d4775572d305acb6239bd5fc9d7 Mon Sep 17 00:00:00 2001 +From 31d33200a08db8ea81131f9fd58cf814f01eec2c Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:30 +0206 -Subject: [PATCH 100/195] serial: vt8500: Use port lock wrappers +Subject: [PATCH 099/196] serial: vt8500: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -77,5 +77,5 @@ index c5d5c2765119..78a1c1eea11b 100644 static const char *vt8500_type(struct uart_port *port) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0101-serial-xilinx_uartps-Use-port-lock-wrappers.patch b/buildroot-external/patches/linux/0100-serial-xilinx_uartps-Use-port-lock-wrappers.patch similarity index 98% rename from buildroot-external/patches/linux/0101-serial-xilinx_uartps-Use-port-lock-wrappers.patch rename to buildroot-external/patches/linux/0100-serial-xilinx_uartps-Use-port-lock-wrappers.patch index 08f77244..797fefc5 100644 --- a/buildroot-external/patches/linux/0101-serial-xilinx_uartps-Use-port-lock-wrappers.patch +++ b/buildroot-external/patches/linux/0100-serial-xilinx_uartps-Use-port-lock-wrappers.patch @@ -1,7 +1,7 @@ -From ea21bdbdad9e4b3d38f409f3f661ee8c7ade89a7 Mon Sep 17 00:00:00 2001 +From 3d50225857afa57a9507e16afe8a901b8fcaac87 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 14 Sep 2023 20:44:31 +0206 -Subject: [PATCH 101/195] serial: xilinx_uartps: Use port lock wrappers +Subject: [PATCH 100/196] serial: xilinx_uartps: Use port lock wrappers When a serial port is used for kernel console output, then all modifications to the UART registers which are done from other contexts, @@ -277,5 +277,5 @@ index 2e5e86a00a77..9c13dac1d4d1 100644 return uart_resume_port(cdns_uart->cdns_uart_driver, port); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0102-printk-Add-non-BKL-nbcon-console-basic-infrastructur.patch b/buildroot-external/patches/linux/0101-printk-Add-non-BKL-nbcon-console-basic-infrastructur.patch similarity index 98% rename from buildroot-external/patches/linux/0102-printk-Add-non-BKL-nbcon-console-basic-infrastructur.patch rename to buildroot-external/patches/linux/0101-printk-Add-non-BKL-nbcon-console-basic-infrastructur.patch index bca566df..212535a6 100644 --- a/buildroot-external/patches/linux/0102-printk-Add-non-BKL-nbcon-console-basic-infrastructur.patch +++ b/buildroot-external/patches/linux/0101-printk-Add-non-BKL-nbcon-console-basic-infrastructur.patch @@ -1,7 +1,7 @@ -From f7779eeae6c2c10167cb662488b69eee2d4d5679 Mon Sep 17 00:00:00 2001 +From 722b7cde90957a6094cdd7a82dbac94a1fec5194 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Sat, 16 Sep 2023 21:26:00 +0206 -Subject: [PATCH 102/195] printk: Add non-BKL (nbcon) console basic +Subject: [PATCH 101/196] printk: Add non-BKL (nbcon) console basic infrastructure The current console/printk subsystem is protected by a Big Kernel Lock, @@ -270,5 +270,5 @@ index 0b3af1529778..1ec06dfa29d3 100644 if (console->exit) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0103-printk-nbcon-Add-acquire-release-logic.patch b/buildroot-external/patches/linux/0102-printk-nbcon-Add-acquire-release-logic.patch similarity index 99% rename from buildroot-external/patches/linux/0103-printk-nbcon-Add-acquire-release-logic.patch rename to buildroot-external/patches/linux/0102-printk-nbcon-Add-acquire-release-logic.patch index 18db3777..af033f2e 100644 --- a/buildroot-external/patches/linux/0103-printk-nbcon-Add-acquire-release-logic.patch +++ b/buildroot-external/patches/linux/0102-printk-nbcon-Add-acquire-release-logic.patch @@ -1,7 +1,7 @@ -From 48184a3bcad14f6c1a9813ab9dd376f02e540463 Mon Sep 17 00:00:00 2001 +From 4f3f47e5e19d40bd84ca1a1e2b93822e2d94362c Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Sat, 16 Sep 2023 21:26:01 +0206 -Subject: [PATCH 103/195] printk: nbcon: Add acquire/release logic +Subject: [PATCH 102/196] printk: nbcon: Add acquire/release logic Add per console acquire/release functionality. @@ -708,5 +708,5 @@ index 63d24ca62ac5..a2a354f859f9 100644 * nbcon_init - Initialize the nbcon console specific data * @con: Console to initialize -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0104-printk-Make-static-printk-buffers-available-to-nbcon.patch b/buildroot-external/patches/linux/0103-printk-Make-static-printk-buffers-available-to-nbcon.patch similarity index 94% rename from buildroot-external/patches/linux/0104-printk-Make-static-printk-buffers-available-to-nbcon.patch rename to buildroot-external/patches/linux/0103-printk-Make-static-printk-buffers-available-to-nbcon.patch index 8bdb50d4..64b2ddb4 100644 --- a/buildroot-external/patches/linux/0104-printk-Make-static-printk-buffers-available-to-nbcon.patch +++ b/buildroot-external/patches/linux/0103-printk-Make-static-printk-buffers-available-to-nbcon.patch @@ -1,7 +1,7 @@ -From 6a3c62b3d19332bbd5bfb5f2f970c47173f946d2 Mon Sep 17 00:00:00 2001 +From c40a030d4055ff223b62a48d97c33995662d5d36 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Sat, 16 Sep 2023 21:26:02 +0206 -Subject: [PATCH 104/195] printk: Make static printk buffers available to nbcon +Subject: [PATCH 103/196] printk: Make static printk buffers available to nbcon The nbcon boot consoles also need printk buffers that are available very early. Since the nbcon boot consoles will also be serialized @@ -68,5 +68,5 @@ index 1ec06dfa29d3..eff5036c82c0 100644 unsigned long flags; -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0105-printk-nbcon-Add-buffer-management.patch b/buildroot-external/patches/linux/0104-printk-nbcon-Add-buffer-management.patch similarity index 98% rename from buildroot-external/patches/linux/0105-printk-nbcon-Add-buffer-management.patch rename to buildroot-external/patches/linux/0104-printk-nbcon-Add-buffer-management.patch index 28141d33..b6582f67 100644 --- a/buildroot-external/patches/linux/0105-printk-nbcon-Add-buffer-management.patch +++ b/buildroot-external/patches/linux/0104-printk-nbcon-Add-buffer-management.patch @@ -1,7 +1,7 @@ -From 86bccb98fc040d685faa3c75db2eef121420cc95 Mon Sep 17 00:00:00 2001 +From 0bf91edda99d29abc55c6fa18dc19a610611e549 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Sat, 16 Sep 2023 21:26:03 +0206 -Subject: [PATCH 105/195] printk: nbcon: Add buffer management +Subject: [PATCH 104/196] printk: nbcon: Add buffer management In case of hostile takeovers it must be ensured that the previous owner cannot scribble over the output buffer of the emergency/panic @@ -318,5 +318,5 @@ index eff5036c82c0..51be6b65c3cf 100644 console_sysfs_notify(); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0106-printk-nbcon-Add-ownership-state-functions.patch b/buildroot-external/patches/linux/0105-printk-nbcon-Add-ownership-state-functions.patch similarity index 98% rename from buildroot-external/patches/linux/0106-printk-nbcon-Add-ownership-state-functions.patch rename to buildroot-external/patches/linux/0105-printk-nbcon-Add-ownership-state-functions.patch index 3b7443f8..624a9edc 100644 --- a/buildroot-external/patches/linux/0106-printk-nbcon-Add-ownership-state-functions.patch +++ b/buildroot-external/patches/linux/0105-printk-nbcon-Add-ownership-state-functions.patch @@ -1,7 +1,7 @@ -From 0b11266a51c42977be9e168562f3801a73c081c3 Mon Sep 17 00:00:00 2001 +From 18f88aa629f0435318eb030df44ee399087ad4c0 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Sat, 16 Sep 2023 21:26:04 +0206 -Subject: [PATCH 106/195] printk: nbcon: Add ownership state functions +Subject: [PATCH 105/196] printk: nbcon: Add ownership state functions Provide functions that are related to the safe handover mechanism and allow console drivers to dynamically specify unsafe regions: @@ -180,5 +180,5 @@ index ba1febf15db6..98e4be5429f0 100644 * nbcon_alloc - Allocate buffers needed by the nbcon console * @con: Console to allocate buffers for -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0107-printk-nbcon-Add-sequence-handling.patch b/buildroot-external/patches/linux/0106-printk-nbcon-Add-sequence-handling.patch similarity index 98% rename from buildroot-external/patches/linux/0107-printk-nbcon-Add-sequence-handling.patch rename to buildroot-external/patches/linux/0106-printk-nbcon-Add-sequence-handling.patch index f6d140be..958abd8e 100644 --- a/buildroot-external/patches/linux/0107-printk-nbcon-Add-sequence-handling.patch +++ b/buildroot-external/patches/linux/0106-printk-nbcon-Add-sequence-handling.patch @@ -1,7 +1,7 @@ -From 8a235a83487f7c75caa822666263d2f1c9769458 Mon Sep 17 00:00:00 2001 +From 0ad5d91c28fd1d1007d0337eef381e1e4a685130 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Sat, 16 Sep 2023 21:26:05 +0206 -Subject: [PATCH 107/195] printk: nbcon: Add sequence handling +Subject: [PATCH 106/196] printk: nbcon: Add sequence handling Add an atomic_long_t field @nbcon_seq to the console struct to store the sequence number for nbcon consoles. For nbcon consoles @@ -318,5 +318,5 @@ index 51be6b65c3cf..de54e4942aa5 100644 diff += seq - printk_seq; } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0108-printk-nbcon-Add-emit-function-and-callback-function.patch b/buildroot-external/patches/linux/0107-printk-nbcon-Add-emit-function-and-callback-function.patch similarity index 98% rename from buildroot-external/patches/linux/0108-printk-nbcon-Add-emit-function-and-callback-function.patch rename to buildroot-external/patches/linux/0107-printk-nbcon-Add-emit-function-and-callback-function.patch index 72651415..6d30ef0d 100644 --- a/buildroot-external/patches/linux/0108-printk-nbcon-Add-emit-function-and-callback-function.patch +++ b/buildroot-external/patches/linux/0107-printk-nbcon-Add-emit-function-and-callback-function.patch @@ -1,7 +1,7 @@ -From 2cacec8fd401821eda87a80dfbaa8453ac4252b8 Mon Sep 17 00:00:00 2001 +From a033e17e680e1b1d1a481997cb948dd55c0f0fb2 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Sat, 16 Sep 2023 21:26:06 +0206 -Subject: [PATCH 108/195] printk: nbcon: Add emit function and callback +Subject: [PATCH 107/196] printk: nbcon: Add emit function and callback function for atomic printing Implement an emit function for nbcon consoles to output printk @@ -268,5 +268,5 @@ index de54e4942aa5..1638eaf3708a 100644 static int panic_console_dropped; -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0109-printk-nbcon-Allow-drivers-to-mark-unsafe-regions-an.patch b/buildroot-external/patches/linux/0108-printk-nbcon-Allow-drivers-to-mark-unsafe-regions-an.patch similarity index 97% rename from buildroot-external/patches/linux/0109-printk-nbcon-Allow-drivers-to-mark-unsafe-regions-an.patch rename to buildroot-external/patches/linux/0108-printk-nbcon-Allow-drivers-to-mark-unsafe-regions-an.patch index d84b7c38..9dc77ddc 100644 --- a/buildroot-external/patches/linux/0109-printk-nbcon-Allow-drivers-to-mark-unsafe-regions-an.patch +++ b/buildroot-external/patches/linux/0108-printk-nbcon-Allow-drivers-to-mark-unsafe-regions-an.patch @@ -1,7 +1,7 @@ -From c0a860bf1d8b6506999b3ffe0b4b5e5d17595b36 Mon Sep 17 00:00:00 2001 +From f7619f0c2f9fdc0bf7f1d8a710f43443e41487c8 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Sat, 16 Sep 2023 21:26:07 +0206 -Subject: [PATCH 109/195] printk: nbcon: Allow drivers to mark unsafe regions +Subject: [PATCH 108/196] printk: nbcon: Allow drivers to mark unsafe regions and check state For the write_atomic callback, the console driver may have unsafe @@ -139,5 +139,5 @@ index 6e05d263fd22..b96077152f49 100644 * nbcon_emit_next_record - Emit a record in the acquired context * @wctxt: The write context that will be handed to the write function -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0110-printk-fix-illegal-pbufs-access-for-CONFIG_PRINTK.patch b/buildroot-external/patches/linux/0109-printk-fix-illegal-pbufs-access-for-CONFIG_PRINTK.patch similarity index 97% rename from buildroot-external/patches/linux/0110-printk-fix-illegal-pbufs-access-for-CONFIG_PRINTK.patch rename to buildroot-external/patches/linux/0109-printk-fix-illegal-pbufs-access-for-CONFIG_PRINTK.patch index c113cae3..8e5f85eb 100644 --- a/buildroot-external/patches/linux/0110-printk-fix-illegal-pbufs-access-for-CONFIG_PRINTK.patch +++ b/buildroot-external/patches/linux/0109-printk-fix-illegal-pbufs-access-for-CONFIG_PRINTK.patch @@ -1,7 +1,7 @@ -From 55fc973c1ebde43d059abf04659da2d5800ebc89 Mon Sep 17 00:00:00 2001 +From ac5046cbcf4a6e51be9f326cd814789a5ca9959d Mon Sep 17 00:00:00 2001 From: John Ogness Date: Wed, 20 Sep 2023 17:58:38 +0206 -Subject: [PATCH 110/195] printk: fix illegal pbufs access for !CONFIG_PRINTK +Subject: [PATCH 109/196] printk: fix illegal pbufs access for !CONFIG_PRINTK When CONFIG_PRINTK is not set, PRINTK_MESSAGE_MAX is 0. This leads to a zero-sized array @outbuf in @printk_shared_pbufs. In @@ -135,5 +135,5 @@ index 1638eaf3708a..e922523fec78 100644 * Print out all remaining records to all consoles. * -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0111-printk-Reduce-pr_flush-pooling-time.patch b/buildroot-external/patches/linux/0110-printk-Reduce-pr_flush-pooling-time.patch similarity index 96% rename from buildroot-external/patches/linux/0111-printk-Reduce-pr_flush-pooling-time.patch rename to buildroot-external/patches/linux/0110-printk-Reduce-pr_flush-pooling-time.patch index d6cbcb5a..52acca18 100644 --- a/buildroot-external/patches/linux/0111-printk-Reduce-pr_flush-pooling-time.patch +++ b/buildroot-external/patches/linux/0110-printk-Reduce-pr_flush-pooling-time.patch @@ -1,7 +1,7 @@ -From 8f55caca90da4b42c023fb924ddfa3aadf32fa38 Mon Sep 17 00:00:00 2001 +From 245e39efef1a82639a16598af4216a9c60f91e9f Mon Sep 17 00:00:00 2001 From: Petr Mladek Date: Fri, 6 Oct 2023 10:21:51 +0200 -Subject: [PATCH 111/195] printk: Reduce pr_flush() pooling time +Subject: [PATCH 110/196] printk: Reduce pr_flush() pooling time pr_flush() does not guarantee that all messages would really get flushed to the console. The best it could do is to wait with a given timeout.[*] @@ -103,5 +103,5 @@ index e922523fec78..26a76b167ea6 100644 last_diff = diff; } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0112-printk-nbcon-Relocate-32bit-seq-macros.patch b/buildroot-external/patches/linux/0111-printk-nbcon-Relocate-32bit-seq-macros.patch similarity index 97% rename from buildroot-external/patches/linux/0112-printk-nbcon-Relocate-32bit-seq-macros.patch rename to buildroot-external/patches/linux/0111-printk-nbcon-Relocate-32bit-seq-macros.patch index db963faf..f9461621 100644 --- a/buildroot-external/patches/linux/0112-printk-nbcon-Relocate-32bit-seq-macros.patch +++ b/buildroot-external/patches/linux/0111-printk-nbcon-Relocate-32bit-seq-macros.patch @@ -1,7 +1,7 @@ -From 53dde03ce1a91bfc54247bdb1bb8fc3cf43e6a06 Mon Sep 17 00:00:00 2001 +From 87f305af1157ce37e29540b92aae57daaff32e8d Mon Sep 17 00:00:00 2001 From: John Ogness Date: Wed, 6 Dec 2023 12:01:56 +0000 -Subject: [PATCH 112/195] printk: nbcon: Relocate 32bit seq macros +Subject: [PATCH 111/196] printk: nbcon: Relocate 32bit seq macros The macros __seq_to_nbcon_seq() and __nbcon_seq_to_seq() are used to provide support for atomic handling of sequence numbers @@ -144,5 +144,5 @@ index 18cd25e489b8..b82a96dc2ea2 100644 + #endif /* _KERNEL_PRINTK_RINGBUFFER_H */ -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0113-printk-Adjust-mapping-for-32bit-seq-macros.patch b/buildroot-external/patches/linux/0112-printk-Adjust-mapping-for-32bit-seq-macros.patch similarity index 95% rename from buildroot-external/patches/linux/0113-printk-Adjust-mapping-for-32bit-seq-macros.patch rename to buildroot-external/patches/linux/0112-printk-Adjust-mapping-for-32bit-seq-macros.patch index 8c64b931..0240cdcc 100644 --- a/buildroot-external/patches/linux/0113-printk-Adjust-mapping-for-32bit-seq-macros.patch +++ b/buildroot-external/patches/linux/0112-printk-Adjust-mapping-for-32bit-seq-macros.patch @@ -1,7 +1,7 @@ -From 2e4c5294955d99c3814d8490c94113d524eb82ab Mon Sep 17 00:00:00 2001 +From a4d45e4dce8b5eccfdc372dec99b037447369ea8 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Thu, 7 Dec 2023 14:15:15 +0000 -Subject: [PATCH 113/195] printk: Adjust mapping for 32bit seq macros +Subject: [PATCH 112/196] printk: Adjust mapping for 32bit seq macros Note: This change only applies to 32bit architectures. On 64bit architectures the macros are NOPs. @@ -72,5 +72,5 @@ index b82a96dc2ea2..12f60c782e46 100644 return seq; } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0114-printk-Use-prb_first_seq-as-base-for-32bit-seq-macro.patch b/buildroot-external/patches/linux/0113-printk-Use-prb_first_seq-as-base-for-32bit-seq-macro.patch similarity index 95% rename from buildroot-external/patches/linux/0114-printk-Use-prb_first_seq-as-base-for-32bit-seq-macro.patch rename to buildroot-external/patches/linux/0113-printk-Use-prb_first_seq-as-base-for-32bit-seq-macro.patch index 16effb36..b3966561 100644 --- a/buildroot-external/patches/linux/0114-printk-Use-prb_first_seq-as-base-for-32bit-seq-macro.patch +++ b/buildroot-external/patches/linux/0113-printk-Use-prb_first_seq-as-base-for-32bit-seq-macro.patch @@ -1,7 +1,7 @@ -From e73d1935a9266c93872c09d2ba6d4c6a6169ac0f Mon Sep 17 00:00:00 2001 +From e58793dbb1847b2a8f98d2a0f3016e4f3cd3356d Mon Sep 17 00:00:00 2001 From: John Ogness Date: Wed, 22 Nov 2023 16:13:37 +0000 -Subject: [PATCH 114/195] printk: Use prb_first_seq() as base for 32bit seq +Subject: [PATCH 113/196] printk: Use prb_first_seq() as base for 32bit seq macros Note: This change only applies to 32bit architectures. On 64bit @@ -74,5 +74,5 @@ index 12f60c782e46..ee294aaf4aeb 100644 return seq; } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0115-printk-ringbuffer-Do-not-skip-non-finalized-records-.patch b/buildroot-external/patches/linux/0114-printk-ringbuffer-Do-not-skip-non-finalized-records-.patch similarity index 98% rename from buildroot-external/patches/linux/0115-printk-ringbuffer-Do-not-skip-non-finalized-records-.patch rename to buildroot-external/patches/linux/0114-printk-ringbuffer-Do-not-skip-non-finalized-records-.patch index eef6c868..b8e1b3eb 100644 --- a/buildroot-external/patches/linux/0115-printk-ringbuffer-Do-not-skip-non-finalized-records-.patch +++ b/buildroot-external/patches/linux/0114-printk-ringbuffer-Do-not-skip-non-finalized-records-.patch @@ -1,7 +1,7 @@ -From c6b60aa4fc25b47096cfc011883138a751cf1cc0 Mon Sep 17 00:00:00 2001 +From 6cfbf753a90d8212ebc60a139da50bdff07a6865 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Thu, 19 Oct 2023 10:32:05 +0000 -Subject: [PATCH 115/195] printk: ringbuffer: Do not skip non-finalized records +Subject: [PATCH 114/196] printk: ringbuffer: Do not skip non-finalized records with prb_next_seq() Commit f244b4dc53e5 ("printk: ringbuffer: Improve @@ -308,5 +308,5 @@ index ee294aaf4aeb..2d948cc82b5b 100644 .text_data_ring = { \ .size_bits = (avgtextbits) + (descbits), \ -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0116-printk-ringbuffer-Clarify-special-lpos-values.patch b/buildroot-external/patches/linux/0115-printk-ringbuffer-Clarify-special-lpos-values.patch similarity index 95% rename from buildroot-external/patches/linux/0116-printk-ringbuffer-Clarify-special-lpos-values.patch rename to buildroot-external/patches/linux/0115-printk-ringbuffer-Clarify-special-lpos-values.patch index b673ac8d..405959b9 100644 --- a/buildroot-external/patches/linux/0116-printk-ringbuffer-Clarify-special-lpos-values.patch +++ b/buildroot-external/patches/linux/0115-printk-ringbuffer-Clarify-special-lpos-values.patch @@ -1,7 +1,7 @@ -From 4772df0ca2d7201dc84f961befbeb50b8e4e23af Mon Sep 17 00:00:00 2001 +From 2ac19d39dfc717ba79c617373d7710d12ff86802 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Mon, 23 Oct 2023 11:11:05 +0000 -Subject: [PATCH 116/195] printk: ringbuffer: Clarify special lpos values +Subject: [PATCH 115/196] printk: ringbuffer: Clarify special lpos values For empty line records, no data blocks are created. Instead, these valid records are identified by special logical position @@ -95,5 +95,5 @@ index 2d948cc82b5b..d49460f7578e 100644 #define FAILED_BLK_LPOS \ { \ -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0117-printk-For-suppress_panic_printk-check-for-other-CPU.patch b/buildroot-external/patches/linux/0116-printk-For-suppress_panic_printk-check-for-other-CPU.patch similarity index 90% rename from buildroot-external/patches/linux/0117-printk-For-suppress_panic_printk-check-for-other-CPU.patch rename to buildroot-external/patches/linux/0116-printk-For-suppress_panic_printk-check-for-other-CPU.patch index a54013f1..13aa107e 100644 --- a/buildroot-external/patches/linux/0117-printk-For-suppress_panic_printk-check-for-other-CPU.patch +++ b/buildroot-external/patches/linux/0116-printk-For-suppress_panic_printk-check-for-other-CPU.patch @@ -1,7 +1,7 @@ -From 289242ed09000b786f7af038e79ad996db2d6231 Mon Sep 17 00:00:00 2001 +From ff37f2b813bcf577e3a570951a5d1471cceafbe7 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Fri, 13 Oct 2023 20:13:02 +0000 -Subject: [PATCH 117/195] printk: For @suppress_panic_printk check for other +Subject: [PATCH 116/196] printk: For @suppress_panic_printk check for other CPU in panic Currently @suppress_panic_printk is checked along with @@ -35,5 +35,5 @@ index 26a76b167ea6..f9911a6526b7 100644 if (level == LOGLEVEL_SCHED) { -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0118-printk-Add-this_cpu_in_panic.patch b/buildroot-external/patches/linux/0117-printk-Add-this_cpu_in_panic.patch similarity index 95% rename from buildroot-external/patches/linux/0118-printk-Add-this_cpu_in_panic.patch rename to buildroot-external/patches/linux/0117-printk-Add-this_cpu_in_panic.patch index 67d8e6eb..29eb2651 100644 --- a/buildroot-external/patches/linux/0118-printk-Add-this_cpu_in_panic.patch +++ b/buildroot-external/patches/linux/0117-printk-Add-this_cpu_in_panic.patch @@ -1,7 +1,7 @@ -From 7e33031a90066e07d302cf0777fb6204dca23481 Mon Sep 17 00:00:00 2001 +From eef338536ac3d1ecc8b9976aa4c23acc26ddcb9e Mon Sep 17 00:00:00 2001 From: John Ogness Date: Fri, 13 Oct 2023 14:30:49 +0000 -Subject: [PATCH 118/195] printk: Add this_cpu_in_panic() +Subject: [PATCH 117/196] printk: Add this_cpu_in_panic() There is already panic_in_progress() and other_cpu_in_panic(), but checking if the current CPU is the panic CPU must still be @@ -91,5 +91,5 @@ index f9911a6526b7..53aa496cce91 100644 * console_lock - block the console subsystem from printing * -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0119-printk-ringbuffer-Cleanup-reader-terminology.patch b/buildroot-external/patches/linux/0118-printk-ringbuffer-Cleanup-reader-terminology.patch similarity index 95% rename from buildroot-external/patches/linux/0119-printk-ringbuffer-Cleanup-reader-terminology.patch rename to buildroot-external/patches/linux/0118-printk-ringbuffer-Cleanup-reader-terminology.patch index 5c743fc3..b9ed4d9c 100644 --- a/buildroot-external/patches/linux/0119-printk-ringbuffer-Cleanup-reader-terminology.patch +++ b/buildroot-external/patches/linux/0118-printk-ringbuffer-Cleanup-reader-terminology.patch @@ -1,7 +1,7 @@ -From 9f91bfaa43a80f0b70ea972605e390a2003681ee Mon Sep 17 00:00:00 2001 +From e69a87b9db7040f72eb3778cab817be8cdeedfdf Mon Sep 17 00:00:00 2001 From: John Ogness Date: Mon, 6 Nov 2023 15:01:58 +0000 -Subject: [PATCH 119/195] printk: ringbuffer: Cleanup reader terminology +Subject: [PATCH 118/196] printk: ringbuffer: Cleanup reader terminology With the lockless ringbuffer, it is allowed that multiple CPUs/contexts write simultaneously into the buffer. This creates @@ -68,5 +68,5 @@ index 244d991ffd73..67ee1c62fcd6 100644 bool prb_read_valid_info(struct printk_ringbuffer *rb, u64 seq, struct printk_info *info, unsigned int *line_count) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0120-printk-Wait-for-all-reserved-records-with-pr_flush.patch b/buildroot-external/patches/linux/0119-printk-Wait-for-all-reserved-records-with-pr_flush.patch similarity index 97% rename from buildroot-external/patches/linux/0120-printk-Wait-for-all-reserved-records-with-pr_flush.patch rename to buildroot-external/patches/linux/0119-printk-Wait-for-all-reserved-records-with-pr_flush.patch index 0aba1827..3e876e02 100644 --- a/buildroot-external/patches/linux/0120-printk-Wait-for-all-reserved-records-with-pr_flush.patch +++ b/buildroot-external/patches/linux/0119-printk-Wait-for-all-reserved-records-with-pr_flush.patch @@ -1,7 +1,7 @@ -From 98c42134b3a518325c8e54756d2764735131b2b3 Mon Sep 17 00:00:00 2001 +From c10f1a40ece57be7eaa32266c41b354ad1a6a5f9 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Mon, 6 Nov 2023 14:59:55 +0000 -Subject: [PATCH 120/195] printk: Wait for all reserved records with pr_flush() +Subject: [PATCH 119/196] printk: Wait for all reserved records with pr_flush() Currently pr_flush() will only wait for records that were available to readers at the time of the call (using @@ -175,5 +175,5 @@ index d49460f7578e..52626d0f1fa3 100644 #ifdef CONFIG_64BIT -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0121-printk-ringbuffer-Skip-non-finalized-records-in-pani.patch b/buildroot-external/patches/linux/0120-printk-ringbuffer-Skip-non-finalized-records-in-pani.patch similarity index 95% rename from buildroot-external/patches/linux/0121-printk-ringbuffer-Skip-non-finalized-records-in-pani.patch rename to buildroot-external/patches/linux/0120-printk-ringbuffer-Skip-non-finalized-records-in-pani.patch index 8908ea8c..0132fd93 100644 --- a/buildroot-external/patches/linux/0121-printk-ringbuffer-Skip-non-finalized-records-in-pani.patch +++ b/buildroot-external/patches/linux/0120-printk-ringbuffer-Skip-non-finalized-records-in-pani.patch @@ -1,7 +1,7 @@ -From 7d868697d1be3c100e25e5036b480c0e6158934d Mon Sep 17 00:00:00 2001 +From df308fa800ac57b2c12c940e1ad7ce692fb2fbe2 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Fri, 13 Oct 2023 10:23:11 +0000 -Subject: [PATCH 121/195] printk: ringbuffer: Skip non-finalized records in +Subject: [PATCH 120/196] printk: ringbuffer: Skip non-finalized records in panic Normally a reader will stop once reaching a non-finalized @@ -69,5 +69,5 @@ index b7748d7c44c1..d6ed33683b8b 100644 } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0122-printk-ringbuffer-Consider-committed-as-finalized-in.patch b/buildroot-external/patches/linux/0121-printk-ringbuffer-Consider-committed-as-finalized-in.patch similarity index 94% rename from buildroot-external/patches/linux/0122-printk-ringbuffer-Consider-committed-as-finalized-in.patch rename to buildroot-external/patches/linux/0121-printk-ringbuffer-Consider-committed-as-finalized-in.patch index 0eb0ebdd..bc37742a 100644 --- a/buildroot-external/patches/linux/0122-printk-ringbuffer-Consider-committed-as-finalized-in.patch +++ b/buildroot-external/patches/linux/0121-printk-ringbuffer-Consider-committed-as-finalized-in.patch @@ -1,7 +1,7 @@ -From c71a156a25c43101566c9b282468d1f73515e0af Mon Sep 17 00:00:00 2001 +From 634ead0854338d5d970efa89437e9480f233c60e Mon Sep 17 00:00:00 2001 From: John Ogness Date: Mon, 20 Nov 2023 12:46:35 +0100 -Subject: [PATCH 122/195] printk: ringbuffer: Consider committed as finalized +Subject: [PATCH 121/196] printk: ringbuffer: Consider committed as finalized in panic A descriptor in the committed state means the record does not yet @@ -62,5 +62,5 @@ index d6ed33683b8b..e7b808b829a0 100644 * A descriptor in the reusable state may no longer have its data * available; report it as existing but with lost data. Or the record -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0123-printk-Disable-passing-console-lock-owner-completely.patch b/buildroot-external/patches/linux/0122-printk-Disable-passing-console-lock-owner-completely.patch similarity index 96% rename from buildroot-external/patches/linux/0123-printk-Disable-passing-console-lock-owner-completely.patch rename to buildroot-external/patches/linux/0122-printk-Disable-passing-console-lock-owner-completely.patch index e745905d..11f7bf3d 100644 --- a/buildroot-external/patches/linux/0123-printk-Disable-passing-console-lock-owner-completely.patch +++ b/buildroot-external/patches/linux/0122-printk-Disable-passing-console-lock-owner-completely.patch @@ -1,7 +1,7 @@ -From 26cfcd2b7ac7c9cec2b1e881132832009a13e3e3 Mon Sep 17 00:00:00 2001 +From 7d4b1ccdba89b262e020f0deef5793a360fd4cca Mon Sep 17 00:00:00 2001 From: Petr Mladek Date: Fri, 13 Oct 2023 14:12:05 +0000 -Subject: [PATCH 123/195] printk: Disable passing console lock owner completely +Subject: [PATCH 122/196] printk: Disable passing console lock owner completely during panic() The commit d51507098ff91 ("printk: disable optimistic spin @@ -108,5 +108,5 @@ index e7b9a22f9a3a..2a45097c9a4c 100644 waiter = READ_ONCE(console_waiter); console_owner = NULL; -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0124-printk-Avoid-non-panic-CPUs-writing-to-ringbuffer.patch b/buildroot-external/patches/linux/0123-printk-Avoid-non-panic-CPUs-writing-to-ringbuffer.patch similarity index 95% rename from buildroot-external/patches/linux/0124-printk-Avoid-non-panic-CPUs-writing-to-ringbuffer.patch rename to buildroot-external/patches/linux/0123-printk-Avoid-non-panic-CPUs-writing-to-ringbuffer.patch index 5e5d6d18..7f47d1f3 100644 --- a/buildroot-external/patches/linux/0124-printk-Avoid-non-panic-CPUs-writing-to-ringbuffer.patch +++ b/buildroot-external/patches/linux/0123-printk-Avoid-non-panic-CPUs-writing-to-ringbuffer.patch @@ -1,7 +1,7 @@ -From 860b5c1196385315c8c352705b974af5c8e4e7a0 Mon Sep 17 00:00:00 2001 +From e1bdd5dd8f02730a79e4a8341c742b5d2b96a252 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Fri, 20 Oct 2023 09:37:05 +0000 -Subject: [PATCH 124/195] printk: Avoid non-panic CPUs writing to ringbuffer +Subject: [PATCH 123/196] printk: Avoid non-panic CPUs writing to ringbuffer Commit 13fb0f74d702 ("printk: Avoid livelock with heavy printk during panic") introduced a mechanism to silence non-panic CPUs @@ -79,5 +79,5 @@ index 2a45097c9a4c..15cc485109a5 100644 if (may_suppress && suppress_message_printing(r.info->level)) goto out; -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0125-panic-Flush-kernel-log-buffer-at-the-end.patch b/buildroot-external/patches/linux/0124-panic-Flush-kernel-log-buffer-at-the-end.patch similarity index 91% rename from buildroot-external/patches/linux/0125-panic-Flush-kernel-log-buffer-at-the-end.patch rename to buildroot-external/patches/linux/0124-panic-Flush-kernel-log-buffer-at-the-end.patch index 268b479b..67db86c1 100644 --- a/buildroot-external/patches/linux/0125-panic-Flush-kernel-log-buffer-at-the-end.patch +++ b/buildroot-external/patches/linux/0124-panic-Flush-kernel-log-buffer-at-the-end.patch @@ -1,7 +1,7 @@ -From c28d1e20378d3bc6cd7f7a5aea9a2fa3f047cadc Mon Sep 17 00:00:00 2001 +From 758c07accd9822d11f4ac996aff9204f0d7a551e Mon Sep 17 00:00:00 2001 From: John Ogness Date: Thu, 14 Dec 2023 20:48:23 +0000 -Subject: [PATCH 125/195] panic: Flush kernel log buffer at the end +Subject: [PATCH 124/196] panic: Flush kernel log buffer at the end If the kernel crashes in a context where printk() calls always defer printing (such as in NMI or inside a printk_safe section) @@ -39,5 +39,5 @@ index ffa037fa777d..ef9f9a4e928d 100644 for (i = 0; ; i += PANIC_TIMER_STEP) { touch_softlockup_watchdog(); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0126-printk-Consider-nbcon-boot-consoles-on-seq-init.patch b/buildroot-external/patches/linux/0125-printk-Consider-nbcon-boot-consoles-on-seq-init.patch similarity index 92% rename from buildroot-external/patches/linux/0126-printk-Consider-nbcon-boot-consoles-on-seq-init.patch rename to buildroot-external/patches/linux/0125-printk-Consider-nbcon-boot-consoles-on-seq-init.patch index b34f394c..e824e4c5 100644 --- a/buildroot-external/patches/linux/0126-printk-Consider-nbcon-boot-consoles-on-seq-init.patch +++ b/buildroot-external/patches/linux/0125-printk-Consider-nbcon-boot-consoles-on-seq-init.patch @@ -1,7 +1,7 @@ -From 77ffd487daf6eae805beb3f0980404e23cb68ea1 Mon Sep 17 00:00:00 2001 +From c5bb4969d45d74a2076fcd77a5ca69173dcb0beb Mon Sep 17 00:00:00 2001 From: John Ogness Date: Wed, 22 Nov 2023 11:23:43 +0000 -Subject: [PATCH 126/195] printk: Consider nbcon boot consoles on seq init +Subject: [PATCH 125/196] printk: Consider nbcon boot consoles on seq init If a non-boot console is registering and boot consoles exist, the consoles are flushed before being unregistered. This allows the @@ -52,5 +52,5 @@ index 15cc485109a5..87d3510e3e45 100644 } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0127-printk-Add-sparse-notation-to-console_srcu-locking.patch b/buildroot-external/patches/linux/0126-printk-Add-sparse-notation-to-console_srcu-locking.patch similarity index 90% rename from buildroot-external/patches/linux/0127-printk-Add-sparse-notation-to-console_srcu-locking.patch rename to buildroot-external/patches/linux/0126-printk-Add-sparse-notation-to-console_srcu-locking.patch index 8668df5e..178f82e8 100644 --- a/buildroot-external/patches/linux/0127-printk-Add-sparse-notation-to-console_srcu-locking.patch +++ b/buildroot-external/patches/linux/0126-printk-Add-sparse-notation-to-console_srcu-locking.patch @@ -1,7 +1,7 @@ -From 2163de7dac62f789e50138ef79396ac71b2daaa2 Mon Sep 17 00:00:00 2001 +From 5c2d5cab7ae6fa9dbc3281ac0c9b26272f019746 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Mon, 9 Oct 2023 13:55:19 +0000 -Subject: [PATCH 127/195] printk: Add sparse notation to console_srcu locking +Subject: [PATCH 126/196] printk: Add sparse notation to console_srcu locking kernel/printk/printk.c:284:5: sparse: sparse: context imbalance in 'console_srcu_read_lock' - wrong count at exit @@ -37,5 +37,5 @@ index 87d3510e3e45..c4ae4538dba7 100644 srcu_read_unlock_nmisafe(&console_srcu, cookie); } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0128-printk-nbcon-Ensure-ownership-release-on-failed-emit.patch b/buildroot-external/patches/linux/0127-printk-nbcon-Ensure-ownership-release-on-failed-emit.patch similarity index 93% rename from buildroot-external/patches/linux/0128-printk-nbcon-Ensure-ownership-release-on-failed-emit.patch rename to buildroot-external/patches/linux/0127-printk-nbcon-Ensure-ownership-release-on-failed-emit.patch index 10ed3072..32c3a8aa 100644 --- a/buildroot-external/patches/linux/0128-printk-nbcon-Ensure-ownership-release-on-failed-emit.patch +++ b/buildroot-external/patches/linux/0127-printk-nbcon-Ensure-ownership-release-on-failed-emit.patch @@ -1,7 +1,7 @@ -From d60690490df20600ce7a5008264f66a37d69029b Mon Sep 17 00:00:00 2001 +From 658fb663bc28a42af52a216d7bf66f844dd23d69 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Fri, 20 Oct 2023 09:52:59 +0000 -Subject: [PATCH 128/195] printk: nbcon: Ensure ownership release on failed +Subject: [PATCH 127/196] printk: nbcon: Ensure ownership release on failed emit Until now it was assumed that ownership has been lost when the @@ -59,5 +59,5 @@ index c8093bcc01fe..8ecd76aa22e6 100644 /* * Since any dropped message was successfully output, reset the -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0129-printk-Check-printk_deferred_enter-_exit-usage.patch b/buildroot-external/patches/linux/0128-printk-Check-printk_deferred_enter-_exit-usage.patch similarity index 93% rename from buildroot-external/patches/linux/0129-printk-Check-printk_deferred_enter-_exit-usage.patch rename to buildroot-external/patches/linux/0128-printk-Check-printk_deferred_enter-_exit-usage.patch index f5f68201..0c1dff0e 100644 --- a/buildroot-external/patches/linux/0129-printk-Check-printk_deferred_enter-_exit-usage.patch +++ b/buildroot-external/patches/linux/0128-printk-Check-printk_deferred_enter-_exit-usage.patch @@ -1,7 +1,7 @@ -From f43f4f3052c60dcbe1e6a8c97ccdaf773208de3b Mon Sep 17 00:00:00 2001 +From 397d9aaeec7f0592a80468974f2e8d952d9a94ec Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Fri, 22 Sep 2023 14:58:18 +0000 -Subject: [PATCH 129/195] printk: Check printk_deferred_enter()/_exit() usage +Subject: [PATCH 128/196] printk: Check printk_deferred_enter()/_exit() usage Add validation that printk_deferred_enter()/_exit() are called in non-migration contexts. @@ -61,5 +61,5 @@ index 6d10927a07d8..8d9408d653de 100644 { #ifdef CONFIG_KGDB_KDB -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0130-printk-nbcon-Implement-processing-in-port-lock-wrapp.patch b/buildroot-external/patches/linux/0129-printk-nbcon-Implement-processing-in-port-lock-wrapp.patch similarity index 97% rename from buildroot-external/patches/linux/0130-printk-nbcon-Implement-processing-in-port-lock-wrapp.patch rename to buildroot-external/patches/linux/0129-printk-nbcon-Implement-processing-in-port-lock-wrapp.patch index 97c4e851..15a044c0 100644 --- a/buildroot-external/patches/linux/0130-printk-nbcon-Implement-processing-in-port-lock-wrapp.patch +++ b/buildroot-external/patches/linux/0129-printk-nbcon-Implement-processing-in-port-lock-wrapp.patch @@ -1,7 +1,7 @@ -From 46699a06e74702167e5b1e307859228761e6fbcc Mon Sep 17 00:00:00 2001 +From cc53b9de973f6e6773f583602563678cd0f780ec Mon Sep 17 00:00:00 2001 From: John Ogness Date: Wed, 13 Sep 2023 08:35:23 +0000 -Subject: [PATCH 130/195] printk: nbcon: Implement processing in port->lock +Subject: [PATCH 129/196] printk: nbcon: Implement processing in port->lock wrapper Currently the port->lock wrappers uart_port_lock(), @@ -81,7 +81,7 @@ index f4502b036e48..2aa57a870caf 100644 #ifdef CONFIG_SMP diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h -index 3091c62ec37b..b0d0a55ec340 100644 +index f43aca7f3b01..90f4a11d24eb 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h @@ -595,6 +595,7 @@ struct uart_port { @@ -251,5 +251,5 @@ index 8ecd76aa22e6..a5707fe1e95e 100644 +} +EXPORT_SYMBOL_GPL(nbcon_release); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0131-printk-nbcon-Add-driver_enter-driver_exit-console-ca.patch b/buildroot-external/patches/linux/0130-printk-nbcon-Add-driver_enter-driver_exit-console-ca.patch similarity index 92% rename from buildroot-external/patches/linux/0131-printk-nbcon-Add-driver_enter-driver_exit-console-ca.patch rename to buildroot-external/patches/linux/0130-printk-nbcon-Add-driver_enter-driver_exit-console-ca.patch index fce3812f..9c4dd8c1 100644 --- a/buildroot-external/patches/linux/0131-printk-nbcon-Add-driver_enter-driver_exit-console-ca.patch +++ b/buildroot-external/patches/linux/0130-printk-nbcon-Add-driver_enter-driver_exit-console-ca.patch @@ -1,7 +1,7 @@ -From 80b62658a07fe8c941fc3aea8dcb19e4d08a0868 Mon Sep 17 00:00:00 2001 +From 3b3da4e4e9170710e72c9c414e5800c6d887dbc9 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Fri, 8 Dec 2023 15:54:27 +0000 -Subject: [PATCH 131/195] printk: nbcon: Add driver_enter/driver_exit console +Subject: [PATCH 130/196] printk: nbcon: Add driver_enter/driver_exit console callbacks Console drivers need some mechanism to synchronize between "normal @@ -43,5 +43,5 @@ index c27bd5189660..73515c324347 100644 atomic_long_t __private nbcon_seq; struct printk_buffers *pbufs; -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0132-printk-Make-console_is_usable-available-to-nbcon.patch b/buildroot-external/patches/linux/0131-printk-Make-console_is_usable-available-to-nbcon.patch similarity index 95% rename from buildroot-external/patches/linux/0132-printk-Make-console_is_usable-available-to-nbcon.patch rename to buildroot-external/patches/linux/0131-printk-Make-console_is_usable-available-to-nbcon.patch index 3e0aca23..d4b8cb42 100644 --- a/buildroot-external/patches/linux/0132-printk-Make-console_is_usable-available-to-nbcon.patch +++ b/buildroot-external/patches/linux/0131-printk-Make-console_is_usable-available-to-nbcon.patch @@ -1,7 +1,7 @@ -From 31a8577c233373d25dcf28d21c1d918541e08f37 Mon Sep 17 00:00:00 2001 +From 865dcc34c0f8ecbdee000290ded20ae38e0a14ad Mon Sep 17 00:00:00 2001 From: John Ogness Date: Tue, 12 Sep 2023 13:25:41 +0000 -Subject: [PATCH 132/195] printk: Make console_is_usable() available to nbcon +Subject: [PATCH 131/196] printk: Make console_is_usable() available to nbcon Move console_is_usable() as-is into internal.h so that it can be used by nbcon printing functions as well. @@ -106,5 +106,5 @@ index c4ae4538dba7..bdf826dc7672 100644 { console_locked = 0; -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0133-printk-Let-console_is_usable-handle-nbcon.patch b/buildroot-external/patches/linux/0132-printk-Let-console_is_usable-handle-nbcon.patch similarity index 91% rename from buildroot-external/patches/linux/0133-printk-Let-console_is_usable-handle-nbcon.patch rename to buildroot-external/patches/linux/0132-printk-Let-console_is_usable-handle-nbcon.patch index f952ccb0..b18a6516 100644 --- a/buildroot-external/patches/linux/0133-printk-Let-console_is_usable-handle-nbcon.patch +++ b/buildroot-external/patches/linux/0132-printk-Let-console_is_usable-handle-nbcon.patch @@ -1,7 +1,7 @@ -From 2334aaacdfe49e8892f64cd86a8824d9dceb8d2a Mon Sep 17 00:00:00 2001 +From 8847531d9096f4c400156e67aacf15f1dac79db1 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Tue, 12 Sep 2023 13:53:21 +0000 -Subject: [PATCH 133/195] printk: Let console_is_usable() handle nbcon +Subject: [PATCH 132/196] printk: Let console_is_usable() handle nbcon The nbcon consoles use a different printing callback. For nbcon consoles, check for the write_atomic() callback instead of @@ -44,5 +44,5 @@ index 378ccca007ca..d741d19bb9db 100644 /* * Console drivers may assume that per-cpu resources have been -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0134-printk-Add-flags-argument-for-console_is_usable.patch b/buildroot-external/patches/linux/0133-printk-Add-flags-argument-for-console_is_usable.patch similarity index 94% rename from buildroot-external/patches/linux/0134-printk-Add-flags-argument-for-console_is_usable.patch rename to buildroot-external/patches/linux/0133-printk-Add-flags-argument-for-console_is_usable.patch index 5131fdbf..430ec4e9 100644 --- a/buildroot-external/patches/linux/0134-printk-Add-flags-argument-for-console_is_usable.patch +++ b/buildroot-external/patches/linux/0133-printk-Add-flags-argument-for-console_is_usable.patch @@ -1,7 +1,7 @@ -From 548ffa2350b3526e8c84b996da2c4c3eabf4dd00 Mon Sep 17 00:00:00 2001 +From f21d2e03634c127849c720ac6d14356bffe82d7f Mon Sep 17 00:00:00 2001 From: John Ogness Date: Tue, 12 Sep 2023 13:45:33 +0000 -Subject: [PATCH 134/195] printk: Add @flags argument for console_is_usable() +Subject: [PATCH 133/196] printk: Add @flags argument for console_is_usable() The caller of console_is_usable() usually needs @console->flags for its own checks. Rather than having console_is_usable() read @@ -70,5 +70,5 @@ index bdf826dc7672..ef579b472363 100644 if (flags & CON_NBCON) { -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0135-printk-nbcon-Provide-function-to-flush-using-write_a.patch b/buildroot-external/patches/linux/0134-printk-nbcon-Provide-function-to-flush-using-write_a.patch similarity index 97% rename from buildroot-external/patches/linux/0135-printk-nbcon-Provide-function-to-flush-using-write_a.patch rename to buildroot-external/patches/linux/0134-printk-nbcon-Provide-function-to-flush-using-write_a.patch index 43c54cc2..a265e153 100644 --- a/buildroot-external/patches/linux/0135-printk-nbcon-Provide-function-to-flush-using-write_a.patch +++ b/buildroot-external/patches/linux/0134-printk-nbcon-Provide-function-to-flush-using-write_a.patch @@ -1,7 +1,7 @@ -From f2db0019f8d4fe2d875a411ded794484417b9292 Mon Sep 17 00:00:00 2001 +From 6efd22b08903646f6d6b5b6422789d7547a11286 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Tue, 12 Sep 2023 12:00:08 +0000 -Subject: [PATCH 135/195] printk: nbcon: Provide function to flush using +Subject: [PATCH 134/196] printk: nbcon: Provide function to flush using write_atomic() Provide nbcon_atomic_flush_all() to perform flushing of all @@ -191,5 +191,5 @@ index ef579b472363..2aa2adb1c546 100644 } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0136-printk-Track-registered-boot-consoles.patch b/buildroot-external/patches/linux/0135-printk-Track-registered-boot-consoles.patch similarity index 95% rename from buildroot-external/patches/linux/0136-printk-Track-registered-boot-consoles.patch rename to buildroot-external/patches/linux/0135-printk-Track-registered-boot-consoles.patch index a9bf22a5..35f3e655 100644 --- a/buildroot-external/patches/linux/0136-printk-Track-registered-boot-consoles.patch +++ b/buildroot-external/patches/linux/0135-printk-Track-registered-boot-consoles.patch @@ -1,7 +1,7 @@ -From c41cd9a0cb14f053404548147e573e8e065fdc89 Mon Sep 17 00:00:00 2001 +From edbb86d68e362282bb5f4c9cccff869772f69f2e Mon Sep 17 00:00:00 2001 From: John Ogness Date: Tue, 24 Oct 2023 14:13:14 +0000 -Subject: [PATCH 136/195] printk: Track registered boot consoles +Subject: [PATCH 135/196] printk: Track registered boot consoles Unfortunately it is not known if a boot console and a regular (legacy or nbcon) console use the same hardware. For this reason @@ -79,5 +79,5 @@ index 2aa2adb1c546..1ad6d6d8ad2e 100644 } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0137-printk-nbcon-Use-nbcon-consoles-in-console_flush_all.patch b/buildroot-external/patches/linux/0136-printk-nbcon-Use-nbcon-consoles-in-console_flush_all.patch similarity index 97% rename from buildroot-external/patches/linux/0137-printk-nbcon-Use-nbcon-consoles-in-console_flush_all.patch rename to buildroot-external/patches/linux/0136-printk-nbcon-Use-nbcon-consoles-in-console_flush_all.patch index 4b6b692e..ad225448 100644 --- a/buildroot-external/patches/linux/0137-printk-nbcon-Use-nbcon-consoles-in-console_flush_all.patch +++ b/buildroot-external/patches/linux/0136-printk-nbcon-Use-nbcon-consoles-in-console_flush_all.patch @@ -1,7 +1,7 @@ -From 0b6de71fdd4543dbd31f09508d665068d03a1628 Mon Sep 17 00:00:00 2001 +From d9b5edbbf16c03ead8cdce023e65056a7b8145b2 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Tue, 19 Sep 2023 14:33:27 +0000 -Subject: [PATCH 137/195] printk: nbcon: Use nbcon consoles in +Subject: [PATCH 136/196] printk: nbcon: Use nbcon consoles in console_flush_all() Allow nbcon consoles to print messages in the printk() caller @@ -178,5 +178,5 @@ index 1ad6d6d8ad2e..8a023a6db7c9 100644 if (!progress) continue; -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0138-printk-nbcon-Assign-priority-based-on-CPU-state.patch b/buildroot-external/patches/linux/0137-printk-nbcon-Assign-priority-based-on-CPU-state.patch similarity index 96% rename from buildroot-external/patches/linux/0138-printk-nbcon-Assign-priority-based-on-CPU-state.patch rename to buildroot-external/patches/linux/0137-printk-nbcon-Assign-priority-based-on-CPU-state.patch index 8d16c37b..033ba025 100644 --- a/buildroot-external/patches/linux/0138-printk-nbcon-Assign-priority-based-on-CPU-state.patch +++ b/buildroot-external/patches/linux/0137-printk-nbcon-Assign-priority-based-on-CPU-state.patch @@ -1,7 +1,7 @@ -From fa2fbc87ff332b0f7e1a1d77d80d1a701d4be77e Mon Sep 17 00:00:00 2001 +From a920606f828c8a5794abe28fad17f92d92857626 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Thu, 14 Dec 2023 14:38:42 +0000 -Subject: [PATCH 138/195] printk: nbcon: Assign priority based on CPU state +Subject: [PATCH 137/196] printk: nbcon: Assign priority based on CPU state Use the current state of the CPU to determine which priority to assign to the printing context. @@ -116,5 +116,5 @@ index c17cf3ea6153..3e999784ba5c 100644 void nbcon_release(struct uart_port *up) { -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0139-printk-nbcon-Add-unsafe-flushing-on-panic.patch b/buildroot-external/patches/linux/0138-printk-nbcon-Add-unsafe-flushing-on-panic.patch similarity index 96% rename from buildroot-external/patches/linux/0139-printk-nbcon-Add-unsafe-flushing-on-panic.patch rename to buildroot-external/patches/linux/0138-printk-nbcon-Add-unsafe-flushing-on-panic.patch index 70f29afc..5ccb3721 100644 --- a/buildroot-external/patches/linux/0139-printk-nbcon-Add-unsafe-flushing-on-panic.patch +++ b/buildroot-external/patches/linux/0138-printk-nbcon-Add-unsafe-flushing-on-panic.patch @@ -1,7 +1,7 @@ -From b7b2c74e1334df6f3b84d91a9d7d984fcde36704 Mon Sep 17 00:00:00 2001 +From 0e5f0963a60d11c35828b5635c2ce1b4c3d800e2 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Fri, 20 Oct 2023 10:03:42 +0000 -Subject: [PATCH 139/195] printk: nbcon: Add unsafe flushing on panic +Subject: [PATCH 138/196] printk: nbcon: Add unsafe flushing on panic Add nbcon_atomic_flush_unsafe() to flush all nbcon consoles using the write_atomic() callback and allowing unsafe hostile @@ -101,5 +101,5 @@ index 3e999784ba5c..1c01f88d596d 100644 /** -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0140-printk-Avoid-console_lock-dance-if-no-legacy-or-boot.patch b/buildroot-external/patches/linux/0139-printk-Avoid-console_lock-dance-if-no-legacy-or-boot.patch similarity index 98% rename from buildroot-external/patches/linux/0140-printk-Avoid-console_lock-dance-if-no-legacy-or-boot.patch rename to buildroot-external/patches/linux/0139-printk-Avoid-console_lock-dance-if-no-legacy-or-boot.patch index 6b41ab45..126af5f5 100644 --- a/buildroot-external/patches/linux/0140-printk-Avoid-console_lock-dance-if-no-legacy-or-boot.patch +++ b/buildroot-external/patches/linux/0139-printk-Avoid-console_lock-dance-if-no-legacy-or-boot.patch @@ -1,7 +1,7 @@ -From 9d92c992ab3d3166daecc04a4acbeaeb635f52e1 Mon Sep 17 00:00:00 2001 +From d0da2306d4d604ad861515b6b391bda5f4016622 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Tue, 26 Sep 2023 12:44:07 +0000 -Subject: [PATCH 140/195] printk: Avoid console_lock dance if no legacy or boot +Subject: [PATCH 139/196] printk: Avoid console_lock dance if no legacy or boot consoles Currently the console lock is used to attempt legacy-type @@ -214,5 +214,5 @@ index 8a023a6db7c9..26958c8b2810 100644 void printk_trigger_flush(void) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0141-printk-Track-nbcon-consoles.patch b/buildroot-external/patches/linux/0140-printk-Track-nbcon-consoles.patch similarity index 94% rename from buildroot-external/patches/linux/0141-printk-Track-nbcon-consoles.patch rename to buildroot-external/patches/linux/0140-printk-Track-nbcon-consoles.patch index 5e56d82d..908f5401 100644 --- a/buildroot-external/patches/linux/0141-printk-Track-nbcon-consoles.patch +++ b/buildroot-external/patches/linux/0140-printk-Track-nbcon-consoles.patch @@ -1,7 +1,7 @@ -From 72e9bda6af8eb46bceb4658c4cf10b0446ae964a Mon Sep 17 00:00:00 2001 +From 452db4563b02c88bf1e0312c20dc54c35f0c7a17 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Mon, 11 Dec 2023 09:36:52 +0000 -Subject: [PATCH 141/195] printk: Track nbcon consoles +Subject: [PATCH 140/196] printk: Track nbcon consoles Add a global flag @have_nbcon_console to identify if any nbcon consoles are registered. This will be used in follow-up commits @@ -68,5 +68,5 @@ index 26958c8b2810..e84da28db173 100644 return res; } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0142-printk-Coordinate-direct-printing-in-panic.patch b/buildroot-external/patches/linux/0141-printk-Coordinate-direct-printing-in-panic.patch similarity index 96% rename from buildroot-external/patches/linux/0142-printk-Coordinate-direct-printing-in-panic.patch rename to buildroot-external/patches/linux/0141-printk-Coordinate-direct-printing-in-panic.patch index 75d289af..10e1499a 100644 --- a/buildroot-external/patches/linux/0142-printk-Coordinate-direct-printing-in-panic.patch +++ b/buildroot-external/patches/linux/0141-printk-Coordinate-direct-printing-in-panic.patch @@ -1,7 +1,7 @@ -From 3607ce2a07c3d015cfa9990bca4141c9cdd316ce Mon Sep 17 00:00:00 2001 +From 66c59e7b1eeb5f89fda651c62d7178e34d9e92c5 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Wed, 22 Nov 2023 11:56:58 +0000 -Subject: [PATCH 142/195] printk: Coordinate direct printing in panic +Subject: [PATCH 141/196] printk: Coordinate direct printing in panic Perform printing by nbcon consoles on the panic CPU from the printk() caller context in order to get panic messages printed @@ -139,5 +139,5 @@ index e84da28db173..9c2e26ce16f9 100644 return printed_len; } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0143-printk-nbcon-Implement-emergency-sections.patch b/buildroot-external/patches/linux/0142-printk-nbcon-Implement-emergency-sections.patch similarity index 98% rename from buildroot-external/patches/linux/0143-printk-nbcon-Implement-emergency-sections.patch rename to buildroot-external/patches/linux/0142-printk-nbcon-Implement-emergency-sections.patch index 6af96a54..e817c337 100644 --- a/buildroot-external/patches/linux/0143-printk-nbcon-Implement-emergency-sections.patch +++ b/buildroot-external/patches/linux/0142-printk-nbcon-Implement-emergency-sections.patch @@ -1,7 +1,7 @@ -From 77ccc5a8a701b53184d514825ca2181427c3a445 Mon Sep 17 00:00:00 2001 +From 92634b7c6a41eefbd7252c57b7a29a70bd236bb4 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Mon, 11 Sep 2023 15:21:57 +0000 -Subject: [PATCH 143/195] printk: nbcon: Implement emergency sections +Subject: [PATCH 142/196] printk: nbcon: Implement emergency sections In emergency situations (something has gone wrong but the system continues to operate), usually important information @@ -239,5 +239,5 @@ index 9c2e26ce16f9..11f26ad708d5 100644 } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0144-panic-Mark-emergency-section-in-warn.patch b/buildroot-external/patches/linux/0143-panic-Mark-emergency-section-in-warn.patch similarity index 90% rename from buildroot-external/patches/linux/0144-panic-Mark-emergency-section-in-warn.patch rename to buildroot-external/patches/linux/0143-panic-Mark-emergency-section-in-warn.patch index 9e839dcd..5209d76e 100644 --- a/buildroot-external/patches/linux/0144-panic-Mark-emergency-section-in-warn.patch +++ b/buildroot-external/patches/linux/0143-panic-Mark-emergency-section-in-warn.patch @@ -1,7 +1,7 @@ -From b569a117de7dcfb1f52fa46471b5eb633d6e81f1 Mon Sep 17 00:00:00 2001 +From b6903e4522c7e636e2cd825a56715a459e6fc52d Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Mon, 11 Sep 2023 15:53:04 +0000 -Subject: [PATCH 144/195] panic: Mark emergency section in warn +Subject: [PATCH 143/196] panic: Mark emergency section in warn Mark the full contents of __warn() as an emergency section. In this section, the CPU will not perform console output for the @@ -39,5 +39,5 @@ index f0e91a0c4001..147803c3a402 100644 #ifdef CONFIG_BUG -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0145-panic-Mark-emergency-section-in-oops.patch b/buildroot-external/patches/linux/0144-panic-Mark-emergency-section-in-oops.patch similarity index 90% rename from buildroot-external/patches/linux/0145-panic-Mark-emergency-section-in-oops.patch rename to buildroot-external/patches/linux/0144-panic-Mark-emergency-section-in-oops.patch index cbe7c79e..82e2a773 100644 --- a/buildroot-external/patches/linux/0145-panic-Mark-emergency-section-in-oops.patch +++ b/buildroot-external/patches/linux/0144-panic-Mark-emergency-section-in-oops.patch @@ -1,7 +1,7 @@ -From ae187cbe47edd0926273eba6d2bc8295ca9810aa Mon Sep 17 00:00:00 2001 +From d562c13004b0c324736db8e33568e2b71b45fb68 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Tue, 19 Sep 2023 17:07:34 +0000 -Subject: [PATCH 145/195] panic: Mark emergency section in oops +Subject: [PATCH 144/196] panic: Mark emergency section in oops Mark an emergency section beginning with oops_enter() until the end of oops_exit(). In this section, the CPU will not perform @@ -40,5 +40,5 @@ index 147803c3a402..9215df21d8c2 100644 } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0146-rcu-Mark-emergency-section-in-rcu-stalls.patch b/buildroot-external/patches/linux/0145-rcu-Mark-emergency-section-in-rcu-stalls.patch similarity index 91% rename from buildroot-external/patches/linux/0146-rcu-Mark-emergency-section-in-rcu-stalls.patch rename to buildroot-external/patches/linux/0145-rcu-Mark-emergency-section-in-rcu-stalls.patch index 12424f91..a59adb7c 100644 --- a/buildroot-external/patches/linux/0146-rcu-Mark-emergency-section-in-rcu-stalls.patch +++ b/buildroot-external/patches/linux/0145-rcu-Mark-emergency-section-in-rcu-stalls.patch @@ -1,7 +1,7 @@ -From 4f6d58bb569db4e6f00cd6860edde4a1492458f4 Mon Sep 17 00:00:00 2001 +From 3a16382d09e9b9e13013ea42c2db38bb44a83b5a Mon Sep 17 00:00:00 2001 From: John Ogness Date: Mon, 11 Sep 2023 15:53:39 +0000 -Subject: [PATCH 146/195] rcu: Mark emergency section in rcu stalls +Subject: [PATCH 145/196] rcu: Mark emergency section in rcu stalls Mark an emergency section within print_other_cpu_stall(), where RCU stall information is printed. In this section, the CPU will @@ -46,5 +46,5 @@ index e09f4f624261..3114830489ef 100644 static void print_cpu_stall(unsigned long gps) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0147-lockdep-Mark-emergency-section-in-lockdep-splats.patch b/buildroot-external/patches/linux/0146-lockdep-Mark-emergency-section-in-lockdep-splats.patch similarity index 91% rename from buildroot-external/patches/linux/0147-lockdep-Mark-emergency-section-in-lockdep-splats.patch rename to buildroot-external/patches/linux/0146-lockdep-Mark-emergency-section-in-lockdep-splats.patch index 01580a97..2fade0b5 100644 --- a/buildroot-external/patches/linux/0147-lockdep-Mark-emergency-section-in-lockdep-splats.patch +++ b/buildroot-external/patches/linux/0146-lockdep-Mark-emergency-section-in-lockdep-splats.patch @@ -1,7 +1,7 @@ -From 13d177e44bda2d53678aded12e9da4f114107ea2 Mon Sep 17 00:00:00 2001 +From f02c87d1ed61f3be403169b8f59dd7c916270385 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Mon, 18 Sep 2023 20:27:41 +0000 -Subject: [PATCH 147/195] lockdep: Mark emergency section in lockdep splats +Subject: [PATCH 146/196] lockdep: Mark emergency section in lockdep splats Mark an emergency section within print_usage_bug(), where lockdep bugs are printed. In this section, the CPU will not @@ -46,5 +46,5 @@ index 151bd3de5936..5c21ba41e308 100644 /* -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0148-printk-nbcon-Introduce-printing-kthreads.patch b/buildroot-external/patches/linux/0147-printk-nbcon-Introduce-printing-kthreads.patch similarity index 98% rename from buildroot-external/patches/linux/0148-printk-nbcon-Introduce-printing-kthreads.patch rename to buildroot-external/patches/linux/0147-printk-nbcon-Introduce-printing-kthreads.patch index 7be4f7b0..f5966cc4 100644 --- a/buildroot-external/patches/linux/0148-printk-nbcon-Introduce-printing-kthreads.patch +++ b/buildroot-external/patches/linux/0147-printk-nbcon-Introduce-printing-kthreads.patch @@ -1,7 +1,7 @@ -From 858c2f115b2f1ef3e7757f28faa3a0e2fdf97fca Mon Sep 17 00:00:00 2001 +From cf73f93a27ac8a21e5123ed51c1b93dc9d40a139 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Fri, 22 Sep 2023 14:12:21 +0000 -Subject: [PATCH 148/195] printk: nbcon: Introduce printing kthreads +Subject: [PATCH 147/196] printk: nbcon: Introduce printing kthreads Provide the main implementation for running a printer kthread per nbcon console that is takeover/handover aware. @@ -448,5 +448,5 @@ index 11f26ad708d5..2499482dd08f 100644 } EXPORT_SYMBOL(console_start); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0149-printk-Atomic-print-in-printk-context-on-shutdown.patch b/buildroot-external/patches/linux/0148-printk-Atomic-print-in-printk-context-on-shutdown.patch similarity index 91% rename from buildroot-external/patches/linux/0149-printk-Atomic-print-in-printk-context-on-shutdown.patch rename to buildroot-external/patches/linux/0148-printk-Atomic-print-in-printk-context-on-shutdown.patch index 9e60ce9d..dbf94e4a 100644 --- a/buildroot-external/patches/linux/0149-printk-Atomic-print-in-printk-context-on-shutdown.patch +++ b/buildroot-external/patches/linux/0148-printk-Atomic-print-in-printk-context-on-shutdown.patch @@ -1,7 +1,7 @@ -From 912e451b2aac938ea690f984f77ee311d05ed1d8 Mon Sep 17 00:00:00 2001 +From 53ad56a5471aad89efca3409e4c8d58e5154cadd Mon Sep 17 00:00:00 2001 From: John Ogness Date: Mon, 23 Oct 2023 17:43:48 +0000 -Subject: [PATCH 149/195] printk: Atomic print in printk context on shutdown +Subject: [PATCH 148/196] printk: Atomic print in printk context on shutdown For nbcon consoles, normally the printing is handled by the dedicated console printing threads. However, on shutdown the @@ -42,5 +42,5 @@ index 2499482dd08f..2f27c59224be 100644 if (do_trylock_unlock) { -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0150-printk-nbcon-Add-context-to-console_is_usable.patch b/buildroot-external/patches/linux/0149-printk-nbcon-Add-context-to-console_is_usable.patch similarity index 96% rename from buildroot-external/patches/linux/0150-printk-nbcon-Add-context-to-console_is_usable.patch rename to buildroot-external/patches/linux/0149-printk-nbcon-Add-context-to-console_is_usable.patch index 613b0a31..ba555d10 100644 --- a/buildroot-external/patches/linux/0150-printk-nbcon-Add-context-to-console_is_usable.patch +++ b/buildroot-external/patches/linux/0149-printk-nbcon-Add-context-to-console_is_usable.patch @@ -1,7 +1,7 @@ -From b8a146c98a436e7ca48f9d635462e09bc302f9a7 Mon Sep 17 00:00:00 2001 +From 0b45148e4ec51843544656ee1973703eb32162f7 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Tue, 26 Sep 2023 14:43:30 +0000 -Subject: [PATCH 150/195] printk: nbcon: Add context to console_is_usable() +Subject: [PATCH 149/196] printk: nbcon: Add context to console_is_usable() The nbcon consoles have two callbacks to be used for different contexts. In order to determine if an nbcon console is usable, @@ -116,5 +116,5 @@ index 2f27c59224be..f11381f39c98 100644 if (flags & CON_NBCON) { printk_seq = nbcon_seq_read(c); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0151-printk-nbcon-Add-printer-thread-wakeups.patch b/buildroot-external/patches/linux/0150-printk-nbcon-Add-printer-thread-wakeups.patch similarity index 97% rename from buildroot-external/patches/linux/0151-printk-nbcon-Add-printer-thread-wakeups.patch rename to buildroot-external/patches/linux/0150-printk-nbcon-Add-printer-thread-wakeups.patch index 9088c86e..88cf7816 100644 --- a/buildroot-external/patches/linux/0151-printk-nbcon-Add-printer-thread-wakeups.patch +++ b/buildroot-external/patches/linux/0150-printk-nbcon-Add-printer-thread-wakeups.patch @@ -1,7 +1,7 @@ -From eabcf9c8af1fcf08b4d2f08266b3d4b9be856983 Mon Sep 17 00:00:00 2001 +From c643ed9ef56cd3a3b7c97bdd573392c4983b8ee1 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Tue, 26 Sep 2023 13:03:52 +0000 -Subject: [PATCH 151/195] printk: nbcon: Add printer thread wakeups +Subject: [PATCH 150/196] printk: nbcon: Add printer thread wakeups Add a function to wakeup the printer threads. Use the new function when: @@ -171,5 +171,5 @@ index f11381f39c98..41370f284216 100644 } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0152-printk-nbcon-Stop-threads-on-shutdown-reboot.patch b/buildroot-external/patches/linux/0151-printk-nbcon-Stop-threads-on-shutdown-reboot.patch similarity index 92% rename from buildroot-external/patches/linux/0152-printk-nbcon-Stop-threads-on-shutdown-reboot.patch rename to buildroot-external/patches/linux/0151-printk-nbcon-Stop-threads-on-shutdown-reboot.patch index 496c1e4d..b4348926 100644 --- a/buildroot-external/patches/linux/0152-printk-nbcon-Stop-threads-on-shutdown-reboot.patch +++ b/buildroot-external/patches/linux/0151-printk-nbcon-Stop-threads-on-shutdown-reboot.patch @@ -1,7 +1,7 @@ -From 69c33032523d64d63f4abe3b13cac622ada89cd5 Mon Sep 17 00:00:00 2001 +From 0868a8b36f7b85eb2e53cf094365b34fbdfcb73c Mon Sep 17 00:00:00 2001 From: John Ogness Date: Tue, 26 Sep 2023 13:04:15 +0000 -Subject: [PATCH 152/195] printk: nbcon: Stop threads on shutdown/reboot +Subject: [PATCH 151/196] printk: nbcon: Stop threads on shutdown/reboot Register a syscore_ops shutdown function to stop all threaded printers on shutdown/reboot. This allows printk to transition back @@ -61,5 +61,5 @@ index 337ec7a10095..57ed4968a653 100644 +} +device_initcall(printk_init_ops); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0153-printk-nbcon-Start-printing-threads.patch b/buildroot-external/patches/linux/0152-printk-nbcon-Start-printing-threads.patch similarity index 96% rename from buildroot-external/patches/linux/0153-printk-nbcon-Start-printing-threads.patch rename to buildroot-external/patches/linux/0152-printk-nbcon-Start-printing-threads.patch index be9de016..13bd9909 100644 --- a/buildroot-external/patches/linux/0153-printk-nbcon-Start-printing-threads.patch +++ b/buildroot-external/patches/linux/0152-printk-nbcon-Start-printing-threads.patch @@ -1,7 +1,7 @@ -From 9c19eaa11cb760a1572021b4012bd91714077163 Mon Sep 17 00:00:00 2001 +From 01b3747045371d9acb12427b75bc1d769c9c58c0 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Tue, 5 Dec 2023 14:09:31 +0000 -Subject: [PATCH 153/195] printk: nbcon: Start printing threads +Subject: [PATCH 152/196] printk: nbcon: Start printing threads If there are no boot consoles, the printing threads are started in early_initcall. @@ -140,5 +140,5 @@ index 41370f284216..f45917a059db 100644 } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0154-proc-Add-nbcon-support-for-proc-consoles.patch b/buildroot-external/patches/linux/0153-proc-Add-nbcon-support-for-proc-consoles.patch similarity index 92% rename from buildroot-external/patches/linux/0154-proc-Add-nbcon-support-for-proc-consoles.patch rename to buildroot-external/patches/linux/0153-proc-Add-nbcon-support-for-proc-consoles.patch index a08f955c..763e5337 100644 --- a/buildroot-external/patches/linux/0154-proc-Add-nbcon-support-for-proc-consoles.patch +++ b/buildroot-external/patches/linux/0153-proc-Add-nbcon-support-for-proc-consoles.patch @@ -1,7 +1,7 @@ -From 7fb7770a2c687173232de6b0b474a4c357fefb21 Mon Sep 17 00:00:00 2001 +From 0726caeff4abf5dcdaa82f6b6df9d387422b83b8 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Tue, 26 Sep 2023 13:31:00 +0000 -Subject: [PATCH 154/195] proc: Add nbcon support for /proc/consoles +Subject: [PATCH 153/196] proc: Add nbcon support for /proc/consoles Update /proc/consoles output to show 'W' if an nbcon write callback is implemented (write_atomic or write_thread). @@ -54,5 +54,5 @@ index e0758fe7936d..2703676549f5 100644 seq_printf(m, " %4d:%d", MAJOR(dev), MINOR(dev)); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0155-tty-sysfs-Add-nbcon-support-for-active.patch b/buildroot-external/patches/linux/0154-tty-sysfs-Add-nbcon-support-for-active.patch similarity index 87% rename from buildroot-external/patches/linux/0155-tty-sysfs-Add-nbcon-support-for-active.patch rename to buildroot-external/patches/linux/0154-tty-sysfs-Add-nbcon-support-for-active.patch index de771fe6..92577503 100644 --- a/buildroot-external/patches/linux/0155-tty-sysfs-Add-nbcon-support-for-active.patch +++ b/buildroot-external/patches/linux/0154-tty-sysfs-Add-nbcon-support-for-active.patch @@ -1,7 +1,7 @@ -From e7b04cde99332125676409d38687ba8d54d64899 Mon Sep 17 00:00:00 2001 +From dcf056002ce53215fe53085bab28bbfa8ecaa98f Mon Sep 17 00:00:00 2001 From: John Ogness Date: Fri, 22 Sep 2023 14:31:09 +0000 -Subject: [PATCH 155/195] tty: sysfs: Add nbcon support for 'active' +Subject: [PATCH 154/196] tty: sysfs: Add nbcon support for 'active' Allow the 'active' attribute to list nbcon consoles. @@ -34,5 +34,5 @@ index 493fc4742895..afa52883c498 100644 continue; cs[i++] = c; -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0156-printk-nbcon-Provide-function-to-reacquire-ownership.patch b/buildroot-external/patches/linux/0155-printk-nbcon-Provide-function-to-reacquire-ownership.patch similarity index 96% rename from buildroot-external/patches/linux/0156-printk-nbcon-Provide-function-to-reacquire-ownership.patch rename to buildroot-external/patches/linux/0155-printk-nbcon-Provide-function-to-reacquire-ownership.patch index c8e3f575..e1d59869 100644 --- a/buildroot-external/patches/linux/0156-printk-nbcon-Provide-function-to-reacquire-ownership.patch +++ b/buildroot-external/patches/linux/0155-printk-nbcon-Provide-function-to-reacquire-ownership.patch @@ -1,7 +1,7 @@ -From f5fb39d46924a5aee5e6c96d5000aa396c7e916e Mon Sep 17 00:00:00 2001 +From c6361018e388b05431e3f03c465861ca58f49e4b Mon Sep 17 00:00:00 2001 From: John Ogness Date: Fri, 20 Oct 2023 10:01:58 +0000 -Subject: [PATCH 156/195] printk: nbcon: Provide function to reacquire +Subject: [PATCH 155/196] printk: nbcon: Provide function to reacquire ownership Contexts may become nbcon owners for various reasons, not just @@ -95,5 +95,5 @@ index b866d0138fe0..f843df54ee82 100644 * nbcon_emit_next_record - Emit a record in the acquired context * @wctxt: The write context that will be handed to the write function -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0157-serial-core-Provide-low-level-functions-to-port-lock.patch b/buildroot-external/patches/linux/0156-serial-core-Provide-low-level-functions-to-port-lock.patch similarity index 90% rename from buildroot-external/patches/linux/0157-serial-core-Provide-low-level-functions-to-port-lock.patch rename to buildroot-external/patches/linux/0156-serial-core-Provide-low-level-functions-to-port-lock.patch index b95038d6..be3da0e3 100644 --- a/buildroot-external/patches/linux/0157-serial-core-Provide-low-level-functions-to-port-lock.patch +++ b/buildroot-external/patches/linux/0156-serial-core-Provide-low-level-functions-to-port-lock.patch @@ -1,7 +1,7 @@ -From e9758867e44593f764c1d182aa42bdb397d0e1ae Mon Sep 17 00:00:00 2001 +From 990d46212f1983a7929a9074ab054cf32db9f854 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Mon, 11 Dec 2023 09:19:18 +0000 -Subject: [PATCH 157/195] serial: core: Provide low-level functions to port +Subject: [PATCH 156/196] serial: core: Provide low-level functions to port lock The nbcon console's driver_enter() and driver_exit() callbacks need @@ -21,7 +21,7 @@ Signed-off-by: Sebastian Andrzej Siewior 1 file changed, 12 insertions(+) diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h -index b0d0a55ec340..245c11753eff 100644 +index 90f4a11d24eb..e9e774f63db8 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h @@ -681,6 +681,18 @@ static inline void uart_port_unlock_irqrestore(struct uart_port *up, unsigned lo @@ -44,5 +44,5 @@ index b0d0a55ec340..245c11753eff 100644 { return up->serial_in(up, offset); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0158-serial-8250-Switch-to-nbcon-console.patch b/buildroot-external/patches/linux/0157-serial-8250-Switch-to-nbcon-console.patch similarity index 98% rename from buildroot-external/patches/linux/0158-serial-8250-Switch-to-nbcon-console.patch rename to buildroot-external/patches/linux/0157-serial-8250-Switch-to-nbcon-console.patch index 087381ef..97626ab8 100644 --- a/buildroot-external/patches/linux/0158-serial-8250-Switch-to-nbcon-console.patch +++ b/buildroot-external/patches/linux/0157-serial-8250-Switch-to-nbcon-console.patch @@ -1,7 +1,7 @@ -From b240857d889e8a6d1f07d7e17dfb70dab4954f6f Mon Sep 17 00:00:00 2001 +From c95f552c69b6c87e6a1d40214f4a7a40cbe88cec Mon Sep 17 00:00:00 2001 From: John Ogness Date: Wed, 13 Sep 2023 15:30:36 +0000 -Subject: [PATCH 158/195] serial: 8250: Switch to nbcon console +Subject: [PATCH 157/196] serial: 8250: Switch to nbcon console Implement the necessary callbacks to switch the 8250 console driver to perform as an nbcon console. @@ -340,5 +340,5 @@ index be65de65fe61..ec46e3b49ee9 100644 int serial8250_console_exit(struct uart_port *port); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0159-printk-Add-kthread-for-all-legacy-consoles.patch b/buildroot-external/patches/linux/0158-printk-Add-kthread-for-all-legacy-consoles.patch similarity index 98% rename from buildroot-external/patches/linux/0159-printk-Add-kthread-for-all-legacy-consoles.patch rename to buildroot-external/patches/linux/0158-printk-Add-kthread-for-all-legacy-consoles.patch index 23ce95a6..67ef738b 100644 --- a/buildroot-external/patches/linux/0159-printk-Add-kthread-for-all-legacy-consoles.patch +++ b/buildroot-external/patches/linux/0158-printk-Add-kthread-for-all-legacy-consoles.patch @@ -1,7 +1,7 @@ -From f6375c1fdfe71177bb585b8fcd5acea34042deec Mon Sep 17 00:00:00 2001 +From b9cf8f7faa912648c028d16b9f409157486f050e Mon Sep 17 00:00:00 2001 From: John Ogness Date: Fri, 22 Sep 2023 17:35:04 +0000 -Subject: [PATCH 159/195] printk: Add kthread for all legacy consoles +Subject: [PATCH 158/196] printk: Add kthread for all legacy consoles The write callback of legacy consoles make use of spinlocks. This is not permitted with PREEMPT_RT in atomic contexts. @@ -427,5 +427,5 @@ index f45917a059db..afc044632dec 100644 if (pending & PRINTK_PENDING_WAKEUP) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0160-serial-8250-revert-drop-lockdep-annotation-from-seri.patch b/buildroot-external/patches/linux/0159-serial-8250-revert-drop-lockdep-annotation-from-seri.patch similarity index 88% rename from buildroot-external/patches/linux/0160-serial-8250-revert-drop-lockdep-annotation-from-seri.patch rename to buildroot-external/patches/linux/0159-serial-8250-revert-drop-lockdep-annotation-from-seri.patch index 15b4d789..d926fbbc 100644 --- a/buildroot-external/patches/linux/0160-serial-8250-revert-drop-lockdep-annotation-from-seri.patch +++ b/buildroot-external/patches/linux/0159-serial-8250-revert-drop-lockdep-annotation-from-seri.patch @@ -1,7 +1,7 @@ -From 26b6ab6d172ffa24f22ca0b930a53e6bc1e2bba2 Mon Sep 17 00:00:00 2001 +From 25ee8c8fee9fe3c8e6b415e75457f1faf687efbe Mon Sep 17 00:00:00 2001 From: John Ogness Date: Mon, 2 Oct 2023 15:30:43 +0000 -Subject: [PATCH 160/195] serial: 8250: revert "drop lockdep annotation from +Subject: [PATCH 159/196] serial: 8250: revert "drop lockdep annotation from serial8250_clear_IER()" The 8250 driver no longer depends on @oops_in_progress and @@ -30,5 +30,5 @@ index 53ae0db72999..437a7d3d34cd 100644 } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0161-printk-Avoid-false-positive-lockdep-report-for-legac.patch b/buildroot-external/patches/linux/0160-printk-Avoid-false-positive-lockdep-report-for-legac.patch similarity index 94% rename from buildroot-external/patches/linux/0161-printk-Avoid-false-positive-lockdep-report-for-legac.patch rename to buildroot-external/patches/linux/0160-printk-Avoid-false-positive-lockdep-report-for-legac.patch index 1b0ef328..a53d0014 100644 --- a/buildroot-external/patches/linux/0161-printk-Avoid-false-positive-lockdep-report-for-legac.patch +++ b/buildroot-external/patches/linux/0160-printk-Avoid-false-positive-lockdep-report-for-legac.patch @@ -1,7 +1,7 @@ -From 5704d4e1efa542678fc9b9e57e01175202358237 Mon Sep 17 00:00:00 2001 +From 5d0e7e1ff2da6bba71ee818fe5276232763befdf Mon Sep 17 00:00:00 2001 From: John Ogness Date: Mon, 11 Dec 2023 09:34:16 +0000 -Subject: [PATCH 161/195] printk: Avoid false positive lockdep report for +Subject: [PATCH 160/196] printk: Avoid false positive lockdep report for legacy driver. printk may invoke the legacy console driver from atomic context. This leads to @@ -65,5 +65,5 @@ index afc044632dec..ddf79752c80c 100644 printk_seq = nbcon_seq_read(con); } else { -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0162-drm-i915-Use-preempt_disable-enable_rt-where-recomme.patch b/buildroot-external/patches/linux/0161-drm-i915-Use-preempt_disable-enable_rt-where-recomme.patch similarity index 93% rename from buildroot-external/patches/linux/0162-drm-i915-Use-preempt_disable-enable_rt-where-recomme.patch rename to buildroot-external/patches/linux/0161-drm-i915-Use-preempt_disable-enable_rt-where-recomme.patch index 8d2e33c9..ed74af8f 100644 --- a/buildroot-external/patches/linux/0162-drm-i915-Use-preempt_disable-enable_rt-where-recomme.patch +++ b/buildroot-external/patches/linux/0161-drm-i915-Use-preempt_disable-enable_rt-where-recomme.patch @@ -1,7 +1,7 @@ -From 24c301fa61e6da285f3307690e06e5eca6c4af75 Mon Sep 17 00:00:00 2001 +From 170a082fa9312b517234ee6b655f7cf63cca0226 Mon Sep 17 00:00:00 2001 From: Mike Galbraith Date: Sat, 27 Feb 2016 08:09:11 +0100 -Subject: [PATCH 162/195] drm/i915: Use preempt_disable/enable_rt() where +Subject: [PATCH 161/196] drm/i915: Use preempt_disable/enable_rt() where recommended Mario Kleiner suggest in commit @@ -57,5 +57,5 @@ index f5659ebd08eb..5b6d2f55528d 100644 spin_unlock_irqrestore(&dev_priv->uncore.lock, irqflags); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0163-drm-i915-Don-t-disable-interrupts-on-PREEMPT_RT-duri.patch b/buildroot-external/patches/linux/0162-drm-i915-Don-t-disable-interrupts-on-PREEMPT_RT-duri.patch similarity index 95% rename from buildroot-external/patches/linux/0163-drm-i915-Don-t-disable-interrupts-on-PREEMPT_RT-duri.patch rename to buildroot-external/patches/linux/0162-drm-i915-Don-t-disable-interrupts-on-PREEMPT_RT-duri.patch index 26d0d137..09f811fb 100644 --- a/buildroot-external/patches/linux/0163-drm-i915-Don-t-disable-interrupts-on-PREEMPT_RT-duri.patch +++ b/buildroot-external/patches/linux/0162-drm-i915-Don-t-disable-interrupts-on-PREEMPT_RT-duri.patch @@ -1,7 +1,7 @@ -From 27687eb0c4f2619cf0ba47b4b33753ef8ca1e400 Mon Sep 17 00:00:00 2001 +From 4bbdc10c902ac201b44e2994015ea6b4a57599ca Mon Sep 17 00:00:00 2001 From: Mike Galbraith Date: Sat, 27 Feb 2016 09:01:42 +0100 -Subject: [PATCH 163/195] drm/i915: Don't disable interrupts on PREEMPT_RT +Subject: [PATCH 162/196] drm/i915: Don't disable interrupts on PREEMPT_RT during atomic updates Commit @@ -86,5 +86,5 @@ index 182c6dd64f47..e7083689cf4d 100644 if (intel_vgpu_active(dev_priv)) return; -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0164-drm-i915-Don-t-check-for-atomic-context-on-PREEMPT_R.patch b/buildroot-external/patches/linux/0163-drm-i915-Don-t-check-for-atomic-context-on-PREEMPT_R.patch similarity index 91% rename from buildroot-external/patches/linux/0164-drm-i915-Don-t-check-for-atomic-context-on-PREEMPT_R.patch rename to buildroot-external/patches/linux/0163-drm-i915-Don-t-check-for-atomic-context-on-PREEMPT_R.patch index 301271f4..39476905 100644 --- a/buildroot-external/patches/linux/0164-drm-i915-Don-t-check-for-atomic-context-on-PREEMPT_R.patch +++ b/buildroot-external/patches/linux/0163-drm-i915-Don-t-check-for-atomic-context-on-PREEMPT_R.patch @@ -1,7 +1,7 @@ -From b41455bf0b55a620e92bd78887e6b5158d5af5a9 Mon Sep 17 00:00:00 2001 +From d62d3b98b6a04765ef046913bea7b60bc6c68221 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Mon, 25 Oct 2021 15:05:18 +0200 -Subject: [PATCH 164/195] drm/i915: Don't check for atomic context on +Subject: [PATCH 163/196] drm/i915: Don't check for atomic context on PREEMPT_RT The !in_atomic() check in _wait_for_atomic() triggers on PREEMPT_RT @@ -32,5 +32,5 @@ index c61066498bf2..48e19e55d6b0 100644 #else # define _WAIT_FOR_ATOMIC_CHECK(ATOMIC) do { } while (0) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0165-drm-i915-Disable-tracing-points-on-PREEMPT_RT.patch b/buildroot-external/patches/linux/0164-drm-i915-Disable-tracing-points-on-PREEMPT_RT.patch similarity index 92% rename from buildroot-external/patches/linux/0165-drm-i915-Disable-tracing-points-on-PREEMPT_RT.patch rename to buildroot-external/patches/linux/0164-drm-i915-Disable-tracing-points-on-PREEMPT_RT.patch index 1d8e4ab9..fb16ac1b 100644 --- a/buildroot-external/patches/linux/0165-drm-i915-Disable-tracing-points-on-PREEMPT_RT.patch +++ b/buildroot-external/patches/linux/0164-drm-i915-Disable-tracing-points-on-PREEMPT_RT.patch @@ -1,7 +1,7 @@ -From 4386c28f7d522e071351342d7e818cac77e37e62 Mon Sep 17 00:00:00 2001 +From b84277c1e918e1bcc52ed45381028c13ed02e73b Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Thu, 6 Dec 2018 09:52:20 +0100 -Subject: [PATCH 165/195] drm/i915: Disable tracing points on PREEMPT_RT +Subject: [PATCH 164/196] drm/i915: Disable tracing points on PREEMPT_RT Luca Abeni reported this: | BUG: scheduling while atomic: kworker/u8:2/15203/0x00000003 @@ -46,5 +46,5 @@ index ce1cbee1b39d..c54653cf72c9 100644 #include #include -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0166-drm-i915-skip-DRM_I915_LOW_LEVEL_TRACEPOINTS-with-NO.patch b/buildroot-external/patches/linux/0165-drm-i915-skip-DRM_I915_LOW_LEVEL_TRACEPOINTS-with-NO.patch similarity index 89% rename from buildroot-external/patches/linux/0166-drm-i915-skip-DRM_I915_LOW_LEVEL_TRACEPOINTS-with-NO.patch rename to buildroot-external/patches/linux/0165-drm-i915-skip-DRM_I915_LOW_LEVEL_TRACEPOINTS-with-NO.patch index 0f500703..9229dbd5 100644 --- a/buildroot-external/patches/linux/0166-drm-i915-skip-DRM_I915_LOW_LEVEL_TRACEPOINTS-with-NO.patch +++ b/buildroot-external/patches/linux/0165-drm-i915-skip-DRM_I915_LOW_LEVEL_TRACEPOINTS-with-NO.patch @@ -1,7 +1,7 @@ -From 18a7b4a8d440c3cc01f93e368876abf2d52a7bcb Mon Sep 17 00:00:00 2001 +From a128ac5efc4b8ab92e9b17e8f5e8e545fcc2dab0 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Wed, 19 Dec 2018 10:47:02 +0100 -Subject: [PATCH 166/195] drm/i915: skip DRM_I915_LOW_LEVEL_TRACEPOINTS with +Subject: [PATCH 165/196] drm/i915: skip DRM_I915_LOW_LEVEL_TRACEPOINTS with NOTRACE The order of the header files is important. If this header file is @@ -30,5 +30,5 @@ index c54653cf72c9..3c51620d011b 100644 TP_PROTO(struct i915_request *rq), TP_ARGS(rq) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0167-drm-i915-gt-Queue-and-wait-for-the-irq_work-item.patch b/buildroot-external/patches/linux/0166-drm-i915-gt-Queue-and-wait-for-the-irq_work-item.patch similarity index 92% rename from buildroot-external/patches/linux/0167-drm-i915-gt-Queue-and-wait-for-the-irq_work-item.patch rename to buildroot-external/patches/linux/0166-drm-i915-gt-Queue-and-wait-for-the-irq_work-item.patch index f56bfc5b..05d6f4c0 100644 --- a/buildroot-external/patches/linux/0167-drm-i915-gt-Queue-and-wait-for-the-irq_work-item.patch +++ b/buildroot-external/patches/linux/0166-drm-i915-gt-Queue-and-wait-for-the-irq_work-item.patch @@ -1,7 +1,7 @@ -From 26ddc594d28e1125f00344ad0e574840794f2013 Mon Sep 17 00:00:00 2001 +From d49339cc332ba068ee8e64ce263eab1a92e50699 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Wed, 8 Sep 2021 17:18:00 +0200 -Subject: [PATCH 167/195] drm/i915/gt: Queue and wait for the irq_work item. +Subject: [PATCH 166/196] drm/i915/gt: Queue and wait for the irq_work item. Disabling interrupts and invoking the irq_work function directly breaks on PREEMPT_RT. @@ -43,5 +43,5 @@ index ecc990ec1b95..8d04b10681f0 100644 } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0168-drm-i915-gt-Use-spin_lock_irq-instead-of-local_irq_d.patch b/buildroot-external/patches/linux/0167-drm-i915-gt-Use-spin_lock_irq-instead-of-local_irq_d.patch similarity index 96% rename from buildroot-external/patches/linux/0168-drm-i915-gt-Use-spin_lock_irq-instead-of-local_irq_d.patch rename to buildroot-external/patches/linux/0167-drm-i915-gt-Use-spin_lock_irq-instead-of-local_irq_d.patch index 18bf28d7..fdba6c9b 100644 --- a/buildroot-external/patches/linux/0168-drm-i915-gt-Use-spin_lock_irq-instead-of-local_irq_d.patch +++ b/buildroot-external/patches/linux/0167-drm-i915-gt-Use-spin_lock_irq-instead-of-local_irq_d.patch @@ -1,7 +1,7 @@ -From 9609fd6fb61d2785887054252389f86bea03baa6 Mon Sep 17 00:00:00 2001 +From 9f68e075f06a5414e307a31628a22bc34be4e6db Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Wed, 8 Sep 2021 19:03:41 +0200 -Subject: [PATCH 168/195] drm/i915/gt: Use spin_lock_irq() instead of +Subject: [PATCH 167/196] drm/i915/gt: Use spin_lock_irq() instead of local_irq_disable() + spin_lock() execlists_dequeue() is invoked from a function which uses @@ -90,5 +90,5 @@ index 3292524469d5..00cb9fd91f41 100644 } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0169-drm-i915-Drop-the-irqs_disabled-check.patch b/buildroot-external/patches/linux/0168-drm-i915-Drop-the-irqs_disabled-check.patch similarity index 90% rename from buildroot-external/patches/linux/0169-drm-i915-Drop-the-irqs_disabled-check.patch rename to buildroot-external/patches/linux/0168-drm-i915-Drop-the-irqs_disabled-check.patch index a31c7c5a..78118d13 100644 --- a/buildroot-external/patches/linux/0169-drm-i915-Drop-the-irqs_disabled-check.patch +++ b/buildroot-external/patches/linux/0168-drm-i915-Drop-the-irqs_disabled-check.patch @@ -1,7 +1,7 @@ -From 4911cc5d0d53f2cc82602f7d72b7ce6d6efbda23 Mon Sep 17 00:00:00 2001 +From a690c1a7ad702b71702bc4c0a47fe2c536dce089 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Fri, 1 Oct 2021 20:01:03 +0200 -Subject: [PATCH 169/195] drm/i915: Drop the irqs_disabled() check +Subject: [PATCH 168/196] drm/i915: Drop the irqs_disabled() check The !irqs_disabled() check triggers on PREEMPT_RT even with i915_sched_engine::lock acquired. The reason is the lock is transformed @@ -40,5 +40,5 @@ index f59081066a19..014d02029a41 100644 /* -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0170-drm-i915-Do-not-disable-preemption-for-resets.patch b/buildroot-external/patches/linux/0169-drm-i915-Do-not-disable-preemption-for-resets.patch similarity index 96% rename from buildroot-external/patches/linux/0170-drm-i915-Do-not-disable-preemption-for-resets.patch rename to buildroot-external/patches/linux/0169-drm-i915-Do-not-disable-preemption-for-resets.patch index c2df64c9..5760c8d2 100644 --- a/buildroot-external/patches/linux/0170-drm-i915-Do-not-disable-preemption-for-resets.patch +++ b/buildroot-external/patches/linux/0169-drm-i915-Do-not-disable-preemption-for-resets.patch @@ -1,7 +1,7 @@ -From 7c67ffac191b37cd79c0c7096aca78b47e378b6d Mon Sep 17 00:00:00 2001 +From 1bbe858b59a97744b39f0f55401229abd40cb708 Mon Sep 17 00:00:00 2001 From: Tvrtko Ursulin Date: Wed, 5 Jul 2023 10:30:25 +0100 -Subject: [PATCH 170/195] drm/i915: Do not disable preemption for resets +Subject: [PATCH 169/196] drm/i915: Do not disable preemption for resets Commit ade8a0f59844 ("drm/i915: Make all GPU resets atomic") added a preempt disable section over the hardware reset callback to prepare the @@ -100,5 +100,5 @@ index 5fa57a34cf4b..4d65c374d4d7 100644 wa_14015076503_end(gt, reset_mask); } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0171-drm-i915-guc-Consider-also-RCU-depth-in-busy-loop.patch b/buildroot-external/patches/linux/0170-drm-i915-guc-Consider-also-RCU-depth-in-busy-loop.patch similarity index 89% rename from buildroot-external/patches/linux/0171-drm-i915-guc-Consider-also-RCU-depth-in-busy-loop.patch rename to buildroot-external/patches/linux/0170-drm-i915-guc-Consider-also-RCU-depth-in-busy-loop.patch index 8d499f94..99a850ba 100644 --- a/buildroot-external/patches/linux/0171-drm-i915-guc-Consider-also-RCU-depth-in-busy-loop.patch +++ b/buildroot-external/patches/linux/0170-drm-i915-guc-Consider-also-RCU-depth-in-busy-loop.patch @@ -1,7 +1,7 @@ -From 18d73a98603ba9e70efd4026e440fb23f77fe9a7 Mon Sep 17 00:00:00 2001 +From 2ad53732d326182891e29f958f9e73a3f1d41e5b Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Tue, 3 Oct 2023 21:37:21 +0200 -Subject: [PATCH 171/195] drm/i915/guc: Consider also RCU depth in busy loop. +Subject: [PATCH 170/196] drm/i915/guc: Consider also RCU depth in busy loop. intel_guc_send_busy_loop() looks at in_atomic() and irqs_disabled() to decide if it should busy-spin while waiting or if it may sleep. @@ -30,5 +30,5 @@ index 8dc291ff0093..5b8d084c9c58 100644 /* * FIXME: Have caller pass in if we are in an atomic context to avoid -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0172-Revert-drm-i915-Depend-on-PREEMPT_RT.patch b/buildroot-external/patches/linux/0171-Revert-drm-i915-Depend-on-PREEMPT_RT.patch similarity index 85% rename from buildroot-external/patches/linux/0172-Revert-drm-i915-Depend-on-PREEMPT_RT.patch rename to buildroot-external/patches/linux/0171-Revert-drm-i915-Depend-on-PREEMPT_RT.patch index df729114..577f979e 100644 --- a/buildroot-external/patches/linux/0172-Revert-drm-i915-Depend-on-PREEMPT_RT.patch +++ b/buildroot-external/patches/linux/0171-Revert-drm-i915-Depend-on-PREEMPT_RT.patch @@ -1,7 +1,7 @@ -From 16ade794402b85f72e577634e6c6ddda7412535e Mon Sep 17 00:00:00 2001 +From 08b4cff9b5c36cf0a66e9d6699116574dfbeb263 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Mon, 21 Feb 2022 17:59:14 +0100 -Subject: [PATCH 172/195] Revert "drm/i915: Depend on !PREEMPT_RT." +Subject: [PATCH 171/196] Revert "drm/i915: Depend on !PREEMPT_RT." Once the known issues are addressed, it should be safe to enable the driver. @@ -24,5 +24,5 @@ index ce397a8797f7..98c3f532822d 100644 select INTERVAL_TREE # we need shmfs for the swappable backing store, and in particular -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0173-sched-define-TIF_ALLOW_RESCHED.patch b/buildroot-external/patches/linux/0172-sched-define-TIF_ALLOW_RESCHED.patch similarity index 99% rename from buildroot-external/patches/linux/0173-sched-define-TIF_ALLOW_RESCHED.patch rename to buildroot-external/patches/linux/0172-sched-define-TIF_ALLOW_RESCHED.patch index 37fbe93f..d1483605 100644 --- a/buildroot-external/patches/linux/0173-sched-define-TIF_ALLOW_RESCHED.patch +++ b/buildroot-external/patches/linux/0172-sched-define-TIF_ALLOW_RESCHED.patch @@ -1,7 +1,7 @@ -From df73e23d5173dbb6aae9bcb7b40f05fc0b7a07eb Mon Sep 17 00:00:00 2001 +From ac0c43e96de30b9db6d2ce6d423d82cd52383ebe Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Sat, 23 Sep 2023 03:11:05 +0200 -Subject: [PATCH 173/195] sched: define TIF_ALLOW_RESCHED +Subject: [PATCH 172/196] sched: define TIF_ALLOW_RESCHED On Fri, Sep 22 2023 at 00:55, Thomas Gleixner wrote: > On Thu, Sep 21 2023 at 09:00, Linus Torvalds wrote: @@ -328,7 +328,7 @@ index 9ea0b28068f4..5ded1450ac1a 100644 #ifndef CONFIG_HAVE_ARCH_WITHIN_STACK_FRAMES diff --git a/include/linux/trace_events.h b/include/linux/trace_events.h -index cf9f0c61796e..bdc1066f977b 100644 +index 696f8dc4aa53..e44b47305235 100644 --- a/include/linux/trace_events.h +++ b/include/linux/trace_events.h @@ -178,8 +178,8 @@ unsigned int tracing_gen_ctx_irq_test(unsigned int irqs_status); @@ -769,10 +769,10 @@ index 04846272409c..c4307934af6b 100644 extern struct rt_bandwidth def_rt_bandwidth; diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c -index fc00356a5a0a..5e1752c747d4 100644 +index 82e28777cacf..552cd31bd879 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c -@@ -2694,6 +2694,8 @@ unsigned int tracing_gen_ctx_irq_test(unsigned int irqs_status) +@@ -2708,6 +2708,8 @@ unsigned int tracing_gen_ctx_irq_test(unsigned int irqs_status) if (tif_need_resched()) trace_flags |= TRACE_FLAG_NEED_RESCHED; @@ -818,5 +818,5 @@ index 3b7d3e9eb6ea..5a4fefbc0856 100644 need_resched = 'p'; break; -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0174-arm-Disable-jump-label-on-PREEMPT_RT.patch b/buildroot-external/patches/linux/0173-arm-Disable-jump-label-on-PREEMPT_RT.patch similarity index 91% rename from buildroot-external/patches/linux/0174-arm-Disable-jump-label-on-PREEMPT_RT.patch rename to buildroot-external/patches/linux/0173-arm-Disable-jump-label-on-PREEMPT_RT.patch index dcbcd881..c8070e3c 100644 --- a/buildroot-external/patches/linux/0174-arm-Disable-jump-label-on-PREEMPT_RT.patch +++ b/buildroot-external/patches/linux/0173-arm-Disable-jump-label-on-PREEMPT_RT.patch @@ -1,7 +1,7 @@ -From 71d1e461eed4efefd088e446b7a27f380a705fa6 Mon Sep 17 00:00:00 2001 +From 61f924afb0bcacee3f4b11391418fd3e6b84ca60 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Wed, 8 Jul 2015 17:14:48 +0200 -Subject: [PATCH 174/195] arm: Disable jump-label on PREEMPT_RT. +Subject: [PATCH 173/196] arm: Disable jump-label on PREEMPT_RT. jump-labels are used to efficiently switch between two possible code paths. To achieve this, stop_machine() is used to keep the CPU in a @@ -37,5 +37,5 @@ index 9557808e8937..2257e98d4df3 100644 select HAVE_ARCH_KGDB if !CPU_ENDIAN_BE32 && MMU select HAVE_ARCH_KASAN if MMU && !XIP_KERNEL -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0175-ARM-enable-irq-in-translation-section-permission-fau.patch b/buildroot-external/patches/linux/0174-ARM-enable-irq-in-translation-section-permission-fau.patch similarity index 96% rename from buildroot-external/patches/linux/0175-ARM-enable-irq-in-translation-section-permission-fau.patch rename to buildroot-external/patches/linux/0174-ARM-enable-irq-in-translation-section-permission-fau.patch index 73607d86..c47a665f 100644 --- a/buildroot-external/patches/linux/0175-ARM-enable-irq-in-translation-section-permission-fau.patch +++ b/buildroot-external/patches/linux/0174-ARM-enable-irq-in-translation-section-permission-fau.patch @@ -1,7 +1,7 @@ -From 03668f76e159cb6eda0605e91765a5f031c28b78 Mon Sep 17 00:00:00 2001 +From 6b9e960c171b6084b270bbb7f51c37738c31a36b Mon Sep 17 00:00:00 2001 From: "Yadi.hu" Date: Wed, 10 Dec 2014 10:32:09 +0800 -Subject: [PATCH 175/195] ARM: enable irq in translation/section permission +Subject: [PATCH 174/196] ARM: enable irq in translation/section permission fault handlers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 @@ -92,5 +92,5 @@ index fef62e4a9edd..622a30243f4a 100644 return 0; } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0176-tty-serial-omap-Make-the-locking-RT-aware.patch b/buildroot-external/patches/linux/0175-tty-serial-omap-Make-the-locking-RT-aware.patch similarity index 90% rename from buildroot-external/patches/linux/0176-tty-serial-omap-Make-the-locking-RT-aware.patch rename to buildroot-external/patches/linux/0175-tty-serial-omap-Make-the-locking-RT-aware.patch index 611e2733..0ce45a94 100644 --- a/buildroot-external/patches/linux/0176-tty-serial-omap-Make-the-locking-RT-aware.patch +++ b/buildroot-external/patches/linux/0175-tty-serial-omap-Make-the-locking-RT-aware.patch @@ -1,7 +1,7 @@ -From 89401e54f0f3071179726b129b0d924c1f33cba1 Mon Sep 17 00:00:00 2001 +From 2f7c4717b62e4fd09c538c74641c07bd929e1f12 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Thu, 28 Jul 2011 13:32:57 +0200 -Subject: [PATCH 176/195] tty/serial/omap: Make the locking RT aware +Subject: [PATCH 175/196] tty/serial/omap: Make the locking RT aware The lock is a sleeping lock and local_irq_save() is not the optimsation we are looking for. Redo it to make it work on -RT and @@ -44,5 +44,5 @@ index f4c6ff806465..1097fca22307 100644 static int __init -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0177-tty-serial-pl011-Make-the-locking-work-on-RT.patch b/buildroot-external/patches/linux/0176-tty-serial-pl011-Make-the-locking-work-on-RT.patch similarity index 91% rename from buildroot-external/patches/linux/0177-tty-serial-pl011-Make-the-locking-work-on-RT.patch rename to buildroot-external/patches/linux/0176-tty-serial-pl011-Make-the-locking-work-on-RT.patch index 325bfd65..82a41942 100644 --- a/buildroot-external/patches/linux/0177-tty-serial-pl011-Make-the-locking-work-on-RT.patch +++ b/buildroot-external/patches/linux/0176-tty-serial-pl011-Make-the-locking-work-on-RT.patch @@ -1,7 +1,7 @@ -From d2902b27694fbbed67b11b8d7f4fb1b571fe9fbf Mon Sep 17 00:00:00 2001 +From 5989718d0c06eefdeba1764a69e7c806b1ff66c7 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Tue, 8 Jan 2013 21:36:51 +0100 -Subject: [PATCH 177/195] tty/serial/pl011: Make the locking work on RT +Subject: [PATCH 176/196] tty/serial/pl011: Make the locking work on RT The lock is a sleeping lock and local_irq_save() is not the optimsation we are looking for. Redo it to make it work on -RT and non-RT. @@ -43,5 +43,5 @@ index aec67d740e44..19200ab2af75 100644 clk_disable(uap->clk); } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0178-ARM-vfp-Provide-vfp_lock-for-VFP-locking.patch b/buildroot-external/patches/linux/0177-ARM-vfp-Provide-vfp_lock-for-VFP-locking.patch similarity index 94% rename from buildroot-external/patches/linux/0178-ARM-vfp-Provide-vfp_lock-for-VFP-locking.patch rename to buildroot-external/patches/linux/0177-ARM-vfp-Provide-vfp_lock-for-VFP-locking.patch index 7319a30b..f26f27a5 100644 --- a/buildroot-external/patches/linux/0178-ARM-vfp-Provide-vfp_lock-for-VFP-locking.patch +++ b/buildroot-external/patches/linux/0177-ARM-vfp-Provide-vfp_lock-for-VFP-locking.patch @@ -1,7 +1,7 @@ -From f2b817f282922b1f1dd2de3344c490db214a268b Mon Sep 17 00:00:00 2001 +From 5f48127d0cf989d3c97d80ab73a022bd28097b8f Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Fri, 19 May 2023 16:57:29 +0200 -Subject: [PATCH 178/195] ARM: vfp: Provide vfp_lock() for VFP locking. +Subject: [PATCH 177/196] ARM: vfp: Provide vfp_lock() for VFP locking. kernel_neon_begin() uses local_bh_disable() to ensure exclusive access to the VFP unit. This is broken on PREEMPT_RT because a BH disabled @@ -76,5 +76,5 @@ index 7e8773a2d99d..8d321cdb7ac5 100644 EXPORT_SYMBOL(kernel_neon_end); -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0179-ARM-vfp-Use-vfp_lock-in-vfp_sync_hwstate.patch b/buildroot-external/patches/linux/0178-ARM-vfp-Use-vfp_lock-in-vfp_sync_hwstate.patch similarity index 91% rename from buildroot-external/patches/linux/0179-ARM-vfp-Use-vfp_lock-in-vfp_sync_hwstate.patch rename to buildroot-external/patches/linux/0178-ARM-vfp-Use-vfp_lock-in-vfp_sync_hwstate.patch index 227a04f7..fbe006ac 100644 --- a/buildroot-external/patches/linux/0179-ARM-vfp-Use-vfp_lock-in-vfp_sync_hwstate.patch +++ b/buildroot-external/patches/linux/0178-ARM-vfp-Use-vfp_lock-in-vfp_sync_hwstate.patch @@ -1,7 +1,7 @@ -From 0707ca7359e1a8ae3b14963318d844c548b12d14 Mon Sep 17 00:00:00 2001 +From 831b8f09454e182de35f30971bd4313256dc2649 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Fri, 19 May 2023 16:57:30 +0200 -Subject: [PATCH 179/195] ARM: vfp: Use vfp_lock() in vfp_sync_hwstate(). +Subject: [PATCH 178/196] ARM: vfp: Use vfp_lock() in vfp_sync_hwstate(). vfp_sync_hwstate() uses preempt_disable() followed by local_bh_disable() to ensure that it won't get interrupted while checking the VFP state. @@ -45,5 +45,5 @@ index 8d321cdb7ac5..3b9360bfc508 100644 /* Ensure that the thread reloads the hardware VFP state on the next use. */ -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0180-ARM-vfp-Use-vfp_lock-in-vfp_support_entry.patch b/buildroot-external/patches/linux/0179-ARM-vfp-Use-vfp_lock-in-vfp_support_entry.patch similarity index 91% rename from buildroot-external/patches/linux/0180-ARM-vfp-Use-vfp_lock-in-vfp_support_entry.patch rename to buildroot-external/patches/linux/0179-ARM-vfp-Use-vfp_lock-in-vfp_support_entry.patch index 7aea7f56..a638864c 100644 --- a/buildroot-external/patches/linux/0180-ARM-vfp-Use-vfp_lock-in-vfp_support_entry.patch +++ b/buildroot-external/patches/linux/0179-ARM-vfp-Use-vfp_lock-in-vfp_support_entry.patch @@ -1,7 +1,7 @@ -From 2dcda80c2f3017c1ea504ce10e29d4ae860db190 Mon Sep 17 00:00:00 2001 +From ed089f095d7803d34681d7dcd142ce1320bb2961 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Wed, 28 Jun 2023 09:36:10 +0200 -Subject: [PATCH 180/195] ARM: vfp: Use vfp_lock() in vfp_support_entry(). +Subject: [PATCH 179/196] ARM: vfp: Use vfp_lock() in vfp_support_entry(). vfp_entry() is invoked from exception handler and is fully preemptible. It uses local_bh_disable() to remain uninterrupted while checking the @@ -49,5 +49,5 @@ index 3b9360bfc508..9543f011d0ed 100644 } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0181-ARM-vfp-Move-sending-signals-outside-of-vfp_lock-ed-.patch b/buildroot-external/patches/linux/0180-ARM-vfp-Move-sending-signals-outside-of-vfp_lock-ed-.patch similarity index 96% rename from buildroot-external/patches/linux/0181-ARM-vfp-Move-sending-signals-outside-of-vfp_lock-ed-.patch rename to buildroot-external/patches/linux/0180-ARM-vfp-Move-sending-signals-outside-of-vfp_lock-ed-.patch index ff8f7a37..b6f59d12 100644 --- a/buildroot-external/patches/linux/0181-ARM-vfp-Move-sending-signals-outside-of-vfp_lock-ed-.patch +++ b/buildroot-external/patches/linux/0180-ARM-vfp-Move-sending-signals-outside-of-vfp_lock-ed-.patch @@ -1,7 +1,7 @@ -From 269ce7eb164d232893070d44e53e845aad641fcc Mon Sep 17 00:00:00 2001 +From 1f242cb932c85b7ffafb2b1bfa3b2c1a50a10f25 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Wed, 28 Jun 2023 09:39:33 +0200 -Subject: [PATCH 181/195] ARM: vfp: Move sending signals outside of +Subject: [PATCH 180/196] ARM: vfp: Move sending signals outside of vfp_lock()ed section. VFP_bounce() is invoked from within vfp_support_entry() and may send a @@ -122,5 +122,5 @@ index 9543f011d0ed..9fde36fcb80c 100644 } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0182-ARM-Allow-to-enable-RT.patch b/buildroot-external/patches/linux/0181-ARM-Allow-to-enable-RT.patch similarity index 89% rename from buildroot-external/patches/linux/0182-ARM-Allow-to-enable-RT.patch rename to buildroot-external/patches/linux/0181-ARM-Allow-to-enable-RT.patch index 5e195ffd..4e7e0b23 100644 --- a/buildroot-external/patches/linux/0182-ARM-Allow-to-enable-RT.patch +++ b/buildroot-external/patches/linux/0181-ARM-Allow-to-enable-RT.patch @@ -1,7 +1,7 @@ -From 8d5f6219661d511384da4b760677bf38ce0bab05 Mon Sep 17 00:00:00 2001 +From 5730c57b82fb744681d78a88567692c0ed9a3908 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Fri, 11 Oct 2019 13:14:29 +0200 -Subject: [PATCH 182/195] ARM: Allow to enable RT +Subject: [PATCH 181/196] ARM: Allow to enable RT Allow to select RT. @@ -32,5 +32,5 @@ index 2257e98d4df3..ebd0dee6b162 100644 select HAVE_REGS_AND_STACK_ACCESS_API select HAVE_RSEQ -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0183-ARM64-Allow-to-enable-RT.patch b/buildroot-external/patches/linux/0182-ARM64-Allow-to-enable-RT.patch similarity index 81% rename from buildroot-external/patches/linux/0183-ARM64-Allow-to-enable-RT.patch rename to buildroot-external/patches/linux/0182-ARM64-Allow-to-enable-RT.patch index a2eae07a..456c210a 100644 --- a/buildroot-external/patches/linux/0183-ARM64-Allow-to-enable-RT.patch +++ b/buildroot-external/patches/linux/0182-ARM64-Allow-to-enable-RT.patch @@ -1,7 +1,7 @@ -From a7c1824e45d2e11b5bdcde0abe6b7f08b7136d64 Mon Sep 17 00:00:00 2001 +From ae691114a0dfe77423bf7abd96ee684306c49a44 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Fri, 11 Oct 2019 13:14:35 +0200 -Subject: [PATCH 183/195] ARM64: Allow to enable RT +Subject: [PATCH 182/196] ARM64: Allow to enable RT Allow to select RT. @@ -12,7 +12,7 @@ Signed-off-by: Thomas Gleixner 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig -index 6062a52a084f..e216d14fc1a4 100644 +index b5df38c2a006..bc53a9889d03 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -97,6 +97,7 @@ config ARM64 @@ -24,5 +24,5 @@ index 6062a52a084f..e216d14fc1a4 100644 select ARCH_WANT_COMPAT_IPC_PARSE_VERSION if COMPAT select ARCH_WANT_DEFAULT_BPF_JIT -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0184-powerpc-traps-Use-PREEMPT_RT.patch b/buildroot-external/patches/linux/0183-powerpc-traps-Use-PREEMPT_RT.patch similarity index 88% rename from buildroot-external/patches/linux/0184-powerpc-traps-Use-PREEMPT_RT.patch rename to buildroot-external/patches/linux/0183-powerpc-traps-Use-PREEMPT_RT.patch index 84e07e1d..a0513a5f 100644 --- a/buildroot-external/patches/linux/0184-powerpc-traps-Use-PREEMPT_RT.patch +++ b/buildroot-external/patches/linux/0183-powerpc-traps-Use-PREEMPT_RT.patch @@ -1,7 +1,7 @@ -From bdae34bf522135c76ae4d9d68d3256fd7ac03eb8 Mon Sep 17 00:00:00 2001 +From a303cfb9c906ab9c094f55e559bcbe43513320cc Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Fri, 26 Jul 2019 11:30:49 +0200 -Subject: [PATCH 184/195] powerpc: traps: Use PREEMPT_RT +Subject: [PATCH 183/196] powerpc: traps: Use PREEMPT_RT Add PREEMPT_RT to the backtrace if enabled. @@ -12,7 +12,7 @@ Signed-off-by: Thomas Gleixner 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c -index fe3f720c9cd6..1b88d2cd55c7 100644 +index 2de7f6dcd32b..739f5b179a7f 100644 --- a/arch/powerpc/kernel/traps.c +++ b/arch/powerpc/kernel/traps.c @@ -261,12 +261,17 @@ static char *get_mmu_str(void) @@ -35,5 +35,5 @@ index fe3f720c9cd6..1b88d2cd55c7 100644 IS_ENABLED(CONFIG_SMP) ? (" NR_CPUS=" __stringify(NR_CPUS)) : "", debug_pagealloc_enabled() ? " DEBUG_PAGEALLOC" : "", -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0185-powerpc-pseries-iommu-Use-a-locallock-instead-local_.patch b/buildroot-external/patches/linux/0184-powerpc-pseries-iommu-Use-a-locallock-instead-local_.patch similarity index 96% rename from buildroot-external/patches/linux/0185-powerpc-pseries-iommu-Use-a-locallock-instead-local_.patch rename to buildroot-external/patches/linux/0184-powerpc-pseries-iommu-Use-a-locallock-instead-local_.patch index 0c99b471..fdd7b5b4 100644 --- a/buildroot-external/patches/linux/0185-powerpc-pseries-iommu-Use-a-locallock-instead-local_.patch +++ b/buildroot-external/patches/linux/0184-powerpc-pseries-iommu-Use-a-locallock-instead-local_.patch @@ -1,7 +1,7 @@ -From 7bebfd91b5c1ce683ce9551572cacd4c0ea9f163 Mon Sep 17 00:00:00 2001 +From b074c5c18bf3edadcc64cf2258eb6022acca20b0 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Tue, 26 Mar 2019 18:31:54 +0100 -Subject: [PATCH 185/195] powerpc/pseries/iommu: Use a locallock instead +Subject: [PATCH 184/196] powerpc/pseries/iommu: Use a locallock instead local_irq_save() The locallock protects the per-CPU variable tce_page. The function @@ -113,5 +113,5 @@ index 496e16c588aa..05cee07aafbb 100644 } -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0186-powerpc-pseries-Select-the-generic-memory-allocator.patch b/buildroot-external/patches/linux/0185-powerpc-pseries-Select-the-generic-memory-allocator.patch similarity index 87% rename from buildroot-external/patches/linux/0186-powerpc-pseries-Select-the-generic-memory-allocator.patch rename to buildroot-external/patches/linux/0185-powerpc-pseries-Select-the-generic-memory-allocator.patch index 52118184..96ab964b 100644 --- a/buildroot-external/patches/linux/0186-powerpc-pseries-Select-the-generic-memory-allocator.patch +++ b/buildroot-external/patches/linux/0185-powerpc-pseries-Select-the-generic-memory-allocator.patch @@ -1,7 +1,7 @@ -From 9bbd57dfbc2a30c77201f86ecf5401276fd6cc1c Mon Sep 17 00:00:00 2001 +From 338449e3cf2b12f4db5d74b7af789840002944ac Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Thu, 9 Mar 2023 09:13:52 +0100 -Subject: [PATCH 186/195] powerpc/pseries: Select the generic memory allocator. +Subject: [PATCH 185/196] powerpc/pseries: Select the generic memory allocator. The RTAS work area allocator is using the generic memory allocator and as such it must select it. @@ -28,5 +28,5 @@ index 4ebf2ef2845d..381c3be3bec1 100644 select MPIC select OF_DYNAMIC -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0187-powerpc-kvm-Disable-in-kernel-MPIC-emulation-for-PRE.patch b/buildroot-external/patches/linux/0186-powerpc-kvm-Disable-in-kernel-MPIC-emulation-for-PRE.patch similarity index 93% rename from buildroot-external/patches/linux/0187-powerpc-kvm-Disable-in-kernel-MPIC-emulation-for-PRE.patch rename to buildroot-external/patches/linux/0186-powerpc-kvm-Disable-in-kernel-MPIC-emulation-for-PRE.patch index b51261d5..f91b39a7 100644 --- a/buildroot-external/patches/linux/0187-powerpc-kvm-Disable-in-kernel-MPIC-emulation-for-PRE.patch +++ b/buildroot-external/patches/linux/0186-powerpc-kvm-Disable-in-kernel-MPIC-emulation-for-PRE.patch @@ -1,7 +1,7 @@ -From b403719d3dd55d2e9e79129e7631195b2cf339f5 Mon Sep 17 00:00:00 2001 +From 3fb485b6b806aae2621e9377e634ad771817a239 Mon Sep 17 00:00:00 2001 From: Bogdan Purcareata Date: Fri, 24 Apr 2015 15:53:13 +0000 -Subject: [PATCH 187/195] powerpc/kvm: Disable in-kernel MPIC emulation for +Subject: [PATCH 186/196] powerpc/kvm: Disable in-kernel MPIC emulation for PREEMPT_RT While converting the openpic emulation code to use a raw_spinlock_t enables @@ -41,5 +41,5 @@ index 902611954200..2f188137f830 100644 select HAVE_KVM_IRQFD select HAVE_KVM_IRQ_ROUTING -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0188-powerpc-stackprotector-work-around-stack-guard-init-.patch b/buildroot-external/patches/linux/0187-powerpc-stackprotector-work-around-stack-guard-init-.patch similarity index 89% rename from buildroot-external/patches/linux/0188-powerpc-stackprotector-work-around-stack-guard-init-.patch rename to buildroot-external/patches/linux/0187-powerpc-stackprotector-work-around-stack-guard-init-.patch index 1a727b98..74fef41f 100644 --- a/buildroot-external/patches/linux/0188-powerpc-stackprotector-work-around-stack-guard-init-.patch +++ b/buildroot-external/patches/linux/0187-powerpc-stackprotector-work-around-stack-guard-init-.patch @@ -1,7 +1,7 @@ -From eb2f865b7bbab87ce130d572ba8661331b5a1c0c Mon Sep 17 00:00:00 2001 +From 30a2093bd995e7c7ecf709b2c0f1f074f387c02e Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Tue, 26 Mar 2019 18:31:29 +0100 -Subject: [PATCH 188/195] powerpc/stackprotector: work around stack-guard init +Subject: [PATCH 187/196] powerpc/stackprotector: work around stack-guard init from atomic This is invoked from the secondary CPU in atomic context. On x86 we use @@ -35,5 +35,5 @@ index 283c34647856..4727f40052dd 100644 #ifdef CONFIG_PPC64 get_paca()->canary = canary; -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0189-POWERPC-Allow-to-enable-RT.patch b/buildroot-external/patches/linux/0188-POWERPC-Allow-to-enable-RT.patch similarity index 89% rename from buildroot-external/patches/linux/0189-POWERPC-Allow-to-enable-RT.patch rename to buildroot-external/patches/linux/0188-POWERPC-Allow-to-enable-RT.patch index 799f837d..3aa1ec3a 100644 --- a/buildroot-external/patches/linux/0189-POWERPC-Allow-to-enable-RT.patch +++ b/buildroot-external/patches/linux/0188-POWERPC-Allow-to-enable-RT.patch @@ -1,7 +1,7 @@ -From 782170dd883522d0fe388832baa1a0dbe0f2c933 Mon Sep 17 00:00:00 2001 +From 3ecc6489ba0c2468bb6315ee0c5a960135dd9948 Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Fri, 11 Oct 2019 13:14:41 +0200 -Subject: [PATCH 189/195] POWERPC: Allow to enable RT +Subject: [PATCH 188/196] POWERPC: Allow to enable RT Allow to select RT. @@ -32,5 +32,5 @@ index 2fe51e0ad637..116444551038 100644 select HAVE_SETUP_PER_CPU_AREA if PPC64 select HAVE_SOFTIRQ_ON_OWN_STACK -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0190-RISC-V-Probe-misaligned-access-speed-in-parallel.patch b/buildroot-external/patches/linux/0189-RISC-V-Probe-misaligned-access-speed-in-parallel.patch similarity index 97% rename from buildroot-external/patches/linux/0190-RISC-V-Probe-misaligned-access-speed-in-parallel.patch rename to buildroot-external/patches/linux/0189-RISC-V-Probe-misaligned-access-speed-in-parallel.patch index e7a03cd3..e23f4d5e 100644 --- a/buildroot-external/patches/linux/0190-RISC-V-Probe-misaligned-access-speed-in-parallel.patch +++ b/buildroot-external/patches/linux/0189-RISC-V-Probe-misaligned-access-speed-in-parallel.patch @@ -1,7 +1,7 @@ -From 9747a52ed0528b14853d01393623ee0fefdab86d Mon Sep 17 00:00:00 2001 +From fcebbd53d7a303f69abe31831600de29f6f977d4 Mon Sep 17 00:00:00 2001 From: Evan Green Date: Mon, 6 Nov 2023 14:58:55 -0800 -Subject: [PATCH 190/195] RISC-V: Probe misaligned access speed in parallel +Subject: [PATCH 189/196] RISC-V: Probe misaligned access speed in parallel Probing for misaligned access speed takes about 0.06 seconds. On a system with 64 cores, doing this in smp_callin() means it's done @@ -192,5 +192,5 @@ index 1b8da4e40a4d..2cb5e651412c 100644 if (has_vector()) { if (riscv_v_setup_vsize()) -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0191-riscv-add-PREEMPT_AUTO-support.patch b/buildroot-external/patches/linux/0190-riscv-add-PREEMPT_AUTO-support.patch similarity index 93% rename from buildroot-external/patches/linux/0191-riscv-add-PREEMPT_AUTO-support.patch rename to buildroot-external/patches/linux/0190-riscv-add-PREEMPT_AUTO-support.patch index 524ac4da..dd7c6e4a 100644 --- a/buildroot-external/patches/linux/0191-riscv-add-PREEMPT_AUTO-support.patch +++ b/buildroot-external/patches/linux/0190-riscv-add-PREEMPT_AUTO-support.patch @@ -1,7 +1,7 @@ -From 64b55012eaf605f78bec3781fcbdabde21434b73 Mon Sep 17 00:00:00 2001 +From a36621ff3b891fd2d4576e5353d477cefbabf237 Mon Sep 17 00:00:00 2001 From: Jisheng Zhang Date: Tue, 31 Oct 2023 22:35:20 +0800 -Subject: [PATCH 191/195] riscv: add PREEMPT_AUTO support +Subject: [PATCH 190/196] riscv: add PREEMPT_AUTO support riscv has switched to GENERIC_ENTRY, so adding PREEMPT_AUTO is as simple as adding TIF_ARCH_RESCHED_LAZY related definitions and enabling @@ -47,5 +47,5 @@ index d18ce0113ca1..e18710fe51f0 100644 #define _TIF_WORK_MASK \ (_TIF_NOTIFY_RESUME | _TIF_SIGPENDING | _TIF_NEED_RESCHED | \ -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0192-riscv-allow-to-enable-RT.patch b/buildroot-external/patches/linux/0191-riscv-allow-to-enable-RT.patch similarity index 85% rename from buildroot-external/patches/linux/0192-riscv-allow-to-enable-RT.patch rename to buildroot-external/patches/linux/0191-riscv-allow-to-enable-RT.patch index 8b548432..e70946cd 100644 --- a/buildroot-external/patches/linux/0192-riscv-allow-to-enable-RT.patch +++ b/buildroot-external/patches/linux/0191-riscv-allow-to-enable-RT.patch @@ -1,7 +1,7 @@ -From 9db65c6ffbee448240a463a8e1bde3929e782ccb Mon Sep 17 00:00:00 2001 +From 8b017481f5f60b69406c4b86993f3b5e4ced7c0b Mon Sep 17 00:00:00 2001 From: Jisheng Zhang Date: Tue, 31 Oct 2023 22:35:21 +0800 -Subject: [PATCH 192/195] riscv: allow to enable RT +Subject: [PATCH 191/196] riscv: allow to enable RT Now, it's ready to enable RT on riscv. @@ -24,5 +24,5 @@ index 75ac6cfbc0b0..64dfdcc616be 100644 select ARCH_USE_QUEUED_RWLOCKS select ARCH_USES_CFI_TRAPS if CFI_CLANG -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0193-sysfs-Add-sys-kernel-realtime-entry.patch b/buildroot-external/patches/linux/0192-sysfs-Add-sys-kernel-realtime-entry.patch similarity index 91% rename from buildroot-external/patches/linux/0193-sysfs-Add-sys-kernel-realtime-entry.patch rename to buildroot-external/patches/linux/0192-sysfs-Add-sys-kernel-realtime-entry.patch index 32471511..1aca5de2 100644 --- a/buildroot-external/patches/linux/0193-sysfs-Add-sys-kernel-realtime-entry.patch +++ b/buildroot-external/patches/linux/0192-sysfs-Add-sys-kernel-realtime-entry.patch @@ -1,7 +1,7 @@ -From 855ffd2663890bc6bc178afef658a5354129a508 Mon Sep 17 00:00:00 2001 +From 87f288040fbfe4a786f20a77539de3578bbb56a6 Mon Sep 17 00:00:00 2001 From: Clark Williams Date: Sat, 30 Jul 2011 21:55:53 -0500 -Subject: [PATCH 193/195] sysfs: Add /sys/kernel/realtime entry +Subject: [PATCH 192/196] sysfs: Add /sys/kernel/realtime entry Add a /sys/kernel entry to indicate that the kernel is a realtime kernel. @@ -50,5 +50,5 @@ index 1d4bc493b2f4..486c68c11bbe 100644 NULL }; -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0193-arch-riscv-check_unaligned_acces-don-t-alloc-page-fo.patch b/buildroot-external/patches/linux/0193-arch-riscv-check_unaligned_acces-don-t-alloc-page-fo.patch new file mode 100644 index 00000000..8de25074 --- /dev/null +++ b/buildroot-external/patches/linux/0193-arch-riscv-check_unaligned_acces-don-t-alloc-page-fo.patch @@ -0,0 +1,35 @@ +From 08ed37dd249e396e8a529ceec3f2e132e19ba80b Mon Sep 17 00:00:00 2001 +From: Clark Williams +Date: Mon, 5 Feb 2024 14:04:38 -0600 +Subject: [PATCH 193/196] arch/riscv: check_unaligned_acces(): don't alloc page + for check + +Drop the alloc_pages() call since the page is passed in as +a parameter and the alloced page will not be freed. + +Reported-by: Sebastian Andrzej Siewior +Signed-off-by: Clark Williams +--- + arch/riscv/kernel/cpufeature.c | 6 ------ + 1 file changed, 6 deletions(-) + +diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c +index c3208b21e678..32a21e9a0fff 100644 +--- a/arch/riscv/kernel/cpufeature.c ++++ b/arch/riscv/kernel/cpufeature.c +@@ -575,12 +575,6 @@ static int check_unaligned_access(void *param) + if (per_cpu(misaligned_access_speed, cpu) != RISCV_HWPROBE_MISALIGNED_UNKNOWN) + return; + +- page = alloc_pages(GFP_NOWAIT, get_order(MISALIGNED_BUFFER_SIZE)); +- if (!page) { +- pr_warn("Can't alloc pages to measure memcpy performance"); +- return; +- } +- + /* Make an unaligned destination buffer. */ + dst = (void *)((unsigned long)page_address(page) | 0x1); + /* Unalign src as well, but differently (off by 1 + 2 = 3). */ +-- +2.43.2 + diff --git a/buildroot-external/patches/linux/0194-Revert-preempt-Put-preempt_enable-within-an-instrume.patch b/buildroot-external/patches/linux/0194-Revert-preempt-Put-preempt_enable-within-an-instrume.patch new file mode 100644 index 00000000..460f1fad --- /dev/null +++ b/buildroot-external/patches/linux/0194-Revert-preempt-Put-preempt_enable-within-an-instrume.patch @@ -0,0 +1,47 @@ +From 0a90e6ae0b76d909c97ebfbc532e72f9d6b4d16f Mon Sep 17 00:00:00 2001 +From: Clark Williams +Date: Tue, 6 Feb 2024 12:17:19 -0600 +Subject: [PATCH 194/196] Revert "preempt: Put preempt_enable() within an + instrumentation*() section." + +This reverts commit cc3d27d9fdeddcb82db3ea176a44a5509e70eb1c. + +This code was fixed in 6.6 stable so no need for it in the RT series + +Reported-by: Sebastian Andrzej Siewior +Signed-off-by: Clark Williams +--- + include/linux/preempt.h | 10 ++-------- + 1 file changed, 2 insertions(+), 8 deletions(-) + +diff --git a/include/linux/preempt.h b/include/linux/preempt.h +index cd16f0330fba..9aa6358a1a16 100644 +--- a/include/linux/preempt.h ++++ b/include/linux/preempt.h +@@ -230,21 +230,15 @@ do { \ + #define preempt_enable() \ + do { \ + barrier(); \ +- if (unlikely(preempt_count_dec_and_test())) { \ +- instrumentation_begin(); \ ++ if (unlikely(preempt_count_dec_and_test())) \ + __preempt_schedule(); \ +- instrumentation_end(); \ +- } \ + } while (0) + + #define preempt_enable_notrace() \ + do { \ + barrier(); \ +- if (unlikely(__preempt_count_dec_and_test())) { \ +- instrumentation_begin(); \ ++ if (unlikely(__preempt_count_dec_and_test())) \ + __preempt_schedule_notrace(); \ +- instrumentation_end(); \ +- } \ + } while (0) + + #define preempt_check_resched() \ +-- +2.43.2 + diff --git a/buildroot-external/patches/linux/0194-Add-localversion-for-RT-release.patch b/buildroot-external/patches/linux/0195-Add-localversion-for-RT-release.patch similarity index 75% rename from buildroot-external/patches/linux/0194-Add-localversion-for-RT-release.patch rename to buildroot-external/patches/linux/0195-Add-localversion-for-RT-release.patch index c7772cf8..29a1d366 100644 --- a/buildroot-external/patches/linux/0194-Add-localversion-for-RT-release.patch +++ b/buildroot-external/patches/linux/0195-Add-localversion-for-RT-release.patch @@ -1,7 +1,7 @@ -From bf78c8aae9271304287c262ef948eae2fa2adb63 Mon Sep 17 00:00:00 2001 +From 91f87aceb8ecbff103edbbd401f2b8425877bf16 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Fri, 8 Jul 2011 20:25:16 +0200 -Subject: [PATCH 194/195] Add localversion for -RT release +Subject: [PATCH 195/196] Add localversion for -RT release Signed-off-by: Thomas Gleixner --- @@ -17,5 +17,5 @@ index 000000000000..483ad771f201 @@ -0,0 +1 @@ +-rt19 -- -2.43.0 +2.43.2 diff --git a/buildroot-external/patches/linux/0195-Linux-6.6.14-rt21-REBASE.patch b/buildroot-external/patches/linux/0196-Linux-6.6.18-rt23-REBASE.patch similarity index 59% rename from buildroot-external/patches/linux/0195-Linux-6.6.14-rt21-REBASE.patch rename to buildroot-external/patches/linux/0196-Linux-6.6.18-rt23-REBASE.patch index 34dc7512..c34208fe 100644 --- a/buildroot-external/patches/linux/0195-Linux-6.6.14-rt21-REBASE.patch +++ b/buildroot-external/patches/linux/0196-Linux-6.6.18-rt23-REBASE.patch @@ -1,7 +1,7 @@ -From 84cfb96b291ed0453ea713e24952cf7c8606b8d2 Mon Sep 17 00:00:00 2001 +From c555a4a82622332317acf008d7e04b8b3d8eaacd Mon Sep 17 00:00:00 2001 From: Clark Williams -Date: Sun, 28 Jan 2024 15:19:30 -0600 -Subject: [PATCH 195/195] Linux 6.6.14-rt21 REBASE +Date: Tue, 27 Feb 2024 17:13:28 -0600 +Subject: [PATCH 196/196] Linux 6.6.18-rt23 REBASE Signed-off-by: Clark Williams --- @@ -9,12 +9,12 @@ Signed-off-by: Clark Williams 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localversion-rt b/localversion-rt -index 483ad771f201..6c6cde1c29e3 100644 +index 483ad771f201..9a218ca23053 100644 --- a/localversion-rt +++ b/localversion-rt @@ -1 +1 @@ --rt19 -+-rt21 ++-rt23 -- -2.43.0 +2.43.2