From mboxrd@z Thu Jan 1 00:00:00 1970 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 4B3F6301486 for ; Sat, 15 Aug 2026 18:22:37 +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=1786818159; cv=none; b=Jsx+U+Z5FgGR4gKfm0iHRLyEV+xK2Y9Mn3bBn4m+Z2VnGnwS9HYGJyHGcsswGp/ZLS/7N2HA1cn5HnWm4nu6yh/ygnGyII3m9McZjHRrAW8roOPsXFj6uEqhVXnUHq2bzs9XtOKjSdCKnhx0c/hZtzqojm7+SuR5unKlZQ7w1nQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786818159; c=relaxed/simple; bh=/45GP9F9yY9lrScz1AtjqvlT4ZrHv5nSsv3zw00tvHM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SfDW+Us3ngX9PYs7jSOQhDqG4B4LngGHLHIDYeOeeyzuZKNqq69q3WUw0KK68EzIxQbIyWBOg9+rPL0OFIasktK0/2z0KYjhdXaxlFl3JeV9A+vDS50KomXem5yK5r+aWGQlNzWf5vLnrad8ul5vCiN6bwtSHH1hVb+Qbq0BuAE= 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=pU37zViC; 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="pU37zViC" 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=oTrmRfuF4LFHnbDfi9z2KLYSR4yAXCBAI1LUpKxCdws=; b=pU37zViCbh9w42tP YtpZ7SJco+wWDS0Oj6bevH1qaOZ+98b/iX6Qbw1x060X5zvvY9C1TiF4KGMaaYxJo0wrbcgg5AnDl Kje9xrCzuEf7MS1Bd2j6mNtziPYuE/oSVITatBJJcMQeHFodZNLM7Y5Wi6nJYIwpN9KSX2Wn47NM6 kZVadOT54bLTChiSYWjNJQ8nhasfpjQU1FJ+CH7k9RjBw3mzE8Aa60fKfIoBH271CX3uqatbfH0Ce 8NuYcZ+xi8OPtfwfXLQpHZpqsa0WyCPTzS5yNEUmpBAvJTCiaBqDPv9HJEz1nwaV8Zu4QwwfURXPI ij0A5+dA4NmBAVgv9g==; Received: from localhost ([127.0.0.1] helo=dalek) by mx.treblig.org with esmtp (Exim 4.98.2) (envelope-from ) id 1wvIgW-00000002HFi-0VgB; Sat, 15 Aug 2026 18:00:44 +0000 From: linux@treblig.org To: alexander.deucher@amd.com, christian.koenig@amd.com, harry.wentland@amd.com, sunpeng.li@amd.com, amd-gfx@lists.freedesktop.org Cc: airlied@gmail.com, simona@ffwll.ch, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, "Dr. David Alan Gilbert" Subject: [PATCH 0/4] drm/amdgpu: Remove is_idle method Date: Sat, 15 Aug 2026 19:00:29 +0100 Message-ID: <20260815180033.8958-1-linux@treblig.org> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Dr. David Alan Gilbert" The is_idle method in amd_ip_funcs is never called, however there are some functions assigned to it. Remove the bindings to it, and if the functions aren't called anywhere else remove the function as well. Remove the kunit test hook for it. In many cases the wait_for_idle code either calls the function which was wired to is_idle or duplicates the code (or curiously kind of duplicates it with changes). Based on drm-next-7.3 0d710af8e4abdd1fa500bddbab7c0ee47fc98143. Booted on my Ryzen with RX560. (That is spewing some warnings of the form: [ 9.680879] [PLANE:44:plane-0] pixel format with alpha exposed but blend mode not setup [ 9.680881] WARNING: drivers/gpu/drm/drm_mode_config.c:872 at drm_mode_config_validate+0x3c2/0x4f0, CPU#4: (udev-worker)/538 but I don't *think* I've gone anywhere near anything to do with pixel formats etc) Signed-off-by: Dr. David Alan Gilbert Dr. David Alan Gilbert (4): drm/amdgpu: Remove is_idle test case drm/amdgpu: Remove is_idle (trivial cases) drm/amdgpu: Remove is_idle (non trivial functions) drm/amdgpu: Remove is_idle drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 6 ----- drivers/gpu/drm/amd/amdgpu/amdgpu_isp.c | 6 ----- drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c | 6 ----- drivers/gpu/drm/amd/amdgpu/cik.c | 7 ------ drivers/gpu/drm/amd/amdgpu/cik_ih.c | 12 ---------- drivers/gpu/drm/amd/amdgpu/cik_sdma.c | 1 - drivers/gpu/drm/amd/amdgpu/cz_ih.c | 12 ---------- drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | 6 ----- drivers/gpu/drm/amd/amdgpu/dce_v6_0.c | 6 ----- drivers/gpu/drm/amd/amdgpu/dce_v8_0.c | 6 ----- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 12 ---------- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 12 ---------- drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 12 ---------- drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c | 1 - drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c | 1 - drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c | 11 --------- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 1 - drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 1 - drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 1 - drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c | 7 ------ drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 7 ------ drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c | 7 ------ drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 1 - drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 1 - drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 13 ----------- drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 7 ------ drivers/gpu/drm/amd/amdgpu/iceland_ih.c | 12 ---------- drivers/gpu/drm/amd/amdgpu/ih_v6_0.c | 7 ------ drivers/gpu/drm/amd/amdgpu/ih_v6_1.c | 7 ------ drivers/gpu/drm/amd/amdgpu/ih_v7_0.c | 7 ------ drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c | 1 - drivers/gpu/drm/amd/amdgpu/jpeg_v2_5.c | 2 -- drivers/gpu/drm/amd/amdgpu/jpeg_v3_0.c | 1 - drivers/gpu/drm/amd/amdgpu/jpeg_v4_0.c | 1 - drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c | 1 - drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_5.c | 1 - drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_0.c | 1 - drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c | 1 - drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_2.c | 1 - drivers/gpu/drm/amd/amdgpu/jpeg_v5_3_0.c | 1 - drivers/gpu/drm/amd/amdgpu/navi10_ih.c | 7 ------ drivers/gpu/drm/amd/amdgpu/nv.c | 6 ----- drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c | 13 ----------- drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c | 13 ----------- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 16 ------------- drivers/gpu/drm/amd/amdgpu/sdma_v4_4_2.c | 16 ------------- drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 16 ------------- drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 16 ------------- drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c | 16 ------------- drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c | 16 ------------- drivers/gpu/drm/amd/amdgpu/sdma_v7_1.c | 16 ------------- drivers/gpu/drm/amd/amdgpu/si.c | 6 ----- drivers/gpu/drm/amd/amdgpu/si_dma.c | 1 - drivers/gpu/drm/amd/amdgpu/si_ih.c | 1 - drivers/gpu/drm/amd/amdgpu/soc15.c | 6 ----- drivers/gpu/drm/amd/amdgpu/soc21.c | 6 ----- drivers/gpu/drm/amd/amdgpu/soc24.c | 6 ----- drivers/gpu/drm/amd/amdgpu/soc_v1_0.c | 6 ----- drivers/gpu/drm/amd/amdgpu/tonga_ih.c | 12 ---------- drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c | 8 ------- drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c | 8 ------- drivers/gpu/drm/amd/amdgpu/uvd_v5_0.c | 8 ------- drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c | 1 - drivers/gpu/drm/amd/amdgpu/vce_v1_0.c | 1 - drivers/gpu/drm/amd/amdgpu/vce_v2_0.c | 1 - drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 1 - drivers/gpu/drm/amd/amdgpu/vcn_v1_0.c | 1 - drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c | 1 - drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c | 2 -- drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c | 16 ------------- drivers/gpu/drm/amd/amdgpu/vcn_v4_0.c | 23 ------------------- drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c | 21 ----------------- drivers/gpu/drm/amd/amdgpu/vcn_v4_0_5.c | 23 ------------------- drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c | 23 ------------------- drivers/gpu/drm/amd/amdgpu/vcn_v5_0_1.c | 19 --------------- drivers/gpu/drm/amd/amdgpu/vcn_v5_0_2.c | 19 --------------- drivers/gpu/drm/amd/amdgpu/vega10_ih.c | 7 ------ drivers/gpu/drm/amd/amdgpu/vega20_ih.c | 7 ------ drivers/gpu/drm/amd/amdgpu/vi.c | 6 ----- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 8 ------- .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 1 - .../display/amdgpu_dm/tests/amdgpu_dm_test.c | 10 -------- drivers/gpu/drm/amd/include/amd_shared.h | 2 -- drivers/gpu/drm/amd/pm/legacy-dpm/kv_dpm.c | 6 ----- drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c | 7 ------ .../gpu/drm/amd/pm/powerplay/amd_powerplay.c | 6 ----- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 1 - 87 files changed, 639 deletions(-) -- 2.55.0