From patchwork Thu Nov 26 13:42:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 333012 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156319ejs; Thu, 26 Nov 2020 05:44:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtNpf3sterEJp/pBqc7lXdXy1r+/BqDJtPfO2jq+FZOEuMao9Clpa2pJesr9DjB6EHph/y X-Received: by 2002:a17:90b:3604:: with SMTP id ml4mr3856846pjb.209.1606398244214; Thu, 26 Nov 2020 05:44:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398244; cv=none; d=google.com; s=arc-20160816; b=aMVCyNxS45dffCLjxhdaeFC7NGEVXSKOy5kaJEGQ5BHAec3Bt2bIozWHWAIIM8TGRG pxOcDjqR/I98Yn//JNKofQ43bNva/Z3iFT0RrQ0KOsYeKbfjjaaYNAFED6aPRMwWmBqc gtqcDnTtZwsbfIz3Nb9Nzi5Thd5hKopOwI1NVdyu/PHKJYedW6huhJJJxGDlltFjrMxA 6uwy8FVzlRUqsl3wH8uUr6OjyUra66ajgg0jYwKKXHvSYnlpTJyGMWLY/EfvmWj8I1Xt PhgAXCuGtKnJ49IwGiy7wt11doWskeAar2OsN15E/beXibLM3iahGkG74rsCc9UO1Dya PtlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=IVYeQHxjus+BMo9oD97C/T7Wasluw84SnK+S7une50E=; b=c7JW1H0rkE/cCiJwvDdby0SxuZBQOn33XhgY4mM8jgcBkgEdvZwKo13t08WmW2T/1y Q+Y4ekqGUd8SAywntsDXEfXPJFPs0bU3o5UwVTzVYrtajkiQIg2guINbMq+puI+iFYB5 bJkANUEDWNThY8OQnizzX52XCU5f19m17aSfUagSdC2iLHJ8WAIkGh6ArEvoFwa8zm0X 8h8Vxb8F4WdoPkq7TRcTfri8HbfDX4ITIE9AnbWOi27Xf9frpZ/U7TyBswSlbLzrlmWx eT38Fqo0Fq8rbJqj5922lxkCw3AGXQ0L++kgyQslaY+98hEZQEiH2JnldCgI1AvJuXAx gNlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Rz+Vn8n1; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id d6si586426pln.399.2020.11.26.05.44.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:44:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Rz+Vn8n1; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EF58A6E98D; Thu, 26 Nov 2020 13:43:41 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id DE9E06E994 for ; Thu, 26 Nov 2020 13:43:40 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id p8so2194297wrx.5 for ; Thu, 26 Nov 2020 05:43:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wTlQph4T9x2clQDWFRQKUxH5e24azy8BuVSYzp5lBkU=; b=Rz+Vn8n1GJmQ/rxsl/asCB4OMfEleQg7MQ7bd6+UCqkmm74BIESn/bQbICzXd8MhjA QuNQ4O4dVDJ6LSLLa5dkqVQvWlr9KRQbjeT2N3rOGGVAxe1qZjzmiu/Ix+dTg0/srPE0 kzde8m10jLEIPnZeUuIQv4H+GX0bSwc3iQGh8KHXvAP6sOp+abDZeHDY+eOa7Fqy1vJd WvIxy4ElqE4NzC45RHvb+UftFhN8PtHHYGLc5UKM76FNhLdb7CRbZbUQuq4IoMxMmS5R Jda+Kc6IQMS3qx3X0gNu4CDnxZlLrVVplJsduhtZzyo6uI1PfQ6E23pRQdT9Rg4WMhO3 5xLw== 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=wTlQph4T9x2clQDWFRQKUxH5e24azy8BuVSYzp5lBkU=; b=E0qGsRnUVzeT3+KQb7Zg0Zh0rfBlOt0rd64buFTkTPz1xc74zjdrD4sOW+FOQwsv97 F/FVofnMp7ey20lCpXEnuXR6f5BzYa1cxJCIztVRnrOuQBzhhPDZ0GcY2n+8M6NVexyl K3ez6Itc0XDa/d0gbgBYU/ZdSHVBGoBTxaILuL6BtJB/y+HcBmIk8NdE8Wf/UroT4aX6 57YUcrN1XyPflYDzPn5aUd55MTrpUB/pYP9LHbdoF31S5UWE72MnRw1ItdorU6STy3yZ PhCxWzmL+6nQ85byiFOzy0/sAbUpkpcnOswuDNo7hKnzJcb0vVOYZpkoc7fqDbIDWDqa FLUw== X-Gm-Message-State: AOAM531GWl5UlG25uOU7oVjdCYolH8TZaIPA87pVXi2GQpOENtLd7c04 MxXc/GHeWQbvDNjHgXcxDuorVQ== X-Received: by 2002:a5d:6186:: with SMTP id j6mr4005475wru.359.1606398219495; Thu, 26 Nov 2020 05:43:39 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:38 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 37/40] drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu: Remove unused function 'pp_nv_set_pme_wa_enable()' Date: Thu, 26 Nov 2020 13:42:37 +0000 Message-Id: <20201126134240.3214176-38-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201126134240.3214176-1-lee.jones@linaro.org> References: <20201126134240.3214176-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_pp_smu.c:664:20: warning: no previous prototype for ‘pp_nv_set_pme_wa_enable’ [-Wmissing-prototypes] Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- .../drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c index ac0a0539854ef..607ec09994456 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c @@ -661,22 +661,6 @@ static enum pp_smu_status pp_nv_set_wm_ranges(struct pp_smu *pp, return PP_SMU_RESULT_OK; } -static enum pp_smu_status pp_nv_set_pme_wa_enable(struct pp_smu *pp) -{ - const struct dc_context *ctx = pp->dm; - struct amdgpu_device *adev = ctx->driver_context; - struct smu_context *smu = &adev->smu; - - if (!smu->ppt_funcs) - return PP_SMU_RESULT_UNSUPPORTED; - - /* 0: successful or smu.ppt_funcs->set_azalia_d3_pme = NULL; 1: fail */ - if (smu_set_azalia_d3_pme(smu)) - return PP_SMU_RESULT_FAIL; - - return PP_SMU_RESULT_OK; -} - static enum pp_smu_status pp_nv_set_display_count(struct pp_smu *pp, int count) { const struct dc_context *ctx = pp->dm;