From patchwork Thu Feb 22 11:15:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Christian_K=C3=B6nig?= X-Patchwork-Id: 10235163 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8381F60224 for ; Thu, 22 Feb 2018 11:15:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 889B728B85 for ; Thu, 22 Feb 2018 11:15:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7D68D28B8C; Thu, 22 Feb 2018 11:15:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3D8FC28B85 for ; Thu, 22 Feb 2018 11:15:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4181B6ED38; Thu, 22 Feb 2018 11:15:48 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id A5F1D6ED34 for ; Thu, 22 Feb 2018 11:15:45 +0000 (UTC) Received: by mail-wm0-x243.google.com with SMTP id q83so3193623wme.5 for ; Thu, 22 Feb 2018 03:15:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=tTaXs3AzEtJh7x1l4nOnFoM3qTTlWVOG0PbEINDwUP8=; b=BRLVBH6cAHL269JLjRY5UVuILtCuHfrCf1IO4WyjoeAFCYn8Jy6ncDOHpgtC/ojTrl 8j4AKVEjn1k7SW872rjH7Y1Vob7yibO1zihnXY1maKOaPVMj8XbRV2PDrssF8dphVjjE RQJf75smySCjFKLtffPLGEpzslk/LtIODKQ7Q1RsQ9BysRB6iF3y0n7lsJH5+nB7WTeS Jq9kBCGKHPnUZTrB3ch3nGitV2CRG7JowJIkZjAtQ3UNUPjVRGBNUn4XWKqk8kY/KQEs SBOaz9C/zt6A9GIrfKnjSgDmR36FCNMlo1hk9oqvT0bW6rnxu9EL8gqhcOGnLuRsqM59 95dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tTaXs3AzEtJh7x1l4nOnFoM3qTTlWVOG0PbEINDwUP8=; b=UxZBWcNo55IceYmQIm5DX0pV/iFJqIi5WZxMpiSKVRC5qnyE+gUlkhHClmRY59jNmK Ylc919u82+oKGR6+614IxdbyJr5CncrQDb/Uv9aFx16SBF+OHm7Xd+i5up3APdKC/PdV DVyTzw4hHaLi3ZAWMd8GX27VeHyGEAA/p3OBaZnRiqUqFa6u++XjU5v6KK87+NTNVbyb q4PSDCkm2UFlH7fKDRx+QxLMwxgTDUNCJZac4URVqGA9RtyrwB+cBdV1+K0TSggoWc/0 YMmIGmk6A6n5PwBv0mki0K9yZsd+qStp/4kSWlbg3leaSCs3BsuzBKRc22SbpVqgVELY W8aw== X-Gm-Message-State: APf1xPDrrT5Xr5U/QbksFGjdNcRV0rlM3oUWAAhWri6LtL5BjT6rDrAX q4qHRf+c+3owg3pcwNBs5FLb2g== X-Google-Smtp-Source: AH8x2279hdJMzxhjQQf1tXJB7naXMWjtC5879HSVuC5B5IZ19fHQQG7cZ8yAVLWFsRdBJKyq0+0hqg== X-Received: by 10.28.171.10 with SMTP id u10mr4736883wme.108.1519298144174; Thu, 22 Feb 2018 03:15:44 -0800 (PST) Received: from baker.fritz.box ([2a02:908:1251:8fc0:88c:4715:87af:fa74]) by smtp.gmail.com with ESMTPSA id m71sm238696wmd.6.2018.02.22.03.15.43 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Feb 2018 03:15:43 -0800 (PST) From: "=?UTF-8?q?Christian=20K=C3=B6nig?=" X-Google-Original-From: =?UTF-8?q?Christian=20K=C3=B6nig?= To: dri-devel@lists.freedesktop.org Subject: [PATCH 3/8] drm/mgag200: remove ttm_pool_* wrappers Date: Thu, 22 Feb 2018 12:15:35 +0100 Message-Id: <20180222111540.43479-3-christian.koenig@amd.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180222111540.43479-1-christian.koenig@amd.com> References: <20180222111540.43479-1-christian.koenig@amd.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP TTM calls the default implementation now. Signed-off-by: Christian König --- drivers/gpu/drm/mgag200/mgag200_ttm.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/drivers/gpu/drm/mgag200/mgag200_ttm.c b/drivers/gpu/drm/mgag200/mgag200_ttm.c index c97009bb77dd..26e5f14645c5 100644 --- a/drivers/gpu/drm/mgag200/mgag200_ttm.c +++ b/drivers/gpu/drm/mgag200/mgag200_ttm.c @@ -216,21 +216,8 @@ static struct ttm_tt *mgag200_ttm_tt_create(struct ttm_bo_device *bdev, return tt; } -static int mgag200_ttm_tt_populate(struct ttm_tt *ttm, - struct ttm_operation_ctx *ctx) -{ - return ttm_pool_populate(ttm, ctx); -} - -static void mgag200_ttm_tt_unpopulate(struct ttm_tt *ttm) -{ - ttm_pool_unpopulate(ttm); -} - struct ttm_bo_driver mgag200_bo_driver = { .ttm_tt_create = mgag200_ttm_tt_create, - .ttm_tt_populate = mgag200_ttm_tt_populate, - .ttm_tt_unpopulate = mgag200_ttm_tt_unpopulate, .init_mem_type = mgag200_bo_init_mem_type, .eviction_valuable = ttm_bo_eviction_valuable, .evict_flags = mgag200_bo_evict_flags,