[git pull] drm fixes

From: Dave Airlie
Date: Wed Jun 03 2009 - 23:40:17 EST



Hi Linus,

Please pull the 'drm-fixes' branch from
ssh://master.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git drm-fixes

Have been out on holidays, so sorry these are a bit late, the radeon one
fixes a regression reported since -rc1 so is most important.

Dave.

drivers/gpu/drm/drm_bufs.c | 3 +-
drivers/gpu/drm/drm_crtc.c | 7 ++-
drivers/gpu/drm/drm_crtc_helper.c | 109 ++++++++++++++++++++++++++++++++++-
drivers/gpu/drm/drm_edid.c | 5 ++
drivers/gpu/drm/drm_irq.c | 8 ++-
drivers/gpu/drm/drm_sysfs.c | 7 +-
drivers/gpu/drm/i915/i915_dma.c | 12 +---
drivers/gpu/drm/i915/intel_crt.c | 6 +--
drivers/gpu/drm/i915/intel_dvo.c | 1 +
drivers/gpu/drm/i915/intel_hdmi.c | 1 +
drivers/gpu/drm/i915/intel_lvds.c | 8 +--
drivers/gpu/drm/i915/intel_sdvo.c | 1 +
drivers/gpu/drm/i915/intel_tv.c | 1 +
drivers/gpu/drm/radeon/radeon_cp.c | 4 +-
drivers/gpu/drm/radeon/radeon_drv.h | 5 +-
include/drm/drm_crtc.h | 3 +
include/drm/drm_crtc_helper.h | 2 +
17 files changed, 151 insertions(+), 32 deletions(-)

commit fc43896630a421321a19d7970bac27ac94e9d162
Author: Adam Jackson <ajax@xxxxxxxxxx>
Date: Thu Jun 4 10:20:34 2009 +1000

drm: ignore EDID with really tiny modes.

Some EDIDs lie and report tiny modes that aren't possible. Ignore
these modes.

Signed-off-by: Adam Jackson <ajax@xxxxxxxxxx>
Signed-off-by: Dave Airlie <airlied@xxxxxxxxxx>

commit 6c51d1cfa0a370b48a157163340190cf5fd2346b
Author: Ben Skeggs <bskeggs@xxxxxxxxxx>
Date: Tue May 26 10:35:52 2009 +1000

drm: don't associate _DRM_DRIVER maps with a master

A driver will use the _DRM_DRIVER map flag to indicate that it wants
to be responsible for removing the map itself, bypassing the DRM's
automagic cleanup code.

Since the multi-master changes this has been broken, resulting in some
drivers having their registers unmapped before it's finished with them.

Signed-off-by: Ben Skeggs <bskeggs@xxxxxxxxxx>
Signed-off-by: Dave Airlie <airlied@xxxxxxxxxx>

commit 93c05f222413e3a16e8785f252db4726693abd71
Author: Jaswinder Singh Rajput <jaswinder@xxxxxxxxxx>
Date: Thu Jun 4 09:41:19 2009 +1000

drm/i915: intel_lvds.c fix section mismatch

intel_no_lvds[] does not require __initdata as it is used only by

void intel_lvds_init(struct drm_device *dev).

Signed-off-by: Jaswinder Singh Rajput <jaswinder@xxxxxxxxxx>
Signed-off-by: Dave Airlie <airlied@xxxxxxxxxx>

commit c9fb15f60eb517c958dec64dca9357bf62bf2201
Author: Keith Packard <keithp@xxxxxxxxxx>
Date: Sat May 30 20:42:28 2009 -0700

drm: Hook up DPMS property handling in drm_crtc.c. Add drm_helper_connector_dpms.

Making the drm_crtc.c code recognize the DPMS property and invoke the
connector->dpms function doesn't remove any capability from the driver while
reducing code duplication.

That just highlighted the problem with the existing DPMS functions which
could turn off the connector, but failed to turn off any relevant crtcs. The
new drm_helper_connector_dpms function manages all of that, using the
drm_helper-specific crtc and encoder dpms functions, automatically computing
the appropriate DPMS level for each object in the system.

This fixes the current troubles in the i915 driver which left PLLs, pipes
and planes running while in DPMS_OFF mode or even while they were unused.

Signed-off-by: Keith Packard <keithp@xxxxxxxxxx>
Signed-off-by: Dave Airlie <airlied@xxxxxxxxxx>

commit e36ebaf49274ffa78f17b62bcae4c92c33b5b391
Author: Keith Packard <keithp@xxxxxxxxxx>
Date: Sat May 30 20:42:26 2009 -0700

drm: set permissions on edid file to 0444

Without initializing the sysfs attributes for the edid file,
it was created with mode 0, making it difficult for applications to use.

Signed-off-by: Keith Packard <keithp@xxxxxxxxxx>
Signed-off-by: Dave Airlie <airlied@xxxxxxxxxx>

commit 75185c929ed241f5cf1aa28999b8012181e2c7cb
Author: Keith Packard <keithp@xxxxxxxxxx>
Date: Sat May 30 20:42:25 2009 -0700

drm: add newlines to text sysfs files

The contents of various simple text files in sysfs should end with
a newline to make them easier to read from the console.

Signed-off-by: Keith Packard <keithp@xxxxxxxxxx>
Signed-off-by: Dave Airlie <airlied@xxxxxxxxxx>

commit 9863871bd1bbf218b921af5e0bc48ca4f6ea9f12
Author: Dave Airlie <airlied@xxxxxxxx>
Date: Thu Jun 4 07:08:13 2009 +1000

drm/radeon: fix ring free alignment calculations

fd.o bz#21849

We were aligning to +16 dwords, instead of to the next 16dword
boundary in the ring. Fix the calculation to go to the next 16dword
boundary when space checking.

Signed-off-by: Dave Airlie <airlied@xxxxxxxxxx>

commit b8da7de56ca0ad34726478a50d138a29a9ff76cb
Author: Dave Airlie <airlied@xxxxxxxxxx>
Date: Tue Jun 2 16:50:35 2009 +1000

drm: fix irq naming for kms drivers.

allocating devname in the i915 driver was a hack originally and I
forgot to figure out how to do this properly back then.

So this is the cleaner version that just picks devname or driver name
in the irq code.

It removes the devname allocs from the i915 driver.

Signed-off-by: Dave Airlie <airlied@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/