Re: [PATCH v4 2/3] PCI: Enable PCIe Relaxed Ordering if supported

2017-06-18 Thread Ding Tianhong
On 2017/6/16 22:39, Alexander Duyck wrote: > On Thu, Jun 15, 2017 at 6:10 PM, Ding Tianhong > wrote: >> >> >> On 2017/6/13 5:28, Alexander Duyck wrote: >>> On Mon, Jun 12, 2017 at 4:05 AM, Ding Tianhong >>> wrote: >> ... /** + * pcie_clear_relaxed_ordering - clear PCI Express relax

Re: [PATCH v4 2/3] PCI: Enable PCIe Relaxed Ordering if supported

2017-06-16 Thread Alexander Duyck
On Thu, Jun 15, 2017 at 6:10 PM, Ding Tianhong wrote: > > > On 2017/6/13 5:28, Alexander Duyck wrote: >> On Mon, Jun 12, 2017 at 4:05 AM, Ding Tianhong >> wrote: > ... >>> /** >>> + * pcie_clear_relaxed_ordering - clear PCI Express relaxed ordering bit >>> + * @dev: PCI device to query >>> + *

Re: [PATCH v4 2/3] PCI: Enable PCIe Relaxed Ordering if supported

2017-06-15 Thread Ding Tianhong
On 2017/6/13 5:28, Alexander Duyck wrote: > On Mon, Jun 12, 2017 at 4:05 AM, Ding Tianhong > wrote: ... >> /** >> + * pcie_clear_relaxed_ordering - clear PCI Express relaxed ordering bit >> + * @dev: PCI device to query >> + * >> + * If possible clear relaxed ordering >> + */ >> +int pcie_clea

Re: [PATCH v4 2/3] PCI: Enable PCIe Relaxed Ordering if supported

2017-06-12 Thread Alexander Duyck
On Mon, Jun 12, 2017 at 4:05 AM, Ding Tianhong wrote: > The PCIe Device Control Register use the bit 4 to indicate that > whether the device is permitted to enable relaxed ordering or not. > But relaxed ordering is not safe for some platform which could only > use strong write ordering, so devices

[PATCH v4 2/3] PCI: Enable PCIe Relaxed Ordering if supported

2017-06-12 Thread Ding Tianhong
The PCIe Device Control Register use the bit 4 to indicate that whether the device is permitted to enable relaxed ordering or not. But relaxed ordering is not safe for some platform which could only use strong write ordering, so devices are allowed (but not required) to enable relaxed ordering bit