diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-09 19:04:31 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-09 19:04:31 -0400 |
commit | 2e17c5a97e231f3cb426f4b7895eab5be5c5442e (patch) | |
tree | 80871817427250200d6931a45ccb4833c4add74a /drivers/char/agp | |
parent | 5f097cd249f00683442c3e265d6f27d80fc83563 (diff) | |
parent | 774d8e34e46506222bb5e2888e3ef42b2775715f (diff) |
Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux
Pull drm updates from Dave Airlie:
"Okay this is the big one, I was stalled on the fbdev pull req as I
stupidly let fbdev guys merge a patch I required to fix a warning with
some patches I had, they ended up merging the patch from the wrong
place, but the warning should be fixed. In future I'll just take the
patch myself!
Outside drm:
There are some snd changes for the HDMI audio interactions on haswell,
they've been acked for inclusion via my tree. This relies on the
wound/wait tree from Ingo which is already merged.
Major changes:
AMD finally released the dynamic power management code for all their
GPUs from r600->present day, this is great, off by default for now but
also a huge amount of code, in fact it is most of this pull request.
Since it landed there has been a lot of community testing and Alex has
sent a lot of fixes for any bugs found so far. I suspect radeon might
now be the biggest kernel driver ever :-P p.s. radeon.dpm=1 to enable
dynamic powermanagement for anyone.
New drivers:
Renesas r-car display unit.
Other highlights:
- core: GEM CMA prime support, use new w/w mutexs for TTM
reservations, cursor hotspot, doc updates
- dvo chips: chrontel 7010B support
- i915: Haswell (fbc, ips, vecs, watermarks, audio powerwell),
Valleyview (enabled by default, rc6), lots of pll reworking, 30bpp
support (this time for sure)
- nouveau: async buffer object deletion, context/register init
updates, kernel vp2 engine support, GF117 support, GK110 accel
support (with external nvidia ucode), context cleanups.
- exynos: memory leak fixes, Add S3C64XX SoC series support, device
tree updates, common clock framework support,
- qxl: cursor hotspot support, multi-monitor support, suspend/resume
support
- mgag200: hw cursor support, g200 mode limiting
- shmobile: prime support
- tegra: fixes mostly
I've been banging on this quite a lot due to the size of it, and it
seems to okay on everything I've tested it on."
* 'drm-next' of git://people.freedesktop.org/~airlied/linux: (811 commits)
drm/radeon/dpm: implement vblank_too_short callback for si
drm/radeon/dpm: implement vblank_too_short callback for cayman
drm/radeon/dpm: implement vblank_too_short callback for btc
drm/radeon/dpm: implement vblank_too_short callback for evergreen
drm/radeon/dpm: implement vblank_too_short callback for 7xx
drm/radeon/dpm: add checks against vblank time
drm/radeon/dpm: add helper to calculate vblank time
drm/radeon: remove stray line in old pm code
drm/radeon/dpm: fix display_gap programming on rv7xx
drm/nvc0/gr: fix gpc firmware regression
drm/nouveau: fix minor thinko causing bo moves to not be async on kepler
drm/radeon/dpm: implement force performance level for TN
drm/radeon/dpm: implement force performance level for ON/LN
drm/radeon/dpm: implement force performance level for SI
drm/radeon/dpm: implement force performance level for cayman
drm/radeon/dpm: implement force performance levels for 7xx/eg/btc
drm/radeon/dpm: add infrastructure to force performance levels
drm/radeon: fix surface setup on r1xx
drm/radeon: add support for 3d perf states on older asics
drm/radeon: set default clocks for SI when DPM is disabled
...
Diffstat (limited to 'drivers/char/agp')
-rw-r--r-- | drivers/char/agp/ati-agp.c | 4 | ||||
-rw-r--r-- | drivers/char/agp/frontend.c | 8 | ||||
-rw-r--r-- | drivers/char/agp/nvidia-agp.c | 6 |
3 files changed, 10 insertions, 8 deletions
diff --git a/drivers/char/agp/ati-agp.c b/drivers/char/agp/ati-agp.c index 0628d7b65c71..03c1dc1ab552 100644 --- a/drivers/char/agp/ati-agp.c +++ b/drivers/char/agp/ati-agp.c | |||
@@ -236,14 +236,14 @@ static int ati_configure(void) | |||
236 | static int agp_ati_suspend(struct pci_dev *dev, pm_message_t state) | 236 | static int agp_ati_suspend(struct pci_dev *dev, pm_message_t state) |
237 | { | 237 | { |
238 | pci_save_state(dev); | 238 | pci_save_state(dev); |
239 | pci_set_power_state(dev, 3); | 239 | pci_set_power_state(dev, PCI_D3hot); |
240 | 240 | ||
241 | return 0; | 241 | return 0; |
242 | } | 242 | } |
243 | 243 | ||
244 | static int agp_ati_resume(struct pci_dev *dev) | 244 | static int agp_ati_resume(struct pci_dev *dev) |
245 | { | 245 | { |
246 | pci_set_power_state(dev, 0); | 246 | pci_set_power_state(dev, PCI_D0); |
247 | pci_restore_state(dev); | 247 | pci_restore_state(dev); |
248 | 248 | ||
249 | return ati_configure(); | 249 | return ati_configure(); |
diff --git a/drivers/char/agp/frontend.c b/drivers/char/agp/frontend.c index 2e044338753c..1b192395a90c 100644 --- a/drivers/char/agp/frontend.c +++ b/drivers/char/agp/frontend.c | |||
@@ -603,7 +603,8 @@ static int agp_mmap(struct file *file, struct vm_area_struct *vma) | |||
603 | vma->vm_ops = kerninfo.vm_ops; | 603 | vma->vm_ops = kerninfo.vm_ops; |
604 | } else if (io_remap_pfn_range(vma, vma->vm_start, | 604 | } else if (io_remap_pfn_range(vma, vma->vm_start, |
605 | (kerninfo.aper_base + offset) >> PAGE_SHIFT, | 605 | (kerninfo.aper_base + offset) >> PAGE_SHIFT, |
606 | size, vma->vm_page_prot)) { | 606 | size, |
607 | pgprot_writecombine(vma->vm_page_prot))) { | ||
607 | goto out_again; | 608 | goto out_again; |
608 | } | 609 | } |
609 | mutex_unlock(&(agp_fe.agp_mutex)); | 610 | mutex_unlock(&(agp_fe.agp_mutex)); |
@@ -618,8 +619,9 @@ static int agp_mmap(struct file *file, struct vm_area_struct *vma) | |||
618 | if (kerninfo.vm_ops) { | 619 | if (kerninfo.vm_ops) { |
619 | vma->vm_ops = kerninfo.vm_ops; | 620 | vma->vm_ops = kerninfo.vm_ops; |
620 | } else if (io_remap_pfn_range(vma, vma->vm_start, | 621 | } else if (io_remap_pfn_range(vma, vma->vm_start, |
621 | kerninfo.aper_base >> PAGE_SHIFT, | 622 | kerninfo.aper_base >> PAGE_SHIFT, |
622 | size, vma->vm_page_prot)) { | 623 | size, |
624 | pgprot_writecombine(vma->vm_page_prot))) { | ||
623 | goto out_again; | 625 | goto out_again; |
624 | } | 626 | } |
625 | mutex_unlock(&(agp_fe.agp_mutex)); | 627 | mutex_unlock(&(agp_fe.agp_mutex)); |
diff --git a/drivers/char/agp/nvidia-agp.c b/drivers/char/agp/nvidia-agp.c index 62be3ec0da4b..be42a2312dc9 100644 --- a/drivers/char/agp/nvidia-agp.c +++ b/drivers/char/agp/nvidia-agp.c | |||
@@ -399,8 +399,8 @@ static void agp_nvidia_remove(struct pci_dev *pdev) | |||
399 | #ifdef CONFIG_PM | 399 | #ifdef CONFIG_PM |
400 | static int agp_nvidia_suspend(struct pci_dev *pdev, pm_message_t state) | 400 | static int agp_nvidia_suspend(struct pci_dev *pdev, pm_message_t state) |
401 | { | 401 | { |
402 | pci_save_state (pdev); | 402 | pci_save_state(pdev); |
403 | pci_set_power_state (pdev, 3); | 403 | pci_set_power_state(pdev, PCI_D3hot); |
404 | 404 | ||
405 | return 0; | 405 | return 0; |
406 | } | 406 | } |
@@ -408,7 +408,7 @@ static int agp_nvidia_suspend(struct pci_dev *pdev, pm_message_t state) | |||
408 | static int agp_nvidia_resume(struct pci_dev *pdev) | 408 | static int agp_nvidia_resume(struct pci_dev *pdev) |
409 | { | 409 | { |
410 | /* set power state 0 and restore PCI space */ | 410 | /* set power state 0 and restore PCI space */ |
411 | pci_set_power_state (pdev, 0); | 411 | pci_set_power_state(pdev, PCI_D0); |
412 | pci_restore_state(pdev); | 412 | pci_restore_state(pdev); |
413 | 413 | ||
414 | /* reconfigure AGP hardware again */ | 414 | /* reconfigure AGP hardware again */ |