Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

del

  • Loading branch information...
commit 806f6b9e717c88f792efe1d55a3839983ee2becd 1 parent 87870d6
@circass authored
Showing with 0 additions and 167,065 deletions.
  1. +0 −6 kernel/TODO
  2. +0 −53 kernel/actions.py
  3. +0 −14 kernel/comar/package.py
  4. +0 −5,409 kernel/files/configs/kernel-i686-config
  5. +0 −5,335 kernel/files/configs/kernel-x86_64-config
  6. +0 −3  kernel/files/cpupower.config
  7. +0 −13 kernel/files/cpupower.service
  8. +0 −109 kernel/files/patches/fedora/PatchList.txt
  9. +0 −38 kernel/files/patches/fedora/acpi-sony-nonvs-blacklist.patch
  10. +0 −45 kernel/files/patches/fedora/crypto-aesni-intel-fix-wrong-kfree-pointer.patch
  11. +0 −122 kernel/files/patches/fedora/crypto-testmgr-allow-aesni-intel-and-ghash_clmulni-intel.patch
  12. +0 −59 kernel/files/patches/fedora/disable-i8042-check-on-apple-mac.patch
  13. +0 −33 kernel/files/patches/fedora/dmar-disable-when-ricoh-multifunction.patch
  14. +0 −47 kernel/files/patches/fedora/drm-edid-try-harder-to-fix-up-broken-headers.patch
  15. +0 −53 kernel/files/patches/fedora/drm-i915-dp-stfu.patch
  16. +0 −492 kernel/files/patches/fedora/drm-vgem.patch
  17. +0 −22 kernel/files/patches/fedora/efi-dont-map-boot-services-on-32bit.patch
  18. +0 −34 kernel/files/patches/fedora/fix_xen_guest_on_old_EC2.patch
  19. +0 −12 kernel/files/patches/fedora/fs-proc-devtree-remove_proc_entry.patch
  20. +0 −43 kernel/files/patches/fedora/highbank-export-clock-functions.patch
  21. +0 −79 kernel/files/patches/fedora/lis3-improve-handling-of-null-rate.patch
  22. +0 −34 kernel/files/patches/fedora/power-x86-destdir.patch
  23. +0 −13 kernel/files/patches/fedora/quite-apm.patch
  24. +0 −22 kernel/files/patches/fedora/scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
  25. +0 −162 kernel/files/patches/fedora/selinux-apply-different-permission-to-ptrace-child.patch
  26. +0 −15 kernel/files/patches/fedora/taint-vbox.patch
  27. +0 −245 kernel/files/patches/fedora/unhandled-irqs-switch-to-polling.patch
  28. +0 −19 kernel/files/patches/fedora/weird-root-dentry-name-debug.patch
  29. +0 −181 kernel/files/patches/mageia/3rd-3rdparty-1.0-tree.patch
  30. +0 −164 kernel/files/patches/mageia/3rd-3rdparty-merge.patch
  31. +0 −4,212 kernel/files/patches/mageia/3rd-acerhk-0.5.35.patch
  32. +0 −20 kernel/files/patches/mageia/3rd-acerhk-2.6.36-buildfix.patch
  33. +0 −33 kernel/files/patches/mageia/3rd-acerhk-extra-cflags.patch
  34. +0 −22 kernel/files/patches/mageia/3rd-acerhk-fix-build-with-function-tracer.patch
  35. +0 −23 kernel/files/patches/mageia/3rd-acerhk-fix-include.patch
  36. +0 −37 kernel/files/patches/mageia/3rd-acerhk-kbuild.patch
  37. +0 −67 kernel/files/patches/mageia/3rd-acerhk-proc_dir_entry-owner.patch
  38. +0 −978 kernel/files/patches/mageia/3rd-rfswitch-1.3.patch
  39. +0 −19 kernel/files/patches/mageia/3rd-rfswitch-3.0-buildfix.patch
  40. +0 −51 kernel/files/patches/mageia/3rd-rfswitch-build-fix.patch
  41. +0 −189 kernel/files/patches/mageia/3rd-viahss-0.92.patch
  42. +0 −20 kernel/files/patches/mageia/3rd-viahss-2.6.35-buildfix.patch
  43. +0 −19 kernel/files/patches/mageia/3rd-viahss-3.0-buildfix.patch
  44. +0 −18 kernel/files/patches/mageia/3rd-viahss-config.patch
  45. +0 −7 kernel/files/patches/mageia/3rd-viahss-module-license.patch
  46. +0 −3  kernel/files/patches/mageia/3rdparty.series
  47. +0 −28 kernel/files/patches/mageia/acpi-CLEVO-M360S-disable_acpi_irq.patch
  48. +0 −21 kernel/files/patches/mageia/block-floppy-disable-pnp-modalias.patch
  49. +0 −23 kernel/files/patches/mageia/bluetooth-hci_usb-disable-isoc-transfers.patch
  50. +0 −51 kernel/files/patches/mageia/char-agp-intel-new-Q57-id.patch
  51. +0 −20 kernel/files/patches/mageia/dm-raid-aliases.patch
  52. +0 −29 kernel/files/patches/mageia/firewire-ieee1394-module-aliases.patch
  53. +0 −52 kernel/files/patches/mageia/fs-overlayfs-add-statfs-support.patch
  54. +0 −75 kernel/files/patches/mageia/fs-overlayfs-copy-up-i_uid-i_gid-from-the-underlying-inode.patch
  55. +0 −71 kernel/files/patches/mageia/fs-overlayfs-create-new-inode-in-ovl_link.patch
  56. +0 −24 kernel/files/patches/mageia/fs-overlayfs-fix-possible-leak-in-ovl_new_inode.patch
  57. +0 −147 kernel/files/patches/mageia/fs-overlayfs-implement-show_options.patch
  58. +0 −102 kernel/files/patches/mageia/fs-overlayfs-inode_only_permission-export-inode-level-permissions-checks.patch
  59. +0 −87 kernel/files/patches/mageia/fs-overlayfs-limit-filesystem-stacking-depth.patch
  60. +0 −42 kernel/files/patches/mageia/fs-overlayfs-switch-to-use-inode_only_permissions.patch
  61. +0 −130 kernel/files/patches/mageia/fs-overlayfs-vfs-add-i_op-open.patch
  62. +0 −22 kernel/files/patches/mageia/fs-overlayfs-vfs-export-do_splice_direct.patch
  63. +0 −54 kernel/files/patches/mageia/fs-overlayfs-vfs-introduce-clone_private_mount.patch
  64. +0 −149 kernel/files/patches/mageia/fs-overlayfs-vfs-pass-struct-path-to-__dentry_open.patch
  65. +0 −2,766 kernel/files/patches/mageia/fs-overlayfs.patch
  66. +0 −100 kernel/files/patches/mageia/gpu-drm-mach64-2.6.31.patch
  67. +0 −27 kernel/files/patches/mageia/gpu-drm-mach64-2.6.36-buildfix.patch
  68. +0 −24 kernel/files/patches/mageia/gpu-drm-mach64-2.6.37-buildfix.patch
  69. +0 −44 kernel/files/patches/mageia/gpu-drm-mach64-3.0-buildfix.patch
  70. +0 −47 kernel/files/patches/mageia/gpu-drm-mach64-3.3-buildfix.patch
  71. +0 −20 kernel/files/patches/mageia/gpu-drm-mach64-fix-for-changed-drm_ioctl.patch
  72. +0 −12 kernel/files/patches/mageia/gpu-drm-mach64-fix-for-changed-drm_pci_alloc.patch
  73. +0 −97 kernel/files/patches/mageia/gpu-drm-mach64-fixes.patch
  74. +0 −10 kernel/files/patches/mageia/gpu-drm-mach64-include-module.h.patch
  75. +0 −4,144 kernel/files/patches/mageia/gpu-drm-mach64.patch
  76. +0 −23 kernel/files/patches/mageia/ide-pci-sis5513-965.patch
  77. +0 −13 kernel/files/patches/mageia/media-video-pwc-lie-in-proc-usb-devices.patch
  78. +0 −30 kernel/files/patches/mageia/net-sis190-fix-list-usage.patch
  79. +0 −60 kernel/files/patches/mageia/pci-add-ALI-M5229-ide-compatibility-mode-quirk.patch
  80. +0 −34 kernel/files/patches/mageia/pci-pciprobe-CardBusNo.patch
  81. +0 −1,432 kernel/files/patches/mageia/platform-x86-add-shuttle-wmi-driver.patch
  82. +0 −54 kernel/files/patches/mageia/pnp-isapnp-async-init.patch
  83. +0 −15 kernel/files/patches/mageia/pnp-pnpbios-off-by-default.patch
  84. +0 −17 kernel/files/patches/mageia/scsi-megaraid-new-sysfs-name.patch
  85. +0 −5,083 kernel/files/patches/mageia/scsi-ppscsi-2.6.2.patch
  86. +0 −19 kernel/files/patches/mageia/scsi-ppscsi-3.0-buildfix.patch
  87. +0 −31 kernel/files/patches/mageia/scsi-ppscsi-mdvbz45393.patch
  88. +0 −36 kernel/files/patches/mageia/scsi-ppscsi-sg-helper-update.patch
  89. +0 −88 kernel/files/patches/mageia/scsi-ppscsi-update-for-scsi_data_buffer.patch
  90. +0 −226 kernel/files/patches/mageia/scsi-ppscsi_fixes.patch
  91. +0 −345 kernel/files/patches/mageia/series
  92. +0 −50 kernel/files/patches/mageia/smack-unionfs-deadlock-fix.patch
  93. +0 −128 kernel/files/patches/mageia/sound-alsa-hda-ad1884a-hp-dc-model.patch
  94. +0 −1,296 kernel/files/patches/mageia/sound-bluetooth-SCO-support.patch
  95. +0 −71 kernel/files/patches/mageia/tools-perf-fix-strerror_r-usage.patch
  96. +0 −46 kernel/files/patches/mageia/usb-storage-unusual_devs-add-id-2.6.37-buildfix.patch
  97. +0 −55 kernel/files/patches/mageia/usb-storage-unusual_devs-add-id.patch
  98. +0 −949 kernel/files/patches/mageia/video-mageia-logo.patch
  99. +0 −24 kernel/files/patches/mageia/x86-boot-video-80x25-if-break.patch
  100. +0 −123 kernel/files/patches/mageia/x86-cpufreq-speedstep-dothan-3.patch
  101. +0 −58 kernel/files/patches/mageia/x86-default_poweroff_up_machines.patch
  102. +0 −28 kernel/files/patches/mageia/x86-increase-default-minimum-vmalloc-area-by-64MB-to-192MB.patch
  103. +0 −67 kernel/files/patches/mageia/x86-p4_clockmod-reasonable-default-for-scaling_min_freq.patch
  104. +0 −29 kernel/files/patches/mageia/x86-pci-toshiba-equium-a60-assign-busses.patch
  105. +0 −177 kernel/files/patches/mandriva/3rd-3rdparty-merge.patch
  106. +0 −33 kernel/files/patches/mandriva/3rd-acerhk-extra-cflags.patch
  107. +0 −22 kernel/files/patches/mandriva/3rd-acerhk-fix-build-with-function-tracer.patch
  108. +0 −23 kernel/files/patches/mandriva/3rd-acerhk-fix-include.patch
  109. +0 −67 kernel/files/patches/mandriva/3rd-acerhk-proc_dir_entry-owner.patch
  110. +0 −20 kernel/files/patches/mandriva/3rd-heci-WARN-redefine.patch
  111. +0 −42 kernel/files/patches/mandriva/3rd-heci-use-sched.h.patch
  112. BIN  kernel/files/patches/mandriva/3rd-ndiswrapper-1.56.tar
  113. +0 −98 kernel/files/patches/mandriva/3rd-ndiswrapper-2.6.35-buildfix.patch
  114. +0 −63 kernel/files/patches/mandriva/3rd-ndiswrapper-2.6.36-buildfix.patch
  115. +0 −28 kernel/files/patches/mandriva/3rd-ndiswrapper-dma_addr_t-print-warn-fix.patch
  116. +0 −33 kernel/files/patches/mandriva/3rd-ndiswrapper-fix-wrapndis.c-includes.patch
  117. +0 −51 kernel/files/patches/mandriva/3rd-rfswitch-build-fix.patch
  118. +0 −20 kernel/files/patches/mandriva/3rd-viahss-2.6.35-buildfix.patch
  119. +0 −18 kernel/files/patches/mandriva/3rd-viahss-config.patch
  120. +0 −7 kernel/files/patches/mandriva/3rd-viahss-module-license.patch
  121. +0 −28 kernel/files/patches/mandriva/acpi-CLEVO-M360S-disable_acpi_irq.patch
  122. +0 −116 kernel/files/patches/mandriva/acpi-add-proc-event-regs.patch
  123. +0 −330 kernel/files/patches/mandriva/acpi-dsdt-initrd-v0.9c-2.6.28.patch
  124. +0 −112 kernel/files/patches/mandriva/acpi-dsdt-initrd-v0.9c-fixes.patch
  125. +0 −21 kernel/files/patches/mandriva/acpi-processor-M720SR-limit-to-C2.patch
  126. +0 −87 kernel/files/patches/mandriva/acpi-video-add-blacklist-to-use-vendor-driver.patch
  127. +0 −23 kernel/files/patches/mandriva/bluetooth-hci_usb-disable-isoc-transfers.patch
  128. +0 −51 kernel/files/patches/mandriva/char-agp-intel-new-Q57-id.patch
  129. +0 −234 kernel/files/patches/mandriva/fs-aufs2.1-38-modular.patch
  130. +0 −30,153 kernel/files/patches/mandriva/fs-aufs2.1-38.patch
  131. +0 −22 kernel/files/patches/mandriva/fs-unionfs-2.5.3-oops.patch
  132. +0 −11,289 kernel/files/patches/mandriva/fs-unionfs-2.5.8_for_2.6.38-rc7.patch
  133. +0 −21 kernel/files/patches/mandriva/fs-unionfs-buildfix.patch
  134. +0 −92 kernel/files/patches/mandriva/gpu-drm-i915-Fix-tiling-corruption-from-pipelined-fencin.patch
  135. +0 −100 kernel/files/patches/mandriva/gpu-drm-mach64-2.6.31.patch
  136. +0 −27 kernel/files/patches/mandriva/gpu-drm-mach64-2.6.36-buildfix.patch
  137. +0 −24 kernel/files/patches/mandriva/gpu-drm-mach64-2.6.37-buildfix.patch
  138. +0 −20 kernel/files/patches/mandriva/gpu-drm-mach64-fix-for-changed-drm_ioctl.patch
  139. +0 −12 kernel/files/patches/mandriva/gpu-drm-mach64-fix-for-changed-drm_pci_alloc.patch
  140. +0 −97 kernel/files/patches/mandriva/gpu-drm-mach64-fixes.patch
  141. +0 −4,138 kernel/files/patches/mandriva/gpu-drm-mach64.patch
  142. +0 −37 kernel/files/patches/mandriva/hid-usbhid-IBM-BladeCenterHS20-quirk.patch
  143. +0 −23 kernel/files/patches/mandriva/ide-pci-sis5513-965.patch
  144. +0 −19 kernel/files/patches/mandriva/include-kbuild-export-pci_ids.patch
  145. +0 −137 kernel/files/patches/mandriva/kbuild-compress-kernel-modules-on-installation.patch
  146. +0 −13 kernel/files/patches/mandriva/media-video-pwc-lie-in-proc-usb-devices.patch
  147. +0 −12 kernel/files/patches/mandriva/media-video-pwc-no-ads-in-dmesg.patch
  148. +0 −49 kernel/files/patches/mandriva/mpt-vmware-fix.patch
  149. +0 −20 kernel/files/patches/mandriva/net-netfilter-IFWLOG-2.6.35-buildfix.patch
  150. +0 −15 kernel/files/patches/mandriva/net-netfilter-IFWLOG-2.6.37-buildfix.patch
  151. +0 −261 kernel/files/patches/mandriva/net-netfilter-IFWLOG-mdv.patch
  152. +0 −269 kernel/files/patches/mandriva/net-netfilter-IFWLOG.patch
  153. +0 −10,292 kernel/files/patches/mandriva/net-netfilter-ipset-6.2.patch
  154. +0 −3,310 kernel/files/patches/mandriva/net-netfilter-ipset-6.4.patch
  155. +0 −11 kernel/files/patches/mandriva/net-netfilter-psd-2.6.35-buildfix.patch
  156. +0 −233 kernel/files/patches/mandriva/net-netfilter-psd-mdv.patch
  157. +0 −420 kernel/files/patches/mandriva/net-netfilter-psd.patch
  158. +0 −30 kernel/files/patches/mandriva/net-sis190-fix-list-usage.patch
  159. +0 −64 kernel/files/patches/mandriva/net-usb-rndis_host-poll-status-channel-before-control-channel.patch
  160. +0 −60 kernel/files/patches/mandriva/pci-add-ALI-M5229-ide-compatibility-mode-quirk.patch
  161. +0 −34 kernel/files/patches/mandriva/pci-pciprobe-CardBusNo.patch
  162. +0 −1,441 kernel/files/patches/mandriva/platform-x86-add-shuttle-wmi-driver.patch
  163. +0 −41 kernel/files/patches/mandriva/platform-x86-samsung-laptop-Samsung-R410P-backlight-driver.patch
  164. +0 −36 kernel/files/patches/mandriva/platform-x86-samsung-laptop-add-support-for-N230-model.patch
  165. +0 −28 kernel/files/patches/mandriva/platform-x86-samsung-laptop-make-dmi_check_cb-to-return-1-instead-of-0.patch
  166. +0 −1,513 kernel/files/patches/mandriva/platform-x86-samsung-laptop.patch
  167. +0 −54 kernel/files/patches/mandriva/pnp-isapnp-async-init.patch
  168. +0 −15 kernel/files/patches/mandriva/pnp-pnpbios-off-by-default.patch
  169. +0 −17 kernel/files/patches/mandriva/scsi-megaraid-new-sysfs-name.patch
  170. +0 −5,083 kernel/files/patches/mandriva/scsi-ppscsi-2.6.2.patch
  171. +0 −31 kernel/files/patches/mandriva/scsi-ppscsi-mdvbz45393.patch
  172. +0 −36 kernel/files/patches/mandriva/scsi-ppscsi-sg-helper-update.patch
  173. +0 −88 kernel/files/patches/mandriva/scsi-ppscsi-update-for-scsi_data_buffer.patch
  174. +0 −226 kernel/files/patches/mandriva/scsi-ppscsi_fixes.patch
  175. +0 −50 kernel/files/patches/mandriva/smack-unionfs-deadlock-fix.patch
  176. +0 −128 kernel/files/patches/mandriva/sound-alsa-hda-ad1884a-hp-dc-model.patch
  177. +0 −33 kernel/files/patches/mandriva/sound-alsa-hda_intel-prealloc-4mb-dmabuffer.patch
  178. +0 −1,296 kernel/files/patches/mandriva/sound-bluetooth-SCO-support.patch
  179. +0 −46 kernel/files/patches/mandriva/usb-storage-unusual_devs-add-id-2.6.37-buildfix.patch
  180. +0 −55 kernel/files/patches/mandriva/usb-storage-unusual_devs-add-id.patch
  181. +0 −148 kernel/files/patches/mandriva/video-fb-avoid-deadlock-caused-by-fb_set_suspend.patch
  182. +0 −397 kernel/files/patches/mandriva/video-fb-avoid-oops-when-fw-fb-is-removed.patch
  183. +0 −19,268 kernel/files/patches/mandriva/video-mdk-logo.patch
  184. +0 −24 kernel/files/patches/mandriva/x86-boot-video-80x25-if-break.patch
  185. +0 −123 kernel/files/patches/mandriva/x86-cpufreq-speedstep-dothan-3.patch
  186. +0 −58 kernel/files/patches/mandriva/x86-default_poweroff_up_machines.patch
  187. +0 −65 kernel/files/patches/mandriva/x86-p4_clockmod-reasonable-default-for-scaling_min_freq.patch
  188. +0 −29 kernel/files/patches/mandriva/x86-pci-toshiba-equium-a60-assign-busses.patch
  189. +0 −61 kernel/files/patches/meego/linux-2.6.29-retry-root-mount.patch
  190. +0 −54 kernel/files/patches/pardus/0001-Add-Lenovo-Ideapad-S12-to-acer-blacklist.patch
  191. +0 −24,998 kernel/files/patches/pardus/add-realtek-pcie-card-reader-driver.patch
  192. +0 −24 kernel/files/patches/pardus/cpupower-fix-linking.patch
  193. +0 −13 kernel/files/patches/pardus/invert-hidapple-fnkey-behaviour.patch
  194. +0 −643 kernel/files/patches/pardus/linux-2.6-add-fujitsu-amilo-74xx-rfkill-drivers.patch
  195. +0 −492 kernel/files/patches/pardus/linux-2.6-add-lmpcm_usb-driver.patch
  196. +0 −1,570 kernel/files/patches/pardus/logo-mono.patch
  197. +0 −2,489 kernel/files/patches/pardus/logo-vga16.patch
  198. +0 −2,488 kernel/files/patches/pardus/logo.patch
  199. +0 −32 kernel/files/patches/pardus/new-btusb-id-for-asus_ux31.patch
  200. +0 −276 kernel/files/patches/pardus/realtek-pcie-card-reader-driver-cleanup.patch
  201. +0 −30 kernel/files/patches/pardus/vesa_fallback_on_fail.patch
  202. BIN  kernel/files/patches/suse/patches.apparmor.tar.bz2
  203. +0 −2,942 kernel/files/patches/suse/patches.arch/cubox-configuration.patch
  204. +0 −32 kernel/files/patches/suse/patches.arch/perf_timechart_fix_zero_timestamps.patch
  205. +0 −19 kernel/files/patches/suse/patches.arch/ppc-pegasos-console-autodetection.patch
  206. +0 −77 kernel/files/patches/suse/patches.arch/ppc-prom-nodisplay.patch
  207. +0 −23 kernel/files/patches/suse/patches.arch/s390-message-catalog-fix.diff
  208. +0 −23 kernel/files/patches/suse/patches.arch/s390-message-catalog-perl-fix.diff
Sorry, we could not display the entire diff because it was too big.
View
6 kernel/TODO
@@ -1,6 +0,0 @@
-building with pisi release="212"
-
-x86 ready
-
-x86-64 ready
-
View
53 kernel/actions.py
@@ -1,53 +0,0 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-#
-# Licensed under the GNU General Public License, version 2.
-# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
-
-from pisi.actionsapi import kerneltools
-from pisi.actionsapi import shelltools
-from pisi.actionsapi import autotools
-from pisi.actionsapi import pisitools
-from pisi.actionsapi import get
-
-NoStrip = ["/lib", "/boot"]
-
-shelltools.export("KBUILD_BUILD_USER", "pardus")
-shelltools.export("KBUILD_BUILD_HOST", "buildfarm")
-shelltools.export("PYTHONDONTWRITEBYTECODE", "1")
-shelltools.export("HOME", get.workDIR())
-
-cpupower_arch = get.ARCH().replace("i686", "i386")
-
-def setup():
- kerneltools.configure()
-
-def build():
- kerneltools.build(debugSymbols=False)
-
- # When bumping major version build man files and put them into files/man
- autotools.make("V=1 WERROR=0 -C tools/perf perf HAVE_CPLUS_DEMANGLE=1")
-
- # Build cpupowertools
- autotools.make("-C tools/power/cpupower CPUFREQ_BENCH=false")
- autotools.make("-C tools/power/cpupower/debug/%s centrino-decode powernow-k8-decode" % cpupower_arch)
-
-def install():
- kerneltools.install()
-
- # Install kernel headers needed for out-of-tree module compilation
- kerneltools.installHeaders()
-
- kerneltools.installLibcHeaders()
-
- # Install cpupowertools stuff
- autotools.install("-C tools/power/cpupower DESTDIR=%s libdir=/usr/lib mandir=/%s CPUFREQ_BENCH=false" % (get.installDIR(), get.manDIR()))
-
- pisitools.dobin("tools/power/cpupower/debug/%s/centrino-decode" % cpupower_arch)
- pisitools.dobin("tools/power/cpupower/debug/%s/powernow-k8-decode" % cpupower_arch)
-
- # Generate some module lists to use within mkinitramfs
- shelltools.system("./generate-module-list %s/lib/modules/%s" % (get.installDIR(), kerneltools.__getSuffix()))
-
- # Build and install the new 'perf' tool
- pisitools.insinto("/usr/bin", "tools/perf/perf", "perf.%s-%s" % (get.srcNAME(), get.srcVERSION()))
View
14 kernel/comar/package.py
@@ -1,14 +0,0 @@
-#!/usr/bin/python
-
-import os.path
-import subprocess
-
-def postInstall(fromVersion, fromRelease, toVersion, toRelease):
- KVER = open("/etc/kernel/kernel").read().strip()
-
- # Update GRUB entry
- if os.path.exists("/boot/grub/grub.conf"):
- call("grub", "Boot.Loader", "updateKernelEntry", (KVER, ""))
-
-def preRemove():
- pass
View
5,409 kernel/files/configs/kernel-i686-config
0 additions, 5,409 deletions not shown
View
5,335 kernel/files/configs/kernel-x86_64-config
0 additions, 5,335 deletions not shown
View
3  kernel/files/cpupower.config
@@ -1,3 +0,0 @@
-# See 'cpupower help' and cpupower(1) for more info
-CPUPOWER_START_OPTS="frequency-set -g performance"
-CPUPOWER_STOP_OPTS="frequency-set -g ondemand"
View
13 kernel/files/cpupower.service
@@ -1,13 +0,0 @@
-[Unit]
-Description=Configure CPU power related settings
-After=syslog.target
-
-[Service]
-Type=oneshot
-RemainAfterExit=yes
-EnvironmentFile=/etc/sysconfig/cpupower
-ExecStart=/usr/bin/cpupower $CPUPOWER_START_OPTS
-ExecStop=/usr/bin/cpupower $CPUPOWER_STOP_OPTS
-
-[Install]
-WantedBy=multi-user.target
View
109 kernel/files/patches/fedora/PatchList.txt
@@ -1,109 +0,0 @@
-**** Queued for 3.2 ***********************************************************************************
-
-* acpi-ensure-thermal-limits-match-cpu-freq.patch
-* revert-efi-rtclock.patch
-* block-stray-block-put-after-teardown.patch
-* efi-dont-map-boot-services-on-32bit.patch
-
-**** Queued for 3.3 ***********************************************************************************
-drm-edid-try-harder-to-fix-up-broken-headers.patch
-ext4-Support-check-none-nocheck-mount-options.patch
-
-**** Other stuff that should go upstream (in decreasing likelyhood) ************************************
-
-* linux-2.6-acpi-video-dos.patch
-* linux-2.6-defaults-acpi-video.patch
-* linux-2.6-defaults-aspm.patch
-* disable-i8042-check-on-apple-mac.patch
-* linux-2.6.30-no-pcspkr-modalias.patch
-* die-floppy-die.patch
- Fedora policy decisions
- Turn into CONFIG_ options and upstream ?
-
-* linux-2.6-input-kill-stupid-messages.patch
-* linux-2.6-silence-acpi-blacklist.patch
-* linux-2.6-silence-fbcon-logo.patch
-* linux-2.6-silence-noise.patch
- Fedora local 'hush' patches. (TODO: push more upstream)
-
-* linux-2.6-makefile-after_link.patch
- Rolandware that is used by the debuginfo generation.
- Possibly upstreamable ?
-
-* linux-2.6-serial-460800.patch
- Probably not upstreamable.
- http://marc.theaimsgroup.com/?l=linux-kernel&m=112687270832687&w=2
- https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=126403
- http://lkml.org/lkml/2006/8/2/208
-
-* linux-2.6-acpi-debug-infinite-loop.patch
- Responsible: mjg59
-
-* fix_xen_guest_on_old_EC2.patch
- Ugly for upstream. It's a hack to make old HV's work optimally.
- Eventually we can drop it, but probably not until fixed HV's
- are commonplace. (When?)
- Responsible: Justin.
-
-* add-appleir-usb-driver.patch
- Added September 2009, but had been around even before that.
- " NACKed upstream with "i'll implement this in the ir framework" or something
- and never got around to it."
- Responsible: j-rod
-
-* dmar-disable-when-ricoh-multifunction.patch
- Added October 2010
-
-* linux-2.6-intel-iommu-igfx.patch
- Invert igfx_off/igfx_on option. Around since forever. Upstreamable ?
- Mustard ? Config option ?
-
-* arm-omap-dt-compat.patch
-* arm-smsc-support-reading-mac-address-from-device-tree.patch
- reponsible: Dennis
-
-***********************************************************************************
-
-'MUSTARD' patches. Fedora local patches that are very unlikely to go upstream.
-
-* linux-2.6-32bit-mmap-exec-randomization.patch
- One half of the remaining exec-shield diff.
- - davej bugged Ingo again on Jun 17 2011 about upstreaming, no response.
- - mailed Linus asking for opinions in August 2011. He still hates it.
- "Ugh. Certainly not in this form. That patch is just disgusting." ..
- "I think that with NX and now SMEP, if you really care about security,
- you'd better be using a CPU that supports 64-bit operations anyway."
- As well as the increased randomisation, there's a key part of this patch
- that means that DSOs get loaded in the ASCII-Armor area on 32bit.
- (Addresses have topmost byte == 0)
- See also https://bugzilla.redhat.com/show_bug.cgi?id=734239
-
-* linux-2.6-i386-nx-emulation.patch
- The ugly segment hack part of exec-shield that Linus hates.
- Unlikely to ever go upstream.
-
-* linux-2.6-crash-driver.patch
- Unlikely to go upstream.
- https://bugzilla.redhat.com/show_bug.cgi?id=492803
-
-* linux-2.6-e1000-ich9-montevina.patch
- Intel hates it. Davej has an SDV that needs it.
- Low maintenence, and worth hanging onto until it gets replaced
- with something that fails in a different way.
-
-* utrace.patch
- Hopefully it'll die when uprobes gets upstream.
-
-
-***********************************************************************************
-
-Spec file/config todos/cleanups
-
-* modules-extra: Do a few more things to make it a bit more robust.
- - Allow for comments in the mod-extra.list file.
- - Don't fail the build if a module is listed but not built (maybe).
- - See if it can be tied into Kconfig instead of module names.
-
-* investigate gzip modules. Everything should support this now?
- Looks like about 70M savings per kernel installed.
-
View
38 kernel/files/patches/fedora/acpi-sony-nonvs-blacklist.patch
@@ -1,38 +0,0 @@
-diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
-index 3ed80b2..17fc718 100644
---- a/drivers/acpi/sleep.c
-+++ b/drivers/acpi/sleep.c
-@@ -390,6 +390,14 @@ static struct dmi_system_id __initdata acpisleep_dmi_table[] = {
- },
- {
- .callback = init_nvs_nosave,
-+ .ident = "Sony Vaio VGN-FW21E",
-+ .matches = {
-+ DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"),
-+ DMI_MATCH(DMI_PRODUCT_NAME, "VGN-FW21E"),
-+ },
-+ },
-+ {
-+ .callback = init_nvs_nosave,
- .ident = "Sony Vaio VGN-SR11M",
- .matches = {
- DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"),
-diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
-index 0e46fae..6d9a3ab 100644
---- a/drivers/acpi/sleep.c
-+++ b/drivers/acpi/sleep.c
-@@ -398,6 +398,14 @@ static struct dmi_system_id __initdata acpisleep_dmi_table[] = {
- },
- {
- .callback = init_nvs_nosave,
-+ .ident = "Sony Vaio VPCEB17FX",
-+ .matches = {
-+ DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"),
-+ DMI_MATCH(DMI_PRODUCT_NAME, "VPCEB17FX"),
-+ },
-+ },
-+ {
-+ .callback = init_nvs_nosave,
- .ident = "Sony Vaio VGN-SR11M",
- .matches = {
- DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"),
View
45 kernel/files/patches/fedora/crypto-aesni-intel-fix-wrong-kfree-pointer.patch
@@ -1,45 +0,0 @@
-From bf084d8f6eb4ded3f90a6ab79bb682db00ebfbd4 Mon Sep 17 00:00:00 2001
-From: Milan Broz <mbroz@redhat.com>
-Date: Thu, 28 Jun 2012 17:26:02 +0200
-Subject: [PATCH] crypto: aesni-intel - fix wrong kfree pointer
-
-kfree(new_key_mem) in rfc4106_set_key() should be called on malloced pointer,
-not on aligned one, otherwise it can cause invalid pointer on free.
-
-(Seen at least once when running tcrypt tests with debug kernel.)
-
-Signed-off-by: Milan Broz <mbroz@redhat.com>
-Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
----
- arch/x86/crypto/aesni-intel_glue.c | 8 ++++----
- 1 files changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/arch/x86/crypto/aesni-intel_glue.c b/arch/x86/crypto/aesni-intel_glue.c
-index d662615..34fdcff 100644
---- a/arch/x86/crypto/aesni-intel_glue.c
-+++ b/arch/x86/crypto/aesni-intel_glue.c
-@@ -529,7 +529,7 @@ static int rfc4106_set_key(struct crypto_aead *parent, const u8 *key,
- struct crypto_aead *cryptd_child = cryptd_aead_child(ctx->cryptd_tfm);
- struct aesni_rfc4106_gcm_ctx *child_ctx =
- aesni_rfc4106_gcm_ctx_get(cryptd_child);
-- u8 *new_key_mem = NULL;
-+ u8 *new_key_align, *new_key_mem = NULL;
-
- if (key_len < 4) {
- crypto_tfm_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN);
-@@ -553,9 +553,9 @@ static int rfc4106_set_key(struct crypto_aead *parent, const u8 *key,
- if (!new_key_mem)
- return -ENOMEM;
-
-- new_key_mem = PTR_ALIGN(new_key_mem, AESNI_ALIGN);
-- memcpy(new_key_mem, key, key_len);
-- key = new_key_mem;
-+ new_key_align = PTR_ALIGN(new_key_mem, AESNI_ALIGN);
-+ memcpy(new_key_align, key, key_len);
-+ key = new_key_align;
- }
-
- if (!irq_fpu_usable())
---
-1.7.6.5
-
View
122 kernel/files/patches/fedora/crypto-testmgr-allow-aesni-intel-and-ghash_clmulni-intel.patch
@@ -1,122 +0,0 @@
-From 6c79294f44fd7d1122cbaabff3b9815b074c0dd0 Mon Sep 17 00:00:00 2001
-From: Milan Broz <mbroz@redhat.com>
-Date: Fri, 29 Jun 2012 22:08:09 +0200
-Subject: [PATCH] crypto: testmgr - allow aesni-intel and ghash_clmulni-intel
- in fips mode
-
-Patch 863b557a88f8c033f7419fabafef4712a5055f85 added NULL entries
-for intel accelerated drivers but did not marked these fips allowed.
-This cause panic if running tests with fips=1.
-
-For ghash, fips_allowed flag was added in patch
-18c0ebd2d8194cce4b3f67e2903fa01bea892cbc.
-
-Without patch, "modprobe tcrypt" fails with
- alg: skcipher: Failed to load transform for cbc-aes-aesni: -2
- cbc-aes-aesni: cbc(aes) alg self test failed in fips mode!
- (panic)
-
-Also add missing cryptd(__driver-cbc-aes-aesni) and
-cryptd(__driver-gcm-aes-aesni) test to complement
-null tests above, otherwise system complains with
- alg: No test for __cbc-aes-aesni (cryptd(__driver-cbc-aes-aesni))
- alg: No test for __gcm-aes-aesni (cryptd(__driver-gcm-aes-aesni))
-
-Signed-off-by: Milan Broz <mbroz@redhat.com>
-Signed-off-by: Paul Wouters <pwouters@redhat.com>
-Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
----
- crypto/testmgr.c | 38 ++++++++++++++++++++++++++++++++++++++
- 1 files changed, 38 insertions(+), 0 deletions(-)
-
-diff --git a/crypto/testmgr.c b/crypto/testmgr.c
-index 36748a5..4308a11 100644
---- a/crypto/testmgr.c
-+++ b/crypto/testmgr.c
-@@ -1581,6 +1581,7 @@ static const struct alg_test_desc alg_test_descs[] = {
- }, {
- .alg = "__driver-cbc-aes-aesni",
- .test = alg_test_null,
-+ .fips_allowed = 1,
- .suite = {
- .cipher = {
- .enc = {
-@@ -1641,6 +1642,7 @@ static const struct alg_test_desc alg_test_descs[] = {
- }, {
- .alg = "__driver-ecb-aes-aesni",
- .test = alg_test_null,
-+ .fips_allowed = 1,
- .suite = {
- .cipher = {
- .enc = {
-@@ -1701,6 +1703,7 @@ static const struct alg_test_desc alg_test_descs[] = {
- }, {
- .alg = "__ghash-pclmulqdqni",
- .test = alg_test_null,
-+ .fips_allowed = 1,
- .suite = {
- .hash = {
- .vecs = NULL,
-@@ -1866,8 +1869,25 @@ static const struct alg_test_desc alg_test_descs[] = {
- }
- }
- }, {
-+ .alg = "cryptd(__driver-cbc-aes-aesni)",
-+ .test = alg_test_null,
-+ .fips_allowed = 1,
-+ .suite = {
-+ .cipher = {
-+ .enc = {
-+ .vecs = NULL,
-+ .count = 0
-+ },
-+ .dec = {
-+ .vecs = NULL,
-+ .count = 0
-+ }
-+ }
-+ }
-+ }, {
- .alg = "cryptd(__driver-ecb-aes-aesni)",
- .test = alg_test_null,
-+ .fips_allowed = 1,
- .suite = {
- .cipher = {
- .enc = {
-@@ -1926,8 +1946,25 @@ static const struct alg_test_desc alg_test_descs[] = {
- }
- }
- }, {
-+ .alg = "cryptd(__driver-gcm-aes-aesni)",
-+ .test = alg_test_null,
-+ .fips_allowed = 1,
-+ .suite = {
-+ .cipher = {
-+ .enc = {
-+ .vecs = NULL,
-+ .count = 0
-+ },
-+ .dec = {
-+ .vecs = NULL,
-+ .count = 0
-+ }
-+ }
-+ }
-+ }, {
- .alg = "cryptd(__ghash-pclmulqdqni)",
- .test = alg_test_null,
-+ .fips_allowed = 1,
- .suite = {
- .hash = {
- .vecs = NULL,
-@@ -2043,6 +2080,7 @@ static const struct alg_test_desc alg_test_descs[] = {
- }, {
- .alg = "ecb(__aes-aesni)",
- .test = alg_test_null,
-+ .fips_allowed = 1,
- .suite = {
- .cipher = {
- .enc = {
---
-1.7.6.5
-
View
59 kernel/files/patches/fedora/disable-i8042-check-on-apple-mac.patch
@@ -1,59 +0,0 @@
-From 2a79554c864ac58fa2ad982f0fcee2cc2aa33eb5 Mon Sep 17 00:00:00 2001
-From: Bastien Nocera <hadess@hadess.net>
-Date: Thu, 20 May 2010 10:30:31 -0400
-Subject: Disable i8042 checks on Intel Apple Macs
-
-As those computers never had any i8042 controllers, and the
-current lookup code could potentially lock up/hang/wait for
-timeout for long periods of time.
-
-Fixes intermittent hangs on boot on a MacbookAir1,1
-
-Signed-off-by: Bastien Nocera <hadess@hadess.net>
----
- drivers/input/serio/i8042.c | 22 ++++++++++++++++++++++
- 1 files changed, 22 insertions(+), 0 deletions(-)
-
-diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c
-index 6440a8f..4d7cf98 100644
---- a/drivers/input/serio/i8042.c
-+++ b/drivers/input/serio/i8042.c
-@@ -1451,6 +1451,22 @@ static struct platform_driver i8042_driver = {
- .shutdown = i8042_shutdown,
- };
-
-+#ifdef CONFIG_DMI
-+static struct dmi_system_id __initdata dmi_system_table[] = {
-+ {
-+ .matches = {
-+ DMI_MATCH(DMI_BIOS_VENDOR, "Apple Computer, Inc.")
-+ },
-+ },
-+ {
-+ .matches = {
-+ DMI_MATCH(DMI_BIOS_VENDOR, "Apple Inc.")
-+ },
-+ },
-+ {}
-+};
-+#endif /*CONFIG_DMI*/
-+
- static int __init i8042_init(void)
- {
- struct platform_device *pdev;
-@@ -1458,6 +1474,12 @@ static int __init i8042_init(void)
-
- dbg_init();
-
-+#ifdef CONFIG_DMI
-+ /* Intel Apple Macs never have an i8042 controller */
-+ if (dmi_check_system(dmi_system_table) > 0)
-+ return -ENODEV;
-+#endif /*CONFIG_DMI*/
-+
- err = i8042_platform_init();
- if (err)
- return err;
---
-1.7.0.1
-
View
33 kernel/files/patches/fedora/dmar-disable-when-ricoh-multifunction.patch
@@ -1,33 +0,0 @@
-From da7662784dcced04a5b7a3a5b2bbb8276d699522 Mon Sep 17 00:00:00 2001
-From: Kyle McMartin <kyle@mcmartin.ca>
-Date: Sun, 17 Oct 2010 15:55:32 -0400
-Subject: [PATCH] dmar: disable if ricoh multifunction detected
-
----
- drivers/pci/intel-iommu.c | 10 ++++++++++
- 1 files changed, 10 insertions(+), 0 deletions(-)
-
-diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c
-index 4789f8e..5923914 100644
---- a/drivers/iommu/intel-iommu.c
-+++ b/drivers/iommu/intel-iommu.c
-@@ -3784,6 +3784,16 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x0044, quirk_calpella_no_shadow_g
- DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x0062, quirk_calpella_no_shadow_gtt);
- DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, 0x006a, quirk_calpella_no_shadow_gtt);
-
-+/* https://bugzilla.redhat.com/show_bug.cgi?id=605888 */
-+static void __devinit quirk_ricoh_multifunction(struct pci_dev *dev)
-+{
-+ dmar_disabled = 1;
-+}
-+DECLARE_PCI_FIXUP_HEADER(0x1180, 0xe822, quirk_ricoh_multifunction);
-+DECLARE_PCI_FIXUP_HEADER(0x1180, 0xe230, quirk_ricoh_multifunction);
-+DECLARE_PCI_FIXUP_HEADER(0x1180, 0xe832, quirk_ricoh_multifunction);
-+DECLARE_PCI_FIXUP_HEADER(0x1180, 0xe476, quirk_ricoh_multifunction);
-+
- /* On Tylersburg chipsets, some BIOSes have been known to enable the
- ISOCH DMAR unit for the Azalia sound device, but not give it any
- TLB entries, which causes it to deadlock. Check for that. We do
---
-1.7.3.1
-
View
47 kernel/files/patches/fedora/drm-edid-try-harder-to-fix-up-broken-headers.patch
@@ -1,47 +0,0 @@
-From 115cb7ab7d3b87fe43b1fe9b05ec894b1fcfb5cf Mon Sep 17 00:00:00 2001
-From: Adam Jackson <ajax@redhat.com>
-Date: Wed, 7 Dec 2011 18:26:23 -0500
-Subject: [PATCH] drm/edid: Try harder to fix up broken headers
-
-There's no reason to force the first byte to be correct if we're already
-scoring how correct the header is.
-
-See also: https://bugzilla.redhat.com/show_bug.cgi?id=722909
-
-Signed-off-by: Adam Jackson <ajax@redhat.com>
----
- drivers/gpu/drm/drm_edid.c | 18 ++++++++----------
- 1 files changed, 8 insertions(+), 10 deletions(-)
-
-diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
-index 7425e5c..8b16a49 100644
---- a/drivers/gpu/drm/drm_edid.c
-+++ b/drivers/gpu/drm/drm_edid.c
-@@ -154,16 +154,14 @@ drm_edid_block_valid(u8 *raw_edid)
- int i;
- u8 csum = 0;
- struct edid *edid = (struct edid *)raw_edid;
--
-- if (raw_edid[0] == 0x00) {
-- int score = drm_edid_header_is_valid(raw_edid);
-- if (score == 8) ;
-- else if (score >= 6) {
-- DRM_DEBUG("Fixing EDID header, your hardware may be failing\n");
-- memcpy(raw_edid, edid_header, sizeof(edid_header));
-- } else {
-- goto bad;
-- }
-+ int score = drm_edid_header_is_valid(raw_edid);
-+
-+ if (score == 8) ;
-+ else if (score >= 6) {
-+ DRM_DEBUG("Fixing EDID header, your hardware may be failing\n");
-+ memcpy(raw_edid, edid_header, sizeof(edid_header));
-+ } else {
-+ goto bad;
- }
-
- for (i = 0; i < EDID_LENGTH; i++)
---
-1.7.7.3
-
View
53 kernel/files/patches/fedora/drm-i915-dp-stfu.patch
@@ -1,53 +0,0 @@
-diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
-index 296cfc2..516e1e2 100644
---- a/drivers/gpu/drm/i915/intel_dp.c
-+++ b/drivers/gpu/drm/i915/intel_dp.c
-@@ -350,7 +350,7 @@ intel_dp_check_edp(struct intel_dp *intel_dp)
- if (!is_edp(intel_dp))
- return;
- if (!ironlake_edp_have_panel_power(intel_dp) && !ironlake_edp_have_panel_vdd(intel_dp)) {
-- WARN(1, "eDP powered off while attempting aux channel communication.\n");
-+ DRM_ERROR("eDP powered off while attempting aux channel communication.\n");
- DRM_DEBUG_KMS("Status 0x%08x Control 0x%08x\n",
- I915_READ(PCH_PP_STATUS),
- I915_READ(PCH_PP_CONTROL));
-@@ -400,7 +400,7 @@ intel_dp_aux_ch(struct intel_dp *intel_dp,
- }
-
- if (try == 3) {
-- WARN(1, "dp_aux_ch not started status 0x%08x\n",
-+ DRM_ERROR("dp_aux_ch not started status 0x%08x\n",
- I915_READ(ch_ctl));
- return -EBUSY;
- }
-@@ -1024,8 +1024,8 @@ static void ironlake_edp_panel_vdd_on(struct intel_dp *intel_dp)
- return;
- DRM_DEBUG_KMS("Turn eDP VDD on\n");
-
-- WARN(intel_dp->want_panel_vdd,
-- "eDP VDD already requested on\n");
-+ if (intel_dp->want_panel_vdd)
-+ DRM_ERROR("eDP VDD already requested on\n");
-
- intel_dp->want_panel_vdd = true;
-
-@@ -1090,7 +1090,8 @@ static void ironlake_edp_panel_vdd_off(struct intel_dp *intel_dp, bool sync)
- return;
-
- DRM_DEBUG_KMS("Turn eDP VDD off %d\n", intel_dp->want_panel_vdd);
-- WARN(!intel_dp->want_panel_vdd, "eDP VDD not forced on");
-+ if (!intel_dp->want_panel_vdd)
-+ DRM_ERROR("eDP VDD not forced on");
-
- intel_dp->want_panel_vdd = false;
-
-@@ -1160,7 +1161,8 @@ static void ironlake_edp_panel_off(struct intel_dp *intel_dp)
-
- DRM_DEBUG_KMS("Turn eDP power off\n");
-
-- WARN(!intel_dp->want_panel_vdd, "Need VDD to turn off panel\n");
-+ if (!intel_dp->want_panel_vdd)
-+ DRM_ERROR("Need VDD to turn off panel\n");
-
- pp = ironlake_get_pp_control(dev_priv);
- pp &= ~(POWER_TARGET_ON | PANEL_POWER_RESET | EDP_BLC_ENABLE);
View
492 kernel/files/patches/fedora/drm-vgem.patch
@@ -1,492 +0,0 @@
-diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm/Kconfig
-index 2418429..566c468 100644
---- a/drivers/gpu/drm/Kconfig
-+++ b/drivers/gpu/drm/Kconfig
-@@ -159,6 +159,14 @@ config DRM_SAVAGE
- Choose this option if you have a Savage3D/4/SuperSavage/Pro/Twister
- chipset. If M is selected the module will be called savage.
-
-+config DRM_VGEM
-+ tristate "Virtual GEM provider"
-+ depends on DRM
-+ help
-+ Choose this option to get a virtual graphics memory manager,
-+ as used by Mesa's software renderer for enhanced performance.
-+ If M is selected the module will be called vgem.
-+
- source "drivers/gpu/drm/exynos/Kconfig"
-
- source "drivers/gpu/drm/vmwgfx/Kconfig"
-diff --git a/drivers/gpu/drm/Makefile b/drivers/gpu/drm/Makefile
-index 0cde1b8..021bf8a 100644
---- a/drivers/gpu/drm/Makefile
-+++ b/drivers/gpu/drm/Makefile
-@@ -34,6 +34,7 @@ obj-$(CONFIG_DRM_SIS) += sis/
- obj-$(CONFIG_DRM_SAVAGE)+= savage/
- obj-$(CONFIG_DRM_VMWGFX)+= vmwgfx/
- obj-$(CONFIG_DRM_VIA) +=via/
-+obj-$(CONFIG_DRM_VGEM) += vgem/
- obj-$(CONFIG_DRM_NOUVEAU) +=nouveau/
- obj-$(CONFIG_DRM_EXYNOS) +=exynos/
- obj-$(CONFIG_DRM_GMA500) += gma500/
-diff --git a/drivers/gpu/drm/vgem/Makefile b/drivers/gpu/drm/vgem/Makefile
-new file mode 100644
-index 0000000..3f4c7b8
---- /dev/null
-+++ b/drivers/gpu/drm/vgem/Makefile
-@@ -0,0 +1,4 @@
-+ccflags-y := -Iinclude/drm
-+vgem-y := vgem_drv.o
-+
-+obj-$(CONFIG_DRM_VGEM) += vgem.o
-diff --git a/drivers/gpu/drm/vgem/vgem_drv.c b/drivers/gpu/drm/vgem/vgem_drv.c
-new file mode 100644
-index 0000000..16f88ee
---- /dev/null
-+++ b/drivers/gpu/drm/vgem/vgem_drv.c
-@@ -0,0 +1,377 @@
-+/*
-+ * Copyright 2011 Red Hat, Inc.
-+ *
-+ * Permission is hereby granted, free of charge, to any person obtaining a
-+ * copy of this software and associated documentation files (the "Software")
-+ * to deal in the software without restriction, including without limitation
-+ * on the rights to use, copy, modify, merge, publish, distribute, sub
-+ * license, and/or sell copies of the Software, and to permit persons to whom
-+ * them Software is furnished to do so, subject to the following conditions:
-+ *
-+ * The above copyright notice and this permission notice (including the next
-+ * paragraph) shall be included in all copies or substantial portions of the
-+ * Software.
-+ *
-+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTIBILITY,
-+ * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
-+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER
-+ * IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF OR IN
-+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-+ *
-+ * Authors:
-+ * Adam Jackson <ajax@redhat.com>
-+ */
-+
-+/**
-+ * This is vgem, a (non-hardware-backed) GEM service. This is used by Mesa's
-+ * software renderer and the X server for efficient buffer sharing.
-+ */
-+
-+#include "drmP.h"
-+#include "drm.h"
-+#include "vgem_drm.h"
-+#include <linux/module.h>
-+#include <linux/ramfs.h>
-+#include <linux/shmem_fs.h>
-+
-+#define DRIVER_NAME "vgem"
-+#define DRIVER_DESC "Virtual GEM provider"
-+#define DRIVER_DATE "20120112"
-+#define DRIVER_MAJOR 1
-+#define DRIVER_MINOR 0
-+
-+#define to_vgem_bo(x) container_of(x, struct drm_vgem_gem_object, base)
-+
-+struct drm_vgem_gem_object {
-+ struct drm_gem_object base;
-+ struct page **pages;
-+};
-+
-+static int vgem_load(struct drm_device *dev, unsigned long flags)
-+{
-+ return 0;
-+}
-+
-+static int vgem_unload(struct drm_device *dev)
-+{
-+ return 0;
-+}
-+
-+static void vgem_preclose(struct drm_device *dev, struct drm_file *file)
-+{
-+}
-+
-+static void vgem_lastclose(struct drm_device *dev)
-+{
-+}
-+
-+static int vgem_gem_init_object(struct drm_gem_object *obj)
-+{
-+ return 0;
-+}
-+
-+static void vgem_gem_put_pages(struct drm_vgem_gem_object *obj)
-+{
-+ int num_pages = obj->base.size / PAGE_SIZE;
-+ int i;
-+
-+ for (i = 0; i < num_pages; i++) {
-+ page_cache_release(obj->pages[i]);
-+ }
-+
-+ drm_free_large(obj->pages);
-+ obj->pages = NULL;
-+}
-+
-+static void vgem_gem_free_object(struct drm_gem_object *obj)
-+{
-+ struct drm_vgem_gem_object *vgem_obj = to_vgem_bo(obj);
-+
-+ if (obj)
-+ drm_gem_free_mmap_offset(obj);
-+
-+ drm_gem_object_release(obj);
-+
-+ if (vgem_obj->pages)
-+ vgem_gem_put_pages(vgem_obj);
-+
-+ kfree(vgem_obj);
-+}
-+
-+static int vgem_gem_get_pages(struct drm_vgem_gem_object *obj)
-+{
-+ struct address_space *mapping;
-+ gfp_t gfpmask = __GFP_NORETRY | __GFP_NOWARN;
-+ int num_pages, i, ret = 0;
-+
-+ num_pages = obj->base.size / PAGE_SIZE;
-+
-+ if (!obj->pages) {
-+ obj->pages = drm_malloc_ab(num_pages, sizeof(struct page *));
-+ if (obj->pages == NULL)
-+ return -ENOMEM;
-+ }
-+
-+ mapping = obj->base.filp->f_path.dentry->d_inode->i_mapping;
-+ gfpmask |= mapping_gfp_mask(mapping);
-+
-+ if (WARN_ON(mapping == NULL))
-+ return VM_FAULT_SIGBUS;
-+
-+ for (i = 0; i < num_pages; i++) {
-+ struct page *page;
-+ page = shmem_read_mapping_page_gfp(mapping, i, gfpmask);
-+ if (IS_ERR(page)) {
-+ ret = PTR_ERR(page);
-+ goto err_out;
-+ }
-+ obj->pages[i] = page;
-+ }
-+
-+ return ret;
-+
-+err_out:
-+ while (i--)
-+ page_cache_release(obj->pages[i]);
-+ drm_free_large(obj->pages);
-+ obj->pages = NULL;
-+ return ret;
-+}
-+
-+static int vgem_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
-+{
-+ struct drm_vgem_gem_object *obj = to_vgem_bo(vma->vm_private_data);
-+ loff_t num_pages;
-+ pgoff_t page_offset;
-+ int ret;
-+
-+ /* We don't use vmf->pgoff since that has the fake offset */
-+ page_offset = ((unsigned long)vmf->virtual_address - vma->vm_start) >>
-+ PAGE_SHIFT;
-+
-+ num_pages = obj->base.size / PAGE_SIZE;
-+
-+ if (WARN_ON(page_offset > num_pages))
-+ return VM_FAULT_SIGBUS;
-+
-+ ret = vgem_gem_get_pages(obj);
-+ if (ret)
-+ return ret;
-+
-+ ret = vm_insert_page(vma, (unsigned long)vmf->virtual_address,
-+ obj->pages[page_offset]);
-+
-+ /* Pretty dumb handler for now */
-+ switch (ret) {
-+ case 0:
-+ case -ERESTARTSYS:
-+ case -EINTR:
-+ return VM_FAULT_NOPAGE;
-+ default:
-+ return VM_FAULT_SIGBUS;
-+ }
-+}
-+
-+static const struct vm_operations_struct vgem_gem_vm_ops = {
-+ .fault = vgem_gem_fault,
-+ .open = drm_gem_vm_open,
-+ .close = drm_gem_vm_close,
-+};
-+
-+/* ioctls */
-+
-+static struct drm_gem_object *vgem_gem_create(struct drm_device *dev,
-+ struct drm_file *file,
-+ unsigned int *handle,
-+ unsigned long size)
-+{
-+ struct drm_vgem_gem_object *obj;
-+ struct drm_gem_object *gem_object;
-+ int err;
-+
-+ size = roundup(size, PAGE_SIZE);
-+
-+ obj = kzalloc(sizeof(*obj), GFP_KERNEL);
-+ if (!obj)
-+ return ERR_PTR(-ENOMEM);
-+
-+ gem_object = &obj->base;
-+
-+ if ((err = drm_gem_object_init(dev, gem_object, size)))
-+ goto out;
-+
-+ if ((err = drm_gem_create_mmap_offset(gem_object)))
-+ goto mmap_out;
-+
-+ if ((err = drm_gem_handle_create(file, gem_object, handle)))
-+ goto handle_out;
-+
-+ drm_gem_object_unreference_unlocked(gem_object);
-+
-+ return gem_object;
-+
-+handle_out:
-+ drm_gem_free_mmap_offset(gem_object);
-+
-+mmap_out:
-+ drm_gem_object_release(gem_object);
-+
-+out:
-+ kfree(gem_object);
-+
-+ return ERR_PTR(err);
-+}
-+
-+static int vgem_gem_create_ioctl(struct drm_device *dev, void *data,
-+ struct drm_file *file)
-+{
-+ struct vgem_gem_create *args = data;
-+ struct drm_gem_object *gem_object;
-+
-+ gem_object = vgem_gem_create(dev, file, &args->handle, args->size);
-+
-+ if (IS_ERR(gem_object))
-+ return PTR_ERR(gem_object);
-+
-+ return 0;
-+}
-+
-+static int vgem_gem_mmap_ioctl(struct drm_device *dev, void *data,
-+ struct drm_file *file)
-+{
-+ struct vgem_gem_mmap *args = data;
-+ struct drm_gem_object *obj;
-+
-+ obj = drm_gem_object_lookup(dev, file, args->handle);
-+ if (!obj)
-+ return -ENOENT;
-+
-+ obj->filp->private_data = obj;
-+
-+ BUG_ON(!obj->map_list.map);
-+
-+ args->mapped = (uint64_t)obj->map_list.hash.key << PAGE_SHIFT;
-+
-+ drm_gem_object_unreference_unlocked(obj);
-+
-+ return 0;
-+}
-+
-+static int vgem_gem_getparam_ioctl(struct drm_device *dev, void *data,
-+ struct drm_file *file)
-+{
-+ struct vgem_gem_getparam *args = data;
-+ int value=0, ret;
-+
-+ switch (args->param) {
-+ case VGEM_PARAM_IS_VGEM:
-+ value = 1;
-+ }
-+
-+ ret = copy_to_user(args->value, &value, sizeof(int));
-+ if (ret)
-+ return ret;
-+
-+ return 0;
-+}
-+
-+
-+static struct drm_ioctl_desc vgem_ioctls[] = {
-+ DRM_IOCTL_DEF_DRV(VGEM_GEM_CREATE, vgem_gem_create_ioctl,
-+ DRM_UNLOCKED | DRM_AUTH),
-+ DRM_IOCTL_DEF_DRV(VGEM_GEM_MMAP, vgem_gem_mmap_ioctl,
-+ DRM_UNLOCKED | DRM_AUTH),
-+ DRM_IOCTL_DEF_DRV(VGEM_GEM_GETPARAM, vgem_gem_getparam_ioctl,
-+ DRM_UNLOCKED),
-+};
-+
-+static const struct file_operations vgem_driver_fops = {
-+ .owner = THIS_MODULE,
-+ .open = drm_open,
-+ .mmap = drm_gem_mmap,
-+ .poll = drm_poll,
-+ .read = drm_read,
-+ .unlocked_ioctl = drm_ioctl,
-+ .release = drm_release,
-+};
-+
-+static struct drm_driver vgem_driver = {
-+ .driver_features = DRIVER_BUS_PLATFORM | DRIVER_GEM,
-+ .load = vgem_load,
-+ .unload = vgem_unload,
-+ .preclose = vgem_preclose,
-+ .lastclose = vgem_lastclose,
-+ .gem_init_object = vgem_gem_init_object,
-+ .gem_free_object = vgem_gem_free_object,
-+ .gem_vm_ops = &vgem_gem_vm_ops,
-+ .ioctls = vgem_ioctls,
-+ .fops = &vgem_driver_fops,
-+ .name = DRIVER_NAME,
-+ .desc = DRIVER_DESC,
-+ .date = DRIVER_DATE,
-+ .major = DRIVER_MAJOR,
-+ .minor = DRIVER_MINOR,
-+};
-+
-+static int vgem_platform_probe(struct platform_device *pdev)
-+{
-+ vgem_driver.num_ioctls = DRM_ARRAY_SIZE(vgem_ioctls);
-+
-+ return drm_platform_init(&vgem_driver, pdev);
-+}
-+
-+static int vgem_platform_remove(struct platform_device *pdev)
-+{
-+ drm_platform_exit(&vgem_driver, pdev);
-+
-+ return 0;
-+}
-+
-+static struct platform_driver vgem_platform_driver = {
-+ .probe = vgem_platform_probe,
-+ .remove = __devexit_p(vgem_platform_remove),
-+ .driver = {
-+ .owner = THIS_MODULE,
-+ .name = DRIVER_NAME,
-+ },
-+};
-+
-+static struct platform_device *vgem_device;
-+
-+static int __init vgem_init(void)
-+{
-+ int ret;
-+
-+ if ((ret = platform_driver_register(&vgem_platform_driver)))
-+ return ret;
-+
-+ vgem_device = platform_device_alloc("vgem", -1);
-+ if (!vgem_device) {
-+ ret = -ENOMEM;
-+ goto out;
-+ }
-+
-+ ret = platform_device_add(vgem_device);
-+ if (!ret)
-+ return 0;
-+
-+out:
-+ platform_device_put(vgem_device);
-+ platform_driver_unregister(&vgem_platform_driver);
-+
-+ return ret;
-+}
-+
-+static void __exit vgem_exit(void)
-+{
-+ platform_device_unregister(vgem_device);
-+ platform_driver_unregister(&vgem_platform_driver);
-+}
-+
-+module_init(vgem_init);
-+module_exit(vgem_exit);
-+
-+MODULE_AUTHOR("Red Hat, Inc.");
-+MODULE_DESCRIPTION(DRIVER_DESC);
-+MODULE_LICENSE("GPL and additional rights");
-diff --git a/include/drm/vgem_drm.h b/include/drm/vgem_drm.h
-new file mode 100644
-index 0000000..df83503
---- /dev/null
-+++ b/include/drm/vgem_drm.h
-@@ -0,0 +1,62 @@
-+/*
-+ * Copyright 2011 Red Hat, Inc.
-+ *
-+ * Permission is hereby granted, free of charge, to any person obtaining a
-+ * copy of this software and associated documentation files (the "Software")
-+ * to deal in the software without restriction, including without limitation
-+ * on the rights to use, copy, modify, merge, publish, distribute, sub
-+ * license, and/or sell copies of the Software, and to permit persons to whom
-+ * them Software is furnished to do so, subject to the following conditions:
-+ *
-+ * The above copyright notice and this permission notice (including the next
-+ * paragraph) shall be included in all copies or substantial portions of the
-+ * Software.
-+ *
-+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTIBILITY,
-+ * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
-+ * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER
-+ * IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF OR IN
-+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-+ */
-+
-+#ifndef VGEM_DRM_H
-+#define VGEM_DRM_H
-+
-+/* Bare API largely ripped off from exynos driver */
-+
-+struct vgem_gem_create {
-+ unsigned int size;
-+ unsigned int flags;
-+ unsigned int handle;
-+};
-+
-+struct vgem_gem_mmap {
-+ unsigned int handle;
-+ unsigned int size;
-+ uint64_t mapped;
-+};
-+
-+struct vgem_gem_getparam {
-+#define VGEM_PARAM_IS_VGEM 1
-+ unsigned int param;
-+ unsigned int *value;
-+};
-+
-+#define DRM_VGEM_GEM_CREATE 0x00
-+#define DRM_VGEM_GEM_MMAP 0x01
-+#define DRM_VGEM_GEM_GETPARAM 0x02
-+
-+#define DRM_IOCTL_VGEM_GEM_CREATE \
-+ DRM_IOWR(DRM_COMMAND_BASE + DRM_VGEM_GEM_CREATE, \
-+ struct vgem_gem_create)
-+
-+#define DRM_IOCTL_VGEM_GEM_MMAP \
-+ DRM_IOWR(DRM_COMMAND_BASE + DRM_VGEM_GEM_MMAP, \
-+ struct vgem_gem_mmap)
-+
-+#define DRM_IOCTL_VGEM_GEM_GETPARAM \
-+ DRM_IOWR(DRM_COMMAND_BASE + DRM_VGEM_GEM_GETPARAM, \
-+ struct vgem_gem_getparam)
-+
-+#endif
View
22 kernel/files/patches/fedora/efi-dont-map-boot-services-on-32bit.patch
@@ -1,22 +0,0 @@
-diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c
-index 3ae4128..ff7dc70 100644
---- a/arch/x86/platform/efi/efi.c
-+++ b/arch/x86/platform/efi/efi.c
-@@ -659,10 +659,13 @@ void __init efi_enter_virtual_mode(void)
-
- for (p = memmap.map; p < memmap.map_end; p += memmap.desc_size) {
- md = p;
-- if (!(md->attribute & EFI_MEMORY_RUNTIME) &&
-- md->type != EFI_BOOT_SERVICES_CODE &&
-- md->type != EFI_BOOT_SERVICES_DATA)
-- continue;
-+ if (!(md->attribute & EFI_MEMORY_RUNTIME)) {
-+#ifdef CONFIG_X86_64
-+ if (md->type != EFI_BOOT_SERVICES_CODE &&
-+ md->type != EFI_BOOT_SERVICES_DATA)
-+#endif
-+ continue;
-+ }
-
- size = md->num_pages << EFI_PAGE_SHIFT;
- end = md->phys_addr + size;
View
34 kernel/files/patches/fedora/fix_xen_guest_on_old_EC2.patch
@@ -1,34 +0,0 @@
-
-Legacy hypervisors (RHEL 5.0 and RHEL 5.1) do not handle guest writes to
-cr4 gracefully. If a guest attempts to write a bit of cr4 that is
-unsupported, then the HV is so offended it crashes the domain. While
-later guest kernels (such as RHEL6) don't assume the HV supports all
-features, they do expect nicer responses. That assumption introduced
-code that probes whether or not xsave is supported early in the boot. So
-now when attempting to boot a RHEL6 guest on RHEL5.0 or RHEL5.1 an early
-crash will occur.
-
-This patch is quite obviously an undesirable hack. The real fix for this
-problem should be in the HV, and is, in later HVs. However, to support
-running on old HVs, RHEL6 can take this small change. No impact will
-occur for running on any RHEL HV (not even RHEL 5.5 supports xsave).
-There is only potential for guest performance loss on upstream Xen.
-
----
- arch/x86/xen/enlighten.c | 1 +
- 1 files changed, 1 insertions(+), 0 deletions(-)
-
-diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
-index 52f8e19..6db3d67 100644
---- a/arch/x86/xen/enlighten.c
-+++ b/arch/x86/xen/enlighten.c
-@@ -802,6 +802,7 @@ static void xen_write_cr4(unsigned long cr4)
- {
- cr4 &= ~X86_CR4_PGE;
- cr4 &= ~X86_CR4_PSE;
-+ cr4 &= ~X86_CR4_OSXSAVE;
-
- native_write_cr4(cr4);
- }
---
-1.6.6.1
View
12 kernel/files/patches/fedora/fs-proc-devtree-remove_proc_entry.patch
@@ -1,12 +0,0 @@
-diff --git a/fs/proc/proc_devtree.c b/fs/proc/proc_devtree.c
-index 927cbd1..f060f28 100644
---- a/fs/proc/proc_devtree.c
-+++ b/fs/proc/proc_devtree.c
-@@ -233,6 +233,7 @@ void __init proc_device_tree_init(void)
- return;
- root = of_find_node_by_path("/");
- if (root == NULL) {
-+ remove_proc_entry("device-tree", NULL);
- pr_debug("/proc/device-tree: can't find root\n");
- return;
- }
View
43 kernel/files/patches/fedora/highbank-export-clock-functions.patch
@@ -1,43 +0,0 @@
-From 81a06eed2491273b7d6d274ae4be1d333c100ab0 Mon Sep 17 00:00:00 2001
-From: Mark Langsdorf <mark.langsdorf@calxeda.com>
-Date: Mon, 12 Mar 2012 06:28:19 -0400
-Subject: [PATCH] highbank: export clock functions
-
-Signed-off-by: Mark Langsdorf <mark.langsdorf@calxeda.com>
----
- arch/arm/mach-highbank/clock.c | 4 ++++
- 1 files changed, 4 insertions(+), 0 deletions(-)
-
-diff --git diff -up linux-3.2-rc4.orig/arch/arm/mach-highbank/clock.c diff -up linux-3.2-rc4/arch/arm/mach-highbank/clock.c
-index c25a2ae..cdbc575 100644
---- a/arch/arm/mach-highbank/clock.c
-+++ b/arch/arm/mach-highbank/clock.c
-@@ -27,14 +27,17 @@ int clk_enable(struct clk *clk)
- {
- return 0;
- }
-+EXPORT_SYMBOL_GPL(clk_enable);
-
- void clk_disable(struct clk *clk)
- {}
-+EXPORT_SYMBOL_GPL(clk_disable);
-
- unsigned long clk_get_rate(struct clk *clk)
- {
- return clk->rate;
- }
-+EXPORT_SYMBOL_GPL(clk_get_rate);
-
- long clk_round_rate(struct clk *clk, unsigned long rate)
- {
-@@ -45,6 +48,7 @@ int clk_set_rate(struct clk *clk, unsigned long rate)
- {
- return 0;
- }
-+EXPORT_SYMBOL_GPL(clk_set_rate);
-
- static struct clk eclk = { .rate = 200000000 };
- static struct clk pclk = { .rate = 150000000 };
---
-1.7.9.1
-
View
79 kernel/files/patches/fedora/lis3-improve-handling-of-null-rate.patch
@@ -1,79 +0,0 @@
->From 56fb161a9ca0129f8e266e4dbe79346552ff8089 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?=C3=89ric=20Piel?= <eric.piel@tremplin-utc.net>
-Date: Thu, 3 Nov 2011 16:22:40 +0100
-Subject: [PATCH] lis3: Improve handling of null rate
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-When obtaining a rate of 0, we would disable the device supposely
-because it seems to behave incorectly. It actually only comes from the
-fact that the device is off and on lis3dc it's reflected in the rate.
-So handle this nicely by just waiting a safe time, and then using the
-device as normally.
-
-Signed-off-by: ??ric Piel <eric.piel@tremplin-utc.net>
----
- drivers/misc/lis3lv02d/lis3lv02d.c | 16 ++++++++--------
- 1 files changed, 8 insertions(+), 8 deletions(-)
-
-diff --git a/drivers/misc/lis3lv02d/lis3lv02d.c b/drivers/misc/lis3lv02d/lis3lv02d.c
-index 35c67e0..42dce2a 100644
---- a/drivers/misc/lis3lv02d/lis3lv02d.c
-+++ b/drivers/misc/lis3lv02d/lis3lv02d.c
-@@ -188,7 +188,8 @@ static void lis3lv02d_get_xyz(struct lis3lv02d *lis3, int *x, int *y, int *z)
- /* conversion btw sampling rate and the register values */
- static int lis3_12_rates[4] = {40, 160, 640, 2560};
- static int lis3_8_rates[2] = {100, 400};
--static int lis3_3dc_rates[16] = {0, 1, 10, 25, 50, 100, 200, 400, 1600, 5000};
-+/* LIS3DC: 0 = power off, above 9 = undefined */
-+static int lis3_3dc_rates[16] = {0, 1, 10, 25, 50, 100, 200, 400, 1600, 5000, -1, -1, -1, -1, -1, -1};
-
- /* ODR is Output Data Rate */
- static int lis3lv02d_get_odr(struct lis3lv02d *lis3)
-@@ -202,12 +203,11 @@ static int lis3lv02d_get_odr(struct lis3lv02d *lis3)
- return lis3->odrs[(ctrl >> shift)];
- }
-
--static int lis3lv02d_get_pwron_wait(struct lis3lv02d *lis3)
-+static int lis3lv02d_wait_pwron(struct lis3lv02d *lis3)
- {
- int div = lis3lv02d_get_odr(lis3);
--
-- if (WARN_ONCE(div == 0, "device returned spurious data"))
-- return -ENXIO;
-+ if (div <= 0)
-+ div = 1; /* maximum delay */
-
- /* LIS3 power on delay is quite long */
- msleep(lis3->pwron_delay / div);
-@@ -274,7 +274,7 @@ static int lis3lv02d_selftest(struct lis3lv02d *lis3, s16 results[3])
-
- lis3->read(lis3, ctlreg, &reg);
- lis3->write(lis3, ctlreg, (reg | selftest));
-- ret = lis3lv02d_get_pwron_wait(lis3);
-+ ret = lis3lv02d_wait_pwron(lis3);
- if (ret)
- goto fail;
-
-@@ -285,7 +285,7 @@ static int lis3lv02d_selftest(struct lis3lv02d *lis3, s16 results[3])
-
- /* back to normal settings */
- lis3->write(lis3, ctlreg, reg);
-- ret = lis3lv02d_get_pwron_wait(lis3);
-+ ret = lis3lv02d_wait_pwron(lis3);
- if (ret)
- goto fail;
-
-@@ -397,7 +397,7 @@ int lis3lv02d_poweron(struct lis3lv02d *lis3)
- lis3->write(lis3, CTRL_REG2, reg);
- }
-
-- err = lis3lv02d_get_pwron_wait(lis3);
-+ err = lis3lv02d_wait_pwron(lis3);
- if (err)
- return err;
-
---
-1.7.7.1
-
View
34 kernel/files/patches/fedora/power-x86-destdir.patch
@@ -1,34 +0,0 @@
-diff --git a/tools/power/x86/turbostat/Makefile b/tools/power/x86/turbostat/Makefile
-index fd8e1f1..7af5e8c 100644
---- a/tools/power/x86/turbostat/Makefile
-+++ b/tools/power/x86/turbostat/Makefile
-@@ -1,8 +1,10 @@
-+DESTDIR ?=
-+
- turbostat : turbostat.c
-
- clean :
- rm -f turbostat
-
- install :
-- install turbostat /usr/bin/turbostat
-- install turbostat.8 /usr/share/man/man8
-+ install turbostat ${DESTDIR}/usr/bin/turbostat
-+ install turbostat.8 ${DESTDIR}/usr/share/man/man8
-diff --git a/tools/power/x86/x86_energy_perf_policy/Makefile b/tools/power/x86/x86_energy_perf_policy/Makefile
-index f458237..f9824f0 100644
---- a/tools/power/x86/x86_energy_perf_policy/Makefile
-+++ b/tools/power/x86/x86_energy_perf_policy/Makefile
-@@ -1,8 +1,10 @@
-+DESTDIR ?=
-+
- x86_energy_perf_policy : x86_energy_perf_policy.c
-
- clean :
- rm -f x86_energy_perf_policy
-
- install :
-- install x86_energy_perf_policy /usr/bin/
-- install x86_energy_perf_policy.8 /usr/share/man/man8/
-+ install x86_energy_perf_policy ${DESTDIR}/usr/bin/
-+ install x86_energy_perf_policy.8 ${DESTDIR}/usr/share/man/man8/
View
13 kernel/files/patches/fedora/quite-apm.patch
@@ -1,13 +0,0 @@
-diff --git a/arch/x86/kernel/apm_32.c b/arch/x86/kernel/apm_32.c
-index a46bd38..416dd12 100644
---- a/arch/x86/kernel/apm_32.c
-+++ b/arch/x86/kernel/apm_32.c
-@@ -903,7 +903,7 @@ static void apm_cpu_idle(void)
- unsigned int jiffies_since_last_check = jiffies - last_jiffies;
- unsigned int bucket;
-
-- WARN_ONCE(1, "deprecated apm_cpu_idle will be deleted in 2012");
-+ printk_once(KERN_INFO "deprecated apm_cpu_idle will be deleted in 2012");
- recalc:
- if (jiffies_since_last_check > IDLE_CALC_LIMIT) {
- use_apm_idle = 0;
View
22 kernel/files/patches/fedora/scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
@@ -1,22 +0,0 @@
---- a/drivers/scsi/sd.c
-+++ a/drivers/scsi/sd.c
-@@ -2362,13 +2362,18 @@ static int sd_try_extended_inquiry(struct scsi_device *sdp)
- static int sd_revalidate_disk(struct gendisk *disk)
- {
- struct scsi_disk *sdkp = scsi_disk(disk);
-- struct scsi_device *sdp = sdkp->device;
-+ struct scsi_device *sdp;
- unsigned char *buffer;
- unsigned flush = 0;
-
- SCSI_LOG_HLQUEUE(3, sd_printk(KERN_INFO, sdkp,
- "sd_revalidate_disk\n"));
-
-+ if (WARN_ONCE((!sdkp), "Invalid scsi_disk from %p\n", disk))
-+ goto out;
-+
-+ sdp = sdkp->device;
-+
- /*
- * If the device is offline, don't try and read capacity or any
- * of the other niceties.
View
162 kernel/files/patches/fedora/selinux-apply-different-permission-to-ptrace-child.patch
@@ -1,162 +0,0 @@
-Some applications, like gdb, are able to ptrace both children or other
-completely unrelated tasks. We would like to be able to discern these two
-things and to be able to allow gdb to ptrace it's children, but not to be
-able to ptrace unrelated tasks for security reasons.
-
-Upstream is a bit weary of this patch as it may be incomplete. They are
-not fundamentally opposed to the patch, I was just ask to see if I could
-flush out any needed refinement in Fedora where we already had the
-problem. We may find that we need to emulate the YAMA non-child
-registration module in order to completely deal with 'normal' ptrace on
-a system. At the moment however, this patch will at least let us get
-gdb working for many users in Fedora (See fedora-devel-list for a
-discussion of the current issues people are complaining about in F17
-without this)
-
----
-
- security/selinux/hooks.c | 38 +++++++++++++++++++++++++++++++++++
- security/selinux/include/classmap.h | 2 +-
- security/selinux/include/security.h | 2 ++
- security/selinux/selinuxfs.c | 3 ++-
- security/selinux/ss/services.c | 3 +++
- 5 files changed, 46 insertions(+), 2 deletions(-)
-
-diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
-index 1a4acf4..b226f26 100644
---- a/security/selinux/hooks.c
-+++ b/security/selinux/hooks.c
-@@ -1805,6 +1805,39 @@ static inline u32 open_file_to_av(struct file *file)
-
- /* Hook functions begin here. */
-
-+/**
-+ * task_is_descendant - walk up a process family tree looking for a match
-+ * @parent: the process to compare against while walking up from child
-+ * @child: the process to start from while looking upwards for parent
-+ *
-+ * Returns 1 if child is a descendant of parent, 0 if not.
-+ */
-+static int task_is_descendant(struct task_struct *parent,
-+ struct task_struct *child)
-+{
-+ int rc = 0;
-+ struct task_struct *walker = child;
-+
-+ if (!parent || !child)
-+ return 0;
-+
-+ rcu_read_lock();
-+ if (!thread_group_leader(parent))
-+ parent = rcu_dereference(parent->group_leader);
-+ while (walker->pid > 0) {
-+ if (!thread_group_leader(walker))
-+ walker = rcu_dereference(walker->group_leader);
-+ if (walker == parent) {
-+ rc = 1;
-+ break;
-+ }
-+ walker = rcu_dereference(walker->real_parent);
-+ }
-+ rcu_read_unlock();
-+
-+ return rc;
-+}
-+
- static int selinux_ptrace_access_check(struct task_struct *child,
- unsigned int mode)
- {
-@@ -1820,6 +1853,9 @@ static int selinux_ptrace_access_check(struct task_struct *child,
- return avc_has_perm(sid, csid, SECCLASS_FILE, FILE__READ, NULL);
- }
-
-+
-+ if (selinux_policycap_ptrace_child && task_is_descendant(current, child))
-+ return current_has_perm(child, PROCESS__PTRACE_CHILD);
- return current_has_perm(child, PROCESS__PTRACE);
- }
-
-@@ -1831,6 +1867,8 @@ static int selinux_ptrace_traceme(struct task_struct *parent)
- if (rc)
- return rc;
-
-+ if (selinux_policycap_ptrace_child && task_is_descendant(parent, current))
-+ return task_has_perm(parent, current, PROCESS__PTRACE_CHILD);
- return task_has_perm(parent, current, PROCESS__PTRACE);
- }
-
-diff --git a/security/selinux/include/classmap.h b/security/selinux/include/classmap.h
-index 39e678c..72c08b9 100644
---- a/security/selinux/include/classmap.h
-+++ b/security/selinux/include/classmap.h
-@@ -29,7 +29,7 @@ struct security_class_mapping secclass_map[] = {
- "getattr", "setexec", "setfscreate", "noatsecure", "siginh",
- "setrlimit", "rlimitinh", "dyntransition", "setcurrent",
- "execmem", "execstack", "execheap", "setkeycreate",
-- "setsockcreate", NULL } },
-+ "setsockcreate", "ptrace_child", NULL } },
- { "system",
- { "ipc_info", "syslog_read", "syslog_mod",
- "syslog_console", "module_request", NULL } },
-diff --git a/security/selinux/include/security.h b/security/selinux/include/security.h
-index dde2005..ac14b0a 100644
---- a/security/selinux/include/security.h
-+++ b/security/selinux/include/security.h
-@@ -68,12 +68,14 @@ extern int selinux_enabled;
- enum {
- POLICYDB_CAPABILITY_NETPEER,
- POLICYDB_CAPABILITY_OPENPERM,
-+ POLICYDB_CAPABILITY_PTRACE_CHILD,
- __POLICYDB_CAPABILITY_MAX
- };
- #define POLICYDB_CAPABILITY_MAX (__POLICYDB_CAPABILITY_MAX - 1)
-
- extern int selinux_policycap_netpeer;
- extern int selinux_policycap_openperm;
-+extern int selinux_policycap_ptrace_child;
-
- /*
- * type_datum properties
-diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c
-index 4e93f9e..3379765 100644
---- a/security/selinux/selinuxfs.c
-+++ b/security/selinux/selinuxfs.c
-@@ -44,7 +44,8 @@
- /* Policy capability filenames */
- static char *policycap_names[] = {
- "network_peer_controls",
-- "open_perms"
-+ "open_perms",
-+ "ptrace_child",
- };
-
- unsigned int selinux_checkreqprot = CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE;
-diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c
-index 9b7e7ed..4d12a6e 100644
---- a/security/selinux/ss/services.c
-+++ b/security/selinux/ss/services.c
-@@ -72,6 +72,7 @@
-
- int selinux_policycap_netpeer;
- int selinux_policycap_openperm;
-+int selinux_policycap_ptrace_child;
-
- static DEFINE_RWLOCK(policy_rwlock);
-
-@@ -1812,6 +1813,8 @@ static void security_load_policycaps(void)
- POLICYDB_CAPABILITY_NETPEER);
- selinux_policycap_openperm = ebitmap_get_bit(&policydb.policycaps,
- POLICYDB_CAPABILITY_OPENPERM);
-+ selinux_policycap_ptrace_child = ebitmap_get_bit(&policydb.policycaps,
-+ POLICYDB_CAPABILITY_PTRACE_CHILD);
- }
-
- static int security_preserve_bools(struct policydb *p);
-
-
-
-
-_______________________________________________
-kernel mailing list
-kernel@lists.fedoraproject.org
-https://admin.fedoraproject.org/mailman/listinfo/kernel
View
15 kernel/files/patches/fedora/taint-vbox.patch
@@ -1,15 +0,0 @@
-diff --git a/kernel/module.c b/kernel/module.c
-index 04379f92..d26c9a3 100644
---- a/kernel/module.c
-+++ b/kernel/module.c
-@@ -2653,6 +2653,10 @@ static int check_module_license_and_versions(struct module *mod)
- if (strcmp(mod->name, "ndiswrapper") == 0)
- add_taint(TAINT_PROPRIETARY_MODULE);
-
-+ /* vbox is garbage. */
-+ if (strcmp(mod->name, "vboxdrv") == 0)
-+ add_taint(TAINT_CRAP);
-+
- /* driverloader was caught wrongly pretending to be under GPL */
- if (strcmp(mod->name, "driverloader") == 0)
- add_taint_module(mod, TAINT_PROPRIETARY_MODULE);
View
245 kernel/files/patches/fedora/unhandled-irqs-switch-to-polling.patch
@@ -1,245 +0,0 @@
-From f9b32cd97783f2be14386f1347439e86109050b9 Mon Sep 17 00:00:00 2001
-From: Jeroen Van den Keybus <jeroen.vandenkeybus@gmail.com>
-Date: Mon, 30 Jan 2012 22:37:28 +0100
-Subject: [PATCH] Unhandled IRQs on AMD E-450: temporarily switch to
- low-performance polling IRQ mode
-
-It seems that some motherboard designs using the ASM1083 PCI/PCIe
-bridge (PCI device ID 1b21:1080, Rev. 01) suffer from stuck IRQ lines
-on the PCI bus (causing the kernel to emit 'IRQxx: nobody cared' and
-disable the IRQ). The following patch is an attempt to mitigate the
-serious impact of permanently disabling an IRQ in that case and
-actually make PCI devices better usable on this platform.
-
-It seems that the bridge fails to issue a IRQ deassertion message on
-the PCIe bus, when the relevant driver causes the interrupting PCI
-device to deassert its IRQ line. To solve this issue, it was tried to
-re-issue an IRQ on a PCI device being able to do so (e1000 in this
-case), but we suspect that the attempt to re-assert/deassert may have
-occurred too soon after the initial IRQ for the ASM1083. Anyway, it
-didn't work but if, after some delay, a new IRQ occurred, the related
-IRQ deassertion message eventually did clear the IOAPIC IRQ. It would
-be useful to re-enable the IRQ here.
-
-Therefore the patch below to poll_spurious_irqs() in spurious.c is
-proposed, It does the following:
-
-1. lets the kernel decide that an IRQ is unhandled after only 10
-positives (instead of 100,000);
-2. briefly (a few seconds or so, currently 1 s) switches to polling
-IRQ at a higher rate than usual (100..1,000Hz instead of 10Hz,
-currently 100Hz), but not too high to avoid excessive CPU load. Any
-device drivers 'see' their interrupts handled with a higher latency
-than usual, but they will still operate properly;
-3. afterwards, simply reenable the IRQ.
-
-If proper operation of the PCIe legacy IRQ line emulation is restored
-after 3, the system operates again at normal performance. If the IRQ
-is still stuck after this procedure, the sequence repeats.
-
-If a genuinely stuck IRQ is used with this solution, the system would
-simply sustain short bursts of 10 unhandled IRQs per second, and use
-polling mode indefinitely at a moderate 100Hz rate. It seemed a good
-alternative to the default irqpoll behaviour to me, which is why I
-left it in poll_spurious_irqs() (instead of creating a new kernel
-option). Additionally, if any device happens to share an IRQ with a
-faulty one, that device is no longer banned forever.
-
-Debugging output is still present and may be removed. Bad IRQ
-reporting is also commented out now.
-
-I have now tried it for about 2 months and I can conclude the following:
-
-1. The patch works and, judging from my Firewire card interrupt on
-IRQ16, which repeats every 64 secs, I can confirm that the IRQ usually
-gets reset when a new IRQ arrives (polling mode runs for 64 seconds
-every time).
-2. When testing a SiL-3114 SATA PCI card behind the ASM1083, I could
-keep this running at fairly high speeds (50..70MB/s) for an hour or
-so, but eventually the SiL driver crashed. In such conditions the PCI
-system had to deal with a few hundred IRQs per second / polling mode
-kicking in every 5..10 seconds).
-
-I would like to thank Clemens Ladisch for his invaluable help in
-finding a solution (and providing a patch to avoid my SATA going down
-every time during debugging).
-
-Signed-off-by: Jeroen Van den Keybus <jeroen.vandenkeybus@gmail.com>
-
-Make it less chatty. Only kick it in if we detect an ASM1083 PCI bridge.
-Fix logic error due to lack of braces
-
-Josh Boyer <jwboyer@redhat.com>
-======
----
- drivers/pci/quirks.c | 16 +++++++++++
- kernel/irq/spurious.c | 73 +++++++++++++++++++++++++++++++++++++++---------
- 2 files changed, 75 insertions(+), 14 deletions(-)
-
-diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
-index 78fda9c..6ba5dbf 100644
---- a/drivers/pci/quirks.c
-+++ b/drivers/pci/quirks.c
-@@ -1677,6 +1677,22 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x2609, quirk_intel_pcie_pm);
- DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x260a, quirk_intel_pcie_pm);
- DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_INTEL, 0x260b, quirk_intel_pcie_pm);
-
-+/* ASM108x transparent PCI bridges apparently have broken IRQ deassert
-+ * handling. This causes interrupts to get "stuck" and eventually disabled.
-+ * However, the interrupts are often shared and disabling them is fairly bad.
-+ * It's been somewhat successful to switch to polling mode and retry after
-+ * a bit, so let's do that.
-+ */
-+extern int irq_poll_and_retry;
-+static void quirk_asm108x_poll_interrupts(struct pci_dev *dev)
-+{
-+ dev_info(&dev->dev, "Buggy bridge found [%04x:%04x]\n",
-+ dev->vendor, dev->device);
-+ dev_info(&dev->dev, "Stuck interrupts will be polled and retried\n");
-+ irq_poll_and_retry = 1;
-+}
-+DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_ASMEDIA, 0x1080, quirk_asm108x_poll_interrupts);
-+
- #ifdef CONFIG_X86_IO_APIC
- /*
- * Boot interrupts on some chipsets cannot be turned off. For these chipsets,
-diff --git a/kernel/irq/spurious.c b/kernel/irq/spurious.c
-index 611cd60..f722eb6 100644
---- a/kernel/irq/spurious.c
-+++ b/kernel/irq/spurious.c
-@@ -18,6 +18,8 @@
-
- static int irqfixup __read_mostly;
-
-+int irq_poll_and_retry = 0;
-+
- #define POLL_SPURIOUS_IRQ_INTERVAL (HZ/10)
- static void poll_spurious_irqs(unsigned long dummy);
- static DEFINE_TIMER(poll_spurious_irq_timer, poll_spurious_irqs, 0, 0);
-@@ -141,12 +143,13 @@ out:
- static void poll_spurious_irqs(unsigned long dummy)
- {
- struct irq_desc *desc;
-- int i;
-+ int i, poll_again;
-
- if (atomic_inc_return(&irq_poll_active) != 1)
- goto out;
- irq_poll_cpu = smp_processor_id();
-
-+ poll_again = 0; /* Will stay false as long as no polling candidate is found */
- for_each_irq_desc(i, desc) {
- unsigned int state;
-
-@@ -159,14 +162,33 @@ static void poll_spurious_irqs(unsigned long dummy)
- if (!(state & IRQS_SPURIOUS_DISABLED))
- continue;
-
-- local_irq_disable();
-- try_one_irq(i, desc, true);
-- local_irq_enable();
-+ /* We end up here with a disabled spurious interrupt.
-+ desc->irqs_unhandled now tracks the number of times
-+ the interrupt has been polled */
-+ if (irq_poll_and_retry) {
-+ if (desc->irqs_unhandled < 100) { /* 1 second delay with poll frequency 100 Hz */
-+ local_irq_disable();
-+ try_one_irq(i, desc, true);
-+ local_irq_enable();
-+ desc->irqs_unhandled++;
-+ poll_again = 1;
-+ } else {
-+ irq_enable(desc); /* Reenable the interrupt line */
-+ desc->depth--;
-+ desc->istate &= (~IRQS_SPURIOUS_DISABLED);
-+ desc->irqs_unhandled = 0;
-+ }
-+ } else {
-+ local_irq_disable();
-+ try_one_irq(i, desc, true);
-+ local_irq_enable();
-+ }
- }
-+ if (poll_again)
-+ mod_timer(&poll_spurious_irq_timer,
-+ jiffies + POLL_SPURIOUS_IRQ_INTERVAL);
- out:
- atomic_dec(&irq_poll_active);
-- mod_timer(&poll_spurious_irq_timer,
-- jiffies + POLL_SPURIOUS_IRQ_INTERVAL);
- }
-
- static inline int bad_action_ret(irqreturn_t action_ret)
-@@ -177,11 +199,19 @@ static inline int bad_action_ret(irqreturn_t action_ret)
- }
-
- /*
-- * If 99,900 of the previous 100,000 interrupts have not been handled
-+ * If 9 of the previous 10 interrupts have not been handled
- * then assume that the IRQ is stuck in some manner. Drop a diagnostic
- * and try to turn the IRQ off.
- *
-- * (The other 100-of-100,000 interrupts may have been a correctly
-+ * Although this may cause early deactivation of a sporadically
-+ * malfunctioning IRQ line, the poll system will:
-+ * a) Poll it for 100 cycles at a 100 Hz rate
-+ * b) Reenable it afterwards
-+ *
-+ * In worst case, with current settings, this will cause short bursts
-+ * of 10 interrupts every second.
-+ *
-+ * (The other single interrupt may have been a correctly
- * functioning device sharing an IRQ with the failing one)
- */
- static void
-@@ -269,6 +299,8 @@ try_misrouted_irq(unsigned int irq, struct irq_desc *desc,
- void note_interrupt(unsigned int irq, struct irq_desc *desc,
- irqreturn_t action_ret)
- {
-+ int unhandled_thresh = 999000;
-+
- if (desc->istate & IRQS_POLL_INPROGRESS)
- return;
-
-@@ -302,19 +334,32 @@ void note_interrupt(unsigned int irq, struct irq_desc *desc,
- }
-
- desc->irq_count++;
-- if (likely(desc->irq_count < 100000))
-- return;
-+ if (!irq_poll_and_retry) {
-+ if (likely(desc->irq_count < 100000))
-+ return;
-+ } else {
-+ if (likely(desc->irq_count < 10))
-+ return;
-+ }
-
- desc->irq_count = 0;
-- if (unlikely(desc->irqs_unhandled > 99900)) {
-+ if (irq_poll_and_retry)
-+ unhandled_thresh = 9;
-+
-+ if (unlikely(desc->irqs_unhandled >= unhandled_thresh)) {
- /*
-- * The interrupt is stuck
-+ * The interrupt might be stuck
- */
-- __report_bad_irq(irq, desc, action_ret);
-+ if (!irq_poll_and_retry) {
-+ __report_bad_irq(irq, desc, action_ret);
-+ printk(KERN_EMERG "Disabling IRQ %d\n", irq);
-+ } else {
-+ printk(KERN_INFO "IRQ %d might be stuck. Polling\n",
-+ irq);
-+ }
- /*
- * Now kill the IRQ
- */
-- printk(KERN_EMERG "Disabling IRQ #%d\n", irq);
- desc->istate |= IRQS_SPURIOUS_DISABLED;
- desc->depth++;
- irq_disable(desc);
---
-1.7.7.6
-
View
19 kernel/files/patches/fedora/weird-root-dentry-name-debug.patch
@@ -1,19 +0,0 @@
-debug patch for bz 787171/766277
-
-diff --git a/fs/dcache.c b/fs/dcache.c
-index bcbdb33..a6a5fdb 100644
---- a/fs/dcache.c
-+++ b/fs/dcache.c
-@@ -2530,8 +2530,10 @@ global_root:
- */
- if (IS_ROOT(dentry) &&
- (dentry->d_name.len != 1 || dentry->d_name.name[0] != '/')) {
-- WARN(1, "Root dentry has weird name <%.*s>\n",
-- (int) dentry->d_name.len, dentry->d_name.name);
-+ WARN(1, "Root dentry has weird name <%.*s> vfsmnt:%s fs:%s\n",
-+ (int) dentry->d_name.len, dentry->d_name.name,
-+ vfsmnt->mnt_root->d_name.name,
-+ vfsmnt->mnt_sb->s_type->name);
- }
- if (!slash)
- error = prepend(buffer, buflen, "/", 1);
View
181 kernel/files/patches/mageia/3rd-3rdparty-1.0-tree.patch
@@ -1,181 +0,0 @@
-
- 3rdparty/mkbuild.pl | 92 +++++++++++++++++++++++++++++++++++++++++++++
- Documentation/3rdparty.txt | 76 +++++++++++++++++++++++++++++++++++++
- 2 files changed, 168 insertions(+)
-
-diff -Nurp linux-2.6.37/3rdparty/mkbuild.pl linux-2.6.37.3rdparty/3rdparty/mkbuild.pl
---- linux-2.6.37/3rdparty/mkbuild.pl 1970-01-01 02:00:00.000000000 +0200
-+++ linux-2.6.37.3rdparty/3rdparty/mkbuild.pl 2004-04-23 14:59:03.000000000 +0300
-@@ -0,0 +1,92 @@
-+#!/usr/bin/perl -w
-+#
-+# Version 1.0
-+#
-+# Copyright 2001 Jeff Garzik <jgarzik@mandrakesoft.com>
-+# Copyright 2002 Juan Quintela <quintela@mandrakesoft.com>
-+# Copyright 2003 Nicolas Planel <nplanel@mandrakesoft.com>
-+#
-+# This software may be used and distributed according to the terms
-+# of the GNU General Public License, incorporated herein by reference.
-+#
-+#
-+# Run "mkbuild.pl"
-+#
-+# This program generates the following files
-+# Makefile
-+# Makefile.drivers
-+# Config.in
-+# using the information in the subdirs of this directory.
-+#
-+# subdirs need to have:
-+# a Config.in file
-+# a Makefile with a O_TARGET/L_TARGET targets
-+# The config.in should set a CONFIG_<module_dir_name> to m/y.
-+
-+use strict;
-+
-+opendir(THISDIR, ".");
-+# get dirs without . and .. garbage
-+my (@modules) = grep(!/\.\.?$/,grep(-d, readdir(THISDIR)));
-+closedir(THISDIR);
-+
-+generate_kconfig(@modules);
-+generate_makefile(@modules);
-+exit(0);
-+
-+##########################################################################
-+
-+sub generate_makefile {
-+ my (@modules) = @_;
-+
-+ local *F;
-+ open F, "> Makefile" or die "Cannot create new Makefile: $!\n";
-+ print F <<'EOM';
-+#
-+# THIS IS AN AUTOMATICALLY GENERATED FILE. DO NOT EDIT.
-+#
-+
-+EOM
-+ printf F "obj- := 3rdparty.o # Dummy rule to force built-in.o to be made\n";
-+ printf F "obj-\$(%s) += %s\n", to_CONFIG($_), $_ . '/' foreach @modules;
-+}
-+
-+sub generate_kconfig {
-+ my (@modules) = @_;
-+
-+ local *F;
-+ open F, "> Kconfig" or die "Cannot create Kconfig: $!\n";
-+ print F <<"EOM";
-+#
-+# THIS IS AN AUTOMATICALLY GENERATED FILE. DO NOT EDIT.
-+#
-+
-+menu "Unofficial 3rd party kernel additions"
-+
-+EOM
-+
-+ foreach (@modules) {
-+ die "No Kconfig in $_.\n" if ! -r "$_/Kconfig";
-+ print F "source 3rdparty/$_/Kconfig\n";
-+ }
-+ print F "\n\nendmenu\n";
-+}
-+
-+sub to_CONFIG {
-+ local $_ = $_[0];
-+ tr/a-z/A-Z/;
-+ s/[\-\. ]/_/g;
-+ "CONFIG_$_";
-+}
-+
-+sub find_target {
-+ my ($module_dir) = @_;
-+
-+ local *F;
-+ open(F, "$module_dir/Makefile") or die "$module_dir/Makefile: $!\n";
-+ while (<F>) {
-+ chomp;
-+ return $1 if (/[LO]_TARGET.*:=\s+(\S+)/);
-+ }
-+}
-+
-diff -Nurp linux-2.6.37/Documentation/3rdparty.txt linux-2.6.37.3rdparty/Documentation/3rdparty.txt
---- linux-2.6.37/Documentation/3rdparty.txt 1970-01-01 02:00:00.000000000 +0200
-+++ linux-2.6.37.3rdparty/Documentation/3rdparty.txt 2003-11-22 01:07:26.000000000 +0200
-@@ -0,0 +1,76 @@
-+
-+Third-Party Kernel Source Module Support, or
-+an easy way to add modules to your kernel build.
-+
-+
-+
-+Vendors quite often add additional drivers and features to the kernel
-+which require nothing more than modifying Kconfig, Makefile, and
-+adding one or more files to a sub-directory. As a single discrete task,
-+this is not a problem. However, using patches to add modules to the
-+kernel very often results in patch conflicts, resulting in needless time
-+wastage as developers regenerate an otherwise working kernel patch.
-+
-+This is designed as a solution to these problems. It is NOT designed as
-+a replacement for the kernel build system, but merely as a tool for
-+vendors and system administrators to ease the pain of patch management.
-+
-+The key feature of this system is the distinct lack of patches. Drivers
-+are installed via unpacking a tarball.
-+
-+
-+
-+Adding a directory to the build (usually from a tarball)
-+--------------------------------------------------------
-+If a directory exists inside the 3rdparty sub-directory that contains a
-+proper Makefile, it can be added to the build. It also needs a
-+Kconfig file.
-+
-+ cd /usr/src/linux-2.4.3/3rdparty
-+ bzcat /tmp/my-driver2.tar.bz2 | tar xf - # creates "my2" dir
-+
-+
-+Limitations
-+-----------
-+There are some limitations to this system. This system is only
-+designed to support a very common case. If you find yourself running
-+into limitations (kernel build experts can spot them right off),
-+then you should probably be patching the kernel instead of using
-+mkbuild.pl for that particular module.
-+
-+FIXME: actually list the limitations
-+
-+
-+
-+Other notes
-+-----------
-+Link order is controlled by the order of mkbuild.pl executions.
-+
-+"make mrproper" will erase Makefile.meta, and empty Kconfig, Makefile,
-+and Makefile.drivers.
-+
-+IMPORTANT NOTE: Because this feature modifies the kernel's makefiles and
-+configuration system, you MUST complete all mkbuild.pl runs before
-+running any "make" command.
-+
-+Building in the 3rdparty dir
-+----------------------------
-+
-+If you use modules that:
-+ - are contained in one subdir with the name of the module
-+ - has a Makefile
-+ - has a Kconfig file
-+
-+The system calls the ./mkbuild.pl script. It will search for
-+subdirectories, and will try to build each of them as a module.
-+Things to note:
-+
-+ The dependencies will be done in a module called:
-+
-+ 3rdparty/<module_dir_name>/<module_name>
-+
-+depending of CONFIG_<module_name_in_uppercase>.
-+
-+<module_name> is the value of O_TARGET/L_TARGET.
-+
-+
View
164 kernel/files/patches/mageia/3rd-3rdparty-merge.patch
@@ -1,164 +0,0 @@
-Include 3rdparty directory into the main build-system.
-
-Original author is unknown.
-(Was either Juan Quintela or Jeff Garzik)
-
-Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
-Signed-off-by: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
----
- Makefile | 2 +-
- arch/alpha/Kconfig | 1 +
- arch/ia64/Kconfig | 2 ++
- arch/mips/Kconfig | 2 ++
- arch/powerpc/Kconfig | 2 ++
- arch/sparc/Kconfig | 2 ++
- arch/x86/Kconfig | 2 ++
- scripts/kconfig/Makefile | 31 +++++++++++++++++--------------
- 8 files changed, 29 insertions(+), 15 deletions(-)
-
-diff -Nurp linux-3.1-rc9/arch/alpha/Kconfig linux-3.1-rc9-3rd/arch/alpha/Kconfig
---- linux-3.1-rc9/arch/alpha/Kconfig 2011-10-05 19:52:41.318669657 +0300
-+++ linux-3.1-rc9-3rd/arch/alpha/Kconfig 2011-10-05 20:54:02.210746844 +0300
-@@ -676,3 +676,4 @@ source "crypto/Kconfig"
-
- source "lib/Kconfig"
-
-+source "3rdparty/Kconfig"
-diff -Nurp linux-3.1-rc9/arch/ia64/Kconfig linux-3.1-rc9-3rd/arch/ia64/Kconfig
---- linux-3.1-rc9/arch/ia64/Kconfig 2011-10-05 19:52:41.617671407 +0300
-+++ linux-3.1-rc9-3rd/arch/ia64/Kconfig 2011-10-05 20:56:11.469682272 +0300
-@@ -667,3 +667,5 @@ source "lib/Kconfig"
-
- config IOMMU_HELPER
- def_bool (IA64_HP_ZX1 || IA64_HP_ZX1_SWIOTLB || IA64_GENERIC || SWIOTLB)
-+
-+source "3rdparty/Kconfig"
-diff -Nurp linux-3.1-rc9/arch/mips/Kconfig linux-3.1-rc9-3rd/arch/mips/Kconfig
---- linux-3.1-rc9/arch/mips/Kconfig 2011-10-05 19:52:41.639671536 +0300
-+++ linux-3.1-rc9-3rd/arch/mips/Kconfig 2011-10-05 20:54:02.210746844 +0300
-@@ -2494,3 +2494,5 @@ source "security/Kconfig"
- source "crypto/Kconfig"
-
- source "lib/Kconfig"
-+
-+source "3rdparty/Kconfig"
-diff -Nurp linux-3.1-rc9/arch/powerpc/Kconfig linux-3.1-rc9-3rd/arch/powerpc/Kconfig
---- linux-3.1-rc9/arch/powerpc/Kconfig 2011-10-05 19:52:41.674671739 +0300
-+++ linux-3.1-rc9-3rd/arch/powerpc/Kconfig 2011-10-05 20:54:02.211746759 +0300
-@@ -999,3 +999,5 @@ config PPC_LIB_RHEAP
- bool
-
- source "arch/powerpc/kvm/Kconfig"
-+
-+source "3rdparty/Kconfig"
-diff -Nurp linux-3.1-rc9/arch/sparc/Kconfig linux-3.1-rc9-3rd/arch/sparc/Kconfig
---- linux-3.1-rc9/arch/sparc/Kconfig 2011-10-05 19:52:41.766672278 +0300
-+++ linux-3.1-rc9-3rd/arch/sparc/Kconfig 2011-10-05 20:54:02.211746759 +0300
-@@ -605,3 +605,5 @@ source "security/Kconfig"
- source "crypto/Kconfig"
-
- source "lib/Kconfig"
-+
-+source "3rdparty/Kconfig"
-diff -Nurp linux-3.1-rc9/arch/x86/Kconfig linux-3.1-rc9-3rd/arch/x86/Kconfig
---- linux-3.1-rc9/arch/x86/Kconfig 2011-10-05 19:52:41.800672479 +0300
-+++ linux-3.1-rc9-3rd/arch/x86/Kconfig 2011-10-05 20:54:02.211746759 +0300
-@@ -2151,3 +2151,5 @@ source "crypto/Kconfig"
- source "arch/x86/kvm/Kconfig"
-
- source "lib/Kconfig"
-+
-+source "3rdparty/Kconfig"
-diff -Nurp linux-3.1-rc9/Makefile linux-3.1-rc9-3rd/Makefile
---- linux-3.1-rc9/Makefile 2011-10-05 19:52:41.318669657 +0300
-+++ linux-3.1-rc9-3rd/Makefile 2011-10-05 20:54:02.211746759 +0300
-@@ -507,7 +507,7 @@ scripts: scripts_basic include/config/au
-
- # Objects we will link into vmlinux / subdirs we need to visit
- init-y := init/
--drivers-y := drivers/ sound/ firmware/
-+drivers-y := drivers/ sound/ firmware/ 3rdparty/
- net-y := net/
- libs-y := lib/
- core-y := usr/
---- linux/scripts/kconfig/Makefile.3rd-3rdparty-merge.orig 2011-12-24 13:13:38.396402649 +0200
-+++ linux/scripts/kconfig/Makefile 2011-12-24 22:01:23.383239314 +0200
-@@ -11,29 +11,29 @@ else
- Kconfig := Kconfig
- endif
-
--xconfig: $(obj)/qconf
-+xconfig: $(obj)/qconf 3rdparty/Makefile
- $< $(Kconfig)
-
--gconfig: $(obj)/gconf
-+gconfig: $(obj)/gconf 3rdparty/Makefile
- $< $(Kconfig)
-
--menuconfig: $(obj)/mconf
-+menuconfig: $(obj)/mconf 3rdparty/Makefile
- $< $(Kconfig)
-
--config: $(obj)/conf
-+config: $(obj)/conf 3rdparty/Makefile
- $< --oldaskconfig $(Kconfig)
-
--nconfig: $(obj)/nconf
-+nconfig: $(obj)/nconf 3rdparty/Makefile
- $< $(Kconfig)
-
--oldconfig: $(obj)/conf
-+oldconfig: $(obj)/conf 3rdparty/Makefile
- $< --$@ $(Kconfig)
-
--silentoldconfig: $(obj)/conf
-+silentoldconfig: $(obj)/conf 3rdparty/Makefile