Rev 1413 | Rev 1430 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1413 | Rev 1428 | ||
---|---|---|---|
Line 157... | Line 157... | ||
157 | /* |
157 | /* |
158 | * Copy from radeon_drv.h so we don't have to include both and have conflicting |
158 | * Copy from radeon_drv.h so we don't have to include both and have conflicting |
159 | * symbol; |
159 | * symbol; |
160 | */ |
160 | */ |
161 | #define RADEON_MAX_USEC_TIMEOUT 100000 /* 100 ms */ |
161 | #define RADEON_MAX_USEC_TIMEOUT 100000 /* 100 ms */ |
- | 162 | /* RADEON_IB_POOL_SIZE must be a power of 2 */ |
|
162 | #define RADEON_IB_POOL_SIZE 16 |
163 | #define RADEON_IB_POOL_SIZE 16 |
163 | #define RADEON_DEBUGFS_MAX_NUM_FILES 32 |
164 | #define RADEON_DEBUGFS_MAX_NUM_FILES 32 |
164 | #define RADEONFB_CONN_LIMIT 4 |
165 | #define RADEONFB_CONN_LIMIT 4 |
165 | #define RADEON_BIOS_NUM_SCRATCH 8 |
166 | #define RADEON_BIOS_NUM_SCRATCH 8 |
Line 425... | Line 426... | ||
425 | /* |
426 | /* |
426 | * CP & ring. |
427 | * CP & ring. |
427 | */ |
428 | */ |
428 | struct radeon_ib { |
429 | struct radeon_ib { |
429 | struct list_head list; |
430 | struct list_head list; |
430 | unsigned long idx; |
431 | unsigned idx; |
431 | uint64_t gpu_addr; |
432 | uint64_t gpu_addr; |
432 | struct radeon_fence *fence; |
433 | struct radeon_fence *fence; |
433 | uint32_t *ptr; |
434 | uint32_t *ptr; |
434 | uint32_t length_dw; |
435 | uint32_t length_dw; |
- | 436 | bool free; |
|
435 | }; |
437 | }; |
Line 436... | Line 438... | ||
436 | 438 | ||
437 | /* |
439 | /* |
438 | * locking - |
440 | * locking - |
439 | * mutex protects scheduled_ibs, ready, alloc_bm |
441 | * mutex protects scheduled_ibs, ready, alloc_bm |
440 | */ |
442 | */ |
441 | struct radeon_ib_pool { |
443 | struct radeon_ib_pool { |
442 | // struct mutex mutex; |
444 | // struct mutex mutex; |
443 | struct radeon_bo *robj; |
- | |
444 | struct list_head scheduled_ibs; |
445 | struct radeon_bo *robj; |
445 | struct radeon_ib ibs[RADEON_IB_POOL_SIZE]; |
446 | struct radeon_ib ibs[RADEON_IB_POOL_SIZE]; |
446 | bool ready; |
447 | bool ready; |
447 | DECLARE_BITMAP(alloc_bm, RADEON_IB_POOL_SIZE); |
448 | unsigned head_id; |
Line 448... | Line 449... | ||
448 | }; |
449 | }; |
449 | 450 | ||
450 | struct radeon_cp { |
451 | struct radeon_cp { |