From patchwork Tue Apr 24 19:55:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mathieu Malaterre X-Patchwork-Id: 10361769 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 733C6601BE for ; Wed, 25 Apr 2018 07:11:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6100228F75 for ; Wed, 25 Apr 2018 07:11:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 55D5128F7C; Wed, 25 Apr 2018 07:11:03 +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=-5.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,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 CE21B28F75 for ; Wed, 25 Apr 2018 07:11:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 53A916E530; Wed, 25 Apr 2018 07:10:55 +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 7F2E36E4A0; Tue, 24 Apr 2018 19:55:22 +0000 (UTC) Received: by mail-wm0-x243.google.com with SMTP id w2so1883203wmw.1; Tue, 24 Apr 2018 12:55:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=M1niUs/hr55tFyM8XLvexcB6Bu99QofBbFOLpbLSQBg=; b=Nqs/MCMDMAFkgGgpX6HvjI7a+N+o0FiNbUl32+g/X1MraN7aMNF5CZ0oY4EZlOTKAg mOJ0vTnSngAOCPNqMfBXf42H6G7MLULIvy95l1VUloSAQ6ByxQ42r/KELH429V0zB5EU zFLXXSBLgF5ZNdv9OjV6KxlxR7A3MlgKlK7ysxwX3jJCbeUAFdVzeougf309drtd0tVX xQtWOaomFyFvJHuyq5jYbkgAzeWchW4y2IkE76l0nVJ5l66QVKuVu0mceCSE2Nmz8O0b GoqXVEuqZBJ3sUqSM8ir163w92nX0lR+20TPJT027AssQCbJZ5/B3Z/bAaHJfMP3QwZ0 2ivA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=M1niUs/hr55tFyM8XLvexcB6Bu99QofBbFOLpbLSQBg=; b=kwqUaCHH4wRBpR0G4/yyvnq/UTZpVKMI9W5zbwWTC/TB8OBMoXAd4WMVZNr1Re54Fb eqAFEkIszlWo/VUEinmoqPTL+l/yRIGprzV4LT9pOlAHYTakmBZcGhxGKrgf1z/U7S69 HgJDbGL0pnvgRPeq4NOxxN8wxTFVSgmFCNhLIYTAEN6weyCy5LQIdI5+88n1s6oS1aUj sPWfeNFrpDmg9mXkjhM6WZyIB84uizpvdYsS67wmGVVPjQPm6SJq+UzNVxZw8PQXKFha /X7gt0WOUz6M4xsKPFYJxSPVL29lNKZRYG3e8KLQjK7M0h0BHViuS4LuNkyLDA0c+hUq w8RA== X-Gm-Message-State: ALQs6tApHLmUvTQ6cjKnxsvdlDmYK/KPCc8zmogEGyXxKcdK/zpXyna4 NoeOl3kcWxjX8T6GHIW//OhZoZV4 X-Google-Smtp-Source: AIpwx48KTE7XK7KYrTjb+g3BMn2rwIgbtDU8ARxOIYDWnxCAcMvgX69Px+JwfwIY2kZMXzIECpVUew== X-Received: by 10.28.6.149 with SMTP id 143mr13627523wmg.61.1524599720855; Tue, 24 Apr 2018 12:55:20 -0700 (PDT) Received: from macbookpro.malat.net (bru31-1-78-225-226-121.fbx.proxad.net. [78.225.226.121]) by smtp.gmail.com with ESMTPSA id 55-v6sm33036085wrw.52.2018.04.24.12.55.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 24 Apr 2018 12:55:20 -0700 (PDT) Received: by macbookpro.malat.net (Postfix, from userid 1000) id 008C310C04D8; Tue, 24 Apr 2018 21:55:18 +0200 (CEST) From: Mathieu Malaterre To: =?UTF-8?q?Christian=20K=C3=B6nig?= Subject: [PATCH] drm/radeon: Change the default to PCI on PowerPC Date: Tue, 24 Apr 2018 21:55:11 +0200 Message-Id: <20180424195512.491-1-malat@debian.org> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 25 Apr 2018 07:10:54 +0000 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: , Cc: Mathieu Malaterre , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, David Airlie , amd-gfx@lists.freedesktop.org, Alex Deucher Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP AGP mode is unstable on PowerPC. Symptoms are generally of the form: [ 1228.795711] radeon 0000:00:10.0: ring 0 stalled for more than 10240msec Reviewed-by: Christian König Signed-off-by: Mathieu Malaterre --- drivers/gpu/drm/radeon/radeon_drv.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c index b28288a781ef..2a7977a23b31 100644 --- a/drivers/gpu/drm/radeon/radeon_drv.c +++ b/drivers/gpu/drm/radeon/radeon_drv.c @@ -168,7 +168,12 @@ int radeon_no_wb; int radeon_modeset = -1; int radeon_dynclks = -1; int radeon_r4xx_atom = 0; +#ifdef __powerpc__ +/* Default to PCI on PowerPC (fdo #95017) */ +int radeon_agpmode = -1; +#else int radeon_agpmode = 0; +#endif int radeon_vram_limit = 0; int radeon_gart_size = -1; /* auto */ int radeon_benchmarking = 0;