diff --git a/debian/.gitignore b/debian/.gitignore index d040fa3c7..d1501eea7 100644 --- a/debian/.gitignore +++ b/debian/.gitignore @@ -1,6 +1,7 @@ -!/patches +!/patches* !*.patch !*.diff +!series *.debhelper* *.local *.pyc diff --git a/debian/README.Debian b/debian/README.Debian index e10cd2ff3..e96ac0b06 100644 --- a/debian/README.Debian +++ b/debian/README.Debian @@ -6,7 +6,9 @@ Patches Debian applies small changes to the kernel source. These are split up into separated patches addressing individual problems. Each of the patch files contains a description and mentions the author. The patches can be found -at https://anonscm.debian.org/cgit/kernel/linux.git/tree/debian/patches. +in the source package or at +https://sources.debian.org/src/linux//debian/patches/ +(with the package version substituted). Config Files ------------ @@ -51,6 +53,7 @@ See the Files-Excluded field in debian/copyright. Further information ------------------- -Debian Linux Kernel Handbook: https://kernel-handbook.alioth.debian.org - or debian-kernel-handbook package +Debian Linux Kernel Handbook: + https://kernel-team.pages.debian.net/kernel-handbook/ + or debian-kernel-handbook package Debian Wiki: https://wiki.debian.org/DebianKernel diff --git a/debian/README.source b/debian/README.source index 06fe9115c..b3d0b2dc2 100644 --- a/debian/README.source +++ b/debian/README.source @@ -98,8 +98,8 @@ features/ and debian/. Patches are in the standard kernel patch format (unified diff to be applied with patch -p1) and generally have DEP-3 headers. -The series file 'series' is used for all configurations and a series -file 'series-' is used for each optional featureset. +For each optional featureset there is an additional patch directory +debian/patches-. If you want to generate a source tree with all patches applied, run make -f debian/rules source diff --git a/debian/bin/check-patches.sh b/debian/bin/check-patches.sh index 5885412f8..093649bd1 100755 --- a/debian/bin/check-patches.sh +++ b/debian/bin/check-patches.sh @@ -2,8 +2,10 @@ TMPDIR=$(mktemp -d) trap "rm -rf $TMPDIR" EXIT -sed '/^#/d; /^[[:space:]]*$/d; /^X /d; s/^+ //; s,^,debian/patches/,' debian/patches/series* | sort -u > $TMPDIR/used -find debian/patches ! -path '*/series*' -type f -name "*.diff" -o -name "*.patch" -printf "%p\n" | sort > $TMPDIR/avail +for patchdir in debian/patches*; do + sed '/^#/d; /^[[:space:]]*$/d; /^X /d; s/^+ //; s,^,'"$patchdir"'/,' "$patchdir"/series +done | sort -u > $TMPDIR/used +find debian/patches* ! -path '*/series' -type f -name "*.diff" -o -name "*.patch" -printf "%p\n" | sort > $TMPDIR/avail echo "Used patches" echo "==============" cat $TMPDIR/used diff --git a/debian/patches/features/all/aufs4/gen-patch b/debian/bin/genpatch-aufs similarity index 92% rename from debian/patches/features/all/aufs4/gen-patch rename to debian/bin/genpatch-aufs index f37ec0b2c..603c85420 100755 --- a/debian/patches/features/all/aufs4/gen-patch +++ b/debian/bin/genpatch-aufs @@ -24,7 +24,7 @@ for patch in aufs4-{base,mmap,standalone}.patch; do echo "$origin_line" echo "$bug_line" echo - echo 'Patch headers added by debian/patches/features/all/aufs4/gen-patch' + echo 'Patch headers added by debian/bin/genpatch-aufs' echo sed 's/^+.*EXPORT_SYMBOL\b/&_GPL/' < "$aufs_dir"/"$patch" } > debian/patches/features/all/aufs4/"$patch" diff --git a/debian/patches/features/all/lockdown/genpatch.py b/debian/bin/genpatch-lockdown similarity index 100% rename from debian/patches/features/all/lockdown/genpatch.py rename to debian/bin/genpatch-lockdown diff --git a/debian/patches/features/all/rt/genpatch.py b/debian/bin/genpatch-rt similarity index 90% rename from debian/patches/features/all/rt/genpatch.py rename to debian/bin/genpatch-rt index eb3792d35..00329c4a8 100755 --- a/debian/patches/features/all/rt/genpatch.py +++ b/debian/bin/genpatch-rt @@ -3,9 +3,8 @@ import codecs, errno, io, os, os.path, re, shutil, subprocess, sys, tempfile def main(source, version=None): - patch_dir = 'debian/patches' - rt_patch_dir = 'features/all/rt' - series_name = 'series-rt' + patch_dir = 'debian/patches-rt' + series_name = 'series' old_series = set() new_series = set() @@ -19,10 +18,8 @@ def main(source, version=None): pass with open(os.path.join(patch_dir, series_name), 'w') as series_fh: - # Add directory prefix to all filenames. # Add Origin to all patch headers. def add_patch(name, source_patch, origin): - name = os.path.join(rt_patch_dir, name) path = os.path.join(patch_dir, name) try: os.unlink(path) @@ -37,8 +34,6 @@ def main(source, version=None): patch.write('\n') in_header = False patch.write(line) - series_fh.write(name) - series_fh.write('\n') new_series.add(name) if os.path.isdir(os.path.join(source, '.git')): @@ -60,13 +55,12 @@ def main(source, version=None): args = ['git', 'format-patch', 'v%s..v%s-rebase' % (up_ver, version)] format_proc = subprocess.Popen(args, - cwd=os.path.join(patch_dir, rt_patch_dir), + cwd=patch_dir, env=env, stdout=subprocess.PIPE) with io.open(format_proc.stdout.fileno(), encoding='utf-8') as pipe: for line in pipe: name = line.strip('\n') - with open(os.path.join(patch_dir, rt_patch_dir, name)) as \ - source_patch: + with open(os.path.join(patch_dir, name)) as source_patch: patch_from = source_patch.readline() match = re.match(r'From ([0-9a-f]{40}) ', patch_from) assert match @@ -115,9 +109,7 @@ def main(source, version=None): if name != '' and name[0] != '#': with open(os.path.join(source_dir, name)) as source_patch: add_patch(name, source_patch, origin) - else: - # Leave comments and empty lines unchanged - series_fh.write(line) + series_fh.write(line) finally: shutil.rmtree(temp_dir) diff --git a/debian/bin/test-patches b/debian/bin/test-patches index 98ddd9f93..cefcefab8 100755 --- a/debian/bin/test-patches +++ b/debian/bin/test-patches @@ -64,25 +64,24 @@ if [ "${version%a~test}" = "$version" ]; then dch -v "$version" --distribution UNRELEASED "Testing patches $*" fi -# Make new directory for patches -mkdir -p debian/patches/test - # Ignore user's .quiltrc alias quilt='quilt --quiltrc -' # Try to clean up any previous test patches if [ "$featureset" = none ]; then + patchdir=debian/patches while patch="$(quilt next 2>/dev/null || quilt top 2>/dev/null)" && \ [ "${patch#test/}" != "$patch" ]; do quilt delete -r "$patch" done else - sed -i '/^test\//d' debian/patches/series-${featureset} + patchdir=debian/patches-${featureset} + sed -i '/^test\//d' $patchdir/series fi # Prepare a new directory for the patches -rm -rf debian/patches/test/ -mkdir debian/patches/test +rm -rf $patchdir/test/ +mkdir $patchdir/test # Regenerate control and included rules rm debian/control debian/rules.gen diff --git a/debian/bin/uscan-hook b/debian/bin/uscan-hook deleted file mode 100755 index b0631c64e..000000000 --- a/debian/bin/uscan-hook +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -e - -# This script is invoked by uscan after downloading a new tarball - -if [ "x$1" != "x--upstream-version" -o $# != 3 ]; then - echo >&2 "invalid arguments: $*" - exit 2 -fi - -version="$2" -filename="$3" - -upstream_tarball="$(readlink -f "$filename")" -rm "$filename" -debian/bin/genorig.py --override-version "$version" "$upstream_tarball" - -dch -v "$version-1" 'New upstream release' - -debian/rules orig diff --git a/debian/changelog b/debian/changelog index f9237e6ae..ba02aaadb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -74,6 +74,370 @@ linux (4.19~rc2-1~exp1) experimental; urgency=medium -- Ben Hutchings Mon, 03 Sep 2018 21:34:41 +0100 +linux (4.18.8-1) unstable; urgency=medium + + * New upstream stable update: + https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.18.7 + - rcu: Make expedited GPs handle CPU 0 being offline + - net: 6lowpan: fix reserved space for single frames + - net: mac802154: tx: expand tailroom if necessary + - 9p/net: Fix zero-copy path in the 9p virtio transport + - spi: pxa2xx: Add support for Intel Ice Lake + - mmc: block: Fix unsupported parallel dispatch of requests + - readahead: stricter check for bdi io_pages + - block: fix infinite loop if the device loses discard capability + - block: blk_init_allocated_queue() set q->fq as NULL in the fail case + - block: really disable runtime-pm for blk-mq + - blkcg: Introduce blkg_root_lookup() + - block: Introduce blk_exit_queue() + - block: Ensure that a request queue is dissociated from the cgroup + controller + - apparmor: fix bad debug check in apparmor_secid_to_secctx() + - dma-buf: Move BUG_ON from _add_shared_fence to _add_shared_inplace + - libertas: fix suspend and resume for SDIO connected cards + - media: Revert "[media] tvp5150: fix pad format frame height" + - [arm64] mailbox: xgene-slimpro: Fix potential NULL pointer dereference + - Replace magic for trusting the secondary keyring with #define + - Fix kexec forbidding kernels signed with keys in the secondary keyring to + boot + - [powerpc*] fadump: handle crash memory ranges array index overflow + - [powerpc*] 64s: Fix page table fragment refcount race vs speculative + references + - [powerpc*] pseries: Fix endianness while restoring of r3 in MCE handler. + - [powerpc*] pkeys: Give all threads control of their key permissions + - [powerpc*] pkeys: Deny read/write/execute by default + - [powerpc*] pkeys: key allocation/deallocation must not change pkey + registers + - [powerpc*] pkeys: Save the pkey registers before fork + - [powerpc*] pkeys: Fix calculation of total pkeys. + - [powerpc*] pkeys: Preallocate execute-only key + - [powerpc*] nohash: fix pte_access_permitted() + - [powerpc64] ftrace: Include ftrace.h needed for enable/disable calls + - [powerpc*] powernv/pci: Work around races in PCI bridge enabling + - cxl: Fix wrong comparison in cxl_adapter_context_get() + - ocxl: Fix page fault handler in case of fault on dying process + - IB/mlx5: Honor cnt_set_id_valid flag instead of set_id + - IB/mlx5: Fix leaking stack memory to userspace + - IB/srpt: Fix srpt_cm_req_recv() error path (1/2) + - IB/srpt: Fix srpt_cm_req_recv() error path (2/2) + - IB/srpt: Support HCAs with more than two ports + - RDMA/mlx5: Fix shift overflow in mlx5_ib_create_wq + - ib_srpt: Fix a use-after-free in srpt_close_ch() + - ib_srpt: Fix a use-after-free in __srpt_close_all_ch() + - RDMA/rxe: Set wqe->status correctly if an unexpected response is received + - 9p: fix multiple NULL-pointer-dereferences + - fs/9p/xattr.c: catch the error of p9_client_clunk when setting xattr + failed + - 9p/virtio: fix off-by-one error in sg list bounds check + - net/9p/client.c: version pointer uninitialized + - net/9p/trans_fd.c: fix race-condition by flushing workqueue before the + kfree() + - dm integrity: change 'suspending' variable from bool to int + - dm thin: stop no_space_timeout worker when switching to write-mode + - dm cache metadata: save in-core policy_hint_size to on-disk superblock + - dm cache metadata: set dirty on all cache blocks after a crash + - dm crypt: don't decrease device limits + - dm writecache: fix a crash due to reading past end of dirty_bitmap + - uart: fix race between uart_put_char() and uart_shutdown() + - [x86] Drivers: hv: vmbus: Fix the offer_in_progress in + vmbus_process_offer() + - [x86] Drivers: hv: vmbus: Reset the channel callback in + vmbus_onoffer_rescind() + - extcon: Release locking when sending the notification of connector state + - [x86] vmw_balloon: fix inflation of 64-bit GFNs + - [x86] vmw_balloon: do not use 2MB without batching + - [x86] vmw_balloon: VMCI_DOORBELL_SET does not check status + - [x86] vmw_balloon: fix VMCI use when balloon built into kernel + - [armhf] rtc: omap: fix resource leak in registration error path + - [armhf] rtc: omap: fix potential crash on power off + - tracing: Do not call start/stop() functions when tracing_on does not + change + - tracing/blktrace: Fix to allow setting same value + - printk/tracing: Do not trace printk_nmi_enter() + - uprobes: Use synchronize_rcu() not synchronize_sched() + - mfd: hi655x: Fix regmap area declared size for hi655x + - ovl: fix wrong use of impure dir cache in ovl_iterate() + - ACPICA: AML Parser: skip opcodes that open a scope upon parse failure + - ACPICA: Clear status of all events when entering sleep states + - drivers/block/zram/zram_drv.c: fix bug storing backing_dev + - sched: idle: Avoid retaining the tick when it has been stopped + - cpuidle: menu: Handle stopped tick more aggressively + - cpufreq: governor: Avoid accessing invalid governor_data + - PM / sleep: wakeup: Fix build error caused by missing SRCU support + - ALSA: ac97: fix device initialization in the compat layer + - ALSA: ac97: fix check of pm_runtime_get_sync failure + - ALSA: ac97: fix unbalanced pm_runtime_enable + - [x86, arm64] i2c: designware: Re-init controllers with pm_disabled set on + resume + - [x86] KVM: VMX: fixes for vmentry_l1d_flush module parameter + - [powerpc*] KVM: Book3S: Fix guest DMA when guest partially backed by + THP pages + - block, bfq: return nbytes and not zero from struct cftype .write() method + - pnfs/blocklayout: off by one in bl_map_stripe() + - nfsd: fix leaked file lock with nfs exported overlayfs + - NFSv4 client live hangs after live data migration recovery + - NFSv4: Fix locking in pnfs_generic_recover_commit_reqs + - NFSv4: Fix a sleep in atomic context in nfs4_callback_sequence() + - [armhf] ARM: dts: am57xx-idk: Enable dual role for USB2 port + - [armhf] pwm: omap-dmtimer: Return -EPROBE_DEFER if no dmtimer platform + data + - mm/tlb: Remove tlb_remove_table() non-concurrent condition + - [x86] iommu/vt-d: Add definitions for PFSID + - [x86] iommu/vt-d: Fix dev iotlb pfsid use + - sys: don't hold uts_sem while accessing userspace memory + - ubifs: Fix memory leak in lprobs self-check + - Revert "UBIFS: Fix potential integer overflow in allocation" + - ubifs: Check data node size before truncate + - ubifs: xattr: Don't operate on deleted inodes + - ubifs: Fix directory size calculation for symlinks + - ubifs: Fix synced_i_size calculation for xattr inodes + - [armhf] pwm: tiehrpwm: Don't use emulation mode bits to control PWM output + - [armhf] pwm: tiehrpwm: Fix disabling of output of PWMs + - fb: fix lost console when the user unplugs a USB adapter + - udlfb: fix semaphore value leak + - udlfb: fix display corruption of the last line + - udlfb: don't switch if we are switching to the same videomode + - udlfb: set optimal write delay + - udlfb: make a local copy of fb_ops + - udlfb: handle allocation failure + - udlfb: set line_length in dlfb_ops_set_par + - getxattr: use correct xattr length + - libnvdimm: Use max contiguous area for namespace size + - libnvdimm: fix ars_status output length calculation + - bcache: release dc->writeback_lock properly in bch_writeback_thread() + - cap_inode_getsecurity: use d_find_any_alias() instead of d_find_alias() + - mm, dev_pagemap: Do not clear ->mapping on final put + - perf auxtrace: Fix queue resize + - [x86] crypto: vmx - Fix sleep-in-atomic bugs + - [x86] crypto: aesni - Use unaligned loads from gcm_context_data + - [arm64] crypto: arm64/sm4-ce - check for the right CPU feature bit + - fs/quota: Fix spectre gadget in do_quotactl + - udf: Fix mounting of Win7 created UDF filesystems + - cpuidle: menu: Retain tick when shallow state is selected + - [arm64] mm: always enable CONFIG_HOLES_IN_ZONE + https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.18.8 + - act_ife: fix a potential use-after-free + - ipv4: tcp: send zero IPID for RST and ACK sent in SYN-RECV and TIME-WAIT + state + - net: sched: Fix memory exposure from short TCA_U32_SEL + - qlge: Fix netdev features configuration. + - r8152: disable RX aggregation on new Dell TB16 dock + - tcp: do not restart timewait timer on rst reception + - vti6: remove !skb->ignore_df check from vti6_xmit() + - act_ife: move tcfa_lock down to where necessary + - act_ife: fix a potential deadlock + - net: sched: action_ife: take reference to meta module + - bnxt_en: Clean up unused functions. + - bnxt_en: Do not adjust max_cp_rings by the ones used by RDMA. + - net/sched: act_pedit: fix dump of extended layered op + - tipc: fix a missing rhashtable_walk_exit() + - [x86] hv_netvsc: Fix a deadlock by getting rtnl lock earlier in + netvsc_probe() + - tipc: fix the big/little endian issue in tipc_dest + - sctp: remove useless start_fail from sctp_ht_iter in proc + - erspan: set erspan_ver to 1 by default when adding an erspan dev + - ipv6: don't get lwtstate twice in ip6_rt_copy_init() + - net/ipv6: init ip6 anycast rt->dst.input as ip6_input + - net/ipv6: Only update MTU metric if it set + - net/ipv6: Put lwtstate when destroying fib6_info + - net/mlx5: Fix SQ offset in QPs with small RQ + - r8169: set RxConfig after tx/rx is enabled for RTL8169sb/8110sb devices + - [armhf,arm64] Revert "net: stmmac: Do not keep rearming the coalesce + timer in stmmac_xmit" + - ip6_vti: fix creating fallback tunnel device for vti6 + - ip6_vti: fix a null pointer deference when destroy vti6 tunnel + - nfp: wait for posted reconfigs when disabling the device + - sctp: hold transport before accessing its asoc in sctp_transport_get_next + - vhost: correctly check the iova range when waking virtqueue + - [x86] hv_netvsc: ignore devices that are not PCI + - cifs: check if SMB2 PDU size has been padded and suppress the warning + - hfsplus: don't return 0 when fill_super() failed + - hfs: prevent crash on exit from failed search + - sunrpc: Don't use stack buffer with scatterlist + - fork: don't copy inconsistent signal handler state to child + - fs/proc/vmcore.c: hide vmcoredd_mmap_dumps() for nommu builds + - reiserfs: change j_timestamp type to time64_t + - [armhf,arm64] iommu/rockchip: Handle errors returned from PM framework + - hfsplus: fix NULL dereference in hfsplus_lookup() (CVE-2018-14617) + - [armhf,arm64] iommu/rockchip: Move irq request past pm_runtime_enable + - fs/proc/kcore.c: use __pa_symbol() for KCORE_TEXT list entries + - fat: validate ->i_start before using + - workqueue: skip lockdep wq dependency in cancel_work_sync() + - workqueue: re-add lockdep dependencies for flushing + - scripts: modpost: check memory allocation results + - apparmor: fix an error code in __aa_create_ns() + - virtio: pci-legacy: Validate queue pfn + - [x86] mce: Add notifier_block forward declaration + - i2c: core: ACPI: Make acpi_gsb_i2c_read_bytes() check i2c_transfer return + value + - IB/hfi1: Invalid NUMA node information can cause a divide by zero + - [armhf,arm64] pwm: meson: Fix mux clock names + - [powerpc*] topology: Get topology for shared processors at boot + - mm/fadvise.c: fix signed overflow UBSAN complaint + - mm: make DEFERRED_STRUCT_PAGE_INIT explicitly depend on SPARSEMEM + - fs/dcache.c: fix kmemcheck splat at take_dentry_name_snapshot() + - [x86] platform: intel_punit_ipc: fix build errors + - bpf, sockmap: fix map elem deletion race with smap_stop_sock + - tcp, ulp: fix leftover icsk_ulp_ops preventing sock from reattach + - bpf, sockmap: fix sock_map_ctx_update_elem race with exist/noexist + - net/xdp: Fix suspicious RCU usage warning + - bpf, sockmap: fix leakage of smap_psock_map_entry + - netfilter: ip6t_rpfilter: set F_IFACE for linklocal addresses + - [s390x] kdump: Fix memleak in nt_vmcoreinfo + - ipvs: fix race between ip_vs_conn_new() and ip_vs_del_dest() + - mfd: sm501: Set coherent_dma_mask when creating subdevices + - netfilter: x_tables: do not fail xt_alloc_table_info too easilly + - [x86] platform: asus-nb-wmi: Add keymap entry for lid flip action on + UX360 + - netfilter: fix memory leaks on netlink_dump_start error + - tcp, ulp: add alias for all ulp modules + - ubi: Initialize Fastmap checkmapping correctly + - ACPICA: ACPICA: add status check for acpi_hw_read before assigning return + value + - [arm*] perf arm spe: Fix uninitialized record error variable + - [arm64] net: hns3: Fix for command format parsing error in + hclge_is_all_function_id_zero + - block: don't warn for flush on read-only device + - [arm64] net: hns3: Fix for phy link issue when using marvell phy driver + - PCI: Match Root Port's MPS to endpoint's MPSS as necessary + - drm/amd/display: Guard against null crtc in CRC IRQ + - perf tools: Check for null when copying nsinfo. + - f2fs: avoid race between zero_range and background GC + - f2fs: fix avoid race between truncate and background GC + - net/9p/trans_fd.c: fix race by holding the lock + - net/9p: fix error path of p9_virtio_probe + - f2fs: fix to clear PG_checked flag in set_page_dirty() + - [armhf,arm64] pinctrl: axp209: Fix NULL pointer dereference after + allocation + - bpf: fix bpffs non-array map seq_show issue + - [powerpc*] uaccess: Enable get_user(u64, *p) on 32-bit + - [powerpc*] Fix size calculation using resource_size() + - [powerpc*] perf probe powerpc: Fix trace event post-processing + - block: bvec_nr_vecs() returns value for wrong slab + - brcmfmac: fix brcmf_wiphy_wowl_params() NULL pointer dereference + - [s390x] dasd: fix hanging offline processing due to canceled worker + - [s390x] dasd: fix panic for failed online processing + - ACPI / scan: Initialize status to ACPI_STA_DEFAULT + - blk-mq: count the hctx as active before allocating tag + - scsi: aic94xx: fix an error code in aic94xx_init() + - NFSv4: Fix error handling in nfs4_sp4_select_mode() + - Input: do not use WARN() in input_alloc_absinfo() + - xen/balloon: fix balloon initialization for PVH Dom0 + - [armhf] PCI: mvebu: Fix I/O space end address calculation + - dm kcopyd: avoid softlockup in run_complete_job + - [x86] staging: comedi: ni_mio_common: fix subdevice flags for PFI + subdevice + - ASoC: rt5677: Fix initialization of rt5677_of_match.data + - [armhf] iommu/omap: Fix cache flushes on L2 table entries + - selinux: cleanup dentry and inodes on error in selinuxfs + - RDS: IB: fix 'passing zero to ERR_PTR()' warning + - cfq: Suppress compiler warnings about comparisons + - smb3: fix reset of bytes read and written stats + - CIFS: fix memory leak and remove dead code + - SMB3: Number of requests sent should be displayed for SMB3 not just CIFS + - smb3: if server does not support posix do not allow posix mount option + - [powerpcspe] platforms/85xx: fix t1042rdb_diu.c build errors & warning + - [powerpc*] 64s: Make rfi_flush_fallback a little more robust + - [powerpc*] pseries: Avoid using the size greater than RTAS_ERROR_LOG_MAX. + - [armhf,arm64] clk: rockchip: Add pclk_rkpwm_pmu to PMU critical clocks in + rk3399 + - drm/amd/display: Read back max backlight value at boot + - [x86] KVM: vmx: track host_state.loaded using a loaded_vmcs pointer + - [x86] kvm: nVMX: Fix fault vector for VMX operation at CPL > 0 + - [armhf] drm/etnaviv: fix crash in GPU suspend when init failed due to + buffer placement + - btrfs: Exit gracefully when chunk map cannot be inserted to the tree + - btrfs: replace: Reset on-disk dev stats value after replace + - btrfs: fix in-memory value of total_devices after seed device deletion + - btrfs: relocation: Only remove reloc rb_trees if reloc control has been + initialized (CVE-2018-14609) + - btrfs: tree-checker: Detect invalid and empty essential trees + (CVE-2018-14612) + - btrfs: check-integrity: Fix NULL pointer dereference for degraded mount + - btrfs: lift uuid_mutex to callers of btrfs_open_devices + - btrfs: Don't remove block group that still has pinned down bytes + - btrfs: Fix a C compliance issue + - [armhf,arm64] rockchip: Force CONFIG_PM on Rockchip systems + - btrfs: do btrfs_free_stale_devices outside of device_list_add + - btrfs: extend locked section when adding a new device in device_list_add + - btrfs: rename local devices for fs_devices in btrfs_free_stale_devices( + - btrfs: use device_list_mutex when removing stale devices + - btrfs: lift uuid_mutex to callers of btrfs_scan_one_device + - btrfs: lift uuid_mutex to callers of btrfs_parse_early_options + - btrfs: reorder initialization before the mount locks uuid_mutex + - btrfs: fix mount and ioctl device scan ioctl race + - [x86] drm/i915/lpe: Mark LPE audio runtime pm as "no callbacks" + - [x86] drm/i915: Nuke the LVDS lid notifier + - [x86] drm/i915: Increase LSPCON timeout + - [x86] drm/i915: Free write_buf that we allocated with kzalloc. + - drm/amdgpu: update uvd_v6_0_ring_vm_funcs to use new nop packet + - drm/amdgpu: fix a reversed condition + - drm/amdgpu: Fix RLC safe mode test in gfx_v9_0_enter_rlc_safe_mode + - drm/amd/pp: Convert voltage unit in mV*4 to mV on CZ/ST + - drm/amd/powerplay: fixed uninitialized value + - drm/amd/pp/Polaris12: Fix a chunk of registers missed to program + - drm/edid: Quirk Vive Pro VR headset non-desktop. + - drm/edid: Add 6 bpc quirk for SDC panel in Lenovo B50-80 + - drm/amd/display: fix type of variable + - drm/amd/display: Don't share clk source between DP and HDMI + - drm/amd/display: update clk for various HDMI color depths + - drm/amd/display: Use requested HDMI aspect ratio + - drm/amd/display: Report non-DP display as disconnected without EDID + - [armhf,arm64] drm/rockchip: lvds: add missing of_node_put + - [armhf,arm64] drm/rockchip: vop: split out core clock enablement into + separate functions + - [armhf,arm64] drm/rockchip: vop: fix irq disabled after vop driver probed + - drm/amd/display: Pass connector id when executing VBIOS CT + - drm/amd/display: Check if clock source in use before disabling + - drm/amdgpu: update tmr mc address + - drm/amdgpu:add tmr mc address into amdgpu_firmware_info + - drm/amdgpu:add new firmware id for VCN + - drm/amdgpu:add VCN support in PSP driver + - drm/amdgpu:add VCN booting with firmware loaded by PSP + - drm/amdgpu: fix incorrect use of fcheck + - drm/amdgpu: fix incorrect use of drm_file->pid + - [x86] drm/i915: Re-apply "Perform link quality check, unconditionally + during long pulse" + - uapi/linux/keyctl.h: don't use C++ reserved keyword as a struct member + name + - mm: respect arch_dup_mmap() return value + - [x86] drm/i915: set DP Main Stream Attribute for color range on DDI + platforms + - [i386] tsc: Prevent result truncation on 32bit + - drm/amdgpu: Keep track of amount of pinned CPU visible VRAM + - drm/amdgpu: Make pin_size values atomic + - drm/amdgpu: Warn and update pin_size values when destroying a pinned BO + - drm/amdgpu: Don't warn on destroying a pinned BO + - debugobjects: Make stack check warning more informative + - [i386] pae: use 64 bit atomic xchg function in native_ptep_get_and_clear + - [x86] xen: don't write ptes directly in 32-bit PV guests + - [x86] kvm: Set highest physical address bits in non-present/reserved SPTEs + - [x86] kvm: avoid unused variable warning + - HID: redragon: fix num lock and caps lock LEDs + + [ Ben Hutchings ] + * [x86] wireless: Enable R8822BE as module (Closes: #908330) + * Move all patch generation scripts to debian/bin + * [rt] genpatch-rt: Store patches and series file in debian/patches-rt + * linux-headers: Stop linking the doc directory, which is not binNMU-safe + * debian/copyright: Simplify exclusions to work with mk-origtargz + * debian/{watch,bin/uscan-hook}: Drop uscan hook in favour of uupdate + * debian/watch: Add options for signature validation + * README.Debian: Update URLs that were pointing to Alioth + * README.Debian: Describe where to find patches for a specific version + * Revert "i40e: Add kconfig dependency to ensure cmpxchg64() is available" + + [ Salvatore Bonaccorso ] + * mac80211: don't update the PM state of a peer upon a multicast frame + (Closes: #887045, #886292) + + [ Romain Perier ] + * [x86] Enable TI TPS6598x USB Power Delivery controller family + * [x86] crypto: ccp: add timeout support in the SEV command (Closes: #908248) + * [rt] Update to 4.18.7-rt5 + + -- Ben Hutchings Tue, 18 Sep 2018 03:05:01 +0100 + linux (4.18.6-1) unstable; urgency=medium * New upstream stable update: diff --git a/debian/config/kernelarch-x86/config b/debian/config/kernelarch-x86/config index 77bc4e8c0..1e541601d 100644 --- a/debian/config/kernelarch-x86/config +++ b/debian/config/kernelarch-x86/config @@ -1617,6 +1617,11 @@ CONFIG_RTL8192U=m ## CONFIG_RTL8723BS=m +## +## file: drivers/staging/rtlwifi/Kconfig +## +CONFIG_R8822BE=m + ## ## file: drivers/staging/rts5208/Kconfig ## @@ -1733,6 +1738,7 @@ CONFIG_USB_SL811_CS=m ## CONFIG_TYPEC=m CONFIG_TYPEC_TCPM=m +CONFIG_TYPEC_TPS6598X=m ## ## file: drivers/usb/typec/fusb302/Kconfig diff --git a/debian/copyright b/debian/copyright index 90f0c4ec7..7911879aa 100644 --- a/debian/copyright +++ b/debian/copyright @@ -5,7 +5,7 @@ Files-Excluded: Documentation/netlabel/draft-ietf-cipso-ipsecurity-01.txt arch/powerpc/sysdev/micropatch.c drivers/media/usb/dvb-usb/af9005-script.h drivers/media/i2c/vs6624.c - drivers/net/appletalk/cops*.[ch] + drivers/net/appletalk/cops* drivers/video/fbdev/nvidia drivers/video/fbdev/riva Comment: diff --git a/debian/patches/features/all/rt/0001-ARM-at91-add-TCB-registers-definitions.patch b/debian/patches-rt/0001-ARM-at91-add-TCB-registers-definitions.patch similarity index 99% rename from debian/patches/features/all/rt/0001-ARM-at91-add-TCB-registers-definitions.patch rename to debian/patches-rt/0001-ARM-at91-add-TCB-registers-definitions.patch index fb7223fa6..c13bd25e7 100644 --- a/debian/patches/features/all/rt/0001-ARM-at91-add-TCB-registers-definitions.patch +++ b/debian/patches-rt/0001-ARM-at91-add-TCB-registers-definitions.patch @@ -1,7 +1,7 @@ From: Alexandre Belloni Date: Wed, 18 Apr 2018 12:51:38 +0200 Subject: [PATCH 1/6] ARM: at91: add TCB registers definitions -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Add registers and bits definitions for the timer counter blocks found on Atmel ARM SoCs. diff --git a/debian/patches/features/all/rt/0001-Split-IRQ-off-and-zone-lock-while-freeing-pages-from.patch b/debian/patches-rt/0001-Split-IRQ-off-and-zone-lock-while-freeing-pages-from.patch similarity index 99% rename from debian/patches/features/all/rt/0001-Split-IRQ-off-and-zone-lock-while-freeing-pages-from.patch rename to debian/patches-rt/0001-Split-IRQ-off-and-zone-lock-while-freeing-pages-from.patch index df8ea44e1..1eeec05d4 100644 --- a/debian/patches/features/all/rt/0001-Split-IRQ-off-and-zone-lock-while-freeing-pages-from.patch +++ b/debian/patches-rt/0001-Split-IRQ-off-and-zone-lock-while-freeing-pages-from.patch @@ -2,7 +2,7 @@ From: Peter Zijlstra Date: Mon, 28 May 2018 15:24:20 +0200 Subject: [PATCH 1/4] Split IRQ-off and zone->lock while freeing pages from PCP list #1 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Split the IRQ-off section while accessing the PCP list from zone->lock while freeing pages. diff --git a/debian/patches/features/all/rt/0001-bdi-use-refcount_t-for-reference-counting-instead-at.patch b/debian/patches-rt/0001-bdi-use-refcount_t-for-reference-counting-instead-at.patch similarity index 99% rename from debian/patches/features/all/rt/0001-bdi-use-refcount_t-for-reference-counting-instead-at.patch rename to debian/patches-rt/0001-bdi-use-refcount_t-for-reference-counting-instead-at.patch index ec5915b19..c914464de 100644 --- a/debian/patches/features/all/rt/0001-bdi-use-refcount_t-for-reference-counting-instead-at.patch +++ b/debian/patches-rt/0001-bdi-use-refcount_t-for-reference-counting-instead-at.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Mon, 7 May 2018 16:51:09 +0200 Subject: [PATCH] bdi: use refcount_t for reference counting instead atomic_t -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental diff --git a/debian/patches/features/all/rt/0001-mm-list_lru-use-list_lru_walk_one-in-list_lru_walk_n.patch b/debian/patches-rt/0001-mm-list_lru-use-list_lru_walk_one-in-list_lru_walk_n.patch similarity index 97% rename from debian/patches/features/all/rt/0001-mm-list_lru-use-list_lru_walk_one-in-list_lru_walk_n.patch rename to debian/patches-rt/0001-mm-list_lru-use-list_lru_walk_one-in-list_lru_walk_n.patch index d12bdf32f..4844b9577 100644 --- a/debian/patches/features/all/rt/0001-mm-list_lru-use-list_lru_walk_one-in-list_lru_walk_n.patch +++ b/debian/patches-rt/0001-mm-list_lru-use-list_lru_walk_one-in-list_lru_walk_n.patch @@ -2,7 +2,7 @@ From: Sebastian Andrzej Siewior Date: Tue, 3 Jul 2018 12:56:19 +0200 Subject: [PATCH 1/4] mm/list_lru: use list_lru_walk_one() in list_lru_walk_node() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz list_lru_walk_node() invokes __list_lru_walk_one() with -1 as the memcg_idx parameter. The same can be achieved by list_lru_walk_one() and diff --git a/debian/patches/features/all/rt/0001-mm-workingset-remove-local_irq_disable-from-count_sh.patch b/debian/patches-rt/0001-mm-workingset-remove-local_irq_disable-from-count_sh.patch similarity index 97% rename from debian/patches/features/all/rt/0001-mm-workingset-remove-local_irq_disable-from-count_sh.patch rename to debian/patches-rt/0001-mm-workingset-remove-local_irq_disable-from-count_sh.patch index 5a12d5ad7..6e8359113 100644 --- a/debian/patches/features/all/rt/0001-mm-workingset-remove-local_irq_disable-from-count_sh.patch +++ b/debian/patches-rt/0001-mm-workingset-remove-local_irq_disable-from-count_sh.patch @@ -2,7 +2,7 @@ From: Sebastian Andrzej Siewior Date: Fri, 22 Jun 2018 10:48:51 +0200 Subject: [PATCH 1/3] mm: workingset: remove local_irq_disable() from count_shadow_nodes() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz In commit 0c7c1bed7e13 ("mm: make counting of list_lru_one::nr_items lockless") the diff --git a/debian/patches/features/all/rt/0002-Split-IRQ-off-and-zone-lock-while-freeing-pages-from.patch b/debian/patches-rt/0002-Split-IRQ-off-and-zone-lock-while-freeing-pages-from.patch similarity index 99% rename from debian/patches/features/all/rt/0002-Split-IRQ-off-and-zone-lock-while-freeing-pages-from.patch rename to debian/patches-rt/0002-Split-IRQ-off-and-zone-lock-while-freeing-pages-from.patch index c5310b0f7..f314ceb66 100644 --- a/debian/patches/features/all/rt/0002-Split-IRQ-off-and-zone-lock-while-freeing-pages-from.patch +++ b/debian/patches-rt/0002-Split-IRQ-off-and-zone-lock-while-freeing-pages-from.patch @@ -2,7 +2,7 @@ From: Peter Zijlstra Date: Mon, 28 May 2018 15:24:21 +0200 Subject: [PATCH 2/4] Split IRQ-off and zone->lock while freeing pages from PCP list #2 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Split the IRQ-off section while accessing the PCP list from zone->lock while freeing pages. diff --git a/debian/patches/features/all/rt/0002-clocksource-drivers-Add-a-new-driver-for-the-Atmel-A.patch b/debian/patches-rt/0002-clocksource-drivers-Add-a-new-driver-for-the-Atmel-A.patch similarity index 99% rename from debian/patches/features/all/rt/0002-clocksource-drivers-Add-a-new-driver-for-the-Atmel-A.patch rename to debian/patches-rt/0002-clocksource-drivers-Add-a-new-driver-for-the-Atmel-A.patch index 9227ca371..1c7fcd6ac 100644 --- a/debian/patches/features/all/rt/0002-clocksource-drivers-Add-a-new-driver-for-the-Atmel-A.patch +++ b/debian/patches-rt/0002-clocksource-drivers-Add-a-new-driver-for-the-Atmel-A.patch @@ -2,7 +2,7 @@ From: Alexandre Belloni Date: Wed, 18 Apr 2018 12:51:39 +0200 Subject: [PATCH 2/6] clocksource/drivers: Add a new driver for the Atmel ARM TC blocks -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Add a driver for the Atmel Timer Counter Blocks. This driver provides a clocksource and two clockevent devices. diff --git a/debian/patches/features/all/rt/0002-drivers-md-raid5-Use-irqsave-variant-of-atomic_dec_a.patch b/debian/patches-rt/0002-drivers-md-raid5-Use-irqsave-variant-of-atomic_dec_a.patch similarity index 97% rename from debian/patches/features/all/rt/0002-drivers-md-raid5-Use-irqsave-variant-of-atomic_dec_a.patch rename to debian/patches-rt/0002-drivers-md-raid5-Use-irqsave-variant-of-atomic_dec_a.patch index fa38a8e9c..e1f280345 100644 --- a/debian/patches/features/all/rt/0002-drivers-md-raid5-Use-irqsave-variant-of-atomic_dec_a.patch +++ b/debian/patches-rt/0002-drivers-md-raid5-Use-irqsave-variant-of-atomic_dec_a.patch @@ -2,7 +2,7 @@ From: Anna-Maria Gleixner Date: Fri, 4 May 2018 17:45:32 +0200 Subject: [PATCH 2/3] drivers/md/raid5: Use irqsave variant of atomic_dec_and_lock() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The irqsave variant of atomic_dec_and_lock handles irqsave/restore when taking/releasing the spin lock. With this variant the call of diff --git a/debian/patches/features/all/rt/0002-mm-list_lru-Move-locking-from-__list_lru_walk_one-to.patch b/debian/patches-rt/0002-mm-list_lru-Move-locking-from-__list_lru_walk_one-to.patch similarity index 98% rename from debian/patches/features/all/rt/0002-mm-list_lru-Move-locking-from-__list_lru_walk_one-to.patch rename to debian/patches-rt/0002-mm-list_lru-Move-locking-from-__list_lru_walk_one-to.patch index 4f383a3b9..c9c73ee8e 100644 --- a/debian/patches/features/all/rt/0002-mm-list_lru-Move-locking-from-__list_lru_walk_one-to.patch +++ b/debian/patches-rt/0002-mm-list_lru-Move-locking-from-__list_lru_walk_one-to.patch @@ -2,7 +2,7 @@ From: Sebastian Andrzej Siewior Date: Tue, 3 Jul 2018 13:06:07 +0200 Subject: [PATCH 2/4] mm/list_lru: Move locking from __list_lru_walk_one() to its caller -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Move the locking inside __list_lru_walk_one() to its caller. This is a preparation step in order to introduce list_lru_walk_one_irq() which diff --git a/debian/patches/features/all/rt/0002-mm-workingset-make-shadow_lru_isolate-use-locking-su.patch b/debian/patches-rt/0002-mm-workingset-make-shadow_lru_isolate-use-locking-su.patch similarity index 97% rename from debian/patches/features/all/rt/0002-mm-workingset-make-shadow_lru_isolate-use-locking-su.patch rename to debian/patches-rt/0002-mm-workingset-make-shadow_lru_isolate-use-locking-su.patch index c9f4b1296..d961adc46 100644 --- a/debian/patches/features/all/rt/0002-mm-workingset-make-shadow_lru_isolate-use-locking-su.patch +++ b/debian/patches-rt/0002-mm-workingset-make-shadow_lru_isolate-use-locking-su.patch @@ -2,7 +2,7 @@ From: Sebastian Andrzej Siewior Date: Fri, 22 Jun 2018 11:43:35 +0200 Subject: [PATCH 2/3] mm: workingset: make shadow_lru_isolate() use locking suffix -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz shadow_lru_isolate() disables interrupts and acquires a lock. It could use spin_lock_irq() instead. It also uses local_irq_enable() while it diff --git a/debian/patches/features/all/rt/0002-userns-use-refcount_t-for-reference-counting-instead.patch b/debian/patches-rt/0002-userns-use-refcount_t-for-reference-counting-instead.patch similarity index 98% rename from debian/patches/features/all/rt/0002-userns-use-refcount_t-for-reference-counting-instead.patch rename to debian/patches-rt/0002-userns-use-refcount_t-for-reference-counting-instead.patch index 4e56ddb71..0de4fb5da 100644 --- a/debian/patches/features/all/rt/0002-userns-use-refcount_t-for-reference-counting-instead.patch +++ b/debian/patches-rt/0002-userns-use-refcount_t-for-reference-counting-instead.patch @@ -2,7 +2,7 @@ From: Sebastian Andrzej Siewior Date: Mon, 7 May 2018 17:09:42 +0200 Subject: [PATCH] userns: use refcount_t for reference counting instead atomic_t -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz refcount_t type and corresponding API should be used instead of atomic_t when the variable is used as a reference counter. This allows to avoid accidental diff --git a/debian/patches/features/all/rt/0003-clocksource-drivers-atmel-pit-make-option-silent.patch b/debian/patches-rt/0003-clocksource-drivers-atmel-pit-make-option-silent.patch similarity index 97% rename from debian/patches/features/all/rt/0003-clocksource-drivers-atmel-pit-make-option-silent.patch rename to debian/patches-rt/0003-clocksource-drivers-atmel-pit-make-option-silent.patch index 3775e7ef2..b63dd91ca 100644 --- a/debian/patches/features/all/rt/0003-clocksource-drivers-atmel-pit-make-option-silent.patch +++ b/debian/patches-rt/0003-clocksource-drivers-atmel-pit-make-option-silent.patch @@ -1,7 +1,7 @@ From: Alexandre Belloni Date: Wed, 18 Apr 2018 12:51:40 +0200 Subject: [PATCH 3/6] clocksource/drivers: atmel-pit: make option silent -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz To conform with the other option, make the ATMEL_PIT option silent so it can be selected from the platform diff --git a/debian/patches/features/all/rt/0003-drivers-md-raid5-Do-not-disable-irq-on-release_inact.patch b/debian/patches-rt/0003-drivers-md-raid5-Do-not-disable-irq-on-release_inact.patch similarity index 97% rename from debian/patches/features/all/rt/0003-drivers-md-raid5-Do-not-disable-irq-on-release_inact.patch rename to debian/patches-rt/0003-drivers-md-raid5-Do-not-disable-irq-on-release_inact.patch index 65f55e2e0..4dbdfbfca 100644 --- a/debian/patches/features/all/rt/0003-drivers-md-raid5-Do-not-disable-irq-on-release_inact.patch +++ b/debian/patches-rt/0003-drivers-md-raid5-Do-not-disable-irq-on-release_inact.patch @@ -2,7 +2,7 @@ From: Anna-Maria Gleixner Date: Fri, 4 May 2018 17:45:33 +0200 Subject: [PATCH 3/3] drivers/md/raid5: Do not disable irq on release_inactive_stripe_list() call -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz There is no need to invoke release_inactive_stripe_list() with interrupts disabled. All call sites, except raid5_release_stripe(), unlock diff --git a/debian/patches/features/all/rt/0003-mm-SLxB-change-list_lock-to-raw_spinlock_t.patch b/debian/patches-rt/0003-mm-SLxB-change-list_lock-to-raw_spinlock_t.patch similarity index 99% rename from debian/patches/features/all/rt/0003-mm-SLxB-change-list_lock-to-raw_spinlock_t.patch rename to debian/patches-rt/0003-mm-SLxB-change-list_lock-to-raw_spinlock_t.patch index 69559278e..3f2bcd3d1 100644 --- a/debian/patches/features/all/rt/0003-mm-SLxB-change-list_lock-to-raw_spinlock_t.patch +++ b/debian/patches-rt/0003-mm-SLxB-change-list_lock-to-raw_spinlock_t.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Mon, 28 May 2018 15:24:22 +0200 Subject: [PATCH 3/4] mm/SLxB: change list_lock to raw_spinlock_t -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The list_lock is used with used with IRQs off on RT. Make it a raw_spinlock_t otherwise the interrupts won't be disabled on -RT. The locking rules remain diff --git a/debian/patches/features/all/rt/0003-mm-list_lru-Pass-struct-list_lru_node-as-an-argument.patch b/debian/patches-rt/0003-mm-list_lru-Pass-struct-list_lru_node-as-an-argument.patch similarity index 98% rename from debian/patches/features/all/rt/0003-mm-list_lru-Pass-struct-list_lru_node-as-an-argument.patch rename to debian/patches-rt/0003-mm-list_lru-Pass-struct-list_lru_node-as-an-argument.patch index 66b477815..b6732b4a7 100644 --- a/debian/patches/features/all/rt/0003-mm-list_lru-Pass-struct-list_lru_node-as-an-argument.patch +++ b/debian/patches-rt/0003-mm-list_lru-Pass-struct-list_lru_node-as-an-argument.patch @@ -2,7 +2,7 @@ From: Sebastian Andrzej Siewior Date: Tue, 3 Jul 2018 13:08:56 +0200 Subject: [PATCH 3/4] mm/list_lru: Pass struct list_lru_node as an argument __list_lru_walk_one() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz __list_lru_walk_one() is invoked with struct list_lru *lru, int nid as the first two argument. Those two are only used to retrieve struct diff --git a/debian/patches/features/all/rt/0004-ARM-at91-Implement-clocksource-selection.patch b/debian/patches-rt/0004-ARM-at91-Implement-clocksource-selection.patch similarity index 98% rename from debian/patches/features/all/rt/0004-ARM-at91-Implement-clocksource-selection.patch rename to debian/patches-rt/0004-ARM-at91-Implement-clocksource-selection.patch index 9c5e4cd36..7e0ea6b77 100644 --- a/debian/patches/features/all/rt/0004-ARM-at91-Implement-clocksource-selection.patch +++ b/debian/patches-rt/0004-ARM-at91-Implement-clocksource-selection.patch @@ -1,7 +1,7 @@ From: Alexandre Belloni Date: Wed, 18 Apr 2018 12:51:41 +0200 Subject: [PATCH 4/6] ARM: at91: Implement clocksource selection -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Allow selecting and unselecting the PIT clocksource driver so it doesn't have to be compile when unused. diff --git a/debian/patches/features/all/rt/0004-mm-SLUB-delay-giving-back-empty-slubs-to-IRQ-enabled.patch b/debian/patches-rt/0004-mm-SLUB-delay-giving-back-empty-slubs-to-IRQ-enabled.patch similarity index 99% rename from debian/patches/features/all/rt/0004-mm-SLUB-delay-giving-back-empty-slubs-to-IRQ-enabled.patch rename to debian/patches-rt/0004-mm-SLUB-delay-giving-back-empty-slubs-to-IRQ-enabled.patch index db22d82a0..556eed81c 100644 --- a/debian/patches/features/all/rt/0004-mm-SLUB-delay-giving-back-empty-slubs-to-IRQ-enabled.patch +++ b/debian/patches-rt/0004-mm-SLUB-delay-giving-back-empty-slubs-to-IRQ-enabled.patch @@ -2,7 +2,7 @@ From: Thomas Gleixner Date: Thu, 21 Jun 2018 17:29:19 +0200 Subject: [PATCH 4/4] mm/SLUB: delay giving back empty slubs to IRQ enabled regions -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz __free_slab() is invoked with disabled interrupts which increases the irq-off time while __free_pages() is doing the work. diff --git a/debian/patches/features/all/rt/0004-mm-list_lru-Introduce-list_lru_shrink_walk_irq.patch b/debian/patches-rt/0004-mm-list_lru-Introduce-list_lru_shrink_walk_irq.patch similarity index 99% rename from debian/patches/features/all/rt/0004-mm-list_lru-Introduce-list_lru_shrink_walk_irq.patch rename to debian/patches-rt/0004-mm-list_lru-Introduce-list_lru_shrink_walk_irq.patch index c48ac2aa4..b88968f63 100644 --- a/debian/patches/features/all/rt/0004-mm-list_lru-Introduce-list_lru_shrink_walk_irq.patch +++ b/debian/patches-rt/0004-mm-list_lru-Introduce-list_lru_shrink_walk_irq.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Tue, 3 Jul 2018 13:17:27 +0200 Subject: [PATCH 4/4] mm/list_lru: Introduce list_lru_shrink_walk_irq() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Provide list_lru_shrink_walk_irq() and let it behave like list_lru_walk_one() except that it locks the spinlock with diff --git a/debian/patches/features/all/rt/0005-ARM-configs-at91-use-new-TCB-timer-driver.patch b/debian/patches-rt/0005-ARM-configs-at91-use-new-TCB-timer-driver.patch similarity index 97% rename from debian/patches/features/all/rt/0005-ARM-configs-at91-use-new-TCB-timer-driver.patch rename to debian/patches-rt/0005-ARM-configs-at91-use-new-TCB-timer-driver.patch index be056e000..8ca0704e3 100644 --- a/debian/patches/features/all/rt/0005-ARM-configs-at91-use-new-TCB-timer-driver.patch +++ b/debian/patches-rt/0005-ARM-configs-at91-use-new-TCB-timer-driver.patch @@ -1,7 +1,7 @@ From: Alexandre Belloni Date: Wed, 18 Apr 2018 12:51:42 +0200 Subject: [PATCH 5/6] ARM: configs: at91: use new TCB timer driver -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Unselecting ATMEL_TCLIB switches the TCB timer driver from tcb_clksrc to timer-atmel-tcb. diff --git a/debian/patches/features/all/rt/0005-bdi-Use-irqsave-variant-of-refcount_dec_and_lock.patch b/debian/patches-rt/0005-bdi-Use-irqsave-variant-of-refcount_dec_and_lock.patch similarity index 97% rename from debian/patches/features/all/rt/0005-bdi-Use-irqsave-variant-of-refcount_dec_and_lock.patch rename to debian/patches-rt/0005-bdi-Use-irqsave-variant-of-refcount_dec_and_lock.patch index b296af60a..fbe585332 100644 --- a/debian/patches/features/all/rt/0005-bdi-Use-irqsave-variant-of-refcount_dec_and_lock.patch +++ b/debian/patches-rt/0005-bdi-Use-irqsave-variant-of-refcount_dec_and_lock.patch @@ -1,7 +1,7 @@ From: Anna-Maria Gleixner Date: Wed, 4 Apr 2018 11:43:56 +0200 Subject: [PATCH] bdi: Use irqsave variant of refcount_dec_and_lock() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The irqsave variant of refcount_dec_and_lock handles irqsave/restore when taking/releasing the spin lock. With this variant the call of diff --git a/debian/patches/features/all/rt/0006-ARM-configs-at91-unselect-PIT.patch b/debian/patches-rt/0006-ARM-configs-at91-unselect-PIT.patch similarity index 97% rename from debian/patches/features/all/rt/0006-ARM-configs-at91-unselect-PIT.patch rename to debian/patches-rt/0006-ARM-configs-at91-unselect-PIT.patch index e9047064d..e0519e731 100644 --- a/debian/patches/features/all/rt/0006-ARM-configs-at91-unselect-PIT.patch +++ b/debian/patches-rt/0006-ARM-configs-at91-unselect-PIT.patch @@ -1,7 +1,7 @@ From: Alexandre Belloni Date: Wed, 18 Apr 2018 12:51:43 +0200 Subject: [PATCH 6/6] ARM: configs: at91: unselect PIT -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The PIT is not required anymore to successfully boot and may actually harm in case preempt-rt is used because the PIT interrupt is shared. diff --git a/debian/patches/features/all/rt/0006-userns-Use-irqsave-variant-of-refcount_dec_and_lock.patch b/debian/patches-rt/0006-userns-Use-irqsave-variant-of-refcount_dec_and_lock.patch similarity index 96% rename from debian/patches/features/all/rt/0006-userns-Use-irqsave-variant-of-refcount_dec_and_lock.patch rename to debian/patches-rt/0006-userns-Use-irqsave-variant-of-refcount_dec_and_lock.patch index 317d2e4cd..83535c574 100644 --- a/debian/patches/features/all/rt/0006-userns-Use-irqsave-variant-of-refcount_dec_and_lock.patch +++ b/debian/patches-rt/0006-userns-Use-irqsave-variant-of-refcount_dec_and_lock.patch @@ -1,7 +1,7 @@ From: Anna-Maria Gleixner Date: Wed, 4 Apr 2018 11:43:57 +0200 Subject: [PATCH] userns: Use irqsave variant of refcount_dec_and_lock() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The irqsave variant of refcount_dec_and_lock handles irqsave/restore when taking/releasing the spin lock. With this variant the call of diff --git a/debian/patches/features/all/rt/ARM-enable-irq-in-translation-section-permission-fau.patch b/debian/patches-rt/ARM-enable-irq-in-translation-section-permission-fau.patch similarity index 99% rename from debian/patches/features/all/rt/ARM-enable-irq-in-translation-section-permission-fau.patch rename to debian/patches-rt/ARM-enable-irq-in-translation-section-permission-fau.patch index 17f36dd74..a3520acf6 100644 --- a/debian/patches/features/all/rt/ARM-enable-irq-in-translation-section-permission-fau.patch +++ b/debian/patches-rt/ARM-enable-irq-in-translation-section-permission-fau.patch @@ -1,7 +1,7 @@ From: "Yadi.hu" Date: Wed, 10 Dec 2014 10:32:09 +0800 Subject: ARM: enable irq in translation/section permission fault handlers -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Probably happens on all ARM, with CONFIG_PREEMPT_RT_FULL diff --git a/debian/patches/features/all/rt/Drivers-hv-vmbus-include-header-for-get_irq_regs.patch b/debian/patches-rt/Drivers-hv-vmbus-include-header-for-get_irq_regs.patch similarity index 97% rename from debian/patches/features/all/rt/Drivers-hv-vmbus-include-header-for-get_irq_regs.patch rename to debian/patches-rt/Drivers-hv-vmbus-include-header-for-get_irq_regs.patch index 07ba6cf81..3d7f84d4d 100644 --- a/debian/patches/features/all/rt/Drivers-hv-vmbus-include-header-for-get_irq_regs.patch +++ b/debian/patches-rt/Drivers-hv-vmbus-include-header-for-get_irq_regs.patch @@ -4,7 +4,7 @@ Subject: [PATCH] Drivers: hv: vmbus: include header for get_irq_regs() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz On !RT the header file get_irq_regs() gets pulled in via other header files. On RT it does not and the build fails: diff --git a/debian/patches/features/all/rt/HACK-printk-drop-the-logbuf_lock-more-often.patch b/debian/patches-rt/HACK-printk-drop-the-logbuf_lock-more-often.patch similarity index 98% rename from debian/patches/features/all/rt/HACK-printk-drop-the-logbuf_lock-more-often.patch rename to debian/patches-rt/HACK-printk-drop-the-logbuf_lock-more-often.patch index 2c3322537..21afee898 100644 --- a/debian/patches/features/all/rt/HACK-printk-drop-the-logbuf_lock-more-often.patch +++ b/debian/patches-rt/HACK-printk-drop-the-logbuf_lock-more-often.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Thu, 21 Mar 2013 19:01:05 +0100 Subject: printk: Drop the logbuf_lock more often -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The lock is hold with irgs off. The latency drops 500us+ on my arm bugs with a "full" buffer after executing "dmesg" on the shell. diff --git a/debian/patches/features/all/rt/KVM-arm-arm64-downgrade-preempt_disable-d-region-to-.patch b/debian/patches-rt/KVM-arm-arm64-downgrade-preempt_disable-d-region-to-.patch similarity index 98% rename from debian/patches/features/all/rt/KVM-arm-arm64-downgrade-preempt_disable-d-region-to-.patch rename to debian/patches-rt/KVM-arm-arm64-downgrade-preempt_disable-d-region-to-.patch index 31eecefcc..81f8de2f7 100644 --- a/debian/patches/features/all/rt/KVM-arm-arm64-downgrade-preempt_disable-d-region-to-.patch +++ b/debian/patches-rt/KVM-arm-arm64-downgrade-preempt_disable-d-region-to-.patch @@ -1,7 +1,7 @@ From: Josh Cartwright Date: Thu, 11 Feb 2016 11:54:01 -0600 Subject: KVM: arm/arm64: downgrade preempt_disable()d region to migrate_disable() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz kvm_arch_vcpu_ioctl_run() disables the use of preemption when updating the vgic and timer states to prevent the calling task from migrating to diff --git a/debian/patches/features/all/rt/NFSv4-replace-seqcount_t-with-a-seqlock_t.patch b/debian/patches-rt/NFSv4-replace-seqcount_t-with-a-seqlock_t.patch similarity index 96% rename from debian/patches/features/all/rt/NFSv4-replace-seqcount_t-with-a-seqlock_t.patch rename to debian/patches-rt/NFSv4-replace-seqcount_t-with-a-seqlock_t.patch index d2d4a0d9f..c9b5895ba 100644 --- a/debian/patches/features/all/rt/NFSv4-replace-seqcount_t-with-a-seqlock_t.patch +++ b/debian/patches-rt/NFSv4-replace-seqcount_t-with-a-seqlock_t.patch @@ -5,7 +5,7 @@ Cc: Anna Schumaker , linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de Subject: NFSv4: replace seqcount_t with a seqlock_t -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The raw_write_seqcount_begin() in nfs4_reclaim_open_state() bugs me because it maps to preempt_disable() in -RT which I can't have at this @@ -58,7 +58,7 @@ Signed-off-by: Sebastian Andrzej Siewior --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c -@@ -2811,7 +2811,7 @@ static int _nfs4_open_and_get_state(stru +@@ -2818,7 +2818,7 @@ static int _nfs4_open_and_get_state(stru unsigned int seq; int ret; @@ -67,7 +67,7 @@ Signed-off-by: Sebastian Andrzej Siewior ret = _nfs4_proc_open(opendata, ctx); if (ret != 0) -@@ -2849,7 +2849,7 @@ static int _nfs4_open_and_get_state(stru +@@ -2856,7 +2856,7 @@ static int _nfs4_open_and_get_state(stru if (d_inode(dentry) == state->inode) { nfs_inode_attach_open_context(ctx); diff --git a/debian/patches/features/all/rt/SCSI-libsas-remove-irq-save-in-sas_ata_qc_issue.patch b/debian/patches-rt/SCSI-libsas-remove-irq-save-in-sas_ata_qc_issue.patch similarity index 98% rename from debian/patches/features/all/rt/SCSI-libsas-remove-irq-save-in-sas_ata_qc_issue.patch rename to debian/patches-rt/SCSI-libsas-remove-irq-save-in-sas_ata_qc_issue.patch index ad473c609..0e4033329 100644 --- a/debian/patches/features/all/rt/SCSI-libsas-remove-irq-save-in-sas_ata_qc_issue.patch +++ b/debian/patches-rt/SCSI-libsas-remove-irq-save-in-sas_ata_qc_issue.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Thu, 12 Apr 2018 09:16:22 +0200 Subject: [PATCH] [SCSI] libsas: remove irq save in sas_ata_qc_issue() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz [ upstream commit 2da11d4262639dc0e2fabc6a70886db57af25c43 ] diff --git a/debian/patches/features/all/rt/SCSI-qla2xxx-remove-irq-save-in-qla2x00_poll.patch b/debian/patches-rt/SCSI-qla2xxx-remove-irq-save-in-qla2x00_poll.patch similarity index 97% rename from debian/patches/features/all/rt/SCSI-qla2xxx-remove-irq-save-in-qla2x00_poll.patch rename to debian/patches-rt/SCSI-qla2xxx-remove-irq-save-in-qla2x00_poll.patch index 2a830c0ec..560bb1edf 100644 --- a/debian/patches/features/all/rt/SCSI-qla2xxx-remove-irq-save-in-qla2x00_poll.patch +++ b/debian/patches-rt/SCSI-qla2xxx-remove-irq-save-in-qla2x00_poll.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Thu, 12 Apr 2018 09:55:25 +0200 Subject: [PATCH] [SCSI] qla2xxx: remove irq save in qla2x00_poll() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz [ upstream commit b3a8aa90c46095cbad454eb068bfb5a8eb56d4e3 ] diff --git a/debian/patches/features/all/rt/add_migrate_disable.patch b/debian/patches-rt/add_migrate_disable.patch similarity index 99% rename from debian/patches/features/all/rt/add_migrate_disable.patch rename to debian/patches-rt/add_migrate_disable.patch index 4e57a8b1a..83322d576 100644 --- a/debian/patches/features/all/rt/add_migrate_disable.patch +++ b/debian/patches-rt/add_migrate_disable.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Sat, 27 May 2017 19:02:06 +0200 Subject: kernel/sched/core: add migrate_disable() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz --- include/linux/preempt.h | 23 ++++++++ diff --git a/debian/patches/features/all/rt/apparmor-use-a-locallock-instead-preempt_disable.patch b/debian/patches-rt/apparmor-use-a-locallock-instead-preempt_disable.patch similarity index 98% rename from debian/patches/features/all/rt/apparmor-use-a-locallock-instead-preempt_disable.patch rename to debian/patches-rt/apparmor-use-a-locallock-instead-preempt_disable.patch index 531135b43..a3b3955c9 100644 --- a/debian/patches/features/all/rt/apparmor-use-a-locallock-instead-preempt_disable.patch +++ b/debian/patches-rt/apparmor-use-a-locallock-instead-preempt_disable.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Wed, 11 Oct 2017 17:43:49 +0200 Subject: apparmor: use a locallock instead preempt_disable() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz get_buffers() disables preemption which acts as a lock for the per-CPU variable. Since we can't disable preemption here on RT, a local_lock is diff --git a/debian/patches/features/all/rt/arch-arm64-Add-lazy-preempt-support.patch b/debian/patches-rt/arch-arm64-Add-lazy-preempt-support.patch similarity index 99% rename from debian/patches/features/all/rt/arch-arm64-Add-lazy-preempt-support.patch rename to debian/patches-rt/arch-arm64-Add-lazy-preempt-support.patch index b231207a5..4f435daed 100644 --- a/debian/patches/features/all/rt/arch-arm64-Add-lazy-preempt-support.patch +++ b/debian/patches-rt/arch-arm64-Add-lazy-preempt-support.patch @@ -1,7 +1,7 @@ From: Anders Roxell Date: Thu, 14 May 2015 17:52:17 +0200 Subject: arch/arm64: Add lazy preempt support -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz arm64 is missing support for PREEMPT_RT. The main feature which is lacking is support for lazy preemption. The arch-specific entry code, diff --git a/debian/patches/features/all/rt/arm-convert-boot-lock-to-raw.patch b/debian/patches-rt/arm-convert-boot-lock-to-raw.patch similarity index 99% rename from debian/patches/features/all/rt/arm-convert-boot-lock-to-raw.patch rename to debian/patches-rt/arm-convert-boot-lock-to-raw.patch index 48e05cf9b..1a07273f5 100644 --- a/debian/patches/features/all/rt/arm-convert-boot-lock-to-raw.patch +++ b/debian/patches-rt/arm-convert-boot-lock-to-raw.patch @@ -1,7 +1,7 @@ From: Frank Rowand Date: Mon, 19 Sep 2011 14:51:14 -0700 Subject: arm: Convert arm boot_lock to raw -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The arm boot_lock is used by the secondary processor startup code. The locking task is the idle thread, which has idle->sched_class == &idle_sched_class. diff --git a/debian/patches/features/all/rt/arm-disable-NEON-in-kernel-mode.patch b/debian/patches-rt/arm-disable-NEON-in-kernel-mode.patch similarity index 99% rename from debian/patches/features/all/rt/arm-disable-NEON-in-kernel-mode.patch rename to debian/patches-rt/arm-disable-NEON-in-kernel-mode.patch index 879c4de40..ac5f9b13d 100644 --- a/debian/patches/features/all/rt/arm-disable-NEON-in-kernel-mode.patch +++ b/debian/patches-rt/arm-disable-NEON-in-kernel-mode.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Fri, 1 Dec 2017 10:42:03 +0100 Subject: [PATCH] arm*: disable NEON in kernel mode -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz NEON in kernel mode is used by the crypto algorithms and raid6 code. While the raid6 code looks okay, the crypto algorithms do not: NEON diff --git a/debian/patches/features/all/rt/arm-enable-highmem-for-rt.patch b/debian/patches-rt/arm-enable-highmem-for-rt.patch similarity index 99% rename from debian/patches/features/all/rt/arm-enable-highmem-for-rt.patch rename to debian/patches-rt/arm-enable-highmem-for-rt.patch index d64721443..08c92082c 100644 --- a/debian/patches/features/all/rt/arm-enable-highmem-for-rt.patch +++ b/debian/patches-rt/arm-enable-highmem-for-rt.patch @@ -1,7 +1,7 @@ Subject: arm: Enable highmem for rt From: Thomas Gleixner Date: Wed, 13 Feb 2013 11:03:11 +0100 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz fixup highmem for ARM. diff --git a/debian/patches/features/all/rt/arm-highmem-flush-tlb-on-unmap.patch b/debian/patches-rt/arm-highmem-flush-tlb-on-unmap.patch similarity index 96% rename from debian/patches/features/all/rt/arm-highmem-flush-tlb-on-unmap.patch rename to debian/patches-rt/arm-highmem-flush-tlb-on-unmap.patch index 411b47324..cab3f087d 100644 --- a/debian/patches/features/all/rt/arm-highmem-flush-tlb-on-unmap.patch +++ b/debian/patches-rt/arm-highmem-flush-tlb-on-unmap.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Mon, 11 Mar 2013 21:37:27 +0100 Subject: arm/highmem: Flush tlb on unmap -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The tlb should be flushed on unmap and thus make the mapping entry invalid. This is only done in the non-debug case which does not look diff --git a/debian/patches/features/all/rt/arm-include-definition-for-cpumask_t.patch b/debian/patches-rt/arm-include-definition-for-cpumask_t.patch similarity index 95% rename from debian/patches/features/all/rt/arm-include-definition-for-cpumask_t.patch rename to debian/patches-rt/arm-include-definition-for-cpumask_t.patch index d07fe7383..80dd10157 100644 --- a/debian/patches/features/all/rt/arm-include-definition-for-cpumask_t.patch +++ b/debian/patches-rt/arm-include-definition-for-cpumask_t.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Thu, 22 Dec 2016 17:28:33 +0100 Subject: [PATCH] arm: include definition for cpumask_t -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz This definition gets pulled in by other files. With the (later) split of RCU and spinlock.h it won't compile anymore. diff --git a/debian/patches/features/all/rt/arm-kprobe-replace-patch_lock-to-raw-lock.patch b/debian/patches-rt/arm-kprobe-replace-patch_lock-to-raw-lock.patch similarity index 98% rename from debian/patches/features/all/rt/arm-kprobe-replace-patch_lock-to-raw-lock.patch rename to debian/patches-rt/arm-kprobe-replace-patch_lock-to-raw-lock.patch index a7d396047..d77f412db 100644 --- a/debian/patches/features/all/rt/arm-kprobe-replace-patch_lock-to-raw-lock.patch +++ b/debian/patches-rt/arm-kprobe-replace-patch_lock-to-raw-lock.patch @@ -1,7 +1,7 @@ From: Yang Shi Date: Thu, 10 Nov 2016 16:17:55 -0800 Subject: [PATCH] arm: kprobe: replace patch_lock to raw lock -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz When running kprobe on -rt kernel, the below bug is caught: diff --git a/debian/patches/features/all/rt/arm-preempt-lazy-support.patch b/debian/patches-rt/arm-preempt-lazy-support.patch similarity index 99% rename from debian/patches/features/all/rt/arm-preempt-lazy-support.patch rename to debian/patches-rt/arm-preempt-lazy-support.patch index 9f20bf366..a9ef2e96f 100644 --- a/debian/patches/features/all/rt/arm-preempt-lazy-support.patch +++ b/debian/patches-rt/arm-preempt-lazy-support.patch @@ -1,7 +1,7 @@ Subject: arm: Add support for lazy preemption From: Thomas Gleixner Date: Wed, 31 Oct 2012 12:04:11 +0100 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Implement the arm pieces for lazy preempt. diff --git a/debian/patches/features/all/rt/arm-unwind-use_raw_lock.patch b/debian/patches-rt/arm-unwind-use_raw_lock.patch similarity index 98% rename from debian/patches/features/all/rt/arm-unwind-use_raw_lock.patch rename to debian/patches-rt/arm-unwind-use_raw_lock.patch index 2e4d5f62c..e9d50fb08 100644 --- a/debian/patches/features/all/rt/arm-unwind-use_raw_lock.patch +++ b/debian/patches-rt/arm-unwind-use_raw_lock.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Fri, 20 Sep 2013 14:31:54 +0200 Subject: arm/unwind: use a raw_spin_lock -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Mostly unwind is done with irqs enabled however SLUB may call it with irqs disabled while creating a new SLUB cache. diff --git a/debian/patches/features/all/rt/arm64-KVM-compute_layout-before-altenates-are-applie.patch b/debian/patches-rt/arm64-KVM-compute_layout-before-altenates-are-applie.patch similarity index 98% rename from debian/patches/features/all/rt/arm64-KVM-compute_layout-before-altenates-are-applie.patch rename to debian/patches-rt/arm64-KVM-compute_layout-before-altenates-are-applie.patch index a99c9c01a..fdbc8d419 100644 --- a/debian/patches/features/all/rt/arm64-KVM-compute_layout-before-altenates-are-applie.patch +++ b/debian/patches-rt/arm64-KVM-compute_layout-before-altenates-are-applie.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Thu, 26 Jul 2018 09:13:42 +0200 Subject: [PATCH] arm64: KVM: compute_layout before altenates are applied -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz compute_layout() is invoked as part of an alternative fixup under stop_machine() and needs a sleeping lock as part of get_random_long(). diff --git a/debian/patches/features/all/rt/arm64-fpsimd-use-preemp_disable-in-addition-to-local.patch b/debian/patches-rt/arm64-fpsimd-use-preemp_disable-in-addition-to-local.patch similarity index 99% rename from debian/patches/features/all/rt/arm64-fpsimd-use-preemp_disable-in-addition-to-local.patch rename to debian/patches-rt/arm64-fpsimd-use-preemp_disable-in-addition-to-local.patch index f25bb50a4..18eb2306d 100644 --- a/debian/patches/features/all/rt/arm64-fpsimd-use-preemp_disable-in-addition-to-local.patch +++ b/debian/patches-rt/arm64-fpsimd-use-preemp_disable-in-addition-to-local.patch @@ -2,7 +2,7 @@ From: Sebastian Andrzej Siewior Date: Wed, 25 Jul 2018 14:02:38 +0200 Subject: [PATCH] arm64: fpsimd: use preemp_disable in addition to local_bh_disable() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz In v4.16-RT I noticed a number of warnings from task_fpsimd_load(). The code disables BH and expects that it is not preemptible. On -RT the diff --git a/debian/patches/features/all/rt/at91_dont_enable_disable_clock.patch b/debian/patches-rt/at91_dont_enable_disable_clock.patch similarity index 98% rename from debian/patches/features/all/rt/at91_dont_enable_disable_clock.patch rename to debian/patches-rt/at91_dont_enable_disable_clock.patch index 9654dc1f6..b2167c8d0 100644 --- a/debian/patches/features/all/rt/at91_dont_enable_disable_clock.patch +++ b/debian/patches-rt/at91_dont_enable_disable_clock.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Wed, 09 Mar 2016 10:51:06 +0100 Subject: arm: at91: do not disable/enable clocks in a row -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Currently the driver will disable the clock and enable it one line later if it is switching from periodic mode into one shot. diff --git a/debian/patches/features/all/rt/block-blk-mq-move-blk_queue_usage_counter_release-in.patch b/debian/patches-rt/block-blk-mq-move-blk_queue_usage_counter_release-in.patch similarity index 95% rename from debian/patches/features/all/rt/block-blk-mq-move-blk_queue_usage_counter_release-in.patch rename to debian/patches-rt/block-blk-mq-move-blk_queue_usage_counter_release-in.patch index fb4432448..52fc4239c 100644 --- a/debian/patches/features/all/rt/block-blk-mq-move-blk_queue_usage_counter_release-in.patch +++ b/debian/patches-rt/block-blk-mq-move-blk_queue_usage_counter_release-in.patch @@ -2,7 +2,7 @@ From: Sebastian Andrzej Siewior Date: Tue, 13 Mar 2018 13:49:16 +0100 Subject: [PATCH] block: blk-mq: move blk_queue_usage_counter_release() into process context -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz | BUG: sleeping function called from invalid context at kernel/locking/rtmutex.c:914 | in_atomic(): 1, irqs_disabled(): 0, pid: 255, name: kworker/u257:6 @@ -52,7 +52,7 @@ Signed-off-by: Sebastian Andrzej Siewior --- a/block/blk-core.c +++ b/block/blk-core.c -@@ -959,12 +959,21 @@ void blk_queue_exit(struct request_queue +@@ -965,12 +965,21 @@ void blk_queue_exit(struct request_queue percpu_ref_put(&q->q_usage_counter); } @@ -75,7 +75,7 @@ Signed-off-by: Sebastian Andrzej Siewior } static void blk_rq_timed_out_timer(struct timer_list *t) -@@ -1058,6 +1067,7 @@ struct request_queue *blk_alloc_queue_no +@@ -1064,6 +1073,7 @@ struct request_queue *blk_alloc_queue_no queue_flag_set_unlocked(QUEUE_FLAG_BYPASS, q); init_waitqueue_head(&q->mq_freeze_wq); @@ -83,7 +83,7 @@ Signed-off-by: Sebastian Andrzej Siewior /* * Init percpu_ref in atomic mode so that it's faster to shutdown. -@@ -3939,6 +3949,8 @@ int __init blk_dev_init(void) +@@ -3948,6 +3958,8 @@ int __init blk_dev_init(void) if (!kblockd_workqueue) panic("Failed to create kblockd\n"); diff --git a/debian/patches/features/all/rt/block-mq-don-t-complete-requests-via-IPI.patch b/debian/patches-rt/block-mq-don-t-complete-requests-via-IPI.patch similarity index 98% rename from debian/patches/features/all/rt/block-mq-don-t-complete-requests-via-IPI.patch rename to debian/patches-rt/block-mq-don-t-complete-requests-via-IPI.patch index c51a459db..3cf363281 100644 --- a/debian/patches/features/all/rt/block-mq-don-t-complete-requests-via-IPI.patch +++ b/debian/patches-rt/block-mq-don-t-complete-requests-via-IPI.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Thu, 29 Jan 2015 15:10:08 +0100 Subject: block/mq: don't complete requests via IPI -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The IPI runs in hardirq context and there are sleeping locks. This patch moves the completion into a workqueue. diff --git a/debian/patches/features/all/rt/block-mq-drop-preempt-disable.patch b/debian/patches-rt/block-mq-drop-preempt-disable.patch similarity index 97% rename from debian/patches/features/all/rt/block-mq-drop-preempt-disable.patch rename to debian/patches-rt/block-mq-drop-preempt-disable.patch index 525f40a1c..48097f5bf 100644 --- a/debian/patches/features/all/rt/block-mq-drop-preempt-disable.patch +++ b/debian/patches-rt/block-mq-drop-preempt-disable.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Tue, 14 Jul 2015 14:26:34 +0200 Subject: block/mq: do not invoke preempt_disable() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz preempt_disable() and get_cpu() don't play well together with the sleeping locks it tries to allocate later. diff --git a/debian/patches/features/all/rt/block-mq-use-cpu_light.patch b/debian/patches-rt/block-mq-use-cpu_light.patch similarity index 96% rename from debian/patches/features/all/rt/block-mq-use-cpu_light.patch rename to debian/patches-rt/block-mq-use-cpu_light.patch index 3b99b985b..6f2c4dc0c 100644 --- a/debian/patches/features/all/rt/block-mq-use-cpu_light.patch +++ b/debian/patches-rt/block-mq-use-cpu_light.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Wed, 9 Apr 2014 10:37:23 +0200 Subject: block: mq: use cpu_light() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz there is a might sleep splat because get_cpu() disables preemption and later we grab a lock. As a workaround for this we use get_cpu_light(). diff --git a/debian/patches/features/all/rt/block-use-cpu-chill.patch b/debian/patches-rt/block-use-cpu-chill.patch similarity index 97% rename from debian/patches/features/all/rt/block-use-cpu-chill.patch rename to debian/patches-rt/block-use-cpu-chill.patch index f21859753..092a0bdae 100644 --- a/debian/patches/features/all/rt/block-use-cpu-chill.patch +++ b/debian/patches-rt/block-use-cpu-chill.patch @@ -1,7 +1,7 @@ Subject: block: Use cpu_chill() for retry loops From: Thomas Gleixner Date: Thu, 20 Dec 2012 18:28:26 +0100 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Retry loops on RT might loop forever when the modifying side was preempted. Steven also observed a live lock when there was a diff --git a/debian/patches/features/all/rt/cgroup-tracing-Move-taking-of-spin-lock-out-of-trace.patch b/debian/patches-rt/cgroup-tracing-Move-taking-of-spin-lock-out-of-trace.patch similarity index 99% rename from debian/patches/features/all/rt/cgroup-tracing-Move-taking-of-spin-lock-out-of-trace.patch rename to debian/patches-rt/cgroup-tracing-Move-taking-of-spin-lock-out-of-trace.patch index e99faccf4..b94d6fafa 100644 --- a/debian/patches/features/all/rt/cgroup-tracing-Move-taking-of-spin-lock-out-of-trace.patch +++ b/debian/patches-rt/cgroup-tracing-Move-taking-of-spin-lock-out-of-trace.patch @@ -2,7 +2,7 @@ From: "Steven Rostedt (VMware)" Date: Mon, 9 Jul 2018 17:48:54 -0400 Subject: [PATCH] cgroup/tracing: Move taking of spin lock out of trace event handlers -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz [ Upstream commit e4f8d81c738db6d3ffdabfb8329aa2feaa310699 ] diff --git a/debian/patches/features/all/rt/cgroup-use-irqsave-in-cgroup_rstat_flush_locked.patch b/debian/patches-rt/cgroup-use-irqsave-in-cgroup_rstat_flush_locked.patch similarity index 98% rename from debian/patches/features/all/rt/cgroup-use-irqsave-in-cgroup_rstat_flush_locked.patch rename to debian/patches-rt/cgroup-use-irqsave-in-cgroup_rstat_flush_locked.patch index 8d7dca489..4b5b61e78 100644 --- a/debian/patches/features/all/rt/cgroup-use-irqsave-in-cgroup_rstat_flush_locked.patch +++ b/debian/patches-rt/cgroup-use-irqsave-in-cgroup_rstat_flush_locked.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Tue, 3 Jul 2018 18:19:48 +0200 Subject: [PATCH] cgroup: use irqsave in cgroup_rstat_flush_locked() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz All callers of cgroup_rstat_flush_locked() acquire cgroup_rstat_lock either with spin_lock_irq() or spin_lock_irqsave(). diff --git a/debian/patches/features/all/rt/cgroups-use-simple-wait-in-css_release.patch b/debian/patches-rt/cgroups-use-simple-wait-in-css_release.patch similarity index 99% rename from debian/patches/features/all/rt/cgroups-use-simple-wait-in-css_release.patch rename to debian/patches-rt/cgroups-use-simple-wait-in-css_release.patch index 927cdd7d4..2486ee8ee 100644 --- a/debian/patches/features/all/rt/cgroups-use-simple-wait-in-css_release.patch +++ b/debian/patches-rt/cgroups-use-simple-wait-in-css_release.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Fri, 13 Feb 2015 15:52:24 +0100 Subject: cgroups: use simple wait in css_release() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz To avoid: |BUG: sleeping function called from invalid context at kernel/locking/rtmutex.c:914 diff --git a/debian/patches/features/all/rt/clocksource-tclib-allow-higher-clockrates.patch b/debian/patches-rt/clocksource-tclib-allow-higher-clockrates.patch similarity index 99% rename from debian/patches/features/all/rt/clocksource-tclib-allow-higher-clockrates.patch rename to debian/patches-rt/clocksource-tclib-allow-higher-clockrates.patch index 988d670b1..f15e3b1e2 100644 --- a/debian/patches/features/all/rt/clocksource-tclib-allow-higher-clockrates.patch +++ b/debian/patches-rt/clocksource-tclib-allow-higher-clockrates.patch @@ -1,7 +1,7 @@ From: Benedikt Spranger Date: Mon, 8 Mar 2010 18:57:04 +0100 Subject: clocksource: TCLIB: Allow higher clock rates for clock events -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz As default the TCLIB uses the 32KiHz base clock rate for clock events. Add a compile time selection to allow higher clock resulution. diff --git a/debian/patches/features/all/rt/completion-use-simple-wait-queues.patch b/debian/patches-rt/completion-use-simple-wait-queues.patch similarity index 99% rename from debian/patches/features/all/rt/completion-use-simple-wait-queues.patch rename to debian/patches-rt/completion-use-simple-wait-queues.patch index 735085749..42b2ff85f 100644 --- a/debian/patches/features/all/rt/completion-use-simple-wait-queues.patch +++ b/debian/patches-rt/completion-use-simple-wait-queues.patch @@ -1,7 +1,7 @@ Subject: completion: Use simple wait queues From: Thomas Gleixner Date: Fri, 11 Jan 2013 11:23:51 +0100 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Completions have no long lasting callbacks and therefor do not need the complex waitqueue variant. Use simple waitqueues which reduces the diff --git a/debian/patches/features/all/rt/cond-resched-lock-rt-tweak.patch b/debian/patches-rt/cond-resched-lock-rt-tweak.patch similarity index 95% rename from debian/patches/features/all/rt/cond-resched-lock-rt-tweak.patch rename to debian/patches-rt/cond-resched-lock-rt-tweak.patch index 4855d69f0..ff9af3288 100644 --- a/debian/patches/features/all/rt/cond-resched-lock-rt-tweak.patch +++ b/debian/patches-rt/cond-resched-lock-rt-tweak.patch @@ -1,7 +1,7 @@ Subject: sched: Use the proper LOCK_OFFSET for cond_resched() From: Thomas Gleixner Date: Sun, 17 Jul 2011 22:51:33 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz RT does not increment preempt count when a 'sleeping' spinlock is locked. Update PREEMPT_LOCK_OFFSET for that case. diff --git a/debian/patches/features/all/rt/connector-cn_proc-Protect-send_msg-with-a-local-lock.patch b/debian/patches-rt/connector-cn_proc-Protect-send_msg-with-a-local-lock.patch similarity index 98% rename from debian/patches/features/all/rt/connector-cn_proc-Protect-send_msg-with-a-local-lock.patch rename to debian/patches-rt/connector-cn_proc-Protect-send_msg-with-a-local-lock.patch index a902be04a..a44e8c90d 100644 --- a/debian/patches/features/all/rt/connector-cn_proc-Protect-send_msg-with-a-local-lock.patch +++ b/debian/patches-rt/connector-cn_proc-Protect-send_msg-with-a-local-lock.patch @@ -2,7 +2,7 @@ From: Mike Galbraith Date: Sun, 16 Oct 2016 05:11:54 +0200 Subject: [PATCH] connector/cn_proc: Protect send_msg() with a local lock on RT -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz |BUG: sleeping function called from invalid context at kernel/locking/rtmutex.c:931 |in_atomic(): 1, irqs_disabled(): 0, pid: 31807, name: sleep diff --git a/debian/patches/features/all/rt/cpu-hotplug--Implement-CPU-pinning.patch b/debian/patches-rt/cpu-hotplug--Implement-CPU-pinning.patch similarity index 98% rename from debian/patches/features/all/rt/cpu-hotplug--Implement-CPU-pinning.patch rename to debian/patches-rt/cpu-hotplug--Implement-CPU-pinning.patch index 56227720e..d9a70b7f4 100644 --- a/debian/patches/features/all/rt/cpu-hotplug--Implement-CPU-pinning.patch +++ b/debian/patches-rt/cpu-hotplug--Implement-CPU-pinning.patch @@ -1,7 +1,7 @@ Subject: cpu/hotplug: Implement CPU pinning From: Thomas Gleixner Date: Wed, 19 Jul 2017 17:31:20 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Signed-off-by: Thomas Gleixner --- diff --git a/debian/patches/features/all/rt/cpufreq-drop-K8-s-driver-from-beeing-selected.patch b/debian/patches-rt/cpufreq-drop-K8-s-driver-from-beeing-selected.patch similarity index 97% rename from debian/patches/features/all/rt/cpufreq-drop-K8-s-driver-from-beeing-selected.patch rename to debian/patches-rt/cpufreq-drop-K8-s-driver-from-beeing-selected.patch index bab932618..81ee462d5 100644 --- a/debian/patches/features/all/rt/cpufreq-drop-K8-s-driver-from-beeing-selected.patch +++ b/debian/patches-rt/cpufreq-drop-K8-s-driver-from-beeing-selected.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Thu, 9 Apr 2015 15:23:01 +0200 Subject: cpufreq: drop K8's driver from beeing selected -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Ralf posted a picture of a backtrace from diff --git a/debian/patches/features/all/rt/cpumask-disable-offstack-on-rt.patch b/debian/patches-rt/cpumask-disable-offstack-on-rt.patch similarity index 96% rename from debian/patches/features/all/rt/cpumask-disable-offstack-on-rt.patch rename to debian/patches-rt/cpumask-disable-offstack-on-rt.patch index 23a9c3358..d4f17b4b8 100644 --- a/debian/patches/features/all/rt/cpumask-disable-offstack-on-rt.patch +++ b/debian/patches-rt/cpumask-disable-offstack-on-rt.patch @@ -1,7 +1,7 @@ Subject: cpumask: Disable CONFIG_CPUMASK_OFFSTACK for RT From: Thomas Gleixner Date: Wed, 14 Dec 2011 01:03:49 +0100 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz There are "valid" GFP_ATOMIC allocations such as @@ -47,7 +47,7 @@ Signed-off-by: Thomas Gleixner --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig -@@ -939,7 +939,7 @@ config CALGARY_IOMMU_ENABLED_BY_DEFAULT +@@ -940,7 +940,7 @@ config CALGARY_IOMMU_ENABLED_BY_DEFAULT config MAXSMP bool "Enable Maximum number of SMP Processors and NUMA Nodes" depends on X86_64 && SMP && DEBUG_KERNEL diff --git a/debian/patches/features/all/rt/cpuset-Convert-callback_lock-to-raw_spinlock_t.patch b/debian/patches-rt/cpuset-Convert-callback_lock-to-raw_spinlock_t.patch similarity index 99% rename from debian/patches/features/all/rt/cpuset-Convert-callback_lock-to-raw_spinlock_t.patch rename to debian/patches-rt/cpuset-Convert-callback_lock-to-raw_spinlock_t.patch index 69d79d22b..b12fca43e 100644 --- a/debian/patches/features/all/rt/cpuset-Convert-callback_lock-to-raw_spinlock_t.patch +++ b/debian/patches-rt/cpuset-Convert-callback_lock-to-raw_spinlock_t.patch @@ -1,7 +1,7 @@ From: Mike Galbraith Date: Sun, 8 Jan 2017 09:32:25 +0100 Subject: [PATCH] cpuset: Convert callback_lock to raw_spinlock_t -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The two commits below add up to a cpuset might_sleep() splat for RT: diff --git a/debian/patches/features/all/rt/crypto-Reduce-preempt-disabled-regions-more-algos.patch b/debian/patches-rt/crypto-Reduce-preempt-disabled-regions-more-algos.patch similarity index 99% rename from debian/patches/features/all/rt/crypto-Reduce-preempt-disabled-regions-more-algos.patch rename to debian/patches-rt/crypto-Reduce-preempt-disabled-regions-more-algos.patch index b438792ad..d656e65fa 100644 --- a/debian/patches/features/all/rt/crypto-Reduce-preempt-disabled-regions-more-algos.patch +++ b/debian/patches-rt/crypto-Reduce-preempt-disabled-regions-more-algos.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Fri, 21 Feb 2014 17:24:04 +0100 Subject: crypto: Reduce preempt disabled regions, more algos -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Don Estabrook reported | kernel: WARNING: CPU: 2 PID: 858 at kernel/sched/core.c:2428 migrate_disable+0xed/0x100() diff --git a/debian/patches/features/all/rt/crypto-cryptd-add-a-lock-instead-preempt_disable-loc.patch b/debian/patches-rt/crypto-cryptd-add-a-lock-instead-preempt_disable-loc.patch similarity index 98% rename from debian/patches/features/all/rt/crypto-cryptd-add-a-lock-instead-preempt_disable-loc.patch rename to debian/patches-rt/crypto-cryptd-add-a-lock-instead-preempt_disable-loc.patch index 61a75ce88..d13b4530b 100644 --- a/debian/patches/features/all/rt/crypto-cryptd-add-a-lock-instead-preempt_disable-loc.patch +++ b/debian/patches-rt/crypto-cryptd-add-a-lock-instead-preempt_disable-loc.patch @@ -2,7 +2,7 @@ From: Sebastian Andrzej Siewior Date: Thu, 26 Jul 2018 18:52:00 +0200 Subject: [PATCH] crypto: cryptd - add a lock instead preempt_disable/local_bh_disable -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz cryptd has a per-CPU lock which protected with local_bh_disable() and preempt_disable(). diff --git a/debian/patches/features/all/rt/crypto-limit-more-FPU-enabled-sections.patch b/debian/patches-rt/crypto-limit-more-FPU-enabled-sections.patch similarity index 98% rename from debian/patches/features/all/rt/crypto-limit-more-FPU-enabled-sections.patch rename to debian/patches-rt/crypto-limit-more-FPU-enabled-sections.patch index 0c7e91fc7..ad646c3af 100644 --- a/debian/patches/features/all/rt/crypto-limit-more-FPU-enabled-sections.patch +++ b/debian/patches-rt/crypto-limit-more-FPU-enabled-sections.patch @@ -4,7 +4,7 @@ Subject: [PATCH] crypto: limit more FPU-enabled sections MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Those crypto drivers use SSE/AVX/… for their crypto work and in order to do so in kernel they need to enable the "FPU" in kernel mode which diff --git a/debian/patches/features/all/rt/crypto-scompress-serialize-RT-percpu-scratch-buffer-.patch b/debian/patches-rt/crypto-scompress-serialize-RT-percpu-scratch-buffer-.patch similarity index 98% rename from debian/patches/features/all/rt/crypto-scompress-serialize-RT-percpu-scratch-buffer-.patch rename to debian/patches-rt/crypto-scompress-serialize-RT-percpu-scratch-buffer-.patch index cada3ca0e..3afc6c0bf 100644 --- a/debian/patches/features/all/rt/crypto-scompress-serialize-RT-percpu-scratch-buffer-.patch +++ b/debian/patches-rt/crypto-scompress-serialize-RT-percpu-scratch-buffer-.patch @@ -2,7 +2,7 @@ From: Mike Galbraith Date: Wed, 11 Jul 2018 17:14:47 +0200 Subject: [PATCH] crypto: scompress - serialize RT percpu scratch buffer access with a local lock -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz | BUG: sleeping function called from invalid context at kernel/locking/rtmutex.c:974 | in_atomic(): 1, irqs_disabled(): 0, pid: 1401, name: cryptomgr_test diff --git a/debian/patches/features/all/rt/debugobjects-rt.patch b/debian/patches-rt/debugobjects-rt.patch similarity index 95% rename from debian/patches/features/all/rt/debugobjects-rt.patch rename to debian/patches-rt/debugobjects-rt.patch index 7de803c94..ace4838f3 100644 --- a/debian/patches/features/all/rt/debugobjects-rt.patch +++ b/debian/patches-rt/debugobjects-rt.patch @@ -1,7 +1,7 @@ Subject: debugobjects: Make RT aware From: Thomas Gleixner Date: Sun, 17 Jul 2011 21:41:35 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Avoid filling the pool / allocating memory with irqs off(). diff --git a/debian/patches/features/all/rt/dm-rq-remove-BUG_ON-irqs_disabled-check.patch b/debian/patches-rt/dm-rq-remove-BUG_ON-irqs_disabled-check.patch similarity index 97% rename from debian/patches/features/all/rt/dm-rq-remove-BUG_ON-irqs_disabled-check.patch rename to debian/patches-rt/dm-rq-remove-BUG_ON-irqs_disabled-check.patch index 7d4045082..31c96a291 100644 --- a/debian/patches/features/all/rt/dm-rq-remove-BUG_ON-irqs_disabled-check.patch +++ b/debian/patches-rt/dm-rq-remove-BUG_ON-irqs_disabled-check.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Tue, 27 Mar 2018 16:24:15 +0200 Subject: [PATCH] dm rq: remove BUG_ON(!irqs_disabled) check -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz In commit 052189a2ec95 ("dm: remove superfluous irq disablement in dm_request_fn") the spin_lock_irq() was replaced with spin_lock() + a diff --git a/debian/patches/features/all/rt/drivers-block-zram-Replace-bit-spinlocks-with-rtmute.patch b/debian/patches-rt/drivers-block-zram-Replace-bit-spinlocks-with-rtmute.patch similarity index 94% rename from debian/patches/features/all/rt/drivers-block-zram-Replace-bit-spinlocks-with-rtmute.patch rename to debian/patches-rt/drivers-block-zram-Replace-bit-spinlocks-with-rtmute.patch index 99aec69eb..33ca88e55 100644 --- a/debian/patches/features/all/rt/drivers-block-zram-Replace-bit-spinlocks-with-rtmute.patch +++ b/debian/patches-rt/drivers-block-zram-Replace-bit-spinlocks-with-rtmute.patch @@ -2,7 +2,7 @@ From: Mike Galbraith Date: Thu, 31 Mar 2016 04:08:28 +0200 Subject: [PATCH] drivers/block/zram: Replace bit spinlocks with rtmutex for -rt -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz They're nondeterministic, and lead to ___might_sleep() splats in -rt. OTOH, they're a lot less wasteful than an rtmutex per page. @@ -55,7 +55,7 @@ Signed-off-by: Sebastian Andrzej Siewior static inline bool init_done(struct zram *zram) { -@@ -893,6 +918,8 @@ static DEVICE_ATTR_RO(io_stat); +@@ -898,6 +923,8 @@ static DEVICE_ATTR_RO(io_stat); static DEVICE_ATTR_RO(mm_stat); static DEVICE_ATTR_RO(debug_stat); @@ -64,7 +64,7 @@ Signed-off-by: Sebastian Andrzej Siewior static void zram_meta_free(struct zram *zram, u64 disksize) { size_t num_pages = disksize >> PAGE_SHIFT; -@@ -923,6 +950,7 @@ static bool zram_meta_alloc(struct zram +@@ -928,6 +955,7 @@ static bool zram_meta_alloc(struct zram if (!huge_class_size) huge_class_size = zs_huge_class_size(zram->mem_pool); diff --git a/debian/patches/features/all/rt/drivers-tty-fix-omap-lock-crap.patch b/debian/patches-rt/drivers-tty-fix-omap-lock-crap.patch similarity index 97% rename from debian/patches/features/all/rt/drivers-tty-fix-omap-lock-crap.patch rename to debian/patches-rt/drivers-tty-fix-omap-lock-crap.patch index db1d4b92a..f19a88acc 100644 --- a/debian/patches/features/all/rt/drivers-tty-fix-omap-lock-crap.patch +++ b/debian/patches-rt/drivers-tty-fix-omap-lock-crap.patch @@ -1,7 +1,7 @@ Subject: tty/serial/omap: Make the locking RT aware From: Thomas Gleixner Date: Thu, 28 Jul 2011 13:32:57 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz 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 diff --git a/debian/patches/features/all/rt/drivers-tty-pl011-irq-disable-madness.patch b/debian/patches-rt/drivers-tty-pl011-irq-disable-madness.patch similarity index 97% rename from debian/patches/features/all/rt/drivers-tty-pl011-irq-disable-madness.patch rename to debian/patches-rt/drivers-tty-pl011-irq-disable-madness.patch index d986595c2..b98c1cec2 100644 --- a/debian/patches/features/all/rt/drivers-tty-pl011-irq-disable-madness.patch +++ b/debian/patches-rt/drivers-tty-pl011-irq-disable-madness.patch @@ -1,7 +1,7 @@ Subject: tty/serial/pl011: Make the locking work on RT From: Thomas Gleixner Date: Tue, 08 Jan 2013 21:36:51 +0100 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz 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. diff --git a/debian/patches/features/all/rt/drivers-zram-Don-t-disable-preemption-in-zcomp_strea.patch b/debian/patches-rt/drivers-zram-Don-t-disable-preemption-in-zcomp_strea.patch similarity index 92% rename from debian/patches/features/all/rt/drivers-zram-Don-t-disable-preemption-in-zcomp_strea.patch rename to debian/patches-rt/drivers-zram-Don-t-disable-preemption-in-zcomp_strea.patch index 73bec581a..4004dbc33 100644 --- a/debian/patches/features/all/rt/drivers-zram-Don-t-disable-preemption-in-zcomp_strea.patch +++ b/debian/patches-rt/drivers-zram-Don-t-disable-preemption-in-zcomp_strea.patch @@ -2,7 +2,7 @@ From: Mike Galbraith Date: Thu, 20 Oct 2016 11:15:22 +0200 Subject: [PATCH] drivers/zram: Don't disable preemption in zcomp_stream_get/put() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz In v4.7, the driver switched to percpu compression streams, disabling preemption via get/put_cpu_ptr(). Use a per-zcomp_strm lock here. We @@ -63,7 +63,7 @@ Signed-off-by: Sebastian Andrzej Siewior /* dynamic per-device compression frontend */ --- a/drivers/block/zram/zram_drv.c +++ b/drivers/block/zram/zram_drv.c -@@ -1009,6 +1009,7 @@ static int __zram_bvec_read(struct zram +@@ -1014,6 +1014,7 @@ static int __zram_bvec_read(struct zram unsigned long handle; unsigned int size; void *src, *dst; @@ -71,7 +71,7 @@ Signed-off-by: Sebastian Andrzej Siewior if (zram_wb_enabled(zram)) { zram_slot_lock(zram, index); -@@ -1043,6 +1044,7 @@ static int __zram_bvec_read(struct zram +@@ -1048,6 +1049,7 @@ static int __zram_bvec_read(struct zram size = zram_get_obj_size(zram, index); @@ -79,7 +79,7 @@ Signed-off-by: Sebastian Andrzej Siewior src = zs_map_object(zram->mem_pool, handle, ZS_MM_RO); if (size == PAGE_SIZE) { dst = kmap_atomic(page); -@@ -1050,14 +1052,13 @@ static int __zram_bvec_read(struct zram +@@ -1055,14 +1057,13 @@ static int __zram_bvec_read(struct zram kunmap_atomic(dst); ret = 0; } else { diff --git a/debian/patches/features/all/rt/drivers-zram-fix-zcomp_stream_get-smp_processor_id-u.patch b/debian/patches-rt/drivers-zram-fix-zcomp_stream_get-smp_processor_id-u.patch similarity index 97% rename from debian/patches/features/all/rt/drivers-zram-fix-zcomp_stream_get-smp_processor_id-u.patch rename to debian/patches-rt/drivers-zram-fix-zcomp_stream_get-smp_processor_id-u.patch index 2aaff2536..b3d3072b3 100644 --- a/debian/patches/features/all/rt/drivers-zram-fix-zcomp_stream_get-smp_processor_id-u.patch +++ b/debian/patches-rt/drivers-zram-fix-zcomp_stream_get-smp_processor_id-u.patch @@ -2,7 +2,7 @@ From: Mike Galbraith Date: Wed, 23 Aug 2017 11:57:29 +0200 Subject: [PATCH] drivers/zram: fix zcomp_stream_get() smp_processor_id() use in preemptible code -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Use get_local_ptr() instead this_cpu_ptr() to avoid a warning regarding smp_processor_id() in preemptible code. diff --git a/debian/patches/features/all/rt/drmi915_Use_local_lockunlock_irq()_in_intel_pipe_update_startend().patch b/debian/patches-rt/drmi915_Use_local_lockunlock_irq()_in_intel_pipe_update_startend().patch similarity index 99% rename from debian/patches/features/all/rt/drmi915_Use_local_lockunlock_irq()_in_intel_pipe_update_startend().patch rename to debian/patches-rt/drmi915_Use_local_lockunlock_irq()_in_intel_pipe_update_startend().patch index 7dc1a165f..86636667b 100644 --- a/debian/patches/features/all/rt/drmi915_Use_local_lockunlock_irq()_in_intel_pipe_update_startend().patch +++ b/debian/patches-rt/drmi915_Use_local_lockunlock_irq()_in_intel_pipe_update_startend().patch @@ -1,7 +1,7 @@ Subject: drm,i915: Use local_lock/unlock_irq() in intel_pipe_update_start/end() From: Mike Galbraith Date: Sat, 27 Feb 2016 09:01:42 +0100 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz [ 8.014039] BUG: sleeping function called from invalid context at kernel/locking/rtmutex.c:918 diff --git a/debian/patches/features/all/rt/drmradeoni915_Use_preempt_disableenable_rt()_where_recommended.patch b/debian/patches-rt/drmradeoni915_Use_preempt_disableenable_rt()_where_recommended.patch similarity index 98% rename from debian/patches/features/all/rt/drmradeoni915_Use_preempt_disableenable_rt()_where_recommended.patch rename to debian/patches-rt/drmradeoni915_Use_preempt_disableenable_rt()_where_recommended.patch index b2f4649a2..3ee483efe 100644 --- a/debian/patches/features/all/rt/drmradeoni915_Use_preempt_disableenable_rt()_where_recommended.patch +++ b/debian/patches-rt/drmradeoni915_Use_preempt_disableenable_rt()_where_recommended.patch @@ -1,7 +1,7 @@ Subject: drm,radeon,i915: Use preempt_disable/enable_rt() where recommended From: Mike Galbraith Date: Sat, 27 Feb 2016 08:09:11 +0100 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz DRM folks identified the spots, so use them. diff --git a/debian/patches/features/all/rt/efi-Allow-efi-runtime.patch b/debian/patches-rt/efi-Allow-efi-runtime.patch similarity index 89% rename from debian/patches/features/all/rt/efi-Allow-efi-runtime.patch rename to debian/patches-rt/efi-Allow-efi-runtime.patch index 99f05d6b4..0ef8d4e1c 100644 --- a/debian/patches/features/all/rt/efi-Allow-efi-runtime.patch +++ b/debian/patches-rt/efi-Allow-efi-runtime.patch @@ -1,8 +1,7 @@ -From 667af2f3d8ccf947fe7c9dac0b59b175963163ba Mon Sep 17 00:00:00 2001 From: Sebastian Andrzej Siewior Date: Thu, 26 Jul 2018 15:06:10 +0200 Subject: [PATCH] efi: Allow efi=runtime -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz In case the option "efi=noruntime" is default at built-time, the user could overwrite its sate by `efi=runtime' and allow it again. diff --git a/debian/patches/features/all/rt/efi-Disable-runtime-services-on-RT.patch b/debian/patches-rt/efi-Disable-runtime-services-on-RT.patch similarity index 97% rename from debian/patches/features/all/rt/efi-Disable-runtime-services-on-RT.patch rename to debian/patches-rt/efi-Disable-runtime-services-on-RT.patch index 3f0ce5877..df75857a8 100644 --- a/debian/patches/features/all/rt/efi-Disable-runtime-services-on-RT.patch +++ b/debian/patches-rt/efi-Disable-runtime-services-on-RT.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Thu, 26 Jul 2018 15:03:16 +0200 Subject: [PATCH] efi: Disable runtime services on RT -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Based on meassurements the EFI functions get_variable / get_next_variable take up to 2us which looks okay. diff --git a/debian/patches/features/all/rt/epoll-use-get-cpu-light.patch b/debian/patches-rt/epoll-use-get-cpu-light.patch similarity index 96% rename from debian/patches/features/all/rt/epoll-use-get-cpu-light.patch rename to debian/patches-rt/epoll-use-get-cpu-light.patch index d9b459865..2f3111471 100644 --- a/debian/patches/features/all/rt/epoll-use-get-cpu-light.patch +++ b/debian/patches-rt/epoll-use-get-cpu-light.patch @@ -1,7 +1,7 @@ Subject: fs/epoll: Do not disable preemption on RT From: Thomas Gleixner Date: Fri, 08 Jul 2011 16:35:35 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz ep_call_nested() takes a sleeping lock so we can't disable preemption. The light version is enough since ep_call_nested() doesn't mind beeing diff --git a/debian/patches/features/all/rt/fs-aio-simple-simple-work.patch b/debian/patches-rt/fs-aio-simple-simple-work.patch similarity index 98% rename from debian/patches/features/all/rt/fs-aio-simple-simple-work.patch rename to debian/patches-rt/fs-aio-simple-simple-work.patch index d7697c1ad..c5d7c2f06 100644 --- a/debian/patches/features/all/rt/fs-aio-simple-simple-work.patch +++ b/debian/patches-rt/fs-aio-simple-simple-work.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Mon, 16 Feb 2015 18:49:10 +0100 Subject: fs/aio: simple simple work -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz |BUG: sleeping function called from invalid context at kernel/locking/rtmutex.c:768 |in_atomic(): 1, irqs_disabled(): 0, pid: 26, name: rcuos/2 diff --git a/debian/patches/features/all/rt/fs-dcache-bring-back-explicit-INIT_HLIST_BL_HEAD-in.patch b/debian/patches-rt/fs-dcache-bring-back-explicit-INIT_HLIST_BL_HEAD-in.patch similarity index 97% rename from debian/patches/features/all/rt/fs-dcache-bring-back-explicit-INIT_HLIST_BL_HEAD-in.patch rename to debian/patches-rt/fs-dcache-bring-back-explicit-INIT_HLIST_BL_HEAD-in.patch index 614fdade8..ed1dee255 100644 --- a/debian/patches/features/all/rt/fs-dcache-bring-back-explicit-INIT_HLIST_BL_HEAD-in.patch +++ b/debian/patches-rt/fs-dcache-bring-back-explicit-INIT_HLIST_BL_HEAD-in.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Wed, 13 Sep 2017 12:32:34 +0200 Subject: [PATCH] fs/dcache: bring back explicit INIT_HLIST_BL_HEAD init -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Commit 3d375d78593c ("mm: update callers to use HASH_ZERO flag") removed INIT_HLIST_BL_HEAD and uses the ZERO flag instead for the init. However diff --git a/debian/patches/features/all/rt/fs-dcache-disable-preemption-on-i_dir_seq-s-write-si.patch b/debian/patches-rt/fs-dcache-disable-preemption-on-i_dir_seq-s-write-si.patch similarity index 99% rename from debian/patches/features/all/rt/fs-dcache-disable-preemption-on-i_dir_seq-s-write-si.patch rename to debian/patches-rt/fs-dcache-disable-preemption-on-i_dir_seq-s-write-si.patch index 42f58db43..deae6de4f 100644 --- a/debian/patches/features/all/rt/fs-dcache-disable-preemption-on-i_dir_seq-s-write-si.patch +++ b/debian/patches-rt/fs-dcache-disable-preemption-on-i_dir_seq-s-write-si.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Fri, 20 Oct 2017 11:29:53 +0200 Subject: [PATCH] fs/dcache: disable preemption on i_dir_seq's write side -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz i_dir_seq is an opencoded seqcounter. Based on the code it looks like we could have two writers in parallel despite the fact that the d_lock is diff --git a/debian/patches/features/all/rt/fs-dcache-use-cpu-chill-in-trylock-loops.patch b/debian/patches-rt/fs-dcache-use-cpu-chill-in-trylock-loops.patch similarity index 98% rename from debian/patches/features/all/rt/fs-dcache-use-cpu-chill-in-trylock-loops.patch rename to debian/patches-rt/fs-dcache-use-cpu-chill-in-trylock-loops.patch index 2b5999af3..853bd7ef4 100644 --- a/debian/patches/features/all/rt/fs-dcache-use-cpu-chill-in-trylock-loops.patch +++ b/debian/patches-rt/fs-dcache-use-cpu-chill-in-trylock-loops.patch @@ -1,7 +1,7 @@ Subject: fs: dcache: Use cpu_chill() in trylock loops From: Thomas Gleixner Date: Wed, 07 Mar 2012 21:00:34 +0100 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Retry loops on RT might loop forever when the modifying side was preempted. Use cpu_chill() instead of cpu_relax() to let the system diff --git a/debian/patches/features/all/rt/fs-dcache-use-swait_queue-instead-of-waitqueue.patch b/debian/patches-rt/fs-dcache-use-swait_queue-instead-of-waitqueue.patch similarity index 98% rename from debian/patches/features/all/rt/fs-dcache-use-swait_queue-instead-of-waitqueue.patch rename to debian/patches-rt/fs-dcache-use-swait_queue-instead-of-waitqueue.patch index 2e315e43e..0ba18fd53 100644 --- a/debian/patches/features/all/rt/fs-dcache-use-swait_queue-instead-of-waitqueue.patch +++ b/debian/patches-rt/fs-dcache-use-swait_queue-instead-of-waitqueue.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Wed, 14 Sep 2016 14:35:49 +0200 Subject: [PATCH] fs/dcache: use swait_queue instead of waitqueue -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz __d_lookup_done() invokes wake_up_all() while holding a hlist_bl_lock() which disables preemption. As a workaround convert it to swait. @@ -81,7 +81,7 @@ Signed-off-by: Sebastian Andrzej Siewior INIT_HLIST_NODE(&dentry->d_u.d_alias); --- a/fs/fuse/dir.c +++ b/fs/fuse/dir.c -@@ -1195,7 +1195,7 @@ static int fuse_direntplus_link(struct f +@@ -1196,7 +1196,7 @@ static int fuse_direntplus_link(struct f struct inode *dir = d_inode(parent); struct fuse_conn *fc; struct inode *inode; diff --git a/debian/patches/features/all/rt/fs-jbd-replace-bh_state-lock.patch b/debian/patches-rt/fs-jbd-replace-bh_state-lock.patch similarity index 98% rename from debian/patches/features/all/rt/fs-jbd-replace-bh_state-lock.patch rename to debian/patches-rt/fs-jbd-replace-bh_state-lock.patch index 572790268..c6a40b2a5 100644 --- a/debian/patches/features/all/rt/fs-jbd-replace-bh_state-lock.patch +++ b/debian/patches-rt/fs-jbd-replace-bh_state-lock.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Fri, 18 Mar 2011 10:11:25 +0100 Subject: fs: jbd/jbd2: Make state lock and journal head lock rt safe -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz bit_spin_locks break under RT. diff --git a/debian/patches/features/all/rt/fs-nfs-turn-rmdir_sem-into-a-semaphore.patch b/debian/patches-rt/fs-nfs-turn-rmdir_sem-into-a-semaphore.patch similarity index 99% rename from debian/patches/features/all/rt/fs-nfs-turn-rmdir_sem-into-a-semaphore.patch rename to debian/patches-rt/fs-nfs-turn-rmdir_sem-into-a-semaphore.patch index 12b65f9cd..3ba4f5f59 100644 --- a/debian/patches/features/all/rt/fs-nfs-turn-rmdir_sem-into-a-semaphore.patch +++ b/debian/patches-rt/fs-nfs-turn-rmdir_sem-into-a-semaphore.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Thu, 15 Sep 2016 10:51:27 +0200 Subject: [PATCH] fs/nfs: turn rmdir_sem into a semaphore -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The RW semaphore had a reader side which used the _non_owner version because it most likely took the reader lock in one thread and released it diff --git a/debian/patches/features/all/rt/fs-replace-bh_uptodate_lock-for-rt.patch b/debian/patches-rt/fs-replace-bh_uptodate_lock-for-rt.patch similarity index 99% rename from debian/patches/features/all/rt/fs-replace-bh_uptodate_lock-for-rt.patch rename to debian/patches-rt/fs-replace-bh_uptodate_lock-for-rt.patch index 0fc4080d4..7ac15e4c5 100644 --- a/debian/patches/features/all/rt/fs-replace-bh_uptodate_lock-for-rt.patch +++ b/debian/patches-rt/fs-replace-bh_uptodate_lock-for-rt.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Fri, 18 Mar 2011 09:18:52 +0100 Subject: buffer_head: Replace bh_uptodate_lock for -rt -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Wrap the bit_spin_lock calls into a separate inline and add the RT replacements with a real spinlock. diff --git a/debian/patches/features/all/rt/fscache-initialize-cookie-hash-table-raw-spinlocks.patch b/debian/patches-rt/fscache-initialize-cookie-hash-table-raw-spinlocks.patch similarity index 94% rename from debian/patches/features/all/rt/fscache-initialize-cookie-hash-table-raw-spinlocks.patch rename to debian/patches-rt/fscache-initialize-cookie-hash-table-raw-spinlocks.patch index 0170a9e93..926cb415c 100644 --- a/debian/patches/features/all/rt/fscache-initialize-cookie-hash-table-raw-spinlocks.patch +++ b/debian/patches-rt/fscache-initialize-cookie-hash-table-raw-spinlocks.patch @@ -1,8 +1,7 @@ -From 0277aff2b41aef9e2a6bd716ee0076036881334d Mon Sep 17 00:00:00 2001 From: Clark Williams Date: Tue, 3 Jul 2018 13:34:30 -0500 Subject: [PATCH] fscache: initialize cookie hash table raw spinlocks -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The fscache cookie mechanism uses a hash table of hlist_bl_head structures. The PREEMPT_RT patcheset adds a raw spinlock to this structure and so on PREEMPT_RT diff --git a/debian/patches/features/all/rt/ftrace-Fix-trace-header-alignment.patch b/debian/patches-rt/ftrace-Fix-trace-header-alignment.patch similarity index 98% rename from debian/patches/features/all/rt/ftrace-Fix-trace-header-alignment.patch rename to debian/patches-rt/ftrace-Fix-trace-header-alignment.patch index 445d782f4..7b7b34fb1 100644 --- a/debian/patches/features/all/rt/ftrace-Fix-trace-header-alignment.patch +++ b/debian/patches-rt/ftrace-Fix-trace-header-alignment.patch @@ -1,7 +1,7 @@ From: Mike Galbraith Date: Sun, 16 Oct 2016 05:08:30 +0200 Subject: [PATCH] ftrace: Fix trace header alignment -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Line up helper arrows to the right column. diff --git a/debian/patches/features/all/rt/ftrace-migrate-disable-tracing.patch b/debian/patches-rt/ftrace-migrate-disable-tracing.patch similarity index 98% rename from debian/patches/features/all/rt/ftrace-migrate-disable-tracing.patch rename to debian/patches-rt/ftrace-migrate-disable-tracing.patch index fe97bfdd5..26d63f49c 100644 --- a/debian/patches/features/all/rt/ftrace-migrate-disable-tracing.patch +++ b/debian/patches-rt/ftrace-migrate-disable-tracing.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Sun, 17 Jul 2011 21:56:42 +0200 Subject: trace: Add migrate-disabled counter to tracing output -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Signed-off-by: Thomas Gleixner --- diff --git a/debian/patches/features/all/rt/futex-Ensure-lock-unlock-symetry-versus-pi_lock-and-.patch b/debian/patches-rt/futex-Ensure-lock-unlock-symetry-versus-pi_lock-and-.patch similarity index 97% rename from debian/patches/features/all/rt/futex-Ensure-lock-unlock-symetry-versus-pi_lock-and-.patch rename to debian/patches-rt/futex-Ensure-lock-unlock-symetry-versus-pi_lock-and-.patch index 641f59b0b..c682c2820 100644 --- a/debian/patches/features/all/rt/futex-Ensure-lock-unlock-symetry-versus-pi_lock-and-.patch +++ b/debian/patches-rt/futex-Ensure-lock-unlock-symetry-versus-pi_lock-and-.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Fri, 1 Mar 2013 11:17:42 +0100 Subject: futex: Ensure lock/unlock symetry versus pi_lock and hash bucket lock -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz In exit_pi_state_list() we have the following locking construct: diff --git a/debian/patches/features/all/rt/futex-requeue-pi-fix.patch b/debian/patches-rt/futex-requeue-pi-fix.patch similarity index 99% rename from debian/patches/features/all/rt/futex-requeue-pi-fix.patch rename to debian/patches-rt/futex-requeue-pi-fix.patch index 77c2f23b6..25e3e472a 100644 --- a/debian/patches/features/all/rt/futex-requeue-pi-fix.patch +++ b/debian/patches-rt/futex-requeue-pi-fix.patch @@ -1,7 +1,7 @@ From: Steven Rostedt Date: Tue, 14 Jul 2015 14:26:34 +0200 Subject: futex: Fix bug on when a requeued RT task times out -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Requeue with timeout causes a bug with PREEMPT_RT_FULL. diff --git a/debian/patches/features/all/rt/futex-workaround-migrate_disable-enable-in-different.patch b/debian/patches-rt/futex-workaround-migrate_disable-enable-in-different.patch similarity index 98% rename from debian/patches/features/all/rt/futex-workaround-migrate_disable-enable-in-different.patch rename to debian/patches-rt/futex-workaround-migrate_disable-enable-in-different.patch index b875b1c79..6f6ab69af 100644 --- a/debian/patches/features/all/rt/futex-workaround-migrate_disable-enable-in-different.patch +++ b/debian/patches-rt/futex-workaround-migrate_disable-enable-in-different.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Wed, 8 Mar 2017 14:23:35 +0100 Subject: [PATCH] futex: workaround migrate_disable/enable in different context -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz migrate_disable()/migrate_enable() takes a different path in atomic() vs !atomic() context. These little hacks ensure that we don't underflow / overflow diff --git a/debian/patches/features/all/rt/genirq-disable-irqpoll-on-rt.patch b/debian/patches-rt/genirq-disable-irqpoll-on-rt.patch similarity index 97% rename from debian/patches/features/all/rt/genirq-disable-irqpoll-on-rt.patch rename to debian/patches-rt/genirq-disable-irqpoll-on-rt.patch index 4f35743ee..857321c57 100644 --- a/debian/patches/features/all/rt/genirq-disable-irqpoll-on-rt.patch +++ b/debian/patches-rt/genirq-disable-irqpoll-on-rt.patch @@ -1,7 +1,7 @@ From: Ingo Molnar Date: Fri, 3 Jul 2009 08:29:57 -0500 Subject: genirq: Disable irqpoll on -rt -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Creates long latencies for no value diff --git a/debian/patches/features/all/rt/genirq-do-not-invoke-the-affinity-callback-via-a-wor.patch b/debian/patches-rt/genirq-do-not-invoke-the-affinity-callback-via-a-wor.patch similarity index 99% rename from debian/patches/features/all/rt/genirq-do-not-invoke-the-affinity-callback-via-a-wor.patch rename to debian/patches-rt/genirq-do-not-invoke-the-affinity-callback-via-a-wor.patch index 54eec810a..7db9d9d03 100644 --- a/debian/patches/features/all/rt/genirq-do-not-invoke-the-affinity-callback-via-a-wor.patch +++ b/debian/patches-rt/genirq-do-not-invoke-the-affinity-callback-via-a-wor.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Wed, 21 Aug 2013 17:48:46 +0200 Subject: genirq: Do not invoke the affinity callback via a workqueue on RT -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Joe Korty reported, that __irq_set_affinity_locked() schedules a workqueue while holding a rawlock which results in a might_sleep() diff --git a/debian/patches/features/all/rt/genirq-force-threading.patch b/debian/patches-rt/genirq-force-threading.patch similarity index 97% rename from debian/patches/features/all/rt/genirq-force-threading.patch rename to debian/patches-rt/genirq-force-threading.patch index 644dcab97..778334a4e 100644 --- a/debian/patches/features/all/rt/genirq-force-threading.patch +++ b/debian/patches-rt/genirq-force-threading.patch @@ -1,7 +1,7 @@ Subject: genirq: Force interrupt thread on RT From: Thomas Gleixner Date: Sun, 03 Apr 2011 11:57:29 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Force threaded_irqs and optimize the code (force_irqthreads) in regard to this. diff --git a/debian/patches/features/all/rt/genirq-update-irq_set_irqchip_state-documentation.patch b/debian/patches-rt/genirq-update-irq_set_irqchip_state-documentation.patch similarity index 97% rename from debian/patches/features/all/rt/genirq-update-irq_set_irqchip_state-documentation.patch rename to debian/patches-rt/genirq-update-irq_set_irqchip_state-documentation.patch index a84fa99ba..842ae2167 100644 --- a/debian/patches/features/all/rt/genirq-update-irq_set_irqchip_state-documentation.patch +++ b/debian/patches-rt/genirq-update-irq_set_irqchip_state-documentation.patch @@ -1,7 +1,7 @@ From: Josh Cartwright Date: Thu, 11 Feb 2016 11:54:00 -0600 Subject: genirq: update irq_set_irqchip_state documentation -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz On -rt kernels, the use of migrate_disable()/migrate_enable() is sufficient to guarantee a task isn't moved to another CPU. Update the diff --git a/debian/patches/features/all/rt/hotplug-duct-tape-RT-rwlock-usage-for-non-RT.patch b/debian/patches-rt/hotplug-duct-tape-RT-rwlock-usage-for-non-RT.patch similarity index 98% rename from debian/patches/features/all/rt/hotplug-duct-tape-RT-rwlock-usage-for-non-RT.patch rename to debian/patches-rt/hotplug-duct-tape-RT-rwlock-usage-for-non-RT.patch index 4771347e2..e2d3eefb0 100644 --- a/debian/patches/features/all/rt/hotplug-duct-tape-RT-rwlock-usage-for-non-RT.patch +++ b/debian/patches-rt/hotplug-duct-tape-RT-rwlock-usage-for-non-RT.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Fri, 4 Aug 2017 18:31:00 +0200 Subject: [PATCH] hotplug: duct-tape RT-rwlock usage for non-RT -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz This type is only available on -RT. We need to craft something for non-RT. Since the only migrate_disable() user is -RT only, there is no diff --git a/debian/patches/features/all/rt/hotplug-light-get-online-cpus.patch b/debian/patches-rt/hotplug-light-get-online-cpus.patch similarity index 98% rename from debian/patches/features/all/rt/hotplug-light-get-online-cpus.patch rename to debian/patches-rt/hotplug-light-get-online-cpus.patch index 78123993e..945f71d91 100644 --- a/debian/patches/features/all/rt/hotplug-light-get-online-cpus.patch +++ b/debian/patches-rt/hotplug-light-get-online-cpus.patch @@ -1,7 +1,7 @@ Subject: hotplug: Lightweight get online cpus From: Thomas Gleixner Date: Wed, 15 Jun 2011 12:36:06 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz get_online_cpus() is a heavy weight function which involves a global mutex. migrate_disable() wants a simpler construct which prevents only diff --git a/debian/patches/features/all/rt/hrtimer-Move-schedule_work-call-to-helper-thread.patch b/debian/patches-rt/hrtimer-Move-schedule_work-call-to-helper-thread.patch similarity index 98% rename from debian/patches/features/all/rt/hrtimer-Move-schedule_work-call-to-helper-thread.patch rename to debian/patches-rt/hrtimer-Move-schedule_work-call-to-helper-thread.patch index 033e22b71..c6b5f0459 100644 --- a/debian/patches/features/all/rt/hrtimer-Move-schedule_work-call-to-helper-thread.patch +++ b/debian/patches-rt/hrtimer-Move-schedule_work-call-to-helper-thread.patch @@ -1,7 +1,7 @@ From: Yang Shi Date: Mon, 16 Sep 2013 14:09:19 -0700 Subject: hrtimer: Move schedule_work call to helper thread -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz When run ltp leapsec_timer test, the following call trace is caught: diff --git a/debian/patches/features/all/rt/hrtimer-by-timers-by-default-into-the-softirq-context.patch b/debian/patches-rt/hrtimer-by-timers-by-default-into-the-softirq-context.patch similarity index 99% rename from debian/patches/features/all/rt/hrtimer-by-timers-by-default-into-the-softirq-context.patch rename to debian/patches-rt/hrtimer-by-timers-by-default-into-the-softirq-context.patch index 15fc25731..529711c6c 100644 --- a/debian/patches/features/all/rt/hrtimer-by-timers-by-default-into-the-softirq-context.patch +++ b/debian/patches-rt/hrtimer-by-timers-by-default-into-the-softirq-context.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Fri, 3 Jul 2009 08:44:31 -0500 Subject: hrtimer: by timers by default into the softirq context -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz We can't have hrtimers callbacks running in hardirq context on RT. Therefore the timers are deferred to the softirq context by default. diff --git a/debian/patches/features/all/rt/hrtimer-consolidate-hrtimer_init-hrtimer_init_sleepe.patch b/debian/patches-rt/hrtimer-consolidate-hrtimer_init-hrtimer_init_sleepe.patch similarity index 99% rename from debian/patches/features/all/rt/hrtimer-consolidate-hrtimer_init-hrtimer_init_sleepe.patch rename to debian/patches-rt/hrtimer-consolidate-hrtimer_init-hrtimer_init_sleepe.patch index b8f3556ad..ec0e300ec 100644 --- a/debian/patches/features/all/rt/hrtimer-consolidate-hrtimer_init-hrtimer_init_sleepe.patch +++ b/debian/patches-rt/hrtimer-consolidate-hrtimer_init-hrtimer_init_sleepe.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Tue, 3 Jul 2018 11:25:41 +0200 Subject: [PATCH v2] hrtimer: consolidate hrtimer_init() + hrtimer_init_sleeper() calls -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz hrtimer_init_sleeper() calls require a prior initialisation of the hrtimer object with hrtimer_init(). Lets make the initialisation of diff --git a/debian/patches/features/all/rt/hrtimers-prepare-full-preemption.patch b/debian/patches-rt/hrtimers-prepare-full-preemption.patch similarity index 99% rename from debian/patches/features/all/rt/hrtimers-prepare-full-preemption.patch rename to debian/patches-rt/hrtimers-prepare-full-preemption.patch index cf0d1da99..558a7c987 100644 --- a/debian/patches/features/all/rt/hrtimers-prepare-full-preemption.patch +++ b/debian/patches-rt/hrtimers-prepare-full-preemption.patch @@ -1,7 +1,7 @@ From: Ingo Molnar Date: Fri, 3 Jul 2009 08:29:34 -0500 Subject: hrtimers: Prepare full preemption -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Make cancellation of a running callback in softirq context safe against preemption. diff --git a/debian/patches/features/all/rt/iommu-amd-drop-irqs_disabled-warn_on.patch b/debian/patches-rt/iommu-amd-drop-irqs_disabled-warn_on.patch similarity index 98% rename from debian/patches/features/all/rt/iommu-amd-drop-irqs_disabled-warn_on.patch rename to debian/patches-rt/iommu-amd-drop-irqs_disabled-warn_on.patch index b7226f429..07a3549d3 100644 --- a/debian/patches/features/all/rt/iommu-amd-drop-irqs_disabled-warn_on.patch +++ b/debian/patches-rt/iommu-amd-drop-irqs_disabled-warn_on.patch @@ -1,7 +1,7 @@ From: Anna-Maria Gleixner Subject: [PATCH] iommu/amd: Remove redundant WARN_ON() Date: Fri, 20 Jul 2018 10:45:45 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The WARN_ON() was introduced in commit 272e4f99e966 ("iommu/amd: WARN when __[attach|detach]_device are called with irqs enabled") to ensure diff --git a/debian/patches/features/all/rt/irq-allow-disabling-of-softirq-processing-in-irq-thread-context.patch b/debian/patches-rt/irq-allow-disabling-of-softirq-processing-in-irq-thread-context.patch similarity index 99% rename from debian/patches/features/all/rt/irq-allow-disabling-of-softirq-processing-in-irq-thread-context.patch rename to debian/patches-rt/irq-allow-disabling-of-softirq-processing-in-irq-thread-context.patch index 1dc933cec..750907c84 100644 --- a/debian/patches/features/all/rt/irq-allow-disabling-of-softirq-processing-in-irq-thread-context.patch +++ b/debian/patches-rt/irq-allow-disabling-of-softirq-processing-in-irq-thread-context.patch @@ -1,7 +1,7 @@ Subject: genirq: Allow disabling of softirq processing in irq thread context From: Thomas Gleixner Date: Tue, 31 Jan 2012 13:01:27 +0100 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The processing of softirqs in irq thread context is a performance gain for the non-rt workloads of a system, but it's counterproductive for diff --git a/debian/patches/features/all/rt/irqchip-gic-v3-its-Make-its_lock-a-raw_spin_lock_t.patch b/debian/patches-rt/irqchip-gic-v3-its-Make-its_lock-a-raw_spin_lock_t.patch similarity index 98% rename from debian/patches/features/all/rt/irqchip-gic-v3-its-Make-its_lock-a-raw_spin_lock_t.patch rename to debian/patches-rt/irqchip-gic-v3-its-Make-its_lock-a-raw_spin_lock_t.patch index caccf8bda..32a17c83d 100644 --- a/debian/patches/features/all/rt/irqchip-gic-v3-its-Make-its_lock-a-raw_spin_lock_t.patch +++ b/debian/patches-rt/irqchip-gic-v3-its-Make-its_lock-a-raw_spin_lock_t.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Wed, 18 Jul 2018 17:42:04 +0200 Subject: [PATCH] irqchip/gic-v3-its: Make its_lock a raw_spin_lock_t -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz [ Upstream commit a8db74564b0c634667e1722264bde303d296f566 ] diff --git a/debian/patches/features/all/rt/irqchip-gic-v3-its-Move-pending-table-allocation-to-.patch b/debian/patches-rt/irqchip-gic-v3-its-Move-pending-table-allocation-to-.patch similarity index 97% rename from debian/patches/features/all/rt/irqchip-gic-v3-its-Move-pending-table-allocation-to-.patch rename to debian/patches-rt/irqchip-gic-v3-its-Move-pending-table-allocation-to-.patch index 49007ca4f..42f790702 100644 --- a/debian/patches/features/all/rt/irqchip-gic-v3-its-Move-pending-table-allocation-to-.patch +++ b/debian/patches-rt/irqchip-gic-v3-its-Move-pending-table-allocation-to-.patch @@ -1,9 +1,8 @@ -From 111e6bab739e34e1af72a6248e452ad85f2d216d Mon Sep 17 00:00:00 2001 From: Marc Zyngier Date: Fri, 27 Jul 2018 13:38:54 +0100 Subject: [PATCH] irqchip/gic-v3-its: Move pending table allocation to init time -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Signed-off-by: Marc Zyngier Signed-off-by: Sebastian Andrzej Siewior diff --git a/debian/patches/features/all/rt/irqwork-push_most_work_into_softirq_context.patch b/debian/patches-rt/irqwork-push_most_work_into_softirq_context.patch similarity index 99% rename from debian/patches/features/all/rt/irqwork-push_most_work_into_softirq_context.patch rename to debian/patches-rt/irqwork-push_most_work_into_softirq_context.patch index 3a4ac0f96..7a91a2a1c 100644 --- a/debian/patches/features/all/rt/irqwork-push_most_work_into_softirq_context.patch +++ b/debian/patches-rt/irqwork-push_most_work_into_softirq_context.patch @@ -1,7 +1,7 @@ Subject: irqwork: push most work into softirq context From: Sebastian Andrzej Siewior Date: Tue, 23 Jun 2015 15:32:51 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Initially we defered all irqwork into softirq because we didn't want the latency spikes if perf or another user was busy and delayed the RT task. diff --git a/debian/patches/features/all/rt/jump-label-rt.patch b/debian/patches-rt/jump-label-rt.patch similarity index 97% rename from debian/patches/features/all/rt/jump-label-rt.patch rename to debian/patches-rt/jump-label-rt.patch index a913d015f..6ca56a367 100644 --- a/debian/patches/features/all/rt/jump-label-rt.patch +++ b/debian/patches-rt/jump-label-rt.patch @@ -1,7 +1,7 @@ Subject: jump-label: disable if stop_machine() is used From: Thomas Gleixner Date: Wed, 08 Jul 2015 17:14:48 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Some architectures are using stop_machine() while switching the opcode which leads to latency spikes. diff --git a/debian/patches/features/all/rt/kconfig-disable-a-few-options-rt.patch b/debian/patches-rt/kconfig-disable-a-few-options-rt.patch similarity index 96% rename from debian/patches/features/all/rt/kconfig-disable-a-few-options-rt.patch rename to debian/patches-rt/kconfig-disable-a-few-options-rt.patch index be1bffbd7..1612a0da5 100644 --- a/debian/patches/features/all/rt/kconfig-disable-a-few-options-rt.patch +++ b/debian/patches-rt/kconfig-disable-a-few-options-rt.patch @@ -1,7 +1,7 @@ Subject: kconfig: Disable config options which are not RT compatible From: Thomas Gleixner Date: Sun, 24 Jul 2011 12:11:43 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Disable stuff which is known to have issues on RT diff --git a/debian/patches/features/all/rt/kconfig-preempt-rt-full.patch b/debian/patches-rt/kconfig-preempt-rt-full.patch similarity index 98% rename from debian/patches/features/all/rt/kconfig-preempt-rt-full.patch rename to debian/patches-rt/kconfig-preempt-rt-full.patch index 37b37b2ef..c7f6cbfc6 100644 --- a/debian/patches/features/all/rt/kconfig-preempt-rt-full.patch +++ b/debian/patches-rt/kconfig-preempt-rt-full.patch @@ -1,7 +1,7 @@ Subject: kconfig: Add PREEMPT_RT_FULL From: Thomas Gleixner Date: Wed, 29 Jun 2011 14:58:57 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Introduce the final symbol for PREEMPT_RT_FULL. diff --git a/debian/patches/features/all/rt/kernel-printk-Don-t-try-to-print-from-IRQ-NMI-region.patch b/debian/patches-rt/kernel-printk-Don-t-try-to-print-from-IRQ-NMI-region.patch similarity index 93% rename from debian/patches/features/all/rt/kernel-printk-Don-t-try-to-print-from-IRQ-NMI-region.patch rename to debian/patches-rt/kernel-printk-Don-t-try-to-print-from-IRQ-NMI-region.patch index 66a00fced..01cafe6ae 100644 --- a/debian/patches/features/all/rt/kernel-printk-Don-t-try-to-print-from-IRQ-NMI-region.patch +++ b/debian/patches-rt/kernel-printk-Don-t-try-to-print-from-IRQ-NMI-region.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Thu, 19 May 2016 17:45:27 +0200 Subject: [PATCH] kernel/printk: Don't try to print from IRQ/NMI region -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz On -RT we try to acquire sleeping locks which might lead to warnings from lockdep or a warn_on() from spin_try_lock() (which is a rtmutex on @@ -28,7 +28,7 @@ Signed-off-by: Sebastian Andrzej Siewior migrate_disable(); for_each_console(con) { if (exclusive_console && con != exclusive_console) -@@ -2519,6 +2524,11 @@ void console_unblank(void) +@@ -2528,6 +2533,11 @@ void console_unblank(void) { struct console *c; diff --git a/debian/patches/features/all/rt/kernel-sched-Provide-a-pointer-to-the-valid-CPU-mask.patch b/debian/patches-rt/kernel-sched-Provide-a-pointer-to-the-valid-CPU-mask.patch similarity index 99% rename from debian/patches/features/all/rt/kernel-sched-Provide-a-pointer-to-the-valid-CPU-mask.patch rename to debian/patches-rt/kernel-sched-Provide-a-pointer-to-the-valid-CPU-mask.patch index f832d4194..340087384 100644 --- a/debian/patches/features/all/rt/kernel-sched-Provide-a-pointer-to-the-valid-CPU-mask.patch +++ b/debian/patches-rt/kernel-sched-Provide-a-pointer-to-the-valid-CPU-mask.patch @@ -4,7 +4,7 @@ Subject: [PATCH] kernel: sched: Provide a pointer to the valid CPU mask MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz In commit 4b53a3412d66 ("sched/core: Remove the tsk_nr_cpus_allowed() wrapper") the tsk_nr_cpus_allowed() wrapper was removed. There was not diff --git a/debian/patches/features/all/rt/kernel-sched-move-stack-kprobe-clean-up-to-__put_tas.patch b/debian/patches-rt/kernel-sched-move-stack-kprobe-clean-up-to-__put_tas.patch similarity index 98% rename from debian/patches/features/all/rt/kernel-sched-move-stack-kprobe-clean-up-to-__put_tas.patch rename to debian/patches-rt/kernel-sched-move-stack-kprobe-clean-up-to-__put_tas.patch index 275d4d312..b09b5c872 100644 --- a/debian/patches/features/all/rt/kernel-sched-move-stack-kprobe-clean-up-to-__put_tas.patch +++ b/debian/patches-rt/kernel-sched-move-stack-kprobe-clean-up-to-__put_tas.patch @@ -2,7 +2,7 @@ From: Sebastian Andrzej Siewior Date: Mon, 21 Nov 2016 19:31:08 +0100 Subject: [PATCH] kernel/sched: move stack + kprobe clean up to __put_task_struct() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz There is no need to free the stack before the task struct (except for reasons mentioned in commit 68f24b08ee89 ("sched/core: Free the stack early if diff --git a/debian/patches/features/all/rt/kgb-serial-hackaround.patch b/debian/patches-rt/kgb-serial-hackaround.patch similarity index 98% rename from debian/patches/features/all/rt/kgb-serial-hackaround.patch rename to debian/patches-rt/kgb-serial-hackaround.patch index 7c9646565..cef946181 100644 --- a/debian/patches/features/all/rt/kgb-serial-hackaround.patch +++ b/debian/patches-rt/kgb-serial-hackaround.patch @@ -1,7 +1,7 @@ From: Jason Wessel Date: Thu, 28 Jul 2011 12:42:23 -0500 Subject: kgdb/serial: Short term workaround -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz On 07/27/2011 04:37 PM, Thomas Gleixner wrote: > - KGDB (not yet disabled) is reportedly unusable on -rt right now due diff --git a/debian/patches/features/all/rt/leds-trigger-disable-CPU-trigger-on-RT.patch b/debian/patches-rt/leds-trigger-disable-CPU-trigger-on-RT.patch similarity index 98% rename from debian/patches/features/all/rt/leds-trigger-disable-CPU-trigger-on-RT.patch rename to debian/patches-rt/leds-trigger-disable-CPU-trigger-on-RT.patch index 6f96bbfa2..422e8951f 100644 --- a/debian/patches/features/all/rt/leds-trigger-disable-CPU-trigger-on-RT.patch +++ b/debian/patches-rt/leds-trigger-disable-CPU-trigger-on-RT.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Thu, 23 Jan 2014 14:45:59 +0100 Subject: leds: trigger: disable CPU trigger on -RT -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz as it triggers: |CPU: 0 PID: 0 Comm: swapper Not tainted 3.12.8-rt10 #141 diff --git a/debian/patches/features/all/rt/libata-remove-ata_sff_data_xfer_noirq.patch b/debian/patches-rt/libata-remove-ata_sff_data_xfer_noirq.patch similarity index 98% rename from debian/patches/features/all/rt/libata-remove-ata_sff_data_xfer_noirq.patch rename to debian/patches-rt/libata-remove-ata_sff_data_xfer_noirq.patch index c5bed1ae9..045d9bc85 100644 --- a/debian/patches/features/all/rt/libata-remove-ata_sff_data_xfer_noirq.patch +++ b/debian/patches-rt/libata-remove-ata_sff_data_xfer_noirq.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Thu, 19 Apr 2018 12:55:14 +0200 Subject: [PATCH] libata: remove ata_sff_data_xfer_noirq() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz ata_sff_data_xfer_noirq() is invoked via the ->sff_data_xfer hook. The latter is invoked by ata_pio_sector(), atapi_send_cdb() and @@ -186,7 +186,7 @@ Signed-off-by: Sebastian Andrzej Siewior /** --- a/include/linux/libata.h +++ b/include/linux/libata.h -@@ -1856,8 +1856,6 @@ extern unsigned int ata_sff_data_xfer(st +@@ -1858,8 +1858,6 @@ extern unsigned int ata_sff_data_xfer(st unsigned char *buf, unsigned int buflen, int rw); extern unsigned int ata_sff_data_xfer32(struct ata_queued_cmd *qc, unsigned char *buf, unsigned int buflen, int rw); diff --git a/debian/patches/features/all/rt/list_bl-fixup-bogus-lockdep-warning.patch b/debian/patches-rt/list_bl-fixup-bogus-lockdep-warning.patch similarity index 98% rename from debian/patches/features/all/rt/list_bl-fixup-bogus-lockdep-warning.patch rename to debian/patches-rt/list_bl-fixup-bogus-lockdep-warning.patch index 3c8374d0e..658afe790 100644 --- a/debian/patches/features/all/rt/list_bl-fixup-bogus-lockdep-warning.patch +++ b/debian/patches-rt/list_bl-fixup-bogus-lockdep-warning.patch @@ -1,7 +1,7 @@ From: Josh Cartwright Date: Thu, 31 Mar 2016 00:04:25 -0500 Subject: [PATCH] list_bl: fixup bogus lockdep warning -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz At first glance, the use of 'static inline' seems appropriate for INIT_HLIST_BL_HEAD(). diff --git a/debian/patches/features/all/rt/list_bl.h-make-list-head-locking-RT-safe.patch b/debian/patches-rt/list_bl.h-make-list-head-locking-RT-safe.patch similarity index 99% rename from debian/patches/features/all/rt/list_bl.h-make-list-head-locking-RT-safe.patch rename to debian/patches-rt/list_bl.h-make-list-head-locking-RT-safe.patch index b04f2f809..53f2853e8 100644 --- a/debian/patches/features/all/rt/list_bl.h-make-list-head-locking-RT-safe.patch +++ b/debian/patches-rt/list_bl.h-make-list-head-locking-RT-safe.patch @@ -1,7 +1,7 @@ From: Paul Gortmaker Date: Fri, 21 Jun 2013 15:07:25 -0400 Subject: list_bl: Make list head locking RT safe -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz As per changes in include/linux/jbd_common.h for avoiding the bit_spin_locks on RT ("fs: jbd/jbd2: Make state lock and journal diff --git a/debian/patches/features/all/rt/locallock-provide-get-put-_locked_ptr-variants.patch b/debian/patches-rt/locallock-provide-get-put-_locked_ptr-variants.patch similarity index 97% rename from debian/patches/features/all/rt/locallock-provide-get-put-_locked_ptr-variants.patch rename to debian/patches-rt/locallock-provide-get-put-_locked_ptr-variants.patch index 36e693003..be67e78d3 100644 --- a/debian/patches/features/all/rt/locallock-provide-get-put-_locked_ptr-variants.patch +++ b/debian/patches-rt/locallock-provide-get-put-_locked_ptr-variants.patch @@ -1,7 +1,7 @@ From: Julia Cartwright Date: Mon, 7 May 2018 08:58:56 -0500 Subject: [PATCH] locallock: provide {get,put}_locked_ptr() variants -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Provide a set of locallocked accessors for pointers to per-CPU data; this is useful for dynamically-allocated per-CPU regions, for example. diff --git a/debian/patches/features/all/rt/localversion.patch b/debian/patches-rt/localversion.patch similarity index 90% rename from debian/patches/features/all/rt/localversion.patch rename to debian/patches-rt/localversion.patch index f865ab718..cf758ace9 100644 --- a/debian/patches/features/all/rt/localversion.patch +++ b/debian/patches-rt/localversion.patch @@ -1,7 +1,7 @@ Subject: Add localversion for -RT release From: Thomas Gleixner Date: Fri, 08 Jul 2011 20:25:16 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Signed-off-by: Thomas Gleixner --- @@ -11,4 +11,4 @@ Signed-off-by: Thomas Gleixner --- /dev/null +++ b/localversion-rt @@ -0,0 +1 @@ -+-rt3 ++-rt5 diff --git a/debian/patches/features/all/rt/lockdep-disable-self-test.patch b/debian/patches-rt/lockdep-disable-self-test.patch similarity index 97% rename from debian/patches/features/all/rt/lockdep-disable-self-test.patch rename to debian/patches-rt/lockdep-disable-self-test.patch index 56719b68d..e0578ff09 100644 --- a/debian/patches/features/all/rt/lockdep-disable-self-test.patch +++ b/debian/patches-rt/lockdep-disable-self-test.patch @@ -4,7 +4,7 @@ Subject: [PATCH] lockdep: disable self-test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The self-test wasn't always 100% accurate for RT. We disabled a few tests which failed because they had a different semantic for RT. Some diff --git a/debian/patches/features/all/rt/lockdep-no-softirq-accounting-on-rt.patch b/debian/patches-rt/lockdep-no-softirq-accounting-on-rt.patch similarity index 98% rename from debian/patches/features/all/rt/lockdep-no-softirq-accounting-on-rt.patch rename to debian/patches-rt/lockdep-no-softirq-accounting-on-rt.patch index c0f1f52bf..fb87b82b3 100644 --- a/debian/patches/features/all/rt/lockdep-no-softirq-accounting-on-rt.patch +++ b/debian/patches-rt/lockdep-no-softirq-accounting-on-rt.patch @@ -1,7 +1,7 @@ Subject: lockdep: Make it RT aware From: Thomas Gleixner Date: Sun, 17 Jul 2011 18:51:23 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz teach lockdep that we don't really do softirqs on -RT. diff --git a/debian/patches/features/all/rt/lockdep-selftest-fix-warnings-due-to-missing-PREEMPT.patch b/debian/patches-rt/lockdep-selftest-fix-warnings-due-to-missing-PREEMPT.patch similarity index 99% rename from debian/patches/features/all/rt/lockdep-selftest-fix-warnings-due-to-missing-PREEMPT.patch rename to debian/patches-rt/lockdep-selftest-fix-warnings-due-to-missing-PREEMPT.patch index 6b6a86686..79cd40e47 100644 --- a/debian/patches/features/all/rt/lockdep-selftest-fix-warnings-due-to-missing-PREEMPT.patch +++ b/debian/patches-rt/lockdep-selftest-fix-warnings-due-to-missing-PREEMPT.patch @@ -1,7 +1,7 @@ From: Josh Cartwright Date: Wed, 28 Jan 2015 13:08:45 -0600 Subject: lockdep: selftest: fix warnings due to missing PREEMPT_RT conditionals -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz "lockdep: Selftest: Only do hardirq context test for raw spinlock" disabled the execution of certain tests with PREEMPT_RT_FULL, but did diff --git a/debian/patches/features/all/rt/lockdep-selftest-only-do-hardirq-context-test-for-raw-spinlock.patch b/debian/patches-rt/lockdep-selftest-only-do-hardirq-context-test-for-raw-spinlock.patch similarity index 98% rename from debian/patches/features/all/rt/lockdep-selftest-only-do-hardirq-context-test-for-raw-spinlock.patch rename to debian/patches-rt/lockdep-selftest-only-do-hardirq-context-test-for-raw-spinlock.patch index 1b859bdf0..e4bdfe7d8 100644 --- a/debian/patches/features/all/rt/lockdep-selftest-only-do-hardirq-context-test-for-raw-spinlock.patch +++ b/debian/patches-rt/lockdep-selftest-only-do-hardirq-context-test-for-raw-spinlock.patch @@ -1,7 +1,7 @@ Subject: lockdep: selftest: Only do hardirq context test for raw spinlock From: Yong Zhang Date: Mon, 16 Apr 2012 15:01:56 +0800 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz From: Yong Zhang diff --git a/debian/patches/features/all/rt/locking-don-t-check-for-__LINUX_SPINLOCK_TYPES_H-on-.patch b/debian/patches-rt/locking-don-t-check-for-__LINUX_SPINLOCK_TYPES_H-on-.patch similarity index 99% rename from debian/patches/features/all/rt/locking-don-t-check-for-__LINUX_SPINLOCK_TYPES_H-on-.patch rename to debian/patches-rt/locking-don-t-check-for-__LINUX_SPINLOCK_TYPES_H-on-.patch index 6f45582ce..534ccfb25 100644 --- a/debian/patches/features/all/rt/locking-don-t-check-for-__LINUX_SPINLOCK_TYPES_H-on-.patch +++ b/debian/patches-rt/locking-don-t-check-for-__LINUX_SPINLOCK_TYPES_H-on-.patch @@ -2,7 +2,7 @@ From: Sebastian Andrzej Siewior Date: Fri, 4 Aug 2017 17:40:42 +0200 Subject: [PATCH 1/2] locking: don't check for __LINUX_SPINLOCK_TYPES_H on -RT archs -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Upstream uses arch_spinlock_t within spinlock_t and requests that spinlock_types.h header file is included first. diff --git a/debian/patches/features/all/rt/locking-locktorture-Do-NOT-include-rwlock.h-directly.patch b/debian/patches-rt/locking-locktorture-Do-NOT-include-rwlock.h-directly.patch similarity index 96% rename from debian/patches/features/all/rt/locking-locktorture-Do-NOT-include-rwlock.h-directly.patch rename to debian/patches-rt/locking-locktorture-Do-NOT-include-rwlock.h-directly.patch index 8a1f94707..8a9c4b9fd 100644 --- a/debian/patches/features/all/rt/locking-locktorture-Do-NOT-include-rwlock.h-directly.patch +++ b/debian/patches-rt/locking-locktorture-Do-NOT-include-rwlock.h-directly.patch @@ -1,7 +1,7 @@ From: "Wolfgang M. Reimer" Date: Tue, 21 Jul 2015 16:20:07 +0200 Subject: locking: locktorture: Do NOT include rwlock.h directly -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Including rwlock.h directly will cause kernel builds to fail if CONFIG_PREEMPT_RT_FULL is defined. The correct header file diff --git a/debian/patches/features/all/rt/locking-rt-mutex-fix-deadlock-in-device-mapper-block.patch b/debian/patches-rt/locking-rt-mutex-fix-deadlock-in-device-mapper-block.patch similarity index 98% rename from debian/patches/features/all/rt/locking-rt-mutex-fix-deadlock-in-device-mapper-block.patch rename to debian/patches-rt/locking-rt-mutex-fix-deadlock-in-device-mapper-block.patch index b751a388c..d82a845a4 100644 --- a/debian/patches/features/all/rt/locking-rt-mutex-fix-deadlock-in-device-mapper-block.patch +++ b/debian/patches-rt/locking-rt-mutex-fix-deadlock-in-device-mapper-block.patch @@ -1,7 +1,7 @@ From: Mikulas Patocka Date: Mon, 13 Nov 2017 12:56:53 -0500 Subject: [PATCH] locking/rt-mutex: fix deadlock in device mapper / block-IO -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz When some block device driver creates a bio and submits it to another block device driver, the bio is added to current->bio_list (in order to diff --git a/debian/patches/features/all/rt/locking-rtmutex-re-init-the-wait_lock-in-rt_mutex_in.patch b/debian/patches-rt/locking-rtmutex-re-init-the-wait_lock-in-rt_mutex_in.patch similarity index 97% rename from debian/patches/features/all/rt/locking-rtmutex-re-init-the-wait_lock-in-rt_mutex_in.patch rename to debian/patches-rt/locking-rtmutex-re-init-the-wait_lock-in-rt_mutex_in.patch index 7ab67ef66..b7213f293 100644 --- a/debian/patches/features/all/rt/locking-rtmutex-re-init-the-wait_lock-in-rt_mutex_in.patch +++ b/debian/patches-rt/locking-rtmutex-re-init-the-wait_lock-in-rt_mutex_in.patch @@ -2,7 +2,7 @@ From: Sebastian Andrzej Siewior Date: Thu, 16 Nov 2017 16:48:48 +0100 Subject: [PATCH] locking/rtmutex: re-init the wait_lock in rt_mutex_init_proxy_locked() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz We could provide a key-class for the lockdep (and fixup all callers) or move the init to all callers (like it was) in order to avoid lockdep diff --git a/debian/patches/features/all/rt/md-disable-bcache.patch b/debian/patches-rt/md-disable-bcache.patch similarity index 97% rename from debian/patches/features/all/rt/md-disable-bcache.patch rename to debian/patches-rt/md-disable-bcache.patch index c9f492dfb..0f20c4217 100644 --- a/debian/patches/features/all/rt/md-disable-bcache.patch +++ b/debian/patches-rt/md-disable-bcache.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Thu, 29 Aug 2013 11:48:57 +0200 Subject: md: disable bcache -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz It uses anon semaphores |drivers/md/bcache/request.c: In function ‘cached_dev_write_complete’: diff --git a/debian/patches/features/all/rt/md-raid5-percpu-handling-rt-aware.patch b/debian/patches-rt/md-raid5-percpu-handling-rt-aware.patch similarity index 98% rename from debian/patches/features/all/rt/md-raid5-percpu-handling-rt-aware.patch rename to debian/patches-rt/md-raid5-percpu-handling-rt-aware.patch index 1b7c1ca7b..532a13acd 100644 --- a/debian/patches/features/all/rt/md-raid5-percpu-handling-rt-aware.patch +++ b/debian/patches-rt/md-raid5-percpu-handling-rt-aware.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Tue, 6 Apr 2010 16:51:31 +0200 Subject: md: raid5: Make raid5_percpu handling RT aware -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz __raid_run_ops() disables preemption with get_cpu() around the access to the raid5_percpu variables. That causes scheduling while atomic diff --git a/debian/patches/features/all/rt/mips-disable-highmem-on-rt.patch b/debian/patches-rt/mips-disable-highmem-on-rt.patch similarity index 95% rename from debian/patches/features/all/rt/mips-disable-highmem-on-rt.patch rename to debian/patches-rt/mips-disable-highmem-on-rt.patch index 987aec10e..740f90fd9 100644 --- a/debian/patches/features/all/rt/mips-disable-highmem-on-rt.patch +++ b/debian/patches-rt/mips-disable-highmem-on-rt.patch @@ -1,7 +1,7 @@ Subject: mips: Disable highmem on RT From: Thomas Gleixner Date: Mon, 18 Jul 2011 17:10:12 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The current highmem handling on -RT is not compatible and needs fixups. diff --git a/debian/patches/features/all/rt/mm-convert-swap-to-percpu-locked.patch b/debian/patches-rt/mm-convert-swap-to-percpu-locked.patch similarity index 99% rename from debian/patches/features/all/rt/mm-convert-swap-to-percpu-locked.patch rename to debian/patches-rt/mm-convert-swap-to-percpu-locked.patch index 58edd1cae..67b96c248 100644 --- a/debian/patches/features/all/rt/mm-convert-swap-to-percpu-locked.patch +++ b/debian/patches-rt/mm-convert-swap-to-percpu-locked.patch @@ -1,7 +1,7 @@ From: Ingo Molnar Date: Fri, 3 Jul 2009 08:29:51 -0500 Subject: mm/swap: Convert to percpu locked -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Replace global locks (get_cpu + local_irq_save) with "local_locks()". Currently there is one of for "rotate" and one for "swap". diff --git a/debian/patches/features/all/rt/mm-disable-sloub-rt.patch b/debian/patches-rt/mm-disable-sloub-rt.patch similarity index 96% rename from debian/patches/features/all/rt/mm-disable-sloub-rt.patch rename to debian/patches-rt/mm-disable-sloub-rt.patch index 58f2faece..809ea7ba4 100644 --- a/debian/patches/features/all/rt/mm-disable-sloub-rt.patch +++ b/debian/patches-rt/mm-disable-sloub-rt.patch @@ -1,7 +1,7 @@ From: Ingo Molnar Date: Fri, 3 Jul 2009 08:44:03 -0500 Subject: mm: Allow only slub on RT -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Disable SLAB and SLOB on -RT. Only SLUB is adopted to -RT needs. diff --git a/debian/patches/features/all/rt/mm-enable-slub.patch b/debian/patches-rt/mm-enable-slub.patch similarity index 96% rename from debian/patches/features/all/rt/mm-enable-slub.patch rename to debian/patches-rt/mm-enable-slub.patch index 3bebf71dd..908ad73f5 100644 --- a/debian/patches/features/all/rt/mm-enable-slub.patch +++ b/debian/patches-rt/mm-enable-slub.patch @@ -1,7 +1,7 @@ Subject: mm: Enable SLUB for RT From: Thomas Gleixner Date: Thu, 25 Oct 2012 10:32:35 +0100 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Avoid the memory allocation in IRQ section diff --git a/debian/patches/features/all/rt/mm-make-vmstat-rt-aware.patch b/debian/patches-rt/mm-make-vmstat-rt-aware.patch similarity index 99% rename from debian/patches/features/all/rt/mm-make-vmstat-rt-aware.patch rename to debian/patches-rt/mm-make-vmstat-rt-aware.patch index de562c2ab..1d62b36b9 100644 --- a/debian/patches/features/all/rt/mm-make-vmstat-rt-aware.patch +++ b/debian/patches-rt/mm-make-vmstat-rt-aware.patch @@ -1,7 +1,7 @@ From: Ingo Molnar Date: Fri, 3 Jul 2009 08:30:13 -0500 Subject: mm/vmstat: Protect per cpu variables with preempt disable on RT -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Disable preemption on -RT for the vmstat code. On vanila the code runs in IRQ-off regions while on -RT it is not. "preempt_disable" ensures that the diff --git a/debian/patches/features/all/rt/mm-memcontrol-Don-t-call-schedule_work_on-in-preempt.patch b/debian/patches-rt/mm-memcontrol-Don-t-call-schedule_work_on-in-preempt.patch similarity index 98% rename from debian/patches/features/all/rt/mm-memcontrol-Don-t-call-schedule_work_on-in-preempt.patch rename to debian/patches-rt/mm-memcontrol-Don-t-call-schedule_work_on-in-preempt.patch index ff3dd701a..475addcf1 100644 --- a/debian/patches/features/all/rt/mm-memcontrol-Don-t-call-schedule_work_on-in-preempt.patch +++ b/debian/patches-rt/mm-memcontrol-Don-t-call-schedule_work_on-in-preempt.patch @@ -1,7 +1,7 @@ From: Yang Shi Subject: mm/memcontrol: Don't call schedule_work_on in preemption disabled context Date: Wed, 30 Oct 2013 11:48:33 -0700 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The following trace is triggered when running ltp oom test cases: diff --git a/debian/patches/features/all/rt/mm-memcontrol-do_not_disable_irq.patch b/debian/patches-rt/mm-memcontrol-do_not_disable_irq.patch similarity index 99% rename from debian/patches/features/all/rt/mm-memcontrol-do_not_disable_irq.patch rename to debian/patches-rt/mm-memcontrol-do_not_disable_irq.patch index faaf2c1d0..b9d050677 100644 --- a/debian/patches/features/all/rt/mm-memcontrol-do_not_disable_irq.patch +++ b/debian/patches-rt/mm-memcontrol-do_not_disable_irq.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Subject: mm/memcontrol: Replace local_irq_disable with local locks Date: Wed, 28 Jan 2015 17:14:16 +0100 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz There are a few local_irq_disable() which then take sleeping locks. This patch converts them local locks. diff --git a/debian/patches/features/all/rt/mm-page_alloc-rt-friendly-per-cpu-pages.patch b/debian/patches-rt/mm-page_alloc-rt-friendly-per-cpu-pages.patch similarity index 99% rename from debian/patches/features/all/rt/mm-page_alloc-rt-friendly-per-cpu-pages.patch rename to debian/patches-rt/mm-page_alloc-rt-friendly-per-cpu-pages.patch index 13461de08..ddbca964a 100644 --- a/debian/patches/features/all/rt/mm-page_alloc-rt-friendly-per-cpu-pages.patch +++ b/debian/patches-rt/mm-page_alloc-rt-friendly-per-cpu-pages.patch @@ -1,7 +1,7 @@ From: Ingo Molnar Date: Fri, 3 Jul 2009 08:29:37 -0500 Subject: mm: page_alloc: rt-friendly per-cpu pages -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz rt-friendly per-cpu pages: convert the irqs-off per-cpu locking method into a preemptible, explicit-per-cpu-locks method. diff --git a/debian/patches/features/all/rt/mm-perform-lru_add_drain_all-remotely.patch b/debian/patches-rt/mm-perform-lru_add_drain_all-remotely.patch similarity index 99% rename from debian/patches/features/all/rt/mm-perform-lru_add_drain_all-remotely.patch rename to debian/patches-rt/mm-perform-lru_add_drain_all-remotely.patch index a8cd65232..5c86d2dd6 100644 --- a/debian/patches/features/all/rt/mm-perform-lru_add_drain_all-remotely.patch +++ b/debian/patches-rt/mm-perform-lru_add_drain_all-remotely.patch @@ -1,7 +1,7 @@ From: Luiz Capitulino Date: Fri, 27 May 2016 15:03:28 +0200 Subject: [PATCH] mm: perform lru_add_drain_all() remotely -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz lru_add_drain_all() works by scheduling lru_add_drain_cpu() to run on all CPUs that have non-empty LRU pagevecs and then waiting for diff --git a/debian/patches/features/all/rt/mm-protect-activate-switch-mm.patch b/debian/patches-rt/mm-protect-activate-switch-mm.patch similarity index 98% rename from debian/patches/features/all/rt/mm-protect-activate-switch-mm.patch rename to debian/patches-rt/mm-protect-activate-switch-mm.patch index ca543904c..06724d9cc 100644 --- a/debian/patches/features/all/rt/mm-protect-activate-switch-mm.patch +++ b/debian/patches-rt/mm-protect-activate-switch-mm.patch @@ -1,7 +1,7 @@ From: Yong Zhang Date: Tue, 15 May 2012 13:53:56 +0800 Subject: mm: Protect activate_mm() by preempt_[disable&enable]_rt() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz User preempt_*_rt instead of local_irq_*_rt or otherwise there will be warning on ARM like below: diff --git a/debian/patches/features/all/rt/mm-rt-kmap-atomic-scheduling.patch b/debian/patches-rt/mm-rt-kmap-atomic-scheduling.patch similarity index 99% rename from debian/patches/features/all/rt/mm-rt-kmap-atomic-scheduling.patch rename to debian/patches-rt/mm-rt-kmap-atomic-scheduling.patch index 81f9d6d46..ff117af10 100644 --- a/debian/patches/features/all/rt/mm-rt-kmap-atomic-scheduling.patch +++ b/debian/patches-rt/mm-rt-kmap-atomic-scheduling.patch @@ -1,7 +1,7 @@ Subject: mm, rt: kmap_atomic scheduling From: Peter Zijlstra Date: Thu, 28 Jul 2011 10:43:51 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz In fact, with migrate_disable() existing one could play games with kmap_atomic. You could save/restore the kmap_atomic slots on context diff --git a/debian/patches/features/all/rt/mm-scatterlist-dont-disable-irqs-on-RT.patch b/debian/patches-rt/mm-scatterlist-dont-disable-irqs-on-RT.patch similarity index 95% rename from debian/patches/features/all/rt/mm-scatterlist-dont-disable-irqs-on-RT.patch rename to debian/patches-rt/mm-scatterlist-dont-disable-irqs-on-RT.patch index dac89f929..3f5e3d371 100644 --- a/debian/patches/features/all/rt/mm-scatterlist-dont-disable-irqs-on-RT.patch +++ b/debian/patches-rt/mm-scatterlist-dont-disable-irqs-on-RT.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Fri, 3 Jul 2009 08:44:34 -0500 Subject: mm/scatterlist: Do not disable irqs on RT -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz For -RT it is enough to keep pagefault disabled (which is currently handled by kmap_atomic()). diff --git a/debian/patches/features/all/rt/mm-vmalloc-use-get-cpu-light.patch b/debian/patches-rt/mm-vmalloc-use-get-cpu-light.patch similarity index 98% rename from debian/patches/features/all/rt/mm-vmalloc-use-get-cpu-light.patch rename to debian/patches-rt/mm-vmalloc-use-get-cpu-light.patch index 4b3a07a28..5e2e83923 100644 --- a/debian/patches/features/all/rt/mm-vmalloc-use-get-cpu-light.patch +++ b/debian/patches-rt/mm-vmalloc-use-get-cpu-light.patch @@ -1,7 +1,7 @@ Subject: mm/vmalloc: Another preempt disable region which sucks From: Thomas Gleixner Date: Tue, 12 Jul 2011 11:39:36 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Avoid the preempt disable version of get_cpu_var(). The inner-lock should provide enough serialisation. diff --git a/debian/patches/features/all/rt/mm_zsmalloc_copy_with_get_cpu_var_and_locking.patch b/debian/patches-rt/mm_zsmalloc_copy_with_get_cpu_var_and_locking.patch similarity index 99% rename from debian/patches/features/all/rt/mm_zsmalloc_copy_with_get_cpu_var_and_locking.patch rename to debian/patches-rt/mm_zsmalloc_copy_with_get_cpu_var_and_locking.patch index 9fedde1c8..8205440c5 100644 --- a/debian/patches/features/all/rt/mm_zsmalloc_copy_with_get_cpu_var_and_locking.patch +++ b/debian/patches-rt/mm_zsmalloc_copy_with_get_cpu_var_and_locking.patch @@ -1,7 +1,7 @@ From: Mike Galbraith Date: Tue, 22 Mar 2016 11:16:09 +0100 Subject: [PATCH] mm/zsmalloc: copy with get_cpu_var() and locking -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz get_cpu_var() disables preemption and triggers a might_sleep() splat later. This is replaced with get_locked_var(). diff --git a/debian/patches/features/all/rt/mutex-no-spin-on-rt.patch b/debian/patches-rt/mutex-no-spin-on-rt.patch similarity index 96% rename from debian/patches/features/all/rt/mutex-no-spin-on-rt.patch rename to debian/patches-rt/mutex-no-spin-on-rt.patch index c1909f178..b9442841a 100644 --- a/debian/patches/features/all/rt/mutex-no-spin-on-rt.patch +++ b/debian/patches-rt/mutex-no-spin-on-rt.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Sun, 17 Jul 2011 21:51:45 +0200 Subject: locking: Disable spin on owner for RT -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Drop spin on owner for mutex / rwsem. We are most likely not using it but… diff --git a/debian/patches/features/all/rt/net-Have-__napi_schedule_irqoff-disable-interrupts-o.patch b/debian/patches-rt/net-Have-__napi_schedule_irqoff-disable-interrupts-o.patch similarity index 98% rename from debian/patches/features/all/rt/net-Have-__napi_schedule_irqoff-disable-interrupts-o.patch rename to debian/patches-rt/net-Have-__napi_schedule_irqoff-disable-interrupts-o.patch index 3cb86eaa2..15dd860a7 100644 --- a/debian/patches/features/all/rt/net-Have-__napi_schedule_irqoff-disable-interrupts-o.patch +++ b/debian/patches-rt/net-Have-__napi_schedule_irqoff-disable-interrupts-o.patch @@ -2,7 +2,7 @@ From: Steven Rostedt Date: Tue, 6 Dec 2016 17:50:30 -0500 Subject: [PATCH] net: Have __napi_schedule_irqoff() disable interrupts on RT -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz A customer hit a crash where the napi sd->poll_list became corrupted. The customer had the bnx2x driver, which does a diff --git a/debian/patches/features/all/rt/net-Qdisc-use-a-seqlock-instead-seqcount.patch b/debian/patches-rt/net-Qdisc-use-a-seqlock-instead-seqcount.patch similarity index 99% rename from debian/patches/features/all/rt/net-Qdisc-use-a-seqlock-instead-seqcount.patch rename to debian/patches-rt/net-Qdisc-use-a-seqlock-instead-seqcount.patch index 4e646d6b6..b6f43a9a6 100644 --- a/debian/patches/features/all/rt/net-Qdisc-use-a-seqlock-instead-seqcount.patch +++ b/debian/patches-rt/net-Qdisc-use-a-seqlock-instead-seqcount.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Wed, 14 Sep 2016 17:36:35 +0200 Subject: [PATCH] net/Qdisc: use a seqlock instead seqcount -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The seqcount disables preemption on -RT while it is held which can't remove. Also we don't want the reader to spin for ages if the writer is diff --git a/debian/patches/features/all/rt/net-add-a-lock-around-icmp_sk.patch b/debian/patches-rt/net-add-a-lock-around-icmp_sk.patch similarity index 98% rename from debian/patches/features/all/rt/net-add-a-lock-around-icmp_sk.patch rename to debian/patches-rt/net-add-a-lock-around-icmp_sk.patch index 9984de30f..b96ff98a1 100644 --- a/debian/patches/features/all/rt/net-add-a-lock-around-icmp_sk.patch +++ b/debian/patches-rt/net-add-a-lock-around-icmp_sk.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Wed, 31 Aug 2016 17:54:09 +0200 Subject: [PATCH] net: add a lock around icmp_sk() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz It looks like the this_cpu_ptr() access in icmp_sk() is protected with local_bh_disable(). To avoid missing serialization in -RT I am adding diff --git a/debian/patches/features/all/rt/net-add-back-the-missing-serialization-in-ip_send_un.patch b/debian/patches-rt/net-add-back-the-missing-serialization-in-ip_send_un.patch similarity index 99% rename from debian/patches/features/all/rt/net-add-back-the-missing-serialization-in-ip_send_un.patch rename to debian/patches-rt/net-add-back-the-missing-serialization-in-ip_send_un.patch index 1db4d32c9..ebcb75262 100644 --- a/debian/patches/features/all/rt/net-add-back-the-missing-serialization-in-ip_send_un.patch +++ b/debian/patches-rt/net-add-back-the-missing-serialization-in-ip_send_un.patch @@ -5,7 +5,7 @@ Subject: [PATCH] net: add back the missing serialization in MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Some time ago Sami Pietikäinen reported a crash on -RT in ip_send_unicast_reply() which was later fixed by Nicholas Mc Guire diff --git a/debian/patches/features/all/rt/net-another-local-irq-disable-alloc-atomic-headache.patch b/debian/patches-rt/net-another-local-irq-disable-alloc-atomic-headache.patch similarity index 98% rename from debian/patches/features/all/rt/net-another-local-irq-disable-alloc-atomic-headache.patch rename to debian/patches-rt/net-another-local-irq-disable-alloc-atomic-headache.patch index b4db95e00..b9894b3b6 100644 --- a/debian/patches/features/all/rt/net-another-local-irq-disable-alloc-atomic-headache.patch +++ b/debian/patches-rt/net-another-local-irq-disable-alloc-atomic-headache.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Wed, 26 Sep 2012 16:21:08 +0200 Subject: net: Another local_irq_disable/kmalloc headache -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Replace it by a local lock. Though that's pretty inefficient :( diff --git a/debian/patches/features/all/rt/net-core-protect-users-of-napi_alloc_cache-against-r.patch b/debian/patches-rt/net-core-protect-users-of-napi_alloc_cache-against-r.patch similarity index 99% rename from debian/patches/features/all/rt/net-core-protect-users-of-napi_alloc_cache-against-r.patch rename to debian/patches-rt/net-core-protect-users-of-napi_alloc_cache-against-r.patch index 57e5b2b5a..461ec58a1 100644 --- a/debian/patches/features/all/rt/net-core-protect-users-of-napi_alloc_cache-against-r.patch +++ b/debian/patches-rt/net-core-protect-users-of-napi_alloc_cache-against-r.patch @@ -2,7 +2,7 @@ From: Sebastian Andrzej Siewior Date: Fri, 15 Jan 2016 16:33:34 +0100 Subject: net/core: protect users of napi_alloc_cache against reentrance -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz On -RT the code running in BH can not be moved to another CPU so CPU local variable remain local. However the code can be preempted diff --git a/debian/patches/features/all/rt/net-core-use-local_bh_disable-in-netif_rx_ni.patch b/debian/patches-rt/net-core-use-local_bh_disable-in-netif_rx_ni.patch similarity index 97% rename from debian/patches/features/all/rt/net-core-use-local_bh_disable-in-netif_rx_ni.patch rename to debian/patches-rt/net-core-use-local_bh_disable-in-netif_rx_ni.patch index fe0d38597..2c4ed9061 100644 --- a/debian/patches/features/all/rt/net-core-use-local_bh_disable-in-netif_rx_ni.patch +++ b/debian/patches-rt/net-core-use-local_bh_disable-in-netif_rx_ni.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Fri, 16 Jun 2017 19:03:16 +0200 Subject: [PATCH] net/core: use local_bh_disable() in netif_rx_ni() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz In 2004 netif_rx_ni() gained a preempt_disable() section around netif_rx() and its do_softirq() + testing for it. The do_softirq() part diff --git a/debian/patches/features/all/rt/net-dev-always-take-qdisc-s-busylock-in-__dev_xmit_s.patch b/debian/patches-rt/net-dev-always-take-qdisc-s-busylock-in-__dev_xmit_s.patch similarity index 97% rename from debian/patches/features/all/rt/net-dev-always-take-qdisc-s-busylock-in-__dev_xmit_s.patch rename to debian/patches-rt/net-dev-always-take-qdisc-s-busylock-in-__dev_xmit_s.patch index 9ee0ed65c..ce390323b 100644 --- a/debian/patches/features/all/rt/net-dev-always-take-qdisc-s-busylock-in-__dev_xmit_s.patch +++ b/debian/patches-rt/net-dev-always-take-qdisc-s-busylock-in-__dev_xmit_s.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Wed, 30 Mar 2016 13:36:29 +0200 Subject: [PATCH] net: dev: always take qdisc's busylock in __dev_xmit_skb() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The root-lock is dropped before dev_hard_start_xmit() is invoked and after setting the __QDISC___STATE_RUNNING bit. If this task is now pushed away diff --git a/debian/patches/features/all/rt/net-fix-iptable-xt-write-recseq-begin-rt-fallout.patch b/debian/patches-rt/net-fix-iptable-xt-write-recseq-begin-rt-fallout.patch similarity index 98% rename from debian/patches/features/all/rt/net-fix-iptable-xt-write-recseq-begin-rt-fallout.patch rename to debian/patches-rt/net-fix-iptable-xt-write-recseq-begin-rt-fallout.patch index 9353812e1..319577d73 100644 --- a/debian/patches/features/all/rt/net-fix-iptable-xt-write-recseq-begin-rt-fallout.patch +++ b/debian/patches-rt/net-fix-iptable-xt-write-recseq-begin-rt-fallout.patch @@ -1,7 +1,7 @@ Subject: net: netfilter: Serialize xt_write_recseq sections on RT From: Thomas Gleixner Date: Sun, 28 Oct 2012 11:18:08 +0100 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The netfilter code relies only on the implicit semantics of local_bh_disable() for serializing wt_write_recseq sections. RT breaks diff --git a/debian/patches/features/all/rt/net-make-devnet_rename_seq-a-mutex.patch b/debian/patches-rt/net-make-devnet_rename_seq-a-mutex.patch similarity index 99% rename from debian/patches/features/all/rt/net-make-devnet_rename_seq-a-mutex.patch rename to debian/patches-rt/net-make-devnet_rename_seq-a-mutex.patch index cdcbfbac0..367ea1d68 100644 --- a/debian/patches/features/all/rt/net-make-devnet_rename_seq-a-mutex.patch +++ b/debian/patches-rt/net-make-devnet_rename_seq-a-mutex.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Wed, 20 Mar 2013 18:06:20 +0100 Subject: net: Add a mutex around devnet_rename_seq -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz On RT write_seqcount_begin() disables preemption and device_rename() allocates memory with GFP_KERNEL and grabs later the sysfs_mutex diff --git a/debian/patches/features/all/rt/net-move-xmit_recursion-to-per-task-variable-on-RT.patch b/debian/patches-rt/net-move-xmit_recursion-to-per-task-variable-on-RT.patch similarity index 99% rename from debian/patches/features/all/rt/net-move-xmit_recursion-to-per-task-variable-on-RT.patch rename to debian/patches-rt/net-move-xmit_recursion-to-per-task-variable-on-RT.patch index dbd396fe6..5c246015d 100644 --- a/debian/patches/features/all/rt/net-move-xmit_recursion-to-per-task-variable-on-RT.patch +++ b/debian/patches-rt/net-move-xmit_recursion-to-per-task-variable-on-RT.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Wed, 13 Jan 2016 15:55:02 +0100 Subject: net: move xmit_recursion to per-task variable on -RT -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz A softirq on -RT can be preempted. That means one task is in __dev_queue_xmit(), gets preempted and another task may enter diff --git a/debian/patches/features/all/rt/net-provide-a-way-to-delegate-processing-a-softirq-t.patch b/debian/patches-rt/net-provide-a-way-to-delegate-processing-a-softirq-t.patch similarity index 98% rename from debian/patches/features/all/rt/net-provide-a-way-to-delegate-processing-a-softirq-t.patch rename to debian/patches-rt/net-provide-a-way-to-delegate-processing-a-softirq-t.patch index a7618fb5a..8f67c0e13 100644 --- a/debian/patches/features/all/rt/net-provide-a-way-to-delegate-processing-a-softirq-t.patch +++ b/debian/patches-rt/net-provide-a-way-to-delegate-processing-a-softirq-t.patch @@ -2,7 +2,7 @@ From: Sebastian Andrzej Siewior Date: Wed, 20 Jan 2016 15:39:05 +0100 Subject: net: provide a way to delegate processing a softirq to ksoftirqd -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz If the NET_RX uses up all of his budget it moves the following NAPI invocations into the `ksoftirqd`. On -RT it does not do so. Instead it diff --git a/debian/patches/features/all/rt/net-sched-dev_deactivate_many-use-msleep-1-instead-o.patch b/debian/patches-rt/net-sched-dev_deactivate_many-use-msleep-1-instead-o.patch similarity index 99% rename from debian/patches/features/all/rt/net-sched-dev_deactivate_many-use-msleep-1-instead-o.patch rename to debian/patches-rt/net-sched-dev_deactivate_many-use-msleep-1-instead-o.patch index 0fd4628d2..5abbd0a73 100644 --- a/debian/patches/features/all/rt/net-sched-dev_deactivate_many-use-msleep-1-instead-o.patch +++ b/debian/patches-rt/net-sched-dev_deactivate_many-use-msleep-1-instead-o.patch @@ -1,7 +1,7 @@ From: Marc Kleine-Budde Date: Wed, 5 Mar 2014 00:49:47 +0100 Subject: net: sched: Use msleep() instead of yield() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz On PREEMPT_RT enabled systems the interrupt handler run as threads at prio 50 (by default). If a high priority userspace process tries to shut down a busy diff --git a/debian/patches/features/all/rt/net-use-cpu-chill.patch b/debian/patches-rt/net-use-cpu-chill.patch similarity index 98% rename from debian/patches/features/all/rt/net-use-cpu-chill.patch rename to debian/patches-rt/net-use-cpu-chill.patch index 60224c132..088ed22b2 100644 --- a/debian/patches/features/all/rt/net-use-cpu-chill.patch +++ b/debian/patches-rt/net-use-cpu-chill.patch @@ -1,7 +1,7 @@ Subject: net: Use cpu_chill() instead of cpu_relax() From: Thomas Gleixner Date: Wed, 07 Mar 2012 21:10:04 +0100 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Retry loops on RT might loop forever when the modifying side was preempted. Use cpu_chill() instead of cpu_relax() to let the system diff --git a/debian/patches/features/all/rt/net_disable_NET_RX_BUSY_POLL.patch b/debian/patches-rt/net_disable_NET_RX_BUSY_POLL.patch similarity index 96% rename from debian/patches/features/all/rt/net_disable_NET_RX_BUSY_POLL.patch rename to debian/patches-rt/net_disable_NET_RX_BUSY_POLL.patch index 61a53ec26..810a66a4a 100644 --- a/debian/patches/features/all/rt/net_disable_NET_RX_BUSY_POLL.patch +++ b/debian/patches-rt/net_disable_NET_RX_BUSY_POLL.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Sat, 27 May 2017 19:02:06 +0200 Subject: net/core: disable NET_RX_BUSY_POLL -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz sk_busy_loop() does preempt_disable() followed by a few operations which can take sleeping locks and may get long. diff --git a/debian/patches/features/all/rt/ntfs-avoid-disabling-interrupts-during-kmap_atomic.patch b/debian/patches-rt/ntfs-avoid-disabling-interrupts-during-kmap_atomic.patch similarity index 98% rename from debian/patches/features/all/rt/ntfs-avoid-disabling-interrupts-during-kmap_atomic.patch rename to debian/patches-rt/ntfs-avoid-disabling-interrupts-during-kmap_atomic.patch index 8e845b760..889ae343e 100644 --- a/debian/patches/features/all/rt/ntfs-avoid-disabling-interrupts-during-kmap_atomic.patch +++ b/debian/patches-rt/ntfs-avoid-disabling-interrupts-during-kmap_atomic.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Tue, 10 Apr 2018 17:54:32 +0200 Subject: [PATCH] ntfs: don't disable interrupts during kmap_atomic() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz ntfs_end_buffer_async_read() disables interrupts around kmap_atomic(). This is a leftover from the old kmap_atomic() implementation which relied on fixed diff --git a/debian/patches-rt/of-allocate-free-phandle-cache-outside-of-the-devtre.patch b/debian/patches-rt/of-allocate-free-phandle-cache-outside-of-the-devtre.patch new file mode 100644 index 000000000..b1d7f446a --- /dev/null +++ b/debian/patches-rt/of-allocate-free-phandle-cache-outside-of-the-devtre.patch @@ -0,0 +1,78 @@ +From: Sebastian Andrzej Siewior +Date: Fri, 31 Aug 2018 14:16:30 +0200 +Subject: [PATCH] of: allocate / free phandle cache outside of the devtree_lock +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz + +The phandle cache code allocates memory while holding devtree_lock which +is a raw_spinlock_t. Memory allocation (and free()) is not possible on +RT while a raw_spinlock_t is held. +Invoke the kfree() and kcalloc() while the lock is dropped. + +Cc: Rob Herring +Cc: Frank Rowand +Cc: devicetree@vger.kernel.org +Signed-off-by: Sebastian Andrzej Siewior +--- + drivers/of/base.c | 22 ++++++++++++++-------- + 1 file changed, 14 insertions(+), 8 deletions(-) + +--- a/drivers/of/base.c ++++ b/drivers/of/base.c +@@ -108,43 +108,49 @@ void of_populate_phandle_cache(void) + u32 cache_entries; + struct device_node *np; + u32 phandles = 0; ++ struct device_node **shadow; + + raw_spin_lock_irqsave(&devtree_lock, flags); +- +- kfree(phandle_cache); ++ shadow = phandle_cache; + phandle_cache = NULL; + + for_each_of_allnodes(np) + if (np->phandle && np->phandle != OF_PHANDLE_ILLEGAL) + phandles++; + ++ raw_spin_unlock_irqrestore(&devtree_lock, flags); ++ + cache_entries = roundup_pow_of_two(phandles); + phandle_cache_mask = cache_entries - 1; + +- phandle_cache = kcalloc(cache_entries, sizeof(*phandle_cache), +- GFP_ATOMIC); +- if (!phandle_cache) +- goto out; ++ kfree(shadow); ++ shadow = kcalloc(cache_entries, sizeof(*phandle_cache), GFP_KERNEL); ++ ++ if (!shadow) ++ return; ++ raw_spin_lock_irqsave(&devtree_lock, flags); ++ phandle_cache = shadow; + + for_each_of_allnodes(np) + if (np->phandle && np->phandle != OF_PHANDLE_ILLEGAL) + phandle_cache[np->phandle & phandle_cache_mask] = np; + +-out: + raw_spin_unlock_irqrestore(&devtree_lock, flags); + } + + int of_free_phandle_cache(void) + { + unsigned long flags; ++ struct device_node **shadow; + + raw_spin_lock_irqsave(&devtree_lock, flags); + +- kfree(phandle_cache); ++ shadow = phandle_cache; + phandle_cache = NULL; + + raw_spin_unlock_irqrestore(&devtree_lock, flags); + ++ kfree(shadow); + return 0; + } + #if !defined(CONFIG_MODULES) diff --git a/debian/patches/features/all/rt/oleg-signal-rt-fix.patch b/debian/patches-rt/oleg-signal-rt-fix.patch similarity index 99% rename from debian/patches/features/all/rt/oleg-signal-rt-fix.patch rename to debian/patches-rt/oleg-signal-rt-fix.patch index a68675dcd..38ae98bd4 100644 --- a/debian/patches/features/all/rt/oleg-signal-rt-fix.patch +++ b/debian/patches-rt/oleg-signal-rt-fix.patch @@ -1,7 +1,7 @@ From: Oleg Nesterov Date: Tue, 14 Jul 2015 14:26:34 +0200 Subject: signal/x86: Delay calling signals in atomic -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz On x86_64 we must disable preemption before we enable interrupts for stack faults, int3 and debugging, because the current task is using diff --git a/debian/patches/features/all/rt/panic-disable-random-on-rt.patch b/debian/patches-rt/panic-disable-random-on-rt.patch similarity index 95% rename from debian/patches/features/all/rt/panic-disable-random-on-rt.patch rename to debian/patches-rt/panic-disable-random-on-rt.patch index b87597dfa..8c42306aa 100644 --- a/debian/patches/features/all/rt/panic-disable-random-on-rt.patch +++ b/debian/patches-rt/panic-disable-random-on-rt.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Tue, 14 Jul 2015 14:26:34 +0200 Subject: panic: skip get_random_bytes for RT_FULL in init_oops_id -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Disable on -RT. If this is invoked from irq-context we will have problems to acquire the sleeping lock. diff --git a/debian/patches/features/all/rt/patch-to-introduce-rcu-bh-qs-where-safe-from-softirq.patch b/debian/patches-rt/patch-to-introduce-rcu-bh-qs-where-safe-from-softirq.patch similarity index 99% rename from debian/patches/features/all/rt/patch-to-introduce-rcu-bh-qs-where-safe-from-softirq.patch rename to debian/patches-rt/patch-to-introduce-rcu-bh-qs-where-safe-from-softirq.patch index 039d47548..12ab16ae9 100644 --- a/debian/patches/features/all/rt/patch-to-introduce-rcu-bh-qs-where-safe-from-softirq.patch +++ b/debian/patches-rt/patch-to-introduce-rcu-bh-qs-where-safe-from-softirq.patch @@ -1,7 +1,7 @@ Subject: rcu: Make ksoftirqd do RCU quiescent states From: "Paul E. McKenney" Date: Wed, 5 Oct 2011 11:45:18 -0700 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Implementing RCU-bh in terms of RCU-preempt makes the system vulnerable to network-based denial-of-service attacks. This patch therefore diff --git a/debian/patches/features/all/rt/pci-switchtec-Don-t-use-completion-s-wait-queue.patch b/debian/patches-rt/pci-switchtec-Don-t-use-completion-s-wait-queue.patch similarity index 99% rename from debian/patches/features/all/rt/pci-switchtec-Don-t-use-completion-s-wait-queue.patch rename to debian/patches-rt/pci-switchtec-Don-t-use-completion-s-wait-queue.patch index c30c316c8..0ba1936e3 100644 --- a/debian/patches/features/all/rt/pci-switchtec-Don-t-use-completion-s-wait-queue.patch +++ b/debian/patches-rt/pci-switchtec-Don-t-use-completion-s-wait-queue.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Wed, 4 Oct 2017 10:24:23 +0200 Subject: [PATCH] pci/switchtec: Don't use completion's wait queue -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The poll callback is using completion's wait_queue_head_t member and puts it in poll_wait() so the poll() caller gets a wakeup after command diff --git a/debian/patches/features/all/rt/peter_zijlstra-frob-rcu.patch b/debian/patches-rt/peter_zijlstra-frob-rcu.patch similarity index 99% rename from debian/patches/features/all/rt/peter_zijlstra-frob-rcu.patch rename to debian/patches-rt/peter_zijlstra-frob-rcu.patch index 726e66c86..cdfbc4247 100644 --- a/debian/patches/features/all/rt/peter_zijlstra-frob-rcu.patch +++ b/debian/patches-rt/peter_zijlstra-frob-rcu.patch @@ -1,7 +1,7 @@ Subject: rcu: Frob softirq test From: Peter Zijlstra Date: Sat Aug 13 00:23:17 CEST 2011 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz With RT_FULL we get the below wreckage: diff --git a/debian/patches/features/all/rt/peterz-percpu-rwsem-rt.patch b/debian/patches-rt/peterz-percpu-rwsem-rt.patch similarity index 99% rename from debian/patches/features/all/rt/peterz-percpu-rwsem-rt.patch rename to debian/patches-rt/peterz-percpu-rwsem-rt.patch index 7552c72e5..92d5b2fa7 100644 --- a/debian/patches/features/all/rt/peterz-percpu-rwsem-rt.patch +++ b/debian/patches-rt/peterz-percpu-rwsem-rt.patch @@ -1,7 +1,7 @@ Subject: locking/percpu-rwsem: Remove preempt_disable variants From: Peter Zijlstra Date: Wed Nov 23 16:29:32 CET 2016 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Effective revert commit: diff --git a/debian/patches/features/all/rt/pid.h-include-atomic.h.patch b/debian/patches-rt/pid.h-include-atomic.h.patch similarity index 96% rename from debian/patches/features/all/rt/pid.h-include-atomic.h.patch rename to debian/patches-rt/pid.h-include-atomic.h.patch index fb820526a..83c25da79 100644 --- a/debian/patches/features/all/rt/pid.h-include-atomic.h.patch +++ b/debian/patches-rt/pid.h-include-atomic.h.patch @@ -1,7 +1,7 @@ From: Grygorii Strashko Date: Tue, 21 Jul 2015 19:43:56 +0300 Subject: pid.h: include atomic.h -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz This patch fixes build error: CC kernel/pid_namespace.o diff --git a/debian/patches/features/all/rt/posix-timers-thread-posix-cpu-timers-on-rt.patch b/debian/patches-rt/posix-timers-thread-posix-cpu-timers-on-rt.patch similarity index 99% rename from debian/patches/features/all/rt/posix-timers-thread-posix-cpu-timers-on-rt.patch rename to debian/patches-rt/posix-timers-thread-posix-cpu-timers-on-rt.patch index 4040d1f70..b35530498 100644 --- a/debian/patches/features/all/rt/posix-timers-thread-posix-cpu-timers-on-rt.patch +++ b/debian/patches-rt/posix-timers-thread-posix-cpu-timers-on-rt.patch @@ -1,7 +1,7 @@ From: John Stultz Date: Fri, 3 Jul 2009 08:29:58 -0500 Subject: posix-timers: Thread posix-cpu-timers on -rt -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz posix-cpu-timer code takes non -rt safe locks in hard irq context. Move it to a thread. diff --git a/debian/patches/features/all/rt/power-disable-highmem-on-rt.patch b/debian/patches-rt/power-disable-highmem-on-rt.patch similarity index 95% rename from debian/patches/features/all/rt/power-disable-highmem-on-rt.patch rename to debian/patches-rt/power-disable-highmem-on-rt.patch index 4f6ca1308..e0c073adf 100644 --- a/debian/patches/features/all/rt/power-disable-highmem-on-rt.patch +++ b/debian/patches-rt/power-disable-highmem-on-rt.patch @@ -1,7 +1,7 @@ Subject: powerpc: Disable highmem on RT From: Thomas Gleixner Date: Mon, 18 Jul 2011 17:08:34 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The current highmem handling on -RT is not compatible and needs fixups. diff --git a/debian/patches/features/all/rt/power-use-generic-rwsem-on-rt.patch b/debian/patches-rt/power-use-generic-rwsem-on-rt.patch similarity index 95% rename from debian/patches/features/all/rt/power-use-generic-rwsem-on-rt.patch rename to debian/patches-rt/power-use-generic-rwsem-on-rt.patch index 7c70f9dd9..6238f917b 100644 --- a/debian/patches/features/all/rt/power-use-generic-rwsem-on-rt.patch +++ b/debian/patches-rt/power-use-generic-rwsem-on-rt.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Tue, 14 Jul 2015 14:26:34 +0200 Subject: powerpc: Use generic rwsem on RT -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Use generic code which uses rtmutex diff --git a/debian/patches/features/all/rt/powerpc-kvm-Disable-in-kernel-MPIC-emulation-for-PRE.patch b/debian/patches-rt/powerpc-kvm-Disable-in-kernel-MPIC-emulation-for-PRE.patch similarity index 98% rename from debian/patches/features/all/rt/powerpc-kvm-Disable-in-kernel-MPIC-emulation-for-PRE.patch rename to debian/patches-rt/powerpc-kvm-Disable-in-kernel-MPIC-emulation-for-PRE.patch index 8de7ad648..d9cc7e358 100644 --- a/debian/patches/features/all/rt/powerpc-kvm-Disable-in-kernel-MPIC-emulation-for-PRE.patch +++ b/debian/patches-rt/powerpc-kvm-Disable-in-kernel-MPIC-emulation-for-PRE.patch @@ -1,7 +1,7 @@ From: Bogdan Purcareata Date: Fri, 24 Apr 2015 15:53:13 +0000 Subject: powerpc/kvm: Disable in-kernel MPIC emulation for PREEMPT_RT_FULL -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz While converting the openpic emulation code to use a raw_spinlock_t enables guests to run on RT, there's still a performance issue. For interrupts sent in diff --git a/debian/patches/features/all/rt/powerpc-preempt-lazy-support.patch b/debian/patches-rt/powerpc-preempt-lazy-support.patch similarity index 99% rename from debian/patches/features/all/rt/powerpc-preempt-lazy-support.patch rename to debian/patches-rt/powerpc-preempt-lazy-support.patch index 39260e4b8..e825ba274 100644 --- a/debian/patches/features/all/rt/powerpc-preempt-lazy-support.patch +++ b/debian/patches-rt/powerpc-preempt-lazy-support.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Thu, 1 Nov 2012 10:14:11 +0100 Subject: powerpc: Add support for lazy preemption -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Implement the powerpc pieces for lazy preempt. diff --git a/debian/patches/features/all/rt/powerpc-ps3-device-init.c-adapt-to-completions-using.patch b/debian/patches-rt/powerpc-ps3-device-init.c-adapt-to-completions-using.patch similarity index 97% rename from debian/patches/features/all/rt/powerpc-ps3-device-init.c-adapt-to-completions-using.patch rename to debian/patches-rt/powerpc-ps3-device-init.c-adapt-to-completions-using.patch index aa967a0f1..60125dfa2 100644 --- a/debian/patches/features/all/rt/powerpc-ps3-device-init.c-adapt-to-completions-using.patch +++ b/debian/patches-rt/powerpc-ps3-device-init.c-adapt-to-completions-using.patch @@ -1,7 +1,7 @@ From: Paul Gortmaker Date: Sun, 31 May 2015 14:44:42 -0400 Subject: powerpc: ps3/device-init.c - adapt to completions using swait vs wait -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz To fix: diff --git a/debian/patches/features/all/rt/preempt-lazy-support.patch b/debian/patches-rt/preempt-lazy-support.patch similarity index 99% rename from debian/patches/features/all/rt/preempt-lazy-support.patch rename to debian/patches-rt/preempt-lazy-support.patch index 0404389f8..080e17013 100644 --- a/debian/patches/features/all/rt/preempt-lazy-support.patch +++ b/debian/patches-rt/preempt-lazy-support.patch @@ -1,7 +1,7 @@ Subject: sched: Add support for lazy preemption From: Thomas Gleixner Date: Fri, 26 Oct 2012 18:50:54 +0100 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz It has become an obsession to mitigate the determinism vs. throughput loss of RT. Looking at the mainline semantics of preemption points diff --git a/debian/patches/features/all/rt/preempt-nort-rt-variants.patch b/debian/patches-rt/preempt-nort-rt-variants.patch similarity index 97% rename from debian/patches/features/all/rt/preempt-nort-rt-variants.patch rename to debian/patches-rt/preempt-nort-rt-variants.patch index a3b6ac04e..e1f9bc37f 100644 --- a/debian/patches/features/all/rt/preempt-nort-rt-variants.patch +++ b/debian/patches-rt/preempt-nort-rt-variants.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Fri, 24 Jul 2009 12:38:56 +0200 Subject: preempt: Provide preempt_*_(no)rt variants -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz RT needs a few preempt_disable/enable points which are not necessary otherwise. Implement variants to avoid #ifdeffery. diff --git a/debian/patches/features/all/rt/printk-27force_early_printk-27-boot-param-to-help-with-debugging.patch b/debian/patches-rt/printk-27force_early_printk-27-boot-param-to-help-with-debugging.patch similarity index 96% rename from debian/patches/features/all/rt/printk-27force_early_printk-27-boot-param-to-help-with-debugging.patch rename to debian/patches-rt/printk-27force_early_printk-27-boot-param-to-help-with-debugging.patch index 32564b834..ec4369f53 100644 --- a/debian/patches/features/all/rt/printk-27force_early_printk-27-boot-param-to-help-with-debugging.patch +++ b/debian/patches-rt/printk-27force_early_printk-27-boot-param-to-help-with-debugging.patch @@ -1,7 +1,7 @@ Subject: printk: Add "force_early_printk" boot param to help with debugging From: Peter Zijlstra Date: Fri, 02 Sep 2011 14:41:29 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Gives me an option to screw printk and actually see what the machine says. diff --git a/debian/patches/features/all/rt/printk-kill.patch b/debian/patches-rt/printk-kill.patch similarity index 99% rename from debian/patches/features/all/rt/printk-kill.patch rename to debian/patches-rt/printk-kill.patch index 47845619e..7199c5489 100644 --- a/debian/patches/features/all/rt/printk-kill.patch +++ b/debian/patches-rt/printk-kill.patch @@ -1,7 +1,7 @@ Subject: printk: Add a printk kill switch From: Ingo Molnar Date: Fri, 22 Jul 2011 17:58:40 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Add a prinkt-kill-switch. This is used from (NMI) watchdog to ensure that it does not dead-lock with the early printk code. diff --git a/debian/patches/features/all/rt/printk-rt-aware.patch b/debian/patches-rt/printk-rt-aware.patch similarity index 93% rename from debian/patches/features/all/rt/printk-rt-aware.patch rename to debian/patches-rt/printk-rt-aware.patch index e5617be5b..bf4458afe 100644 --- a/debian/patches/features/all/rt/printk-rt-aware.patch +++ b/debian/patches-rt/printk-rt-aware.patch @@ -1,7 +1,7 @@ Subject: printk: Make rt aware From: Thomas Gleixner Date: Wed, 19 Sep 2012 14:50:37 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Drop the lock before calling the console driver and do not disable interrupts while printing to a serial console. @@ -53,7 +53,7 @@ Signed-off-by: Thomas Gleixner } int printk_delay_msec __read_mostly; -@@ -1958,20 +1970,30 @@ asmlinkage int vprintk_emit(int facility +@@ -1967,20 +1979,30 @@ asmlinkage int vprintk_emit(int facility /* If called from the scheduler, we can not call up(). */ if (!in_sched) { @@ -87,7 +87,7 @@ Signed-off-by: Thomas Gleixner } wake_up_klogd(); -@@ -2423,6 +2445,10 @@ void console_unlock(void) +@@ -2432,6 +2454,10 @@ void console_unlock(void) console_seq++; raw_spin_unlock(&logbuf_lock); @@ -98,7 +98,7 @@ Signed-off-by: Thomas Gleixner /* * While actively printing out messages, if another printk() * were to occur on another CPU, it may wait for this one to -@@ -2441,6 +2467,7 @@ void console_unlock(void) +@@ -2450,6 +2476,7 @@ void console_unlock(void) } printk_safe_exit_irqrestore(flags); diff --git a/debian/patches/features/all/rt/ptrace-fix-ptrace-vs-tasklist_lock-race.patch b/debian/patches-rt/ptrace-fix-ptrace-vs-tasklist_lock-race.patch similarity index 99% rename from debian/patches/features/all/rt/ptrace-fix-ptrace-vs-tasklist_lock-race.patch rename to debian/patches-rt/ptrace-fix-ptrace-vs-tasklist_lock-race.patch index 0408da627..43359a829 100644 --- a/debian/patches/features/all/rt/ptrace-fix-ptrace-vs-tasklist_lock-race.patch +++ b/debian/patches-rt/ptrace-fix-ptrace-vs-tasklist_lock-race.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Thu, 29 Aug 2013 18:21:04 +0200 Subject: ptrace: fix ptrace vs tasklist_lock race -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz As explained by Alexander Fyodorov : diff --git a/debian/patches/features/all/rt/radix-tree-use-local-locks.patch b/debian/patches-rt/radix-tree-use-local-locks.patch similarity index 99% rename from debian/patches/features/all/rt/radix-tree-use-local-locks.patch rename to debian/patches-rt/radix-tree-use-local-locks.patch index f1776aa9d..685246ff7 100644 --- a/debian/patches/features/all/rt/radix-tree-use-local-locks.patch +++ b/debian/patches-rt/radix-tree-use-local-locks.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Wed, 25 Jan 2017 16:34:27 +0100 Subject: [PATCH] radix-tree: use local locks -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The preload functionality uses per-CPU variables and preempt-disable to ensure that it does not switch CPUs during its usage. This patch adds diff --git a/debian/patches/features/all/rt/random-Remove-preempt-disabled-region.patch b/debian/patches-rt/random-Remove-preempt-disabled-region.patch similarity index 94% rename from debian/patches/features/all/rt/random-Remove-preempt-disabled-region.patch rename to debian/patches-rt/random-Remove-preempt-disabled-region.patch index fd2e870dc..02d880c12 100644 --- a/debian/patches/features/all/rt/random-Remove-preempt-disabled-region.patch +++ b/debian/patches-rt/random-Remove-preempt-disabled-region.patch @@ -1,8 +1,7 @@ -From 20690515ca3fd9baa92a3c915c74b14290fef13c Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Fri, 3 Jul 2009 08:29:30 -0500 Subject: [PATCH] random: Remove preempt disabled region -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz No need to keep preemption disabled across the whole function. diff --git a/debian/patches/features/all/rt/random-avoid-preempt_disable-ed-section.patch b/debian/patches-rt/random-avoid-preempt_disable-ed-section.patch similarity index 98% rename from debian/patches/features/all/rt/random-avoid-preempt_disable-ed-section.patch rename to debian/patches-rt/random-avoid-preempt_disable-ed-section.patch index 84041dc51..91762b3bc 100644 --- a/debian/patches/features/all/rt/random-avoid-preempt_disable-ed-section.patch +++ b/debian/patches-rt/random-avoid-preempt_disable-ed-section.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Fri, 12 May 2017 15:46:17 +0200 Subject: [PATCH] random: avoid preempt_disable()ed section -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz extract_crng() will use sleeping locks while in a preempt_disable() section due to get_cpu_var(). diff --git a/debian/patches/features/all/rt/random-make-it-work-on-rt.patch b/debian/patches-rt/random-make-it-work-on-rt.patch similarity index 99% rename from debian/patches/features/all/rt/random-make-it-work-on-rt.patch rename to debian/patches-rt/random-make-it-work-on-rt.patch index 2ebfce7a9..98f37b15f 100644 --- a/debian/patches/features/all/rt/random-make-it-work-on-rt.patch +++ b/debian/patches-rt/random-make-it-work-on-rt.patch @@ -1,7 +1,7 @@ Subject: random: Make it work on rt From: Thomas Gleixner Date: Tue, 21 Aug 2012 20:38:50 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Delegate the random insertion to the forced threaded interrupt handler. Store the return IP of the hard interrupt handler in the irq diff --git a/debian/patches/features/all/rt/rcu-Eliminate-softirq-processing-from-rcutree.patch b/debian/patches-rt/rcu-Eliminate-softirq-processing-from-rcutree.patch similarity index 99% rename from debian/patches/features/all/rt/rcu-Eliminate-softirq-processing-from-rcutree.patch rename to debian/patches-rt/rcu-Eliminate-softirq-processing-from-rcutree.patch index d20115dc5..4dfac63ca 100644 --- a/debian/patches/features/all/rt/rcu-Eliminate-softirq-processing-from-rcutree.patch +++ b/debian/patches-rt/rcu-Eliminate-softirq-processing-from-rcutree.patch @@ -1,7 +1,7 @@ From: "Paul E. McKenney" Date: Mon, 4 Nov 2013 13:21:10 -0800 Subject: rcu: Eliminate softirq processing from rcutree -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Running RCU out of softirq is a problem for some workloads that would like to manage RCU core processing independently of other softirq work, diff --git a/debian/patches-rt/rcu-Use-cpus_read_lock-while-looking-at-cpu_online_m.patch b/debian/patches-rt/rcu-Use-cpus_read_lock-while-looking-at-cpu_online_m.patch new file mode 100644 index 000000000..7e41f3fe9 --- /dev/null +++ b/debian/patches-rt/rcu-Use-cpus_read_lock-while-looking-at-cpu_online_m.patch @@ -0,0 +1,61 @@ +From: Sebastian Andrzej Siewior +Date: Mon, 10 Sep 2018 14:58:37 +0200 +Subject: [PATCH] rcu: Use cpus_read_lock() while looking at cpu_online_mask +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz + +It was possible that sync_rcu_exp_select_cpus() enqueued something on +CPU0 while CPU0 was offline. Such a work item wouldn't be processed +until CPU0 gets back online. This problem was addressed in commit +fcc6354365015 ("rcu: Make expedited GPs handle CPU 0 being offline"). I +don't think the issue fully addressed. + +Assume grplo = 0 and grphi = 7 and sync_rcu_exp_select_cpus() is invoked +on CPU1. The preempt_disable() section on CPU1 won't ensure that CPU0 +remains online between looking at cpu_online_mask and invoking +queue_work_on() on CPU1. + +Use cpus_read_lock() to ensure that `cpu' is not going down between +looking at cpu_online_mask at invoking queue_work_on() and waiting for +its completion. It is added around the loop + flush_work() which is +similar to work_on_cpu_safe() (and we can have multiple jobs running on +NUMA systems). + +Fixes: fcc6354365015 ("rcu: Make expedited GPs handle CPU 0 being + offline") +Signed-off-by: Sebastian Andrzej Siewior +--- + kernel/rcu/tree_exp.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +--- a/kernel/rcu/tree_exp.h ++++ b/kernel/rcu/tree_exp.h +@@ -479,6 +479,7 @@ static void sync_rcu_exp_select_cpus(str + sync_exp_reset_tree(rsp); + trace_rcu_exp_grace_period(rsp->name, rcu_exp_gp_seq_endval(rsp), TPS("select")); + ++ cpus_read_lock(); + /* Schedule work for each leaf rcu_node structure. */ + rcu_for_each_leaf_node(rsp, rnp) { + rnp->exp_need_flush = false; +@@ -493,13 +494,11 @@ static void sync_rcu_exp_select_cpus(str + continue; + } + INIT_WORK(&rnp->rew.rew_work, sync_rcu_exp_select_node_cpus); +- preempt_disable(); + cpu = cpumask_next(rnp->grplo - 1, cpu_online_mask); + /* If all offline, queue the work on an unbound CPU. */ + if (unlikely(cpu > rnp->grphi)) + cpu = WORK_CPU_UNBOUND; + queue_work_on(cpu, rcu_par_gp_wq, &rnp->rew.rew_work); +- preempt_enable(); + rnp->exp_need_flush = true; + } + +@@ -507,6 +506,7 @@ static void sync_rcu_exp_select_cpus(str + rcu_for_each_leaf_node(rsp, rnp) + if (rnp->exp_need_flush) + flush_work(&rnp->rew.rew_work); ++ cpus_read_unlock(); + } + + static void synchronize_sched_expedited_wait(struct rcu_state *rsp) diff --git a/debian/patches/features/all/rt/rcu-disable-rcu-fast-no-hz-on-rt.patch b/debian/patches-rt/rcu-disable-rcu-fast-no-hz-on-rt.patch similarity index 96% rename from debian/patches/features/all/rt/rcu-disable-rcu-fast-no-hz-on-rt.patch rename to debian/patches-rt/rcu-disable-rcu-fast-no-hz-on-rt.patch index 01e3572af..e639a2b0b 100644 --- a/debian/patches/features/all/rt/rcu-disable-rcu-fast-no-hz-on-rt.patch +++ b/debian/patches-rt/rcu-disable-rcu-fast-no-hz-on-rt.patch @@ -1,7 +1,7 @@ Subject: rcu: Disable RCU_FAST_NO_HZ on RT From: Thomas Gleixner Date: Sun, 28 Oct 2012 13:26:09 +0000 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz This uses a timer_list timer from the irq disabled guts of the idle code. Disable it for now to prevent wreckage. diff --git a/debian/patches/features/all/rt/rcu-enable-rcu_normal_after_boot-by-default-for-RT.patch b/debian/patches-rt/rcu-enable-rcu_normal_after_boot-by-default-for-RT.patch similarity index 97% rename from debian/patches/features/all/rt/rcu-enable-rcu_normal_after_boot-by-default-for-RT.patch rename to debian/patches-rt/rcu-enable-rcu_normal_after_boot-by-default-for-RT.patch index 7d4655a9c..883a0c92c 100644 --- a/debian/patches/features/all/rt/rcu-enable-rcu_normal_after_boot-by-default-for-RT.patch +++ b/debian/patches-rt/rcu-enable-rcu_normal_after_boot-by-default-for-RT.patch @@ -1,7 +1,7 @@ From: Julia Cartwright Date: Wed, 12 Oct 2016 11:21:14 -0500 Subject: [PATCH] rcu: enable rcu_normal_after_boot by default for RT -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The forcing of an expedited grace period is an expensive and very RT-application unfriendly operation, as it forcibly preempts all running diff --git a/debian/patches/features/all/rt/rcu-make-RCU_BOOST-default-on-RT.patch b/debian/patches-rt/rcu-make-RCU_BOOST-default-on-RT.patch similarity index 97% rename from debian/patches/features/all/rt/rcu-make-RCU_BOOST-default-on-RT.patch rename to debian/patches-rt/rcu-make-RCU_BOOST-default-on-RT.patch index 2f2e951f7..673193257 100644 --- a/debian/patches/features/all/rt/rcu-make-RCU_BOOST-default-on-RT.patch +++ b/debian/patches-rt/rcu-make-RCU_BOOST-default-on-RT.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Fri, 21 Mar 2014 20:19:05 +0100 Subject: rcu: make RCU_BOOST default on RT -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Since it is no longer invoked from the softirq people run into OOM more often if the priority of the RCU thread is too low. Making boosting diff --git a/debian/patches/features/all/rt/rcu-merge-rcu-bh-into-rcu-preempt-for-rt.patch b/debian/patches-rt/rcu-merge-rcu-bh-into-rcu-preempt-for-rt.patch similarity index 99% rename from debian/patches/features/all/rt/rcu-merge-rcu-bh-into-rcu-preempt-for-rt.patch rename to debian/patches-rt/rcu-merge-rcu-bh-into-rcu-preempt-for-rt.patch index cacef31c4..6dff2f248 100644 --- a/debian/patches/features/all/rt/rcu-merge-rcu-bh-into-rcu-preempt-for-rt.patch +++ b/debian/patches-rt/rcu-merge-rcu-bh-into-rcu-preempt-for-rt.patch @@ -1,7 +1,7 @@ Subject: rcu: Merge RCU-bh into RCU-preempt Date: Wed, 5 Oct 2011 11:59:38 -0700 From: Thomas Gleixner -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The Linux kernel has long RCU-bh read-side critical sections that intolerably increase scheduling latency under mainline's RCU-bh rules, diff --git a/debian/patches/features/all/rt/re-preempt_rt_full-arm-coredump-fails-for-cpu-3e-3d-4.patch b/debian/patches-rt/re-preempt_rt_full-arm-coredump-fails-for-cpu-3e-3d-4.patch similarity index 98% rename from debian/patches/features/all/rt/re-preempt_rt_full-arm-coredump-fails-for-cpu-3e-3d-4.patch rename to debian/patches-rt/re-preempt_rt_full-arm-coredump-fails-for-cpu-3e-3d-4.patch index a9760bf2c..ff3caa4ca 100644 --- a/debian/patches/features/all/rt/re-preempt_rt_full-arm-coredump-fails-for-cpu-3e-3d-4.patch +++ b/debian/patches-rt/re-preempt_rt_full-arm-coredump-fails-for-cpu-3e-3d-4.patch @@ -1,7 +1,7 @@ Subject: ARM: Initialize split page table locks for vector page From: Frank Rowand Date: Sat, 1 Oct 2011 18:58:13 -0700 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Without this patch, ARM can not use SPLIT_PTLOCK_CPUS if PREEMPT_RT_FULL=y because vectors_user_mapping() creates a diff --git a/debian/patches/features/all/rt/rt-Increase-decrease-the-nr-of-migratory-tasks-when-.patch b/debian/patches-rt/rt-Increase-decrease-the-nr-of-migratory-tasks-when-.patch similarity index 99% rename from debian/patches/features/all/rt/rt-Increase-decrease-the-nr-of-migratory-tasks-when-.patch rename to debian/patches-rt/rt-Increase-decrease-the-nr-of-migratory-tasks-when-.patch index a3c32f99e..e824529f3 100644 --- a/debian/patches/features/all/rt/rt-Increase-decrease-the-nr-of-migratory-tasks-when-.patch +++ b/debian/patches-rt/rt-Increase-decrease-the-nr-of-migratory-tasks-when-.patch @@ -1,7 +1,7 @@ From: Daniel Bristot de Oliveira Date: Mon, 26 Jun 2017 17:07:15 +0200 Subject: rt: Increase/decrease the nr of migratory tasks when enabling/disabling migration -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz There is a problem in the migrate_disable()/enable() implementation regarding the number of migratory tasks in the rt/dl RQs. The problem diff --git a/debian/patches/features/all/rt/rt-introduce-cpu-chill.patch b/debian/patches-rt/rt-introduce-cpu-chill.patch similarity index 99% rename from debian/patches/features/all/rt/rt-introduce-cpu-chill.patch rename to debian/patches-rt/rt-introduce-cpu-chill.patch index 9e153bf28..fb9d3dbe3 100644 --- a/debian/patches/features/all/rt/rt-introduce-cpu-chill.patch +++ b/debian/patches-rt/rt-introduce-cpu-chill.patch @@ -1,7 +1,7 @@ Subject: rt: Introduce cpu_chill() From: Thomas Gleixner Date: Wed, 07 Mar 2012 20:51:03 +0100 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Retry loops on RT might loop forever when the modifying side was preempted. Add cpu_chill() to replace cpu_relax(). cpu_chill() diff --git a/debian/patches/features/all/rt/rt-local-irq-lock.patch b/debian/patches-rt/rt-local-irq-lock.patch similarity index 99% rename from debian/patches/features/all/rt/rt-local-irq-lock.patch rename to debian/patches-rt/rt-local-irq-lock.patch index 7df566961..3b341c697 100644 --- a/debian/patches/features/all/rt/rt-local-irq-lock.patch +++ b/debian/patches-rt/rt-local-irq-lock.patch @@ -1,7 +1,7 @@ Subject: rt: Add local irq locks From: Thomas Gleixner Date: Mon, 20 Jun 2011 09:03:47 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Introduce locallock. For !RT this maps to preempt_disable()/ local_irq_disable() so there is not much that changes. For RT this will diff --git a/debian/patches/features/all/rt/rt-preempt-base-config.patch b/debian/patches-rt/rt-preempt-base-config.patch similarity index 97% rename from debian/patches/features/all/rt/rt-preempt-base-config.patch rename to debian/patches-rt/rt-preempt-base-config.patch index 7f031d183..387a3336c 100644 --- a/debian/patches/features/all/rt/rt-preempt-base-config.patch +++ b/debian/patches-rt/rt-preempt-base-config.patch @@ -1,7 +1,7 @@ Subject: rt: Provide PREEMPT_RT_BASE config switch From: Thomas Gleixner Date: Fri, 17 Jun 2011 12:39:57 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Introduce PREEMPT_RT_BASE which enables parts of PREEMPT_RT_FULL. Forces interrupt threading and enables some of the RT diff --git a/debian/patches/features/all/rt/rt-serial-warn-fix.patch b/debian/patches-rt/rt-serial-warn-fix.patch similarity index 97% rename from debian/patches/features/all/rt/rt-serial-warn-fix.patch rename to debian/patches-rt/rt-serial-warn-fix.patch index 1ed6b27d0..55060473b 100644 --- a/debian/patches/features/all/rt/rt-serial-warn-fix.patch +++ b/debian/patches-rt/rt-serial-warn-fix.patch @@ -1,7 +1,7 @@ Subject: rt: Improve the serial console PASS_LIMIT From: Ingo Molnar Date: Wed Dec 14 13:05:54 CET 2011 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Beyond the warning: diff --git a/debian/patches/features/all/rt/rtmutex-Make-lock_killable-work.patch b/debian/patches-rt/rtmutex-Make-lock_killable-work.patch similarity index 97% rename from debian/patches/features/all/rt/rtmutex-Make-lock_killable-work.patch rename to debian/patches-rt/rtmutex-Make-lock_killable-work.patch index 240c93f49..989afc41d 100644 --- a/debian/patches/features/all/rt/rtmutex-Make-lock_killable-work.patch +++ b/debian/patches-rt/rtmutex-Make-lock_killable-work.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Sat, 1 Apr 2017 12:50:59 +0200 Subject: [PATCH] rtmutex: Make lock_killable work -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Locking an rt mutex killable does not work because signal handling is restricted to TASK_INTERRUPTIBLE. diff --git a/debian/patches/features/all/rt/rtmutex-Provide-rt_mutex_slowlock_locked.patch b/debian/patches-rt/rtmutex-Provide-rt_mutex_slowlock_locked.patch similarity index 99% rename from debian/patches/features/all/rt/rtmutex-Provide-rt_mutex_slowlock_locked.patch rename to debian/patches-rt/rtmutex-Provide-rt_mutex_slowlock_locked.patch index 476268020..b5e5ccf82 100644 --- a/debian/patches/features/all/rt/rtmutex-Provide-rt_mutex_slowlock_locked.patch +++ b/debian/patches-rt/rtmutex-Provide-rt_mutex_slowlock_locked.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Thu, 12 Oct 2017 16:14:22 +0200 Subject: rtmutex: Provide rt_mutex_slowlock_locked() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz This is the inner-part of rt_mutex_slowlock(), required for rwsem-rt. diff --git a/debian/patches/features/all/rt/rtmutex-add-mutex-implementation-based-on-rtmutex.patch b/debian/patches-rt/rtmutex-add-mutex-implementation-based-on-rtmutex.patch similarity index 99% rename from debian/patches/features/all/rt/rtmutex-add-mutex-implementation-based-on-rtmutex.patch rename to debian/patches-rt/rtmutex-add-mutex-implementation-based-on-rtmutex.patch index f9efd48e6..3dcb6fbdb 100644 --- a/debian/patches/features/all/rt/rtmutex-add-mutex-implementation-based-on-rtmutex.patch +++ b/debian/patches-rt/rtmutex-add-mutex-implementation-based-on-rtmutex.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Thu, 12 Oct 2017 17:17:03 +0200 Subject: rtmutex: add mutex implementation based on rtmutex -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Signed-off-by: Thomas Gleixner Signed-off-by: Sebastian Andrzej Siewior diff --git a/debian/patches/features/all/rt/rtmutex-add-rwlock-implementation-based-on-rtmutex.patch b/debian/patches-rt/rtmutex-add-rwlock-implementation-based-on-rtmutex.patch similarity index 99% rename from debian/patches/features/all/rt/rtmutex-add-rwlock-implementation-based-on-rtmutex.patch rename to debian/patches-rt/rtmutex-add-rwlock-implementation-based-on-rtmutex.patch index 5e68d71ed..63a13cd5c 100644 --- a/debian/patches/features/all/rt/rtmutex-add-rwlock-implementation-based-on-rtmutex.patch +++ b/debian/patches-rt/rtmutex-add-rwlock-implementation-based-on-rtmutex.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Thu, 12 Oct 2017 17:18:06 +0200 Subject: rtmutex: add rwlock implementation based on rtmutex -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The implementation is bias-based, similar to the rwsem implementation. diff --git a/debian/patches/features/all/rt/rtmutex-add-rwsem-implementation-based-on-rtmutex.patch b/debian/patches-rt/rtmutex-add-rwsem-implementation-based-on-rtmutex.patch similarity index 99% rename from debian/patches/features/all/rt/rtmutex-add-rwsem-implementation-based-on-rtmutex.patch rename to debian/patches-rt/rtmutex-add-rwsem-implementation-based-on-rtmutex.patch index 284604662..fcff1ce99 100644 --- a/debian/patches/features/all/rt/rtmutex-add-rwsem-implementation-based-on-rtmutex.patch +++ b/debian/patches-rt/rtmutex-add-rwsem-implementation-based-on-rtmutex.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Thu, 12 Oct 2017 17:28:34 +0200 Subject: rtmutex: add rwsem implementation based on rtmutex -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The RT specific R/W semaphore implementation restricts the number of readers to one because a writer cannot block on multiple readers and inherit its diff --git a/debian/patches/features/all/rt/rtmutex-add-sleeping-lock-implementation.patch b/debian/patches-rt/rtmutex-add-sleeping-lock-implementation.patch similarity index 99% rename from debian/patches/features/all/rt/rtmutex-add-sleeping-lock-implementation.patch rename to debian/patches-rt/rtmutex-add-sleeping-lock-implementation.patch index 8ce985f17..753147609 100644 --- a/debian/patches/features/all/rt/rtmutex-add-sleeping-lock-implementation.patch +++ b/debian/patches-rt/rtmutex-add-sleeping-lock-implementation.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Thu, 12 Oct 2017 17:11:19 +0200 Subject: rtmutex: add sleeping lock implementation -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Signed-off-by: Thomas Gleixner Signed-off-by: Sebastian Andrzej Siewior diff --git a/debian/patches/features/all/rt/rtmutex-add-ww_mutex-addon-for-mutex-rt.patch b/debian/patches-rt/rtmutex-add-ww_mutex-addon-for-mutex-rt.patch similarity index 99% rename from debian/patches/features/all/rt/rtmutex-add-ww_mutex-addon-for-mutex-rt.patch rename to debian/patches-rt/rtmutex-add-ww_mutex-addon-for-mutex-rt.patch index 64b9b5ef0..2e9679a5f 100644 --- a/debian/patches/features/all/rt/rtmutex-add-ww_mutex-addon-for-mutex-rt.patch +++ b/debian/patches-rt/rtmutex-add-ww_mutex-addon-for-mutex-rt.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Thu, 12 Oct 2017 17:34:38 +0200 Subject: rtmutex: add ww_mutex addon for mutex-rt -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Signed-off-by: Sebastian Andrzej Siewior --- diff --git a/debian/patches/features/all/rt/rtmutex-annotate-sleeping-lock-context.patch b/debian/patches-rt/rtmutex-annotate-sleeping-lock-context.patch similarity index 99% rename from debian/patches/features/all/rt/rtmutex-annotate-sleeping-lock-context.patch rename to debian/patches-rt/rtmutex-annotate-sleeping-lock-context.patch index ebb29126f..55783fb2e 100644 --- a/debian/patches/features/all/rt/rtmutex-annotate-sleeping-lock-context.patch +++ b/debian/patches-rt/rtmutex-annotate-sleeping-lock-context.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Thu, 21 Sep 2017 14:25:13 +0200 Subject: [PATCH] rtmutex: annotate sleeping lock context -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The RCU code complains on schedule() within a rcu_readlock() section. The valid scenario on -RT is if a sleeping is held. In order to suppress diff --git a/debian/patches/features/all/rt/rtmutex-avoid-include-hell.patch b/debian/patches-rt/rtmutex-avoid-include-hell.patch similarity index 95% rename from debian/patches/features/all/rt/rtmutex-avoid-include-hell.patch rename to debian/patches-rt/rtmutex-avoid-include-hell.patch index e55e70a3b..867fb3bf4 100644 --- a/debian/patches/features/all/rt/rtmutex-avoid-include-hell.patch +++ b/debian/patches-rt/rtmutex-avoid-include-hell.patch @@ -1,7 +1,7 @@ Subject: rtmutex: Avoid include hell From: Thomas Gleixner Date: Wed, 29 Jun 2011 20:06:39 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Include only the required raw types. This avoids pulling in the complete spinlock header which in turn requires rtmutex.h at some point. diff --git a/debian/patches/features/all/rt/rtmutex-export-lockdep-less-version-of-rt_mutex-s-lo.patch b/debian/patches-rt/rtmutex-export-lockdep-less-version-of-rt_mutex-s-lo.patch similarity index 99% rename from debian/patches/features/all/rt/rtmutex-export-lockdep-less-version-of-rt_mutex-s-lo.patch rename to debian/patches-rt/rtmutex-export-lockdep-less-version-of-rt_mutex-s-lo.patch index d5ef41aff..a5897533b 100644 --- a/debian/patches/features/all/rt/rtmutex-export-lockdep-less-version-of-rt_mutex-s-lo.patch +++ b/debian/patches-rt/rtmutex-export-lockdep-less-version-of-rt_mutex-s-lo.patch @@ -2,7 +2,7 @@ From: Thomas Gleixner Date: Thu, 12 Oct 2017 16:36:39 +0200 Subject: rtmutex: export lockdep-less version of rt_mutex's lock, trylock and unlock -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Required for lock implementation ontop of rtmutex. diff --git a/debian/patches/features/all/rt/rtmutex-futex-prepare-rt.patch b/debian/patches-rt/rtmutex-futex-prepare-rt.patch similarity index 99% rename from debian/patches/features/all/rt/rtmutex-futex-prepare-rt.patch rename to debian/patches-rt/rtmutex-futex-prepare-rt.patch index 6f82f7be8..056ee7b4d 100644 --- a/debian/patches/features/all/rt/rtmutex-futex-prepare-rt.patch +++ b/debian/patches-rt/rtmutex-futex-prepare-rt.patch @@ -1,7 +1,7 @@ Subject: rtmutex: Handle the various new futex race conditions From: Thomas Gleixner Date: Fri, 10 Jun 2011 11:04:15 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz RT opens a few new interesting race conditions in the rtmutex/futex combo due to futex hash bucket lock being a 'sleeping' spinlock and diff --git a/debian/patches/features/all/rt/rtmutex-lock-killable.patch b/debian/patches-rt/rtmutex-lock-killable.patch similarity index 98% rename from debian/patches/features/all/rt/rtmutex-lock-killable.patch rename to debian/patches-rt/rtmutex-lock-killable.patch index 8d0a20ce5..8539f38b9 100644 --- a/debian/patches/features/all/rt/rtmutex-lock-killable.patch +++ b/debian/patches-rt/rtmutex-lock-killable.patch @@ -1,7 +1,7 @@ Subject: rtmutex: Add rtmutex_lock_killable() From: Thomas Gleixner Date: Thu, 09 Jun 2011 11:43:52 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Add "killable" type to rtmutex. We need this since rtmutex are used as "normal" mutexes which do use this type. diff --git a/debian/patches/features/all/rt/rtmutex-trylock-is-okay-on-RT.patch b/debian/patches-rt/rtmutex-trylock-is-okay-on-RT.patch similarity index 96% rename from debian/patches/features/all/rt/rtmutex-trylock-is-okay-on-RT.patch rename to debian/patches-rt/rtmutex-trylock-is-okay-on-RT.patch index 7011fd03a..2444a6880 100644 --- a/debian/patches/features/all/rt/rtmutex-trylock-is-okay-on-RT.patch +++ b/debian/patches-rt/rtmutex-trylock-is-okay-on-RT.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Wed 02 Dec 2015 11:34:07 +0100 Subject: rtmutex: trylock is okay on -RT -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz non-RT kernel could deadlock on rt_mutex_trylock() in softirq context. On -RT we don't run softirqs in IRQ context but in thread context so it is diff --git a/debian/patches/features/all/rt/rtmutex-wire-up-RT-s-locking.patch b/debian/patches-rt/rtmutex-wire-up-RT-s-locking.patch similarity index 99% rename from debian/patches/features/all/rt/rtmutex-wire-up-RT-s-locking.patch rename to debian/patches-rt/rtmutex-wire-up-RT-s-locking.patch index 586da9427..5fc242572 100644 --- a/debian/patches/features/all/rt/rtmutex-wire-up-RT-s-locking.patch +++ b/debian/patches-rt/rtmutex-wire-up-RT-s-locking.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Thu, 12 Oct 2017 17:31:14 +0200 Subject: rtmutex: wire up RT's locking -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Signed-off-by: Thomas Gleixner Signed-off-by: Sebastian Andrzej Siewior diff --git a/debian/patches/features/all/rt/rtmutex_dont_include_rcu.patch b/debian/patches-rt/rtmutex_dont_include_rcu.patch similarity index 99% rename from debian/patches/features/all/rt/rtmutex_dont_include_rcu.patch rename to debian/patches-rt/rtmutex_dont_include_rcu.patch index fb0d38ec3..194dd279b 100644 --- a/debian/patches/features/all/rt/rtmutex_dont_include_rcu.patch +++ b/debian/patches-rt/rtmutex_dont_include_rcu.patch @@ -1,6 +1,6 @@ From: Sebastian Andrzej Siewior Subject: rbtree: don't include the rcu header -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The RCU header pulls in spinlock.h and fails due not yet defined types: diff --git a/debian/patches/features/all/rt/sched-Allow-pinned-user-tasks-to-be-awakened-to-the-.patch b/debian/patches-rt/sched-Allow-pinned-user-tasks-to-be-awakened-to-the-.patch similarity index 92% rename from debian/patches/features/all/rt/sched-Allow-pinned-user-tasks-to-be-awakened-to-the-.patch rename to debian/patches-rt/sched-Allow-pinned-user-tasks-to-be-awakened-to-the-.patch index 3418ae804..3f3c5c2c7 100644 --- a/debian/patches/features/all/rt/sched-Allow-pinned-user-tasks-to-be-awakened-to-the-.patch +++ b/debian/patches-rt/sched-Allow-pinned-user-tasks-to-be-awakened-to-the-.patch @@ -1,9 +1,8 @@ -From b3dac61f924ec6d4cc4c1e08498f80a88e6a6c69 Mon Sep 17 00:00:00 2001 From: Mike Galbraith Date: Sun, 19 Aug 2018 08:28:35 +0200 Subject: [PATCH] sched: Allow pinned user tasks to be awakened to the CPU they pinned -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Since commit 7af443ee16976 ("sched/core: Require cpu_active() in select_task_rq(), for user tasks") select_fallback_rq() will BUG() if diff --git a/debian/patches/features/all/rt/sched-core-Remove-get_cpu-from-sched_fork.patch b/debian/patches-rt/sched-core-Remove-get_cpu-from-sched_fork.patch similarity index 98% rename from debian/patches/features/all/rt/sched-core-Remove-get_cpu-from-sched_fork.patch rename to debian/patches-rt/sched-core-Remove-get_cpu-from-sched_fork.patch index d7fabfa04..fba3d93eb 100644 --- a/debian/patches/features/all/rt/sched-core-Remove-get_cpu-from-sched_fork.patch +++ b/debian/patches-rt/sched-core-Remove-get_cpu-from-sched_fork.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Fri, 6 Jul 2018 15:06:15 +0200 Subject: [PATCH] sched/core: Remove get_cpu() from sched_fork() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz [ Upstream commit af0fffd9300b97d8875aa745bc78e2f6fdb3c1f0 ] diff --git a/debian/patches/features/all/rt/sched-delay-put-task.patch b/debian/patches-rt/sched-delay-put-task.patch similarity index 98% rename from debian/patches/features/all/rt/sched-delay-put-task.patch rename to debian/patches-rt/sched-delay-put-task.patch index fa534c976..0ae790527 100644 --- a/debian/patches/features/all/rt/sched-delay-put-task.patch +++ b/debian/patches-rt/sched-delay-put-task.patch @@ -1,7 +1,7 @@ Subject: sched: Move task_struct cleanup to RCU From: Thomas Gleixner Date: Tue, 31 May 2011 16:59:16 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz __put_task_struct() does quite some expensive work. We don't want to burden random tasks with that. diff --git a/debian/patches/features/all/rt/sched-disable-rt-group-sched-on-rt.patch b/debian/patches-rt/sched-disable-rt-group-sched-on-rt.patch similarity index 96% rename from debian/patches/features/all/rt/sched-disable-rt-group-sched-on-rt.patch rename to debian/patches-rt/sched-disable-rt-group-sched-on-rt.patch index 91b2b719e..8fff26331 100644 --- a/debian/patches/features/all/rt/sched-disable-rt-group-sched-on-rt.patch +++ b/debian/patches-rt/sched-disable-rt-group-sched-on-rt.patch @@ -1,7 +1,7 @@ Subject: sched: Disable CONFIG_RT_GROUP_SCHED on RT From: Thomas Gleixner Date: Mon, 18 Jul 2011 17:03:52 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Carsten reported problems when running: diff --git a/debian/patches/features/all/rt/sched-disable-ttwu-queue.patch b/debian/patches-rt/sched-disable-ttwu-queue.patch similarity index 96% rename from debian/patches/features/all/rt/sched-disable-ttwu-queue.patch rename to debian/patches-rt/sched-disable-ttwu-queue.patch index 1a2d81406..7da8c2a4e 100644 --- a/debian/patches/features/all/rt/sched-disable-ttwu-queue.patch +++ b/debian/patches-rt/sched-disable-ttwu-queue.patch @@ -1,7 +1,7 @@ Subject: sched: Disable TTWU_QUEUE on RT From: Thomas Gleixner Date: Tue, 13 Sep 2011 16:42:35 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The queued remote wakeup mechanism can introduce rather large latencies if the number of migrated tasks is high. Disable it for RT. diff --git a/debian/patches/features/all/rt/sched-limit-nr-migrate.patch b/debian/patches-rt/sched-limit-nr-migrate.patch similarity index 96% rename from debian/patches/features/all/rt/sched-limit-nr-migrate.patch rename to debian/patches-rt/sched-limit-nr-migrate.patch index c91689d70..d2e53bb97 100644 --- a/debian/patches/features/all/rt/sched-limit-nr-migrate.patch +++ b/debian/patches-rt/sched-limit-nr-migrate.patch @@ -1,7 +1,7 @@ Subject: sched: Limit the number of task migrations per batch From: Thomas Gleixner Date: Mon, 06 Jun 2011 12:12:51 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Put an upper limit on the number of tasks which are migrated per batch to avoid large latencies. diff --git a/debian/patches/features/all/rt/sched-might-sleep-do-not-account-rcu-depth.patch b/debian/patches-rt/sched-might-sleep-do-not-account-rcu-depth.patch similarity index 97% rename from debian/patches/features/all/rt/sched-might-sleep-do-not-account-rcu-depth.patch rename to debian/patches-rt/sched-might-sleep-do-not-account-rcu-depth.patch index 368bb4796..73b9ac57b 100644 --- a/debian/patches/features/all/rt/sched-might-sleep-do-not-account-rcu-depth.patch +++ b/debian/patches-rt/sched-might-sleep-do-not-account-rcu-depth.patch @@ -1,7 +1,7 @@ Subject: sched: Do not account rcu_preempt_depth on RT in might_sleep() From: Thomas Gleixner Date: Tue, 07 Jun 2011 09:19:06 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz RT changes the rcu_preempt_depth semantics, so we cannot check for it in might_sleep(). diff --git a/debian/patches/features/all/rt/sched-migrate_disable-fallback-to-preempt_disable-in.patch b/debian/patches-rt/sched-migrate_disable-fallback-to-preempt_disable-in.patch similarity index 99% rename from debian/patches/features/all/rt/sched-migrate_disable-fallback-to-preempt_disable-in.patch rename to debian/patches-rt/sched-migrate_disable-fallback-to-preempt_disable-in.patch index af430ef73..0554eeee1 100644 --- a/debian/patches/features/all/rt/sched-migrate_disable-fallback-to-preempt_disable-in.patch +++ b/debian/patches-rt/sched-migrate_disable-fallback-to-preempt_disable-in.patch @@ -2,7 +2,7 @@ From: Sebastian Andrzej Siewior Date: Thu, 5 Jul 2018 14:44:51 +0200 Subject: [PATCH] sched/migrate_disable: fallback to preempt_disable() instead barrier() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz On SMP + !RT migrate_disable() is still around. It is not part of spin_lock() anymore so it has almost no users. However the futex code has a workaround for diff --git a/debian/patches/features/all/rt/sched-mmdrop-delayed.patch b/debian/patches-rt/sched-mmdrop-delayed.patch similarity index 97% rename from debian/patches/features/all/rt/sched-mmdrop-delayed.patch rename to debian/patches-rt/sched-mmdrop-delayed.patch index e0d318204..368e95235 100644 --- a/debian/patches/features/all/rt/sched-mmdrop-delayed.patch +++ b/debian/patches-rt/sched-mmdrop-delayed.patch @@ -1,7 +1,7 @@ Subject: sched: Move mmdrop to RCU on RT From: Thomas Gleixner Date: Mon, 06 Jun 2011 12:20:33 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Takes sleeping locks and calls into the memory allocator, so nothing we want to do in task switch and oder atomic contexts. @@ -24,7 +24,7 @@ Signed-off-by: Thomas Gleixner #include #include -@@ -480,6 +481,9 @@ struct mm_struct { +@@ -483,6 +484,9 @@ struct mm_struct { bool tlb_flush_batched; #endif struct uprobes_state uprobes_state; diff --git a/debian/patches/features/all/rt/sched-rt-mutex-wakeup.patch b/debian/patches-rt/sched-rt-mutex-wakeup.patch similarity index 98% rename from debian/patches/features/all/rt/sched-rt-mutex-wakeup.patch rename to debian/patches-rt/sched-rt-mutex-wakeup.patch index 739e497ae..7f82cf9b1 100644 --- a/debian/patches/features/all/rt/sched-rt-mutex-wakeup.patch +++ b/debian/patches-rt/sched-rt-mutex-wakeup.patch @@ -1,7 +1,7 @@ Subject: sched: Add saved_state for tasks blocked on sleeping locks From: Thomas Gleixner Date: Sat, 25 Jun 2011 09:21:04 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Spinlocks are state preserving in !RT. RT changes the state when a task gets blocked on a lock. So we need to remember the state before diff --git a/debian/patches/features/all/rt/sched-workqueue-Only-wake-up-idle-workers-if-not-blo.patch b/debian/patches-rt/sched-workqueue-Only-wake-up-idle-workers-if-not-blo.patch similarity index 97% rename from debian/patches/features/all/rt/sched-workqueue-Only-wake-up-idle-workers-if-not-blo.patch rename to debian/patches-rt/sched-workqueue-Only-wake-up-idle-workers-if-not-blo.patch index 4be30108c..b0396b124 100644 --- a/debian/patches/features/all/rt/sched-workqueue-Only-wake-up-idle-workers-if-not-blo.patch +++ b/debian/patches-rt/sched-workqueue-Only-wake-up-idle-workers-if-not-blo.patch @@ -1,7 +1,7 @@ From: Steven Rostedt Date: Mon, 18 Mar 2013 15:12:49 -0400 Subject: sched/workqueue: Only wake up idle workers if not blocked on sleeping spin lock -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz In -rt, most spin_locks() turn into mutexes. One of these spin_lock conversions is performed on the workqueue gcwq->lock. When the idle diff --git a/debian/patches/features/all/rt/scsi-fcoe-rt-aware.patch b/debian/patches-rt/scsi-fcoe-rt-aware.patch similarity index 98% rename from debian/patches/features/all/rt/scsi-fcoe-rt-aware.patch rename to debian/patches-rt/scsi-fcoe-rt-aware.patch index e4c580bff..839bad417 100644 --- a/debian/patches/features/all/rt/scsi-fcoe-rt-aware.patch +++ b/debian/patches-rt/scsi-fcoe-rt-aware.patch @@ -1,7 +1,7 @@ Subject: scsi/fcoe: Make RT aware. From: Thomas Gleixner Date: Sat, 12 Nov 2011 14:00:48 +0100 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Do not disable preemption while taking sleeping locks. All user look safe for migrate_diable() only. diff --git a/debian/patches/features/all/rt/seqlock-prevent-rt-starvation.patch b/debian/patches-rt/seqlock-prevent-rt-starvation.patch similarity index 99% rename from debian/patches/features/all/rt/seqlock-prevent-rt-starvation.patch rename to debian/patches-rt/seqlock-prevent-rt-starvation.patch index 4628dde4d..855c6f803 100644 --- a/debian/patches/features/all/rt/seqlock-prevent-rt-starvation.patch +++ b/debian/patches-rt/seqlock-prevent-rt-starvation.patch @@ -1,7 +1,7 @@ Subject: seqlock: Prevent rt starvation From: Thomas Gleixner Date: Wed, 22 Feb 2012 12:03:30 +0100 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz If a low prio writer gets preempted while holding the seqlock write locked, a high prio reader spins forever on RT. diff --git a/debian/patches-rt/series b/debian/patches-rt/series new file mode 100644 index 000000000..41df8ad05 --- /dev/null +++ b/debian/patches-rt/series @@ -0,0 +1,438 @@ +########################################################### +# DELTA against a known Linus release +########################################################### + +############################################################ +# UPSTREAM merged +############################################################ + +#misc +SCSI-libsas-remove-irq-save-in-sas_ata_qc_issue.patch +SCSI-qla2xxx-remove-irq-save-in-qla2x00_poll.patch +cgroup-tracing-Move-taking-of-spin-lock-out-of-trace.patch +sched-core-Remove-get_cpu-from-sched_fork.patch +random-Remove-preempt-disabled-region.patch +iommu-amd-drop-irqs_disabled-warn_on.patch +# atomic_dec_and_lock_irqsave / refcount_dec_and_lock_irqsave +0002-drivers-md-raid5-Use-irqsave-variant-of-atomic_dec_a.patch +0003-drivers-md-raid5-Do-not-disable-irq-on-release_inact.patch +0001-bdi-use-refcount_t-for-reference-counting-instead-at.patch +0002-userns-use-refcount_t-for-reference-counting-instead.patch +0005-bdi-Use-irqsave-variant-of-refcount_dec_and_lock.patch +0006-userns-Use-irqsave-variant-of-refcount_dec_and_lock.patch +libata-remove-ata_sff_data_xfer_noirq.patch +ntfs-avoid-disabling-interrupts-during-kmap_atomic.patch +# mm/workingset +0001-mm-workingset-remove-local_irq_disable-from-count_sh.patch +0002-mm-workingset-make-shadow_lru_isolate-use-locking-su.patch +0001-mm-list_lru-use-list_lru_walk_one-in-list_lru_walk_n.patch +0002-mm-list_lru-Move-locking-from-__list_lru_walk_one-to.patch +0003-mm-list_lru-Pass-struct-list_lru_node-as-an-argument.patch +0004-mm-list_lru-Introduce-list_lru_shrink_walk_irq.patch +irqchip-gic-v3-its-Make-its_lock-a-raw_spin_lock_t.patch + +############################################################ +# POSTED by others +############################################################ +# AT91 +# Alexandre Belloni | [PATCH v4 0/6] clocksource: rework Atmel TCB timer driver +# Date: Wed, 18 Apr 2018 12:51:37 +0200 +0001-ARM-at91-add-TCB-registers-definitions.patch +0002-clocksource-drivers-Add-a-new-driver-for-the-Atmel-A.patch +0003-clocksource-drivers-atmel-pit-make-option-silent.patch +0004-ARM-at91-Implement-clocksource-selection.patch +0005-ARM-configs-at91-use-new-TCB-timer-driver.patch +0006-ARM-configs-at91-unselect-PIT.patch + +irqchip-gic-v3-its-Move-pending-table-allocation-to-.patch + +############################################################ +# POSTED +############################################################ +arm-convert-boot-lock-to-raw.patch +x86-ioapic-Don-t-let-setaffinity-unmask-threaded-EOI.patch +arm-kprobe-replace-patch_lock-to-raw-lock.patch +arm-unwind-use_raw_lock.patch +cgroup-use-irqsave-in-cgroup_rstat_flush_locked.patch +fscache-initialize-cookie-hash-table-raw-spinlocks.patch +Drivers-hv-vmbus-include-header-for-get_irq_regs.patch +rcu-Use-cpus_read_lock-while-looking-at-cpu_online_m.patch + +############################################################ +# Ready for posting +############################################################ +efi-Allow-efi-runtime.patch + +############################################################ +# Needs to address review feedback +############################################################ + +############################################################ +# Almost ready, needs final polishing +############################################################ +x86-efi-drop-task_lock-from-efi_switch_mm.patch +arm64-KVM-compute_layout-before-altenates-are-applie.patch +of-allocate-free-phandle-cache-outside-of-the-devtre.patch + +############################################################### +# Stuff broken upstream and upstream wants something different +############################################################### +NFSv4-replace-seqcount_t-with-a-seqlock_t.patch +kernel-sched-Provide-a-pointer-to-the-valid-CPU-mask.patch +add_migrate_disable.patch + +# Those two should vanish soon (not use PIT during bootup) +at91_dont_enable_disable_clock.patch +clocksource-tclib-allow-higher-clockrates.patch + +# Timekeeping split jiffies lock. Needs a good argument :) +timekeeping-split-jiffies-lock.patch + +# PTRACE/SIGNAL crap +signal-revert-ptrace-preempt-magic.patch + +# NETWORKING +net-sched-dev_deactivate_many-use-msleep-1-instead-o.patch + +# The removal of NONRT helpers +dm-rq-remove-BUG_ON-irqs_disabled-check.patch +usb-do-not-disable-interrupts-in-giveback.patch + +################################################## +# REAL RT STUFF starts here +################################################## + +# Kconfig on/off +rt-preempt-base-config.patch +kconfig-preempt-rt-full.patch +cpumask-disable-offstack-on-rt.patch +jump-label-rt.patch +kconfig-disable-a-few-options-rt.patch +lockdep-disable-self-test.patch +mm-disable-sloub-rt.patch +mutex-no-spin-on-rt.patch +rcu-disable-rcu-fast-no-hz-on-rt.patch +rcu-make-RCU_BOOST-default-on-RT.patch +sched-disable-rt-group-sched-on-rt.patch +net_disable_NET_RX_BUSY_POLL.patch +arm-disable-NEON-in-kernel-mode.patch +power-use-generic-rwsem-on-rt.patch +powerpc-kvm-Disable-in-kernel-MPIC-emulation-for-PRE.patch +power-disable-highmem-on-rt.patch +mips-disable-highmem-on-rt.patch +x86-use-gen-rwsem-spinlocks-rt.patch +leds-trigger-disable-CPU-trigger-on-RT.patch +cpufreq-drop-K8-s-driver-from-beeing-selected.patch +md-disable-bcache.patch +efi-Disable-runtime-services-on-RT.patch + +# PRINTK +printk-kill.patch +printk-27force_early_printk-27-boot-param-to-help-with-debugging.patch + +# PREEMPT NORT +preempt-nort-rt-variants.patch + +# local locks & migrate disable +futex-workaround-migrate_disable-enable-in-different.patch +rt-local-irq-lock.patch +locallock-provide-get-put-_locked_ptr-variants.patch + +# ANNOTATE local_irq_disable sites +mm-scatterlist-dont-disable-irqs-on-RT.patch + +# Sigh +oleg-signal-rt-fix.patch +x86-signal-delay-calling-signals-on-32bit.patch + +# BIT SPINLOCKS - SIGH +fs-replace-bh_uptodate_lock-for-rt.patch +fs-jbd-replace-bh_state-lock.patch + +# GENIRQ +list_bl.h-make-list-head-locking-RT-safe.patch +list_bl-fixup-bogus-lockdep-warning.patch +genirq-disable-irqpoll-on-rt.patch +genirq-force-threading.patch + +# MM page alloc +0001-Split-IRQ-off-and-zone-lock-while-freeing-pages-from.patch +0002-Split-IRQ-off-and-zone-lock-while-freeing-pages-from.patch +0003-mm-SLxB-change-list_lock-to-raw_spinlock_t.patch +0004-mm-SLUB-delay-giving-back-empty-slubs-to-IRQ-enabled.patch +mm-page_alloc-rt-friendly-per-cpu-pages.patch + +# MM SWAP +mm-convert-swap-to-percpu-locked.patch +mm-perform-lru_add_drain_all-remotely.patch + +# MM vmstat +mm-make-vmstat-rt-aware.patch + +# MM memory +re-preempt_rt_full-arm-coredump-fails-for-cpu-3e-3d-4.patch + +# MM SLxB +mm-enable-slub.patch +slub-enable-irqs-for-no-wait.patch +slub-disable-SLUB_CPU_PARTIAL.patch + +# MM +mm-memcontrol-Don-t-call-schedule_work_on-in-preempt.patch +mm-memcontrol-do_not_disable_irq.patch +mm_zsmalloc_copy_with_get_cpu_var_and_locking.patch + +# RADIX TREE +radix-tree-use-local-locks.patch + +# TIMERS +timers-prepare-for-full-preemption.patch + +# KVM require constant freq TSC (smp function call -> cpufreq) +x86-kvm-require-const-tsc-for-rt.patch +# +# SIMPLE WAITQUEUE +pci-switchtec-Don-t-use-completion-s-wait-queue.patch +wait.h-include-atomic.h.patch +work-simple-Simple-work-queue-implemenation.patch +work-simple-drop-a-shit-statement-in-SWORK_EVENT_PEN.patch +completion-use-simple-wait-queues.patch +fs-aio-simple-simple-work.patch +genirq-do-not-invoke-the-affinity-callback-via-a-wor.patch + +# HRTIMERS +time-hrtimer-avoid-schedule_work-with-interrupts-dis.patch +hrtimer-consolidate-hrtimer_init-hrtimer_init_sleepe.patch +hrtimers-prepare-full-preemption.patch +hrtimer-by-timers-by-default-into-the-softirq-context.patch +hrtimer-Move-schedule_work-call-to-helper-thread.patch + +# POSIX-CPU-TIMERS +posix-timers-thread-posix-cpu-timers-on-rt.patch + +# SCHEDULER +sched-delay-put-task.patch +sched-limit-nr-migrate.patch +sched-mmdrop-delayed.patch +kernel-sched-move-stack-kprobe-clean-up-to-__put_tas.patch +sched-rt-mutex-wakeup.patch +sched-might-sleep-do-not-account-rcu-depth.patch +cond-resched-lock-rt-tweak.patch +sched-disable-ttwu-queue.patch +sched-workqueue-Only-wake-up-idle-workers-if-not-blo.patch +rt-Increase-decrease-the-nr-of-migratory-tasks-when-.patch + +# MIGRATE DISABLE AND PER CPU +hotplug-light-get-online-cpus.patch +ftrace-migrate-disable-tracing.patch + +# LOCKDEP +lockdep-no-softirq-accounting-on-rt.patch + +# SOFTIRQ +tasklet-rt-prevent-tasklets-from-going-into-infinite-spin-in-rt.patch +softirq-preempt-fix-3-re.patch +softirq-disable-softirq-stacks-for-rt.patch +softirq-split-locks.patch +net-core-use-local_bh_disable-in-netif_rx_ni.patch +irq-allow-disabling-of-softirq-processing-in-irq-thread-context.patch +softirq-split-timer-softirqs-out-of-ksoftirqd.patch +rtmutex-trylock-is-okay-on-RT.patch + +# compile fix due to rtmutex locks +fs-nfs-turn-rmdir_sem-into-a-semaphore.patch + +# FUTEX/RTMUTEX +rtmutex-futex-prepare-rt.patch +futex-requeue-pi-fix.patch +futex-Ensure-lock-unlock-symetry-versus-pi_lock-and-.patch + +# RTMUTEX +pid.h-include-atomic.h.patch +arm-include-definition-for-cpumask_t.patch +locking-locktorture-Do-NOT-include-rwlock.h-directly.patch +rtmutex-lock-killable.patch +rtmutex-Make-lock_killable-work.patch +spinlock-types-separate-raw.patch +rtmutex-avoid-include-hell.patch +rtmutex_dont_include_rcu.patch +rtmutex-Provide-rt_mutex_slowlock_locked.patch +rtmutex-export-lockdep-less-version-of-rt_mutex-s-lo.patch +rtmutex-add-sleeping-lock-implementation.patch +rtmutex-add-mutex-implementation-based-on-rtmutex.patch +rtmutex-add-rwsem-implementation-based-on-rtmutex.patch +rtmutex-add-rwlock-implementation-based-on-rtmutex.patch +rtmutex-wire-up-RT-s-locking.patch +rtmutex-add-ww_mutex-addon-for-mutex-rt.patch +locking-rt-mutex-fix-deadlock-in-device-mapper-block.patch +locking-rtmutex-re-init-the-wait_lock-in-rt_mutex_in.patch +ptrace-fix-ptrace-vs-tasklist_lock-race.patch +rtmutex-annotate-sleeping-lock-context.patch +sched-migrate_disable-fallback-to-preempt_disable-in.patch +locking-don-t-check-for-__LINUX_SPINLOCK_TYPES_H-on-.patch + +# RCU +peter_zijlstra-frob-rcu.patch +rcu-merge-rcu-bh-into-rcu-preempt-for-rt.patch +patch-to-introduce-rcu-bh-qs-where-safe-from-softirq.patch +rcu-Eliminate-softirq-processing-from-rcutree.patch +srcu-use-cpu_online-instead-custom-check.patch +srcu-replace-local_irqsave-with-a-locallock.patch +rcu-enable-rcu_normal_after_boot-by-default-for-RT.patch + +# DRIVERS SERIAL +drivers-tty-fix-omap-lock-crap.patch +drivers-tty-pl011-irq-disable-madness.patch +rt-serial-warn-fix.patch +tty-serial-8250-don-t-take-the-trylock-during-oops.patch + +# FS +peterz-percpu-rwsem-rt.patch +mm-protect-activate-switch-mm.patch +fs-dcache-bring-back-explicit-INIT_HLIST_BL_HEAD-in.patch +fs-dcache-disable-preemption-on-i_dir_seq-s-write-si.patch +squashfs-make-use-of-local-lock-in-multi_cpu-decompr.patch + +# X86 +thermal-Defer-thermal-wakups-to-threads.patch + +# CPU get light +epoll-use-get-cpu-light.patch +mm-vmalloc-use-get-cpu-light.patch +block-mq-use-cpu_light.patch +block-mq-drop-preempt-disable.patch +block-mq-don-t-complete-requests-via-IPI.patch +md-raid5-percpu-handling-rt-aware.patch + +# CPU CHILL +rt-introduce-cpu-chill.patch + +# block +block-blk-mq-move-blk_queue_usage_counter_release-in.patch + +# BLOCK LIVELOCK PREVENTION +block-use-cpu-chill.patch + +# FS LIVELOCK PREVENTION +fs-dcache-use-cpu-chill-in-trylock-loops.patch +net-use-cpu-chill.patch +fs-dcache-use-swait_queue-instead-of-waitqueue.patch + +# WORKQUEUE more fixes +workqueue-use-rcu.patch +workqueue-use-locallock.patch +work-queue-work-around-irqsafe-timer-optimization.patch +workqueue-distangle-from-rq-lock.patch + +# DEBUGOBJECTS +debugobjects-rt.patch + +# SEQLOCKS +seqlock-prevent-rt-starvation.patch + +# NETWORKING +sunrpc-make-svc_xprt_do_enqueue-use-get_cpu_light.patch +skbufhead-raw-lock.patch +net-move-xmit_recursion-to-per-task-variable-on-RT.patch +net-provide-a-way-to-delegate-processing-a-softirq-t.patch +net-dev-always-take-qdisc-s-busylock-in-__dev_xmit_s.patch +net-Qdisc-use-a-seqlock-instead-seqcount.patch +net-add-back-the-missing-serialization-in-ip_send_un.patch +net-add-a-lock-around-icmp_sk.patch +net-Have-__napi_schedule_irqoff-disable-interrupts-o.patch + +# irqwork +irqwork-push_most_work_into_softirq_context.patch + +# CONSOLE. NEEDS more thought !!! +printk-rt-aware.patch +kernel-printk-Don-t-try-to-print-from-IRQ-NMI-region.patch +HACK-printk-drop-the-logbuf_lock-more-often.patch + +# POWERC +powerpc-ps3-device-init.c-adapt-to-completions-using.patch + +# ARM +ARM-enable-irq-in-translation-section-permission-fau.patch +genirq-update-irq_set_irqchip_state-documentation.patch +KVM-arm-arm64-downgrade-preempt_disable-d-region-to-.patch +arm64-fpsimd-use-preemp_disable-in-addition-to-local.patch + +# KGDB +kgb-serial-hackaround.patch + +# SYSFS - RT indicator +sysfs-realtime-entry.patch + +# KMAP/HIGHMEM +mm-rt-kmap-atomic-scheduling.patch +x86-highmem-add-a-already-used-pte-check.patch +arm-highmem-flush-tlb-on-unmap.patch +arm-enable-highmem-for-rt.patch + +# SCSI/FCOE +scsi-fcoe-rt-aware.patch + +# crypto drivers +x86-crypto-reduce-preempt-disabled-regions.patch +crypto-Reduce-preempt-disabled-regions-more-algos.patch +crypto-limit-more-FPU-enabled-sections.patch +crypto-scompress-serialize-RT-percpu-scratch-buffer-.patch +crypto-cryptd-add-a-lock-instead-preempt_disable-loc.patch + +# RANDOM +panic-disable-random-on-rt.patch +x86-stackprot-no-random-on-rt.patch +random-make-it-work-on-rt.patch +random-avoid-preempt_disable-ed-section.patch + +# HOTPLUG +cpu-hotplug--Implement-CPU-pinning.patch +sched-Allow-pinned-user-tasks-to-be-awakened-to-the-.patch +hotplug-duct-tape-RT-rwlock-usage-for-non-RT.patch + +# NET +upstream-net-rt-remove-preemption-disabling-in-netif_rx.patch +net-another-local-irq-disable-alloc-atomic-headache.patch +net-core-protect-users-of-napi_alloc_cache-against-r.patch +net-fix-iptable-xt-write-recseq-begin-rt-fallout.patch +net-make-devnet_rename_seq-a-mutex.patch + +# LOCKDEP +lockdep-selftest-only-do-hardirq-context-test-for-raw-spinlock.patch +lockdep-selftest-fix-warnings-due-to-missing-PREEMPT.patch + +# PREEMPT LAZY +preempt-lazy-support.patch +ftrace-Fix-trace-header-alignment.patch +x86-preempt-lazy.patch +arm-preempt-lazy-support.patch +powerpc-preempt-lazy-support.patch +arch-arm64-Add-lazy-preempt-support.patch + +# DRIVERS +connector-cn_proc-Protect-send_msg-with-a-local-lock.patch +drivers-block-zram-Replace-bit-spinlocks-with-rtmute.patch +drivers-zram-Don-t-disable-preemption-in-zcomp_strea.patch +drivers-zram-fix-zcomp_stream_get-smp_processor_id-u.patch +tpm_tis-fix-stall-after-iowrite-s.patch + +# I915 +drmradeoni915_Use_preempt_disableenable_rt()_where_recommended.patch +drmi915_Use_local_lockunlock_irq()_in_intel_pipe_update_startend().patch + +# CGROUPS +cgroups-use-simple-wait-in-css_release.patch +cpuset-Convert-callback_lock-to-raw_spinlock_t.patch + +# Security +apparmor-use-a-locallock-instead-preempt_disable.patch + +# WORKQUEUE SIGH +workqueue-prevent-deadlock-stall.patch + +# Nice to have +signals-allow-rt-tasks-to-cache-one-sigqueue-struct.patch + +# Add RT to version +localversion.patch diff --git a/debian/patches/features/all/rt/signal-revert-ptrace-preempt-magic.patch b/debian/patches-rt/signal-revert-ptrace-preempt-magic.patch similarity index 96% rename from debian/patches/features/all/rt/signal-revert-ptrace-preempt-magic.patch rename to debian/patches-rt/signal-revert-ptrace-preempt-magic.patch index 578102a72..ca74e90c0 100644 --- a/debian/patches/features/all/rt/signal-revert-ptrace-preempt-magic.patch +++ b/debian/patches-rt/signal-revert-ptrace-preempt-magic.patch @@ -1,7 +1,7 @@ Subject: signal: Revert ptrace preempt magic From: Thomas Gleixner Date: Wed, 21 Sep 2011 19:57:12 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Upstream commit '53da1d9456fe7f8 fix ptrace slowness' is nothing more than a bandaid around the ptrace design trainwreck. It's not a diff --git a/debian/patches/features/all/rt/signals-allow-rt-tasks-to-cache-one-sigqueue-struct.patch b/debian/patches-rt/signals-allow-rt-tasks-to-cache-one-sigqueue-struct.patch similarity index 99% rename from debian/patches/features/all/rt/signals-allow-rt-tasks-to-cache-one-sigqueue-struct.patch rename to debian/patches-rt/signals-allow-rt-tasks-to-cache-one-sigqueue-struct.patch index 0bbc5f611..9285a4d98 100644 --- a/debian/patches/features/all/rt/signals-allow-rt-tasks-to-cache-one-sigqueue-struct.patch +++ b/debian/patches-rt/signals-allow-rt-tasks-to-cache-one-sigqueue-struct.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Fri, 3 Jul 2009 08:44:56 -0500 Subject: signals: Allow rt tasks to cache one sigqueue struct -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz To avoid allocation allow rt tasks to cache one sigqueue struct in task struct. diff --git a/debian/patches/features/all/rt/skbufhead-raw-lock.patch b/debian/patches-rt/skbufhead-raw-lock.patch similarity index 99% rename from debian/patches/features/all/rt/skbufhead-raw-lock.patch rename to debian/patches-rt/skbufhead-raw-lock.patch index 0f60204a5..54991d06c 100644 --- a/debian/patches/features/all/rt/skbufhead-raw-lock.patch +++ b/debian/patches-rt/skbufhead-raw-lock.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Tue, 12 Jul 2011 15:38:34 +0200 Subject: net: Use skbufhead with raw lock -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Use the rps lock as rawlock so we can keep irq-off regions. It looks low latency. However we can't kfree() from this context therefore we defer this diff --git a/debian/patches/features/all/rt/slub-disable-SLUB_CPU_PARTIAL.patch b/debian/patches-rt/slub-disable-SLUB_CPU_PARTIAL.patch similarity index 98% rename from debian/patches/features/all/rt/slub-disable-SLUB_CPU_PARTIAL.patch rename to debian/patches-rt/slub-disable-SLUB_CPU_PARTIAL.patch index 404769660..4a96191ae 100644 --- a/debian/patches/features/all/rt/slub-disable-SLUB_CPU_PARTIAL.patch +++ b/debian/patches-rt/slub-disable-SLUB_CPU_PARTIAL.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Wed, 15 Apr 2015 19:00:47 +0200 Subject: slub: Disable SLUB_CPU_PARTIAL -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz |BUG: sleeping function called from invalid context at kernel/locking/rtmutex.c:915 |in_atomic(): 1, irqs_disabled(): 0, pid: 87, name: rcuop/7 diff --git a/debian/patches/features/all/rt/slub-enable-irqs-for-no-wait.patch b/debian/patches-rt/slub-enable-irqs-for-no-wait.patch similarity index 97% rename from debian/patches/features/all/rt/slub-enable-irqs-for-no-wait.patch rename to debian/patches-rt/slub-enable-irqs-for-no-wait.patch index a4125d20a..22ac8836e 100644 --- a/debian/patches/features/all/rt/slub-enable-irqs-for-no-wait.patch +++ b/debian/patches-rt/slub-enable-irqs-for-no-wait.patch @@ -1,7 +1,7 @@ Subject: slub: Enable irqs for __GFP_WAIT From: Thomas Gleixner Date: Wed, 09 Jan 2013 12:08:15 +0100 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz SYSTEM_RUNNING might be too late for enabling interrupts. Allocations with GFP_WAIT can happen before that. So use this as an indicator. diff --git a/debian/patches/features/all/rt/softirq-disable-softirq-stacks-for-rt.patch b/debian/patches-rt/softirq-disable-softirq-stacks-for-rt.patch similarity index 99% rename from debian/patches/features/all/rt/softirq-disable-softirq-stacks-for-rt.patch rename to debian/patches-rt/softirq-disable-softirq-stacks-for-rt.patch index 887cb791e..2e79144f4 100644 --- a/debian/patches/features/all/rt/softirq-disable-softirq-stacks-for-rt.patch +++ b/debian/patches-rt/softirq-disable-softirq-stacks-for-rt.patch @@ -1,7 +1,7 @@ Subject: softirq: Disable softirq stacks for RT From: Thomas Gleixner Date: Mon, 18 Jul 2011 13:59:17 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Disable extra stacks for softirqs. We want to preempt softirqs and having them on special IRQ-stack does not make this easier. diff --git a/debian/patches/features/all/rt/softirq-preempt-fix-3-re.patch b/debian/patches-rt/softirq-preempt-fix-3-re.patch similarity index 99% rename from debian/patches/features/all/rt/softirq-preempt-fix-3-re.patch rename to debian/patches-rt/softirq-preempt-fix-3-re.patch index 26ab51f3e..389850f4f 100644 --- a/debian/patches/features/all/rt/softirq-preempt-fix-3-re.patch +++ b/debian/patches-rt/softirq-preempt-fix-3-re.patch @@ -1,7 +1,7 @@ Subject: softirq: Check preemption after reenabling interrupts From: Thomas Gleixner Date: Sun, 13 Nov 2011 17:17:09 +0100 (CET) -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz raise_softirq_irqoff() disables interrupts and wakes the softirq daemon, but after reenabling interrupts there is no preemption check, diff --git a/debian/patches/features/all/rt/softirq-split-locks.patch b/debian/patches-rt/softirq-split-locks.patch similarity index 99% rename from debian/patches/features/all/rt/softirq-split-locks.patch rename to debian/patches-rt/softirq-split-locks.patch index 59d9270c7..3bc79ab2c 100644 --- a/debian/patches/features/all/rt/softirq-split-locks.patch +++ b/debian/patches-rt/softirq-split-locks.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Thu, 04 Oct 2012 14:20:47 +0100 Subject: softirq: Split softirq locks -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The 3.x RT series removed the split softirq implementation in favour of pushing softirq processing into the context of the thread which diff --git a/debian/patches/features/all/rt/softirq-split-timer-softirqs-out-of-ksoftirqd.patch b/debian/patches-rt/softirq-split-timer-softirqs-out-of-ksoftirqd.patch similarity index 99% rename from debian/patches/features/all/rt/softirq-split-timer-softirqs-out-of-ksoftirqd.patch rename to debian/patches-rt/softirq-split-timer-softirqs-out-of-ksoftirqd.patch index 1a9f1a38a..c623ba452 100644 --- a/debian/patches/features/all/rt/softirq-split-timer-softirqs-out-of-ksoftirqd.patch +++ b/debian/patches-rt/softirq-split-timer-softirqs-out-of-ksoftirqd.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Wed, 20 Jan 2016 16:34:17 +0100 Subject: softirq: split timer softirqs out of ksoftirqd -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The softirqd runs in -RT with SCHED_FIFO (prio 1) and deals mostly with timer wakeup which can not happen in hardirq context. The prio has been diff --git a/debian/patches/features/all/rt/spinlock-types-separate-raw.patch b/debian/patches-rt/spinlock-types-separate-raw.patch similarity index 99% rename from debian/patches/features/all/rt/spinlock-types-separate-raw.patch rename to debian/patches-rt/spinlock-types-separate-raw.patch index 625b8fe4a..0fc4424cc 100644 --- a/debian/patches/features/all/rt/spinlock-types-separate-raw.patch +++ b/debian/patches-rt/spinlock-types-separate-raw.patch @@ -1,7 +1,7 @@ Subject: spinlock: Split the lock types header From: Thomas Gleixner Date: Wed, 29 Jun 2011 19:34:01 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Split raw_spinlock into its own file and the remaining spinlock_t into its own non-RT header. The non-RT header will be replaced later by sleeping diff --git a/debian/patches/features/all/rt/squashfs-make-use-of-local-lock-in-multi_cpu-decompr.patch b/debian/patches-rt/squashfs-make-use-of-local-lock-in-multi_cpu-decompr.patch similarity index 98% rename from debian/patches/features/all/rt/squashfs-make-use-of-local-lock-in-multi_cpu-decompr.patch rename to debian/patches-rt/squashfs-make-use-of-local-lock-in-multi_cpu-decompr.patch index 5a8df032b..e0c01e18c 100644 --- a/debian/patches/features/all/rt/squashfs-make-use-of-local-lock-in-multi_cpu-decompr.patch +++ b/debian/patches-rt/squashfs-make-use-of-local-lock-in-multi_cpu-decompr.patch @@ -2,7 +2,7 @@ From: Julia Cartwright Date: Mon, 7 May 2018 08:58:57 -0500 Subject: [PATCH] squashfs: make use of local lock in multi_cpu decompressor -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Currently, the squashfs multi_cpu decompressor makes use of get_cpu_ptr()/put_cpu_ptr(), which unconditionally disable preemption diff --git a/debian/patches/features/all/rt/srcu-replace-local_irqsave-with-a-locallock.patch b/debian/patches-rt/srcu-replace-local_irqsave-with-a-locallock.patch similarity index 98% rename from debian/patches/features/all/rt/srcu-replace-local_irqsave-with-a-locallock.patch rename to debian/patches-rt/srcu-replace-local_irqsave-with-a-locallock.patch index 5f77378a5..4e3519209 100644 --- a/debian/patches/features/all/rt/srcu-replace-local_irqsave-with-a-locallock.patch +++ b/debian/patches-rt/srcu-replace-local_irqsave-with-a-locallock.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Thu, 12 Oct 2017 18:37:12 +0200 Subject: [PATCH] srcu: replace local_irqsave() with a locallock -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz There are two instances which disable interrupts in order to become a stable this_cpu_ptr() pointer. The restore part is coupled with diff --git a/debian/patches/features/all/rt/srcu-use-cpu_online-instead-custom-check.patch b/debian/patches-rt/srcu-use-cpu_online-instead-custom-check.patch similarity index 98% rename from debian/patches/features/all/rt/srcu-use-cpu_online-instead-custom-check.patch rename to debian/patches-rt/srcu-use-cpu_online-instead-custom-check.patch index c782e133d..aaf78b324 100644 --- a/debian/patches/features/all/rt/srcu-use-cpu_online-instead-custom-check.patch +++ b/debian/patches-rt/srcu-use-cpu_online-instead-custom-check.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Wed, 13 Sep 2017 14:43:41 +0200 Subject: [PATCH] srcu: use cpu_online() instead custom check -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The current check via srcu_online is slightly racy because after looking at srcu_online there could be an interrupt that interrupted us long diff --git a/debian/patches/features/all/rt/sunrpc-make-svc_xprt_do_enqueue-use-get_cpu_light.patch b/debian/patches-rt/sunrpc-make-svc_xprt_do_enqueue-use-get_cpu_light.patch similarity index 98% rename from debian/patches/features/all/rt/sunrpc-make-svc_xprt_do_enqueue-use-get_cpu_light.patch rename to debian/patches-rt/sunrpc-make-svc_xprt_do_enqueue-use-get_cpu_light.patch index a25584c66..f071bf123 100644 --- a/debian/patches/features/all/rt/sunrpc-make-svc_xprt_do_enqueue-use-get_cpu_light.patch +++ b/debian/patches-rt/sunrpc-make-svc_xprt_do_enqueue-use-get_cpu_light.patch @@ -1,7 +1,7 @@ From: Mike Galbraith Date: Wed, 18 Feb 2015 16:05:28 +0100 Subject: sunrpc: Make svc_xprt_do_enqueue() use get_cpu_light() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz |BUG: sleeping function called from invalid context at kernel/locking/rtmutex.c:915 |in_atomic(): 1, irqs_disabled(): 0, pid: 3194, name: rpc.nfsd diff --git a/debian/patches/features/all/rt/sysfs-realtime-entry.patch b/debian/patches-rt/sysfs-realtime-entry.patch similarity index 97% rename from debian/patches/features/all/rt/sysfs-realtime-entry.patch rename to debian/patches-rt/sysfs-realtime-entry.patch index 9f229b47e..12dac1a9d 100644 --- a/debian/patches/features/all/rt/sysfs-realtime-entry.patch +++ b/debian/patches-rt/sysfs-realtime-entry.patch @@ -1,7 +1,7 @@ Subject: sysfs: Add /sys/kernel/realtime entry From: Clark Williams Date: Sat Jul 30 21:55:53 2011 -0500 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Add a /sys/kernel entry to indicate that the kernel is a realtime kernel. diff --git a/debian/patches/features/all/rt/tasklet-rt-prevent-tasklets-from-going-into-infinite-spin-in-rt.patch b/debian/patches-rt/tasklet-rt-prevent-tasklets-from-going-into-infinite-spin-in-rt.patch similarity index 99% rename from debian/patches/features/all/rt/tasklet-rt-prevent-tasklets-from-going-into-infinite-spin-in-rt.patch rename to debian/patches-rt/tasklet-rt-prevent-tasklets-from-going-into-infinite-spin-in-rt.patch index 953aee3f8..83687c284 100644 --- a/debian/patches/features/all/rt/tasklet-rt-prevent-tasklets-from-going-into-infinite-spin-in-rt.patch +++ b/debian/patches-rt/tasklet-rt-prevent-tasklets-from-going-into-infinite-spin-in-rt.patch @@ -1,7 +1,7 @@ Subject: tasklet: Prevent tasklets from going into infinite spin in RT From: Ingo Molnar Date: Tue Nov 29 20:18:22 2011 -0500 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz When CONFIG_PREEMPT_RT_FULL is enabled, tasklets run as threads, and spinlocks turn are mutexes. But this can cause issues with diff --git a/debian/patches/features/all/rt/thermal-Defer-thermal-wakups-to-threads.patch b/debian/patches-rt/thermal-Defer-thermal-wakups-to-threads.patch similarity index 99% rename from debian/patches/features/all/rt/thermal-Defer-thermal-wakups-to-threads.patch rename to debian/patches-rt/thermal-Defer-thermal-wakups-to-threads.patch index d40ca10dc..a36a5a057 100644 --- a/debian/patches/features/all/rt/thermal-Defer-thermal-wakups-to-threads.patch +++ b/debian/patches-rt/thermal-Defer-thermal-wakups-to-threads.patch @@ -1,7 +1,7 @@ From: Daniel Wagner Date: Tue, 17 Feb 2015 09:37:44 +0100 Subject: thermal: Defer thermal wakups to threads -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz On RT the spin lock in pkg_temp_thermal_platfrom_thermal_notify will call schedule while we run in irq context. diff --git a/debian/patches/features/all/rt/time-hrtimer-avoid-schedule_work-with-interrupts-dis.patch b/debian/patches-rt/time-hrtimer-avoid-schedule_work-with-interrupts-dis.patch similarity index 98% rename from debian/patches/features/all/rt/time-hrtimer-avoid-schedule_work-with-interrupts-dis.patch rename to debian/patches-rt/time-hrtimer-avoid-schedule_work-with-interrupts-dis.patch index fbf90d60c..1c29d4328 100644 --- a/debian/patches/features/all/rt/time-hrtimer-avoid-schedule_work-with-interrupts-dis.patch +++ b/debian/patches-rt/time-hrtimer-avoid-schedule_work-with-interrupts-dis.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Wed, 15 Nov 2017 17:29:51 +0100 Subject: [PATCH] time/hrtimer: avoid schedule_work() with interrupts disabled -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz The NOHZ code tries to schedule a workqueue with interrupts disabled. Since this does not work -RT I am switching it to swork instead. diff --git a/debian/patches/features/all/rt/timekeeping-split-jiffies-lock.patch b/debian/patches-rt/timekeeping-split-jiffies-lock.patch similarity index 99% rename from debian/patches/features/all/rt/timekeeping-split-jiffies-lock.patch rename to debian/patches-rt/timekeeping-split-jiffies-lock.patch index a1d102bfd..b03927926 100644 --- a/debian/patches/features/all/rt/timekeeping-split-jiffies-lock.patch +++ b/debian/patches-rt/timekeeping-split-jiffies-lock.patch @@ -1,7 +1,7 @@ Subject: timekeeping: Split jiffies seqlock From: Thomas Gleixner Date: Thu, 14 Feb 2013 22:36:59 +0100 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Replace jiffies_lock seqlock with a simple seqcounter and a rawlock so it can be taken in atomic context on RT. diff --git a/debian/patches/features/all/rt/timers-prepare-for-full-preemption.patch b/debian/patches-rt/timers-prepare-for-full-preemption.patch similarity index 99% rename from debian/patches/features/all/rt/timers-prepare-for-full-preemption.patch rename to debian/patches-rt/timers-prepare-for-full-preemption.patch index 2f8f61c3c..4e4acc3f7 100644 --- a/debian/patches/features/all/rt/timers-prepare-for-full-preemption.patch +++ b/debian/patches-rt/timers-prepare-for-full-preemption.patch @@ -1,7 +1,7 @@ From: Ingo Molnar Date: Fri, 3 Jul 2009 08:29:34 -0500 Subject: timers: Prepare for full preemption -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz When softirqs can be preempted we need to make sure that cancelling the timer from the active thread can not deadlock vs. a running timer diff --git a/debian/patches/features/all/rt/tpm_tis-fix-stall-after-iowrite-s.patch b/debian/patches-rt/tpm_tis-fix-stall-after-iowrite-s.patch similarity index 98% rename from debian/patches/features/all/rt/tpm_tis-fix-stall-after-iowrite-s.patch rename to debian/patches-rt/tpm_tis-fix-stall-after-iowrite-s.patch index 97a8919d6..2044208db 100644 --- a/debian/patches/features/all/rt/tpm_tis-fix-stall-after-iowrite-s.patch +++ b/debian/patches-rt/tpm_tis-fix-stall-after-iowrite-s.patch @@ -1,7 +1,7 @@ From: Haris Okanovic Date: Tue, 15 Aug 2017 15:13:08 -0500 Subject: [PATCH] tpm_tis: fix stall after iowrite*()s -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz ioread8() operations to TPM MMIO addresses can stall the cpu when immediately following a sequence of iowrite*()'s to the same region. diff --git a/debian/patches/features/all/rt/tty-serial-8250-don-t-take-the-trylock-during-oops.patch b/debian/patches-rt/tty-serial-8250-don-t-take-the-trylock-during-oops.patch similarity index 96% rename from debian/patches/features/all/rt/tty-serial-8250-don-t-take-the-trylock-during-oops.patch rename to debian/patches-rt/tty-serial-8250-don-t-take-the-trylock-during-oops.patch index b62bd2b18..86c5aa614 100644 --- a/debian/patches/features/all/rt/tty-serial-8250-don-t-take-the-trylock-during-oops.patch +++ b/debian/patches-rt/tty-serial-8250-don-t-take-the-trylock-during-oops.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Mon, 11 Apr 2016 16:55:02 +0200 Subject: [PATCH] tty: serial: 8250: don't take the trylock during oops -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz An oops with irqs off (panic() from irqsafe hrtimer like the watchdog timer) will lead to a lockdep warning on each invocation and as such diff --git a/debian/patches/features/all/rt/upstream-net-rt-remove-preemption-disabling-in-netif_rx.patch b/debian/patches-rt/upstream-net-rt-remove-preemption-disabling-in-netif_rx.patch similarity index 98% rename from debian/patches/features/all/rt/upstream-net-rt-remove-preemption-disabling-in-netif_rx.patch rename to debian/patches-rt/upstream-net-rt-remove-preemption-disabling-in-netif_rx.patch index df33b79fa..e9a251bbc 100644 --- a/debian/patches/features/all/rt/upstream-net-rt-remove-preemption-disabling-in-netif_rx.patch +++ b/debian/patches-rt/upstream-net-rt-remove-preemption-disabling-in-netif_rx.patch @@ -1,7 +1,7 @@ Subject: net: Remove preemption disabling in netif_rx() From: Priyanka Jain Date: Thu, 17 May 2012 09:35:11 +0530 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz 1)enqueue_to_backlog() (called from netif_rx) should be bind to a particluar CPU. This can be achieved by diff --git a/debian/patches/features/all/rt/usb-do-not-disable-interrupts-in-giveback.patch b/debian/patches-rt/usb-do-not-disable-interrupts-in-giveback.patch similarity index 97% rename from debian/patches/features/all/rt/usb-do-not-disable-interrupts-in-giveback.patch rename to debian/patches-rt/usb-do-not-disable-interrupts-in-giveback.patch index dcdaea2f5..592898613 100644 --- a/debian/patches/features/all/rt/usb-do-not-disable-interrupts-in-giveback.patch +++ b/debian/patches-rt/usb-do-not-disable-interrupts-in-giveback.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Fri, 8 Nov 2013 17:34:54 +0100 Subject: usb: do no disable interrupts in giveback -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Since commit 94dfd7ed ("USB: HCD: support giveback of URB in tasklet context") the USB code disables interrupts before invoking the complete diff --git a/debian/patches/features/all/rt/wait.h-include-atomic.h.patch b/debian/patches-rt/wait.h-include-atomic.h.patch similarity index 97% rename from debian/patches/features/all/rt/wait.h-include-atomic.h.patch rename to debian/patches-rt/wait.h-include-atomic.h.patch index 33f4a6f0d..695b6ba36 100644 --- a/debian/patches/features/all/rt/wait.h-include-atomic.h.patch +++ b/debian/patches-rt/wait.h-include-atomic.h.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Mon, 28 Oct 2013 12:19:57 +0100 Subject: wait.h: include atomic.h -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz | CC init/main.o |In file included from include/linux/mmzone.h:9:0, diff --git a/debian/patches/features/all/rt/work-queue-work-around-irqsafe-timer-optimization.patch b/debian/patches-rt/work-queue-work-around-irqsafe-timer-optimization.patch similarity index 99% rename from debian/patches/features/all/rt/work-queue-work-around-irqsafe-timer-optimization.patch rename to debian/patches-rt/work-queue-work-around-irqsafe-timer-optimization.patch index fb246c883..7b11a595c 100644 --- a/debian/patches/features/all/rt/work-queue-work-around-irqsafe-timer-optimization.patch +++ b/debian/patches-rt/work-queue-work-around-irqsafe-timer-optimization.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Mon, 01 Jul 2013 11:02:42 +0200 Subject: workqueue: Prevent workqueue versus ata-piix livelock -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz An Intel i7 system regularly detected rcu_preempt stalls after the kernel was upgraded from 3.6-rt to 3.8-rt. When the stall happened, disk I/O was no diff --git a/debian/patches/features/all/rt/work-simple-Simple-work-queue-implemenation.patch b/debian/patches-rt/work-simple-Simple-work-queue-implemenation.patch similarity index 99% rename from debian/patches/features/all/rt/work-simple-Simple-work-queue-implemenation.patch rename to debian/patches-rt/work-simple-Simple-work-queue-implemenation.patch index 6713abdb4..0cfde959d 100644 --- a/debian/patches/features/all/rt/work-simple-Simple-work-queue-implemenation.patch +++ b/debian/patches-rt/work-simple-Simple-work-queue-implemenation.patch @@ -1,7 +1,7 @@ From: Daniel Wagner Date: Fri, 11 Jul 2014 15:26:11 +0200 Subject: work-simple: Simple work queue implemenation -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Provides a framework for enqueuing callbacks from irq context PREEMPT_RT_FULL safe. The callbacks are executed in kthread context. diff --git a/debian/patches-rt/work-simple-drop-a-shit-statement-in-SWORK_EVENT_PEN.patch b/debian/patches-rt/work-simple-drop-a-shit-statement-in-SWORK_EVENT_PEN.patch new file mode 100644 index 000000000..5fef466a0 --- /dev/null +++ b/debian/patches-rt/work-simple-drop-a-shit-statement-in-SWORK_EVENT_PEN.patch @@ -0,0 +1,30 @@ +From: Sebastian Andrzej Siewior +Date: Mon, 10 Sep 2018 18:00:31 +0200 +Subject: [PATCH] work-simple: drop a shit statement in SWORK_EVENT_PENDING +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz + +Dan Carpenter reported +| smatch warnings: +|kernel/sched/swork.c:63 swork_kthread() warn: test_bit() takes a bit number + +This is not a bug because we shift by zero (and use the same value in +both places). +Nevertheless I'm dropping that shift by zero to keep smatch quiet. + +Cc: Daniel Wagner +Signed-off-by: Sebastian Andrzej Siewior +--- + kernel/sched/swork.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/kernel/sched/swork.c ++++ b/kernel/sched/swork.c +@@ -12,7 +12,7 @@ + #include + #include + +-#define SWORK_EVENT_PENDING (1 << 0) ++#define SWORK_EVENT_PENDING 1 + + static DEFINE_MUTEX(worker_mutex); + static struct sworker *glob_worker; diff --git a/debian/patches/features/all/rt/workqueue-distangle-from-rq-lock.patch b/debian/patches-rt/workqueue-distangle-from-rq-lock.patch similarity index 99% rename from debian/patches/features/all/rt/workqueue-distangle-from-rq-lock.patch rename to debian/patches-rt/workqueue-distangle-from-rq-lock.patch index 78e683d03..160598852 100644 --- a/debian/patches/features/all/rt/workqueue-distangle-from-rq-lock.patch +++ b/debian/patches-rt/workqueue-distangle-from-rq-lock.patch @@ -22,7 +22,7 @@ Cc: Jens Axboe Cc: Linus Torvalds Link: http://lkml.kernel.org/r/20110622174919.135236139@linutronix.de Signed-off-by: Thomas Gleixner -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz [bigeasy: preempt_disable() around wq_worker_sleeping() by Daniel Bristot de Oliveira] diff --git a/debian/patches/features/all/rt/workqueue-prevent-deadlock-stall.patch b/debian/patches-rt/workqueue-prevent-deadlock-stall.patch similarity index 99% rename from debian/patches/features/all/rt/workqueue-prevent-deadlock-stall.patch rename to debian/patches-rt/workqueue-prevent-deadlock-stall.patch index 284102dfa..9b209d6c2 100644 --- a/debian/patches/features/all/rt/workqueue-prevent-deadlock-stall.patch +++ b/debian/patches-rt/workqueue-prevent-deadlock-stall.patch @@ -1,7 +1,7 @@ Subject: workqueue: Prevent deadlock/stall on RT From: Thomas Gleixner Date: Fri, 27 Jun 2014 16:24:52 +0200 (CEST) -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Austin reported a XFS deadlock/stall on RT where scheduled work gets never exececuted and tasks are waiting for each other for ever. diff --git a/debian/patches/features/all/rt/workqueue-use-locallock.patch b/debian/patches-rt/workqueue-use-locallock.patch similarity index 99% rename from debian/patches/features/all/rt/workqueue-use-locallock.patch rename to debian/patches-rt/workqueue-use-locallock.patch index d053aa057..0f4806a28 100644 --- a/debian/patches/features/all/rt/workqueue-use-locallock.patch +++ b/debian/patches-rt/workqueue-use-locallock.patch @@ -1,7 +1,7 @@ Subject: workqueue: Use local irq lock instead of irq disable regions From: Thomas Gleixner Date: Sun, 17 Jul 2011 21:42:26 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Use a local_irq_lock as a replacement for irq off regions. We keep the semantic of irq-off in regard to the pool->lock and remain preemptible. diff --git a/debian/patches/features/all/rt/workqueue-use-rcu.patch b/debian/patches-rt/workqueue-use-rcu.patch similarity index 99% rename from debian/patches/features/all/rt/workqueue-use-rcu.patch rename to debian/patches-rt/workqueue-use-rcu.patch index 1a42552db..4441f0443 100644 --- a/debian/patches/features/all/rt/workqueue-use-rcu.patch +++ b/debian/patches-rt/workqueue-use-rcu.patch @@ -1,7 +1,7 @@ Subject: workqueue: Use normal rcu From: Thomas Gleixner Date: Wed, 24 Jul 2013 15:26:54 +0200 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz There is no need for sched_rcu. The undocumented reason why sched_rcu is used is to avoid a few explicit rcu_read_lock()/unlock() pairs by diff --git a/debian/patches/features/all/rt/x86-crypto-reduce-preempt-disabled-regions.patch b/debian/patches-rt/x86-crypto-reduce-preempt-disabled-regions.patch similarity index 98% rename from debian/patches/features/all/rt/x86-crypto-reduce-preempt-disabled-regions.patch rename to debian/patches-rt/x86-crypto-reduce-preempt-disabled-regions.patch index 54d370c11..a1ca156c1 100644 --- a/debian/patches/features/all/rt/x86-crypto-reduce-preempt-disabled-regions.patch +++ b/debian/patches-rt/x86-crypto-reduce-preempt-disabled-regions.patch @@ -1,7 +1,7 @@ Subject: x86: crypto: Reduce preempt disabled regions From: Peter Zijlstra Date: Mon, 14 Nov 2011 18:19:27 +0100 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Restrict the preempt disabled regions to the actual floating point operations and enable preemption for the administrative actions. diff --git a/debian/patches/features/all/rt/x86-efi-drop-task_lock-from-efi_switch_mm.patch b/debian/patches-rt/x86-efi-drop-task_lock-from-efi_switch_mm.patch similarity index 98% rename from debian/patches/features/all/rt/x86-efi-drop-task_lock-from-efi_switch_mm.patch rename to debian/patches-rt/x86-efi-drop-task_lock-from-efi_switch_mm.patch index a3af98e24..c40150476 100644 --- a/debian/patches/features/all/rt/x86-efi-drop-task_lock-from-efi_switch_mm.patch +++ b/debian/patches-rt/x86-efi-drop-task_lock-from-efi_switch_mm.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Tue, 24 Jul 2018 14:48:55 +0200 Subject: [PATCH] x86/efi: drop task_lock() from efi_switch_mm() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz efi_switch_mm() is a wrapper around switch_mm() which saves current's ->active_mm, sets the requests mm as ->active_mm and invokes diff --git a/debian/patches/features/all/rt/x86-highmem-add-a-already-used-pte-check.patch b/debian/patches-rt/x86-highmem-add-a-already-used-pte-check.patch similarity index 95% rename from debian/patches/features/all/rt/x86-highmem-add-a-already-used-pte-check.patch rename to debian/patches-rt/x86-highmem-add-a-already-used-pte-check.patch index b932d7354..6eb5221e2 100644 --- a/debian/patches/features/all/rt/x86-highmem-add-a-already-used-pte-check.patch +++ b/debian/patches-rt/x86-highmem-add-a-already-used-pte-check.patch @@ -1,7 +1,7 @@ From: Sebastian Andrzej Siewior Date: Mon, 11 Mar 2013 17:09:55 +0100 Subject: x86/highmem: Add a "already used pte" check -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz This is a copy from kmap_atomic_prot(). diff --git a/debian/patches/features/all/rt/x86-ioapic-Don-t-let-setaffinity-unmask-threaded-EOI.patch b/debian/patches-rt/x86-ioapic-Don-t-let-setaffinity-unmask-threaded-EOI.patch similarity index 99% rename from debian/patches/features/all/rt/x86-ioapic-Don-t-let-setaffinity-unmask-threaded-EOI.patch rename to debian/patches-rt/x86-ioapic-Don-t-let-setaffinity-unmask-threaded-EOI.patch index fb5c30965..920336f1a 100644 --- a/debian/patches/features/all/rt/x86-ioapic-Don-t-let-setaffinity-unmask-threaded-EOI.patch +++ b/debian/patches-rt/x86-ioapic-Don-t-let-setaffinity-unmask-threaded-EOI.patch @@ -2,7 +2,7 @@ From: Thomas Gleixner Date: Tue, 17 Jul 2018 18:25:31 +0200 Subject: [PATCH] x86/ioapic: Don't let setaffinity unmask threaded EOI interrupt too early -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz There is an issue with threaded interrupts which are marked ONESHOT and using the fasteoi handler. diff --git a/debian/patches/features/all/rt/x86-kvm-require-const-tsc-for-rt.patch b/debian/patches-rt/x86-kvm-require-const-tsc-for-rt.patch similarity index 90% rename from debian/patches/features/all/rt/x86-kvm-require-const-tsc-for-rt.patch rename to debian/patches-rt/x86-kvm-require-const-tsc-for-rt.patch index 5e51f1760..0b4a2d772 100644 --- a/debian/patches/features/all/rt/x86-kvm-require-const-tsc-for-rt.patch +++ b/debian/patches-rt/x86-kvm-require-const-tsc-for-rt.patch @@ -1,7 +1,7 @@ Subject: x86: kvm Require const tsc for RT From: Thomas Gleixner Date: Sun, 06 Nov 2011 12:26:18 +0100 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Non constant TSC is a nightmare on bare metal already, but with virtualization it becomes a complete disaster because the workarounds @@ -15,7 +15,7 @@ Signed-off-by: Thomas Gleixner --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c -@@ -6594,6 +6594,13 @@ int kvm_arch_init(void *opaque) +@@ -6597,6 +6597,13 @@ int kvm_arch_init(void *opaque) goto out; } diff --git a/debian/patches/features/all/rt/x86-preempt-lazy.patch b/debian/patches-rt/x86-preempt-lazy.patch similarity index 98% rename from debian/patches/features/all/rt/x86-preempt-lazy.patch rename to debian/patches-rt/x86-preempt-lazy.patch index 85d084bec..b5aaf316c 100644 --- a/debian/patches/features/all/rt/x86-preempt-lazy.patch +++ b/debian/patches-rt/x86-preempt-lazy.patch @@ -1,7 +1,7 @@ Subject: x86: Support for lazy preemption From: Thomas Gleixner Date: Thu, 01 Nov 2012 11:03:47 +0100 -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Implement the x86 pieces for lazy preempt. @@ -76,7 +76,7 @@ Signed-off-by: Thomas Gleixner call preempt_schedule_irq --- a/arch/x86/entry/entry_64.S +++ b/arch/x86/entry/entry_64.S -@@ -704,7 +704,23 @@ retint_kernel: +@@ -704,7 +704,23 @@ GLOBAL(swapgs_restore_regs_and_return_to bt $9, EFLAGS(%rsp) /* were interrupts off? */ jnc 1f 0: cmpl $0, PER_CPU_VAR(__preempt_count) diff --git a/debian/patches/features/all/rt/x86-signal-delay-calling-signals-on-32bit.patch b/debian/patches-rt/x86-signal-delay-calling-signals-on-32bit.patch similarity index 97% rename from debian/patches/features/all/rt/x86-signal-delay-calling-signals-on-32bit.patch rename to debian/patches-rt/x86-signal-delay-calling-signals-on-32bit.patch index ea6daf5de..5e2e9e2ad 100644 --- a/debian/patches/features/all/rt/x86-signal-delay-calling-signals-on-32bit.patch +++ b/debian/patches-rt/x86-signal-delay-calling-signals-on-32bit.patch @@ -1,7 +1,7 @@ From: Yang Shi Date: Thu, 10 Dec 2015 10:58:51 -0800 Subject: x86/signal: delay calling signals on 32bit -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz When running some ptrace single step tests on x86-32 machine, the below problem is triggered: diff --git a/debian/patches/features/all/rt/x86-stackprot-no-random-on-rt.patch b/debian/patches-rt/x86-stackprot-no-random-on-rt.patch similarity index 98% rename from debian/patches/features/all/rt/x86-stackprot-no-random-on-rt.patch rename to debian/patches-rt/x86-stackprot-no-random-on-rt.patch index e1d51d8e5..64ab72689 100644 --- a/debian/patches/features/all/rt/x86-stackprot-no-random-on-rt.patch +++ b/debian/patches-rt/x86-stackprot-no-random-on-rt.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Thu, 16 Dec 2010 14:25:18 +0100 Subject: x86: stackprotector: Avoid random pool on rt -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz CPU bringup calls into the random pool to initialize the stack canary. During boot that works nicely even on RT as the might sleep diff --git a/debian/patches/features/all/rt/x86-use-gen-rwsem-spinlocks-rt.patch b/debian/patches-rt/x86-use-gen-rwsem-spinlocks-rt.patch similarity index 89% rename from debian/patches/features/all/rt/x86-use-gen-rwsem-spinlocks-rt.patch rename to debian/patches-rt/x86-use-gen-rwsem-spinlocks-rt.patch index 28b42a3c6..516aa5ce3 100644 --- a/debian/patches/features/all/rt/x86-use-gen-rwsem-spinlocks-rt.patch +++ b/debian/patches-rt/x86-use-gen-rwsem-spinlocks-rt.patch @@ -1,7 +1,7 @@ From: Thomas Gleixner Date: Sun, 26 Jul 2009 02:21:32 +0200 Subject: x86: Use generic rwsem_spinlocks on -rt -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.5-rt3.tar.xz +Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.18/older/patches-4.18.7-rt5.tar.xz Simplifies the separation of anon_rw_semaphores and rw_semaphores for -rt. @@ -14,7 +14,7 @@ Signed-off-by: Thomas Gleixner --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig -@@ -261,8 +261,11 @@ config ARCH_MAY_HAVE_PC_FDC +@@ -262,8 +262,11 @@ config ARCH_MAY_HAVE_PC_FDC def_bool y depends on ISA_DMA_API diff --git a/debian/patches/bugfix/all/i40e-build-for-64-bit-targets-only.patch b/debian/patches/bugfix/all/i40e-build-for-64-bit-targets-only.patch deleted file mode 100644 index ec1e87c14..000000000 --- a/debian/patches/bugfix/all/i40e-build-for-64-bit-targets-only.patch +++ /dev/null @@ -1,26 +0,0 @@ -From: Ben Hutchings -Date: Thu, 15 Mar 2018 19:02:28 +0000 -Subject: i40e: Add kconfig dependency to ensure cmpxchg64() is available - -i40e again uses cmpxchg64(), which isn't available in some 32-bit SMP -configurations. It seems reasonable to expect that 40G hardware is -not used on 32-bit systems. - -Fixes: 60f481b97038 ("i40e: change flags to use 64 bits") -Signed-off-by: Ben Hutchings ---- - drivers/net/ethernet/intel/Kconfig | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/drivers/net/ethernet/intel/Kconfig b/drivers/net/ethernet/intel/Kconfig -index 1feb54b6d92e..dd17bdf5561e 100644 ---- a/drivers/net/ethernet/intel/Kconfig -+++ b/drivers/net/ethernet/intel/Kconfig -@@ -215,6 +215,7 @@ config I40E - tristate "Intel(R) Ethernet Controller XL710 Family support" - imply PTP_1588_CLOCK - depends on PCI -+ depends on 64BIT || X86_CMPXCHG64 - ---help--- - This driver supports Intel(R) Ethernet Controller XL710 Family of - devices. For more information on how to identify your adapter, go diff --git a/debian/patches/bugfix/x86/crypto-ccp-add-timeout-support-in-the-SEV-command.patch b/debian/patches/bugfix/x86/crypto-ccp-add-timeout-support-in-the-SEV-command.patch new file mode 100644 index 000000000..a7441707c --- /dev/null +++ b/debian/patches/bugfix/x86/crypto-ccp-add-timeout-support-in-the-SEV-command.patch @@ -0,0 +1,115 @@ +From: Brijesh Singh +Date: Wed, 15 Aug 2018 16:11:25 -0500 +Subject: crypto: ccp - add timeout support in the SEV command +Origin: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git/commit?id=3702a0585e64d70d5bf73bf3e943b8d6005b72c1 + +Currently, the CCP driver assumes that the SEV command issued to the PSP +will always return (i.e. it will never hang). But recently, firmware bugs +have shown that a command can hang. Since of the SEV commands are used +in probe routines, this can cause boot hangs and/or loss of virtualization +capabilities. + +To protect against firmware bugs, add a timeout in the SEV command +execution flow. If a command does not complete within the specified +timeout then return -ETIMEOUT and stop the driver from executing any +further commands since the state of the SEV firmware is unknown. + +Cc: Tom Lendacky +Cc: Gary Hook +Cc: Herbert Xu +Cc: linux-kernel@vger.kernel.org +Signed-off-by: Brijesh Singh +Signed-off-by: Herbert Xu +--- + drivers/crypto/ccp/psp-dev.c | 46 ++++++++++++++++++++++++++++++++---- + 1 file changed, 41 insertions(+), 5 deletions(-) + +--- a/drivers/crypto/ccp/psp-dev.c ++++ b/drivers/crypto/ccp/psp-dev.c +@@ -38,6 +38,17 @@ static DEFINE_MUTEX(sev_cmd_mutex); + static struct sev_misc_dev *misc_dev; + static struct psp_device *psp_master; + ++static int psp_cmd_timeout = 100; ++module_param(psp_cmd_timeout, int, 0644); ++MODULE_PARM_DESC(psp_cmd_timeout, " default timeout value, in seconds, for PSP commands"); ++ ++static int psp_probe_timeout = 5; ++module_param(psp_probe_timeout, int, 0644); ++MODULE_PARM_DESC(psp_probe_timeout, " default timeout value, in seconds, during PSP device probe"); ++ ++static bool psp_dead; ++static int psp_timeout; ++ + static struct psp_device *psp_alloc_struct(struct sp_device *sp) + { + struct device *dev = sp->dev; +@@ -82,10 +93,19 @@ done: + return IRQ_HANDLED; + } + +-static void sev_wait_cmd_ioc(struct psp_device *psp, unsigned int *reg) ++static int sev_wait_cmd_ioc(struct psp_device *psp, ++ unsigned int *reg, unsigned int timeout) + { +- wait_event(psp->sev_int_queue, psp->sev_int_rcvd); ++ int ret; ++ ++ ret = wait_event_timeout(psp->sev_int_queue, ++ psp->sev_int_rcvd, timeout * HZ); ++ if (!ret) ++ return -ETIMEDOUT; ++ + *reg = ioread32(psp->io_regs + psp->vdata->cmdresp_reg); ++ ++ return 0; + } + + static int sev_cmd_buffer_len(int cmd) +@@ -133,12 +153,15 @@ static int __sev_do_cmd_locked(int cmd, + if (!psp) + return -ENODEV; + ++ if (psp_dead) ++ return -EBUSY; ++ + /* Get the physical address of the command buffer */ + phys_lsb = data ? lower_32_bits(__psp_pa(data)) : 0; + phys_msb = data ? upper_32_bits(__psp_pa(data)) : 0; + +- dev_dbg(psp->dev, "sev command id %#x buffer 0x%08x%08x\n", +- cmd, phys_msb, phys_lsb); ++ dev_dbg(psp->dev, "sev command id %#x buffer 0x%08x%08x timeout %us\n", ++ cmd, phys_msb, phys_lsb, psp_timeout); + + print_hex_dump_debug("(in): ", DUMP_PREFIX_OFFSET, 16, 2, data, + sev_cmd_buffer_len(cmd), false); +@@ -154,7 +177,18 @@ static int __sev_do_cmd_locked(int cmd, + iowrite32(reg, psp->io_regs + psp->vdata->cmdresp_reg); + + /* wait for command completion */ +- sev_wait_cmd_ioc(psp, ®); ++ ret = sev_wait_cmd_ioc(psp, ®, psp_timeout); ++ if (ret) { ++ if (psp_ret) ++ *psp_ret = 0; ++ ++ dev_err(psp->dev, "sev command %#x timed out, disabling PSP \n", cmd); ++ psp_dead = true; ++ ++ return ret; ++ } ++ ++ psp_timeout = psp_cmd_timeout; + + if (psp_ret) + *psp_ret = reg & PSP_CMDRESP_ERR_MASK; +@@ -888,6 +922,8 @@ void psp_pci_init(void) + + psp_master = sp->psp_data; + ++ psp_timeout = psp_probe_timeout; ++ + if (sev_get_api_version()) + goto err; + diff --git a/debian/patches/series b/debian/patches/series index 18b9ac95c..7928f796c 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -29,9 +29,8 @@ bugfix/all/firmware-remove-redundant-log-messages-from-drivers.patch bugfix/all/radeon-amdgpu-firmware-is-required-for-drm-and-kms-on-r600-onward.patch debian/firmware_class-refer-to-debian-wiki-firmware-page.patch -# Patches from aufs4 repository, imported with -# debian/patches/features/all/aufs4/gen-patch. These are only the -# changes needed to allow aufs to be built out-of-tree. +# Patches from aufs4 repository, imported with debian/bin/genpatch-aufs. +# These are only the changes needed to allow aufs to be built out-of-tree. features/all/aufs4/aufs4-base.patch features/all/aufs4/aufs4-mmap.patch features/all/aufs4/aufs4-standalone.patch @@ -72,6 +71,7 @@ bugfix/x86/perf-tools-fix-unwind-build-on-i386.patch bugfix/sh/sh-boot-do-not-use-hyphen-in-exported-variable-name.patch bugfix/x86/mmap-remember-the-map_fixed-flag-as-vm_fixed.patch bugfix/x86/mmap-add-an-exception-to-the-stack-gap-for-hotspot-jvm.patch +bugfix/x86/crypto-ccp-add-timeout-support-in-the-SEV-command.patch bugfix/powerpc/powerpc-lib-sstep-fix-building-for-powerpcspe.patch bugfix/powerpc/powerpc-lib-makefile-don-t-pull-in-quad.o-for-32-bit.patch bugfix/arm/arm-mm-export-__sync_icache_dcache-for-xen-privcmd.patch @@ -91,7 +91,6 @@ bugfix/all/fs-add-module_softdep-declarations-for-hard-coded-cr.patch bugfix/all/partially-revert-usb-kconfig-using-select-for-usb_co.patch bugfix/all/kbuild-include-addtree-remove-quotes-before-matching-path.patch debian/revert-objtool-fix-config_stack_validation-y-warning.patch -bugfix/all/i40e-build-for-64-bit-targets-only.patch # Miscellaneous features diff --git a/debian/patches/series-rt b/debian/patches/series-rt deleted file mode 100644 index af223bd99..000000000 --- a/debian/patches/series-rt +++ /dev/null @@ -1,435 +0,0 @@ -########################################################### -# DELTA against a known Linus release -########################################################### - -############################################################ -# UPSTREAM merged -############################################################ - -#misc -features/all/rt/SCSI-libsas-remove-irq-save-in-sas_ata_qc_issue.patch -features/all/rt/SCSI-qla2xxx-remove-irq-save-in-qla2x00_poll.patch -features/all/rt/cgroup-tracing-Move-taking-of-spin-lock-out-of-trace.patch -features/all/rt/sched-core-Remove-get_cpu-from-sched_fork.patch -features/all/rt/random-Remove-preempt-disabled-region.patch -features/all/rt/iommu-amd-drop-irqs_disabled-warn_on.patch -# atomic_dec_and_lock_irqsave / refcount_dec_and_lock_irqsave -features/all/rt/0002-drivers-md-raid5-Use-irqsave-variant-of-atomic_dec_a.patch -features/all/rt/0003-drivers-md-raid5-Do-not-disable-irq-on-release_inact.patch -features/all/rt/0001-bdi-use-refcount_t-for-reference-counting-instead-at.patch -features/all/rt/0002-userns-use-refcount_t-for-reference-counting-instead.patch -features/all/rt/0005-bdi-Use-irqsave-variant-of-refcount_dec_and_lock.patch -features/all/rt/0006-userns-Use-irqsave-variant-of-refcount_dec_and_lock.patch -features/all/rt/libata-remove-ata_sff_data_xfer_noirq.patch -features/all/rt/ntfs-avoid-disabling-interrupts-during-kmap_atomic.patch -# mm/workingset -features/all/rt/0001-mm-workingset-remove-local_irq_disable-from-count_sh.patch -features/all/rt/0002-mm-workingset-make-shadow_lru_isolate-use-locking-su.patch -features/all/rt/0001-mm-list_lru-use-list_lru_walk_one-in-list_lru_walk_n.patch -features/all/rt/0002-mm-list_lru-Move-locking-from-__list_lru_walk_one-to.patch -features/all/rt/0003-mm-list_lru-Pass-struct-list_lru_node-as-an-argument.patch -features/all/rt/0004-mm-list_lru-Introduce-list_lru_shrink_walk_irq.patch -features/all/rt/irqchip-gic-v3-its-Make-its_lock-a-raw_spin_lock_t.patch - -############################################################ -# POSTED by others -############################################################ -# AT91 -# Alexandre Belloni | [PATCH v4 0/6] clocksource: rework Atmel TCB timer driver -# Date: Wed, 18 Apr 2018 12:51:37 +0200 -features/all/rt/0001-ARM-at91-add-TCB-registers-definitions.patch -features/all/rt/0002-clocksource-drivers-Add-a-new-driver-for-the-Atmel-A.patch -features/all/rt/0003-clocksource-drivers-atmel-pit-make-option-silent.patch -features/all/rt/0004-ARM-at91-Implement-clocksource-selection.patch -features/all/rt/0005-ARM-configs-at91-use-new-TCB-timer-driver.patch -features/all/rt/0006-ARM-configs-at91-unselect-PIT.patch - -features/all/rt/irqchip-gic-v3-its-Move-pending-table-allocation-to-.patch - -############################################################ -# POSTED -############################################################ -features/all/rt/arm-convert-boot-lock-to-raw.patch -features/all/rt/x86-ioapic-Don-t-let-setaffinity-unmask-threaded-EOI.patch -features/all/rt/arm-kprobe-replace-patch_lock-to-raw-lock.patch -features/all/rt/arm-unwind-use_raw_lock.patch -features/all/rt/cgroup-use-irqsave-in-cgroup_rstat_flush_locked.patch -features/all/rt/fscache-initialize-cookie-hash-table-raw-spinlocks.patch -features/all/rt/Drivers-hv-vmbus-include-header-for-get_irq_regs.patch - -############################################################ -# Ready for posting -############################################################ -features/all/rt/efi-Allow-efi-runtime.patch - -############################################################ -# Needs to address review feedback -############################################################ - -############################################################ -# Almost ready, needs final polishing -############################################################ -features/all/rt/x86-efi-drop-task_lock-from-efi_switch_mm.patch -features/all/rt/arm64-KVM-compute_layout-before-altenates-are-applie.patch - -############################################################### -# Stuff broken upstream and upstream wants something different -############################################################### -features/all/rt/NFSv4-replace-seqcount_t-with-a-seqlock_t.patch -features/all/rt/kernel-sched-Provide-a-pointer-to-the-valid-CPU-mask.patch -features/all/rt/add_migrate_disable.patch - -# Those two should vanish soon (not use PIT during bootup) -features/all/rt/at91_dont_enable_disable_clock.patch -features/all/rt/clocksource-tclib-allow-higher-clockrates.patch - -# Timekeeping split jiffies lock. Needs a good argument :) -features/all/rt/timekeeping-split-jiffies-lock.patch - -# PTRACE/SIGNAL crap -features/all/rt/signal-revert-ptrace-preempt-magic.patch - -# NETWORKING -features/all/rt/net-sched-dev_deactivate_many-use-msleep-1-instead-o.patch - -# The removal of NONRT helpers -features/all/rt/dm-rq-remove-BUG_ON-irqs_disabled-check.patch -features/all/rt/usb-do-not-disable-interrupts-in-giveback.patch - -################################################## -# REAL RT STUFF starts here -################################################## - -# Kconfig on/off -features/all/rt/rt-preempt-base-config.patch -features/all/rt/kconfig-preempt-rt-full.patch -features/all/rt/cpumask-disable-offstack-on-rt.patch -features/all/rt/jump-label-rt.patch -features/all/rt/kconfig-disable-a-few-options-rt.patch -features/all/rt/lockdep-disable-self-test.patch -features/all/rt/mm-disable-sloub-rt.patch -features/all/rt/mutex-no-spin-on-rt.patch -features/all/rt/rcu-disable-rcu-fast-no-hz-on-rt.patch -features/all/rt/rcu-make-RCU_BOOST-default-on-RT.patch -features/all/rt/sched-disable-rt-group-sched-on-rt.patch -features/all/rt/net_disable_NET_RX_BUSY_POLL.patch -features/all/rt/arm-disable-NEON-in-kernel-mode.patch -features/all/rt/power-use-generic-rwsem-on-rt.patch -features/all/rt/powerpc-kvm-Disable-in-kernel-MPIC-emulation-for-PRE.patch -features/all/rt/power-disable-highmem-on-rt.patch -features/all/rt/mips-disable-highmem-on-rt.patch -features/all/rt/x86-use-gen-rwsem-spinlocks-rt.patch -features/all/rt/leds-trigger-disable-CPU-trigger-on-RT.patch -features/all/rt/cpufreq-drop-K8-s-driver-from-beeing-selected.patch -features/all/rt/md-disable-bcache.patch -features/all/rt/efi-Disable-runtime-services-on-RT.patch - -# PRINTK -features/all/rt/printk-kill.patch -features/all/rt/printk-27force_early_printk-27-boot-param-to-help-with-debugging.patch - -# PREEMPT NORT -features/all/rt/preempt-nort-rt-variants.patch - -# local locks & migrate disable -features/all/rt/futex-workaround-migrate_disable-enable-in-different.patch -features/all/rt/rt-local-irq-lock.patch -features/all/rt/locallock-provide-get-put-_locked_ptr-variants.patch - -# ANNOTATE local_irq_disable sites -features/all/rt/mm-scatterlist-dont-disable-irqs-on-RT.patch - -# Sigh -features/all/rt/oleg-signal-rt-fix.patch -features/all/rt/x86-signal-delay-calling-signals-on-32bit.patch - -# BIT SPINLOCKS - SIGH -features/all/rt/fs-replace-bh_uptodate_lock-for-rt.patch -features/all/rt/fs-jbd-replace-bh_state-lock.patch - -# GENIRQ -features/all/rt/list_bl.h-make-list-head-locking-RT-safe.patch -features/all/rt/list_bl-fixup-bogus-lockdep-warning.patch -features/all/rt/genirq-disable-irqpoll-on-rt.patch -features/all/rt/genirq-force-threading.patch - -# MM page alloc -features/all/rt/0001-Split-IRQ-off-and-zone-lock-while-freeing-pages-from.patch -features/all/rt/0002-Split-IRQ-off-and-zone-lock-while-freeing-pages-from.patch -features/all/rt/0003-mm-SLxB-change-list_lock-to-raw_spinlock_t.patch -features/all/rt/0004-mm-SLUB-delay-giving-back-empty-slubs-to-IRQ-enabled.patch -features/all/rt/mm-page_alloc-rt-friendly-per-cpu-pages.patch - -# MM SWAP -features/all/rt/mm-convert-swap-to-percpu-locked.patch -features/all/rt/mm-perform-lru_add_drain_all-remotely.patch - -# MM vmstat -features/all/rt/mm-make-vmstat-rt-aware.patch - -# MM memory -features/all/rt/re-preempt_rt_full-arm-coredump-fails-for-cpu-3e-3d-4.patch - -# MM SLxB -features/all/rt/mm-enable-slub.patch -features/all/rt/slub-enable-irqs-for-no-wait.patch -features/all/rt/slub-disable-SLUB_CPU_PARTIAL.patch - -# MM -features/all/rt/mm-memcontrol-Don-t-call-schedule_work_on-in-preempt.patch -features/all/rt/mm-memcontrol-do_not_disable_irq.patch -features/all/rt/mm_zsmalloc_copy_with_get_cpu_var_and_locking.patch - -# RADIX TREE -features/all/rt/radix-tree-use-local-locks.patch - -# TIMERS -features/all/rt/timers-prepare-for-full-preemption.patch - -# KVM require constant freq TSC (smp function call -> cpufreq) -features/all/rt/x86-kvm-require-const-tsc-for-rt.patch -# -# SIMPLE WAITQUEUE -features/all/rt/pci-switchtec-Don-t-use-completion-s-wait-queue.patch -features/all/rt/wait.h-include-atomic.h.patch -features/all/rt/work-simple-Simple-work-queue-implemenation.patch -features/all/rt/completion-use-simple-wait-queues.patch -features/all/rt/fs-aio-simple-simple-work.patch -features/all/rt/genirq-do-not-invoke-the-affinity-callback-via-a-wor.patch - -# HRTIMERS -features/all/rt/time-hrtimer-avoid-schedule_work-with-interrupts-dis.patch -features/all/rt/hrtimer-consolidate-hrtimer_init-hrtimer_init_sleepe.patch -features/all/rt/hrtimers-prepare-full-preemption.patch -features/all/rt/hrtimer-by-timers-by-default-into-the-softirq-context.patch -features/all/rt/hrtimer-Move-schedule_work-call-to-helper-thread.patch - -# POSIX-CPU-TIMERS -features/all/rt/posix-timers-thread-posix-cpu-timers-on-rt.patch - -# SCHEDULER -features/all/rt/sched-delay-put-task.patch -features/all/rt/sched-limit-nr-migrate.patch -features/all/rt/sched-mmdrop-delayed.patch -features/all/rt/kernel-sched-move-stack-kprobe-clean-up-to-__put_tas.patch -features/all/rt/sched-rt-mutex-wakeup.patch -features/all/rt/sched-might-sleep-do-not-account-rcu-depth.patch -features/all/rt/cond-resched-lock-rt-tweak.patch -features/all/rt/sched-disable-ttwu-queue.patch -features/all/rt/sched-workqueue-Only-wake-up-idle-workers-if-not-blo.patch -features/all/rt/rt-Increase-decrease-the-nr-of-migratory-tasks-when-.patch - -# MIGRATE DISABLE AND PER CPU -features/all/rt/hotplug-light-get-online-cpus.patch -features/all/rt/ftrace-migrate-disable-tracing.patch - -# LOCKDEP -features/all/rt/lockdep-no-softirq-accounting-on-rt.patch - -# SOFTIRQ -features/all/rt/tasklet-rt-prevent-tasklets-from-going-into-infinite-spin-in-rt.patch -features/all/rt/softirq-preempt-fix-3-re.patch -features/all/rt/softirq-disable-softirq-stacks-for-rt.patch -features/all/rt/softirq-split-locks.patch -features/all/rt/net-core-use-local_bh_disable-in-netif_rx_ni.patch -features/all/rt/irq-allow-disabling-of-softirq-processing-in-irq-thread-context.patch -features/all/rt/softirq-split-timer-softirqs-out-of-ksoftirqd.patch -features/all/rt/rtmutex-trylock-is-okay-on-RT.patch - -# compile fix due to rtmutex locks -features/all/rt/fs-nfs-turn-rmdir_sem-into-a-semaphore.patch - -# FUTEX/RTMUTEX -features/all/rt/rtmutex-futex-prepare-rt.patch -features/all/rt/futex-requeue-pi-fix.patch -features/all/rt/futex-Ensure-lock-unlock-symetry-versus-pi_lock-and-.patch - -# RTMUTEX -features/all/rt/pid.h-include-atomic.h.patch -features/all/rt/arm-include-definition-for-cpumask_t.patch -features/all/rt/locking-locktorture-Do-NOT-include-rwlock.h-directly.patch -features/all/rt/rtmutex-lock-killable.patch -features/all/rt/rtmutex-Make-lock_killable-work.patch -features/all/rt/spinlock-types-separate-raw.patch -features/all/rt/rtmutex-avoid-include-hell.patch -features/all/rt/rtmutex_dont_include_rcu.patch -features/all/rt/rtmutex-Provide-rt_mutex_slowlock_locked.patch -features/all/rt/rtmutex-export-lockdep-less-version-of-rt_mutex-s-lo.patch -features/all/rt/rtmutex-add-sleeping-lock-implementation.patch -features/all/rt/rtmutex-add-mutex-implementation-based-on-rtmutex.patch -features/all/rt/rtmutex-add-rwsem-implementation-based-on-rtmutex.patch -features/all/rt/rtmutex-add-rwlock-implementation-based-on-rtmutex.patch -features/all/rt/rtmutex-wire-up-RT-s-locking.patch -features/all/rt/rtmutex-add-ww_mutex-addon-for-mutex-rt.patch -features/all/rt/locking-rt-mutex-fix-deadlock-in-device-mapper-block.patch -features/all/rt/locking-rtmutex-re-init-the-wait_lock-in-rt_mutex_in.patch -features/all/rt/ptrace-fix-ptrace-vs-tasklist_lock-race.patch -features/all/rt/rtmutex-annotate-sleeping-lock-context.patch -features/all/rt/sched-migrate_disable-fallback-to-preempt_disable-in.patch -features/all/rt/locking-don-t-check-for-__LINUX_SPINLOCK_TYPES_H-on-.patch - -# RCU -features/all/rt/peter_zijlstra-frob-rcu.patch -features/all/rt/rcu-merge-rcu-bh-into-rcu-preempt-for-rt.patch -features/all/rt/patch-to-introduce-rcu-bh-qs-where-safe-from-softirq.patch -features/all/rt/rcu-Eliminate-softirq-processing-from-rcutree.patch -features/all/rt/srcu-use-cpu_online-instead-custom-check.patch -features/all/rt/srcu-replace-local_irqsave-with-a-locallock.patch -features/all/rt/rcu-enable-rcu_normal_after_boot-by-default-for-RT.patch - -# DRIVERS SERIAL -features/all/rt/drivers-tty-fix-omap-lock-crap.patch -features/all/rt/drivers-tty-pl011-irq-disable-madness.patch -features/all/rt/rt-serial-warn-fix.patch -features/all/rt/tty-serial-8250-don-t-take-the-trylock-during-oops.patch - -# FS -features/all/rt/peterz-percpu-rwsem-rt.patch -features/all/rt/mm-protect-activate-switch-mm.patch -features/all/rt/fs-dcache-bring-back-explicit-INIT_HLIST_BL_HEAD-in.patch -features/all/rt/fs-dcache-disable-preemption-on-i_dir_seq-s-write-si.patch -features/all/rt/squashfs-make-use-of-local-lock-in-multi_cpu-decompr.patch - -# X86 -features/all/rt/thermal-Defer-thermal-wakups-to-threads.patch - -# CPU get light -features/all/rt/epoll-use-get-cpu-light.patch -features/all/rt/mm-vmalloc-use-get-cpu-light.patch -features/all/rt/block-mq-use-cpu_light.patch -features/all/rt/block-mq-drop-preempt-disable.patch -features/all/rt/block-mq-don-t-complete-requests-via-IPI.patch -features/all/rt/md-raid5-percpu-handling-rt-aware.patch - -# CPU CHILL -features/all/rt/rt-introduce-cpu-chill.patch - -# block -features/all/rt/block-blk-mq-move-blk_queue_usage_counter_release-in.patch - -# BLOCK LIVELOCK PREVENTION -features/all/rt/block-use-cpu-chill.patch - -# FS LIVELOCK PREVENTION -features/all/rt/fs-dcache-use-cpu-chill-in-trylock-loops.patch -features/all/rt/net-use-cpu-chill.patch -features/all/rt/fs-dcache-use-swait_queue-instead-of-waitqueue.patch - -# WORKQUEUE more fixes -features/all/rt/workqueue-use-rcu.patch -features/all/rt/workqueue-use-locallock.patch -features/all/rt/work-queue-work-around-irqsafe-timer-optimization.patch -features/all/rt/workqueue-distangle-from-rq-lock.patch - -# DEBUGOBJECTS -features/all/rt/debugobjects-rt.patch - -# SEQLOCKS -features/all/rt/seqlock-prevent-rt-starvation.patch - -# NETWORKING -features/all/rt/sunrpc-make-svc_xprt_do_enqueue-use-get_cpu_light.patch -features/all/rt/skbufhead-raw-lock.patch -features/all/rt/net-move-xmit_recursion-to-per-task-variable-on-RT.patch -features/all/rt/net-provide-a-way-to-delegate-processing-a-softirq-t.patch -features/all/rt/net-dev-always-take-qdisc-s-busylock-in-__dev_xmit_s.patch -features/all/rt/net-Qdisc-use-a-seqlock-instead-seqcount.patch -features/all/rt/net-add-back-the-missing-serialization-in-ip_send_un.patch -features/all/rt/net-add-a-lock-around-icmp_sk.patch -features/all/rt/net-Have-__napi_schedule_irqoff-disable-interrupts-o.patch - -# irqwork -features/all/rt/irqwork-push_most_work_into_softirq_context.patch - -# CONSOLE. NEEDS more thought !!! -features/all/rt/printk-rt-aware.patch -features/all/rt/kernel-printk-Don-t-try-to-print-from-IRQ-NMI-region.patch -features/all/rt/HACK-printk-drop-the-logbuf_lock-more-often.patch - -# POWERC -features/all/rt/powerpc-ps3-device-init.c-adapt-to-completions-using.patch - -# ARM -features/all/rt/ARM-enable-irq-in-translation-section-permission-fau.patch -features/all/rt/genirq-update-irq_set_irqchip_state-documentation.patch -features/all/rt/KVM-arm-arm64-downgrade-preempt_disable-d-region-to-.patch -features/all/rt/arm64-fpsimd-use-preemp_disable-in-addition-to-local.patch - -# KGDB -features/all/rt/kgb-serial-hackaround.patch - -# SYSFS - RT indicator -features/all/rt/sysfs-realtime-entry.patch - -# KMAP/HIGHMEM -features/all/rt/mm-rt-kmap-atomic-scheduling.patch -features/all/rt/x86-highmem-add-a-already-used-pte-check.patch -features/all/rt/arm-highmem-flush-tlb-on-unmap.patch -features/all/rt/arm-enable-highmem-for-rt.patch - -# SCSI/FCOE -features/all/rt/scsi-fcoe-rt-aware.patch - -# crypto drivers -features/all/rt/x86-crypto-reduce-preempt-disabled-regions.patch -features/all/rt/crypto-Reduce-preempt-disabled-regions-more-algos.patch -features/all/rt/crypto-limit-more-FPU-enabled-sections.patch -features/all/rt/crypto-scompress-serialize-RT-percpu-scratch-buffer-.patch -features/all/rt/crypto-cryptd-add-a-lock-instead-preempt_disable-loc.patch - -# RANDOM -features/all/rt/panic-disable-random-on-rt.patch -features/all/rt/x86-stackprot-no-random-on-rt.patch -features/all/rt/random-make-it-work-on-rt.patch -features/all/rt/random-avoid-preempt_disable-ed-section.patch - -# HOTPLUG -features/all/rt/cpu-hotplug--Implement-CPU-pinning.patch -features/all/rt/sched-Allow-pinned-user-tasks-to-be-awakened-to-the-.patch -features/all/rt/hotplug-duct-tape-RT-rwlock-usage-for-non-RT.patch - -# NET -features/all/rt/upstream-net-rt-remove-preemption-disabling-in-netif_rx.patch -features/all/rt/net-another-local-irq-disable-alloc-atomic-headache.patch -features/all/rt/net-core-protect-users-of-napi_alloc_cache-against-r.patch -features/all/rt/net-fix-iptable-xt-write-recseq-begin-rt-fallout.patch -features/all/rt/net-make-devnet_rename_seq-a-mutex.patch - -# LOCKDEP -features/all/rt/lockdep-selftest-only-do-hardirq-context-test-for-raw-spinlock.patch -features/all/rt/lockdep-selftest-fix-warnings-due-to-missing-PREEMPT.patch - -# PREEMPT LAZY -features/all/rt/preempt-lazy-support.patch -features/all/rt/ftrace-Fix-trace-header-alignment.patch -features/all/rt/x86-preempt-lazy.patch -features/all/rt/arm-preempt-lazy-support.patch -features/all/rt/powerpc-preempt-lazy-support.patch -features/all/rt/arch-arm64-Add-lazy-preempt-support.patch - -# DRIVERS -features/all/rt/connector-cn_proc-Protect-send_msg-with-a-local-lock.patch -features/all/rt/drivers-block-zram-Replace-bit-spinlocks-with-rtmute.patch -features/all/rt/drivers-zram-Don-t-disable-preemption-in-zcomp_strea.patch -features/all/rt/drivers-zram-fix-zcomp_stream_get-smp_processor_id-u.patch -features/all/rt/tpm_tis-fix-stall-after-iowrite-s.patch - -# I915 -features/all/rt/drmradeoni915_Use_preempt_disableenable_rt()_where_recommended.patch -features/all/rt/drmi915_Use_local_lockunlock_irq()_in_intel_pipe_update_startend().patch - -# CGROUPS -features/all/rt/cgroups-use-simple-wait-in-css_release.patch -features/all/rt/cpuset-Convert-callback_lock-to-raw_spinlock_t.patch - -# Security -features/all/rt/apparmor-use-a-locallock-instead-preempt_disable.patch - -# WORKQUEUE SIGH -features/all/rt/workqueue-prevent-deadlock-stall.patch - -# Nice to have -features/all/rt/signals-allow-rt-tasks-to-cache-one-sigqueue-struct.patch - -# Add RT to version -features/all/rt/localversion.patch diff --git a/debian/rules.real b/debian/rules.real index abbaa0b92..6653aa688 100644 --- a/debian/rules.real +++ b/debian/rules.real @@ -151,10 +151,6 @@ $(BUILD_DIR)/linux-patch-$(UPSTREAMVERSION)-%.patch.xz: $(STAMPS_DIR)/source_non xz -c >$@ || \ (rm -f $@; exit 1) -define patch_cmd -cd '$(DIR)' && QUILT_PATCHES='$(CURDIR)/debian/patches' QUILT_SERIES=series-$(1) QUILT_PC=.pc quilt push --quiltrc - -a -q --fuzz=0 -endef - $(STAMPS_DIR)/source: test -d .pc set +e; QUILT_PC=.pc quilt unapplied --quiltrc - >/dev/null && echo 'Patch series not fully applied'; test $$? -eq 1 @@ -166,7 +162,7 @@ $(STAMPS_DIR)/source_%: $(STAMPS_DIR)/source mkdir -p '$(BUILD_DIR)' rm -rf '$(DIR)' $(call copy_source,$(DIR)) - $(call patch_cmd,$*) + cd '$(DIR)' && QUILT_PATCHES='$(CURDIR)/debian/patches-$*' QUILT_PC=.pc quilt push --quiltrc - -a -q --fuzz=0 @$(stamp) .PRECIOUS: $(STAMPS_DIR)/source_% @@ -241,7 +237,7 @@ endif install-base: ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) - dh_installdocs $(INSTALLDOCS_ARGS) + dh_installdocs endif dh_installchangelogs dh_compress @@ -378,7 +374,7 @@ install-headers_$(ARCH)_$(FEATURESET)_$(FLAVOUR): $(STAMPS_DIR)/build_$(ARCH)_$( ln -s /usr/src/$(PACKAGE_NAME) $(PACKAGE_DIR)/lib/modules/$(REAL_VERSION)/build ln -s /usr/src/$(PACKAGE_NAME_COMMON) $(PACKAGE_DIR)/lib/modules/$(REAL_VERSION)/source - +$(MAKE_SELF) install-base INSTALLDOCS_ARGS="--link-doc=$(PACKAGE_NAME_COMMON)" + +$(MAKE_SELF) install-base install-libc-dev_$(ARCH): PACKAGE_NAME = linux-libc-dev install-libc-dev_$(ARCH): DH_OPTIONS = -p$(PACKAGE_NAME) diff --git a/debian/watch b/debian/watch index 09e8e35c3..54040107b 100644 --- a/debian/watch +++ b/debian/watch @@ -1,4 +1,4 @@ # Find first non-rc tarball linked from kernel.org. -# We need to DFSG-clean it, so use our own script instead of uupdate. version=3 -https://www.kernel.org/ .*/linux-([0-9.]+).tar.xz debian debian/bin/uscan-hook +opts="pgpmode=mangle, pgpsigurlmangle=s|\.xz$|.sign|, decompress" \ +https://www.kernel.org/ .*/linux-([0-9.]+).tar.xz debian uupdate