[kernel] r22390 - in dists/sid/linux/debian: . patches patches/bugfix/x86

Ben Hutchings benh at moszumanska.debian.org
Mon Feb 16 03:35:18 UTC 2015


Author: benh
Date: Mon Feb 16 03:35:17 2015
New Revision: 22390

Log:
[x86] HPET force enable for e6xx based systems (Closes: #772951)

Added:
   dists/sid/linux/debian/patches/bugfix/x86/x86-hpet-force-enable-for-e6xx-based-systems.patch
Modified:
   dists/sid/linux/debian/changelog
   dists/sid/linux/debian/patches/series

Modified: dists/sid/linux/debian/changelog
==============================================================================
--- dists/sid/linux/debian/changelog	Fri Feb 13 02:17:56 2015	(r22389)
+++ dists/sid/linux/debian/changelog	Mon Feb 16 03:35:17 2015	(r22390)
@@ -5,6 +5,7 @@
 
   [ Ben Hutchings ]
   * shm: add memfd.h to UAPI export list, so kdbus will build
+  * [x86] HPET force enable for e6xx based systems (Closes: #772951)
 
  -- Ian Campbell <ijc at debian.org>  Mon, 09 Feb 2015 06:17:31 +0000
 

Added: dists/sid/linux/debian/patches/bugfix/x86/x86-hpet-force-enable-for-e6xx-based-systems.patch
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ dists/sid/linux/debian/patches/bugfix/x86/x86-hpet-force-enable-for-e6xx-based-systems.patch	Mon Feb 16 03:35:17 2015	(r22390)
@@ -0,0 +1,63 @@
+From: Peter Neubauer <pneubauer at bluerwhite.org>
+Date: Fri, 12 Sep 2014 13:06:13 +0200
+Subject: x86: HPET force enable for e6xx based systems
+Origin: https://git.kernel.org/linus/2e151c70dfb0075ff83bec305c52a9da1ba49089
+
+As the Soekris net6501 and other e6xx based systems do not have
+any ACPI implementation, HPET won't get enabled.
+This patch enables HPET on such platforms.
+
+[    0.430149] pci 0000:00:01.0: Force enabled HPET at 0xfed00000
+[    0.644838] HPET: 3 timers in total, 0 timers will be used for per-cpu timer
+
+Original patch by Peter Neubauer (http://www.mail-archive.com/soekris-tech@lists.soekris.com/msg06462.html)
+slightly modified by Conrad Kostecki <ck at conrad-kostecki.de> and massaged
+accoring to Thomas Gleixners <tglx at linutronix.de> by me.
+
+Suggested-by: Conrad Kostecki <ck at conrad-kostecki.de>
+Signed-off-by: Eric Sesterhenn <eric.sesterhenn at lsexperts.de>
+Cc: Peter Neubauer <pneubauer at bluerwhite.org>
+Link: http://lkml.kernel.org/r/5412D3A5.2030909@lsexperts.de
+Signed-off-by: Thomas Gleixner <tglx at linutronix.de>
+---
+ arch/x86/kernel/quirks.c | 18 ++++++++++++++++++
+ include/linux/pci_ids.h  |  1 +
+ 2 files changed, 19 insertions(+)
+
+--- a/arch/x86/kernel/quirks.c
++++ b/arch/x86/kernel/quirks.c
+@@ -498,6 +498,24 @@ void force_hpet_resume(void)
+ }
+ 
+ /*
++ * According to the datasheet e6xx systems have the HPET hardwired to
++ * 0xfed00000
++ */
++static void e6xx_force_enable_hpet(struct pci_dev *dev)
++{
++	if (hpet_address || force_hpet_address)
++		return;
++
++	force_hpet_address = 0xFED00000;
++	force_hpet_resume_type = NONE_FORCE_HPET_RESUME;
++	dev_printk(KERN_DEBUG, &dev->dev, "Force enabled HPET at "
++		"0x%lx\n", force_hpet_address);
++	return;
++}
++DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_E6XX_CU,
++			 e6xx_force_enable_hpet);
++
++/*
+  * HPET MSI on some boards (ATI SB700/SB800) has side effect on
+  * floppy DMA. Disable HPET MSI on such platforms.
+  * See erratum #27 (Misinterpreted MSI Requests May Result in
+--- a/include/linux/pci_ids.h
++++ b/include/linux/pci_ids.h
+@@ -2859,6 +2859,7 @@
+ #define PCI_DEVICE_ID_INTEL_82372FB_1	0x7601
+ #define PCI_DEVICE_ID_INTEL_SCH_LPC	0x8119
+ #define PCI_DEVICE_ID_INTEL_SCH_IDE	0x811a
++#define PCI_DEVICE_ID_INTEL_E6XX_CU	0x8183
+ #define PCI_DEVICE_ID_INTEL_ITC_LPC	0x8186
+ #define PCI_DEVICE_ID_INTEL_82454GX	0x84c4
+ #define PCI_DEVICE_ID_INTEL_82450GX	0x84c5

Modified: dists/sid/linux/debian/patches/series
==============================================================================
--- dists/sid/linux/debian/patches/series	Fri Feb 13 02:17:56 2015	(r22389)
+++ dists/sid/linux/debian/patches/series	Mon Feb 16 03:35:17 2015	(r22390)
@@ -502,3 +502,4 @@
 bugfix/x86/x86-tls-interpret-an-all-zero-struct-user_desc-as-no.patch
 bugfix/all/net-sctp-fix-slab-corruption-from-use-after-free-on-.patch
 features/all/kdbus/shm-add-memfd.h-to-uapi-export-list.patch
+bugfix/x86/x86-hpet-force-enable-for-e6xx-based-systems.patch



More information about the Kernel-svn-changes mailing list