From nobody Thu Dec 18 12:28:40 2025 Received: from mx.treblig.org (mx.treblig.org [46.235.229.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6916B78C9C for ; Wed, 7 May 2025 17:01:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.229.95 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746637314; cv=none; b=VW3TW6XHEAj6FAg+910wtG0h+URar2JKOC0DOYdJ7h6OEsV5QhJ4GuilhrP/M7U7GFpsUPKgu3g6QjIeeOEfvPQq84XEb/Ps2PfOW0sSTXQnkiucDktylb2qCaOFES9Y4Lri+z3Lp5LE0urMNf8P7cpECGrstQtm96vIlRjROPs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746637314; c=relaxed/simple; bh=vEypG28NFp/2x+jQr5+mbaqpLwyviHgq3D++TI3WV6E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ctq75sKVVIGVgc32VgqdKTYXlDZRbRKhP+YG1t54yixMVoFhxnCvXHpt7dP7X8NCIWYKMgic5AXyow01wlmPGtwym72zl7oOSnT42ki7vZwTlhDJI4ewOROLd1/zhZuHPKo7L0ojJaISFdRMkpeFctF6OtCm3gh4VGXVUChVrGY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org; spf=pass smtp.mailfrom=treblig.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b=LUQTyw06; arc=none smtp.client-ip=46.235.229.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=treblig.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="LUQTyw06" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=2du0cOyGNjNJ8UpDVle2A2RTs5qK9EdSvnrILemNlQA=; b=LUQTyw063+W9fved ukcncdzT0CnIq63tF6Ojk+te4fddzk5dxznnIvRu/ZmD8vXrbWDarYiXFQBMGkCANTboafLCI/Nz3 E8KzkzY7MQzsRUpjxt+ldeuzKqGwy1tfd78GSdR69Jjs+xG5fDewGToAVJiY8L80/plUUkiMWdt/l KLUr/FaHHQAqaiAWW3IxBvbzooLuam6qqt3m9RtEqJ/7EYZFdJP7iRl61xvNHBIsBCPMZRpGLlNtn R7OtsgLYe5nEomJBGzW2iafoLYHYgVkCzJxbyCwFwz+u/N9uN8GO/s9IU7VPO0qyfxqj4KWmvrrBN +zYCoT4dxNERNPrw6w==; Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1uCi9S-002EIU-2K; Wed, 07 May 2025 17:01:46 +0000 From: linux@treblig.org To: alexander.deucher@amd.com, kenneth.feng@amd.com, christian.koenig@amd.com Cc: airlied@gmail.com, simona@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, "Dr. David Alan Gilbert" Subject: [PATCH 1/3] drm/amd/pm/smu13: Remove unused smu_v13_0_init_display_count Date: Wed, 7 May 2025 18:01:43 +0100 Message-ID: <20250507170145.102508-2-linux@treblig.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250507170145.102508-1-linux@treblig.org> References: <20250507170145.102508-1-linux@treblig.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: "Dr. David Alan Gilbert" smu_v13_0_init_display_count() was added in 2020 by commit c05d1c401572 ("drm/amd/swsmu: add aldebaran smu13 ip support (v3)") but is unused. See discussion on: https://lore.kernel.org/all/DM4PR12MB5165D85BD85BC8FC8BF7A3B48E88A@DM4PR12M= B5165.namprd12.prod.outlook.com/ that it really isn't neede. Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h | 2 -- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 12 ------------ 2 files changed, 14 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h b/drivers/gpu/drm= /amd/pm/swsmu/inc/smu_v13_0.h index 6f74783472e5..1b4a46126a04 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h +++ b/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0.h @@ -162,8 +162,6 @@ int smu_v13_0_notify_memory_pool_location(struct smu_co= ntext *smu); int smu_v13_0_system_features_control(struct smu_context *smu, bool en); =20 -int smu_v13_0_init_display_count(struct smu_context *smu, uint32_t count); - int smu_v13_0_set_allowed_mask(struct smu_context *smu); =20 int smu_v13_0_notify_display_change(struct smu_context *smu); diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c b/drivers/gpu/d= rm/amd/pm/swsmu/smu13/smu_v13_0.c index 03242f65e262..9893657dfa61 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c @@ -749,18 +749,6 @@ int smu_v13_0_set_tool_table_location(struct smu_conte= xt *smu) return ret; } =20 -int smu_v13_0_init_display_count(struct smu_context *smu, uint32_t count) -{ - int ret =3D 0; - - if (!smu->pm_enabled) - return ret; - - ret =3D smu_cmn_send_smc_msg_with_param(smu, SMU_MSG_NumOfDisplays, count= , NULL); - - return ret; -} - int smu_v13_0_set_allowed_mask(struct smu_context *smu) { struct smu_feature *feature =3D &smu->smu_feature; --=20 2.49.0