From patchwork Thu Feb 22 11:15:34 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: 10235159 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 C9C5A60224 for ; Thu, 22 Feb 2018 11:15:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CCD8728B85 for ; Thu, 22 Feb 2018 11:15:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BF8E428B8C; Thu, 22 Feb 2018 11:15:50 +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 72B7828B85 for ; Thu, 22 Feb 2018 11:15:50 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C275F6ED43; Thu, 22 Feb 2018 11:15:46 +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 EE1686ED34 for ; Thu, 22 Feb 2018 11:15:44 +0000 (UTC) Received: by mail-wm0-x243.google.com with SMTP id z81so3165848wmb.4 for ; Thu, 22 Feb 2018 03:15:44 -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=XUoScce6+gASGzI2rNAhrZl6Sp1ry+x0oAkbCtWWzlI=; b=pkZ9S8waAHZVgyzx4j4INllF4eEJrbO+lUYVAjngRroqPz3C5xUN3SHKjj5eqpbw9G CRcUsHL+9do1t3pkn7/bGHkYmDujWEgNKk6SWs11DOasHOR5glWObrJFsynsdtlN+1PK tCGQbSLLHkRvhjlm2vnOSAtIvBeZ602ODxBaAkUMhs/AROPxaQmzxI0UryFz7wCPW2O3 CRq2ZB7VoudenQyG2Kk9EHL9H7QdfVPRUQACzcYrgV4x9ynGK5icCtAe9lBwYVD8oM3K 1NcAHFaovY4v7b8pXEbZENL+HfOkIyMTat3rabcAlRnH/rhFwnq4bnLI/QGGzFH3YovZ PgGA== 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=XUoScce6+gASGzI2rNAhrZl6Sp1ry+x0oAkbCtWWzlI=; b=dsEMoN1xDd5HbH9xJMcm6dmzZx/5bCAtOu2LRqo2+F3xhkWM4ZrbxV3Itg0IutCFrx pETli835isOi9JoudEQHCt7oOc2aPR9UMnHfMr72/rhtGu5Wme0FH5aZgQ9Aqr51Xlqx 2FYIecnnuKwdtI2Az/fPHFXDe6FU8j04nyiluZXlM/TuE1bdiKoBsWLFd1RzuC0txYgl AhilvKYkzwfC0pvAbaD1NUMbtdeDjHXLlg9bSYyNvNtC19ML+UqkgHo11vKsQZfPuF9H yjtBnHQIb9L94VymwdZhSBYmFnbB+9ZpkN10F09lMhuRvsqFmxfvrE9pTJrTq/Pi1Eyg DWbA== X-Gm-Message-State: APf1xPBgNVAk0/KV2H/jBl0ffXGXyvISG6lehYUIIon+hisDwQJyBW54 ymrgENfcGJEcEbvggWdsSu8Iyg== X-Google-Smtp-Source: AH8x225YZqztb5KBsg99A6GpbNNprZrFnDiX7IZIUNdc3NvBunCUhA3eLHovKZR28wr0d4zZj3eP7Q== X-Received: by 10.28.37.65 with SMTP id l62mr602636wml.67.1519298143457; Thu, 22 Feb 2018 03:15:43 -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.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Feb 2018 03:15:42 -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 2/8] drm/virtio: remove ttm_pool_* wrappers Date: Thu, 22 Feb 2018 12:15:34 +0100 Message-Id: <20180222111540.43479-2-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/virtio/virtgpu_ttm.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_ttm.c b/drivers/gpu/drm/virtio/virtgpu_ttm.c index 36655b709eb2..1cde060602aa 100644 --- a/drivers/gpu/drm/virtio/virtgpu_ttm.c +++ b/drivers/gpu/drm/virtio/virtgpu_ttm.c @@ -324,20 +324,6 @@ static struct ttm_backend_func virtio_gpu_backend_func = { .destroy = &virtio_gpu_ttm_backend_destroy, }; -static int virtio_gpu_ttm_tt_populate(struct ttm_tt *ttm, - struct ttm_operation_ctx *ctx) -{ - if (ttm->state != tt_unpopulated) - return 0; - - return ttm_pool_populate(ttm, ctx); -} - -static void virtio_gpu_ttm_tt_unpopulate(struct ttm_tt *ttm) -{ - ttm_pool_unpopulate(ttm); -} - static struct ttm_tt *virtio_gpu_ttm_tt_create(struct ttm_bo_device *bdev, unsigned long size, uint32_t page_flags, @@ -421,8 +407,6 @@ static void virtio_gpu_bo_swap_notify(struct ttm_buffer_object *tbo) static struct ttm_bo_driver virtio_gpu_bo_driver = { .ttm_tt_create = &virtio_gpu_ttm_tt_create, - .ttm_tt_populate = &virtio_gpu_ttm_tt_populate, - .ttm_tt_unpopulate = &virtio_gpu_ttm_tt_unpopulate, .invalidate_caches = &virtio_gpu_invalidate_caches, .init_mem_type = &virtio_gpu_init_mem_type, .eviction_valuable = ttm_bo_eviction_valuable,