Skip to contentSkip to conversation

drm/ttm: remove ttm_bo_device->nice_mode

PATCH In review Marcin Slusarz 2 participants 2 messages Nov 6, 2012 – Nov 7, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 3/4 drm/ttm: remove ttm_bo_device->nice_mode

It's unused.

Cc Thomas Hellstrom <[email protected]>
---
 drivers/gpu/drm/ttm/ttm_bo.c    | 1 -
 include/drm/ttm/ttm_bo_driver.h | 3 ---
 2 files changed, 4 deletions(-)
drivers/gpu/drm/ttm/ttm_bo.c +0 -1
index 412486c..da7a985 100644
@@ -1570,7 +1570,6 @@ int ttm_bo_device_init(struct ttm_bo_device *bdev,
 		goto out_no_addr_mm;
 
 	INIT_DELAYED_WORK(&bdev->wq, ttm_bo_delayed_workqueue);
-	bdev->nice_mode = true;
 	INIT_LIST_HEAD(&bdev->ddestroy);
 	bdev->dev_mapping = NULL;
 	bdev->glob = glob;
include/drm/ttm/ttm_bo_driver.h +0 -3
index d803b92..95628e7 100644
@@ -521,8 +521,6 @@ struct ttm_bo_global {
  * lru_lock: Spinlock that protects the buffer+device lru lists and
  * ddestroy lists.
  * @val_seq: Current validation sequence.
- * @nice_mode: Try nicely to wait for buffer idle when cleaning a manager.
- * If a GPU lockup has been detected, this is forced to 0.
  * @dev_mapping: A pointer to the struct address_space representing the
  * device address space.
  * @wq: Work queue structure for the delayed delete workqueue.
@@ -556,7 +554,6 @@ struct ttm_bo_device {
 	 * Protected by load / firstopen / lastclose /unload sync.
 	 */
 
-	bool nice_mode;
 	struct address_space *dev_mapping;
 
 	/*
Signature · 1 line
1.7.12
Reviewed-by on v1 3/4
#1 lore raw
Quoted 35 lines · Marcin Slusarz

It's unused.

Cc Thomas Hellstrom <[email protected]>
---
  drivers/gpu/drm/ttm/ttm_bo.c    | 1 -
  include/drm/ttm/ttm_bo_driver.h | 3 ---
  2 files changed, 4 deletions(-)
drivers/gpu/drm/ttm/ttm_bo.c +0 -1
index 412486c..da7a985 100644
@@ -1570,7 +1570,6 @@ int ttm_bo_device_init(struct ttm_bo_device *bdev,
  		goto out_no_addr_mm;
 
  	INIT_DELAYED_WORK(&bdev->wq, ttm_bo_delayed_workqueue);
-	bdev->nice_mode = true;
  	INIT_LIST_HEAD(&bdev->ddestroy);
  	bdev->dev_mapping = NULL;
  	bdev->glob = glob;
include/drm/ttm/ttm_bo_driver.h +0 -2
index d803b92..95628e7 100644
@@ -521,8 +521,6 @@ struct ttm_bo_global {
   * lru_lock: Spinlock that protects the buffer+device lru lists and
   * ddestroy lists.
   * @val_seq: Current validation sequence.
- * @nice_mode: Try nicely to wait for buffer idle when cleaning a manager.
- * If a GPU lockup has been detected, this is forced to 0.
   * @dev_mapping: A pointer to the struct address_space representing the
   * device address space.
   * @wq: Work queue structure for the delayed delete workqueue.

include/drm/ttm/ttm_bo_driver.h struct ttm_bo_device { · line 559

Quoted 7 lines
include/drm/ttm/ttm_bo_driver.h +0 -1
@@ -556,7 +554,6 @@ struct ttm_bo_device {
  	 * Protected by load / firstopen / lastclose /unload sync.
  	 */
 
-	bool nice_mode;
  	struct address_space *dev_mapping;
 
  	/*