alistair23-linux/drivers/gpu/drm/nouveau/core/subdev
Sergei Antonov 9a11843987 drm/nouveau/bios: fix a bit shift error introduced by 457e77b
Commit 457e77b264 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.

Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: Dave Airlie <airlied@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sergei Antonov <saproj@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2014-04-18 13:15:18 +10:00
..
bar drm/nv50/bar: fix plymouth issues on certain efi macbooks 2014-03-26 14:08:14 +10:00
bios drm/nouveau/bios: fix a bit shift error introduced by 457e77b 2014-04-18 13:15:18 +10:00
bus drm/nouveau/bus: add interfaces/helpers for sequencer 2013-11-08 15:40:05 +10:00
clock drm/nouveau/devinit: tidy up the subdev class definition 2014-01-23 13:39:12 +10:00
devinit drm/nva3/devinit: restrict script access to some PFB regs 2014-03-26 14:08:19 +10:00
fb drm/nva3/fbram: restrict training pattern setup to GT218 2014-03-26 14:08:20 +10:00
gpio drm/nv50/gpio: fixup reset for gpios >= 16 2014-03-26 14:08:17 +10:00
i2c support for platform devices 2014-03-26 14:08:04 +10:00
ibus drm/nvc0/ibus: initial implementation of subdev 2012-10-03 13:13:15 +10:00
instmem support for platform devices 2014-03-26 14:08:04 +10:00
ltcg drm/gm107/ltcg: initial implementation 2014-03-26 14:00:58 +10:00
mc support for platform devices 2014-03-26 14:08:04 +10:00
mxm support for platform devices 2014-03-26 14:08:04 +10:00
pwr drm/nouveau/pwr: implement a simple i2c stack 2014-01-23 13:39:09 +10:00
therm drm/nouveau/therm: let the vbios decide on the automatic fan management mode 2014-03-26 14:08:25 +10:00
timer drm/gk20a/timer: initial implementation 2014-03-26 14:00:56 +10:00
vm drm/nouveau/vm: reduce number of entry-points to vm_map() 2014-01-23 13:38:25 +10:00
volt drm/nouveau/volt: implement voltage control in core 2013-11-08 15:40:17 +10:00