From: "Antonino A. Daplas" <adaplas@gmail.com>
To: Sebastian Kaergel <mailing@wodkahexe.de>
Cc: Linus Torvalds <torvalds@osdl.org>,
linux-kernel@vger.kernel.org,
Sylvain Meyer <sylvain.meyer@worldonline.fr>
Subject: Re: Linux-2.6.13-rc7
Date: Fri, 26 Aug 2005 00:23:40 +0800 [thread overview]
Message-ID: <430DF08C.8010604@gmail.com> (raw)
In-Reply-To: <20050825194954.6db42e90.mailing@wodkahexe.de>
Sebastian Kaergel wrote:
> On Tue, 23 Aug 2005 22:08:13 -0700 (PDT)
> Linus Torvalds <torvalds@osdl.org> wrote:
>
>> Antonino A. Daplas:
>> intelfb/fbdev: Save info->flags in a local variable
>> Sylvain Meyer:
>> intelfb: Do not ioremap entire graphics aperture
Probably this one. If vram is less than stolen size, intelfb
will only ioremap the framebuffer memory, excluding the
ringbuffer and the cursor memory.
Try booting with video=intelfb:accel:0,nohwcursor:0. If you get
a display, try this patch.
CC'ed Sylvain.
Signed-off-by: Antonino Daplas <adaplas@pol.net>
---
diff --git a/drivers/video/intelfb/intelfbdrv.c b/drivers/video/intelfb/intelfbdrv.c
--- a/drivers/video/intelfb/intelfbdrv.c
+++ b/drivers/video/intelfb/intelfbdrv.c
@@ -502,7 +502,7 @@ intelfb_pci_register(struct pci_dev *pde
struct agp_bridge_data *bridge;
int aperture_bar = 0;
int mmio_bar = 1;
- int offset;
+ int offset, remap;
DBG_MSG("intelfb_pci_register\n");
@@ -662,11 +662,15 @@ intelfb_pci_register(struct pci_dev *pde
+ (dinfo->cursor.size >> 12);
}
+ if (dinfo->fbmem_gart)
+ remap = (dinfo->fb.offset << 12) + dinfo->fb.size;
+ else
+ remap = (dinfo->cursor.offset << 12) + dinfo->cursor.size;
+
/* Map the fb and MMIO regions */
/* ioremap only up to the end of used aperture */
dinfo->aperture.virtual = (u8 __iomem *)ioremap_nocache
- (dinfo->aperture.physical, (dinfo->fb.offset << 12)
- + dinfo->fb.size);
+ (dinfo->aperture.physical, remap);
if (!dinfo->aperture.virtual) {
ERR_MSG("Cannot remap FB region.\n");
cleanup(dinfo);
next prev parent reply other threads:[~2005-08-25 16:25 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-24 5:08 Linux-2.6.13-rc7 Linus Torvalds
2005-08-24 6:43 ` Linux-2.6.13-rc7 Al Viro
2005-08-24 11:24 ` Linux-2.6.13-rc7 Dinakar Guniguntala
2005-08-24 18:43 ` Linux-2.6.13-rc7 Paul Jackson
2005-08-24 19:15 ` Linux-2.6.13-rc7 Al Viro
2005-08-24 20:13 ` Linux-2.6.13-rc7 Alexey Dobriyan
2005-08-24 20:34 ` Linux-2.6.13-rc7 Alexey Dobriyan
2005-08-24 21:38 ` Linux-2.6.13-rc7 Al Viro
2005-08-25 7:27 ` Linux-2.6.13-rc7 Alexey Dobriyan
2005-08-25 19:07 ` Linux-2.6.13-rc7 Al Viro
2005-08-25 22:16 ` Linux-2.6.13-rc7 Richard Henderson
2005-08-25 22:51 ` Linux-2.6.13-rc7 Al Viro
2005-08-27 3:58 ` Linux-2.6.13-rc7 Mitchell Blank Jr
2005-08-25 9:29 ` Linux-2.6.13-rc7 Geert Uytterhoeven
2005-08-25 13:59 ` Linux-2.6.13-rc7 Sam Creasey
2005-08-25 14:12 ` Linux-2.6.13-rc7 Al Viro
2005-08-25 14:16 ` Linux-2.6.13-rc7 Geert Uytterhoeven
2005-08-25 14:17 ` Linux-2.6.13-rc7 Sam Creasey
2005-08-24 22:40 ` Linux-2.6.13-rc7 : OK Willy TARREAU
2005-08-25 14:04 ` Linux-2.6.13-rc7 Erik Mouw
2005-08-27 4:33 ` Linux-2.6.13-rc7 Deepak Saxena
2005-08-29 13:33 ` Linux-2.6.13-rc7 Erik Mouw
2005-08-25 17:49 ` Linux-2.6.13-rc7 Sebastian Kaergel
2005-08-25 16:23 ` Antonino A. Daplas [this message]
2005-08-25 19:01 ` Linux-2.6.13-rc7 Sebastian Kaergel
2005-08-25 17:45 ` Linux-2.6.13-rc7 Antonino A. Daplas
2005-08-25 18:47 ` Linux-2.6.13-rc7 Sylvain Meyer
2005-08-25 23:25 ` Linux-2.6.13-rc7 Antonino A. Daplas
2005-08-26 10:45 ` Linux-2.6.13-rc7 Danny ter Haar
2005-08-26 13:51 ` Linux-2.6.13-rc7 Danny ter Haar
2005-08-27 11:37 ` Linux-2.6.13-rc7 Danny ter Haar
2005-08-27 11:57 ` Linux-2.6.13-rc7 Danny ter Haar
2005-08-27 3:45 ` Linux-2.6.13-rc7 Masoud Sharbiani
-- strict thread matches above, loose matches on Subject: below --
2005-08-25 0:20 Linux-2.6.13-rc7 Voluspa
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=430DF08C.8010604@gmail.com \
--to=adaplas@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mailing@wodkahexe.de \
--cc=sylvain.meyer@worldonline.fr \
--cc=torvalds@osdl.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox