Linux ATA/IDE development
 help / color / mirror / Atom feed
* AHCI driver support for AER error handling?
@ 2013-12-19 18:03 Karicheri, Muralidharan
  2013-12-19 20:00 ` Bartlomiej Zolnierkiewicz
  0 siblings, 1 reply; 2+ messages in thread
From: Karicheri, Muralidharan @ 2013-12-19 18:03 UTC (permalink / raw)
  To: linux-ide@vger.kernel.org

All,

I am new to this mailing list. I got AER driver working for my platform with a pcie root complex driver. However one of my customer is using AHCI over PCI and I find that the driver currently doesn't provide error handler and ignore pci errors. Is this intentional? Could someone provide some input on this? I had to add code to enable error bits (PCI_COMMAND) and call pci_enable_pcie_error_reporting () to enable error reporting to the driver to test the AER driver. But curious why this is currently not supported in the driver. If there is any patch to address, please provide me a link.

Thanks

static struct pci_driver ahci_pci_driver = {
        .name                   = DRV_NAME,
        .id_table               = ahci_pci_tbl,
        .probe                  = ahci_init_one,
        .remove                 = ata_pci_remove_one,
#ifdef CONFIG_PM
        .suspend                = ahci_pci_device_suspend,
        .resume                 = ahci_pci_device_resume,
#endif
};

struct pci_driver {             
        struct list_head node;  
        const char *name;
        const struct pci_device_id *id_table;   /* must be non-NULL for probe to be called */
        int  (*probe)  (struct pci_dev *dev, const struct pci_device_id *id);   /* New device inserted */
        void (*remove) (struct pci_dev *dev);   /* Device removed (NULL if not a hot-plug capable driver) */
        int  (*suspend) (struct pci_dev *dev, pm_message_t state);      /* Device suspended */
        int  (*suspend_late) (struct pci_dev *dev, pm_message_t state);
        int  (*resume_early) (struct pci_dev *dev);
        int  (*resume) (struct pci_dev *dev);                   /* Device woken up */
        void (*shutdown) (struct pci_dev *dev);
        int (*sriov_configure) (struct pci_dev *dev, int num_vfs); /* PF pdev */
        const struct pci_error_handlers *err_handler;
        struct device_driver    driver;
        struct pci_dynids dynids;
};

Murali Karicheri
Linux Kernel, Software Development



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-12-19 20:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-19 18:03 AHCI driver support for AER error handling? Karicheri, Muralidharan
2013-12-19 20:00 ` Bartlomiej Zolnierkiewicz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox