From: Grant Wilson <gww@btinternet.com>
To: "Antonino A. Daplas" <adaplas@gmail.com>
Cc: linux-kernel@vger.kernel.org, Antonino Daplas <adaplas@pol.net>
Subject: Re: 2.6.14-rc1: oops during boot
Date: Tue, 13 Sep 2005 22:43:58 +0100 [thread overview]
Message-ID: <1126647838.6729.2.camel@tlg.swandive.local> (raw)
In-Reply-To: <432741E9.2090401@gmail.com>
On Wed, 2005-09-14 at 05:17 +0800, Antonino A. Daplas wrote:
> Grant Wilson wrote:
> > 2.6.14-rc1 oops on boot as a result of the patch "nvidiafb: Fallback to
> > firmware EDID".
> >
> Thanks. Try this patch.
>
> Signed-off-by: Antonino Daplas <adaplas@pol.net>
> ---
>
> diff --git a/drivers/video/nvidia/nv_i2c.c b/drivers/video/nvidia/nv_i2c.c
> --- a/drivers/video/nvidia/nv_i2c.c
> +++ b/drivers/video/nvidia/nv_i2c.c
> @@ -209,10 +209,13 @@ int nvidia_probe_i2c_connector(struct fb
>
> if (!edid && conn == 1) {
> /* try to get from firmware */
> - edid = kmalloc(EDID_LENGTH, GFP_KERNEL);
> - if (edid)
> - memcpy(edid, fb_firmware_edid(info->device),
> - EDID_LENGTH);
> + const u8 *e = fb_firmware_edid(info->device);
> +
> + if (e != NULL) {
> + edid = kmalloc(EDID_LENGTH, GFP_KERNEL);
> + if (edid)
> + memcpy(edid, e, EDID_LENGTH);
> + }
> }
>
> if (out_edid)
The patch works and the machine now boots and runs without problems -
thank you.
Grant
--
Running Linux 2.6.14-rc1 on x86_64
prev parent reply other threads:[~2005-09-13 21:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-13 20:25 Grant Wilson
2005-09-13 21:17 ` Antonino A. Daplas
2005-09-13 21:43 ` Grant Wilson [this message]
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=1126647838.6729.2.camel@tlg.swandive.local \
--to=gww@btinternet.com \
--cc=adaplas@gmail.com \
--cc=adaplas@pol.net \
--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
all inboxes | Powered by JetHome®