Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42CA4C433DF for ; Mon, 6 Jul 2020 19:16:40 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0D49F206CD for ; Mon, 6 Jul 2020 19:16:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cK4UXW8r" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0D49F206CD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=amd-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BAC5489F6B; Mon, 6 Jul 2020 19:16:39 +0000 (UTC) Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2ED4189F6B for ; Mon, 6 Jul 2020 19:16:38 +0000 (UTC) Received: by mail-qk1-x744.google.com with SMTP id b185so25319232qkg.1 for ; Mon, 06 Jul 2020 12:16:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VEUItEve36dhgtq7bXMXN0aPsQUBXdASBow9WzHZWhc=; b=cK4UXW8rteRwi0TnhX5n7ODJV+Hk7TcjUtUjC3OF9b2luqFkRTrGCeNz9auNUd0hiR 3Nf8x4Ze2szlNWOXGba0te6tBdINRf2I/iOyj9DtrkRlyKr8fCNfiEzhryGpXvrdMAD1 z8nZIqmFokKztu9kueL4pCB4DcMfHeItVmhI3tvNXBHGvSVGCsC+VIWLYKkpg3uquazp oH5A1k2yNEakbyAzbvOidwaltRGS0oKWKD24820pVr/jM1pf21LD7q+fAOsycItYALVX dw30bXDrwSKA/KWZv+Qld/+U4IZjszJhzZ5tRy75EEnNHsoR7N+5rEzpLQfJYQoMI6gM bhAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VEUItEve36dhgtq7bXMXN0aPsQUBXdASBow9WzHZWhc=; b=XWkdLruRK8Lp+tFx23iuON3hwBcPxYdtapYV4Ti01ZvpFuZufHSX+6JK4ap5y+P/h5 A7AvLAHbXtZpEm9cA9y5BnJ3No5u2G6o22HuqhekMSc3pOw2MOEGq/p7SH24xCkl62j1 dyyMgo1fYNhi4WMlLT38zgogOU6svljaOWtjjPbr01KWyd+OaPcbtfyRykk2bDBerNke fN3jQcsRuBlaSkJpqSvFJx+eJWn9l8PWuopjQe0cwcec/e7DYB47nlTtWrLhwS+bV2oD S+aV0SpTqFb9C5MXZrAGRChob9z3nL3WYTNbuW5dNCZdOQFXqvc+l+ISVTK/fXuA6iPH celQ== X-Gm-Message-State: AOAM533HuWnmErD0xmfbIBrX/sEiTK0jUXUr7gNqFKhERNLaJ/Tq7bo/ AQnYMpgG8xEkTttPo9l+q4n5AKSd X-Google-Smtp-Source: ABdhPJyw4Z/NyGkLkY5FI7vABSwhq+k598lM2GwduM6WudXaq1jyqJg1TegGHewsazzSFsnsXYRdkw== X-Received: by 2002:a37:855:: with SMTP id 82mr45915202qki.441.1594062997121; Mon, 06 Jul 2020 12:16:37 -0700 (PDT) Received: from localhost.localdomain ([71.219.66.138]) by smtp.gmail.com with ESMTPSA id u20sm24059318qtj.39.2020.07.06.12.16.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 12:16:36 -0700 (PDT) From: Alex Deucher X-Google-Original-From: Alex Deucher To: amd-gfx@lists.freedesktop.org Subject: [PATCH] drm/amdgpu/swSMU: drop pm_enabled check in set mp1 state Date: Mon, 6 Jul 2020 15:16:29 -0400 Message-Id: <20200706191629.564683-1-alexander.deucher@amd.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alex Deucher Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" We need to set the mp1 state in PCI shutdown and certain reset cases which happens after we've already suspended the SMU. SMU suspend sets pm_enabled to false which prevents this code from being run. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c index fe4948aa662f..0ed75a9897eb 100644 --- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c @@ -1924,9 +1924,6 @@ int smu_set_mp1_state(struct smu_context *smu, uint16_t msg; int ret; - if (!smu->pm_enabled) - return -EOPNOTSUPP; - mutex_lock(&smu->mutex); switch (mp1_state) { -- 2.25.4 _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx