From patchwork Thu Feb 12 05:45:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Deucher X-Patchwork-Id: 5816281 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 599FABF440 for ; Thu, 12 Feb 2015 05:45:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7875B201ED for ; Thu, 12 Feb 2015 05:45:30 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id A82AD201C0 for ; Thu, 12 Feb 2015 05:45:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0DAB96E3A0; Wed, 11 Feb 2015 21:45:29 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-oi0-f49.google.com (mail-oi0-f49.google.com [209.85.218.49]) by gabe.freedesktop.org (Postfix) with ESMTP id D01346E3A0 for ; Wed, 11 Feb 2015 21:45:27 -0800 (PST) Received: by mail-oi0-f49.google.com with SMTP id v63so1440818oia.8 for ; Wed, 11 Feb 2015 21:45:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=HsJAhDwDmcFhOi4JfnMQWjpyYRyoN0DngDuc9oeevz4=; b=UHSmCMxPnOxytMU65gVm/Elw6rqXOQVadG1AhhkBpGi2sTiGui2Hc0j0cxnBU/i/+f evEx/PQMpTLGe/RfUGrjSeLxEEcbsBrwwM3vB8Sj1MOa5AVTfwOw3abhbVfS+VZn6kvr /2QD8phZTRHD4Szw0MXwCLgW8T+QRt7moXqbKBjVHdYSgCozsL4cML8r469RL5bUdumG rkm0HdhGm4oZy6kvbq9Dsqnn1O/NMI7LhLQ12B9fKf5RlppqlCrtuhatNUNCBpguOlMM vr5igex8y32HiuSGdq3yl7YxxfRls9ltraI43ZSoHgG9j5x/q2BPZhWaxKW026wP7bqu VI1w== X-Received: by 10.202.50.68 with SMTP id y65mr1357131oiy.91.1423719927294; Wed, 11 Feb 2015 21:45:27 -0800 (PST) Received: from localhost.localdomain (static-74-96-105-49.washdc.fios.verizon.net. [74.96.105.49]) by mx.google.com with ESMTPSA id z184sm1668898oie.0.2015.02.11.21.45.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Feb 2015 21:45:26 -0800 (PST) From: Alex Deucher X-Google-Original-From: Alex Deucher To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/radeon: fix voltage setup on hawaii Date: Thu, 12 Feb 2015 00:45:17 -0500 Message-Id: <1423719917-1546-1-git-send-email-alexander.deucher@amd.com> X-Mailer: git-send-email 1.8.3.1 Cc: Alex Deucher , stable@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 Missing parameter when fetching the real voltage values from atom. Fixes problems with dynamic clocking on certain boards. bug: https://bugs.freedesktop.org/show_bug.cgi?id=87457 Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- drivers/gpu/drm/radeon/radeon_atombios.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c index dbc94f3..fc1b3f3 100644 --- a/drivers/gpu/drm/radeon/radeon_atombios.c +++ b/drivers/gpu/drm/radeon/radeon_atombios.c @@ -3289,6 +3289,7 @@ int radeon_atom_get_voltage_evv(struct radeon_device *rdev, args.in.ucVoltageType = VOLTAGE_TYPE_VDDC; args.in.ucVoltageMode = ATOM_GET_VOLTAGE_EVV_VOLTAGE; + args.in.usVoltageLevel = cpu_to_le16(virtual_voltage_id); args.in.ulSCLKFreq = cpu_to_le32(rdev->pm.dpm.dyn_state.vddc_dependency_on_sclk.entries[entry_id].clk);