From: Umang Raghuvanshi Subject: [PATCH 1/1] drm/radeon: Fix GPU lockups for the R7 M270 Date: Mon, 13 Mar 2017 14:18:55 +0530 Message-ID: <20170313084855.10851-2-u@umangis.me> References: <20170313084855.10851-1-u@umangis.me> Return-path: In-Reply-To: <20170313084855.10851-1-u@umangis.me> Sender: linux-kernel-owner@vger.kernel.org To: David Airlie Cc: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Umang Raghuvanshi List-Id: amd-gfx.lists.freedesktop.org Commit 3a69adfe5617 ("drm/radeon: drop oland quirks") removed quirks for Oland but also caused a regression where M270 GPUs would go into a lock-up when OpenGL intensive applications were used. This reverts the change only for the M270 and fixes the lock-ups. Signed-off-by: Umang Raghuvanshi --- drivers/gpu/drm/radeon/si_dpm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/radeon/si_dpm.c b/drivers/gpu/drm/radeon/si_dpm.c index 2944916f7102..e6f1da41f886 100644 --- a/drivers/gpu/drm/radeon/si_dpm.c +++ b/drivers/gpu/drm/radeon/si_dpm.c @@ -3008,6 +3008,11 @@ static void si_apply_state_adjust_rules(struct radeon_device *rdev, (rdev->pdev->device == 0x6817) || (rdev->pdev->device == 0x6806)) max_mclk = 120000; + } else if (rdev->family == CHIP_OLAND && rdev->pdev->device == 0x6604 && + rdev->pdev->revision == 0) { + // Fix max_sclk and max_mclk for the Radeon R7 M270 + max_sclk = 75000; + max_mclk = 80000; } else if (rdev->family == CHIP_HAINAN) { if ((rdev->pdev->revision == 0x81) || (rdev->pdev->revision == 0x83) || -- 2.12.0