From patchwork Wed Feb 2 00:27:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Skeggs X-Patchwork-Id: 524421 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p120SEUt003852 for ; Wed, 2 Feb 2011 00:28:35 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 22BDF9E887 for ; Tue, 1 Feb 2011 16:28:14 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-vx0-f177.google.com (mail-vx0-f177.google.com [209.85.220.177]) by gabe.freedesktop.org (Postfix) with ESMTP id E98E59E76F for ; Tue, 1 Feb 2011 16:28:02 -0800 (PST) Received: by vxd2 with SMTP id 2so522798vxd.36 for ; Tue, 01 Feb 2011 16:28:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=m+RzRknfR/mnEXlQLY2fcnC5zNtw049i7jzYcIf4r0E=; b=P3Ywn1/Rv4hXKBj9OCqFN9g1PCcpk8bqR6LufgttfBwWYeDBgKxGDoGq4X3sdamFAH 1YmpBbSUZv2MqGbs/vH4odezc2KGKZTdjNoh9m3MOi5dldOzYfbRK1GMJlyrXKB7wUZl yyZPJZC8c+d5LpZ3g8aOe8QlhIomHKU4JrHzs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=P32RXoxGVmAKcXNjJXBOdSwXZ86mkbzZhIl8px0L/9FGKh8s9h7KUIBVM/5XZRxqhn /uRkG0U3Y0CaC+EIOvHMDGc8jN5CVNTOX5MwQi/BqpoubaCOclPQQyg7z5km90bv1MDg 6nlBuy++TsTNmKCJwvu8QHL1Ysep8f1dK1iQE= Received: by 10.220.181.130 with SMTP id by2mr1470693vcb.247.1296606481873; Tue, 01 Feb 2011 16:28:01 -0800 (PST) Received: from localhost6.localdomain6 (124-171-94-77.dyn.iinet.net.au [124.171.94.77]) by mx.google.com with ESMTPS id g17sm14510666vbv.12.2011.02.01.16.27.58 (version=SSLv3 cipher=RC4-MD5); Tue, 01 Feb 2011 16:28:00 -0800 (PST) From: Ben Skeggs To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/ttm: call driver move_notify() when doing system->tt bo moves Date: Wed, 2 Feb 2011 10:27:10 +1000 Message-Id: <1296606430-32725-1-git-send-email-skeggsb@gmail.com> X-Mailer: git-send-email 1.7.4 Cc: Ben Skeggs X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.11 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 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 02 Feb 2011 00:28:35 +0000 (UTC) diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index af61fc2..0b6a55a 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c @@ -406,11 +406,12 @@ static int ttm_bo_handle_move_mem(struct ttm_buffer_object *bo, } if (bo->mem.mem_type == TTM_PL_SYSTEM) { + if (bdev->driver->move_notify) + bdev->driver->move_notify(bo, mem); bo->mem = *mem; mem->mm_node = NULL; goto moved; } - } if (bdev->driver->move_notify)