From: "Antonino A. Daplas" <adaplas@gmail.com>
To: Kalev Lember <kalev@smartlink.ee>
Cc: Gerd Hoffmann <kraxel@suse.de>, linux-kernel@vger.kernel.org
Subject: Re: kexec and framebuffer
Date: Fri, 21 Jul 2006 07:28:51 +0800 [thread overview]
Message-ID: <44C011B3.3060900@gmail.com> (raw)
In-Reply-To: <44BFEAA5.5030703@smartlink.ee>
Kalev Lember wrote:
> Gerd Hoffmann wrote:
>>> I am wondering what would be the preferred method to extract screen_info
>>> from running kernel. Should this be made available from sysfs or maybe a
>>> new system call be created?
>>>
>> Simply ask /dev/fb0?
>> Patch for kexec tools attached.
>>
> Thank you, this was really helpful.
>> + if (0 != strcmp(fix.id, "vesafb"))
>> + goto out;
> I think this check should be removed so that other framebuffer drivers
> besides vesafb would also work.
I think having the check is correct, only vesafb relies totally on
screen_info. If you remove the check, you can get the wrong information
from other framebuffer drivers.
> + /* fixme: better get size from /proc/iomem */
> + real_mode->lfb_size = (fix.smem_len + 65535) / 65536;
> + real_mode->pages = (fix.smem_len + 4095) / 4096;
Note that fix.smem_len is the size of the remapped memory which can be
smaller than the actual framebuffer length. But there's a fixme comment
there so you probably know about this.
> Additionally the fix.id is "VESA VGA",
> not "vesafb".
Yes.
Tony
next prev parent reply other threads:[~2006-07-20 23:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-17 14:11 kexec and framebuffer Kalev Lember
2006-07-17 14:29 ` Gerd Hoffmann
2006-07-20 20:42 ` Kalev Lember
2006-07-20 23:28 ` Antonino A. Daplas [this message]
2006-07-21 6:54 ` Gerd Hoffmann
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=44C011B3.3060900@gmail.com \
--to=adaplas@gmail.com \
--cc=kalev@smartlink.ee \
--cc=kraxel@suse.de \
--cc=linux-kernel@vger.kernel.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