[PATCH] drm: bump DRM_CONNECTOR_MAX_ENCODER from 2 to 3

2012-01-12 Thread skeg...@gmail.com
From: Ben Skeggs There exists at least one NVIDIA GPU (Quadro NVS 300) that has a DMS-59 connector which is capable of supporting DisplayPort, TMDS and VGA on a single connector. We need to bump the allowed encoder limit to support all three configs. Signed-off-by: Ben Skeggs --- include/drm/

[PATCH] drm/ttm: request zeroed system memory pages for new TT buffer objects

2011-09-14 Thread skeg...@gmail.com
From: Ben Skeggs Fixes an information leak to userspace, we were handing out un-zeroed pages for any newly created TTM_PL_TT buffer. Reported-by: Marcin Slusarz Signed-off-by: Ben Skeggs Tested-by: Marcin Slusarz Cc: stable at kernel.org --- drivers/gpu/drm/ttm/ttm_bo.c |3 ++- 1 files c

[PATCH 2/2] drm/ttm: ensure ttm for new node is bound before calling move_notify()

2011-08-22 Thread skeg...@gmail.com
From: Ben Skeggs This was true for new TTM_PL_SYSTEM and new TTM_PL_TT cases, but wasn't the case on TTM_PL_SYSTEM<->TTM_PL_TT moves, which causes trouble on some paths as nouveau's move_notify() hook requires that the dma addresses be valid at this point. Signed-off-by: Ben Skeggs --- drivers

[PATCH 1/2] drm/ttm: unbind ttm before destroying node in accel move cleanup

2011-08-22 Thread skeg...@gmail.com
From: Ben Skeggs Nouveau makes the assumption that if a TTM is bound there will be a mm_node around for it and the backwards ordering here resulted in a use-after-free on some eviction paths. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/ttm/ttm_bo_util.c |2 +- 1 files changed, 1 insertio

[PATCH] drm: make sure drm_vblank_init() has been called before touching vbl_lock

2011-07-04 Thread skeg...@gmail.com
From: Ben Skeggs Signed-off-by: Ben Skeggs --- drivers/gpu/drm/drm_irq.c | 15 +-- 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c index 2022a5c..c3c87a1 100644 --- a/drivers/gpu/drm/drm_irq.c +++ b/drivers/gpu/d

[PATCH] drm/kms: allow drm_mode_group with no objects

2011-07-04 Thread skeg...@gmail.com
From: Ben Skeggs Sometimes we could be controlling a device (such as an NVIDIA Tesla) that has no crtcs/encoders/connectors. One could argue that the driver should unset DRIVER_MODESET in this case, but that changes a whole heap of the DRM's other behaviours, and it's much easier to just be a mo

[PATCH 1/2] drm/nouveau: fixup init/fini sequence to deal with no CRTCs

2011-07-04 Thread skeg...@gmail.com
From: Ben Skeggs Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/nouveau_object.c |4 +- drivers/gpu/drm/nouveau/nouveau_state.c | 64 +- 2 files changed, 30 insertions(+), 38 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_object.c b/drivers

[PATCH] drm/gem: add hooks to notify driver when object handle is created/destroyed

2011-06-09 Thread skeg...@gmail.com
From: Ben Skeggs Nouveau is going to use these hooks to map/unmap objects from a client's private GPU address space. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/drm_gem.c | 21 +++-- include/drm/drmP.h|2 ++ 2 files changed, 21 insertions(+), 2 deletions(-) dif

[PATCH] drm/gem: add hooks to notify driver when object handle is created/destroyed

2011-06-08 Thread skeg...@gmail.com
From: Ben Skeggs Nouveau is going to use these hooks to map/unmap objects from a client's private GPU address space. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/drm_gem.c | 21 +++-- include/drm/drmP.h|2 ++ 2 files changed, 21 insertions(+), 2 deletions(-) dif

[PATCH] drm: export drm_find_cea_extension to drivers

2011-03-30 Thread skeg...@gmail.com
From: Ben Skeggs Nouveau needs access to this structure to build an ELD block for use by the HDA audio codec. Signed-off-by: Ben Skeggs --- drivers/gpu/drm/drm_edid.c |3 ++- include/drm/drm_crtc.h |1 + 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm