Patchwork drm/gma500: Increase max resolution for mode setting

login
register
mail settings
Submitter Patrik Jakobsson
Date June 9, 2013, 3:26 p.m.
Message ID <1370791560-4989-1-git-send-email-patrik.r.jakobsson@gmail.com>
Download mbox | patch
Permalink /patch/250225/
State New
Headers show

Comments

Patrik Jakobsson - June 9, 2013, 3:26 p.m.
Hi stable maintainers, I found a bug report that is fixed by this patch
Upstream commit id: cbbd379aa43890f36da934f5af619d2fb8ec3d87
I've checked it against 3.9 and 3.8 but can probably be applied to older
kernels if needed. Bugzilla entry is added below.

Thanks
Patrik Jakobsson

Commit message:

By having a higher max resolution we can now set up a virtual
framebuffer that spans several monitors. 4096 should be ok since we're
gen 3 or higher and should be enough for most dual head setups.

Bugzilla: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-modesetting/+bug/1169147
Cc: kernel-team@lists.ubuntu.com
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
---
 drivers/gpu/drm/gma500/framebuffer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Luis Henriques - June 11, 2013, 11:47 a.m.
Patrik Jakobsson <patrik.r.jakobsson@gmail.com> writes:

> Hi stable maintainers, I found a bug report that is fixed by this patch
> Upstream commit id: cbbd379aa43890f36da934f5af619d2fb8ec3d87
> I've checked it against 3.9 and 3.8 but can probably be applied to older
> kernels if needed. Bugzilla entry is added below.

Thanks, I'm queuing it for the 3.5 kernel as well.

Cheers,
Ben Hutchings - June 13, 2013, 3:39 a.m.
On Sun, 2013-06-09 at 17:26 +0200, Patrik Jakobsson wrote:
> Hi stable maintainers, I found a bug report that is fixed by this patch
> Upstream commit id: cbbd379aa43890f36da934f5af619d2fb8ec3d87
> I've checked it against 3.9 and 3.8 but can probably be applied to older
> kernels if needed. Bugzilla entry is added below.

This applies to 3.2 if I adjust the filename (the driver was in staging
then).  So I've added it to the queue.

Ben.

> Thanks
> Patrik Jakobsson
> 
> Commit message:
> 
> By having a higher max resolution we can now set up a virtual
> framebuffer that spans several monitors. 4096 should be ok since we're
> gen 3 or higher and should be enough for most dual head setups.
> 
> Bugzilla: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-modesetting/+bug/1169147
> Cc: kernel-team@lists.ubuntu.com
> Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
> ---
>  drivers/gpu/drm/gma500/framebuffer.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/gma500/framebuffer.c b/drivers/gpu/drm/gma500/framebuffer.c
> index 31ac392..1534e22 100644
> --- a/drivers/gpu/drm/gma500/framebuffer.c
> +++ b/drivers/gpu/drm/gma500/framebuffer.c
> @@ -772,8 +772,8 @@ void psb_modeset_init(struct drm_device *dev)
>  	for (i = 0; i < dev_priv->num_pipe; i++)
>  		psb_intel_crtc_init(dev, i, mode_dev);
>  
> -	dev->mode_config.max_width = 2048;
> -	dev->mode_config.max_height = 2048;
> +	dev->mode_config.max_width = 4096;
> +	dev->mode_config.max_height = 4096;
>  
>  	psb_setup_outputs(dev);
>

Patch

diff --git a/drivers/gpu/drm/gma500/framebuffer.c b/drivers/gpu/drm/gma500/framebuffer.c
index 31ac392..1534e22 100644
--- a/drivers/gpu/drm/gma500/framebuffer.c
+++ b/drivers/gpu/drm/gma500/framebuffer.c
@@ -772,8 +772,8 @@  void psb_modeset_init(struct drm_device *dev)
 	for (i = 0; i < dev_priv->num_pipe; i++)
 		psb_intel_crtc_init(dev, i, mode_dev);
 
-	dev->mode_config.max_width = 2048;
-	dev->mode_config.max_height = 2048;
+	dev->mode_config.max_width = 4096;
+	dev->mode_config.max_height = 4096;
 
 	psb_setup_outputs(dev);