[radeon-alex:amd-staging-drm-next 237/248] drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c:1968:21: error: dereferencing pointer to incomplete type 'struct pp_instance'
kbuild test robot
lkp at intel.com
Tue Nov 27 03:49:53 UTC 2018
tree: git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head: c49a0ced347d825bb25e15636ea1b992cb21a946
commit: bd1a31ccef9de5273830dc38d769767de25fb4a1 [237/248] drm/amd:Enable/Disable NBPSTATE on On/OFF of UVD
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 8.1.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout bd1a31ccef9de5273830dc38d769767de25fb4a1
# save the attached .config to linux build tree
GCC_VERSION=8.1.0 make.cross ARCH=ia64
Note: the radeon-alex/amd-staging-drm-next HEAD c49a0ced347d825bb25e15636ea1b992cb21a946 builds fine.
It only hurts bisectibility.
All errors (new ones prefixed by >>):
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c: In function 'amdgpu_dpm_enable_uvd':
>> drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c:1968:21: error: dereferencing pointer to incomplete type 'struct pp_instance'
hwmgr = pp_handle->hwmgr;
^~
vim +1968 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
1952
1953 void amdgpu_dpm_enable_uvd(struct amdgpu_device *adev, bool enable)
1954 {
1955 if (adev->powerplay.pp_funcs->set_powergating_by_smu) {
1956 /* enable/disable UVD */
1957 mutex_lock(&adev->pm.mutex);
1958 amdgpu_dpm_set_powergating_by_smu(adev, AMD_IP_BLOCK_TYPE_UVD, !enable);
1959 mutex_unlock(&adev->pm.mutex);
1960 }
1961 /* enable/disable Low Memory PState for UVD (4k videos) */
1962 if (adev->asic_type == CHIP_STONEY &&
1963 adev->uvd.decode_image_width >= WIDTH_4K) {
1964 struct pp_hwmgr *hwmgr;
1965 struct pp_instance *pp_handle =
1966 (struct pp_instance *)adev->powerplay.pp_handle;
1967 if (pp_handle) {
> 1968 hwmgr = pp_handle->hwmgr;
1969 if (hwmgr && hwmgr->hwmgr_func &&
1970 hwmgr->hwmgr_func->update_nbdpm_pstate)
1971 hwmgr->hwmgr_func->update_nbdpm_pstate(hwmgr,
1972 !enable,
1973 true);
1974 }
1975 }
1976 }
1977
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 52363 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20181127/9ab4ebfc/attachment-0001.gz>
More information about the dri-devel
mailing list