From patchwork Tue Aug 28 20:50:22 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Glisse X-Patchwork-Id: 1382501 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 2E761DF283 for ; Tue, 28 Aug 2012 20:53:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D4CE09E860 for ; Tue, 28 Aug 2012 13:53:32 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qa0-f42.google.com (mail-qa0-f42.google.com [209.85.216.42]) by gabe.freedesktop.org (Postfix) with ESMTP id 14C8D9E70A for ; Tue, 28 Aug 2012 13:53:21 -0700 (PDT) Received: by qaeb19 with SMTP id b19so2898880qae.15 for ; Tue, 28 Aug 2012 13:53:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=dE5RSsdx3GRfKMhPQBW63IBTPoUrQImOhVHW4q2DPWA=; b=kY0pJ2O9ee8RZwNMWHYfgyUT90Sq81F9xCxLbn0um+F8mTsEFJID9p8FVtX789l6NX oKy85H7lcnNkWNxGuFCagoj8/6hrmIUnig5B4RLhy240lDuIZZWgO2RvcNB+I3xgj3rw dYV2fYNsnb4C+OC1tURyy6lP2Y8V0ydtlse95so83vEk45PMCmokxNNhW0O0RNRdOgXs /aQrTs+gqUxeBDF4HfxBIW43v8YUp7t9E0rE/mswmHHJFZecJGlP3E5dCjdgWW2IUFIh khoBtZgmtC9houTz3RA1tlWgHgQmzp/bSAVx4PBHl1xEWY06z00D1Q6mSgMuL4/3JpNS X+NA== Received: by 10.224.182.15 with SMTP id ca15mr32738031qab.35.1346187201409; Tue, 28 Aug 2012 13:53:21 -0700 (PDT) Received: from localhost.boston.devel.redhat.com ([66.187.233.206]) by mx.google.com with ESMTPS id gs8sm9173212qab.10.2012.08.28.13.53.19 (version=SSLv3 cipher=OTHER); Tue, 28 Aug 2012 13:53:20 -0700 (PDT) From: j.glisse@gmail.com To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/radeon: force dma32 to fix regression rs4xx, rs6xx, rs740 Date: Tue, 28 Aug 2012 16:50:22 -0400 Message-Id: <1346187022-3455-1-git-send-email-j.glisse@gmail.com> X-Mailer: git-send-email 1.7.11.2 Cc: Jerome Glisse , stable@vger.kernel.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: , MIME-Version: 1.0 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: Jerome Glisse It seems some of those IGP dislike non dma32 page despite what documentation says. Fix regression since we allowed non dma32 pages. It seems it only affect some revision of those IGP chips as we don't know which one just force dma32 for all of them. https://bugzilla.redhat.com/show_bug.cgi?id=785375 Signed-off-by: Jerome Glisse Cc: --- drivers/gpu/drm/radeon/radeon_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index 066c98b..8867400 100644 --- a/drivers/gpu/drm/radeon/radeon_device.c +++ b/drivers/gpu/drm/radeon/radeon_device.c @@ -774,7 +774,7 @@ int radeon_device_init(struct radeon_device *rdev, if (rdev->flags & RADEON_IS_AGP) rdev->need_dma32 = true; if ((rdev->flags & RADEON_IS_PCI) && - (rdev->family < CHIP_RS400)) + (rdev->family <= CHIP_RS740)) rdev->need_dma32 = true; dma_bits = rdev->need_dma32 ? 32 : 40;