diff options
author | Ian Romanick <idr@us.ibm.com> | 2007-09-18 11:03:49 -0700 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2007-09-18 11:03:49 -0700 |
commit | a3881ad2fef99aaf0a863609a847020ea822798c (patch) | |
tree | acc621d0101b97fec63ad601a8da8db88a883cf6 /linux-core/xgi_fb.c | |
parent | e7d4a26913ba3a4949ac36280925062948ee21ce (diff) |
Add ioc32 compat layer for XGI DRM.
Diffstat (limited to 'linux-core/xgi_fb.c')
-rw-r--r-- | linux-core/xgi_fb.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/linux-core/xgi_fb.c b/linux-core/xgi_fb.c index 40f39fbc..2e2d0094 100644 --- a/linux-core/xgi_fb.c +++ b/linux-core/xgi_fb.c @@ -65,6 +65,13 @@ int xgi_alloc(struct xgi_info * info, struct xgi_mem_alloc * alloc, alloc->hw_addr = alloc->offset; alloc->index = block->user_hash.key; + if (block->user_hash.key != (unsigned long) alloc->index) { + DRM_ERROR("%s truncated handle %lx for pool %d " + "offset %x\n", + __func__, block->user_hash.key, + alloc->location, alloc->offset); + } + if (alloc->location == XGI_MEMLOC_NON_LOCAL) { alloc->hw_addr += info->pcie.base; } |