summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-10-22gem: return only valid domain when there's only onelinux-4.3Ilia Mirkin2-2/+9
On nv50+, we restrict the valid domains to just the one where the buffer was originally created. However after the buffer is evicted to system memory, we might move it back to a different domain that was not originally valid. When sharing the buffer and retrieving its GEM_INFO data, we still want the domain that will be valid for this buffer in a pushbuf, not the one where it currently happens to be. This resolves fdo#92504 and several others. These are due to suspend evicting all buffers, making it more likely that they temporarily end up in the wrong place. Cc: stable@vger.kernel.org Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92504 Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-10-12bios: fix OF loadingIlia Mirkin3-11/+36
Currently OF bios load fails for a few reasons: - checksum failure - bios size too small - no PCIR header - bios length not a multiple of 4 In this change, we resolve all of the above by ignoring any checksum failures (since OF VBIOS tends not to have a checksum), and faking the PCIR data when loading from OF. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-10-12fbcon: take runpm reference when userspace has an open fdBen Skeggs1-0/+24
We need to do this in order to prevent accesses to the device while it's powered down. Userspace may have an mmap of the fb, and there's no good way (that I know of) to prevent it from touching the device otherwise. This fixes some nasty races between runpm and plymouth on some systems, which result in the GPU getting very upset and hanging the boot. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-10-12nouveau: Disable AGP for SiS 761Ondrej Zary2-2/+9
SiS 761 chipset does not support AGP cards but has AGP capability (for the onboard video). At least PC Chips A31G board using this chipset has an AGP-like AGPro slot that's wired to the PCI bus. Enabling AGP will fail (GPU lockup and software fbcon, X11 hangs). Add support for matching just the host bridge in nvkm_device_agp_quirks and add entry for SiS 761 with mode 0 (AGP disabled). Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-10-12display: allow up to 16k width/height for fermi+Ilia Mirkin1-1/+5
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-10-12bios: translate devinit pri/sec i2c bus to internal identifiersBen Skeggs1-0/+6
fdo#92013. Regression from "i2c: transition pad/ports away from being based on nvkm_object" Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-10-12v4.3-rc5Ben Skeggs3-5/+5
2015-09-11device: enable c800 quirk for tecra w50Ben Skeggs1-0/+1
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-09-11clk/gt215: Unbreak engine pausing for GT21x/MCP7xRoy Spliet1-1/+1
Typo that snuck in with commit 6979c6303a4abf263753cd9d577d79f05c6e8c47 Signed-off-by: Roy Spliet <rspliet@eclipso.eu> Reported-by: Pierre Moreau <pierre.morrow@free.fr> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-09-11gr/nv04: fix big endian setting on gr contextIlia Mirkin1-3/+3
Broken since "gr: convert user classes to new-style nvkm_object" Tested on a PPC64 G5 + NV34 Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28drm: bump driver version for releaseBen Skeggs1-2/+5
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28tegra: merge platform setup from nouveau drmBen Skeggs14-299/+417
The copyright header in nvkm/engine/device/platform.c has been replaced with the NVIDIA one from drm/nouveau_platform.c, as most of the actual code is now theirs. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28pci: merge agp handling from nouveau drmBen Skeggs20-240/+327
This commit reinstates the pre-DEVINIT AGP fiddling that was broken in an earlier commit. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28device: remove pci/platform_device from common structBen Skeggs27-108/+106
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28device: import pciid list and integrate quirks with itBen Skeggs7-27/+1580
PCI IDs taken from the NVIDIA binary driver, with permission. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28device: cleaner abstraction for device resource functionsBen Skeggs22-74/+83
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28mc: move device irq handling to platform-specific codeBen Skeggs19-324/+182
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28mc/gf100-: handle second interrupt treeBen Skeggs4-9/+38
Doesn't fix any known issue, but best be safe in case control is handed to us from firmware with these left enabled. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28mc: abstract interface to master intr registersBen Skeggs13-11/+84
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28pci: new subdevBen Skeggs15-39/+491
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28object: merge with handleBen Skeggs18-442/+219
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28core: remove the remainder of the previous styleBen Skeggs71-1862/+502
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28mpeg: convert to new-style nvkm_engineBen Skeggs14-363/+166
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28sw: convert to new-style nvkm_engineBen Skeggs19-292/+115
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28pm: convert to new-style nvkm_engineBen Skeggs21-400/+219
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28gr: convert to new-style nvkm_engineBen Skeggs59-1847/+1744
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28fifo: convert to new-style nvkm_engineBen Skeggs56-801/+640
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28disp: convert to new-style nvkm_engineBen Skeggs32-890/+696
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28dma: convert to new-style nvkm_engineBen Skeggs22-242/+162
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28cipher: convert to new-style nvkm_engineBen Skeggs4-61/+27
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28ce: convert to new-style nvkm_engineBen Skeggs9-278/+86
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28xtensa: convert to new-style nvkm_engineBen Skeggs8-148/+84
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28falcon: convert to new-style nvkm_engineBen Skeggs36-771/+640
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28volt: convert to new-style nvkm_subdevBen Skeggs12-253/+161
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28tmr: convert to new-style nvkm_subdevBen Skeggs27-427/+501
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28therm: convert to new-style nvkm_subdevBen Skeggs24-714/+507
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28pmu: convert to new-style nvkm_subdevBen Skeggs22-262/+230
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28mxm: convert to new-style nvkm_subdevBen Skeggs11-123/+66
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28mmu: convert to new-style nvkm_subdevBen Skeggs21-478/+387
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28mc: convert to new-style nvkm_subdevBen Skeggs28-381/+265
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28ltc: convert to new-style nvkm_subdevBen Skeggs13-342/+235
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28imem: convert to new-style nvkm_subdevBen Skeggs21-391/+285
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28devinit: run devinit scripts right after preinitBen Skeggs3-11/+15
This ensures we have a valid mask of disabled engines before we start trying to execute fini()/init() on the subdevs, potentially touching devices that don't exist. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28ibus: convert to new-style nvkm_subdevBen Skeggs9-209/+101
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28i2c: convert to new-style nvkm_subdevBen Skeggs23-327/+200
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28gpio: convert to new-style nvkm_subdevBen Skeggs30-370/+252
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28fuse: convert to new-style nvkm_subdevBen Skeggs12-221/+100
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28fb: convert to new-style nvkm_subdevBen Skeggs47-812/+648
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28devinit: convert to new-style nvkm_subdevBen Skeggs32-466/+424
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2015-08-28clk: convert to new-style nvkm_subdevBen Skeggs31-706/+537
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>