Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1758485ybi; Wed, 3 Jul 2019 22:54:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3toadWc16nGznFaIJZUGCWQ0H+z2a+gLs12yGHFtF/os9UopyYzbwgdva1rpz+qKfy6Zz X-Received: by 2002:a63:8c0f:: with SMTP id m15mr41324808pgd.441.1562219675394; Wed, 03 Jul 2019 22:54:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562219675; cv=none; d=google.com; s=arc-20160816; b=R3Z0ZB3JERCkA+POc7oIwqOlhjiqurh/r1kGxkQPClK83jMzy60Ci//4i/71Fmiy+M 1XFSNRjuDihym4SBs+o6vNrXr+vGQ9zzFoDJmV+OnR0HvaY9Xkme6HUuzhNQxPyApcko ghxermjpj4bk6E9MSLkoHvCEX7LYAYfNSY9FOpHXmXCd59bg5n36Pik453yc890miln4 K3iLEONfkJCq5JZNzYBA32fsZgfSYMel7DAFCWiQDbJX1pJe5aLwVO0hFKezNrWp/D25 6x5yRHTfA7SyUVGvwZh0ZMOrPR+/19Jk0nWazcJp+5el4gU7cT+VAq3A8Mg0/ePyZCPn 4nHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nxMo/C25wB83HiqtqBaJ+h1T1C9R56SSMfKIkNntuQI=; b=hz7SBpQYmGxbpArNLa+vB8vUu1w9P8vwGfO13A7mwjyXBjYIztZsrq9tAdjccpbsBL jnb+uZZwDwzyFM2EfBwJUL2lU4mmI5aO7ves5oPcpScrba+X0NmlOTV/HDzedlrew13u X7smi98aFpnWkwVJmxKOcoBLSIdub9JQa8jK980Yrjv6PDGIHr6O+8BAf9s6ijYVo5MT 92cCB/YB05QL3lg9hVGsWRWOgZYcwSRZ3Y47/1sfR7j8uvYvmT4U2KkR4t66psWH1x+V +Ezv1ZzSPbDrSgAyQknGaH/urY6XTg8EUMKLWpu2mmhDce+DgIWCmXarifpxHvhbY2FZ yuyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jQATCgtO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 6si4325950plb.345.2019.07.03.22.54.20; Wed, 03 Jul 2019 22:54:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jQATCgtO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727348AbfGDFwz (ORCPT + 99 others); Thu, 4 Jul 2019 01:52:55 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:46037 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727313AbfGDFww (ORCPT ); Thu, 4 Jul 2019 01:52:52 -0400 Received: by mail-ed1-f67.google.com with SMTP id a14so4211364edv.12 for ; Wed, 03 Jul 2019 22:52:51 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=nxMo/C25wB83HiqtqBaJ+h1T1C9R56SSMfKIkNntuQI=; b=jQATCgtOv2HJtkUCqDOPMinhGgPxktLL4vFCkiFilIKe4DwLFtLJLsuqwxtwTGEgug HV+Q7GToIpxKN9fX8pTqXyfzD9qZy067CiHz5gG25FLmcsKKrjmO4W3eaqyd6rqRaPYH kj4VKB5pYSSi9XEKcvl/4OhTAAwI3MdGgbCRAvft2gYSBqIcFCuYQoLYLaa4acpNp1w0 q4O5vZRPtp9fNJkxfnAoHTBsszmoW+UxmbnE0UjdbKJxrWXgCJjaEKj5lAYy1ZpH+cNK 8VWUEIo+M6B7WrGUGc+YSVYIDNJSlCtWX4a0/5vOqlU/A9UkZb5gLYokQBycB0icAxqO vCyw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=nxMo/C25wB83HiqtqBaJ+h1T1C9R56SSMfKIkNntuQI=; b=o/6iDB4R4KSXDIZviO9xBOiXIVIYjBbNL5inIim/e7jdFhJDzJxzOtUb/C97tNKoU7 0Tc0wsyQcWF2WbNLRnB2cZIRypbv7sd9bPFv7l1DovVqeqFgvTuYiRBOygq3WT402qr2 pN7HDxHmvH6/CLy9dr/HA2CPy1ci86OdrXGvDYnMnVUNVc7FWo35xr1+rKJNkgCaeVNd XUc8/YxZtK+Ta7B/PBbIeke2pW53HDTl2L+kyTYW59pUcnwNe6psf3R5JJ+fAuwdrcAz ViUA9M8EAm+vJVIYjzor177zg5eDMcQfbsXNETEphAZ8GrPPCaUikaYbJoUumaLJjTUD DF1A== X-Gm-Message-State: APjAAAXWLk/0qxYXfJ5y2Ls4kqkSEFp7QwJqM2eJakt3jyKQo8WbbiJP zXfvnxAEO6Tlfh0k0OWh7gI= X-Received: by 2002:a50:f4dd:: with SMTP id v29mr46606079edm.246.1562219570715; Wed, 03 Jul 2019 22:52:50 -0700 (PDT) Received: from localhost.localdomain ([2a01:4f9:2b:2b15::2]) by smtp.gmail.com with ESMTPSA id j30sm1343532edb.8.2019.07.03.22.52.49 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 03 Jul 2019 22:52:50 -0700 (PDT) From: Nathan Chancellor To: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , "David (ChunMing) Zhou" , Harry Wentland , Leo Li , Rex Zhu , Evan Quan Cc: David Airlie , Daniel Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Nathan Chancellor Subject: [PATCH 3/7] drm/amd/powerplay: Use proper enums in smu_adjust_power_state_dynamic Date: Wed, 3 Jul 2019 22:52:14 -0700 Message-Id: <20190704055217.45860-4-natechancellor@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190704055217.45860-1-natechancellor@gmail.com> References: <20190704055217.45860-1-natechancellor@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org clang warns: drivers/gpu/drm/amd/amdgpu/../powerplay/amdgpu_smu.c:1374:30: warning: implicit conversion from enumeration type 'enum pp_clock_type' to different enumeration type 'enum smu_clk_type' [-Wenum-conversion] smu_force_clk_levels(smu, PP_SCLK, 1 << sclk_mask); ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../powerplay/amdgpu_smu.c:1375:30: warning: implicit conversion from enumeration type 'enum pp_clock_type' to different enumeration type 'enum smu_clk_type' [-Wenum-conversion] smu_force_clk_levels(smu, PP_MCLK, 1 << mclk_mask); ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ This appears to be a copy and paste fail from when this was a call to vega20_force_clk_levels. Fixes: bc0fcffd36ba ("drm/amd/powerplay: Unify smu handle task function (v2)") Link: https://github.com/ClangBuiltLinux/linux/issues/584 Signed-off-by: Nathan Chancellor --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c index 31152d495f69..e897469f7431 100644 --- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c @@ -1371,8 +1371,8 @@ int smu_adjust_power_state_dynamic(struct smu_context *smu, &soc_mask); if (ret) return ret; - smu_force_clk_levels(smu, PP_SCLK, 1 << sclk_mask); - smu_force_clk_levels(smu, PP_MCLK, 1 << mclk_mask); + smu_force_clk_levels(smu, SMU_SCLK, 1 << sclk_mask); + smu_force_clk_levels(smu, SMU_MCLK, 1 << mclk_mask); break; case AMD_DPM_FORCED_LEVEL_MANUAL: -- 2.22.0