All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linux-fbdev-devel@lists.sourceforge.net, linuxppc-dev@ozlabs.org,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-kernel@vger.kernel.org, adaplas@gmail.com
Subject: Re: [PATCH 1/3] radeonfb: Fix 64 bits resources on 32 bits archs
Date: Thu, 08 Jan 2009 13:20:19 +0300	[thread overview]
Message-ID: <4965D363.6040608@ru.mvista.com> (raw)
In-Reply-To: <20080422012723.BA9F2DE13F@ozlabs.org>

Hello.

Benjamin Herrenschmidt wrote:

> This fixes radeonfb to not truncate 64 bits resources on 32 bits
> platforms. Unfortunately, there are still issues with addresses
> returned to userspace via struct fb_fix_screeninfo. This will
> have to be dealt with separately.
>
> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
>   

   I'm seeing that these 3 patch series (dating back to April) still 
unapplied. Have everybody forgotten about them? I'd like to see them 
finally applied.

> --- linux-work.orig/drivers/video/aty/radeon_base.c	2008-04-22 11:04:19.000000000 +1000
> +++ linux-work/drivers/video/aty/radeon_base.c	2008-04-22 11:05:00.000000000 +1000
> @@ -1886,7 +1886,7 @@ static int __devinit radeon_set_fbinfo (
>  	info->screen_size = rinfo->mapped_vram;
>  	/* Fill fix common fields */
>  	strlcpy(info->fix.id, rinfo->name, sizeof(info->fix.id));
> -        info->fix.smem_start = rinfo->fb_base_phys;
> +        info->fix.smem_start = (unsigned long)rinfo->fb_base_phys;
>          info->fix.smem_len = rinfo->video_ram;
>          info->fix.type = FB_TYPE_PACKED_PIXELS;
>          info->fix.visual = FB_VISUAL_PSEUDOCOLOR;
> @@ -1894,7 +1894,7 @@ static int __devinit radeon_set_fbinfo (
>          info->fix.ypanstep = 1;
>          info->fix.ywrapstep = 0;
>          info->fix.type_aux = 0;
> -        info->fix.mmio_start = rinfo->mmio_base_phys;
> +        info->fix.mmio_start = (unsigned long)rinfo->mmio_base_phys;
>          info->fix.mmio_len = RADEON_REGSIZE;
>  	info->fix.accel = FB_ACCEL_ATI_RADEON;
>  
> Index: linux-work/drivers/video/aty/radeonfb.h
> ===================================================================
> --- linux-work.orig/drivers/video/aty/radeonfb.h	2008-04-22 11:03:17.000000000 +1000
> +++ linux-work/drivers/video/aty/radeonfb.h	2008-04-22 11:03:27.000000000 +1000
> @@ -287,8 +287,8 @@ struct radeonfb_info {
>  
>  	char			name[DEVICE_NAME_SIZE];
>  
> -	unsigned long		mmio_base_phys;
> -	unsigned long		fb_base_phys;
> +	resource_size_t		mmio_base_phys;
> +	resource_size_t		fb_base_phys;
>  
>  	void __iomem		*mmio_base;
>  	void __iomem		*fb_base;

WBR, Sergei

WARNING: multiple messages have this Message-ID (diff)
From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-fbdev-devel@lists.sourceforge.net,
	linux-kernel@vger.kernel.org, adaplas@gmail.com
Subject: Re: [PATCH 1/3] radeonfb: Fix 64 bits resources on 32 bits archs
Date: Thu, 08 Jan 2009 13:20:19 +0300	[thread overview]
Message-ID: <4965D363.6040608@ru.mvista.com> (raw)
In-Reply-To: <20080422012723.BA9F2DE13F@ozlabs.org>

Hello.

Benjamin Herrenschmidt wrote:

> This fixes radeonfb to not truncate 64 bits resources on 32 bits
> platforms. Unfortunately, there are still issues with addresses
> returned to userspace via struct fb_fix_screeninfo. This will
> have to be dealt with separately.
>
> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
>   

   I'm seeing that these 3 patch series (dating back to April) still 
unapplied. Have everybody forgotten about them? I'd like to see them 
finally applied.

> --- linux-work.orig/drivers/video/aty/radeon_base.c	2008-04-22 11:04:19.000000000 +1000
> +++ linux-work/drivers/video/aty/radeon_base.c	2008-04-22 11:05:00.000000000 +1000
> @@ -1886,7 +1886,7 @@ static int __devinit radeon_set_fbinfo (
>  	info->screen_size = rinfo->mapped_vram;
>  	/* Fill fix common fields */
>  	strlcpy(info->fix.id, rinfo->name, sizeof(info->fix.id));
> -        info->fix.smem_start = rinfo->fb_base_phys;
> +        info->fix.smem_start = (unsigned long)rinfo->fb_base_phys;
>          info->fix.smem_len = rinfo->video_ram;
>          info->fix.type = FB_TYPE_PACKED_PIXELS;
>          info->fix.visual = FB_VISUAL_PSEUDOCOLOR;
> @@ -1894,7 +1894,7 @@ static int __devinit radeon_set_fbinfo (
>          info->fix.ypanstep = 1;
>          info->fix.ywrapstep = 0;
>          info->fix.type_aux = 0;
> -        info->fix.mmio_start = rinfo->mmio_base_phys;
> +        info->fix.mmio_start = (unsigned long)rinfo->mmio_base_phys;
>          info->fix.mmio_len = RADEON_REGSIZE;
>  	info->fix.accel = FB_ACCEL_ATI_RADEON;
>  
> Index: linux-work/drivers/video/aty/radeonfb.h
> ===================================================================
> --- linux-work.orig/drivers/video/aty/radeonfb.h	2008-04-22 11:03:17.000000000 +1000
> +++ linux-work/drivers/video/aty/radeonfb.h	2008-04-22 11:03:27.000000000 +1000
> @@ -287,8 +287,8 @@ struct radeonfb_info {
>  
>  	char			name[DEVICE_NAME_SIZE];
>  
> -	unsigned long		mmio_base_phys;
> -	unsigned long		fb_base_phys;
> +	resource_size_t		mmio_base_phys;
> +	resource_size_t		fb_base_phys;
>  
>  	void __iomem		*mmio_base;
>  	void __iomem		*fb_base;

WBR, Sergei

  parent reply	other threads:[~2009-01-08 10:20 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-22  1:26 [PATCH 1/3] radeonfb: Fix 64 bits resources on 32 bits archs Benjamin Herrenschmidt
2008-04-22  1:26 ` Benjamin Herrenschmidt
2008-04-22  1:26 ` Benjamin Herrenschmidt
2008-04-22 15:55 ` Christian Ehrhardt
2008-04-22 15:55   ` Christian Ehrhardt
2008-04-22 16:04   ` Michel Dänzer
2008-04-22 16:04     ` Michel Dänzer
2008-04-22 16:04     ` Michel Dänzer
2008-04-22 22:21   ` Benjamin Herrenschmidt
2008-04-22 22:21     ` Benjamin Herrenschmidt
2008-04-22 22:21     ` Benjamin Herrenschmidt
2008-04-23  9:32     ` Michel Dänzer
2008-04-23  9:32       ` [Linux-fbdev-devel] " Michel Dänzer
2008-04-23  9:32       ` Michel Dänzer
2008-04-23  9:40       ` Benjamin Herrenschmidt
2008-04-23  9:40         ` [Linux-fbdev-devel] " Benjamin Herrenschmidt
2008-04-23  9:40         ` Benjamin Herrenschmidt
2008-04-23  9:57       ` David Miller
2008-04-23  9:57         ` [Linux-fbdev-devel] " David Miller
2008-04-23  9:57         ` David Miller
2008-04-23 10:34         ` Benjamin Herrenschmidt
2008-04-23 10:34           ` [Linux-fbdev-devel] " Benjamin Herrenschmidt
2008-04-23 10:34           ` Benjamin Herrenschmidt
2009-01-08 10:20 ` Sergei Shtylyov [this message]
2009-01-08 10:20   ` Sergei Shtylyov
2009-01-08 10:26 ` Sergei Shtylyov
2009-01-08 10:26   ` Sergei Shtylyov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4965D363.6040608@ru.mvista.com \
    --to=sshtylyov@ru.mvista.com \
    --cc=adaplas@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=benh@kernel.crashing.org \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.