]> bbs.cooldavid.org Git - net-next-2.6.git/commit
drm: update user token hashing and map handles
authorThomas Hellstrom <thomas@tungstengraphics.com>
Mon, 7 Aug 2006 12:36:47 +0000 (22:36 +1000)
committerDave Airlie <airlied@linux.ie>
Thu, 21 Sep 2006 19:32:31 +0000 (05:32 +1000)
commit8d153f7107ff2c5d6e32053ae377c961187ab6b9
treec90cdf1bf8e04237e840b37033fc0f57b74ab292
parent8669cbc5e651bf4effa20e8c244a5a7d67da6fe9
drm: update user token hashing and map handles

Keep hashed user tokens, with the following changes:
32-bit physical device addresses are mapped directly to user-tokens. No
    duplicate maps are allowed, and the addresses are assumed to be outside
    of the range 0x10000000 through 0x30000000. The user-token is identical
    to the 32-bit physical start-address of the map.
64-bit physical device addressed are mapped to user-tokens in the range
0x10000000 to 0x30000000 with page-size increments. The user_token should
    not be interpreted as an address.
Other map types, like upcoming TTM maps are mapped to user-tokens in the
    range
0x10000000 to 0x30000000 with page-size increments. The user_token should
    not be interpreted as an address.

Implement hashed map lookups.

Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drmP.h
drivers/char/drm/drm_bufs.c
drivers/char/drm/drm_hashtab.h
drivers/char/drm/drm_stub.c
drivers/char/drm/drm_vm.c