From patchwork Wed Jun 1 20:53:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Deucher X-Patchwork-Id: 9148129 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 D305A60761 for ; Wed, 1 Jun 2016 20:54:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C7285200F4 for ; Wed, 1 Jun 2016 20:54:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC08E268AE; Wed, 1 Jun 2016 20:54:00 +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=-3.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A17D200F4 for ; Wed, 1 Jun 2016 20:54:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EB6A86EA4B; Wed, 1 Jun 2016 20:53:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-it0-x244.google.com (mail-it0-x244.google.com [IPv6:2607:f8b0:4001:c0b::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 09D816EA48 for ; Wed, 1 Jun 2016 20:53:45 +0000 (UTC) Received: by mail-it0-x244.google.com with SMTP id i127so339719ita.3 for ; Wed, 01 Jun 2016 13:53:45 -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:in-reply-to:references; bh=HE4Z2r4yDidpyyMA4ZSvtC+i41jITtFQuLLyxFM8GIU=; b=0ctyjtL+8jFbvus14jlUybgdDCIUcf9RdHO3Ag8M3RnqwF5vZ4Tz65YH9gNHz4MIZ4 PVvVSv9LPQTO1QTZ42+Crebdz8L7G0gqu7bix1dOcQ5PDRZaxzxbItBwG4wPcGntZHVl jHEhzjp7EcFG3ywttyAn7yt1tczKPVZ60mdczV7yKXjWY4O6b5e7BHB5a1jAj6yrjU5t OZMbukkMbsdnNdIW6jxm1A9YViagC4S7owqBQi497xOXCrSNvekOOML5PzObMni2uaeM bq3tbxd0h7IbFqUkNf34IyLe13Wwn6pd44GYxvU/LE/Spf86GOtcc4TOdWKd+hFMczh0 XM7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HE4Z2r4yDidpyyMA4ZSvtC+i41jITtFQuLLyxFM8GIU=; b=QTUDXNjBkIklzThd6DBn1MOA+vQYQyCRzs3LLcIKRJxhpenNlRvvCi5EUrj0VPVzoC f3iHkvijCkBjlLGNsFMmweX4TvVGUZEgq2AZO4GlzoUpHzzhwoKVwJ9p+KS/QuE2aPTq Z7aJVrlTp6hEHIG1pt9x3hoJaI8+oel97oC+yY0yrV0DNUmiKk+kjXIhb4H3NtD7g7iw B/ehI6CXtOvG7WC7n99z3hsrXEBG5j9IVeWrPIbcvc25yWEarECVG2p74hquWX7zFE8p aO5B5ho4bKB6ZGLcnZiwkPE+ut8Drm2IVUL4TjwMB5b1uXEA2QK37CzFXpWv5wmQRyof NRGw== X-Gm-Message-State: ALyK8tJj5X307E89QktpoeXd3CZJzVskHwOOCcdqzB/j3U7wGemCOcS8eKhNLOvLSrIDiA== X-Received: by 10.36.50.132 with SMTP id j126mr22585250ita.70.1464814423677; Wed, 01 Jun 2016 13:53:43 -0700 (PDT) Received: from cm.amd.com ([165.204.55.251]) by smtp.gmail.com with ESMTPSA id x83sm12983532itf.2.2016.06.01.13.53.42 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Jun 2016 13:53:43 -0700 (PDT) From: Alex Deucher X-Google-Original-From: Alex Deucher To: dri-devel@lists.freedesktop.org Subject: [PATCH 12/12] drm/radeon/atpx: drop forcing of dGPU power control Date: Wed, 1 Jun 2016 16:53:25 -0400 Message-Id: <1464814405-19729-13-git-send-email-alexander.deucher@amd.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1464814405-19729-1-git-send-email-alexander.deucher@amd.com> References: <1464814405-19729-1-git-send-email-alexander.deucher@amd.com> Cc: Alex Deucher 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-Virus-Scanned: ClamAV using ClamSMTP Now that we handle this correctly, there is no need to force it. Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/radeon_atpx_handler.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_atpx_handler.c b/drivers/gpu/drm/radeon/radeon_atpx_handler.c index 51da319..6996b31 100644 --- a/drivers/gpu/drm/radeon/radeon_atpx_handler.c +++ b/drivers/gpu/drm/radeon/radeon_atpx_handler.c @@ -193,11 +193,6 @@ static int radeon_atpx_validate(struct radeon_atpx *atpx) if (valid_bits & ATPX_MS_HYBRID_GFX_SUPPORTED) { printk("Hybrid Graphics, ATPX dGPU power cntl disabled\n"); atpx->functions.power_cntl = false; - } else if (atpx->functions.power_cntl == false) { - /* make sure required functions are enabled */ - /* dGPU power control is required */ - printk("ATPX dGPU power cntl not present, forcing\n"); - atpx->functions.power_cntl = true; } return 0;