rpms/kernel/F-13 patch-2.6.33.4.bz2.sign, NONE, 1.1 .cvsignore, 1.1176, 1.1177 kernel.spec, 1.2028, 1.2029 linux-2.6-p54pci.patch, 1.1, 1.2 linux-2.6-upstream-reverts.patch, 1.9, 1.10 sources, 1.1135, 1.1136 upstream, 1.1048, 1.1049 vhost_net-rollup.patch, 1.1, 1.2 ath9k-reorder-ieee80211_free_hw-behind-ath9k_uninit_.patch, 1.1, NONE hugetlb-fix-infinite-loop-in-get-futex-key.patch, 1.1, NONE libata-fix-accesses-at-LBA28-boundary.patch, 1.1, NONE linux-2.6-creds_are_invalid-race.patch, 1.1, NONE linux-2.6-pci-fixup-resume.patch, 1.1, NONE linux-2.6-tun-orphan_an_skb_on_tx.patch, 1.1, NONE patch-2.6.33.3.bz2.sign, 1.1, NONE reiserfs-fix-permissions-on-reiserfs-priv.patch, 1.1, NONE
Chuck Ebbert
cebbert at fedoraproject.org
Wed May 12 23:39:22 UTC 2010
- Previous message: rpms/kernel/F-12 kernel.spec, 1.2078, 1.2079 hugetlb-fix-infinite-loop-in-get-futex-key.patch, 1.2, NONE libata-fix-accesses-at-LBA28-boundary.patch, 1.1, NONE libiscsi-regression-fix-header-digest-errors.patch, 1.1, NONE reiserfs-fix-permissions-on-reiserfs-priv.patch, 1.1, NONE
- Next message: File patch-2.6.34-rc7-git3.bz2 uploaded to lookaside cache by cebbert
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: cebbert
Update of /cvs/pkgs/rpms/kernel/F-13
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv2544
Modified Files:
.cvsignore kernel.spec linux-2.6-p54pci.patch
linux-2.6-upstream-reverts.patch sources upstream
vhost_net-rollup.patch
Added Files:
patch-2.6.33.4.bz2.sign
Removed Files:
ath9k-reorder-ieee80211_free_hw-behind-ath9k_uninit_.patch
hugetlb-fix-infinite-loop-in-get-futex-key.patch
libata-fix-accesses-at-LBA28-boundary.patch
linux-2.6-creds_are_invalid-race.patch
linux-2.6-pci-fixup-resume.patch
linux-2.6-tun-orphan_an_skb_on_tx.patch
patch-2.6.33.3.bz2.sign
reiserfs-fix-permissions-on-reiserfs-priv.patch
Log Message:
Linux 2.6.33.4
Drop patches merged upstream:
linux-2.6-pci-fixup-resume.patch
linux-2.6-tun-orphan_an_skb_on_tx.patch
libata-fix-accesses-at-LBA28-boundary.patch
linux-2.6-creds_are_invalid-race.patch
hugetlb-fix-infinite-loop-in-get-futex-key.patch
reiserfs-fix-permissions-on-reiserfs-priv.patch
ath9k-reorder-ieee80211_free_hw-behind-ath9k_uninit_.patch
Revert -stable DRM patches we already have:
drm-i915-add-initial-bits-for-vga-modesetting-bringup-on-sandybridge.patch
drm-i915-fix-tiling-limits-for-i915-class-hw-v2.patch
Fix up patches to apply on top of 2.6.33.4:
linux-2.6-p54pci.patch
vhost_net-rollup.patch
--- NEW FILE patch-2.6.33.4.bz2.sign ---
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: See http://www.kernel.org/signature.html for info
iD8DBQBL6yroyGugalF9Dw4RApvgAJ9lkyO10BA3sDsgJ/0cXtgV/EwLygCeJps4
DWzA6JDr6KUcjVgvwvgFZhI=
=iGHg
-----END PGP SIGNATURE-----
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-13/.cvsignore,v
retrieving revision 1.1176
retrieving revision 1.1177
diff -u -p -r1.1176 -r1.1177
--- .cvsignore 28 Apr 2010 03:43:12 -0000 1.1176
+++ .cvsignore 12 May 2010 23:39:18 -0000 1.1177
@@ -5,4 +5,4 @@ kernel-2.6.*.config
temp-*
kernel-2.6.33
linux-2.6.33.tar.bz2
-patch-2.6.33.3.bz2
+patch-2.6.33.4.bz2
Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-13/kernel.spec,v
retrieving revision 1.2028
retrieving revision 1.2029
diff -u -p -r1.2028 -r1.2029
--- kernel.spec 12 May 2010 00:31:53 -0000 1.2028
+++ kernel.spec 12 May 2010 23:39:20 -0000 1.2029
@@ -61,7 +61,7 @@ Summary: The Linux kernel
%if 0%{?released_kernel}
# Do we have a -stable update to apply?
-%define stable_update 3
+%define stable_update 4
# Is it a -stable RC?
%define stable_rc 0
# Set rpm version accordingly
@@ -688,7 +688,6 @@ Patch580: linux-2.6-sparc-selinux-mprote
Patch581: linux-2.6-selinux-avtab-size.patch
Patch600: linux-2.6-acpi-sleep-live-sci-live.patch
-Patch601: linux-2.6-pci-fixup-resume.patch
Patch610: hda_intel-prealloc-4mb-dmabuffer.patch
@@ -717,7 +716,6 @@ Patch1555: virt_console-fix-race.patch
Patch1556: virt_console-fix-fix-race.patch
Patch1557: virt_console-rollup2.patch
Patch1558: vhost_net-rollup2.patch
-Patch1559: linux-2.6-tun-orphan_an_skb_on_tx.patch
# fbdev x86-64 primary fix
Patch1700: linux-2.6-x86-64-fbdev-primary.patch
@@ -807,8 +805,6 @@ Patch12103: linux-2.6-p54pci.patch
Patch12200: acpi-ec-add-delay-before-write.patch
-Patch12300: libata-fix-accesses-at-LBA28-boundary.patch
-
# patches from Intel to address intermittent firmware failures with iwlagn
Patch12401: iwlwifi_-check-for-aggregation-frame-and-queue.patch
Patch12403: iwlwifi_-clear-all-the-stop_queue-flag-after-load-firmware.patch
@@ -825,23 +821,12 @@ Patch12414: iwlwifi_-Recover-TX-flow-fai
Patch12415: iwlwifi_-code-cleanup-for-connectivity-recovery.patch
Patch12416: iwlwifi_-iwl_good_ack_health-only-apply-to-AGN-device.patch
-# should be upstream soon
-Patch12500: linux-2.6-creds_are_invalid-race.patch
-
-# RHBZ#552257
-Patch12600: hugetlb-fix-infinite-loop-in-get-futex-key.patch
-# CVE-2010-1146
-Patch12610: reiserfs-fix-permissions-on-reiserfs-priv.patch
-
# fix possible corruption with ssd
Patch12700: ext4-issue-discard-operation-before-releasing-blocks.patch
# Revert "ath9k: fix lockdep warning when unloading module"
Patch12800: revert-ath9k_-fix-lockdep-warning-when-unloading-module.patch
-# ath9k: reorder ieee80211_free_hw behind ath9k_uninit_hw to avoid oops
-Patch12810: ath9k-reorder-ieee80211_free_hw-behind-ath9k_uninit_.patch
-
Patch12820: ibmvscsi-fix-DMA-API-misuse.patch
Patch12830: disable-i8042-check-on-apple-mac.patch
@@ -1364,7 +1349,6 @@ ApplyPatch linux-2.6-defaults-aspm.patch
# ACPI
ApplyPatch linux-2.6-acpi-sleep-live-sci-live.patch
-ApplyPatch linux-2.6-pci-fixup-resume.patch
# ALSA
ApplyPatch hda_intel-prealloc-4mb-dmabuffer.patch
@@ -1445,7 +1429,6 @@ ApplyPatch virt_console-fix-race.patch
ApplyPatch virt_console-fix-fix-race.patch
ApplyPatch virt_console-rollup2.patch
ApplyPatch vhost_net-rollup2.patch
-ApplyPatch linux-2.6-tun-orphan_an_skb_on_tx.patch
# Fix block I/O errors in KVM
#ApplyPatch linux-2.6-block-silently-error-unsupported-empty-barriers-too.patch
@@ -1512,8 +1495,6 @@ ApplyPatch iwlwifi-reset-card-during-pro
# make p54pci usable on slower hardware
ApplyPatch linux-2.6-p54pci.patch
-ApplyPatch libata-fix-accesses-at-LBA28-boundary.patch
-
# patches from Intel to address intermittent firmware failures with iwlagn
ApplyPatch iwlwifi_-check-for-aggregation-frame-and-queue.patch
ApplyPatch iwlwifi_-clear-all-the-stop_queue-flag-after-load-firmware.patch
@@ -1530,23 +1511,12 @@ ApplyPatch iwlwifi_-Recover-TX-flow-fail
ApplyPatch iwlwifi_-code-cleanup-for-connectivity-recovery.patch
ApplyPatch iwlwifi_-iwl_good_ack_health-only-apply-to-AGN-device.patch
-# RHBZ#583843
-ApplyPatch linux-2.6-creds_are_invalid-race.patch
-
-# RHBZ#552257
-ApplyPatch hugetlb-fix-infinite-loop-in-get-futex-key.patch
-# CVE-2010-1146
-ApplyPatch reiserfs-fix-permissions-on-reiserfs-priv.patch
-
# fix possible corruption with ssd
ApplyPatch ext4-issue-discard-operation-before-releasing-blocks.patch
# Revert "ath9k: fix lockdep warning when unloading module"
ApplyPatch revert-ath9k_-fix-lockdep-warning-when-unloading-module.patch
-# ath9k: reorder ieee80211_free_hw behind ath9k_uninit_hw to avoid oops
-ApplyPatch ath9k-reorder-ieee80211_free_hw-behind-ath9k_uninit_.patch
-
ApplyPatch ibmvscsi-fix-DMA-API-misuse.patch
ApplyPatch disable-i8042-check-on-apple-mac.patch
@@ -2205,6 +2175,23 @@ fi
# and build.
%changelog
+* Wed May 12 2010 Chuck Ebbert <cebbert at redhat.com> 2.6.33.4-93
+- Linux 2.6.33.4
+- Drop patches merged upstream:
+ linux-2.6-pci-fixup-resume.patch
+ linux-2.6-tun-orphan_an_skb_on_tx.patch
+ libata-fix-accesses-at-LBA28-boundary.patch
+ linux-2.6-creds_are_invalid-race.patch
+ hugetlb-fix-infinite-loop-in-get-futex-key.patch
+ reiserfs-fix-permissions-on-reiserfs-priv.patch
+ ath9k-reorder-ieee80211_free_hw-behind-ath9k_uninit_.patch
+- Revert -stable DRM patches we already have:
+ drm-i915-add-initial-bits-for-vga-modesetting-bringup-on-sandybridge.patch
+ drm-i915-fix-tiling-limits-for-i915-class-hw-v2.patch
+- Fix up patches to apply on top of 2.6.33.4:
+ linux-2.6-p54pci.patch
+ vhost_net-rollup.patch
+
* Wed May 12 2010 Roland McGrath <roland at redhat.com>
- utrace update (#590954)
linux-2.6-p54pci.patch:
b/drivers/net/wireless/p54/p54pci.c | 56 ++++++++++++++-------------
b/drivers/net/wireless/p54/p54pci.h | 6 +-
drivers/net/wireless/p54/p54pci.c | 74 +++++++++++++++++++-----------------
3 files changed, 72 insertions(+), 64 deletions(-)
Index: linux-2.6-p54pci.patch
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-13/linux-2.6-p54pci.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- linux-2.6-p54pci.patch 22 Apr 2010 20:54:26 -0000 1.1
+++ linux-2.6-p54pci.patch 12 May 2010 23:39:21 -0000 1.2
@@ -41,7 +41,7 @@ index 4bf4c21..48cae48 100644
u32 idx, i;
i = (*index) % ring_limit;
- (*index) = idx = le32_to_cpu(ring_control->device_idx[1]);
+ (*index) = idx = le32_to_cpu(ring_control->device_idx[ring_index]);
idx %= ring_limit;
+ spin_lock_irqsave(&priv->lock, flags);
@@ -206,7 +206,7 @@ index 48cae48..bda29c0 100644
struct p54p_ring_control *ring_control = priv->ring_control;
struct p54p_desc *desc;
@@ -249,7 +248,6 @@ static void p54p_check_tx_ring(struct ieee80211_hw *dev, u32 *index,
- (*index) = idx = le32_to_cpu(ring_control->device_idx[1]);
+ (*index) = idx = le32_to_cpu(ring_control->device_idx[ring_index]);
idx %= ring_limit;
- spin_lock_irqsave(&priv->lock, flags);
@@ -273,35 +273,6 @@ index 48cae48..bda29c0 100644
P54P_WRITE(dev_int, cpu_to_le32(ISL38XX_DEV_INT_RESET));
for (i = 0; i < ARRAY_SIZE(priv->rx_buf_data); i++) {
-From: Darren Jenkins <darrenrjenkins at gmail.com>
-Date: Wed, 17 Feb 2010 12:40:15 +0000 (+1100)
-Subject: drivers/net/wireless/p54/txrx.c Fix off by one error
-X-Git-Tag: master-2010-02-19~38
-X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Flinville%2Fwireless-next-2.6.git;a=commitdiff_plain;h=088ea189c4c75cdf211146faa4b341a0f7476be6
-
-drivers/net/wireless/p54/txrx.c Fix off by one error
-
-fix off by one error in the queue size check of p54_tx_qos_accounting_alloc()
-
-Coverity CID: 13314
-
-Signed-off-by: Darren Jenkins <darrenrjenkins at gmail.com>
-Signed-off-by: John W. Linville <linville at tuxdriver.com>
----
-
-diff --git a/drivers/net/wireless/p54/txrx.c b/drivers/net/wireless/p54/txrx.c
-index 0e8f694..6605799 100644
---- a/drivers/net/wireless/p54/txrx.c
-+++ b/drivers/net/wireless/p54/txrx.c
-@@ -186,7 +186,7 @@ static int p54_tx_qos_accounting_alloc(struct p54_common *priv,
- struct p54_tx_queue_stats *queue;
- unsigned long flags;
-
-- if (WARN_ON(p54_queue > P54_QUEUE_NUM))
-+ if (WARN_ON(p54_queue >= P54_QUEUE_NUM))
- return -EINVAL;
-
- queue = &priv->tx_stats[p54_queue];
From: Quintin Pitts <geek4linux at gmail.com>
Date: Fri, 9 Apr 2010 19:37:38 +0000 (+0200)
Subject: p54pci: prevent stuck rx-ring on slow system
@@ -446,43 +417,6 @@ index aa29663..0a516c8 100644
i = idx % ring_limit;
Subject:
-[PATCH 1/2] p54pci: fix bugs in p54p_check_tx_ring
-From:
-Christian Lamparter <chunkeey at googlemail.com>
-Date:
-Thu, 22 Apr 2010 19:52:16 +0200
-To:
-linux-wireless at vger.kernel.org
-CC:
-linville at tuxdriver.com, hdegoede at redhat.com
-
-From: Hans de Goede <hdegoede at redhat.com>
-
-Hans de Goede identified a bug in p54p_check_tx_ring:
-
-there are two ring indices. 1 => tx data and 3 => tx management.
-But the old code had a constant "1" and this resulted in spurious
-dma unmapping failures.
-
-Cc: stable at kernel.org
-Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=583623
-Bug-Identified-by: Hans de Goede <hdegoede at redhat.com>
-Signed-off-by: Christian Lamparter <chunkeey at googlemail.com>
----
-diff --git a/drivers/net/wireless/p54/p54pci.c b/drivers/net/wireless/p54/p54pci.c
-index 679da7e..cffe2f2 100644
---- a/drivers/net/wireless/p54/p54pci.c
-+++ b/drivers/net/wireless/p54/p54pci.c
-@@ -246,7 +246,7 @@ static void p54p_check_tx_ring(struct ieee80211_hw *dev, u32 *index,
- u32 idx, i;
-
- i = (*index) % ring_limit;
-- (*index) = idx = le32_to_cpu(ring_control->device_idx[1]);
-+ (*index) = idx = le32_to_cpu(ring_control->device_idx[ring_index]);
- idx %= ring_limit;
-
- while (i != idx) {
-Subject:
[PATCH 2/2] p54pci: fix regression from prevent stuck rx-ring on slow system
From:
Christian Lamparter <chunkeey at googlemail.com>
linux-2.6-upstream-reverts.patch:
b/drivers/pci/pci.c | 43 +++++++++++--------------
drivers/gpu/drm/drm_crtc_helper.c | 1
drivers/gpu/drm/drm_edid.c | 11 +-----
drivers/gpu/drm/drm_fops.c | 16 +++++----
drivers/gpu/drm/i915/i915_debugfs.c | 2 -
drivers/gpu/drm/i915/i915_dma.c | 16 ++++++---
drivers/gpu/drm/i915/i915_drv.h | 26 ++++++++++++++-
drivers/gpu/drm/i915/i915_gem.c | 8 ++++
drivers/gpu/drm/i915/i915_gem_tiling.c | 24 +++++---------
drivers/gpu/drm/i915/i915_irq.c | 18 +++++-----
drivers/gpu/drm/i915/i915_reg.h | 2 -
drivers/gpu/drm/i915/intel_bios.c | 3 +
drivers/gpu/drm/i915/intel_crt.c | 14 ++++----
drivers/gpu/drm/i915/intel_display.c | 56 ++++++++++++++++-----------------
drivers/gpu/drm/i915/intel_lvds.c | 2 -
drivers/gpu/drm/i915/intel_overlay.c | 2 -
drivers/gpu/drm/radeon/rs600.c | 2 -
drivers/media/video/gspca/mr97310a.c | 6 +++
drivers/usb/serial/qcserial.c | 29 +++++++++++++++++
include/drm/drm_pciids.h | 1
20 files changed, 172 insertions(+), 110 deletions(-)
Index: linux-2.6-upstream-reverts.patch
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-13/linux-2.6-upstream-reverts.patch,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -p -r1.9 -r1.10
--- linux-2.6-upstream-reverts.patch 28 Apr 2010 03:43:13 -0000 1.9
+++ linux-2.6-upstream-reverts.patch 12 May 2010 23:39:21 -0000 1.10
@@ -1,3 +1,700 @@
+From c36a2a6de59e4a141a68b7575de837d3b0bd96b3 Mon Sep 17 00:00:00 2001
+From: Daniel Vetter <daniel.vetter at ffwll.ch>
+Date: Sat, 17 Apr 2010 15:12:03 +0200
+Subject: drm/i915: fix tiling limits for i915 class hw v2
+
+From: Daniel Vetter <daniel.vetter at ffwll.ch>
+
+commit c36a2a6de59e4a141a68b7575de837d3b0bd96b3 upstream.
+
+Current code is definitely crap: Largest pitch allowed spills into
+the TILING_Y bit of the fence registers ... :(
+
+I've rewritten the limits check under the assumption that 3rd gen hw
+has a 3d pitch limit of 8kb (like 2nd gen). This is supported by an
+otherwise totally misleading XXX comment.
+
+This bug mostly resulted in tiling-corrupted pixmaps because the kernel
+allowed too wide buffers to be tiled. Bug brought to the light by the
+xf86-video-intel 2.11 release because that unconditionally enabled
+tiling for pixmaps, relying on the kernel to check things. Tiling for
+the framebuffer was not affected because the ddx does some additional
+checks there ensure the buffer is within hw-limits.
+
+v2: Instead of computing the value that would be written into the
+hw fence registers and then checking the limits simply check whether
+the stride is above the 8kb limit. To better document the hw, add
+some WARN_ONs in i915_write_fence_reg like I've done for the i830
+case (using the right limits).
+
+Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
+Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=27449
+Tested-by: Alexander Lam <lambchop468 at gmail.com>
+Signed-off-by: Eric Anholt <eric at anholt.net>
+Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
+
+---
+ drivers/gpu/drm/i915/i915_gem.c | 6 ++++++
+ drivers/gpu/drm/i915/i915_gem_tiling.c | 22 +++++++++-------------
+ drivers/gpu/drm/i915/i915_reg.h | 2 +-
+ 3 files changed, 16 insertions(+), 14 deletions(-)
+
+--- a/drivers/gpu/drm/i915/i915_gem.c
++++ b/drivers/gpu/drm/i915/i915_gem.c
+@@ -2316,6 +2316,12 @@ static void i915_write_fence_reg(struct
+ pitch_val = obj_priv->stride / tile_width;
+ pitch_val = ffs(pitch_val) - 1;
+
++ if (obj_priv->tiling_mode == I915_TILING_Y &&
++ HAS_128_BYTE_Y_TILING(dev))
++ WARN_ON(pitch_val > I830_FENCE_MAX_PITCH_VAL);
++ else
++ WARN_ON(pitch_val > I915_FENCE_MAX_PITCH_VAL);
++
+ val = obj_priv->gtt_offset;
+ if (obj_priv->tiling_mode == I915_TILING_Y)
+ val |= 1 << I830_FENCE_TILING_Y_SHIFT;
+--- a/drivers/gpu/drm/i915/i915_gem_tiling.c
++++ b/drivers/gpu/drm/i915/i915_gem_tiling.c
+@@ -357,21 +357,17 @@ i915_tiling_ok(struct drm_device *dev, i
+ * reg, so dont bother to check the size */
+ if (stride / 128 > I965_FENCE_MAX_PITCH_VAL)
+ return false;
+- } else if (IS_I9XX(dev)) {
+- uint32_t pitch_val = ffs(stride / tile_width) - 1;
+-
+- /* XXX: For Y tiling, FENCE_MAX_PITCH_VAL is actually 6 (8KB)
+- * instead of 4 (2KB) on 945s.
+- */
+- if (pitch_val > I915_FENCE_MAX_PITCH_VAL ||
+- size > (I830_FENCE_MAX_SIZE_VAL << 20))
++ } else if (IS_GEN3(dev) || IS_GEN2(dev)) {
++ if (stride > 8192)
+ return false;
+- } else {
+- uint32_t pitch_val = ffs(stride / tile_width) - 1;
+
+- if (pitch_val > I830_FENCE_MAX_PITCH_VAL ||
+- size > (I830_FENCE_MAX_SIZE_VAL << 19))
+- return false;
++ if (IS_GEN3(dev)) {
++ if (size > I830_FENCE_MAX_SIZE_VAL << 20)
++ return false;
++ } else {
++ if (size > I830_FENCE_MAX_SIZE_VAL << 19)
++ return false;
++ }
+ }
+
+ /* 965+ just needs multiples of tile width */
+--- a/drivers/gpu/drm/i915/i915_reg.h
++++ b/drivers/gpu/drm/i915/i915_reg.h
+@@ -221,7 +221,7 @@
+ #define I830_FENCE_SIZE_BITS(size) ((ffs((size) >> 19) - 1) << 8)
+ #define I830_FENCE_PITCH_SHIFT 4
+ #define I830_FENCE_REG_VALID (1<<0)
+-#define I915_FENCE_MAX_PITCH_VAL 0x10
++#define I915_FENCE_MAX_PITCH_VAL 4
+ #define I830_FENCE_MAX_PITCH_VAL 6
+ #define I830_FENCE_MAX_SIZE_VAL (1<<8)
+
+From bad720ff3e8e47a04bd88d9bbc8317e7d7e049d3 Mon Sep 17 00:00:00 2001
+From: Eric Anholt <eric at anholt.net>
+Date: Thu, 22 Oct 2009 16:11:14 -0700
+Subject: drm/i915: Add initial bits for VGA modesetting bringup on Sandybridge.
+
+From: Eric Anholt <eric at anholt.net>
+
+commit bad720ff3e8e47a04bd88d9bbc8317e7d7e049d3 upstream.
+
+[needed for stable as it's just a bunch of macros that other drm patches
+need, it changes no code functionality besides adding support for a new
+device type. - gregkh]
+
+Signed-off-by: Eric Anholt <eric at anholt.net>
+Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
+
+---
+ drivers/gpu/drm/i915/i915_debugfs.c | 2 -
+ drivers/gpu/drm/i915/i915_dma.c | 16 ++++++---
+ drivers/gpu/drm/i915/i915_drv.h | 26 ++++++++++++++-
+ drivers/gpu/drm/i915/i915_gem.c | 2 -
+ drivers/gpu/drm/i915/i915_gem_tiling.c | 2 -
+ drivers/gpu/drm/i915/i915_irq.c | 18 +++++-----
+ drivers/gpu/drm/i915/intel_bios.c | 3 +
+ drivers/gpu/drm/i915/intel_crt.c | 14 ++++----
+ drivers/gpu/drm/i915/intel_display.c | 56 ++++++++++++++++-----------------
+ drivers/gpu/drm/i915/intel_lvds.c | 2 -
+ drivers/gpu/drm/i915/intel_overlay.c | 2 -
+ include/drm/drm_pciids.h | 1
+ 12 files changed, 88 insertions(+), 56 deletions(-)
+
+--- a/drivers/gpu/drm/i915/i915_debugfs.c
++++ b/drivers/gpu/drm/i915/i915_debugfs.c
+@@ -162,7 +162,7 @@ static int i915_interrupt_info(struct se
+ struct drm_device *dev = node->minor->dev;
+ drm_i915_private_t *dev_priv = dev->dev_private;
+
+- if (!IS_IRONLAKE(dev)) {
++ if (!HAS_PCH_SPLIT(dev)) {
+ seq_printf(m, "Interrupt enable: %08x\n",
+ I915_READ(IER));
+ seq_printf(m, "Interrupt identity: %08x\n",
+--- a/drivers/gpu/drm/i915/i915_dma.c
++++ b/drivers/gpu/drm/i915/i915_dma.c
+@@ -978,15 +978,21 @@ static int i915_probe_agp(struct drm_dev
+ * Some of the preallocated space is taken by the GTT
+ * and popup. GTT is 1K per MB of aperture size, and popup is 4K.
+ */
+- if (IS_G4X(dev) || IS_PINEVIEW(dev) || IS_IRONLAKE(dev))
++ if (IS_G4X(dev) || IS_PINEVIEW(dev) || IS_IRONLAKE(dev) || IS_GEN6(dev))
+ overhead = 4096;
+ else
+ overhead = (*aperture_size / 1024) + 4096;
+
+ switch (tmp & INTEL_GMCH_GMS_MASK) {
+ case INTEL_855_GMCH_GMS_DISABLED:
+- DRM_ERROR("video memory is disabled\n");
+- return -1;
++ /* XXX: This is what my A1 silicon has. */
++ if (IS_GEN6(dev)) {
++ stolen = 64 * 1024 * 1024;
++ } else {
++ DRM_ERROR("video memory is disabled\n");
++ return -1;
++ }
++ break;
+ case INTEL_855_GMCH_GMS_STOLEN_1M:
+ stolen = 1 * 1024 * 1024;
+ break;
+@@ -1064,7 +1070,7 @@ static unsigned long i915_gtt_to_phys(st
+ int gtt_offset, gtt_size;
+
+ if (IS_I965G(dev)) {
+- if (IS_G4X(dev) || IS_IRONLAKE(dev)) {
++ if (IS_G4X(dev) || IS_IRONLAKE(dev) || IS_GEN6(dev)) {
+ gtt_offset = 2*1024*1024;
+ gtt_size = 2*1024*1024;
+ } else {
+@@ -1445,7 +1451,7 @@ int i915_driver_load(struct drm_device *
+
+ dev->driver->get_vblank_counter = i915_get_vblank_counter;
+ dev->max_vblank_count = 0xffffff; /* only 24 bits of frame count */
+- if (IS_G4X(dev) || IS_IRONLAKE(dev)) {
++ if (IS_G4X(dev) || IS_IRONLAKE(dev) || IS_GEN6(dev)) {
+ dev->max_vblank_count = 0xffffffff; /* full 32 bit counter */
+ dev->driver->get_vblank_counter = gm45_get_vblank_counter;
+ }
+--- a/drivers/gpu/drm/i915/i915_drv.h
++++ b/drivers/gpu/drm/i915/i915_drv.h
+@@ -1026,7 +1026,7 @@ extern int i915_wait_ring(struct drm_dev
+ #define IS_845G(dev) ((dev)->pci_device == 0x2562)
+ #define IS_I85X(dev) ((dev)->pci_device == 0x3582)
+ #define IS_I865G(dev) ((dev)->pci_device == 0x2572)
+-#define IS_I8XX(dev) (INTEL_INFO(dev)->is_i8xx)
++#define IS_GEN2(dev) (INTEL_INFO(dev)->is_i8xx)
+ #define IS_I915G(dev) (INTEL_INFO(dev)->is_i915g)
+ #define IS_I915GM(dev) ((dev)->pci_device == 0x2592)
+ #define IS_I945G(dev) ((dev)->pci_device == 0x2772)
+@@ -1045,8 +1045,29 @@ extern int i915_wait_ring(struct drm_dev
+ #define IS_I9XX(dev) (INTEL_INFO(dev)->is_i9xx)
+ #define IS_MOBILE(dev) (INTEL_INFO(dev)->is_mobile)
+
++#define IS_GEN3(dev) (IS_I915G(dev) || \
++ IS_I915GM(dev) || \
++ IS_I945G(dev) || \
++ IS_I945GM(dev) || \
++ IS_G33(dev) || \
++ IS_PINEVIEW(dev))
++#define IS_GEN4(dev) ((dev)->pci_device == 0x2972 || \
++ (dev)->pci_device == 0x2982 || \
++ (dev)->pci_device == 0x2992 || \
++ (dev)->pci_device == 0x29A2 || \
++ (dev)->pci_device == 0x2A02 || \
++ (dev)->pci_device == 0x2A12 || \
++ (dev)->pci_device == 0x2E02 || \
++ (dev)->pci_device == 0x2E12 || \
++ (dev)->pci_device == 0x2E22 || \
++ (dev)->pci_device == 0x2E32 || \
++ (dev)->pci_device == 0x2A42 || \
++ (dev)->pci_device == 0x2E42)
++
+ #define I915_NEED_GFX_HWS(dev) (INTEL_INFO(dev)->need_gfx_hws)
+
++#define IS_GEN6(dev) ((dev)->pci_device == 0x0102)
++
+ /* With the 945 and later, Y tiling got adjusted so that it was 32 128-byte
+ * rows, which changed the alignment requirements and fence programming.
+ */
+@@ -1067,6 +1088,9 @@ extern int i915_wait_ring(struct drm_dev
+ #define I915_HAS_FBC(dev) (INTEL_INFO(dev)->has_fbc)
+ #define I915_HAS_RC6(dev) (INTEL_INFO(dev)->has_rc6)
+
++#define HAS_PCH_SPLIT(dev) (IS_IRONLAKE(dev) || \
++ IS_GEN6(dev))
++
+ #define PRIMARY_RINGBUFFER_SIZE (128*1024)
+
+ #endif
+--- a/drivers/gpu/drm/i915/i915_gem.c
++++ b/drivers/gpu/drm/i915/i915_gem.c
+@@ -1819,7 +1819,7 @@ i915_do_wait_request(struct drm_device *
+ return -EIO;
+
+ if (!i915_seqno_passed(i915_get_gem_seqno(dev), seqno)) {
+- if (IS_IRONLAKE(dev))
++ if (HAS_PCH_SPLIT(dev))
+ ier = I915_READ(DEIER) | I915_READ(GTIER);
+ else
+ ier = I915_READ(IER);
+--- a/drivers/gpu/drm/i915/i915_gem_tiling.c
++++ b/drivers/gpu/drm/i915/i915_gem_tiling.c
+@@ -209,7 +209,7 @@ i915_gem_detect_bit_6_swizzle(struct drm
+ uint32_t swizzle_y = I915_BIT_6_SWIZZLE_UNKNOWN;
+ bool need_disable;
+
+- if (IS_IRONLAKE(dev)) {
++ if (IS_IRONLAKE(dev) || IS_GEN6(dev)) {
+ /* On Ironlake whatever DRAM config, GPU always do
+ * same swizzling setup.
+ */
+--- a/drivers/gpu/drm/i915/i915_irq.c
++++ b/drivers/gpu/drm/i915/i915_irq.c
+@@ -576,7 +576,7 @@ irqreturn_t i915_driver_irq_handler(DRM_
+
+ atomic_inc(&dev_priv->irq_received);
+
+- if (IS_IRONLAKE(dev))
++ if (HAS_PCH_SPLIT(dev))
+ return ironlake_irq_handler(dev);
+
+ iir = I915_READ(IIR);
+@@ -737,7 +737,7 @@ void i915_user_irq_get(struct drm_device
+
+ spin_lock_irqsave(&dev_priv->user_irq_lock, irqflags);
+ if (dev->irq_enabled && (++dev_priv->user_irq_refcount == 1)) {
+- if (IS_IRONLAKE(dev))
++ if (HAS_PCH_SPLIT(dev))
+ ironlake_enable_graphics_irq(dev_priv, GT_USER_INTERRUPT);
+ else
+ i915_enable_irq(dev_priv, I915_USER_INTERRUPT);
+@@ -753,7 +753,7 @@ void i915_user_irq_put(struct drm_device
+ spin_lock_irqsave(&dev_priv->user_irq_lock, irqflags);
+ BUG_ON(dev->irq_enabled && dev_priv->user_irq_refcount <= 0);
+ if (dev->irq_enabled && (--dev_priv->user_irq_refcount == 0)) {
+- if (IS_IRONLAKE(dev))
++ if (HAS_PCH_SPLIT(dev))
+ ironlake_disable_graphics_irq(dev_priv, GT_USER_INTERRUPT);
+ else
+ i915_disable_irq(dev_priv, I915_USER_INTERRUPT);
+@@ -861,7 +861,7 @@ int i915_enable_vblank(struct drm_device
+ return -EINVAL;
+
+ spin_lock_irqsave(&dev_priv->user_irq_lock, irqflags);
+- if (IS_IRONLAKE(dev))
++ if (HAS_PCH_SPLIT(dev))
+ ironlake_enable_display_irq(dev_priv, (pipe == 0) ?
+ DE_PIPEA_VBLANK: DE_PIPEB_VBLANK);
+ else if (IS_I965G(dev))
+@@ -883,7 +883,7 @@ void i915_disable_vblank(struct drm_devi
+ unsigned long irqflags;
+
+ spin_lock_irqsave(&dev_priv->user_irq_lock, irqflags);
+- if (IS_IRONLAKE(dev))
++ if (HAS_PCH_SPLIT(dev))
+ ironlake_disable_display_irq(dev_priv, (pipe == 0) ?
+ DE_PIPEA_VBLANK: DE_PIPEB_VBLANK);
+ else
+@@ -897,7 +897,7 @@ void i915_enable_interrupt (struct drm_d
+ {
+ struct drm_i915_private *dev_priv = dev->dev_private;
+
+- if (!IS_IRONLAKE(dev))
++ if (!HAS_PCH_SPLIT(dev))
+ opregion_enable_asle(dev);
+ dev_priv->irq_enabled = 1;
+ }
+@@ -1076,7 +1076,7 @@ void i915_driver_irq_preinstall(struct d
+ INIT_WORK(&dev_priv->hotplug_work, i915_hotplug_work_func);
+ INIT_WORK(&dev_priv->error_work, i915_error_work_func);
+
+- if (IS_IRONLAKE(dev)) {
++ if (HAS_PCH_SPLIT(dev)) {
+ ironlake_irq_preinstall(dev);
+ return;
+ }
+@@ -1108,7 +1108,7 @@ int i915_driver_irq_postinstall(struct d
+
+ dev_priv->vblank_pipe = DRM_I915_VBLANK_PIPE_A | DRM_I915_VBLANK_PIPE_B;
+
+- if (IS_IRONLAKE(dev))
++ if (HAS_PCH_SPLIT(dev))
+ return ironlake_irq_postinstall(dev);
+
+ /* Unmask the interrupts that we always want on. */
+@@ -1196,7 +1196,7 @@ void i915_driver_irq_uninstall(struct dr
+
+ dev_priv->vblank_pipe = 0;
+
+- if (IS_IRONLAKE(dev)) {
++ if (HAS_PCH_SPLIT(dev)) {
+ ironlake_irq_uninstall(dev);
+ return;
+ }
+--- a/drivers/gpu/drm/i915/intel_bios.c
++++ b/drivers/gpu/drm/i915/intel_bios.c
+@@ -247,6 +247,7 @@ static void
+ parse_general_features(struct drm_i915_private *dev_priv,
+ struct bdb_header *bdb)
+ {
++ struct drm_device *dev = dev_priv->dev;
+ struct bdb_general_features *general;
+
+ /* Set sensible defaults in case we can't find the general block */
+@@ -263,7 +264,7 @@ parse_general_features(struct drm_i915_p
+ if (IS_I85X(dev_priv->dev))
+ dev_priv->lvds_ssc_freq =
+ general->ssc_freq ? 66 : 48;
+- else if (IS_IRONLAKE(dev_priv->dev))
++ else if (IS_IRONLAKE(dev_priv->dev) || IS_GEN6(dev))
+ dev_priv->lvds_ssc_freq =
+ general->ssc_freq ? 100 : 120;
+ else
+--- a/drivers/gpu/drm/i915/intel_crt.c
++++ b/drivers/gpu/drm/i915/intel_crt.c
+@@ -39,7 +39,7 @@ static void intel_crt_dpms(struct drm_en
+ struct drm_i915_private *dev_priv = dev->dev_private;
+ u32 temp, reg;
+
+- if (IS_IRONLAKE(dev))
++ if (HAS_PCH_SPLIT(dev))
+ reg = PCH_ADPA;
+ else
+ reg = ADPA;
+@@ -113,7 +113,7 @@ static void intel_crt_mode_set(struct dr
+ else
+ dpll_md_reg = DPLL_B_MD;
+
+- if (IS_IRONLAKE(dev))
++ if (HAS_PCH_SPLIT(dev))
+ adpa_reg = PCH_ADPA;
+ else
+ adpa_reg = ADPA;
+@@ -122,7 +122,7 @@ static void intel_crt_mode_set(struct dr
+ * Disable separate mode multiplier used when cloning SDVO to CRT
+ * XXX this needs to be adjusted when we really are cloning
+ */
+- if (IS_I965G(dev) && !IS_IRONLAKE(dev)) {
++ if (IS_I965G(dev) && !HAS_PCH_SPLIT(dev)) {
+ dpll_md = I915_READ(dpll_md_reg);
+ I915_WRITE(dpll_md_reg,
+ dpll_md & ~DPLL_MD_UDI_MULTIPLIER_MASK);
+@@ -136,11 +136,11 @@ static void intel_crt_mode_set(struct dr
+
+ if (intel_crtc->pipe == 0) {
+ adpa |= ADPA_PIPE_A_SELECT;
+- if (!IS_IRONLAKE(dev))
++ if (!HAS_PCH_SPLIT(dev))
+ I915_WRITE(BCLRPAT_A, 0);
+ } else {
+ adpa |= ADPA_PIPE_B_SELECT;
+- if (!IS_IRONLAKE(dev))
++ if (!HAS_PCH_SPLIT(dev))
+ I915_WRITE(BCLRPAT_B, 0);
+ }
+
+@@ -202,7 +202,7 @@ static bool intel_crt_detect_hotplug(str
+ u32 hotplug_en;
+ int i, tries = 0;
+
+- if (IS_IRONLAKE(dev))
++ if (HAS_PCH_SPLIT(dev))
+ return intel_ironlake_crt_detect_hotplug(connector);
+
+ /*
+@@ -524,7 +524,7 @@ void intel_crt_init(struct drm_device *d
+ &intel_output->enc);
+
+ /* Set up the DDC bus. */
+- if (IS_IRONLAKE(dev))
++ if (HAS_PCH_SPLIT(dev))
+ i2c_reg = PCH_GPIOA;
+ else {
+ i2c_reg = GPIOA;
+--- a/drivers/gpu/drm/i915/intel_display.c
++++ b/drivers/gpu/drm/i915/intel_display.c
+@@ -232,7 +232,7 @@ struct intel_limit {
+ #define G4X_P2_DISPLAY_PORT_FAST 10
+ #define G4X_P2_DISPLAY_PORT_LIMIT 0
+
+-/* Ironlake */
++/* Ironlake / Sandybridge */
+ /* as we calculate clock using (register_value + 2) for
+ N/M1/M2, so here the range value for them is (actual_value-2).
+ */
+@@ -690,7 +690,7 @@ static const intel_limit_t *intel_limit(
+ struct drm_device *dev = crtc->dev;
+ const intel_limit_t *limit;
+
+- if (IS_IRONLAKE(dev))
++ if (HAS_PCH_SPLIT(dev))
+ limit = intel_ironlake_limit(crtc);
+ else if (IS_G4X(dev)) {
+ limit = intel_g4x_limit(crtc);
+@@ -1366,7 +1366,7 @@ intel_pipe_set_base(struct drm_crtc *crt
+ dspcntr &= ~DISPPLANE_TILED;
+ }
+
+- if (IS_IRONLAKE(dev))
++ if (HAS_PCH_SPLIT(dev))
+ /* must disable */
+ dspcntr |= DISPPLANE_TRICKLE_FEED_DISABLE;
+
+@@ -1427,7 +1427,7 @@ static void i915_disable_vga (struct drm
+ u8 sr1;
+ u32 vga_reg;
+
+- if (IS_IRONLAKE(dev))
++ if (HAS_PCH_SPLIT(dev))
+ vga_reg = CPU_VGACNTRL;
+ else
+ vga_reg = VGACNTRL;
+@@ -2111,7 +2111,7 @@ static bool intel_crtc_mode_fixup(struct
+ struct drm_display_mode *adjusted_mode)
+ {
+ struct drm_device *dev = crtc->dev;
+- if (IS_IRONLAKE(dev)) {
++ if (HAS_PCH_SPLIT(dev)) {
+ /* FDI link clock is fixed at 2.7G */
+ if (mode->clock * 3 > 27000 * 4)
+ return MODE_CLOCK_HIGH;
+@@ -2967,7 +2967,7 @@ static int intel_crtc_mode_set(struct dr
+ refclk / 1000);
+ } else if (IS_I9XX(dev)) {
+ refclk = 96000;
+- if (IS_IRONLAKE(dev))
++ if (HAS_PCH_SPLIT(dev))
+ refclk = 120000; /* 120Mhz refclk */
+ } else {
+ refclk = 48000;
+@@ -3025,7 +3025,7 @@ static int intel_crtc_mode_set(struct dr
+ }
+
+ /* FDI link */
+- if (IS_IRONLAKE(dev)) {
++ if (HAS_PCH_SPLIT(dev)) {
+ int lane, link_bw, bpp;
+ /* eDP doesn't require FDI link, so just set DP M/N
+ according to current link config */
+@@ -3102,7 +3102,7 @@ static int intel_crtc_mode_set(struct dr
+ * PCH B stepping, previous chipset stepping should be
+ * ignoring this setting.
+ */
+- if (IS_IRONLAKE(dev)) {
++ if (HAS_PCH_SPLIT(dev)) {
+ temp = I915_READ(PCH_DREF_CONTROL);
+ /* Always enable nonspread source */
+ temp &= ~DREF_NONSPREAD_SOURCE_MASK;
+@@ -3149,7 +3149,7 @@ static int intel_crtc_mode_set(struct dr
+ reduced_clock.m2;
+ }
+
+- if (!IS_IRONLAKE(dev))
++ if (!HAS_PCH_SPLIT(dev))
+ dpll = DPLL_VGA_MODE_DIS;
+
+ if (IS_I9XX(dev)) {
+@@ -3162,7 +3162,7 @@ static int intel_crtc_mode_set(struct dr
+ sdvo_pixel_multiply = adjusted_mode->clock / mode->clock;
+ if (IS_I945G(dev) || IS_I945GM(dev) || IS_G33(dev))
+ dpll |= (sdvo_pixel_multiply - 1) << SDVO_MULTIPLIER_SHIFT_HIRES;
+- else if (IS_IRONLAKE(dev))
++ else if (HAS_PCH_SPLIT(dev))
+ dpll |= (sdvo_pixel_multiply - 1) << PLL_REF_SDVO_HDMI_MULTIPLIER_SHIFT;
+ }
+ if (is_dp)
+@@ -3174,7 +3174,7 @@ static int intel_crtc_mode_set(struct dr
+ else {
+ dpll |= (1 << (clock.p1 - 1)) << DPLL_FPA01_P1_POST_DIV_SHIFT;
+ /* also FPA1 */
+- if (IS_IRONLAKE(dev))
++ if (HAS_PCH_SPLIT(dev))
+ dpll |= (1 << (clock.p1 - 1)) << DPLL_FPA1_P1_POST_DIV_SHIFT;
+ if (IS_G4X(dev) && has_reduced_clock)
+ dpll |= (1 << (reduced_clock.p1 - 1)) << DPLL_FPA1_P1_POST_DIV_SHIFT;
+@@ -3193,7 +3193,7 @@ static int intel_crtc_mode_set(struct dr
+ dpll |= DPLLB_LVDS_P2_CLOCK_DIV_14;
+ break;
+ }
+- if (IS_I965G(dev) && !IS_IRONLAKE(dev))
++ if (IS_I965G(dev) && !HAS_PCH_SPLIT(dev))
+ dpll |= (6 << PLL_LOAD_PULSE_PHASE_SHIFT);
+ } else {
+ if (is_lvds) {
+@@ -3227,7 +3227,7 @@ static int intel_crtc_mode_set(struct dr
+
+ /* Ironlake's plane is forced to pipe, bit 24 is to
+ enable color space conversion */
+- if (!IS_IRONLAKE(dev)) {
++ if (!HAS_PCH_SPLIT(dev)) {
+ if (pipe == 0)
+ dspcntr &= ~DISPPLANE_SEL_PIPE_MASK;
+ else
+@@ -3254,14 +3254,14 @@ static int intel_crtc_mode_set(struct dr
+
+
+ /* Disable the panel fitter if it was on our pipe */
+- if (!IS_IRONLAKE(dev) && intel_panel_fitter_pipe(dev) == pipe)
++ if (!HAS_PCH_SPLIT(dev) && intel_panel_fitter_pipe(dev) == pipe)
+ I915_WRITE(PFIT_CONTROL, 0);
+
+ DRM_DEBUG_KMS("Mode for pipe %c:\n", pipe == 0 ? 'A' : 'B');
+ drm_mode_debug_printmodeline(mode);
+
+ /* assign to Ironlake registers */
+- if (IS_IRONLAKE(dev)) {
++ if (HAS_PCH_SPLIT(dev)) {
+ fp_reg = pch_fp_reg;
+ dpll_reg = pch_dpll_reg;
+ }
+@@ -3282,7 +3282,7 @@ static int intel_crtc_mode_set(struct dr
+ if (is_lvds) {
+ u32 lvds;
+
+- if (IS_IRONLAKE(dev))
++ if (HAS_PCH_SPLIT(dev))
+ lvds_reg = PCH_LVDS;
+
+ lvds = I915_READ(lvds_reg);
+@@ -3328,7 +3328,7 @@ static int intel_crtc_mode_set(struct dr
+ /* Wait for the clocks to stabilize. */
+ udelay(150);
+
+- if (IS_I965G(dev) && !IS_IRONLAKE(dev)) {
++ if (IS_I965G(dev) && !HAS_PCH_SPLIT(dev)) {
+ if (is_sdvo) {
+ sdvo_pixel_multiply = adjusted_mode->clock / mode->clock;
+ I915_WRITE(dpll_md_reg, (0 << DPLL_MD_UDI_DIVIDER_SHIFT) |
+@@ -3375,14 +3375,14 @@ static int intel_crtc_mode_set(struct dr
+ /* pipesrc and dspsize control the size that is scaled from, which should
+ * always be the user's requested size.
+ */
+- if (!IS_IRONLAKE(dev)) {
++ if (!HAS_PCH_SPLIT(dev)) {
+ I915_WRITE(dspsize_reg, ((mode->vdisplay - 1) << 16) |
+ (mode->hdisplay - 1));
+ I915_WRITE(dsppos_reg, 0);
+ }
+ I915_WRITE(pipesrc_reg, ((mode->hdisplay - 1) << 16) | (mode->vdisplay - 1));
+
+- if (IS_IRONLAKE(dev)) {
++ if (HAS_PCH_SPLIT(dev)) {
+ I915_WRITE(data_m1_reg, TU_SIZE(m_n.tu) | m_n.gmch_m);
+ I915_WRITE(data_n1_reg, TU_SIZE(m_n.tu) | m_n.gmch_n);
+ I915_WRITE(link_m1_reg, m_n.link_m);
+@@ -3403,7 +3403,7 @@ static int intel_crtc_mode_set(struct dr
+
+ intel_wait_for_vblank(dev);
+
+- if (IS_IRONLAKE(dev)) {
++ if (HAS_PCH_SPLIT(dev)) {
+ /* enable address swizzle for tiling buffer */
+ temp = I915_READ(DISP_ARB_CTL);
+ I915_WRITE(DISP_ARB_CTL, temp | DISP_TILE_SURFACE_SWIZZLING);
+@@ -3438,7 +3438,7 @@ void intel_crtc_load_lut(struct drm_crtc
+ return;
+
+ /* use legacy palette for Ironlake */
+- if (IS_IRONLAKE(dev))
++ if (HAS_PCH_SPLIT(dev))
+ palreg = (intel_crtc->pipe == 0) ? LGC_PALETTE_A :
+ LGC_PALETTE_B;
+
+@@ -3922,7 +3922,7 @@ static void intel_increase_pllclock(stru
+ int dpll_reg = (pipe == 0) ? DPLL_A : DPLL_B;
+ int dpll = I915_READ(dpll_reg);
+
+- if (IS_IRONLAKE(dev))
++ if (HAS_PCH_SPLIT(dev))
+ return;
+
+ if (!dev_priv->lvds_downclock_avail)
+@@ -3961,7 +3961,7 @@ static void intel_decrease_pllclock(stru
+ int dpll_reg = (pipe == 0) ? DPLL_A : DPLL_B;
+ int dpll = I915_READ(dpll_reg);
+
+- if (IS_IRONLAKE(dev))
++ if (HAS_PCH_SPLIT(dev))
+ return;
+
+ if (!dev_priv->lvds_downclock_avail)
+@@ -4382,7 +4382,7 @@ static void intel_setup_outputs(struct d
+ if (IS_MOBILE(dev) && !IS_I830(dev))
+ intel_lvds_init(dev);
+
+- if (IS_IRONLAKE(dev)) {
++ if (HAS_PCH_SPLIT(dev)) {
+ int found;
+
+ if (IS_MOBILE(dev) && (I915_READ(DP_A) & DP_DETECTED))
+@@ -4451,7 +4451,7 @@ static void intel_setup_outputs(struct d
+ DRM_DEBUG_KMS("probing DP_D\n");
+ intel_dp_init(dev, DP_D);
+ }
+- } else if (IS_I8XX(dev))
++ } else if (IS_GEN2(dev))
+ intel_dvo_init(dev);
+
+ if (SUPPORTS_TV(dev))
+@@ -4599,7 +4599,7 @@ void intel_init_clock_gating(struct drm_
+ * Disable clock gating reported to work incorrectly according to the
+ * specs, but enable as much else as we can.
+ */
+- if (IS_IRONLAKE(dev)) {
++ if (HAS_PCH_SPLIT(dev)) {
+ return;
+ } else if (IS_G4X(dev)) {
+ uint32_t dspclk_gate;
+@@ -4672,7 +4672,7 @@ static void intel_init_display(struct dr
+ struct drm_i915_private *dev_priv = dev->dev_private;
+
+ /* We always want a DPMS function */
+- if (IS_IRONLAKE(dev))
++ if (HAS_PCH_SPLIT(dev))
+ dev_priv->display.dpms = ironlake_crtc_dpms;
+ else
+ dev_priv->display.dpms = i9xx_crtc_dpms;
+@@ -4715,7 +4715,7 @@ static void intel_init_display(struct dr
+ i830_get_display_clock_speed;
+
+ /* For FIFO watermark updates */
+- if (IS_IRONLAKE(dev))
++ if (HAS_PCH_SPLIT(dev))
+ dev_priv->display.update_wm = NULL;
+ else if (IS_G4X(dev))
+ dev_priv->display.update_wm = g4x_update_wm;
+--- a/drivers/gpu/drm/i915/intel_lvds.c
++++ b/drivers/gpu/drm/i915/intel_lvds.c
+@@ -661,7 +661,7 @@ static enum drm_connector_status intel_l
+ /* ACPI lid methods were generally unreliable in this generation, so
+ * don't even bother.
+ */
+- if (IS_I8XX(dev))
++ if (IS_GEN2(dev))
+ return connector_status_connected;
+
+ if (!dmi_check_system(bad_lid_status) && !acpi_lid_open())
+--- a/drivers/gpu/drm/i915/intel_overlay.c
++++ b/drivers/gpu/drm/i915/intel_overlay.c
+@@ -172,7 +172,7 @@ struct overlay_registers {
+ #define OFC_UPDATE 0x1
+
+ #define OVERLAY_NONPHYSICAL(dev) (IS_G33(dev) || IS_I965G(dev))
+-#define OVERLAY_EXISTS(dev) (!IS_G4X(dev) && !IS_IRONLAKE(dev))
++#define OVERLAY_EXISTS(dev) (!IS_G4X(dev) && !IS_IRONLAKE(dev) && !IS_GEN6(dev))
+
+
+ static struct overlay_registers *intel_overlay_map_regs_atomic(struct intel_overlay *overlay)
From 79b9517a33a283c5d9db875c263670ed1e055f7e Mon Sep 17 00:00:00 2001
From: Dave Airlie <airlied at redhat.com>
Date: Mon, 19 Apr 2010 17:54:31 +1000
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-13/sources,v
retrieving revision 1.1135
retrieving revision 1.1136
diff -u -p -r1.1135 -r1.1136
--- sources 28 Apr 2010 03:43:13 -0000 1.1135
+++ sources 12 May 2010 23:39:21 -0000 1.1136
@@ -1,2 +1,2 @@
c3883760b18d50e8d78819c54d579b00 linux-2.6.33.tar.bz2
-dd6cd6a3aea70a2d90d1e8fd6abc3b45 patch-2.6.33.3.bz2
+27ea162c4a508d368fad9c6e4530ee43 patch-2.6.33.4.bz2
Index: upstream
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-13/upstream,v
retrieving revision 1.1048
retrieving revision 1.1049
diff -u -p -r1.1048 -r1.1049
--- upstream 28 Apr 2010 03:43:13 -0000 1.1048
+++ upstream 12 May 2010 23:39:21 -0000 1.1049
@@ -1,2 +1,2 @@
linux-2.6.33.tar.bz2
-patch-2.6.33.3.bz2
+patch-2.6.33.4.bz2
vhost_net-rollup.patch:
MAINTAINERS | 9
arch/ia64/kvm/Kconfig | 1
arch/powerpc/kvm/Kconfig | 1
arch/s390/kvm/Kconfig | 1
arch/x86/kvm/Kconfig | 1
drivers/Makefile | 1
drivers/net/tun.c | 101 +++-
drivers/vhost/Kconfig | 11
drivers/vhost/Makefile | 2
drivers/vhost/net.c | 661 +++++++++++++++++++++++++++
drivers/vhost/vhost.c | 1098 +++++++++++++++++++++++++++++++++++++++++++++
drivers/vhost/vhost.h | 161 ++++++
include/linux/Kbuild | 1
include/linux/if_tun.h | 14
include/linux/miscdevice.h | 1
include/linux/vhost.h | 130 +++++
mm/mmu_context.c | 3
17 files changed, 2178 insertions(+), 19 deletions(-)
Index: vhost_net-rollup.patch
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-13/vhost_net-rollup.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- vhost_net-rollup.patch 18 Jan 2010 15:30:08 -0000 1.1
+++ vhost_net-rollup.patch 12 May 2010 23:39:22 -0000 1.2
@@ -179,9 +179,9 @@ index 6ee53c7..81e3659 100644
obj-$(CONFIG_OF) += of/
obj-$(CONFIG_SSB) += ssb/
+obj-$(CONFIG_VHOST_NET) += vhost/
- obj-$(CONFIG_VIRTIO) += virtio/
obj-$(CONFIG_VLYNQ) += vlynq/
obj-$(CONFIG_STAGING) += staging/
+ obj-y += platform/
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index 2834a01..5adb3d1 100644
--- a/drivers/net/tun.c
--- ath9k-reorder-ieee80211_free_hw-behind-ath9k_uninit_.patch DELETED ---
--- hugetlb-fix-infinite-loop-in-get-futex-key.patch DELETED ---
--- libata-fix-accesses-at-LBA28-boundary.patch DELETED ---
--- linux-2.6-creds_are_invalid-race.patch DELETED ---
--- linux-2.6-pci-fixup-resume.patch DELETED ---
--- linux-2.6-tun-orphan_an_skb_on_tx.patch DELETED ---
--- patch-2.6.33.3.bz2.sign DELETED ---
--- reiserfs-fix-permissions-on-reiserfs-priv.patch DELETED ---
- Previous message: rpms/kernel/F-12 kernel.spec, 1.2078, 1.2079 hugetlb-fix-infinite-loop-in-get-futex-key.patch, 1.2, NONE libata-fix-accesses-at-LBA28-boundary.patch, 1.1, NONE libiscsi-regression-fix-header-digest-errors.patch, 1.1, NONE reiserfs-fix-permissions-on-reiserfs-priv.patch, 1.1, NONE
- Next message: File patch-2.6.34-rc7-git3.bz2 uploaded to lookaside cache by cebbert
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list