File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
drivers/gpu/drm/amd/amdgpu Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -56,21 +56,15 @@ static const char *amdgpu_ip_name[AMDGPU_HW_IP_NUM] = {
56
56
57
57
void amdgpu_show_fdinfo (struct drm_printer * p , struct drm_file * file )
58
58
{
59
- struct amdgpu_device * adev = drm_to_adev (file -> minor -> dev );
60
59
struct amdgpu_fpriv * fpriv = file -> driver_priv ;
61
60
struct amdgpu_vm * vm = & fpriv -> vm ;
62
61
63
62
struct amdgpu_mem_stats stats ;
64
63
ktime_t usage [AMDGPU_HW_IP_NUM ];
65
- uint32_t bus , dev , fn , domain ;
66
64
unsigned int hw_ip ;
67
65
int ret ;
68
66
69
67
memset (& stats , 0 , sizeof (stats ));
70
- bus = adev -> pdev -> bus -> number ;
71
- domain = pci_domain_nr (adev -> pdev -> bus );
72
- dev = PCI_SLOT (adev -> pdev -> devfn );
73
- fn = PCI_FUNC (adev -> pdev -> devfn );
74
68
75
69
ret = amdgpu_bo_reserve (vm -> root .bo , false);
76
70
if (ret )
You can’t perform that action at this time.
0 commit comments