Maarten Lankhorst
d5c1e84b3a
drm/nouveau: hold mutex while syncing to kernel channel
...
Not holding the mutex potentially causes corruption of the kernel
channel when page flipping.
Cc: stable@vger.kernel.org #3.13
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:39:14 +10:00
Ilia Mirkin
4019aaa2b3
drm/nv50-/devinit: prevent use of engines marked as disabled by hw/vbios
...
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:39:13 +10:00
Ilia Mirkin
f0d13e3a85
drm/nouveau/device: provide a way for devinit to mark engines as disabled
...
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:39:13 +10:00
Ben Skeggs
cf336014c6
drm/nouveau/devinit: tidy up the subdev class definition
...
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:39:12 +10:00
Ben Skeggs
52225551dd
drm/nouveau/bar: tidy up the subdev and object class definitions
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:39:11 +10:00
Ben Skeggs
ab606194d1
drm/nouveau/instmem: tidy up the object class definition
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:39:10 +10:00
Ben Skeggs
24a4ae86de
drm/nouveau/instmem: tidy up the subdev class definition
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:39:09 +10:00
Ben Skeggs
64c672ae1d
drm/nouveau/pwr: implement a simple i2c stack
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:39:09 +10:00
Ben Skeggs
2e9dfe234a
drm/nouveau/pwr: have rd/wr32 routines clobber data instead of addr
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:39:08 +10:00
Ben Skeggs
73216231ca
drm/nve0/fb: turn off some bits in 10f584 at init
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:39:07 +10:00
Ben Skeggs
cb54dd2f8e
drm/nve0/fb/gddr5: merge a fix from ddr3 for one of the timing settings
...
Titan.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:39:06 +10:00
Ben Skeggs
b13d0e4a93
drm/nve0/fb/gddr5: yet another random 10f200 bit
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:39:05 +10:00
Ben Skeggs
c814a60dbe
drm/nvc0-/fb: hook up skeleton interrupt handler
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:39:04 +10:00
Ben Skeggs
7f39e59772
drm/nve0/fb/gddr5: more 10f200 stuff
...
Seen on Titan. NFI what the condition to switch this on is yet, and,
hardcoding it to on currently causes master to report unknown intr
with a mask of 0x08002000.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:39:04 +10:00
Ben Skeggs
12642e36e0
drm/nve0/clk: report ddr memory frequency
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:39:03 +10:00
Ben Skeggs
1a894c069d
drm/nouveau/fb/gddr5: make sure we update mr7 when we're supposed to
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:39:02 +10:00
Ben Skeggs
a8ccbb7701
drm/nve0/fb/gddr5: 10f698/69c
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:39:01 +10:00
Ben Skeggs
cfe1760838
drm/nve0/fb: it's now safe to obey the memory voltage setting properly
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:39:00 +10:00
Ben Skeggs
46bf1c389f
drm/nve0/fb: multi-stage reclock is required for certain transitions
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:39:00 +10:00
Ben Skeggs
1789cab4ef
drm/nouveau/clk: allow fb to signal it needs to do a multi-stage reclock
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:59 +10:00
Ben Skeggs
b655f2bb77
drm/nve0/fb/gddr5: parse bios data into struct rather than using directly
...
Still essentially a struct of magic values with magic names and unknown
purposes. But, we will shortly need to be able to mix and match bits of
the previous and next configurations to do a transition reclock, as such,
we can no longer directly use the vbios data with any ease.
This is probably nicer anyway in the long run, for a few reasons.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:58 +10:00
Ben Skeggs
ea8b4a380d
drm/nve0/fb/gddr5: found LP3 setting
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:57 +10:00
Ben Skeggs
971372eac1
drm/nve0/fb: note the memory voltage toggle, not using it yet
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:56 +10:00
Ben Skeggs
db6735cab2
drm/nve0/fb/gddr5: somewhat better attempt at 100770/10f604/610/614
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
fb/gddr5/nve0: 100770 is like 10f604
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:56 +10:00
Ben Skeggs
f4aa2c6677
drm/nve0/fb/gddr5: fixup delays a bit
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:55 +10:00
Ben Skeggs
1522ecae65
drm/nouveau/bios: timing 2.0 entries can have subentries
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:54 +10:00
Ben Skeggs
09692e5b4e
drm/nve0/fb/gddr5: note another semi-unknown
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:53 +10:00
Ben Skeggs
1e1d6b4c53
drm/nouveau/fb/gddr5: modify mr8 with high bits of CL/WR
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:52 +10:00
Ben Skeggs
e7084c669b
drm/nve0/fb/gddr5: fix calculation of RDQS setting
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:52 +10:00
Ben Skeggs
334565abfe
drm/nve0/fb/gddr5: switch off some other random bit at some point
...
As seen when comparing us vs nv on my GTX660
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:51 +10:00
Ben Skeggs
01891690e8
drm/nve0/fb/gddr5: punt all 10f910/914 accesses through ram_train
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:50 +10:00
Ben Skeggs
d394fb12ec
drm/nve0/fb/gddr5: not all memory partitions are created equal
...
As seen when comparing us vs nv on my GTX660.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:49 +10:00
Ben Skeggs
dd95c8f782
drm/nve0/fb: typo in register name
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:48 +10:00
Ben Skeggs
0a0dc8f564
drm/nouveau/bios: make common code to handle ramcfg strap etc
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:48 +10:00
Ben Skeggs
5905439224
drm/nve0/fb/gddr5: fix an assumption of sane memory controller layout
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:47 +10:00
Ben Skeggs
2daaf5b0e4
drm/nve0/fb/gddr5: fix behaviour of lp3 setting
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:46 +10:00
Ben Skeggs
cb1567c286
drm/nve0/fifo: recover from mmu faults on bar1/bar3
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:45 +10:00
Ben Skeggs
649ec925ae
drm/nve0/fifo: keep mmu fault interrupts enabled at all times
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:44 +10:00
Ben Skeggs
e1b6b14ad5
drm/nve0/fifo: update human-readable mmu fault descriptions
...
Ordering from Android GK20A driver, names from binary driver strings.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:44 +10:00
Ben Skeggs
e9fb9805ad
drm/nve0/fifo: document more intr status bits
...
As per Android GK20A driver.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:43 +10:00
Ben Skeggs
9f8459cf06
drm/nve0/fifo: populate PBDMA status bitfield with more definitions
...
As per Android GK20A driver.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:42 +10:00
Ben Skeggs
39b055427e
drm/nve0/fifo: s/subfifo/PBDMA/
...
As per Android GK20A driver.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:41 +10:00
Ben Skeggs
f82c44a78f
drm/nve0/fifo: s/playlist/runlist/
...
As per Android GK20A driver.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:40 +10:00
Ben Skeggs
f76dd80f76
drm/nvf0/gr: enable acceleration with our chsw ucode
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:40 +10:00
Ben Skeggs
aa97cd31b6
drm/nv108/gr: enable acceleration with our chsw ucode
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:39 +10:00
Ben Skeggs
5d91e1916d
drm/nvc0-/gr: handle fwmthd interrupts in ucode
...
Compute code in mesa triggers one of these, hanging the engine. Let's
at least ack the request for now to avoid the hang.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:38 +10:00
Ben Skeggs
e1b22bc148
drm/nvc0-/gr: fiddle some magic around strand init
...
Fixes HUB_INIT timeout on GK110/GK208 when not using NVIDIA's ucode.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:37 +10:00
Ben Skeggs
96616b4caf
drm/nv108/gr: initial support (need external fuc)
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:36 +10:00
Ben Skeggs
daa9ab5821
drm/nv108/ce: enable copy engines
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:35 +10:00
Ben Skeggs
a763951a86
drm/nv108/fifo: initial support
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2014-01-23 13:38:35 +10:00