mgag200 fixes
Subsystems (3)
cover mgag200 fixes
Hi,
this is a summer cleanup sale, a patchset containing various fixes for mgag200 driver taken from openSUSE / SUSE kernels. They have been in our kernels for ages, so at least they are supposed to be stable.
Most of patches came from Egbert, and one PM patch from me that is a resubmission of the once-post-and-lost patch.
thanks,
Takashi
===
Egbert Eich (13):
drm/mgag200: Add doublescan and interlace support drm/mgag200: Add additional limits for certain G200 variants drm/mgag200: Fix memleak in error path in mgag200_bo_create() drm/mgag200: Free container instead of member in
mga_user_framebuffer_destroy()
drm/mgag200: Initialize data needed to map fbdev memory drm/mgag200: Simplify function mgag200_ttm_placement() drm/mgag200: Add support for MATROX PCI device IDs 0x520 and 0x521 drm/mgag200: Cleanup cursor BOs properly
drm/mgag200: Add missing drm_connector_unregister() drm/mgag200: Don't use crtc_* parameters for validation drm/mgag200: Consolidate depth/bpp handling drm/mgag200: Add command line option to specify preferred depth drm/mgag200: Add mode validation debugging code
Takashi Iwai (1):
drm/mgag200: Implement basic PM support
drivers/gpu/drm/mgag200/mgag200_drv.c | 54 +++++++++++ drivers/gpu/drm/mgag200/mgag200_drv.h | 22 +++-- drivers/gpu/drm/mgag200/mgag200_fb.c | 14 +-- drivers/gpu/drm/mgag200/mgag200_main.c | 146 +++++++++++++++++++++++++++-- drivers/gpu/drm/mgag200/mgag200_mode.c | 166 ++++++++++++++++++++++++++------- drivers/gpu/drm/mgag200/mgag200_ttm.c | 11 ++- 6 files changed, 357 insertions(+), 56 deletions(-)
Signature · 6 lines
2.13.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 1/14 drm/mgag200: Add doublescan and interlace support
From: Egbert Eich <[email protected]>
This code was ported from the xorg mga driver.
The doublescreen_allowed and interlace_allowed flags are set unconditionally for all models for now.
--- drivers/gpu/drm/mgag200/mgag200_mode.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
drivers/gpu/drm/mgag200/mgag200_mode.c +9 -2
@@ -1624,7 +1624,9 @@ static int mga_vga_mode_valid(struct drm_connector *connector,struct drm_device *dev = connector->dev;struct mga_device *mdev = (struct mga_device *)dev->dev_private;int bpp =32 ; +int lace; + lace = (mode->flags &DRM_MODE_FLAG_INTERLACE ) ?2 :1 ;if (IS_G200_SE (mdev)) {if (mdev->unique_rev_id ==0x01 ) {if (mode->hdisplay >1600 )
@@ -1676,8 +1678,10 @@ static int mga_vga_mode_valid(struct drm_connector *connector,if (mode->crtc_hdisplay >2048 || mode->crtc_hsync_start >4096 || mode->crtc_hsync_end >4096 || mode->crtc_htotal >4096 || - mode->crtc_vdisplay >2048 || mode->crtc_vsync_start >4096 || - mode->crtc_vsync_end >4096 || mode->crtc_vtotal >4096 ) { + mode->crtc_vdisplay >2048 * lace || + mode->crtc_vsync_start >4096 * lace || + mode->crtc_vsync_end >4096 * lace || + mode->crtc_vtotal >4096 * lace) {return MODE_BAD ; }
@@ -1737,6 +1741,9 @@ static struct drm_connector *mga_vga_init(struct drm_device *dev) connector = &mga_connector->base; + connector->interlace_allowed = true; + connector->doublescan_allowed = true; +drm_connector_init (dev, connector, &mga_vga_connector_funcs,DRM_MODE_CONNECTOR_VGA );
Signature · 6 lines
2.13.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/14 drm/mgag200: Add additional limits for certain G200 variants
In reply to Takashi IwaiFrom: Egbert Eich <[email protected]>
According to the use UMS X.Org driver G200 WB chips don't support doublescan
--- drivers/gpu/drm/mgag200/mgag200_mode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/mgag200/mgag200_mode.c +2 -1
@@ -1734,6 +1734,7 @@ static struct drm_connector *mga_vga_init(struct drm_device *dev) {struct drm_connector *connector;struct mga_connector *mga_connector; +struct mga_device *mdev = dev->dev_private; mga_connector =kzalloc (sizeof (struct mga_connector ),GFP_KERNEL );if (!mga_connector)
@@ -1742,7 +1743,7 @@ static struct drm_connector *mga_vga_init(struct drm_device *dev) connector = &mga_connector->base; connector->interlace_allowed = true; - connector->doublescan_allowed = true; + connector->doublescan_allowed = (mdev->type ==G200_WB ) ? false : true;drm_connector_init (dev, connector, &mga_vga_connector_funcs,DRM_MODE_CONNECTOR_VGA );
Signature · 6 lines
2.13.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 3/14 drm/mgag200: Fix memleak in error path in mgag200_bo_create()
In reply to Takashi IwaiFrom: Egbert Eich <[email protected]>
The allocated struct mgag200_bo was not freed in all error paths. This patch consolidates error handling and fixes this.
--- drivers/gpu/drm/mgag200/mgag200_ttm.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
drivers/gpu/drm/mgag200/mgag200_ttm.c +6 -5
@@ -324,10 +324,8 @@ int mgag200_bo_create(struct drm_device *dev, int size, int align,return -ENOMEM ; ret =drm_gem_object_init (dev, &mgabo->gem, size); -if (ret) { -kfree (mgabo); -return ret; - } +if (ret) + goto err; mgabo->bo.bdev = &mdev->ttm.bdev;
@@ -341,10 +339,13 @@ int mgag200_bo_create(struct drm_device *dev, int size, int align, align >>PAGE_SHIFT , false,NULL , acc_size, NULL, NULL, mgag200_bo_ttm_destroy);if (ret) -return ret; + goto err; *pmgabo = mgabo;return 0 ; +err: +kfree (mgabo); +return ret; }static inline u64 mgag200_bo_gpu_offset (struct mgag200_bo *bo)
Signature · 6 lines
2.13.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 4/14 drm/mgag200: Free container instead of member in mga_user_framebuffer_destroy()
In reply to Takashi IwaiFrom: Egbert Eich <[email protected]>
Technically freeing mga_fb->base is the same as freeing mga_fb as 'base' the first member of the data structure.
Still this makes it cleaner.
--- drivers/gpu/drm/mgag200/mgag200_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/mgag200/mgag200_main.c +1 -1
@@ -20,7 +20,7 @@ static void mga_user_framebuffer_destroy(struct drm_framebuffer *fb)drm_gem_object_unreference_unlocked (mga_fb->obj);drm_framebuffer_cleanup (fb); -kfree (fb); +kfree (mga_fb); }static const struct drm_framebuffer_funcs mga_fb_funcs = {
Signature · 6 lines
2.13.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 5/14 drm/mgag200: Initialize data needed to map fbdev memory
In reply to Takashi IwaiFrom: Egbert Eich <[email protected]>
Due to a missing initialization there was no way to map fbdev memory. Thus for example using the Xserver with the fbdev driver failed. This fix adds initialization for fix.smem_start and fix.smem_len in the fb_info structure, which fixes this problem.
--- drivers/gpu/drm/mgag200/mgag200_drv.h | 1 + drivers/gpu/drm/mgag200/mgag200_fb.c | 7 +++++++ drivers/gpu/drm/mgag200/mgag200_mode.c | 3 ++- 3 files changed, 10 insertions(+), 1 deletion(-)
drivers/gpu/drm/mgag200/mgag200_drv.h +1 -0
@@ -250,6 +250,7 @@ void mgag200_modeset_fini(struct mga_device *mdev);/* mgag200_fb.c */ int mgag200_fbdev_init (struct mga_device *mdev);void mgag200_fbdev_fini (struct mga_device *mdev); +void mgag200_fbdev_set_base (struct mga_device *mdev,unsigned long gpu_addr);/* mgag200_main.c */ int mgag200_framebuffer_init(struct drm_device *dev,
drivers/gpu/drm/mgag200/mgag200_fb.c +7 -0
@@ -315,3 +315,10 @@ void mgag200_fbdev_fini(struct mga_device *mdev)mga_fbdev_destroy (mdev->dev, mdev->mfbdev); } + +void mgag200_fbdev_set_base (struct mga_device *mdev,unsigned long gpu_addr) +{ + mdev->mfbdev->helper.fbdev->fix.smem_start = + mdev->mfbdev->helper.fbdev->apertures->ranges[0 ].base + gpu_addr; + mdev->mfbdev->helper.fbdev->fix.smem_len = mdev->mc.vram_size - gpu_addr; +}
drivers/gpu/drm/mgag200/mgag200_mode.c +2 -1
@@ -895,7 +895,8 @@ static int mga_crtc_do_set_base(struct drm_crtc *crtc, ret =ttm_bo_kmap (&bo->bo,0 , bo->bo.num_pages, &bo->kmap);if (ret)DRM_ERROR ("failed to kmap fbcon\n" ); - +else +mgag200_fbdev_set_base (mdev, gpu_addr); }mgag200_bo_unreserve (bo);
Signature · 6 lines
2.13.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 6/14 drm/mgag200: Simplify function mgag200_ttm_placement()
In reply to Takashi IwaiFrom: Egbert Eich <[email protected]>
Just a code refactoring, no functional change.
--- drivers/gpu/drm/mgag200/mgag200_drv.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
drivers/gpu/drm/mgag200/mgag200_drv.h +4 -6
@@ -285,12 +285,10 @@ static inline int mgag200_bo_reserve(struct mgag200_bo *bo, bool no_wait)int ret; ret =ttm_bo_reserve (&bo->bo, true, no_wait,NULL ); -if (ret) { -if (ret != -ERESTARTSYS && ret != -EBUSY ) -DRM_ERROR ("reserve failed %p\n" , bo); -return ret; - } -return 0 ; +if (ret && ret != -ERESTARTSYS && ret != -EBUSY ) +DRM_ERROR ("reserve failed %p\n" , bo); + +return ret; }static inline void mgag200_bo_unreserve (struct mgag200_bo *bo)
Signature · 6 lines
2.13.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 7/14 drm/mgag200: Add support for MATROX PCI device IDs 0x520 and 0x521
In reply to Takashi IwaiFrom: Egbert Eich <[email protected]>
Add two more models G200_PCI and G200 for PCI device IDs 0x520 and 0x521, respectively. They need to retrieve the reference clock and pclk min/max values from BIOS, and set up the PLLs accordingly.
--- drivers/gpu/drm/mgag200/mgag200_drv.c | 2 + drivers/gpu/drm/mgag200/mgag200_drv.h | 7 ++ drivers/gpu/drm/mgag200/mgag200_main.c | 113 +++++++++++++++++++++++++++++++++ drivers/gpu/drm/mgag200/mgag200_mode.c | 81 +++++++++++++++++++++++ 4 files changed, 203 insertions(+)
drivers/gpu/drm/mgag200/mgag200_drv.c +2 -0
@@ -29,6 +29,8 @@ module_param_named(modeset, mgag200_modeset, int, 0400);static struct drm_driver driver;static const struct pci_device_id pciidlist[] = { + {PCI_VENDOR_ID_MATROX ,0x520 ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 ,G200_PCI }, + {PCI_VENDOR_ID_MATROX ,0x521 ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 ,G200 }, {PCI_VENDOR_ID_MATROX ,0x522 ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 ,G200_SE_A }, {PCI_VENDOR_ID_MATROX ,0x524 ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 ,G200_SE_B }, {PCI_VENDOR_ID_MATROX ,0x530 ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 ,G200_EV },
drivers/gpu/drm/mgag200/mgag200_drv.h +7 -0
@@ -175,6 +175,8 @@ struct mga_mc { };enum mga_type { +G200_PCI , +G200 ,G200_SE_A ,G200_SE_B ,G200_WB ,
@@ -219,6 +221,11 @@ struct mga_device {/* SE model number stored in reg 0x1e24 */ u32 unique_rev_id; +struct { +long ref_clk; +long pclk_min; +long pclk_max; + } bios; };
drivers/gpu/drm/mgag200/mgag200_main.c +113 -0
125 lines not on this page · raw message
drivers/gpu/drm/mgag200/mgag200_mode.c +81 -0
99 lines not on this page · raw message
Signature · 6 lines
2.13.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Dave Airlie
maintainerRe: [PATCH 07/14] drm/mgag200: Add support for MATROX PCI device IDs 0x520 and 0x521
Quoted 5 lines · Takashi Iwai
From: Egbert Eich <[email protected]>
Add two more models
G200_PCIand G200 for PCI device IDs0x520and0x521, respectively. They need to retrieve the reference clock and pclk min/max values from BIOS, and set up the PLLs accordingly.
Is there any advantage in supporting these GPUs?
The main idea of the mgag200 driver is for unaccelerated support for server GPUs.
These look like ancient desktop GPUs, I can't imagine we see them shipping in any modern server hw, and also I'm guessing they had basic 3D accel features that the old UMS mga driver would "support".
Dave.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 07/14] drm/mgag200: Add support for MATROX PCI device IDs 0x520 and 0x521
Quoted 9 lines · Dave Airlie
Quoted 5 lines · Takashi Iwai
From: Egbert Eich <[email protected]>
Add two more models
G200_PCIand G200 for PCI device IDs0x520and0x521, respectively. They need to retrieve the reference clock and pclk min/max values from BIOS, and set up the PLLs accordingly.Is there any advantage in supporting these GPUs?
Heh, you are suggesting that KMS support has no merit? ;)
Quoted 6 lines
The main idea of the mgag200 driver is for unaccelerated support for server GPUs.
These look like ancient desktop GPUs, I can't imagine we see them shipping in any modern server hw, and also I'm guessing they had basic 3D accel features that the old UMS mga driver would "support".
Right, but I thought we want to move on to support KMS.
If there is another big picture to glean such leftover devices, I'd love to follow that. But this patch itself is simple enough and it can't regress the other existing mgag200 devices, so it's still worth to consider, IMO.
thanks,
Takashi
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 07/14] drm/mgag200: Add support for MATROX PCI device IDs 0x520 and 0x521
Quoted 6 lines · Takashi Iwai
Quoted 4 lines · Dave Airlie
Quoted 2 lines · Takashi Iwai
From: Egbert Eich <[email protected]>
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Add two more models
G200_PCIand G200 for PCI device IDs0x520and0x521, respectively. They need to retrieve the reference clock and pclk min/max values from BIOS, and set up the PLLs accordingly.Is there any advantage in supporting these GPUs?
Heh, you are suggesting that KMS support has no merit? ;)
The merit of this patch was that I could test a lot of functionality of this driver without having access to a machine with a built-in mgag200. Such servers tend not to be home office friendly ;)
Instead I was able to pull a vintage g200 discrete PCI card from my collection and shove it into a test machine.
So there was some merit to have this patch and it was small enough to preserve it.
Cheers,
Egbert.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 8/14 drm/mgag200: Cleanup cursor BOs properly
In reply to Takashi IwaiFrom: Egbert Eich <[email protected]>
Cursor BOs should be cleaned up properly on error or when unloading the driver.
--- drivers/gpu/drm/mgag200/mgag200_main.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
drivers/gpu/drm/mgag200/mgag200_main.c +9 -2
@@ -354,9 +354,12 @@ int mgag200_driver_load(struct drm_device *dev, unsigned long flags)/* Make small buffers to store a hardware cursor (double buffered icon updates) */ mgag200_bo_create (dev,roundup (48 *64 ,PAGE_SIZE ),0 ,0 , &mdev->cursor.pixels_1); -mgag200_bo_create (dev,roundup (48 *64 ,PAGE_SIZE ),0 ,0 , - &mdev->cursor.pixels_2); +if (mdev->cursor.pixels_1) +mgag200_bo_create (dev,roundup (48 *64 ,PAGE_SIZE ),0 ,0 , + &mdev->cursor.pixels_2);if (!mdev->cursor.pixels_2 || !mdev->cursor.pixels_1) { +if (mdev->cursor.pixels_1) +drm_gem_object_unreference_unlocked (&mdev->cursor.pixels_1->gem); mdev->cursor.pixels_1 =NULL ; mdev->cursor.pixels_2 =NULL ; dev_warn(&dev->pdev->dev,
@@ -384,6 +387,10 @@ void mgag200_driver_unload(struct drm_device *dev)if (mdev ==NULL )return ;mgag200_modeset_fini (mdev); +if (mdev->cursor.pixels_1) +drm_gem_object_unreference_unlocked (&mdev->cursor.pixels_1->gem); +if (mdev->cursor.pixels_2) +drm_gem_object_unreference_unlocked (&mdev->cursor.pixels_2->gem);mgag200_fbdev_fini (mdev);drm_mode_config_cleanup (dev);mgag200_mm_fini (mdev);
Signature · 6 lines
2.13.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 9/14 drm/mgag200: Add missing drm_connector_unregister()
In reply to Takashi IwaiFrom: Egbert Eich <[email protected]>
When destroying connector unregister it.
--- drivers/gpu/drm/mgag200/mgag200_mode.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/mgag200/mgag200_mode.c +1 -0
@@ -1796,6 +1796,7 @@ static void mga_connector_destroy(struct drm_connector *connector) {struct mga_connector *mga_connector =to_mga_connector (connector);mgag200_i2c_destroy (mga_connector->i2c); +drm_connector_unregister (connector);drm_connector_cleanup (connector);kfree (connector); }
Signature · 6 lines
2.13.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 09/14] drm/mgag200: Add missing drm_connector_unregister()
Quoted 7 lines · Takashi Iwai
From: Egbert Eich <[email protected]>
When destroying connector unregister it.
Signed-off-by Egbert Eich <[email protected]>Signed-off-by Takashi Iwai <[email protected]>
This one should be also superfluous as Daniel pointed for the similar patch for cirrus. Please disregard this one.
BTW, I guess the patch was inspired from ast driver code, but then it implies that the call in ast_mode.c is also superfluous. Shall I cook up a patch?
thanks,
Takashi
Quoted 19 lines
--- drivers/gpu/drm/mgag200/mgag200_mode.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/mgag200/mgag200_mode.c +1
-0@@ -1796,6 +1796,7 @@ static void mga_connector_destroy(struct drm_connector *connector) {struct mga_connector *mga_connector =to_mga_connector (connector);mgag200_i2c_destroy (mga_connector->i2c); +drm_connector_unregister (connector);drm_connector_cleanup (connector);kfree (connector); }Signature · 1 line
2.13.2
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 09/14] drm/mgag200: Add missing drm_connector_unregister()
Quoted 10 lines · Takashi Iwai
Quoted 7 lines · Takashi Iwai
From: Egbert Eich <[email protected]>
When destroying connector unregister it.
Signed-off-by Egbert Eich <[email protected]>Signed-off-by Takashi Iwai <[email protected]>
Quoted 7 lines
This one should be also superfluous as Daniel pointed for the similar patch for cirrus. Please disregard this one.
BTW, I guess the patch was inspired from ast driver code, but then it implies that the call in
ast_mode.cis also superfluous. Shall I cook up a patch?
Would be good. The entire drm unload code paths are in fairly bad shape, with lots of cargo-culted copypasta going on ...
-Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 10/14 drm/mgag200: Don't use crtc_* parameters for validation
In reply to Takashi IwaiFrom: Egbert Eich <[email protected]>
The crtc_* are wrong references as the mode parameters to validate, use the ones without crtc_ prefix instead.
--- drivers/gpu/drm/mgag200/mgag200_mode.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/gpu/drm/mgag200/mgag200_mode.c +6 -6
@@ -1758,12 +1758,12 @@ static int mga_vga_mode_valid(struct drm_connector *connector,return MODE_H_ILLEGAL ; } -if (mode->crtc_hdisplay >2048 || mode->crtc_hsync_start >4096 || - mode->crtc_hsync_end >4096 || mode->crtc_htotal >4096 || - mode->crtc_vdisplay >2048 * lace || - mode->crtc_vsync_start >4096 * lace || - mode->crtc_vsync_end >4096 * lace || - mode->crtc_vtotal >4096 * lace) { +if (mode->hdisplay >2048 || mode->hsync_start >4096 || + mode->hsync_end >4096 || mode->htotal >4096 || + mode->vdisplay >2048 * lace || + mode->vsync_start >4096 * lace || + mode->vsync_end >4096 * lace || + mode->vtotal >4096 * lace) {return MODE_BAD ; }
Signature · 6 lines
2.13.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 10/14] drm/mgag200: Don't use crtc_* parameters for validation
Quoted 4 lines · Takashi Iwai
From: Egbert Eich <[email protected]>
The crtc_* are wrong references as the mode parameters to validate, use the ones without
crtc_prefix instead.
They only differ for interlaced/double. You might want to set the set_crtcinfo flags differently. crtc_ are meant to be the values programmed into hw, and this looks like hw limits here.
Just fyi, I didn't read the driver code, so probably wrong :-) -Daniel
Quoted 33 lines
Signed-off-by Egbert Eich <[email protected]>Signed-off-by Takashi Iwai <[email protected]>--- drivers/gpu/drm/mgag200/mgag200_mode.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)drivers/gpu/drm/mgag200/mgag200_mode.c +6
-6@@ -1758,12 +1758,12 @@ static int mga_vga_mode_valid(struct drm_connector *connector,return MODE_H_ILLEGAL ; } -if (mode->crtc_hdisplay >2048 || mode->crtc_hsync_start >4096 || - mode->crtc_hsync_end >4096 || mode->crtc_htotal >4096 || - mode->crtc_vdisplay >2048 * lace || - mode->crtc_vsync_start >4096 * lace || - mode->crtc_vsync_end >4096 * lace || - mode->crtc_vtotal >4096 * lace) { +if (mode->hdisplay >2048 || mode->hsync_start >4096 || + mode->hsync_end >4096 || mode->htotal >4096 || + mode->vdisplay >2048 * lace || + mode->vsync_start >4096 * lace || + mode->vsync_end >4096 * lace || + mode->vtotal >4096 * lace) {return MODE_BAD ; }Signature · 1 line
2.13.2
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 11/14 drm/mgag200: Consolidate depth/bpp handling
In reply to Takashi IwaiFrom: Egbert Eich <[email protected]>
The depth/bpp handling for chips with limited memory in commit 918be888d613 ("drm/mgag200: on cards with < 2MB VRAM default to 16-bit") was incomplete: the bpp limits were applied to mode validation.
This consolidates dpeth/bpp handling, adds it to mode validation and moves the code which reads the command line specified depth into the correct location.
--- drivers/gpu/drm/mgag200/mgag200_drv.h | 2 ++ drivers/gpu/drm/mgag200/mgag200_fb.c | 7 +------ drivers/gpu/drm/mgag200/mgag200_main.c | 9 ++++++--- drivers/gpu/drm/mgag200/mgag200_mode.c | 14 +++++++------- 4 files changed, 16 insertions(+), 16 deletions(-)
drivers/gpu/drm/mgag200/mgag200_drv.h +2 -0
@@ -209,6 +209,8 @@ struct mga_device {int has_sdram;struct drm_display_mode mode; +int preferred_bpp; +int bpp_shifts[4 ];int fb_mtrr;
drivers/gpu/drm/mgag200/mgag200_fb.c +1 -6
@@ -267,11 +267,6 @@ int mgag200_fbdev_init(struct mga_device *mdev) {struct mga_fbdev *mfbdev;int ret; -int bpp_sel =32 ; - -/* prefer 16bpp on low end gpus with limited VRAM */ -if (IS_G200_SE (mdev) && mdev->mc.vram_size < (2048 *1024 )) - bpp_sel =16 ; mfbdev =devm_kzalloc (mdev->dev->dev,sizeof (struct mga_fbdev ),GFP_KERNEL );if (!mfbdev)
@@ -294,7 +289,7 @@ int mgag200_fbdev_init(struct mga_device *mdev)/* disable all the possible outputs/crtcs before entering KMS mode */ drm_helper_disable_unused_functions (mdev->dev); - ret =drm_fb_helper_initial_config (&mfbdev->helper, bpp_sel); + ret =drm_fb_helper_initial_config (&mfbdev->helper, mdev->preferred_bpp);if (ret) goto err_fb_setup;
drivers/gpu/drm/mgag200/mgag200_main.c +6 -3
@@ -339,10 +339,13 @@ int mgag200_driver_load(struct drm_device *dev, unsigned long flags)drm_mode_config_init (dev); dev->mode_config.funcs = (void *)&mga_mode_funcs; -if (IS_G200_SE (mdev) && mdev->mc.vram_size < (2048 *1024 )) - dev->mode_config.preferred_depth =16 ; -else +if (IS_G200_SE (mdev) && mdev->mc.vram_size < (2048 *1024 )) { +/* prefer 16bpp on low end gpus with limited VRAM */ + mdev->preferred_bpp = dev->mode_config.preferred_depth =16 ; + }else { + mdev->preferred_bpp =32 ; dev->mode_config.preferred_depth =24 ; + } dev->mode_config.prefer_shadow =1 ; r =mgag200_modeset_init (mdev);
drivers/gpu/drm/mgag200/mgag200_mode.c +7 -7
@@ -1705,9 +1705,15 @@ static int mga_vga_mode_valid(struct drm_connector *connector, {struct drm_device *dev = connector->dev;struct mga_device *mdev = (struct mga_device *)dev->dev_private; -int bpp =32 ; +int bpp;int lace; + bpp = mdev->preferred_bpp; +/* Validate the mode input by the user */ +if (connector->cmdline_mode.specified && + connector->cmdline_mode.bpp_specified) + bpp = connector->cmdline_mode.bpp; + lace = (mode->flags &DRM_MODE_FLAG_INTERLACE ) ?2 :1 ;if (IS_G200_SE (mdev)) {if (mdev->unique_rev_id ==0x01 ) {
@@ -1767,12 +1773,6 @@ static int mga_vga_mode_valid(struct drm_connector *connector,return MODE_BAD ; } -/* Validate the mode input by the user */ -if (connector->cmdline_mode.specified) { -if (connector->cmdline_mode.bpp_specified) - bpp = connector->cmdline_mode.bpp; - } -if ((mode->hdisplay * mode->vdisplay * (bpp/8 )) > mdev->mc.vram_size) {if (connector->cmdline_mode.specified) connector->cmdline_mode.specified = false;
Signature · 6 lines
2.13.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 11/14] drm/mgag200: Consolidate depth/bpp handling
Dear Takashi,
Thank you for posting these patches for review.
Am Dienstag, den 18.07.2017, 16:43 +0200 schrieb Takashi Iwai:
Quoted 8 lines
From: Egbert Eich <[email protected]>
The depth/bpp handling for chips with limited memory in commit
918be888d613("drm/mgag200: on cards with < 2MB VRAM default to 16-bit") was incomplete: the bpp limits were applied to mode validation.This consolidates dpeth/bpp handling, adds it to mode validation
depth
Quoted 4 lines
and moves the code which reads the command line specified depth into the correct location.
Fixes 918be888d613 ("drm/mgag200: on cards with < 2MB VRAM default to 16-bit")
``` $ git tag --contains 918be888d613 | head -1 v3.14 ```
Please mark this as stable then too?
Also, could the original commit author time-stamps be preserved if you have them in your SUSE repositories? The Date line could be added below the From line. That would help to know for how long the changes have been tested.
Quoted 8 lines
Signed-off-by Egbert Eich <[email protected]>Signed-off-by Takashi Iwai <[email protected]>--- drivers/gpu/drm/mgag200/mgag200_drv.h | 2 ++ drivers/gpu/drm/mgag200/mgag200_fb.c | 7 +------ drivers/gpu/drm/mgag200/mgag200_main.c | 9 ++++++--- drivers/gpu/drm/mgag200/mgag200_mode.c | 14 +++++++------- 4 files changed, 16 insertions(+), 16 deletions(-)
[…]
Otherwise this looks fine.
Thanks,
Paul
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 11/14] drm/mgag200: Consolidate depth/bpp handling
Quoted 22 lines · Paul Menzel
Dear Takashi,
Thank you for posting these patches for review.
Am Dienstag, den 18.07.2017, 16:43 +0200 schrieb Takashi Iwai:
Quoted 8 lines
From: Egbert Eich <[email protected]>
The depth/bpp handling for chips with limited memory in commit
918be888d613("drm/mgag200: on cards with < 2MB VRAM default to 16-bit") was incomplete: the bpp limits were applied to mode validation.This consolidates dpeth/bpp handling, adds it to mode validation
depth
Quoted 3 lines
and moves the code which reads the command line specified depth into the correct location.
Quoted 8 lines
Quoted 1 line
Fixes 918be888d613 ("drm/mgag200: on cards with < 2MB VRAM default to 16-bit")``` $ git tag --contains 918be888d613 | head -1 v3.14 ```Please mark this as stable then too?
I guess it deserves for stable, yes.
I leave the decision to the maintainer.
Quoted 4 lines
Also, could the original commit author time-stamps be preserved if you have them in your SUSE repositories? The
Dateline could be added below theFromline. That would help to know for how long the changes have been tested.
Unfortunately, we don't know how old the original patch was. The date isn't preserved in the original patch, either, as it's stored in quilt queue, not committed in a kernel git tree.
In general, the original date isn't that important, so let's skip that part.
Quoted 10 lines
Quoted 9 lines
Signed-off-by Egbert Eich <[email protected]>Signed-off-by Takashi Iwai <[email protected]>--- drivers/gpu/drm/mgag200/mgag200_drv.h | 2 ++ drivers/gpu/drm/mgag200/mgag200_fb.c | 7 +------ drivers/gpu/drm/mgag200/mgag200_main.c | 9 ++++++--- drivers/gpu/drm/mgag200/mgag200_mode.c | 14 +++++++------- 4 files changed, 16 insertions(+), 16 deletions(-)
Quoted 3 lines
[…]
Otherwise this looks fine.
Thanks for your review!
Takashi
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 12/14 drm/mgag200: Add command line option to specify preferred depth
In reply to Takashi IwaiFrom: Egbert Eich <[email protected]>
G200 is old hardware. When KMS was designed around 2007 none of the chipsets current at this time had any restrictions to video modes depending on the depth. Thus video modes are validated independent of the depth which is purely a property of the scanout buffer.
The mgag200 driver however has some bandwidth limitations and the bandwidth required depends on the bpp. Since the video mode is validated before the depth/bpp is actually known we are missing an important piece of information at validation time.
So far we assumed the highest possible bpp value (except for systems with video memory <= 2MB). Unfortunately this will kill some badly needed higher res modes at lower depths.
This patch adds a cludge which allows to set the desired depth for the mgag200 driver with the boot option mgag200.preferreddepth=16|24. This is a KLUDGE(!) to get around the shortcomings of the mode setting model for older hardware.
--- drivers/gpu/drm/mgag200/mgag200_drv.c | 11 +++++++++++ drivers/gpu/drm/mgag200/mgag200_drv.h | 2 ++ drivers/gpu/drm/mgag200/mgag200_main.c | 17 +++++++++++++---- 3 files changed, 26 insertions(+), 4 deletions(-)
drivers/gpu/drm/mgag200/mgag200_drv.c +11 -0
@@ -22,9 +22,12 @@* functions */ int mgag200_modeset =-1 ; +int mgag200_preferred_depth__read_mostly ;MODULE_PARM_DESC (modeset,"Disable/Enable modesetting" );module_param_named (modeset, mgag200_modeset, int,0400 ); +MODULE_PARM_DESC (preferreddepth,"Set preferred bpp" ); +module_param_named (preferreddepth, mgag200_preferred_depth, int,0400 );static struct drm_driver driver;
@@ -122,6 +125,14 @@ static int __init mgag200_init(void)if (mgag200_modeset ==0 )return -EINVAL ; +switch (mgag200_preferred_depth) { +case 0 :/* driver default */ +case 16 : +case 24 : +break ; +default : +return -EINVAL ; + }return drm_pci_init (&driver, &mgag200_pci_driver); }
drivers/gpu/drm/mgag200/mgag200_drv.h +2 -0
@@ -318,4 +318,6 @@ int mga_crtc_cursor_set(struct drm_crtc *crtc, struct drm_file *file_priv, uint32_t handle, uint32_t width, uint32_t height);int mga_crtc_cursor_move (struct drm_crtc *crtc,int x,int y); +extern int mgag200_preferred_depth__read_mostly ; +#endif /* __MGAG200_DRV_H__ */
drivers/gpu/drm/mgag200/mgag200_main.c +13 -4
@@ -339,12 +339,21 @@ int mgag200_driver_load(struct drm_device *dev, unsigned long flags)drm_mode_config_init (dev); dev->mode_config.funcs = (void *)&mga_mode_funcs; -if (IS_G200_SE (mdev) && mdev->mc.vram_size < (2048 *1024 )) { +if (mgag200_preferred_depth ==0 ) {/* prefer 16bpp on low end gpus with limited VRAM */ - mdev->preferred_bpp = dev->mode_config.preferred_depth =16 ; +if (IS_G200_SE (mdev) && mdev->mc.vram_size <=2048 *1024 ) { + mdev->preferred_bpp = + dev->mode_config.preferred_depth =16 ; + }else { + mdev->preferred_bpp =32 ; + dev->mode_config.preferred_depth =24 ; + } }else { - mdev->preferred_bpp =32 ; - dev->mode_config.preferred_depth =24 ; +if (mgag200_preferred_depth ==16 ) + mdev->preferred_bpp =16 ; +else /* mgag200_preferred_depth == 24 */ + mdev->preferred_bpp =32 ; + dev->mode_config.preferred_depth = mgag200_preferred_depth; } dev->mode_config.prefer_shadow =1 ;
Signature · 6 lines
2.13.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 13/14 drm/mgag200: Add mode validation debugging code
In reply to Takashi IwaiFrom: Egbert Eich <[email protected]>
Give more verbose debug message at mode bandwidth checks.
--- drivers/gpu/drm/mgag200/mgag200_mode.c | 51 +++++++++++++++++++++------------- 1 file changed, 31 insertions(+), 20 deletions(-)
drivers/gpu/drm/mgag200/mgag200_mode.c +31 -20
@@ -1698,6 +1698,21 @@ static uint32_t mga_vga_calculate_mode_bandwidth(struct drm_display_mode *mode,return (uint32_t )(bandwidth); } +static bool mga_vga_check_mode_bandwidth (struct drm_display_mode *mode, +int bits_per_pixel, +unsigned int max_bw) +{ +unsigned int bw; + + bw =mga_vga_calculate_mode_bandwidth (mode, bits_per_pixel); +if (bw > max_bw) { +DRM_DEBUG_KMS ("Mode %d:%s exceeds bandwidth: %d > %d" , + mode->base.id, mode->name, bw, max_bw); +return false; + } +return true; +} +#define MODE_BANDWIDTH MODE_BAD static int mga_vga_mode_valid(struct drm_connector *connector,
@@ -1721,20 +1736,20 @@ static int mga_vga_mode_valid(struct drm_connector *connector,return MODE_VIRTUAL_X ;if (mode->vdisplay >1200 )return MODE_VIRTUAL_Y ; -if (mga_vga_calculate_mode_bandwidth (mode, bpp) - > (24400 *1024 )) +if (mga_vga_check_mode_bandwidth (mode, bpp, +24400 *1024 ))return MODE_BANDWIDTH ; }else if (mdev->unique_rev_id ==0x02 ) {if (mode->hdisplay >1920 )return MODE_VIRTUAL_X ;if (mode->vdisplay >1200 )return MODE_VIRTUAL_Y ; -if (mga_vga_calculate_mode_bandwidth (mode, bpp) - > (30100 *1024 )) +if (mga_vga_check_mode_bandwidth (mode, bpp, +30100 *1024 ))return MODE_BANDWIDTH ; }else { -if (mga_vga_calculate_mode_bandwidth (mode, bpp) - > (55000 *1024 )) +if (mga_vga_check_mode_bandwidth (mode, bpp, +55000 *1024 ))return MODE_BANDWIDTH ; } }else if (mdev->type ==G200_WB ) {
@@ -1742,21 +1757,17 @@ static int mga_vga_mode_valid(struct drm_connector *connector,return MODE_VIRTUAL_X ;if (mode->vdisplay >1024 )return MODE_VIRTUAL_Y ; -if (mga_vga_calculate_mode_bandwidth (mode, - bpp > (31877 *1024 ))) +if (mga_vga_check_mode_bandwidth (mode, bpp,31877 *1024 )) +return MODE_BANDWIDTH ; + }else if (mdev->type ==G200_EV ) { +if (mga_vga_check_mode_bandwidth (mode, bpp,32700 *1024 )) +return MODE_BANDWIDTH ; + }else if (mdev->type ==G200_EH ) { +if (mga_vga_check_mode_bandwidth (mode, bpp,37500 *1024 )) +return MODE_BANDWIDTH ; + }else if (mdev->type ==G200_ER ) { +if (mga_vga_check_mode_bandwidth (mode, bpp,55000 *1024 ))return MODE_BANDWIDTH ; - }else if (mdev->type ==G200_EV && - (mga_vga_calculate_mode_bandwidth (mode, bpp) - > (32700 *1024 ))) { -return MODE_BANDWIDTH ; - }else if (mdev->type ==G200_EH && - (mga_vga_calculate_mode_bandwidth (mode, bpp) - > (37500 *1024 ))) { -return MODE_BANDWIDTH ; - }else if (mdev->type ==G200_ER && - (mga_vga_calculate_mode_bandwidth (mode, - bpp) > (55000 *1024 ))) { -return MODE_BANDWIDTH ; } if ((mode->hdisplay % 8) != 0 || (mode->hsync_start % 8) != 0 ||
Signature · 6 lines
2.13.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 14/14 drm/mgag200: Implement basic PM support
In reply to Takashi IwaiAdd a basic PM support to mgag200 driver.
As there is no hardware specific init codes for this device, the callbacks are written in a fairly simple way.
--- drivers/gpu/drm/mgag200/mgag200_drv.c | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+)
drivers/gpu/drm/mgag200/mgag200_drv.c +41 -0
@@ -11,6 +11,7 @@#include <linux/module.h> #include <linux/console.h> #include <drm/drmP.h> +#include <drm/drm_crtc_helper.h> #include "mgag200_drv.h"
@@ -81,6 +82,45 @@ static void mga_pci_remove(struct pci_dev *pdev)drm_put_dev (dev); } +#ifdef CONFIG_PM_SLEEP +static int mgag200_pm_suspend (struct device *dev) +{ +struct drm_device *drm_dev =dev_get_drvdata (dev); +struct mga_device *mdev = drm_dev->dev_private; + +drm_kms_helper_poll_disable (drm_dev); + +if (mdev->mfbdev) { +console_lock (); +drm_fb_helper_set_suspend (&mdev->mfbdev->helper,1 ); +console_unlock (); + } + +return 0 ; +} + +static int mgag200_pm_resume (struct device *dev) +{ +struct drm_device *drm_dev =dev_get_drvdata (dev); +struct mga_device *mdev = drm_dev->dev_private; + +drm_helper_resume_force_mode (drm_dev); + +if (mdev->mfbdev) { +console_lock (); +drm_fb_helper_set_suspend (&mdev->mfbdev->helper,0 ); +console_unlock (); + } + +drm_kms_helper_poll_enable (drm_dev); +return 0 ; +} +#endif + +static const struct dev_pm_ops mgag200_pm_ops = { +SET_SYSTEM_SLEEP_PM_OPS (mgag200_pm_suspend, mgag200_pm_resume) +}; +static const struct file_operations mgag200_driver_fops = { .owner =THIS_MODULE , .open = drm_open,
@@ -116,6 +156,7 @@ static struct pci_driver mgag200_pci_driver = { .id_table = pciidlist, .probe = mga_pci_probe, .remove = mga_pci_remove, + .driver.pm = &mgag200_pm_ops, };static int __init mgag200_init (void )
Signature · 6 lines
2.13.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 35 lines · Takashi Iwai
Hi,
this is a summer cleanup sale, a patchset containing various fixes for mgag200 driver taken from openSUSE / SUSE kernels. They have been in our kernels for ages, so at least they are supposed to be stable.
Most of patches came from Egbert, and one PM patch from me that is a resubmission of the once-post-and-lost patch.
thanks,
Takashi
===
Egbert Eich (13):
drm/mgag200: Add doublescan and interlace support drm/mgag200: Add additional limits for certain G200 variants drm/mgag200: Fix memleak in error path inmgag200_bo_create()drm/mgag200: Free container instead of member in
mga_user_framebuffer_destroy()
drm/mgag200: Initialize data needed to map fbdev memory drm/mgag200: Simplify functionmgag200_ttm_placement()drm/mgag200: Add support for MATROX PCI device IDs0x520and0x521drm/mgag200: Cleanup cursor BOs properly
drm/mgag200: Add missingdrm_connector_unregister()drm/mgag200: Don't use crtc_* parameters for validation drm/mgag200: Consolidate depth/bpp handling drm/mgag200: Add command line option to specify preferred depth drm/mgag200: Add mode validation debugging codeTakashi Iwai (1):
drm/mgag200: Implement basic PM support
Quoted 8 lines
drivers/gpu/drm/mgag200/mgag200_drv.c | 54 +++++++++++ drivers/gpu/drm/mgag200/mgag200_drv.h | 22 +++-- drivers/gpu/drm/mgag200/mgag200_fb.c | 14 +-- drivers/gpu/drm/mgag200/mgag200_main.c | 146 +++++++++++++++++++++++++++-- drivers/gpu/drm/mgag200/mgag200_mode.c | 166 ++++++++++++++++++++++++++------- drivers/gpu/drm/mgag200/mgag200_ttm.c | 11 ++- 6 files changed, 357 insertions(+), 56 deletions(-)
Patches were tested against G200eW3, G200e4 & G200eH3 and it's working fine and we haven't seen any issues.
There's one thing though, the patch "[PATCH 01/14] drm/mgag200: Add doublescan and interlace support" may cause problems as doublescan and interlace aren't tested and aren't officially supported on the G200 server line products. So, I'm wondering if it shouldn't be kept disabled for them.
Signature · 10 lines
Mathieu Larouche Ing./Eng. Software Designer Matrox Graphics Inc. Phone : 514 822-6000 x7905 Email : [email protected] _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 46 lines · Mathieu Larouche
Quoted 35 lines · Takashi Iwai
Hi,
this is a summer cleanup sale, a patchset containing various fixes for mgag200 driver taken from openSUSE / SUSE kernels. They have been in our kernels for ages, so at least they are supposed to be stable.
Most of patches came from Egbert, and one PM patch from me that is a resubmission of the once-post-and-lost patch.
thanks,
Takashi
===
Egbert Eich (13):
drm/mgag200: Add doublescan and interlace support drm/mgag200: Add additional limits for certain G200 variants drm/mgag200: Fix memleak in error path inmgag200_bo_create()drm/mgag200: Free container instead of member in
mga_user_framebuffer_destroy()
drm/mgag200: Initialize data needed to map fbdev memory drm/mgag200: Simplify functionmgag200_ttm_placement()drm/mgag200: Add support for MATROX PCI device IDs0x520and0x521drm/mgag200: Cleanup cursor BOs properly
drm/mgag200: Add missingdrm_connector_unregister()drm/mgag200: Don't use crtc_* parameters for validation drm/mgag200: Consolidate depth/bpp handling drm/mgag200: Add command line option to specify preferred depth drm/mgag200: Add mode validation debugging codeTakashi Iwai (1):
drm/mgag200: Implement basic PM supportQuoted 8 lines
drivers/gpu/drm/mgag200/mgag200_drv.c | 54 +++++++++++ drivers/gpu/drm/mgag200/mgag200_drv.h | 22 +++-- drivers/gpu/drm/mgag200/mgag200_fb.c | 14 +-- drivers/gpu/drm/mgag200/mgag200_main.c | 146 +++++++++++++++++++++++++++-- drivers/gpu/drm/mgag200/mgag200_mode.c | 166 ++++++++++++++++++++++++++------- drivers/gpu/drm/mgag200/mgag200_ttm.c | 11 ++- 6 files changed, 357 insertions(+), 56 deletions(-)
Quoted 2 lines
Patches were tested against G200eW3, G200e4 & G200eH3 and it's working fine and we haven't seen any issues.
Thanks for testing!
Quoted 5 lines
There's one thing though, the patch "[PATCH 01/14] drm/mgag200: Add doublescan and interlace support" may cause problems as doublescan and interlace aren't tested and aren't officially supported on the G200 server line products. So, I'm wondering if it shouldn't be kept disabled for them.
OK, that's good to know. My understanding is that the patch was brought only for adapting the UMS X driver quality, but not for actually fixing the real bugs. Let's drop that patch, then.
Takashi
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel