Re: [PATCH/RFC 0/2] libata: legacy mode fixes

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

 



Albert Lee wrote:
Dear all,

Description:
This is the revised patch by Unicorn and I for legacy mode fix.

patch 1/2: make both legacy ports share one host_set.
patch 2/2: remove the unused ap->hard_port_no.

Unfortunately, NAK.

While it would be nice to eventually share one host_set, your patch demonstrates the hacks that must be added to the hot path, to deal with two separate interrupt handlers trying to share the same host_set.

Additionally, neither this email nor the two patches describes the problem you are trying to fix, and how these changes fix that problem.

The correct solution, long term, is
1) move the irq registration (request_irq, free_irq) out of ata_device_add(). The current design was convenient initially, but I have known since I wrote the code that it was insufficient, long term.

The best solution is to give each LLDD the ability to register an interrupt handler in a manner best suited to the hardware. Consider, for example, how poorly the current design will work on PCI MSI-X hardware.

2) For legacy mode hardware, one should pass struct ata_port* to request_irq(), rather then struct ata_host_set*. Thus in the legacy ATA interrupt handler, obtain the host_set via ap->host_set.

	Jeff



-
: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux