Skip to content

Commit 1a464cb

Browse files
committed
Merge branch 'drm-core-next' of git://people.freedesktop.org/~airlied/linux
* 'drm-core-next' of git://people.freedesktop.org/~airlied/linux: (307 commits) drm/nouveau/pm: fix build with HWMON off gma500: silence gcc warnings in mid_get_vbt_data() drm/ttm: fix condition (and vs or) drm/radeon: double lock typo in radeon_vm_bo_rmv() drm/radeon: use after free in radeon_vm_bo_add() drm/sis|via: don't return stack garbage from free_mem ioctl drm/radeon/kms: remove pointless CS flags priority struct drm/radeon/kms: check if vm is supported in VA ioctl drm: introduce drm_can_sleep and use in intel/radeon drivers. (v2) radeon: Fix disabling PCI bus mastering on big endian hosts. ttm: fix agp since ttm tt rework agp: Fix multi-line warning message whitespace drm/ttm/dma: Fix accounting error when calling ttm_mem_global_free_page and don't try to free freed pages. drm/ttm/dma: Only call set_pages_array_wb when the page is not in WB pool. drm/radeon/kms: sync across multiple rings when doing bo moves v3 drm/radeon/kms: Add support for multi-ring sync in CS ioctl (v2) drm/radeon: GPU virtual memory support v22 drm: make DRM_UNLOCKED ioctls with their own mutex drm: no need to hold global mutex for static data drm/radeon/benchmark: common modes sweep ignores 640x480@32 ... Fix up trivial conflicts in radeon/evergreen.c and vmwgfx/vmwgfx_kms.c
2 parents dbe950f + 095f979 commit 1a464cb

File tree

288 files changed

+43103
-6739
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

288 files changed

+43103
-6739
lines changed

drivers/char/agp/generic.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -514,12 +514,12 @@ static void agp_v2_parse_one(u32 *requested_mode, u32 *bridge_agpstat, u32 *vga_
514514
switch (*bridge_agpstat & 7) {
515515
case 4:
516516
*bridge_agpstat |= (AGPSTAT2_2X | AGPSTAT2_1X);
517-
printk(KERN_INFO PFX "BIOS bug. AGP bridge claims to only support x4 rate"
517+
printk(KERN_INFO PFX "BIOS bug. AGP bridge claims to only support x4 rate. "
518518
"Fixing up support for x2 & x1\n");
519519
break;
520520
case 2:
521521
*bridge_agpstat |= AGPSTAT2_1X;
522-
printk(KERN_INFO PFX "BIOS bug. AGP bridge claims to only support x2 rate"
522+
printk(KERN_INFO PFX "BIOS bug. AGP bridge claims to only support x2 rate. "
523523
"Fixing up support for x1\n");
524524
break;
525525
default:
@@ -693,7 +693,7 @@ static void agp_v3_parse_one(u32 *requested_mode, u32 *bridge_agpstat, u32 *vga_
693693
*bridge_agpstat &= ~(AGPSTAT3_4X | AGPSTAT3_RSVD);
694694
*vga_agpstat &= ~(AGPSTAT3_4X | AGPSTAT3_RSVD);
695695
} else {
696-
printk(KERN_INFO PFX "Fell back to AGPx4 mode because");
696+
printk(KERN_INFO PFX "Fell back to AGPx4 mode because ");
697697
if (!(*bridge_agpstat & AGPSTAT3_8X)) {
698698
printk(KERN_INFO PFX "bridge couldn't do x8. bridge_agpstat:%x (orig=%x)\n",
699699
*bridge_agpstat, origbridge);
@@ -956,7 +956,7 @@ int agp_generic_create_gatt_table(struct agp_bridge_data *bridge)
956956
bridge->driver->cache_flush();
957957
#ifdef CONFIG_X86
958958
if (set_memory_uc((unsigned long)table, 1 << page_order))
959-
printk(KERN_WARNING "Could not set GATT table memory to UC!");
959+
printk(KERN_WARNING "Could not set GATT table memory to UC!\n");
960960

961961
bridge->gatt_table = (void *)table;
962962
#else

drivers/gpu/drm/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,3 +162,6 @@ config DRM_SAVAGE
162162
source "drivers/gpu/drm/exynos/Kconfig"
163163

164164
source "drivers/gpu/drm/vmwgfx/Kconfig"
165+
166+
source "drivers/gpu/drm/gma500/Kconfig"
167+

drivers/gpu/drm/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ drm-y := drm_auth.o drm_buffer.o drm_bufs.o drm_cache.o \
99
drm_drv.o drm_fops.o drm_gem.o drm_ioctl.o drm_irq.o \
1010
drm_lock.o drm_memory.o drm_proc.o drm_stub.o drm_vm.o \
1111
drm_agpsupport.o drm_scatter.o ati_pcigart.o drm_pci.o \
12-
drm_platform.o drm_sysfs.o drm_hashtab.o drm_sman.o drm_mm.o \
12+
drm_platform.o drm_sysfs.o drm_hashtab.o drm_mm.o \
1313
drm_crtc.o drm_modes.o drm_edid.o \
1414
drm_info.o drm_debugfs.o drm_encoder_slave.o \
1515
drm_trace_points.o drm_global.o drm_usb.o
@@ -36,4 +36,5 @@ obj-$(CONFIG_DRM_VMWGFX)+= vmwgfx/
3636
obj-$(CONFIG_DRM_VIA) +=via/
3737
obj-$(CONFIG_DRM_NOUVEAU) +=nouveau/
3838
obj-$(CONFIG_DRM_EXYNOS) +=exynos/
39+
obj-$(CONFIG_DRM_GMA500) += gma500/
3940
obj-y += i2c/

drivers/gpu/drm/drm_context.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,6 @@ int drm_getsareactx(struct drm_device *dev, void *data,
154154
return -EINVAL;
155155
}
156156

157-
mutex_unlock(&dev->struct_mutex);
158-
159157
request->handle = NULL;
160158
list_for_each_entry(_entry, &dev->maplist, head) {
161159
if (_entry->map == map) {
@@ -164,6 +162,9 @@ int drm_getsareactx(struct drm_device *dev, void *data,
164162
break;
165163
}
166164
}
165+
166+
mutex_unlock(&dev->struct_mutex);
167+
167168
if (request->handle == NULL)
168169
return -EINVAL;
169170

0 commit comments

Comments
 (0)