Re: [PATCH] x86/dma-mapping: override via_no_dac for new VIA PCI bridges
From: David Wang
Date: Tue Apr 17 2018 - 04:45:16 EST
> -----邮件原件-----
> 发件人: Christoph Hellwig [mailto:hch@xxxxxxxxxxxxx]
> 发送时间: 2018年4月16日 20:34
> 收件人: David Wang <davidwang@xxxxxxxxxxx>
> 抄送: tglx@xxxxxxxxxxxxx; mingo@xxxxxxxxxx; hpa@xxxxxxxxx;
> gregkh@xxxxxxxxxxxxxxxxxxx; x86@xxxxxxxxxx; linux-
> kernel@xxxxxxxxxxxxxxx; brucechang@xxxxxxxxxxxxxxxx;
> cooperyan@xxxxxxxxxxx; qiyuanwang@xxxxxxxxxxx;
> benjaminpan@xxxxxxxxxxx; lukelin@xxxxxxxxxx; timguo@xxxxxxxxxxx
> 主题: 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