From patchwork Thu Apr 25 16:19:08 2013 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: 2488671 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 0EB683FD85 for ; Thu, 25 Apr 2013 16:19:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2A589E6097 for ; Thu, 25 Apr 2013 09:19:25 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from outgoing.email.vodafone.de (outgoing.email.vodafone.de [139.7.28.128]) by gabe.freedesktop.org (Postfix) with ESMTP id 73E54E6097 for ; Thu, 25 Apr 2013 09:19:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=vodafone.de; h=from:to:cc:subject:date:message-id:mime-version:content-type:content-transfer-encoding; s=out; bh=TzK+jDHyMw0FSwaLXtFvcT2QL8x53H4ZjgexNJebn68=; b=xKBOoWfWhnlHuWo80RNbevvVKpaIRXhkdeQI8gZ9tKwW9ic/rD1F6bhnLbQnvfjQWbDBtcry+UePLj6Q+g7Z0dFZeYj0atup9X09FCB9gRKY5KsCW09JE0mflFIbSJkuKcOVoRzzacXEJRgnP81TqEn2vlfCKJql0efRwIjImzg= X-Authentication-Info: Sender authenticated as deathsimple@vodafone.de (using DIGEST-MD5) Received: from dslb-084-060-232-247.pools.arcor-ip.net ([84.60.232.247] helo=laptop.amd.com envelope-sender=) by SMTPIN-07.smtp.email.vodafone.de with ESMTPA id 5179577D.14773.188478; Thu, 25 Apr 2013 18:19:09 +0200 From: =?UTF-8?q?Christian=20K=C3=B6nig?= To: alexdeucher@gmail.com Subject: [PATCH] drm/radeon: allocate SA bo in the requested domain Date: Thu, 25 Apr 2013 18:19:08 +0200 Message-Id: <1366906748-3369-1-git-send-email-deathsimple@vodafone.de> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 Cc: dri-devel@lists.freedesktop.org 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: , 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 From: Christian König This avoid moving the BO directly after allocating it. Signed-off-by: Christian König Tested-by: Dieter Nützel --- drivers/gpu/drm/radeon/radeon_sa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/radeon_sa.c b/drivers/gpu/drm/radeon/radeon_sa.c index cb80099..0abe5a9 100644 --- a/drivers/gpu/drm/radeon/radeon_sa.c +++ b/drivers/gpu/drm/radeon/radeon_sa.c @@ -64,7 +64,7 @@ int radeon_sa_bo_manager_init(struct radeon_device *rdev, } r = radeon_bo_create(rdev, size, RADEON_GPU_PAGE_SIZE, true, - RADEON_GEM_DOMAIN_CPU, NULL, &sa_manager->bo); + domain, NULL, &sa_manager->bo); if (r) { dev_err(rdev->dev, "(%d) failed to allocate bo for manager\n", r); return r;