From patchwork Mon Jul 8 18:40:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Deucher X-Patchwork-Id: 2824979 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 14C50C0AB2 for ; Mon, 8 Jul 2013 18:41:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4A09E20163 for ; Mon, 8 Jul 2013 18:41:12 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id E8C4C2013C for ; Mon, 8 Jul 2013 18:41:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B0491E6188 for ; Mon, 8 Jul 2013 11:41:10 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by gabe.freedesktop.org (Postfix) with ESMTP id CDF5AE5C90 for ; Mon, 8 Jul 2013 11:40:54 -0700 (PDT) Received: by mail-ve0-f170.google.com with SMTP id 14so3875769vea.1 for ; Mon, 08 Jul 2013 11:40:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Old2W/6iXLcOZRma8YD+6b/vnF6xKhK04aMtk7xiukQ=; b=eLdsJPUNJqRmKQeUPlpdq5B7OImjapOVm+d23NF+bpk13HSQbyqnakLRuS8yduEEzR 8SAs4Gpr5MY6BT54vDl4lg8CldcMMrthnwlxqK6dBOOfsYbuLQEAIwPHxEnMEPUDf8zT qCOl4Zc10z4S1Ke3osm+JM3IqmE2P1uuGjBQVO+Dhn5WnK/fayzYWN2145kr0w1K/+xH jXmEtFxWUaXu/yooSewH/dWP5kQOcV17FDLaVZxd9Fk11oapeMyFVf6BjXbZarO7wzHd xg/7UPK1U4m1S9UGG5dlKm7IhWFZh0w/AyWBk7i5gAlQiHBICuWdwqVDgJ2+QPzfKby+ WXLA== MIME-Version: 1.0 X-Received: by 10.221.39.72 with SMTP id tl8mr1004783vcb.29.1373308854094; Mon, 08 Jul 2013 11:40:54 -0700 (PDT) Received: by 10.58.29.3 with HTTP; Mon, 8 Jul 2013 11:40:53 -0700 (PDT) In-Reply-To: <20130708175739.GA23537@untroubled.org> References: <20130708175739.GA23537@untroubled.org> Date: Mon, 8 Jul 2013 14:40:53 -0400 Message-ID: Subject: Re: New Radeon DPM not working on E350 APU From: Alex Deucher To: 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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Mon, Jul 8, 2013 at 1:57 PM, Bruce Guenter wrote: > > I am having problems using the new Radeon DPM patches on my AMD E-350 > APU system. Running the kernel with radeon.dpm=0 works as expected (I > used it for several hours yesterday with no problems), but with > radeon.dpm=1 it locks up graphically as soon as X starts. I am able to > log in through the network though, and have retrieved a dmesg. > > Visually, when X starts, the screen fills with non-moving colored random > static. After a few seconds, it changes color to red and then slowly > fades to white. No mouse pointer or anything else is visible. > > The system is running Ubuntu Gnome 13.04. The kernel is 3.10.0 with the > latest agd5f/drm-next-3.11-wip merged in. Please try the drm-next-3.11 branch of my tree. The old -wip branches are outdated. If you are still having problems with that branch, you can try disabling power gating. It seems to cause problems on certain ontario systems. I'm trying to sort it out now. > > The two main differences between dmesg from a working boot and from a > failed one is the listing of the power states 0-5 and notes that it's > switching from the "boot" to "performance" power state; and then, later > when X starts, these errors: > > radeon 0000:00:01.0: GPU lockup CP stall for more than 10000msec > radeon 0000:00:01.0: GPU lockup (waiting for 0x0000000000000003 last fence id 0x0000000000000001) > radeon 0000:00:01.0: fence driver on ring 5 use gpu addr 0x0000000000177118 and cpu addr 0xffffc90005318118 > radeon 0000:00:01.0: Saved 55 dwords of commands on ring 0. > radeon 0000:00:01.0: GPU softreset: 0x00000009 > radeon 0000:00:01.0: GRBM_STATUS = 0xB2433828 > radeon 0000:00:01.0: GRBM_STATUS_SE0 = 0x08000007 > radeon 0000:00:01.0: GRBM_STATUS_SE1 = 0x00000007 > radeon 0000:00:01.0: SRBM_STATUS = 0x20000040 > radeon 0000:00:01.0: SRBM_STATUS2 = 0x00000000 > radeon 0000:00:01.0: R_008674_CP_STALLED_STAT1 = 0x00000000 > radeon 0000:00:01.0: R_008678_CP_STALLED_STAT2 = 0x40000000 > radeon 0000:00:01.0: R_00867C_CP_BUSY_STAT = 0x00008000 > radeon 0000:00:01.0: R_008680_CP_STAT = 0x80228643 > radeon 0000:00:01.0: R_00D034_DMA_STATUS_REG = 0x44C83D57 > radeon 0000:00:01.0: GRBM_SOFT_RESET=0x00007F6B > radeon 0000:00:01.0: SRBM_SOFT_RESET=0x00000100 > radeon 0000:00:01.0: GRBM_STATUS = 0x00003828 > radeon 0000:00:01.0: GRBM_STATUS_SE0 = 0x00000007 > radeon 0000:00:01.0: GRBM_STATUS_SE1 = 0x00000007 > radeon 0000:00:01.0: SRBM_STATUS = 0x20000040 > radeon 0000:00:01.0: SRBM_STATUS2 = 0x00000000 > radeon 0000:00:01.0: R_008674_CP_STALLED_STAT1 = 0x00000000 > radeon 0000:00:01.0: R_008678_CP_STALLED_STAT2 = 0x00000000 > radeon 0000:00:01.0: R_00867C_CP_BUSY_STAT = 0x00000000 > radeon 0000:00:01.0: R_008680_CP_STAT = 0x00000000 > radeon 0000:00:01.0: R_00D034_DMA_STATUS_REG = 0x44C83D57 > radeon 0000:00:01.0: GPU reset succeeded, trying to resume > [drm] PCIE GART of 512M enabled (table at 0x0000000000040000). > radeon 0000:00:01.0: WB enabled > radeon 0000:00:01.0: fence driver on ring 0 use gpu addr 0x0000000018000c00 and cpu addr 0xffff8801f7fe6c00 > radeon 0000:00:01.0: fence driver on ring 3 use gpu addr 0x0000000018000c0c and cpu addr 0xffff8801f7fe6c0c > radeon 0000:00:01.0: fence driver on ring 5 use gpu addr 0x0000000000177118 and cpu addr 0xffffc90005db2118 > [drm] ring test on 0 succeeded in 0 usecs > [drm] ring test on 3 succeeded in 0 usecs > [drm] ring test on 5 succeeded in 1 usecs > [drm] UVD initialized successfully. > radeon 0000:00:01.0: GPU lockup CP stall for more than 10000msec > radeon 0000:00:01.0: GPU lockup (waiting for 0x0000000000000004 last fence id 0x0000000000000001) > [drm:r600_ib_test] *ERROR* radeon: fence wait failed (-35). > [drm:radeon_ib_ring_tests] *ERROR* radeon: failed testing IB on GFX ring (-35). > radeon 0000:00:01.0: ib ring test failed (-35). > radeon 0000:00:01.0: fence driver on ring 5 use gpu addr 0x0000000000177118 and cpu addr 0xffffc90005318118 > radeon 0000:00:01.0: GPU softreset: 0x00000009 > radeon 0000:00:01.0: GRBM_STATUS = 0xB3533828 > radeon 0000:00:01.0: GRBM_STATUS_SE0 = 0x2C000007 > radeon 0000:00:01.0: GRBM_STATUS_SE1 = 0x00000007 > radeon 0000:00:01.0: SRBM_STATUS = 0x20000040 > radeon 0000:00:01.0: SRBM_STATUS2 = 0x00000000 > radeon 0000:00:01.0: R_008674_CP_STALLED_STAT1 = 0x00000000 > radeon 0000:00:01.0: R_008678_CP_STALLED_STAT2 = 0x400C0000 > radeon 0000:00:01.0: R_00867C_CP_BUSY_STAT = 0x00048000 > radeon 0000:00:01.0: R_008680_CP_STAT = 0x80268643 > radeon 0000:00:01.0: R_00D034_DMA_STATUS_REG = 0x44C83D57 > radeon 0000:00:01.0: GRBM_SOFT_RESET=0x00007F6B > radeon 0000:00:01.0: SRBM_SOFT_RESET=0x00000100 > radeon 0000:00:01.0: GRBM_STATUS = 0x00003828 > radeon 0000:00:01.0: GRBM_STATUS_SE0 = 0x00000007 > radeon 0000:00:01.0: GRBM_STATUS_SE1 = 0x00000007 > radeon 0000:00:01.0: SRBM_STATUS = 0x20000040 > radeon 0000:00:01.0: SRBM_STATUS2 = 0x00000000 > radeon 0000:00:01.0: R_008674_CP_STALLED_STAT1 = 0x00000000 > radeon 0000:00:01.0: R_008678_CP_STALLED_STAT2 = 0x00000000 > radeon 0000:00:01.0: R_00867C_CP_BUSY_STAT = 0x00000000 > radeon 0000:00:01.0: R_008680_CP_STAT = 0x00000000 > radeon 0000:00:01.0: R_00D034_DMA_STATUS_REG = 0x44C83D57 > radeon 0000:00:01.0: GPU reset succeeded, trying to resume > [drm] PCIE GART of 512M enabled (table at 0x0000000000040000). > radeon 0000:00:01.0: WB enabled > radeon 0000:00:01.0: fence driver on ring 0 use gpu addr 0x0000000018000c00 and cpu addr 0xffff8801f7fe6c00 > radeon 0000:00:01.0: fence driver on ring 3 use gpu addr 0x0000000018000c0c and cpu addr 0xffff8801f7fe6c0c > radeon 0000:00:01.0: fence driver on ring 5 use gpu addr 0x0000000000177118 and cpu addr 0xffffc90005c32118 > [drm] ring test on 0 succeeded in 1 usecs > [drm] ring test on 3 succeeded in 1 usecs > [drm] ring test on 5 succeeded in 1 usecs > [drm] UVD initialized successfully. > > -- > Bruce Guenter http://untroubled.org/ > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/dri-devel > diff --git a/drivers/gpu/drm/radeon/sumo_dpm.c b/drivers/gpu/drm/radeon/sumo_dpm.c index 11b6b99..5568a1b 100644 --- a/drivers/gpu/drm/radeon/sumo_dpm.c +++ b/drivers/gpu/drm/radeon/sumo_dpm.c @@ -1732,7 +1732,7 @@ int sumo_dpm_init(struct radeon_device *rdev) pi->enable_sclk_ds = true; pi->enable_dynamic_m3_arbiter = false; pi->enable_dynamic_patch_ps = true; - pi->enable_gfx_power_gating = true; + pi->enable_gfx_power_gating = false; pi->enable_gfx_clock_gating = true; pi->enable_mg_clock_gating = true; pi->enable_auto_thermal_throttling = true;