Marek Olšák
dfadbbdb57
drm/ttm: add a way to bo_wait for either the last read or last write
...
Sometimes we want to know whether a buffer is busy and wait for it (bo_wait).
However, sometimes it would be more useful to be able to query whether
a buffer is busy and being either read or written, and wait until it's stopped
being either read or written. The point of this is to be able to avoid
unnecessary waiting, e.g. if a GPU has written something to a buffer and is now
reading that buffer, and a CPU wants to map that buffer for read, it needs to
only wait for the last write. If there were no write, there wouldn't be any
waiting needed.
This, or course, requires user space drivers to send read/write flags
with each relocation (like we have read/write domains in radeon, so we can
actually use those for something useful now).
Now how this patch works:
The read/write flags should passed to ttm_validate_buffer. TTM maintains
separate sync objects of the last read and write for each buffer, in addition
to the sync object of the last use of a buffer. ttm_bo_wait then operates
with one the sync objects.
Signed-off-by: Marek Olšák <[email protected] >
Reviewed-by: Jerome Glisse <[email protected] >
Signed-off-by: Dave Airlie <[email protected] >
2011-08-31 19:25:35 +01:00
..
accessibility
acpi
Merge branch 'battery' into release
2011-08-05 22:16:42 -04:00
amba
ata
drivers/ata/sata_dwc_460ex.c: add missing kfree
2011-08-18 23:58:11 -04:00
atm
auxdisplay
base
Merge branch 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
2011-08-28 10:05:39 -07:00
bcma
block
Merge branch 'stable/for-jens' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen into for-linus
2011-08-09 20:43:26 +02:00
bluetooth
cdrom
drivers/cdrom/cdrom.c: relax check on dvd manufacturer value
2011-08-02 12:43:50 +02:00
char
drivers/char/msm_smd_pkt.c: don't use IS_ERR()
2011-08-25 16:25:33 -07:00
clk
clocksource
connector
cpufreq
cpuidle
cpuidle: stop depending on pm_idle
2011-08-03 19:06:37 -04:00
crypto
dca
dio
dma
Merge branch 'fixes' of master.kernel.org:/home/rmk/linux-2.6-arm
2011-08-10 17:37:17 -07:00
edac
i7core_edac: fixed typo in error count calculation
2011-08-18 14:07:15 -07:00
eisa
eisa/pci_eisa.c: fix BUG introduced by 005bdad7b8
2011-08-04 06:32:51 -10:00
firewire
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6
2011-08-27 09:32:08 -07:00
firmware
firmware: fix google/gsmi.c build warning
2011-08-08 13:53:49 -07:00
gpio
Merge branch 'gpio/next' of git://git.secretlab.ca/git/linux-2.6
2011-08-01 06:13:48 -10:00
gpu
drm/ttm: add a way to bo_wait for either the last read or last write
2011-08-31 19:25:35 +01:00
hid
Merge branches 'wiimote' and 'upstream-fixes' into for-linus
2011-08-24 16:41:52 +02:00
hwmon
hwmon: (i5k_amb) Drop i5k_channel_pci_id
2011-08-23 21:04:28 -07:00
hwspinlock
i2c
i2c-nomadik: fix kerneldoc warning
2011-08-24 23:28:49 +01:00
ide
drivers/ide/cy82c693.c: Add missing pci_dev_put
2011-08-04 01:30:34 -07:00
idle
ieee802154
infiniband
Merge branches 'ipoib' and 'iser' into for-next
2011-08-17 10:57:43 -07:00
input
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
2011-08-24 09:19:03 -07:00
iommu
isdn
leds
drivers/leds/leds-bd2802.c: bd2802_unregister_led_classdev() should unregister all registered leds
2011-08-25 16:25:35 -07:00
lguest
macintosh
mca
md
dm table: set flush capability based on underlying devices
2011-08-02 12:32:08 +01:00
media
memstick
message
mfd
mfd: Fix mismatch in twl4030 mutex lock-unlock
2011-07-31 23:28:27 +02:00
misc
Merge branch 'driver-core-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6
2011-08-26 13:05:09 -07:00
mmc
mmc: dw_mmc: Fix DDR mode support.
2011-08-13 14:50:32 -04:00
mtd
net
rapidio: fix use of non-compatible registers
2011-08-25 16:25:34 -07:00
nfc
nubus
of
Revert "dt: add of_alias_scan and of_alias_get_id"
2011-08-04 11:26:24 +01:00
oprofile
parisc
parport
pci
pci: fix new kernel-doc warning in pci.c
2011-08-20 18:02:32 -07:00
pcmcia
platform
acer-wmi: support Lenovo ideapad S205 wifi switch
2011-08-05 15:21:52 -04:00
pnp
power
s3c-adc-battery: Fix compilation error due to missing header (module.h)
2011-08-19 21:01:46 +04:00
pps
ps3
ptp
rapidio
rapidio: fix use of non-compatible registers
2011-08-25 16:25:34 -07:00
regulator
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/voltage-2.6
2011-08-01 14:05:46 -10:00
rtc
drivers/rtc/rtc-s3c.c: allow multiple open / allow no-ioctl-open'ed rtc to have irq.
2011-08-25 18:51:00 -07:00
s390
[S390] memory hotplug: only unassign assigned increments
2011-08-24 17:15:24 +02:00
sbus
scsi
sfi
sh
Merge branch 'sh-latest' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-3.x
2011-08-01 06:10:16 -10:00
sn
spi
spi/pl022: remove function cannot exit
2011-08-02 14:54:11 +01:00
ssb
staging
staging: tidspbridge: fix compilation on dsp clock functions
2011-08-24 14:35:26 -07:00
target
target: Convert acl_node_lock to be IRQ-disabling
2011-08-22 19:28:36 +00:00
tc
telephony
thermal
thermal: make THERMAL_HWMON implementation fully internal
2011-08-02 14:51:57 -04:00
tty
Merge branch 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
2011-08-28 10:05:39 -07:00
uio
usb
USB: ftdi_sio: add Calao reference board support
2011-08-25 09:44:50 -07:00
uwb
vhost
video
backlight: fix module alias prefix for adp8870_bl
2011-08-25 16:25:34 -07:00
virt
virtio
vlynq
w1
MAINTAINERS: Evgeniy has moved
2011-08-25 16:25:33 -07:00
watchdog
watchdog: Cleanup WATCHDOG_CORE help text
2011-08-02 08:23:07 +00:00
xen
xen: self-balloon needs module.h
2011-08-16 07:23:34 -07:00
zorro
Kconfig
Makefile