#
# Mageia kernel series file
#
# This file describes the order in which patches should be applied
# in the kernel and why the patch is needed.
#
# Luiz Fernando N. Capitulino
# <lcapitulino@mandriva.com.br>

###
### Upstream git
###

###
### Stable Queue
###
stable-drm-vc4-fix-races-when-the-cs-reads-from-render-targets.patch
stable-drm-prime-pass-the-right-module-owner-through-to-dma_buf_export.patch
stable-drm-i915-backlight-setup-and-cache-pwm-alternate-increment-value.patch
stable-drm-i915-backlight-setup-backlight-pwm-alternate-increment-on-backlight-enable.patch
stable-drm-amdgpu-fix-ib-alignment-for-uvd.patch
stable-drm-amdgpu-dce10-disable-hpd-on-local-panels.patch
stable-drm-amdgpu-dce8-disable-hpd-on-local-panels.patch
stable-drm-amdgpu-dce11-disable-hpd-on-local-panels.patch
stable-drm-amdgpu-dce11-add-missing-drm_mode_config_cleanup-call.patch
stable-drm-amdgpu-initialize-the-context-reset_counter-in-amdgpu_ctx_init.patch
stable-drm-amdgpu-change-vblank_time-s-calculation-method-to-reduce-computational-error.patch
stable-drm-radeon-narrow-asic_init-for-virtualization.patch
stable-drm-radeon-si-dpm-fix-phase-shedding-setup.patch
stable-drm-radeon-change-vblank_time-s-calculation-method-to-reduce-computational-error.patch
stable-drm-vmwgfx-limit-the-user-space-command-buffer-size.patch
stable-drm-fsl-dcu-fix-endian-issue-when-using-clk_register_divider.patch
stable-drm-amd-powerplay-fix-mclk-not-switching-back-after-multi-head-was-disabled.patch
stable-hid-add-quirk-for-akai-midimix.patch
stable-drm-i915-skl-update-plane-watermarks-atomically-during-plane-updates.patch
stable-drm-i915-move-crtc-updating-in-atomic_commit-into-it-s-own-hook.patch
stable-drm-i915-skl-update-ddb-values-atomically-with-wms-plane-attrs.patch
stable-drm-i915-skl-don-t-try-to-update-plane-watermarks-if-they-haven-t-changed.patch
stable-drm-i915-gen9-only-add-the-planes-actually-affected-by-ddb-changes.patch
stable-drm-i915-gen9-fix-the-wawmmemoryreadlatency-implementation.patch
stable-drm-i915-gen9-minimum-scanlines-for-y-tile-is-not-always-4.patch
stable-drm-i915-gen9-fix-plane_blocks_per_line-on-watermarks-calculations.patch
stable-drm-i915-gen9-fix-the-watermark-res_blocks-value.patch
stable-drm-i915-sagv-is-not-skl-only-so-rename-a-few-things.patch
stable-drm-i915-introduce-intel_has_sagv.patch
stable-drm-i915-kbl-kbl-also-needs-to-run-the-sagv-code.patch
stable-revert-drm-i915-check-live-status-before-reading-edid.patch
stable-drm-i915-account-for-tseg-size-when-determining-865g-stolen-base.patch
stable-drm-i915-skl-ensure-pipes-with-changed-wms-get-added-to-the-state.patch
stable-drm-i915-allow-pch-dpll-sharing-regardless-of-dpll_sdvo_high_speed.patch
stable-drm-i915-move-long-hpd-handling-into-the-hotplug-work.patch
stable-drm-i915-allow-dp-to-work-w-o-edid.patch
stable-drm-i915-just-clear-the-mmiodebug-before-a-register-access.patch
stable-drm-i915-unalias-obj-phys_handle-and-obj-userptr.patch
stable-posix_acl-clear-sgid-bit-when-setting-file-permissions.patch
stable-rt2x00usb-fix-error-return-code.patch
stable-scsi-cxlflash-remove-the-device-cleanly-in-the-system-shutdown-path.patch
stable-genirq-generic_chip-add-irq_unmap-callback.patch
stable-coresight-remove-erroneous-dma_free_coherent-in-tmc_probe.patch
stable-uio-fix-dmem_region_start-computation.patch
stable-arm-clk-imx35-fix-name-for-ckil-clk.patch
stable-spi-spi-fsl-dspi-drop-extra-spi_master_put-in-device-remove-function.patch
stable-i40e-remove-a-stray-unlock.patch
stable-i40e-fix-broken-i40e_config_rss_aq-function.patch
stable-mwifiex-correct-aid-value-during-tdls-setup.patch
stable-mwifiex-fix-failed-to-reconnect-after-interface-disabled-enabled.patch
stable-ath10k-add-wmi_service_periodic_chan_stat_support-wmi-service.patch
stable-ath10k-fix-sending-frame-in-management-path-in-push-txq-logic.patch
stable-ath10k-fix-reporting-channel-survey-data.patch
stable-ath10k-fix-throughput-regression-in-multi-client-mode.patch
stable-crypto-marvell-don-t-overwrite-default-creq-state-during-initialization.patch
stable-crypto-gcm-fix-iv-buffer-size-in-crypto_gcm_setkey.patch
stable-crypto-marvell-update-transformation-context-for-each-dequeued-req.patch
stable-crypto-arm-ghash-ce-add-missing-async-import-export.patch
stable-crypto-ccp-fix-return-value-check-in-ccp_dmaengine_register.patch
stable-hwrng-omap-only-fail-if-pm_runtime_get_sync-returns-0.patch
stable-asoc-topology-fix-error-return-code-in-soc_tplg_dapm_widget_create.patch
stable-asoc-dapm-fix-possible-uninitialized-variable-in-snd_soc_dapm_get_volsw.patch
stable-asoc-dapm-fix-value-setting-for-_enum_double-mux-s-second-channel.patch
stable-asoc-dapm-fix-kcontrol-creation-for-output-driver-widget.patch
stable-asoc-sst-bxt-rt298-fix-obsoleted-initializers-for-array.patch
stable-asoc-sst-bxt-da7219_max98357a-fix-obsoleted-initializers-for-array.patch
stable-iio-ad5755-fix-off-by-one-on-devnr-limit-check.patch
stable-iio-light-us5182d-add-missing-error-code-assignment-before-test.patch
stable-staging-android-ion-hisi-fix-dependencies.patch
stable-staging-sm750fb-correctly-set-clock_phase-bit-of-display-controller.patch
stable-staging-r8188eu-fix-scheduling-while-atomic-splat.patch
stable-staging-ks7010-fix-wait_for_completion_interruptible_timeout-return-handling.patch
stable-staging-ks7010-declare-private-functions-static.patch
stable-ib-hfi1-move-iowait_init-to-priv-allocate.patch
stable-ib-rdmavt-correct-sparse-annotation.patch
stable-ib-qib-remove-qpt_mask-global.patch
stable-ib-mlx5-fix-steering-resource-leak.patch
stable-power-bq24257-fix-use-of-uninitialized-pointer-bq-charger.patch
stable-dmaengine-ipu-remove-bogus-no_irq-reference.patch
stable-mm-hugetlb-check-for-reserved-hugepages-during-memory-offline.patch

###
### Arch x86
###

# laptop needing pci=assign-busses (#18989, needs to be submitted upstream)
x86-pci-toshiba-equium-a60-assign-busses.patch

# If users choose a bad video mode, allow to jump to
# a working one (TTL: forever)
x86-boot-video-80x25-if-break.patch

# Allow poweroff on UP machines running SMP kernels
x86-default_poweroff_up_machines.patch

# Fix #38760, need to be revised and submitted upstream
# BROKEN: x86-cpufreq-speedstep-dothan-3.patch

# raise vmalloc to fix https://bugs.mageia.org/show_bug.cgi?id=904
x86-increase-default-minimum-vmalloc-area-by-64MB-to-192MB.patch

# slows down boot
Revert-cpufreq-pcc-Enable-autoload-of-pcc-cpufreq-fo.patch

# breaks nvidia304
Revert-x86-mm-mtrr-Remove-kernel-internal-MTRR-inter.patch

###
### Core
###
base-cacheinfo-silence-DT-warnings.patch

# Patch for having the cpupower setting the governor
# (from https://bugzilla.kernel.org/show_bug.cgi?id=135391, same as
# https://bugzilla.redhat.com/show_bug.cgi?id=1374212)
kernel-governor-cpupower-Correct-return-type-of-cpu_power_is_cpu_onl.patch

###
### i2c
###

###
### PCI core
###

# BROKEN: pci-pciprobe-CardBusNo.patch

# http://lkml.org/lkml/2008/9/12/52
pci-add-ALI-M5229-ide-compatibility-mode-quirk.patch
pci-quirks-drop-devinit-exit.patch

###
### PNP core
###

###
### ACPI
###

# CLEVO M360S acpi irq workaround
acpi-CLEVO-M360S-disable_acpi_irq.patch

# Clevo M720SR freezes with C3
acpi-processor-M720SR-limit-to-C2.patch

# backlight fixes
ACPI-video-Add-a-quirk-to-force-acpi-video-backlight.patch

###
### Block
###

# epsa2 SCSI driver, don't know from where it came
scsi-ppscsi-2.6.2.patch

# epsa2 is far behind
scsi-ppscsi_fixes.patch

# Fix build of ppscsi on 2.6.24
scsi-ppscsi-sg-helper-update.patch

# Update/fix for ppscsi on 2.6.25
scsi-ppscsi-update-for-scsi_data_buffer.patch

# https://qa.mandriva.com/show_bug.cgi?id=45393
scsi-ppscsi-mdvbz45393.patch

# epsa2 3.0 buildfix
scsi-ppscsi-3.0-buildfix.patch

# Don't know know why this is needed
scsi-megaraid-new-sysfs-name.patch

# Looks like fixes from Arnaud, not sure why they're needed
ide-pci-sis5513-965.patch

mpt-vmware-fix.patch

# adds aliases to support upgrade from old dm-raid45 patch
dm-raid-aliases.patch

# disable floppy autoloading (mga #4696)
block-floppy-disable-pnp-modalias.patch

# prefer ata over ide drivers
ata-prefer-ata-drivers-over-ide-drivers-when-both-are-built.patch

# Nice SSD speedup
block-Make-CFQ-default-to-IOPS-mode-on-SSDs.patch

# Include new BFQ I/O scheduler
# (See http://algo.ing.unimo.it/people/paolo/disk_sched)
# 
# Release of BFQ I/O scheduler v8r4 (rediffed from git https://github.com/linusw/linux-bfq)
linux-BFQ-v8r4.patch

# Let NVME drives enter in power state
# (see https://github.com/damige/linux-nvme/tree/master/src)
nvmepatch1-V4.patch
nvmepatch2-V4.patch
nvmepatch3-V4.patch

###
### Char
###

# hard locks Dell R720xd
Revert-ipmi-Start-the-timer-and-thread-on-internal-m.patch

###
### File-system
###

# aufs from: http://aufs.sourceforge.net/ (mga#8314)
fs-aufs-4.7.patch
fs-aufs-4.7-modular.patch
fs-aufs-4.7-ver-fix.patch

###
### FireWire
###

# adding module aliases to ease upgrade from ieee1394
firewire-ieee1394-module-aliases.patch

###
### GPU/DRM
###

# new Q57 Host Bridge id
char-agp-intel-new-Q57-id.patch

# External mach64 drm support from git://anongit.freedesktop.org/git/mesa/drm
gpu-drm-mach64.patch
gpu-drm-mach64-fixes.patch
gpu-drm-mach64-2.6.31.patch
gpu-drm-mach64-fix-for-changed-drm_pci_alloc.patch
gpu-drm-mach64-fix-for-changed-drm_ioctl.patch
gpu-drm-mach64-2.6.36-buildfix.patch
gpu-drm-mach64-2.6.37-buildfix.patch
gpu-drm-mach64-3.0-buildfix.patch
gpu-drm-mach64-include-module.h.patch
gpu-drm-mach64-3.3-buildfix.patch
gpu-drm-mach64-3.6-buildfix.patch
gpu-drm-mach64-3.7-buildfix.patch
gpu-drm-mach64-3.12-buildfix.patch
gpu-drm-mach64-restore-mach64_PCI_IDS.patch
gpu-drm-mach64-linux-3.14-buildfix.patch
gpu-drm-mach64-3.17-buildfix.patch
gpu-drm-mach64-3.18-buildfix.patch

# Attempt to fix FIFO underrun problems:
# (from https://patchwork.freedesktop.org/patch/113642/ and 
# also from https://bugs.freedesktop.org/attachment.cgi?id=127264, first reference from
# https://bugs.freedesktop.org/show_bug.cgi?id=97450). Does not completely resolve the
# issues but reduce.
drm-i915-gen9-fix-DDB-partitioning-for-multi-screen-cases.patch

###
### Hardware Monitoring
###

###
### Input
###

input-i8042-quirks-for-Fujitsu-Lifebook-A544-and-Lif.patch

###
### idle
###

###
### Kbuild
###

###
### Media
###

###
### Misc
###

###
### MM
###

###
### Network
###

# SiS 190 fixes
net-sis190-fix-list-usage.patch

# netfilter IFWLOG support
net-netfilter-IFWLOG.patch
net-netfilter-IFWLOG-mdv.patch
net-netfilter-IFWLOG-2.6.35-buildfix.patch
net-netfilter-IFWLOG-2.6.37-buildfix.patch
net-ipv4-netfilter-ipt_IFWLOG-3.6-buildfix.patch
net-netfilter-IFWLOG-3.7-buildfix.patch
net-netfilter-IFWLOG-remove-unused-label.patch

# netfilter psd support
net-netfilter-psd.patch
net-netfilter-psd-mdv.patch
net-netfilter-psd-2.6.35-buildfix.patch

# rtlwifi regression
net-wireless-rtlwifi-Fix-regression-caused-by-commit-d86e64768859.patch

# CVE-2016-7039
net-add-recursion-limit-to-GRO.patch

###
### Platform drivers
###

# Allow access to Shuttle WMI interface controls
# (Mainly allow turning on/off webcam and wireless on Shuttle DA18IE and DA18IM)
platform-x86-add-shuttle-wmi-driver.patch
platform-x86-shuttle-wmi-drop-devinit-exit.patch
platform-x86-shuttle-wmi-4.2-buildfix.patch

###
### RTC
###

###
### Serial
###

# Export pci_ids.h to user space, needed by ldetect
include-kbuild-export-pci_ids.patch

###
### Sound
###

###
### Staging
###


###
### TTY
###

###
###
###

###
### USB
###

hid-usbhid-IBM-BladeCenterHS20-quirk.patch

usb-storage-unusual_devs-add-id.patch
usb-storage-unusual_devs-add-id-2.6.37-buildfix.patch

###
### V4L
###

# pwc driver name in /proc/bus/devices, /sys fix and "advertisement" removal
media-usb-pwc-lie-in-proc-usb-devices.patch

###
### Video
###

# Mageia framebuffer boot logo
video-mageia-logo.patch

###
### 3rdparty
###

3rd-3rdparty-1.0-tree.patch

# TODO: fix up patch below to include all archs?
3rd-3rdparty-merge.patch

# acerhk
3rd-acerhk-0.5.35.patch
3rd-acerhk-kbuild.patch
3rd-acerhk-extra-cflags.patch
3rd-acerhk-proc_dir_entry-owner.patch
3rd-acerhk-fix-build-with-function-tracer.patch
3rd-acerhk-2.6.36-buildfix.patch
3rd-acerhk-fix-include.patch

# aes2501
3rd-aes2501-r19.patch
3rd-aes2501-kbuild.patch
3rd-aes2501-rmmod-oops-fix.patch

# ndiswrapper
3rd-ndiswrapper-1.60.patch
3rd-ndiswrapper-Kconfig.patch
3rd-ndiswrapper-Makefile-build-fix.patch
3rd-ndiswrapper-4.7-buildfix.patch

# rfswitch
3rd-rfswitch-1.3.patch
3rd-rfswitch-build-fix.patch
3rd-rfswitch-3.0-buildfix.patch

# viahss
3rd-viahss-0.92.patch
3rd-viahss-config.patch
3rd-viahss-module-license.patch
3rd-viahss-2.6.35-buildfix.patch
3rd-viahss-3.0-buildfix.patch

# add rtl8723bs support (mga#15874)
3rd-rtl8723bs.patch
3rd-rtl8723bs-4.7-buildfix.patch
3rd-rtl8723bs-4.8-buildfix.patch

###
### Security
###

###
### Smack fixes
###

###
### XEN
###

###
### ARM
###

###
### IA64
###

###
### Tools
###

# wipe powerpc refrence so we can nuke dangling symlinks (mga#17676)
tools-testing-selftest-Makefile-remove-powerpc-reference.patch

###
### UAPI
###
# breaks linux-arm build
Revert-include-uapi-linux-atm_zatm.h-include-linux-t.patch
