All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Antonino A. Daplas" <adaplas@gmail.com>
To: Sebastian Kaergel <mailing@wodkahexe.de>
Cc: torvalds@osdl.org, linux-kernel@vger.kernel.org,
	sylvain.meyer@worldonline.fr
Subject: Re: Linux-2.6.13-rc7
Date: Fri, 26 Aug 2005 01:45:09 +0800	[thread overview]
Message-ID: <430E03A5.3030602@gmail.com> (raw)
In-Reply-To: <20050825210148.4f60e531.mailing@wodkahexe.de>

[-- Attachment #1: Type: text/plain, Size: 1249 bytes --]

Sebastian Kaergel wrote:
> On Fri, 26 Aug 2005 00:23:40 +0800
> "Antonino A. Daplas" <adaplas@gmail.com> wrote:
> 
>> Sebastian Kaergel wrote:
>>> On Tue, 23 Aug 2005 22:08:13 -0700 (PDT)
>>> Linus Torvalds <torvalds@osdl.org> wrote:
>>>
>>>> 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>
>> ---
> <patch snipped>
> 
> Hi,
> thanks for your quick reply, but it did not work. the screen remains
> black when booting with video=intelfb:accel:0,{,no}hwcursor:0

Can you try the patch anyway?

If the patch does not fix your problem, can you revert the patches and
see which is the culprit.  I'm attaching those 2 patches.

Tony




> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 


[-- Attachment #2: intelfb-ioremap.diff --]
[-- Type: text/plain, Size: 1684 bytes --]

drivers/video/intelfb/intelfbdrv.c: needs update
Index: drivers/video/intelfb/intelfbdrv.c
===================================================================
--- 0582536f492dc10e4849053d19fec93ca72e9bfe/drivers/video/intelfb/intelfbdrv.c  (mode:100644)
+++ uncommitted/drivers/video/intelfb/intelfbdrv.c  (mode:100644)
@@ -579,23 +579,6 @@
 		return -ENODEV;
 	}
 
-	/* Map the fb and MMIO regions */
-	dinfo->aperture.virtual = (u8 __iomem *)ioremap_nocache
-		(dinfo->aperture.physical, dinfo->aperture.size);
-	if (!dinfo->aperture.virtual) {
-		ERR_MSG("Cannot remap FB region.\n");
-		cleanup(dinfo);
-		return -ENODEV;
-	}
-	dinfo->mmio_base =
-		(u8 __iomem *)ioremap_nocache(dinfo->mmio_base_phys,
-					       INTEL_REG_SIZE);
-	if (!dinfo->mmio_base) {
-		ERR_MSG("Cannot remap MMIO region.\n");
-		cleanup(dinfo);
-		return -ENODEV;
-	}
-
 	/* Get the chipset info. */
 	dinfo->pci_chipset = pdev->device;
 
@@ -679,6 +662,26 @@
 	}
 
 	/* Allocate memories (which aren't stolen) */
+	/* 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, ((offset + dinfo->fb.offset) << 12)
+		 + dinfo->fb.size);
+	if (!dinfo->aperture.virtual) {
+		ERR_MSG("Cannot remap FB region.\n");
+		cleanup(dinfo);
+		return -ENODEV;
+	}
+
+	dinfo->mmio_base =
+		(u8 __iomem *)ioremap_nocache(dinfo->mmio_base_phys,
+					       INTEL_REG_SIZE);
+	if (!dinfo->mmio_base) {
+		ERR_MSG("Cannot remap MMIO region.\n");
+		cleanup(dinfo);
+		return -ENODEV;
+	}
+
 	if (dinfo->accel) {
 		if (!(dinfo->gtt_ring_mem =
 		      agp_allocate_memory(bridge, dinfo->ring.size >> 12,

[-- Attachment #3: save_info_flags.diff --]
[-- Type: text/plain, Size: 767 bytes --]

diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c
--- a/drivers/video/fbmem.c
+++ b/drivers/video/fbmem.c
@@ -643,8 +643,8 @@ fb_pan_display(struct fb_info *info, str
 int
 fb_set_var(struct fb_info *info, struct fb_var_screeninfo *var)
 {
-	int err;
-
+	int err, flags = info->flags;
+	
 	if (var->activate & FB_ACTIVATE_INV_MODE) {
 		struct fb_videomode mode1, mode2;
 		int ret = 0;
@@ -697,7 +697,7 @@ fb_set_var(struct fb_info *info, struct 
 			    !list_empty(&info->modelist))
 				err = fb_add_videomode(&mode, &info->modelist);
 
-			if (!err && info->flags & FBINFO_MISC_USEREVENT) {
+			if (!err && flags & FBINFO_MISC_USEREVENT) {
 				struct fb_event event;
 				int evnt = (var->activate & FB_ACTIVATE_ALL) ?
 					FB_EVENT_MODE_CHANGE_ALL :

  reply	other threads:[~2005-08-25 17:46 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   ` Linux-2.6.13-rc7 Antonino A. Daplas
2005-08-25 19:01     ` Linux-2.6.13-rc7 Sebastian Kaergel
2005-08-25 17:45       ` Antonino A. Daplas [this message]
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=430E03A5.3030602@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 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.