* questions about smu_mode2_reset_is_support and smu_v13_0_init_display_count
@ 2025-05-07 0:32 Dr. David Alan Gilbert
2025-05-07 2:21 ` Feng, Kenneth
0 siblings, 1 reply; 3+ messages in thread
From: Dr. David Alan Gilbert @ 2025-05-07 0:32 UTC (permalink / raw)
To: alexander.deucher, kenneth.feng, christian.koenig; +Cc: amd-gfx, linux-kernel
Hi,
I noticed two functions that are unused but I wasn't sure what to
do with them:
smu_v13_0_init_display_count() isn't called/wired up, where as the
v11 version is wired up:
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c
3574: .init_display_count = smu_v11_0_init_display_count,
so is v13 really unused or should it be wired up in a similar way?
secondly, smu_mode2_reset_is_support() is uncalled, but it's
the only caller through the mode2_reset_is_support() function
pointer; so if smu_mode2_reset_is_support() was deleted, does
it then make sense to clean up all of
sienna_cichlid_is_mode2_reset_supported,
aldebaran_is_mode2_reset_supported,
smu_v13_0_6_is_mode2_reset_supported
which that function pointer is sett to.
Thanks in advance,
Dave
--
-----Open up your eyes, open up your mind, open up your code -------
/ Dr. David Alan Gilbert | Running GNU/Linux | Happy \
\ dave @ treblig.org | | In Hex /
\ _________________________|_____ http://www.treblig.org |_______/
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: questions about smu_mode2_reset_is_support and smu_v13_0_init_display_count
2025-05-07 0:32 questions about smu_mode2_reset_is_support and smu_v13_0_init_display_count Dr. David Alan Gilbert
@ 2025-05-07 2:21 ` Feng, Kenneth
2025-05-07 17:22 ` Dr. David Alan Gilbert
0 siblings, 1 reply; 3+ messages in thread
From: Feng, Kenneth @ 2025-05-07 2:21 UTC (permalink / raw)
To: Dr. David Alan Gilbert, Deucher, Alexander, Koenig, Christian
Cc: amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org
[AMD Official Use Only - AMD Internal Distribution Only]
Hello Dave,
smu_v13_0_init_display_count() is obsolete on smu13 series. It will be removed.
Secondly, with cod evolving, all of below can be removed as well.
sienna_cichlid_is_mode2_reset_supported,
aldebaran_is_mode2_reset_supported,
smu_v13_0_6_is_mode2_reset_supported
Thanks.
-----Original Message-----
From: Dr. David Alan Gilbert <linux@treblig.org>
Sent: Wednesday, May 7, 2025 8:32 AM
To: Deucher, Alexander <Alexander.Deucher@amd.com>; Feng, Kenneth <Kenneth.Feng@amd.com>; Koenig, Christian <Christian.Koenig@amd.com>
Cc: amd-gfx@lists.freedesktop.org; linux-kernel@vger.kernel.org
Subject: questions about smu_mode2_reset_is_support and smu_v13_0_init_display_count
Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
Hi,
I noticed two functions that are unused but I wasn't sure what to do with them:
smu_v13_0_init_display_count() isn't called/wired up, where as the
v11 version is wired up:
drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c
3574: .init_display_count = smu_v11_0_init_display_count,
so is v13 really unused or should it be wired up in a similar way?
secondly, smu_mode2_reset_is_support() is uncalled, but it's the only caller through the mode2_reset_is_support() function pointer; so if smu_mode2_reset_is_support() was deleted, does it then make sense to clean up all of
sienna_cichlid_is_mode2_reset_supported,
aldebaran_is_mode2_reset_supported,
smu_v13_0_6_is_mode2_reset_supported
which that function pointer is sett to.
Thanks in advance,
Dave
--
-----Open up your eyes, open up your mind, open up your code -------
/ Dr. David Alan Gilbert | Running GNU/Linux | Happy \
\ dave @ treblig.org | | In Hex /
\ _________________________|_____ http://www.treblig.org |_______/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: questions about smu_mode2_reset_is_support and smu_v13_0_init_display_count
2025-05-07 2:21 ` Feng, Kenneth
@ 2025-05-07 17:22 ` Dr. David Alan Gilbert
0 siblings, 0 replies; 3+ messages in thread
From: Dr. David Alan Gilbert @ 2025-05-07 17:22 UTC (permalink / raw)
To: Feng, Kenneth
Cc: Deucher, Alexander, Koenig, Christian,
amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org
* Feng, Kenneth (Kenneth.Feng@amd.com) wrote:
> [AMD Official Use Only - AMD Internal Distribution Only]
>
> Hello Dave,
Hi Kenneth,
Thanks for the reply.
> smu_v13_0_init_display_count() is obsolete on smu13 series. It will be removed.
> Secondly, with cod evolving, all of below can be removed as well.
> sienna_cichlid_is_mode2_reset_supported,
> aldebaran_is_mode2_reset_supported,
> smu_v13_0_6_is_mode2_reset_supported
Great, I've sent a series to delete all those, see 20250507170145.102508-1-linux@treblig.org
Dave
> Thanks.
>
>
>
> -----Original Message-----
> From: Dr. David Alan Gilbert <linux@treblig.org>
> Sent: Wednesday, May 7, 2025 8:32 AM
> To: Deucher, Alexander <Alexander.Deucher@amd.com>; Feng, Kenneth <Kenneth.Feng@amd.com>; Koenig, Christian <Christian.Koenig@amd.com>
> Cc: amd-gfx@lists.freedesktop.org; linux-kernel@vger.kernel.org
> Subject: questions about smu_mode2_reset_is_support and smu_v13_0_init_display_count
>
> Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
>
>
> Hi,
> I noticed two functions that are unused but I wasn't sure what to do with them:
>
> smu_v13_0_init_display_count() isn't called/wired up, where as the
> v11 version is wired up:
>
> drivers/gpu/drm/amd/pm/swsmu/smu11/navi10_ppt.c
> 3574: .init_display_count = smu_v11_0_init_display_count,
>
> so is v13 really unused or should it be wired up in a similar way?
>
> secondly, smu_mode2_reset_is_support() is uncalled, but it's the only caller through the mode2_reset_is_support() function pointer; so if smu_mode2_reset_is_support() was deleted, does it then make sense to clean up all of
> sienna_cichlid_is_mode2_reset_supported,
> aldebaran_is_mode2_reset_supported,
> smu_v13_0_6_is_mode2_reset_supported
>
> which that function pointer is sett to.
>
> Thanks in advance,
>
> Dave
>
> --
> -----Open up your eyes, open up your mind, open up your code -------
> / Dr. David Alan Gilbert | Running GNU/Linux | Happy \
> \ dave @ treblig.org | | In Hex /
> \ _________________________|_____ http://www.treblig.org |_______/
--
-----Open up your eyes, open up your mind, open up your code -------
/ Dr. David Alan Gilbert | Running GNU/Linux | Happy \
\ dave @ treblig.org | | In Hex /
\ _________________________|_____ http://www.treblig.org |_______/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-05-07 17:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-07 0:32 questions about smu_mode2_reset_is_support and smu_v13_0_init_display_count Dr. David Alan Gilbert
2025-05-07 2:21 ` Feng, Kenneth
2025-05-07 17:22 ` Dr. David Alan Gilbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox