###########################################################
# DELTA against a known Linus release
###########################################################

############################################################
# UPSTREAM merged
############################################################

############################################################
# POSTED by others
############################################################

# John's printk series
# [RFC PATCH v1 00/25] printk: new implementation
# Date: Tue, 12 Feb 2019 15:29:38 +0100
# Plus build fixes merged
0001-printk-rb-add-printk-ring-buffer-documentation.patch
0002-printk-rb-add-prb-locking-functions.patch
0003-printk-rb-define-ring-buffer-struct-and-initializer.patch
0004-printk-rb-add-writer-interface.patch
0005-printk-rb-add-basic-non-blocking-reading-interface.patch
0006-printk-rb-add-blocking-reader-support.patch
0007-printk-rb-add-functionality-required-by-printk.patch
0008-printk-add-ring-buffer-and-kthread.patch
0009-printk-remove-exclusive-console-hack.patch
printk-console-must-not-schedule-for-drivers.patch
0010-printk-redirect-emit-store-to-new-ringbuffer.patch
0011-printk_safe-remove-printk-safe-code.patch
0012-printk-minimize-console-locking-implementation.patch
0013-printk-track-seq-per-console.patch
0014-printk-do-boot_delay_msec-inside-printk_delay.patch
0015-printk-print-history-for-new-consoles.patch
0016-printk-implement-CON_PRINTBUFFER.patch
0017-printk-add-processor-number-to-output.patch
0018-console-add-write_atomic-interface.patch
0019-printk-introduce-emergency-messages.patch
0020-serial-8250-implement-write_atomic.patch
0021-printk-implement-KERN_CONT.patch
0022-printk-implement-dev-kmsg.patch
0023-printk-implement-syslog.patch
0024-printk-implement-kmsg_dump.patch
0025-printk-remove-unused-code.patch
printk-set-deferred-to-default-loglevel-enforce-mask.patch
serial-8250-remove-that-trylock-in-serial8250_consol.patch
serial-8250-export-symbols-which-are-used-by-symbols.patch
arm-remove-printk_nmi_.patch
printk-only-allow-kernel-to-emergency-message.patch
printk-devkmsg-llseek-reset-clear-if-it-is-lost.patch
printk-print-rate-limitted-message-as-info.patch
printk-kmsg_dump-remove-mutex-usage.patch
printk-devkmsg-read-Return-EPIPE-when-the-first-mess.patch
printk-handle-iterating-while-buffer-changing.patch
printk-hack-out-emergency-loglevel-usage.patch
printk-Force-a-line-break-on-pr_cont-n.patch
serial-8250-only-atomic-lock-for-console.patch
serial-8250-fsl-ingenic-mtk-fix-atomic-console.patch
printk-fix-ifnullfree.cocci-warnings.patch

# Part of [PATCH 0/4] more mm switching vs TLB shootdown and lazy tlb
# Date: Fri, 28 Aug 2020 20:00:18 +1000
# https://lkml.kernel.org/r/20200828100022.1099682-2-npiggin@gmail.com
mm-fix-exec-activate_mm-vs-TLB-shootdown-and-lazy-tl.patch

# 20200921095035.GC5862@quack2.suse.cz
dax-Fix-compilation-for-CONFIG_DAX-CONFIG_FS_DAX.patch

############################################################
# POSTED
############################################################
# 20191015191821.11479-1-bigeasy@linutronix.de
Use-CONFIG_PREEMPTION.patch

#20200629201529.1017485-1-bigeasy@linutronix.de
lockdep-Do-no-validate-wait-context-for-novalidate-c.patch

# 20200701083553.fuy42cllxvx3bkzp@linutronix.de
x86-entry-Use-should_resched-in-idtentry_exit_cond_r.patch

# 20200819194443.eabkhlkocvkgifyh@linutronix.de
io_wq-Make-io_wqe-lock-a-raw_spinlock_t.patch

# 20200915074816.52zphpywj4zidspk@linutronix.de
bus-mhi-Remove-include-of-rwlock_types.h.patch

############################################################
# Ready for posting
############################################################

############################################################
# Needs to address review feedback
############################################################

# This one would keep the raw-lock and IRQ on/off as the minimal duct tape.
cgroup-use-irqsave-in-cgroup_rstat_flush_locked.patch
# The alternative to remove unused code.
# 20190816111817.834-1-bigeasy@linutronix.de | https://www.spinics.net/lists/cgroups/msg23051.html

# UM, microblaze, ia64 fail to build with this patch (while compiling .S
# files). Postpone until the orignal issue pops up.
# percpu-include-irqflags.h-for-raw_local_irq_save.patch

# 20190211113829.sqf6bdi4c4cdd3rp@linutronix.de | 20190821152158.GA12901@cmpxchg.org
mm-workingset-replace-IRQ-off-check-with-a-lockdep-a.patch

# 20190211105835.16851-1-bigeasy@linutronix.de
# drop…
tpm-remove-tpm_dev_wq_lock.patch

############################################################
# Almost ready, needs final polishing
############################################################
shmem-Use-raw_spinlock_t-for-stat_lock.patch

###############################################################
# Stuff broken upstream and upstream wants something different
###############################################################

# PTRACE/SIGNAL crap
# https://lore.kernel.org/lkml/CADkTA4PBT374CY+UNb85WjQEaNCDodMZu=MgpG8aMYbAu2eOGA@mail.gmail.com/
signal-revert-ptrace-preempt-magic.patch

##################################################
# REAL RT STUFF starts here
##################################################

############################################################
# PREEMPT NORT
preempt-nort-rt-variants.patch
mm-make-vmstat-rt-aware.patch

## # SEQCOUNT related
## # XXX, rework
## dma-buf-Use-seqlock_t-instread-disabling-preemption.patch
## seqlock-prevent-rt-starvation.patch
## NFSv4-replace-seqcount_t-with-a-seqlock_t.patch
## net-make-devnet_rename_seq-a-mutex.patch
## userfaultfd-Use-a-seqlock-instead-of-seqcount.patch
##
## # Revisit and add to the other NFS crap
## fs-nfs-turn-rmdir_sem-into-a-semaphore.patch
##
## # Revisit
##
## # Revisit - check HCH reply. Check all use cases
## list_bl.h-make-list-head-locking-RT-safe.patch
## # Check .... (these are needed due to the previous list_bl change)
## fscache-initialize-cookie-hash-table-raw-spinlocks.patch
## fs-dcache-bring-back-explicit-INIT_HLIST_BL_HEAD-in.patch
## ############################################################

# seqcount
# https://lkml.kernel.org/r/20200817000200.20993-1-rdunlap@infradead.org
seqlock-Fix-multiple-kernel-doc-warnings.patch
# 2020-08-27 13:40 Ahmed S. Darwis [PATCH v1 0/8] seqlock: Introduce seqcount_latch_t
# 20200827114044.11173-1-a.darwish@linutronix.de
0001-time-sched_clock-Use-raw_read_seqcount_latch-during-.patch
0002-mm-swap-Do-not-abuse-the-seqcount_t-latching-API.patch
0003-seqlock-Introduce-seqcount_latch_t.patch
0004-time-sched_clock-Use-seqcount_latch_t.patch
0005-timekeeping-Use-seqcount_latch_t.patch
0006-x86-tsc-Use-seqcount_latch_t.patch
0007-rbtree_latch-Use-seqcount_latch_t.patch
0008-seqlock-seqcount-latch-APIs-Only-allow-seqcount_latc.patch
# 2020-09-04 17:32 Ahmed S. Darwis [PATCH v2 0/5] seqlock: Introduce PREEMPT_RT support
# 20200904153231.11994-1-a.darwish@linutronix.de
0009-seqlock-seqcount_LOCKNAME_t-Standardize-naming-conve.patch
0010-seqlock-Use-unique-prefix-for-seqcount_t-property-ac.patch
0011-seqlock-seqcount_t-Implement-all-read-APIs-as-statem.patch
0012-seqlock-seqcount_LOCKNAME_t-Introduce-PREEMPT_RT-sup.patch
0013-seqlock-PREEMPT_RT-Do-not-starve-seqlock_t-writers.patch
##
0024-xfrm-Use-sequence-counter-with-associated-spinlock.patch
u64_stats-Disable-preemption-on-32bit-UP-SMP-with-RT.patch

fs-dcache-use-swait_queue-instead-of-waitqueue.patch
fs-dcache-disable-preemption-on-i_dir_seq-s-write-si.patch
net-Qdisc-use-a-seqlock-instead-seqcount.patch
net-Properly-annotate-the-try-lock-for-the-seqlock.patch
#####

# split changelog
kconfig-disable-a-few-options-rt.patch

# proper changelog
mm-disable-sloub-rt.patch

# Post
rcu-make-RCU_BOOST-default-on-RT.patch

# Revisit ????
sched-disable-rt-group-sched-on-rt.patch

# Post
net_disable_NET_RX_BUSY_POLL.patch

# proper changelog
efi-Disable-runtime-services-on-RT.patch
efi-Allow-efi-runtime.patch

# local locks & migrate disable
# Rework, write proper changelog and argument
rt-local-irq-lock.patch

# Move post local lock
softirq-Add-preemptible-softirq.patch
softirq-Move-the-per-CPU-hardirq-definition.patch

# Sigh
# Check proper again. Crap....
oleg-signal-rt-fix.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-slub-Always-flush-the-delayed-empty-slubs-in-flus.patch
mm-page_alloc-Use-migrate_disable-in-drain_local_pag.patch
mm-page_alloc-rt-friendly-per-cpu-pages.patch

# MM SLxB
mm-slub-Make-object_map_lock-a-raw_spinlock_t.patch
slub-enable-irqs-for-no-wait.patch
slub-disable-SLUB_CPU_PARTIAL.patch

# MM
mm-memcontrol-Provide-a-local_lock-for-per-CPU-memcg.patch
mm-memcontrol-Don-t-call-schedule_work_on-in-preempt.patch
mm-memcontrol-do_not_disable_irq.patch
# XXX
mm_zsmalloc_copy_with_get_cpu_var_and_locking.patch
mm-zswap-Use-local-lock-to-protect-per-CPU-data.patch

# KVM require constant freq TSC (smp function call -> cpufreq)
# proper changelog
x86-kvm-require-const-tsc-for-rt.patch

# SIMPLE WAITQUEUE
# Revisit
wait.h-include-atomic.h.patch

# HRTIMERS
# Check whether schedule_hrtimeout() could be hard always
hrtimer-Allow-raw-wakeups-during-boot.patch

# SCHEDULER
# PUSH IPI?
sched-limit-nr-migrate.patch

# Combine in series with delay put task
sched-mmdrop-delayed.patch

# Revisit, still needed.
kernel-sched-move-stack-kprobe-clean-up-to-__put_tas.patch

# RT bulk - Revisit
sched-rt-mutex-wakeup.patch
sched-might-sleep-do-not-account-rcu-depth.patch
sched-disable-ttwu-queue.patch

# SOFTIRQ
softirq-Avoid-a-cancel-dead-lock-in-tasklet-handling.patch

# A few of those will also just schedule ksoftirqd and schedule at some random
# point. They may hold a spinlock_t so it is not always random, recheck all.
softirq-preempt-fix-3-re.patch

# Post towards end with x86 crap and skip the rest for now
softirq-disable-softirq-stacks-for-rt.patch

# Rewrite changelog and repost
net-core-use-local_bh_disable-in-netif_rx_ni.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
rtmutex-lock-killable.patch
rtmutex-Make-lock_killable-work.patch
spinlock-types-separate-raw.patch
rtmutex-avoid-include-hell.patch
locking-split-out-the-rbtree-definition.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
cond-resched-lock-rt-tweak.patch
locking-rtmutex-Clean-pi_blocked_on-in-the-error-cas.patch
rtmutex-trylock-is-okay-on-RT.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
rwsem-Provide-down_read_non_owner-and-up_read_non_ow.patch
rtmutex-add-ww_mutex-addon-for-mutex-rt.patch
mutex-Move-the-ww_mutext-definition-back-to-ww_mutex.patch

# Allow to enable RT-FULL after sleeping spinlocks are wired up
# XXX move flush_plug to slowpath's schedule()
locking-rt-mutex-fix-deadlock-in-device-mapper-block.patch
locking-rt-mutex-Flush-block-plug-on-__down_read.patch
ptrace-fix-ptrace-vs-tasklist_lock-race.patch

# MIGRATE DISABLE AND PER CPU
# Revisit
add_migrate_disable.patch
sched-migrate_enable-Use-stop_one_cpu_nowait.patch
sched-migrate_enable-Use-per-cpu-cpu_stop_work.patch
sched-migrate_enable-Remove-__schedule-call.patch
ftrace-migrate-disable-tracing.patch
futex-workaround-migrate_disable-enable-in-different.patch
locking-don-t-check-for-__LINUX_SPINLOCK_TYPES_H-on-.patch

# RCU
# Talk to Paul, Local locks
locking-Make-spinlock_t-and-rwlock_t-a-RCU-section-o.patch
rcu-Use-rcuc-threads-on-PREEMPT_RT-as-we-did.patch
rcu-enable-rcu_normal_after_boot-by-default-for-RT.patch
rcutorture-Avoid-problematic-critical-section-nestin.patch

# CPU get light
mm-vmalloc-use-get-cpu-light.patch
block-mq-drop-preempt-disable.patch
md-raid5-percpu-handling-rt-aware.patch
scsi-fcoe-rt-aware.patch
sunrpc-make-svc_xprt_do_enqueue-use-get_cpu_light.patch

# CPU CHILL
rt-introduce-cpu-chill.patch

# FS LIVELOCK PREVENTION
fs-namespace-use-cpu-chill-in-trylock-loops.patch

# DEBUGOBJECTS
# Post
debugobjects-rt.patch

# NETWORKING
# Revisit
skbufhead-raw-lock.patch
net-dev-always-take-qdisc-s-busylock-in-__dev_xmit_s.patch

# irqwork
# Revisit
irqwork-push_most_work_into_softirq_context.patch

# crypto drivers
# Revisit
x86-crypto-reduce-preempt-disabled-regions.patch
crypto-Reduce-preempt-disabled-regions-more-algos.patch
crypto-limit-more-FPU-enabled-sections.patch
crypto-cryptd-add-a-lock-instead-preempt_disable-loc.patch

# RANDOM
panic-disable-random-on-rt.patch
# Check me ....
x86-stackprot-no-random-on-rt.patch
# Random push into ringbuffer
random-make-it-work-on-rt.patch

# NET
# Revisit
upstream-net-rt-remove-preemption-disabling-in-netif_rx.patch

# LOCKDEP
# Lockdep together with lockdep branch ....
lockdep-no-softirq-accounting-on-rt.patch
lockdep-selftest-only-do-hardirq-context-test-for-raw-spinlock.patch
lockdep-selftest-fix-warnings-due-to-missing-PREEMPT.patch
lockdep-Reduce-header-files-in-debug_locks.h.patch
# Fix lockdep selftest - talk to Peter - including lockdep branch
lockdep-disable-self-test.patch

# I915
# Low prio
drmradeoni915_Use_preempt_disableenable_rt()_where_recommended.patch
drm-i915-Don-t-disable-interrupts-on-PREEMPT_RT-duri.patch
drm-i915-disable-tracing-on-RT.patch
drm-i915-skip-DRM_I915_LOW_LEVEL_TRACEPOINTS-with-NO.patch
drm-i915-gt-Only-disable-interrupts-for-the-timeline.patch

# CGROUPS
# Revisit and Post
cpuset-Convert-callback_lock-to-raw_spinlock_t.patch

################################################################################
################################################################################
# Enable X86-64
x86-Enable-RT.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
# Rewrite as pagefault disabled is upstream splitted already. The problem comes
# with the highmem pieces.
mm-scatterlist-dont-disable-irqs-on-RT.patch

# PREEMPT LAZY
preempt-lazy-support.patch
x86-preempt-lazy.patch
arm-preempt-lazy-support.patch
powerpc-preempt-lazy-support.patch
arch-arm64-Add-lazy-preempt-support.patch

jump-label-rt.patch

# Skip until ARM or make it depend on ARM
leds-trigger-disable-CPU-trigger-on-RT.patch

# DRIVERS SERIAL
drivers-tty-fix-omap-lock-crap.patch
drivers-tty-pl011-irq-disable-madness.patch

# misc ARM
# arm-include-definition-for-cpumask_t.patch
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

# Those two should vanish soon (not use PIT during bootup)
# XXX check if needed, looks like not required.
# at91_dont_enable_disable_clock.patch
# clocksource-tclib-allow-higher-clockrates.patch

# Other architectures
x86-Enable-RT-also-on-32bit.patch
ARM-Allow-to-enable-RT.patch
ARM64-Allow-to-enable-RT.patch

# PowerPC
powerpc-pseries-iommu-Use-a-locallock-instead-local_ir.patch
powerpc-kvm-Disable-in-kernel-MPIC-emulation-for-PRE.patch
power-disable-highmem-on-rt.patch
powerpc-stackprotector-work-around-stack-guard-init-.patch
POWERPC-Allow-to-enable-RT.patch

# MIPS
mips-disable-highmem-on-rt.patch

# DRIVERS
# Postpone, disable
drivers-block-zram-Replace-bit-spinlocks-with-rtmute.patch
drivers-zram-Don-t-disable-preemption-in-zcomp_strea.patch

# Generic iowriteN_buffer() function ....
tpm_tis-fix-stall-after-iowrite-s.patch

# Postpone
signals-allow-rt-tasks-to-cache-one-sigqueue-struct.patch
signal-Prevent-double-free-of-user-struct.patch
genirq-disable-irqpoll-on-rt.patch

# SYSFS - RT indicator
sysfs-realtime-entry.patch

# Add RT to version
localversion.patch
