Re: [PATCH 01/14] amdgpu: powerplay: Remove unused function
On 2017-07-26 09:47 AM, Ricardo Ribalda Delgado wrote: > Hi Harry > > On Mon, Jul 24, 2017 at 5:45 PM, Harry Wentland> wrote: >> On 2017-07-24 10:06 AM, Ricardo Ribalda Delgado wrote: >>> Hi Harry >>> On Mon, Jul 24, 2017 at 4:01 PM, Harry Wentland >>> wrote: >>> 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 >>> >>> I could not find any reference to the function in linux-next (>4.12) >>> >>> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/gpu/drm/amd >>> >>> Is there any plan to merge Alex's amd-stagin tree? >> >> The plan is to merge/upstream the amd/display portion of Alex's >> amd-staging tree. We're currently working on the community feedback we >> received to get it into shape. > > Is there any timeframe for this? > We're actively working on this. It depends on cleaning up our codebase a fair bit. Harry > At least we should remove the pr_info("min_core_set_clock not > set\n"); message.> > it is (very) misleading right now. > > Regards! > >> >> Harry >> >>> >>> Sorry, I am not very familiar with this subsystem. >>> >>> Regards! >>> > > >
Re: [PATCH 01/14] amdgpu: powerplay: Remove unused function
On 2017-07-26 09:47 AM, Ricardo Ribalda Delgado wrote: > Hi Harry > > On Mon, Jul 24, 2017 at 5:45 PM, Harry Wentland > wrote: >> On 2017-07-24 10:06 AM, Ricardo Ribalda Delgado wrote: >>> Hi Harry >>> On Mon, Jul 24, 2017 at 4:01 PM, Harry Wentland >>> wrote: >>> 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 >>> >>> I could not find any reference to the function in linux-next (>4.12) >>> >>> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/gpu/drm/amd >>> >>> Is there any plan to merge Alex's amd-stagin tree? >> >> The plan is to merge/upstream the amd/display portion of Alex's >> amd-staging tree. We're currently working on the community feedback we >> received to get it into shape. > > Is there any timeframe for this? > We're actively working on this. It depends on cleaning up our codebase a fair bit. Harry > At least we should remove the pr_info("min_core_set_clock not > set\n"); message.> > it is (very) misleading right now. > > Regards! > >> >> Harry >> >>> >>> Sorry, I am not very familiar with this subsystem. >>> >>> Regards! >>> > > >
Re: [PATCH 01/14] amdgpu: powerplay: Remove unused function
Hi Harry On Mon, Jul 24, 2017 at 5:45 PM, Harry Wentlandwrote: > On 2017-07-24 10:06 AM, Ricardo Ribalda Delgado wrote: >> Hi Harry >> On Mon, Jul 24, 2017 at 4:01 PM, Harry Wentland >> wrote: >> >>> >>> 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 >>> >> >> I could not find any reference to the function in linux-next (>4.12) >> >> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/gpu/drm/amd >> >> Is there any plan to merge Alex's amd-stagin tree? > > The plan is to merge/upstream the amd/display portion of Alex's > amd-staging tree. We're currently working on the community feedback we > received to get it into shape. Is there any timeframe for this? At least we should remove the pr_info("min_core_set_clock not set\n"); message. it is (very) misleading right now. Regards! > > Harry > >> >> Sorry, I am not very familiar with this subsystem. >> >> Regards! >> -- Ricardo Ribalda
Re: [PATCH 01/14] amdgpu: powerplay: Remove unused function
Hi Harry On Mon, Jul 24, 2017 at 5:45 PM, Harry Wentland wrote: > On 2017-07-24 10:06 AM, Ricardo Ribalda Delgado wrote: >> Hi Harry >> On Mon, Jul 24, 2017 at 4:01 PM, Harry Wentland >> wrote: >> >>> >>> 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 >>> >> >> I could not find any reference to the function in linux-next (>4.12) >> >> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/gpu/drm/amd >> >> Is there any plan to merge Alex's amd-stagin tree? > > The plan is to merge/upstream the amd/display portion of Alex's > amd-staging tree. We're currently working on the community feedback we > received to get it into shape. Is there any timeframe for this? At least we should remove the pr_info("min_core_set_clock not set\n"); message. it is (very) misleading right now. Regards! > > Harry > >> >> Sorry, I am not very familiar with this subsystem. >> >> Regards! >> -- Ricardo Ribalda
Re: [PATCH 01/14] amdgpu: powerplay: Remove unused function
On 2017-07-24 10:06 AM, Ricardo Ribalda Delgado wrote: > Hi Harry > On Mon, Jul 24, 2017 at 4:01 PM, Harry Wentland> wrote: > >> >> 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 >> > > I could not find any reference to the function in linux-next (>4.12) > > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/gpu/drm/amd > > Is there any plan to merge Alex's amd-stagin tree? The plan is to merge/upstream the amd/display portion of Alex's amd-staging tree. We're currently working on the community feedback we received to get it into shape. Harry > > Sorry, I am not very familiar with this subsystem. > > Regards! >
Re: [PATCH 01/14] amdgpu: powerplay: Remove unused function
On 2017-07-24 10:06 AM, Ricardo Ribalda Delgado wrote: > Hi Harry > On Mon, Jul 24, 2017 at 4:01 PM, Harry Wentland > wrote: > >> >> 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 >> > > I could not find any reference to the function in linux-next (>4.12) > > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/gpu/drm/amd > > Is there any plan to merge Alex's amd-stagin tree? The plan is to merge/upstream the amd/display portion of Alex's amd-staging tree. We're currently working on the community feedback we received to get it into shape. Harry > > Sorry, I am not very familiar with this subsystem. > > Regards! >
Re: [PATCH 01/14] amdgpu: powerplay: Remove unused function
Hi Harry On Mon, Jul 24, 2017 at 4:01 PM, Harry Wentlandwrote: > > 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 > I could not find any reference to the function in linux-next (>4.12) https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/gpu/drm/amd Is there any plan to merge Alex's amd-stagin tree? Sorry, I am not very familiar with this subsystem. Regards!
Re: [PATCH 01/14] amdgpu: powerplay: Remove unused function
Hi Harry On Mon, Jul 24, 2017 at 4:01 PM, Harry Wentland wrote: > > 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 > I could not find any reference to the function in linux-next (>4.12) https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/drivers/gpu/drm/amd Is there any plan to merge Alex's amd-stagin tree? Sorry, I am not very familiar with this subsystem. Regards!
Re: [PATCH 01/14] amdgpu: powerplay: Remove unused function
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> --- > 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, > _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(_handle->pp_lock); > - phm_store_dal_configuration_data(hwmgr, display_config); > - mutex_unlock(_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); > >
Re: [PATCH 01/14] amdgpu: powerplay: Remove unused function
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 > --- > 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, > _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(_handle->pp_lock); > - phm_store_dal_configuration_data(hwmgr, display_config); > - mutex_unlock(_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); > >
[PATCH 01/14] amdgpu: powerplay: Remove unused function
amd_powerplay_display_configuration_change is never called. Signed-off-by: Ricardo Ribalda Delgado--- 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, _data); } -/* export this function to DAL */ - -int amd_powerplay_display_configuration_change(void *handle, - const struct amd_pp_display_configuration *display_config) -{ - 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(_handle->pp_lock); - phm_store_dal_configuration_data(hwmgr, display_config); - mutex_unlock(_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); -- 2.13.2
[PATCH 01/14] amdgpu: powerplay: Remove unused function
amd_powerplay_display_configuration_change is never called. Signed-off-by: Ricardo Ribalda Delgado --- 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, _data); } -/* export this function to DAL */ - -int amd_powerplay_display_configuration_change(void *handle, - const struct amd_pp_display_configuration *display_config) -{ - 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(_handle->pp_lock); - phm_store_dal_configuration_data(hwmgr, display_config); - mutex_unlock(_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); -- 2.13.2