From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932465Ab1ALNpZ (ORCPT ); Wed, 12 Jan 2011 08:45:25 -0500 Received: from mtagate2.uk.ibm.com ([194.196.100.162]:60967 "EHLO mtagate2.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932282Ab1ALNpV (ORCPT ); Wed, 12 Jan 2011 08:45:21 -0500 Message-ID: <4D2DB06D.2070707@de.ibm.com> Date: Wed, 12 Jan 2011 14:45:17 +0100 From: Christian Borntraeger User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.9) Gecko/20100918 Lightning/1.0b2 Icedove/3.1.4 MIME-Version: 1.0 To: James Simmons CC: Linus Torvalds , Dave Airlie , DRI mailing list , Linux Kernel Mailing List Subject: Re: [git pull] drm for rc1 References: <4D2CE5C8.60601@de.ibm.com> <4D2D8ED0.6080807@de.ibm.com> <4D2DA6A7.4010609@de.ibm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 12.01.2011 14:32, schrieb James Simmons: > Okay. The nouveau driver also uses the pitch as well. It > really should be using the pitch field from drm_framebuffer instead of the > line_length from fb_fix_screeninfo. This patch is just to make sure this > is the issue. I will submit another patch later that uses > drm_fb_framebuffer's pitch field. As for the visual unfortunely their is > no real mapping between drm and fbdev. > > diff --git a/drivers/gpu/drm/nouveau/nouveau_fbcon.c b/drivers/gpu/drm/nouveau/nouveau_fbcon.c > index a26d047..de3b067 100644 > --- a/drivers/gpu/drm/nouveau/nouveau_fbcon.c > +++ b/drivers/gpu/drm/nouveau/nouveau_fbcon.c > @@ -359,6 +359,9 @@ nouveau_fbcon_create(struct nouveau_fbdev *nfbdev, > info->screen_base = nvbo_kmap_obj_iovirtual(nouveau_fb->nvbo); > info->screen_size = size; > > + info->fix.visual = fb->depth == 8 ? FB_VISUAL_PSEUDOCOLOR : > + FB_VISUAL_TRUECOLOR; > + info->fix.line_length = fb->pitch; > drm_fb_helper_fill_var(info, &nfbdev->helper, sizes->fb_width, sizes->fb_height); > > /* Set aperture base/size for vesafb takeover */ That fixes _my_ nouveau frame buffer regression.