diff options
| author | Dave Airlie <airlied@redhat.com> | 2015-05-06 23:02:39 -0400 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2015-05-06 23:02:39 -0400 |
| commit | 49f897647aab5958ad34a392b82fb22b7c83c01e (patch) | |
| tree | ebc487dc1222f7e8136f5128ed99e4c365cb98a1 /include/drm | |
| parent | 5ebe6afaf0057ac3eaeb98defd5456894b446d22 (diff) | |
| parent | 4a324d33bfe95a279d4c7370d84087d3e773e799 (diff) | |
Merge tag 'topic/drm-misc-2015-05-06' of git://anongit.freedesktop.org/drm-intel into drm-next
misc drm core patches.
* tag 'topic/drm-misc-2015-05-06' of git://anongit.freedesktop.org/drm-intel:
drm: simplify master cleanup
drm: simplify authentication management
drm: drop unused 'magicfree' list
drm: fix a memleak on mutex failure path
drm/atomic-helper: Really recover pre-atomic plane/cursor behavior
drm/qxl: Fix qxl_noop_get_vblank_counter()
drm: Zero out invalid vblank timestamp in drm_update_vblank_count. (v2)
drm: Prevent invalid use of vblank_disable_immediate. (v2)
drm/vblank: Fixup and document timestamp update/read barriers
DRM: Don't re-poll connector for disconnect
drm: Fix for DP CTS test 4.2.2.5 - I2C DEFER handling
drm: Fix the 'native defer' message in drm_dp_i2c_do_msg()
drm/atomic-helper: Don't call atomic_update_plane when it stays off
Diffstat (limited to 'include/drm')
| -rw-r--r-- | include/drm/drmP.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 62c40777c009..df6d9970d9a4 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
| @@ -355,8 +355,7 @@ struct drm_lock_data { | |||
| 355 | * @minor: Link back to minor char device we are master for. Immutable. | 355 | * @minor: Link back to minor char device we are master for. Immutable. |
| 356 | * @unique: Unique identifier: e.g. busid. Protected by drm_global_mutex. | 356 | * @unique: Unique identifier: e.g. busid. Protected by drm_global_mutex. |
| 357 | * @unique_len: Length of unique field. Protected by drm_global_mutex. | 357 | * @unique_len: Length of unique field. Protected by drm_global_mutex. |
| 358 | * @magiclist: Hash of used authentication tokens. Protected by struct_mutex. | 358 | * @magic_map: Map of used authentication tokens. Protected by struct_mutex. |
| 359 | * @magicfree: List of used authentication tokens. Protected by struct_mutex. | ||
| 360 | * @lock: DRI lock information. | 359 | * @lock: DRI lock information. |
| 361 | * @driver_priv: Pointer to driver-private information. | 360 | * @driver_priv: Pointer to driver-private information. |
| 362 | */ | 361 | */ |
| @@ -365,8 +364,7 @@ struct drm_master { | |||
| 365 | struct drm_minor *minor; | 364 | struct drm_minor *minor; |
| 366 | char *unique; | 365 | char *unique; |
| 367 | int unique_len; | 366 | int unique_len; |
| 368 | struct drm_open_hash magiclist; | 367 | struct idr magic_map; |
| 369 | struct list_head magicfree; | ||
| 370 | struct drm_lock_data lock; | 368 | struct drm_lock_data lock; |
| 371 | void *driver_priv; | 369 | void *driver_priv; |
| 372 | }; | 370 | }; |
| @@ -686,9 +684,13 @@ struct drm_pending_vblank_event { | |||
| 686 | struct drm_vblank_crtc { | 684 | struct drm_vblank_crtc { |
| 687 | struct drm_device *dev; /* pointer to the drm_device */ | 685 | struct drm_device *dev; /* pointer to the drm_device */ |
| 688 | wait_queue_head_t queue; /**< VBLANK wait queue */ | 686 | wait_queue_head_t queue; /**< VBLANK wait queue */ |
| 689 | struct timeval time[DRM_VBLANKTIME_RBSIZE]; /**< timestamp of current count */ | ||
| 690 | struct timer_list disable_timer; /* delayed disable timer */ | 687 | struct timer_list disable_timer; /* delayed disable timer */ |
| 691 | atomic_t count; /**< number of VBLANK interrupts */ | 688 | |
| 689 | /* vblank counter, protected by dev->vblank_time_lock for writes */ | ||
| 690 | unsigned long count; | ||
| 691 | /* vblank timestamps, protected by dev->vblank_time_lock for writes */ | ||
| 692 | struct timeval time[DRM_VBLANKTIME_RBSIZE]; | ||
| 693 | |||
| 692 | atomic_t refcount; /* number of users of vblank interruptsper crtc */ | 694 | atomic_t refcount; /* number of users of vblank interruptsper crtc */ |
| 693 | u32 last; /* protected by dev->vbl_lock, used */ | 695 | u32 last; /* protected by dev->vbl_lock, used */ |
| 694 | /* for wraparound handling */ | 696 | /* for wraparound handling */ |
