From patchwork Tue Nov 6 21:49:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Marcin_=C5=9Alusarz?= X-Patchwork-Id: 1706951 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id BE83DDFE75 for ; Tue, 6 Nov 2012 21:52:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D9941A08C0 for ; Tue, 6 Nov 2012 13:52:39 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-we0-f177.google.com (mail-we0-f177.google.com [74.125.82.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 986F0A0896 for ; Tue, 6 Nov 2012 13:49:32 -0800 (PST) Received: by mail-we0-f177.google.com with SMTP id u50so415391wey.36 for ; Tue, 06 Nov 2012 13:49:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=yCIEFUHpmGnq0+2ToT1c+EqSlydSOsAmX9HgqcLou/U=; b=mvph+3PGCJq7sSIfWp3kJjhfhDgjoeqA0G3ySOXPiO207oi0MgcFywLBiato+pOv7W eNz0GPFkRrY0quYHq/dTXMCj9MKI1SMA6rSMd1W0v6ewh9HcY7HRe9j3cIaa2GvosvVL LPLy3T9M0pU2xg7WTl+p0vXeFfAo52Q//XxLzi7iHzF98Ux5EosxTMtSYsAN4b3BWiGM ajR/CcffGlQXwVvv8okogVrSzFZglbn+o1ZtALl63Z+leOkAmUNjyw2MnbqjPukMxKfg QMqGuTBtzsFBRRah7kRguZfNBSCjDfijsimbWL2qCwadeLDwWc5wXdNcPhLoQ/Po1oGE Af0A== Received: by 10.216.195.159 with SMTP id p31mr1020807wen.139.1352238571637; Tue, 06 Nov 2012 13:49:31 -0800 (PST) Received: from joi (acdi235.neoplus.adsl.tpnet.pl. [83.9.158.235]) by mx.google.com with ESMTPS id w8sm601568wiv.8.2012.11.06.13.49.28 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Nov 2012 13:49:31 -0800 (PST) Received: by joi (sSMTP sendmail emulation); Tue, 06 Nov 2012 22:50:02 +0100 From: Marcin Slusarz To: Subject: [PATCH 3/4] drm/ttm: remove ttm_bo_device->nice_mode Date: Tue, 6 Nov 2012 22:49:53 +0100 Message-Id: <1352238594-14991-3-git-send-email-marcin.slusarz@gmail.com> X-Mailer: git-send-email 1.7.12 Cc: Thomas Hellstrom X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org It's unused. Signed-off-by: Marcin Slusarz Cc: Thomas Hellstrom Reviewed-by: Thomas Hellstrom --- drivers/gpu/drm/ttm/ttm_bo.c | 1 - include/drm/ttm/ttm_bo_driver.h | 3 --- 2 files changed, 4 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 412486c..da7a985 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c @@ -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; diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h index d803b92..95628e7 100644 --- a/include/drm/ttm/ttm_bo_driver.h +++ b/include/drm/ttm/ttm_bo_driver.h @@ -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; /*