From patchwork Thu May 9 19:46:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Lutomirski X-Patchwork-Id: 2545421 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 36D773FE81 for ; Thu, 9 May 2013 19:47:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753558Ab3EITrH (ORCPT ); Thu, 9 May 2013 15:47:07 -0400 Received: from mail-pd0-f180.google.com ([209.85.192.180]:64828 "EHLO mail-pd0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753544Ab3EITrE (ORCPT ); Thu, 9 May 2013 15:47:04 -0400 Received: by mail-pd0-f180.google.com with SMTP id t10so2250112pdi.39 for ; Thu, 09 May 2013 12:47:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references:x-gm-message-state; bh=vCTHEnUYPgYkdJBWZLpUOxg29bhQ46fX8PU4JVDIEEA=; b=pB0UQhLVaRBCPuaKzQQuz3KWNYkuLT3OxhS5E0ilRRuLfKjSYXkBVn5I4n94hBPM7v G1lH0dV3agigjqQOHkDed4o034dVrRXShNOp531J87kFzNiB8bW29AIVlmtMta1XlK/c KQMiN3nj+3ixmOlHJJnantsTtvMhJeiXI9PKLo7Tf2y3cAOeG73c1p8HdR+v5BhaAcxc /8iNKDwxvip/Q89BvvZoGpT+YTlMmchbTrvdUhIGhwcGVuAvXdumj/3+pxx9Nvy78/eV cBQbyltxHo+Ffz6kXmliGhuMIoLVo9UJAQQJ79AMNAS5o1GsICazpUhgfIRWNgTsEqzy EqKA== X-Received: by 10.68.20.42 with SMTP id k10mr13925925pbe.77.1368128823093; Thu, 09 May 2013 12:47:03 -0700 (PDT) Received: from localhost (50-76-60-73-ip-static.hfc.comcastbusiness.net. [50.76.60.73]) by mx.google.com with ESMTPSA id 10sm4128881pbm.0.2013.05.09.12.47.01 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 09 May 2013 12:47:02 -0700 (PDT) From: Andy Lutomirski To: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org Cc: Daniel Vetter , Jerome Glisse , Alex Deucher , Dave Airlie , Andy Lutomirski Subject: [RFC/PATCH v2 6/8] radeon: Switch to arch_phys_wc_add and add a missing ..._del Date: Thu, 9 May 2013 12:46:25 -0700 Message-Id: <4823aeff17c92461b40f1e3be03dbd13df78481a.1368128020.git.luto@amacapital.net> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQk0+/yqBcmFNXHgx2cH2equLDlq/jahd2zX8ahMpvv6HyJbriMwX8DJ9pE1hosSuLT+VnZw Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org Signed-off-by: Andy Lutomirski --- drivers/gpu/drm/radeon/radeon_object.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_object.c b/drivers/gpu/drm/radeon/radeon_object.c index d3aface..15cd34b 100644 --- a/drivers/gpu/drm/radeon/radeon_object.c +++ b/drivers/gpu/drm/radeon/radeon_object.c @@ -321,8 +321,8 @@ void radeon_bo_force_delete(struct radeon_device *rdev) int radeon_bo_init(struct radeon_device *rdev) { /* Add an MTRR for the VRAM */ - rdev->mc.vram_mtrr = mtrr_add(rdev->mc.aper_base, rdev->mc.aper_size, - MTRR_TYPE_WRCOMB, 1); + rdev->mc.vram_mtrr = arch_phys_wc_add(rdev->mc.aper_base, + rdev->mc.aper_size); DRM_INFO("Detected VRAM RAM=%lluM, BAR=%lluM\n", rdev->mc.mc_vram_size >> 20, (unsigned long long)rdev->mc.aper_size >> 20); @@ -334,6 +334,7 @@ int radeon_bo_init(struct radeon_device *rdev) void radeon_bo_fini(struct radeon_device *rdev) { radeon_ttm_fini(rdev); + arch_phys_wc_del(rdev->mc.vram_mtrr); } void radeon_bo_list_add_object(struct radeon_bo_list *lobj,