[radeon-alex:amd-staging-dkms-4.13 3469/3830] drivers/gpu/drm/amd/amdkfd/kfd_device.c:365:7: error: too many arguments to function 'pci_enable_atomic_ops_to_root'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-dkms-4.13
head:   7bde112fab15c0a28c1d056959167cd4393bf538
commit: 704c0ec9102104fba7fa522a1dac5c0f7f166a31 [3469/3830] drm/amdkcl: Update pci_enable_atomic_ops_to_root for upstreaming
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        git checkout 704c0ec9102104fba7fa522a1dac5c0f7f166a31
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdkfd/kfd_device.c: In function 'kgd2kfd_probe':
>> drivers/gpu/drm/amd/amdkfd/kfd_device.c:365:7: error: too many arguments to function 'pci_enable_atomic_ops_to_root'
      if (pci_enable_atomic_ops_to_root(pdev,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/kcl/kcl_pci.h:4:0,
                    from drivers/gpu/drm/amd/amdkfd/backport/backport.h:9,
                    from <command-line>:0:
   include/linux/pci.h:2013:5: note: declared here
    int pci_enable_atomic_ops_to_root(struct pci_dev *dev);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

vim +/pci_enable_atomic_ops_to_root +365 drivers/gpu/drm/amd/amdkfd/kfd_device.c

   346	
   347	struct kfd_dev *kgd2kfd_probe(struct kgd_dev *kgd,
   348		struct pci_dev *pdev, const struct kfd2kgd_calls *f2g)
   349	{
   350		struct kfd_dev *kfd;
   351	
   352		const struct kfd_device_info *device_info =
   353						lookup_device_info(pdev->device);
   354	
   355		if (!device_info) {
   356			dev_err(kfd_device, "kgd2kfd_probe failed\n");
   357			return NULL;
   358		}
   359	
   360		if (device_info->needs_pci_atomics) {
   361			/* Allow BIF to recode atomics to PCIe 3.0 AtomicOps.
   362			 * 32 and 64-bit requests are possible and must be
   363			 * supported.
   364			 */
 > 365			if (pci_enable_atomic_ops_to_root(pdev,
   366					PCI_EXP_DEVCAP2_ATOMIC_COMP32 |
   367					PCI_EXP_DEVCAP2_ATOMIC_COMP64) < 0) {
   368				dev_info(kfd_device,
   369					"skipped device %x:%x, PCI rejects atomics",
   370					 pdev->vendor, pdev->device);
   371				return NULL;
   372			}
   373		}
   374	
   375		kfd = kzalloc(sizeof(*kfd), GFP_KERNEL);
   376		if (!kfd)
   377			return NULL;
   378	
   379		kfd->kgd = kgd;
   380		kfd->device_info = device_info;
   381		kfd->pdev = pdev;
   382		kfd->init_complete = false;
   383		kfd->kfd2kgd = f2g;
   384	
   385		mutex_init(&kfd->doorbell_mutex);
   386		memset(&kfd->doorbell_available_index, 0,
   387			sizeof(kfd->doorbell_available_index));
   388	
   389		return kfd;
   390	}
   391	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux