From patchwork Fri Feb 2 19:09:46 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: 10198027 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 EBB5D60388 for ; Fri, 2 Feb 2018 19:09:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DD55628F55 for ; Fri, 2 Feb 2018 19:09:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D218428F5A; Fri, 2 Feb 2018 19:09:58 +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 A0FFB28F55 for ; Fri, 2 Feb 2018 19:09:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C33C66F0B3; Fri, 2 Feb 2018 19:09:54 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id BBF1E6F00D; Fri, 2 Feb 2018 19:09:52 +0000 (UTC) Received: by mail-wm0-x241.google.com with SMTP id j21-v6so3946303wmh.1; Fri, 02 Feb 2018 11:09:52 -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=ozVwfnSmYTDJ6TyXyB9JU7oPXqSVr+PRdSoqL18aH/U=; b=vI/noUm7NvPsuO19VJiBg84Wh7csGQYj+hDk6F0JNbwgmS1fGIae7cshul/dfp0e8Y 2Rec8eD7dEe2DKoyFvhzXTV5xF7/PZ05FZNMfpTjzb8fCJFKrN43MWfY7l0ldGMLAekB qIuqoVSzLqjeMUcHHcjnjUqkGLQ1pu4ndX5qdnuGP4xRJ2XGmVRfAiiv3m3J5O69wsvY 3+gfVDBa8H2Zv7sQJzmRRJz6xzwaMbvdHelkyw+TzAg39+j6sH/ss4o5U+k2XPXLhlZC ywrPTu7vM+lnB0e4G/ikzvinzwt/wjFKB7WbygkcvExtMqtWuGFC74taaAw+O+CRwv7C I1Fg== 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=ozVwfnSmYTDJ6TyXyB9JU7oPXqSVr+PRdSoqL18aH/U=; b=FaL9nmOboQBmIrf+AYss2ZzvV+5kYN5zXGN+HbBX/xAt62WcM1Sa6uqcpRhCIQKz94 W/qJDIVjOiqYg9TckxIb68YVIbi4eRqhqK2AJuNsQr457of4WcjBNCBMY4padQQYuQCW 0OkuH8uJCxnncQAp9cEcPX/dSXN81jt7ccTAnLbLfpNPZd9Cipoog7sYInZbXi0jnN6m qlmcX5vERbvJbE8oGAfVYBFaTmBcF94xDJHGlpzqUz03ZG0PwBnkT34yoFOJZCsGIv3s xh0kAFmFxyeED97J2HdKg4be6oazvjjA4sz39UxgYWb/lupE8It/t37Amlaro+fFEdg0 vSXw== X-Gm-Message-State: AKwxytcaD7EssVQ6ReFh0zYnqmgIZ8PFY378w6wKE0yDCF3Nn9J2RvuQ SablDpnH25Ndo0/u3FxHihXBUQ== X-Google-Smtp-Source: AH8x225LDgdwJdc4hy/JI7CVrEfyK8eCjtAGnXE/u384Ta1krNLNxlo2zrSxbrE3O+LFqU+4sc11Rw== X-Received: by 10.28.125.68 with SMTP id y65mr6182789wmc.106.1517598591270; Fri, 02 Feb 2018 11:09:51 -0800 (PST) Received: from baker.fritz.box ([2a02:908:1251:8fc0:ad10:3711:be7c:8502]) by smtp.gmail.com with ESMTPSA id j132sm3917316wmd.38.2018.02.02.11.09.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Feb 2018 11:09:50 -0800 (PST) From: "=?UTF-8?q?Christian=20K=C3=B6nig?=" X-Google-Original-From: =?UTF-8?q?Christian=20K=C3=B6nig?= To: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH 3/5] drm/radeon: remove extra TT unpopulated check Date: Fri, 2 Feb 2018 20:09:46 +0100 Message-Id: <20180202190948.2654-3-christian.koenig@amd.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180202190948.2654-1-christian.koenig@amd.com> References: <20180202190948.2654-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 The subsystem chould check that, not the driver. Signed-off-by: Christian König --- drivers/gpu/drm/radeon/radeon_ttm.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c index a0a839bc39bf..42e3ee81a96e 100644 --- a/drivers/gpu/drm/radeon/radeon_ttm.c +++ b/drivers/gpu/drm/radeon/radeon_ttm.c @@ -728,9 +728,6 @@ static int radeon_ttm_tt_populate(struct ttm_tt *ttm, struct radeon_device *rdev; bool slave = !!(ttm->page_flags & TTM_PAGE_FLAG_SG); - if (ttm->state != tt_unpopulated) - return 0; - if (gtt && gtt->userptr) { ttm->sg = kzalloc(sizeof(struct sg_table), GFP_KERNEL); if (!ttm->sg)