rpms/kernel/F-12 drm-nouveau.patch, 1.70, 1.71 kernel.spec, 1.1949, 1.1950

Ben Skeggs bskeggs at fedoraproject.org
Mon Dec 7 06:11:40 UTC 2009


Author: bskeggs

Update of /cvs/pkgs/rpms/kernel/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv28026

Modified Files:
	drm-nouveau.patch kernel.spec 
Log Message:
* Mon Dec 07 2009 Ben Skeggs <bskeggs at redhat.com> 2.6.31.6-164
- nouveau: fix NV17 breakage caused by NVA8 fixes
- nouveau: use ratelimit for GPU error message



drm-nouveau.patch:
 drivers/gpu/drm/Kconfig                     |   56 
 drivers/gpu/drm/Makefile                    |    2 
 drivers/gpu/drm/i2c/Makefile                |    4 
 drivers/gpu/drm/i2c/ch7006_drv.c            |  531 
 drivers/gpu/drm/i2c/ch7006_mode.c           |  473 
 drivers/gpu/drm/i2c/ch7006_priv.h           |  344 
 drivers/gpu/drm/nouveau/Makefile            |   30 
 drivers/gpu/drm/nouveau/nouveau_acpi.c      |  125 
 drivers/gpu/drm/nouveau/nouveau_backlight.c |  155 
 drivers/gpu/drm/nouveau/nouveau_bios.c      | 6050 ++++++
 drivers/gpu/drm/nouveau/nouveau_bios.h      |  289 
 drivers/gpu/drm/nouveau/nouveau_bo.c        |  663 
 drivers/gpu/drm/nouveau/nouveau_calc.c      |  478 
 drivers/gpu/drm/nouveau/nouveau_channel.c   |  468 
 drivers/gpu/drm/nouveau/nouveau_connector.c |  812 
 drivers/gpu/drm/nouveau/nouveau_connector.h |   54 
 drivers/gpu/drm/nouveau/nouveau_crtc.h      |   95 
 drivers/gpu/drm/nouveau/nouveau_debugfs.c   |  155 
 drivers/gpu/drm/nouveau/nouveau_display.c   |  115 
 drivers/gpu/drm/nouveau/nouveau_dma.c       |  206 
 drivers/gpu/drm/nouveau/nouveau_dma.h       |  157 
 drivers/gpu/drm/nouveau/nouveau_drv.c       |  413 
 drivers/gpu/drm/nouveau/nouveau_drv.h       | 1270 +
 drivers/gpu/drm/nouveau/nouveau_encoder.h   |   66 
 drivers/gpu/drm/nouveau/nouveau_fb.h        |   47 
 drivers/gpu/drm/nouveau/nouveau_fbcon.c     |  380 
 drivers/gpu/drm/nouveau/nouveau_fbcon.h     |   47 
 drivers/gpu/drm/nouveau/nouveau_fence.c     |  262 
 drivers/gpu/drm/nouveau/nouveau_gem.c       |  976 +
 drivers/gpu/drm/nouveau/nouveau_hw.c        | 1080 +
 drivers/gpu/drm/nouveau/nouveau_hw.h        |  455 
 drivers/gpu/drm/nouveau/nouveau_i2c.c       |  257 
 drivers/gpu/drm/nouveau/nouveau_i2c.h       |   45 
 drivers/gpu/drm/nouveau/nouveau_ioc32.c     |   72 
 drivers/gpu/drm/nouveau/nouveau_irq.c       |  702 
 drivers/gpu/drm/nouveau/nouveau_mem.c       |  583 
 drivers/gpu/drm/nouveau/nouveau_notifier.c  |  196 
 drivers/gpu/drm/nouveau/nouveau_object.c    | 1294 +
 drivers/gpu/drm/nouveau/nouveau_reg.h       |  788 
 drivers/gpu/drm/nouveau/nouveau_sgdma.c     |  321 
 drivers/gpu/drm/nouveau/nouveau_state.c     |  865 
 drivers/gpu/drm/nouveau/nouveau_ttm.c       |  131 
 drivers/gpu/drm/nouveau/nv04_crtc.c         | 1002 +
 drivers/gpu/drm/nouveau/nv04_cursor.c       |   70 
 drivers/gpu/drm/nouveau/nv04_dac.c          |  528 
 drivers/gpu/drm/nouveau/nv04_dfp.c          |  621 
 drivers/gpu/drm/nouveau/nv04_display.c      |  293 
 drivers/gpu/drm/nouveau/nv04_fb.c           |   21 
 drivers/gpu/drm/nouveau/nv04_fbcon.c        |  316 
 drivers/gpu/drm/nouveau/nv04_fifo.c         |  271 
 drivers/gpu/drm/nouveau/nv04_graph.c        |  579 
 drivers/gpu/drm/nouveau/nv04_instmem.c      |  208 
 drivers/gpu/drm/nouveau/nv04_mc.c           |   20 
 drivers/gpu/drm/nouveau/nv04_timer.c        |   51 
 drivers/gpu/drm/nouveau/nv04_tv.c           |  305 
 drivers/gpu/drm/nouveau/nv10_fb.c           |   24 
 drivers/gpu/drm/nouveau/nv10_fifo.c         |  260 
 drivers/gpu/drm/nouveau/nv10_graph.c        |  892 
 drivers/gpu/drm/nouveau/nv17_gpio.c         |   92 
 drivers/gpu/drm/nouveau/nv17_tv.c           |  681 
 drivers/gpu/drm/nouveau/nv17_tv.h           |  156 
 drivers/gpu/drm/nouveau/nv17_tv_modes.c     |  583 
 drivers/gpu/drm/nouveau/nv20_graph.c        |  780 
 drivers/gpu/drm/nouveau/nv40_fb.c           |   62 
 drivers/gpu/drm/nouveau/nv40_fifo.c         |  314 
 drivers/gpu/drm/nouveau/nv40_graph.c        | 2240 ++
 drivers/gpu/drm/nouveau/nv40_mc.c           |   38 
 drivers/gpu/drm/nouveau/nv50_crtc.c         |  769 
 drivers/gpu/drm/nouveau/nv50_cursor.c       |  156 
 drivers/gpu/drm/nouveau/nv50_dac.c          |  304 
 drivers/gpu/drm/nouveau/nv50_display.c      |  998 +
 drivers/gpu/drm/nouveau/nv50_display.h      |   46 
 drivers/gpu/drm/nouveau/nv50_evo.h          |  113 
 drivers/gpu/drm/nouveau/nv50_fbcon.c        |  273 
 drivers/gpu/drm/nouveau/nv50_fifo.c         |  494 
 drivers/gpu/drm/nouveau/nv50_graph.c        |  470 
 drivers/gpu/drm/nouveau/nv50_grctx.h        |26832 ++++++++++++++++++++++++++++
 drivers/gpu/drm/nouveau/nv50_instmem.c      |  509 
 drivers/gpu/drm/nouveau/nv50_mc.c           |   40 
 drivers/gpu/drm/nouveau/nv50_sor.c          |  269 
 drivers/gpu/drm/nouveau/nvreg.h             |  535 
 drivers/gpu/drm/ttm/ttm_bo.c                |    4 
 include/drm/Kbuild                          |    1 
 include/drm/i2c/ch7006.h                    |   86 
 include/drm/nouveau_drm.h                   |  220 
 85 files changed, 64038 insertions(+)

Index: drm-nouveau.patch
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-12/drm-nouveau.patch,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -p -r1.70 -r1.71
--- drm-nouveau.patch	4 Dec 2009 04:48:58 -0000	1.70
+++ drm-nouveau.patch	7 Dec 2009 06:11:38 -0000	1.71
@@ -1778,10 +1778,10 @@ index 0000000..20564f8
 +}
 diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c
 new file mode 100644
-index 0000000..3595be1
+index 0000000..0b5dc12
 --- /dev/null
 +++ b/drivers/gpu/drm/nouveau/nouveau_bios.c
-@@ -0,0 +1,6046 @@
+@@ -0,0 +1,6050 @@
 +/*
 + * Copyright 2005-2006 Erik Waling
 + * Copyright 2006 Stephane Marchesin
@@ -7445,13 +7445,17 @@ index 0000000..3595be1
 +		if (configblock)
 +			config = ROM32(dcbtable[headerlen + confofs + recordlength * i]);
 +
-+		if ((connection & 0x0000000f) == 0x0000000f)
-+			continue;
-+
++		/* seen on an NV11 with DCB v1.5 */
 +		if (connection == 0x00000000)
-+			/* seen on an NV11 with DCB v1.5 */
 +			break;
 +
++		/* seen on an NV17 with DCB v2.0 */
++		if (connection == 0xffffffff)
++			break;
++
++		if ((connection & 0x0000000f) == 0x0000000f)
++			continue;
++
 +		NV_TRACEWARN(dev, "Raw DCB entry %d: %08x %08x\n",
 +			     dcb->entries, connection, config);
 +
@@ -14897,7 +14901,7 @@ index 0000000..f10b53b
 +
 diff --git a/drivers/gpu/drm/nouveau/nouveau_hw.c b/drivers/gpu/drm/nouveau/nouveau_hw.c
 new file mode 100644
-index 0000000..fa137b9
+index 0000000..dc46792
 --- /dev/null
 +++ b/drivers/gpu/drm/nouveau/nouveau_hw.c
 @@ -0,0 +1,1080 @@
@@ -15614,7 +15618,7 @@ index 0000000..fa137b9
 +
 +	regp->fp_margin_color = NVReadRAMDAC(dev, head, NV_PRAMDAC_FP_MARGIN_COLOR);
 +
-+	if (dev_priv->card_type >= NV_30)
++	if (nv_gf4_disp_arch(dev))
 +		regp->ramdac_8c0 = NVReadRAMDAC(dev, head, NV_PRAMDAC_8C0);
 +
 +	if (dev_priv->card_type == NV_40) {
@@ -15685,7 +15689,7 @@ index 0000000..fa137b9
 +
 +	NVWriteRAMDAC(dev, head, NV_PRAMDAC_FP_MARGIN_COLOR, regp->fp_margin_color);
 +
-+	if (dev_priv->card_type >= NV_30)
++	if (nv_gf4_disp_arch(dev))
 +		NVWriteRAMDAC(dev, head, NV_PRAMDAC_8C0, regp->ramdac_8c0);
 +
 +	if (dev_priv->card_type == NV_40) {
@@ -16836,10 +16840,10 @@ index 0000000..a2c30f4
 +}
 diff --git a/drivers/gpu/drm/nouveau/nouveau_irq.c b/drivers/gpu/drm/nouveau/nouveau_irq.c
 new file mode 100644
-index 0000000..39b9f51
+index 0000000..370c72c
 --- /dev/null
 +++ b/drivers/gpu/drm/nouveau/nouveau_irq.c
-@@ -0,0 +1,693 @@
+@@ -0,0 +1,702 @@
 +/*
 + * Copyright (C) 2006 Ben Skeggs.
 + *
@@ -16877,6 +16881,7 @@ index 0000000..39b9f51
 +#include "nouveau_drm.h"
 +#include "nouveau_drv.h"
 +#include "nouveau_reg.h"
++#include <linux/ratelimit.h>
 +
 +/* needed for hotplug irq */
 +#include "nouveau_connector.h"
@@ -17304,6 +17309,14 @@ index 0000000..39b9f51
 +		nouveau_graph_dump_trap_info(dev, "PGRAPH_NOTIFY", &trap);
 +}
 +
++static DEFINE_RATELIMIT_STATE(nouveau_ratelimit_state, 3 * HZ, 20);
++
++static int nouveau_ratelimit(void)
++{
++	return __ratelimit(&nouveau_ratelimit_state);
++}
++
++
 +static inline void
 +nouveau_pgraph_intr_error(struct drm_device *dev, uint32_t nsource)
 +{
@@ -17320,7 +17333,7 @@ index 0000000..39b9f51
 +		unhandled = 1;
 +	}
 +
-+	if (unhandled)
++	if (unhandled && nouveau_ratelimit())
 +		nouveau_graph_dump_trap_info(dev, "PGRAPH_ERROR", &trap);
 +}
 +
@@ -30022,10 +30035,10 @@ index 0000000..b4f19cc
 +}
 diff --git a/drivers/gpu/drm/nouveau/nv40_graph.c b/drivers/gpu/drm/nouveau/nv40_graph.c
 new file mode 100644
-index 0000000..9b5e03a
+index 0000000..76c6f21
 --- /dev/null
 +++ b/drivers/gpu/drm/nouveau/nv40_graph.c
-@@ -0,0 +1,2239 @@
+@@ -0,0 +1,2240 @@
 +/*
 + * Copyright (C) 2007 Ben Skeggs.
 + * All Rights Reserved.
@@ -32254,6 +32267,7 @@ index 0000000..9b5e03a
 +	{ 0x0089, false, NULL }, /* sifm */
 +	{ 0x3089, false, NULL }, /* sifm (nv40) */
 +	{ 0x0062, false, NULL }, /* surf2d */
++	{ 0x3062, false, NULL }, /* surf2d (nv40) */
 +	{ 0x0043, false, NULL }, /* rop */
 +	{ 0x0012, false, NULL }, /* beta1 */
 +	{ 0x0072, false, NULL }, /* beta4 */


Index: kernel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-12/kernel.spec,v
retrieving revision 1.1949
retrieving revision 1.1950
diff -u -p -r1.1949 -r1.1950
--- kernel.spec	4 Dec 2009 04:48:59 -0000	1.1949
+++ kernel.spec	7 Dec 2009 06:11:39 -0000	1.1950
@@ -2167,6 +2167,10 @@ fi
 # and build.
 
 %changelog
+* Mon Dec 07 2009 Ben Skeggs <bskeggs at redhat.com> 2.6.31.6-164
+- nouveau: fix NV17 breakage caused by NVA8 fixes
+- nouveau: use ratelimit for GPU error message
+
 * Fri Dec 04 2009 Ben Skeggs <bskeggs at redhat.com> 2.6.31.6-163
 - nouveau: reduce debug level of some warning messages (rh#543883)
 - nouveau: modesetting fixes on nva5/nva8




More information about the fedora-extras-commits mailing list