> -----邮件原件----- > 发件人: Christoph Hellwig [mailto:h...@infradead.org] > 发送时间: 2018年4月16日 20:34 > 收件人: David Wang <davidw...@zhaoxin.com> > 抄送: t...@linutronix.de; mi...@redhat.com; h...@zytor.com; > gre...@linuxfoundation.org; x...@kernel.org; linux- > ker...@vger.kernel.org; brucech...@via-alliance.com; > cooper...@zhaoxin.com; qiyuanw...@zhaoxin.com; > benjamin...@viatech.com; luke...@viacpu.com; tim...@zhaoxin.com > 主题: Re: [PATCH] x86/dma-mapping: override via_no_dac for new VIA PCI > bridges > > On Mon, Apr 16, 2018 at 05:26:56PM +0800, David Wang wrote: > > PCI bridges integrated in new VIA chipset/SoC have no DAC issue. > > Enable DAC for the platforms with these chipset/SoC can improve DMA > > performance about 20% when DRAM size > 4GB. > > > > So we get an exception to an exception? Is there any way to figure out the > PCI IDs actually affected? Yes.
Do you mean we should list the PCI IDs of the PCI bridges which have no DAC issue? There are lots of PCI bridges(PCIE root ports) in our new chipsets/SoCs. And no DMA issues found. So, we only want to recognize the chipset/SoC by reading VID/DID of Bus 0, Device 17, function 0. Thx. --- David