mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Harry Wentland <harry.wentland@amd.com>
To: "Ricardo Ribalda Delgado" <ricardo.ribalda@gmail.com>,
	"Alex Deucher" <alexander.deucher@amd.com>,
	"Christian König" <christian.koenig@amd.com>,
	"David Airlie" <airlied@linux.ie>, "Rex Zhu" <Rex.Zhu@amd.com>,
	"Tom St Denis" <tom.stdenis@amd.com>,
	"Eric Huang" <JinHuiEric.Huang@amd.com>,
	"Huang Rui" <ray.huang@amd.com>,
	"Dan Carpenter" <dan.carpenter@oracle.com>,
	"Edward O'Callaghan" <funfunctor@folklore1984.net>,
	"Kees Cook" <keescook@chromium.org>,
	"Andrew F. Davis" <afd@ti.com>,
	"Hawking Zhang" <Hawking.Zhang@amd.com>,
	"Baoyou Xie" <baoyou.xie@linaro.org>,
	"Masahiro Yamada" <yamada.masahiro@socionext.com>,
	"Colin Ian King" <colin.king@canonical.com>,
	"Nils Wallménius" <nils.wallmenius@gmail.com>,
	"Joe Perches" <joe@perches.com>,
	amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 01/14] amdgpu: powerplay: Remove unused function
Date: Mon, 24 Jul 2017 10:01:47 -0400	[thread overview]
Message-ID: <40ac5a58-9e02-0240-ae87-0b1c9375873b@amd.com> (raw)
In-Reply-To: <20170724133540.32200-2-ricardo.ribalda@gmail.com>

On 2017-07-24 09:35 AM, Ricardo Ribalda Delgado wrote:
> amd_powerplay_display_configuration_change is never called.
> 
> Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
> ---
>  drivers/gpu/drm/amd/powerplay/amd_powerplay.c     | 21 ---------------------
>  drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h |  3 ---
>  2 files changed, 24 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
> index f73e80c4bf33..1ee7aa5546bf 100644
> --- a/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
> +++ b/drivers/gpu/drm/amd/powerplay/amd_powerplay.c
> @@ -1237,27 +1237,6 @@ int amd_powerplay_reset(void *handle)
>  	return pem_handle_event(eventmgr, AMD_PP_EVENT_COMPLETE_INIT, &event_data);
>  }
>  
> -/* export this function to DAL */
> -
> -int amd_powerplay_display_configuration_change(void *handle,
> -	const struct amd_pp_display_configuration *display_config)

This is used and needed by the DC display driver. See
display/amdgpu_dm/amdgpu_dm_services.c:193 in Alex's amd-staging-4.11 tree:

https://cgit.freedesktop.org/~agd5f/linux/tree/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c?h=amd-staging-4.11

Harry

> -{
> -	struct pp_hwmgr  *hwmgr;
> -	struct pp_instance *pp_handle = (struct pp_instance *)handle;
> -	int ret = 0;
> -
> -	ret = pp_check(pp_handle);
> -
> -	if (ret != 0)
> -		return ret;
> -
> -	hwmgr = pp_handle->hwmgr;
> -	mutex_lock(&pp_handle->pp_lock);
> -	phm_store_dal_configuration_data(hwmgr, display_config);
> -	mutex_unlock(&pp_handle->pp_lock);
> -	return 0;
> -}
> -
>  int amd_powerplay_get_display_power_level(void *handle,
>  		struct amd_pp_simple_clock_info *output)
>  {
> diff --git a/drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h b/drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h
> index 07e9c0b5915d..ae49af5cc5d1 100644
> --- a/drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h
> +++ b/drivers/gpu/drm/amd/powerplay/inc/amd_powerplay.h
> @@ -407,9 +407,6 @@ int amd_powerplay_destroy(void *handle);
>  
>  int amd_powerplay_reset(void *handle);
>  
> -int amd_powerplay_display_configuration_change(void *handle,
> -		const struct amd_pp_display_configuration *input);
> -
>  int amd_powerplay_get_display_power_level(void *handle,
>  		struct amd_pp_simple_clock_info *output);
>  
> 

  reply	other threads:[~2017-07-24 14:02 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-24 13:35 [PATCH 00/14] Remove unused structure amd_pp_display_configuration Ricardo Ribalda Delgado
2017-07-24 13:35 ` [PATCH 01/14] amdgpu: powerplay: Remove unused function Ricardo Ribalda Delgado
2017-07-24 14:01   ` Harry Wentland [this message]
2017-07-24 14:06     ` Ricardo Ribalda Delgado
2017-07-24 15:45       ` Harry Wentland
2017-07-26 13:47         ` Ricardo Ribalda Delgado
2017-07-26 14:44           ` Harry Wentland
2017-07-24 13:35 ` [PATCH 02/14] " Ricardo Ribalda Delgado
2017-07-24 13:35 ` [PATCH 03/14] amdgpu: powerplay: cz_hwmgr: Fix invalid error message Ricardo Ribalda Delgado
2017-07-24 13:35 ` [PATCH 04/14] amdgpu: powerplay: smu7_hwmgr: Assume display_config is zero Ricardo Ribalda Delgado
2017-07-24 13:35 ` [PATCH 05/14] amdgpu: powerplay: fiji_smc: " Ricardo Ribalda Delgado
2017-07-24 13:35 ` [PATCH 06/14] amdgpu: powerplay: iceland_smc: " Ricardo Ribalda Delgado
2017-07-24 13:35 ` [PATCH 07/14] amdgpu: powerplay: polaris10_smc: " Ricardo Ribalda Delgado
2017-07-24 13:35 ` [PATCH 08/14] amdgpu: powerplay: tonga_smc: " Ricardo Ribalda Delgado
2017-07-24 13:35 ` [PATCH 09/14] amdgpu: powerplay: rv_hwmgr: " Ricardo Ribalda Delgado
2017-07-24 13:35 ` [PATCH 10/14] amdgpu: powerplay: vega10_hwmgr: " Ricardo Ribalda Delgado
2017-07-24 13:35 ` [PATCH 11/14] amdgpu: ci_dpm: Assume pm_display_cfg " Ricardo Ribalda Delgado
2017-07-24 13:35 ` [PATCH 12/14] amdgpu: powerplay: hwmgr: Remove unused field Ricardo Ribalda Delgado
2017-07-24 13:35 ` [PATCH 13/14] amdgpu: amdgpu_dpm: " Ricardo Ribalda Delgado
2017-07-24 13:35 ` [PATCH 14/14] amdgpu: powerplay: Remove unused structure Ricardo Ribalda Delgado

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40ac5a58-9e02-0240-ae87-0b1c9375873b@amd.com \
    --to=harry.wentland@amd.com \
    --cc=Hawking.Zhang@amd.com \
    --cc=JinHuiEric.Huang@amd.com \
    --cc=Rex.Zhu@amd.com \
    --cc=afd@ti.com \
    --cc=airlied@linux.ie \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=baoyou.xie@linaro.org \
    --cc=christian.koenig@amd.com \
    --cc=colin.king@canonical.com \
    --cc=dan.carpenter@oracle.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=funfunctor@folklore1984.net \
    --cc=joe@perches.com \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nils.wallmenius@gmail.com \
    --cc=ray.huang@amd.com \
    --cc=ricardo.ribalda@gmail.com \
    --cc=tom.stdenis@amd.com \
    --cc=yamada.masahiro@socionext.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®