All of lore.kernel.org
 help / color / mirror / Atom feed
From: Emil Velikov <emil.l.velikov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Sergei Antonov <saproj-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Andrew Morton
	<akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>,
	nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Cc: Dave Airlie <airlied-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	emil.l.velikov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	Ben Skeggs <bskeggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Subject: Re: [PATCH] drm/nouveau/bios: fix a bit shift error introduced by 457e77b
Date: Sat, 19 Apr 2014 21:14:59 +0100	[thread overview]
Message-ID: <5352D943.407@gmail.com> (raw)
In-Reply-To: <CABikg9yL9y49ws5yJq9R0LV7++ysgPD0wwAeoNd3g8Tm34ysHg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On 15/04/14 22:49, Sergei Antonov wrote:
> On 15 April 2014 23:18, Sergei Antonov <saproj-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>> Commit 457e77b26428ab4a24998eecfb99f27fa4195397 added two checks applied to a
>> value received from nv_rd32(bios, 0x619f04). But after this new piece of code
>> is executed, the addr local variable does not hold the same value it used to
>> hold before the commit. Here is what is was assigned in the original code:
>>         (u64)(nv_rd32(bios, 0x619f04) & 0xffffff00) << 8
>> in the committed code it ends up with this value:
>>         (u64)(nv_rd32(bios, 0x619f04) >> 8) << 8
>> These expressions are obviously not equivalent.
>>
>> My Nvidia video card does not show anything on the display when I boot a
>> kernel containing this commit.
>>
>> The patch fixes the code so that the new checks are still done, but the
>> side effect of an incorrect addr value is gone.
>>
Hi Sergei

A similar patch [1] has been sent a few days prior to yours, and I'm assuming
it will be queued/merged shortly. Just letting you know.

Cheers
-Emil

[1] http://lists.freedesktop.org/archives/dri-devel/2014-April/057318.html

  parent reply	other threads:[~2014-04-19 20:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-15 21:18 [PATCH] drm/nouveau/bios: fix a bit shift error introduced by 457e77b Sergei Antonov
     [not found] ` <1397596717-6862-1-git-send-email-saproj-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-04-15 21:49   ` Sergei Antonov
     [not found]     ` <CABikg9yL9y49ws5yJq9R0LV7++ysgPD0wwAeoNd3g8Tm34ysHg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2014-04-19 20:14       ` Emil Velikov [this message]
     [not found]         ` <5352D943.407-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-04-20 13:25           ` Sergei Antonov

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=5352D943.407@gmail.com \
    --to=emil.l.velikov-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=airlied-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
    --cc=bskeggs-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=saproj-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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.