Re: [PATCH V4 3/9] aacraid: Added EEH support

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

 



Hi Raghava,

[auto build test ERROR on scsi/for-next]
[also build test ERROR on v4.5-rc1 next-20160129]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Raghava-Aditya-Renukunta/aacraid-Patchset-for-aacraid-driver-version-41052/20160130-064140
base:   https://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git for-next
config: tile-allmodconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=tile 

All errors (new ones prefixed by >>):

   drivers/scsi/aacraid/linit.c: In function 'aac_pci_error_detected':
>> drivers/scsi/aacraid/linit.c:1544:3: error: implicit declaration of function 'aac_release_resources'
   drivers/scsi/aacraid/linit.c: In function 'aac_pci_resume':
>> drivers/scsi/aacraid/linit.c:1614:2: error: implicit declaration of function 'aac_acquire_resources'
   cc1: some warnings being treated as errors

vim +/aac_release_resources +1544 drivers/scsi/aacraid/linit.c

  1538			return PCI_ERS_RESULT_CAN_RECOVER;
  1539		case pci_channel_io_frozen:
  1540			aac->handle_pci_error = 1;
  1541	
  1542			scsi_block_requests(aac->scsi_host_ptr);
  1543			aac_flush_ios(aac);
> 1544			aac_release_resources(aac);
  1545	
  1546			pci_disable_pcie_error_reporting(pdev);
  1547			aac_adapter_ioremap(aac, 0);
  1548	
  1549			return PCI_ERS_RESULT_NEED_RESET;
  1550		case pci_channel_io_perm_failure:
  1551			aac->handle_pci_error = 1;
  1552	
  1553			aac_flush_ios(aac);
  1554			return PCI_ERS_RESULT_DISCONNECT;
  1555		}
  1556	
  1557		return PCI_ERS_RESULT_NEED_RESET;
  1558	}
  1559	
  1560	static pci_ers_result_t aac_pci_mmio_enabled(struct pci_dev *pdev)
  1561	{
  1562		dev_err(&pdev->dev, "aacraid: PCI error - mmio enabled\n");
  1563		return PCI_ERS_RESULT_NEED_RESET;
  1564	}
  1565	
  1566	static pci_ers_result_t aac_pci_slot_reset(struct pci_dev *pdev)
  1567	{
  1568		dev_err(&pdev->dev, "aacraid: PCI error - slot reset\n");
  1569		pci_restore_state(pdev);
  1570		if (pci_enable_device(pdev)) {
  1571			dev_warn(&pdev->dev,
  1572				"aacraid: failed to enable slave\n");
  1573			goto fail_device;
  1574		}
  1575	
  1576		pci_set_master(pdev);
  1577	
  1578		if (pci_enable_device_mem(pdev)) {
  1579			dev_err(&pdev->dev, "pci_enable_device_mem failed\n");
  1580			goto fail_device;
  1581		}
  1582	
  1583		return PCI_ERS_RESULT_RECOVERED;
  1584	
  1585	fail_device:
  1586		dev_err(&pdev->dev, "aacraid: PCI error - slot reset failed\n");
  1587		return PCI_ERS_RESULT_DISCONNECT;
  1588	}
  1589	
  1590	
  1591	static void aac_pci_resume(struct pci_dev *pdev)
  1592	{
  1593		struct Scsi_Host *shost = pci_get_drvdata(pdev);
  1594		struct scsi_device *sdev = NULL;
  1595		struct aac_dev *aac = (struct aac_dev *)shost_priv(shost);
  1596	
  1597		pci_cleanup_aer_uncorrect_error_status(pdev);
  1598	
  1599		if (aac_adapter_ioremap(aac, aac->base_size)) {
  1600	
  1601			dev_err(&pdev->dev, "aacraid: ioremap failed\n");
  1602			/* remap failed, go back ... */
  1603			aac->comm_interface = AAC_COMM_PRODUCER;
  1604			if (aac_adapter_ioremap(aac, AAC_MIN_FOOTPRINT_SIZE)) {
  1605				dev_warn(&pdev->dev,
  1606					"aacraid: unable to map adapter.\n");
  1607	
  1608				return;
  1609			}
  1610		}
  1611	
  1612		msleep(10000);
  1613	
> 1614		aac_acquire_resources(aac);
  1615	
  1616		/*
  1617		 * reset this flag to unblock ioctl() as it was set

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

Attachment: .config.gz
Description: Binary data


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux