[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120111232636.GA19503@mail.gnudd.com>
Date: Thu, 12 Jan 2012 00:26:36 +0100
From: Alessandro Rubini <rubini@...dd.com>
To: alan@...ux.intel.com
Cc: linux-kernel@...r.kernel.org, giancarlo.asnaghi@...com,
tglx@...utronix.de, mingo@...hat.com, hpa@...or.com,
x86@...nel.org, jgarzik@...ox.com, linux-ide@...r.kernel.org
Subject: Re: [PATCH 6/6] ahci: support the STA2X11 I/O Hub
[I miscopied linux-ide to inux-ide in the original submission. I'm
now fixing the typo. This is the original patch and I quote Alan
without removing anything: https://lkml.org/lkml/2012/1/6/124 ]
>> The AHCI controller found in the STA2X11 chip uses BAR number 0
>> instead of 5. Also, the chip's fixup code sets a special DMA mask
>> for all of its PCI functions, and the mask must be preserved here.
>
> The more I look at this aspect of it the more convinced I grow that you
> should handle this in the DMA ops.
>
> dma_supported will call ops->dma_supported which can in turn make its
> own decisions and avoid driver hackery.
The problem is that there's dma_capable() somewhere. Currently I have
very bad feeling about dma_capable and I'll try to turn that to
dma_supported as soon as possible (the code I got changed the
behaviour of dma_capable, which is a global change impacting on
others).
thanks
/alessandro
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists