Re: [PATCH] irqchip/gic-v3-its: Lock its device list during find and create its device

2019-02-01 Thread Zheng Xiang
On 2019/2/1 17:28, Marc Zyngier wrote: > On 01/02/2019 06:41, Zheng Xiang wrote: >> >> On 2019/1/31 23:12, Marc Zyngier wrote: >>> Hi Zeng, >>> >>> On 31/01/2019 14:47, Zheng Xiang wrote: Hi Marc, On 2019/1/29 13:42, Zheng Xiang wrote: > On 2019/1/28 21:51, Marc Zyngier wrote:

Re: [PATCH] irqchip/gic-v3-its: Lock its device list during find and create its device

2019-02-01 Thread Marc Zyngier
On 01/02/2019 06:41, Zheng Xiang wrote: > > On 2019/1/31 23:12, Marc Zyngier wrote: >> Hi Zeng, >> >> On 31/01/2019 14:47, Zheng Xiang wrote: >>> Hi Marc, >>> >>> On 2019/1/29 13:42, Zheng Xiang wrote: On 2019/1/28 21:51, Marc Zyngier wrote: > On 28/01/2019 07:13, Zheng Xiang wrote:

Re: [PATCH] irqchip/gic-v3-its: Lock its device list during find and create its device

2019-01-31 Thread Zheng Xiang
On 2019/1/31 23:12, Marc Zyngier wrote: > Hi Zeng, > > On 31/01/2019 14:47, Zheng Xiang wrote: >> Hi Marc, >> >> On 2019/1/29 13:42, Zheng Xiang wrote: >>> On 2019/1/28 21:51, Marc Zyngier wrote: On 28/01/2019 07:13, Zheng Xiang wrote: > Hi Marc, > > Thanks for your review.

Re: [PATCH] irqchip/gic-v3-its: Lock its device list during find and create its device

2019-01-31 Thread Marc Zyngier
Hi Zeng, On 31/01/2019 14:47, Zheng Xiang wrote: > Hi Marc, > > On 2019/1/29 13:42, Zheng Xiang wrote: >> On 2019/1/28 21:51, Marc Zyngier wrote: >>> On 28/01/2019 07:13, Zheng Xiang wrote: Hi Marc, Thanks for your review. On 2019/1/26 19:38, Marc Zyngier wrote: > Hi

Re: [PATCH] irqchip/gic-v3-its: Lock its device list during find and create its device

2019-01-31 Thread Zheng Xiang
Hi Marc, On 2019/1/29 13:42, Zheng Xiang wrote: > On 2019/1/28 21:51, Marc Zyngier wrote: >> On 28/01/2019 07:13, Zheng Xiang wrote: >>> Hi Marc, >>> >>> Thanks for your review. >>> >>> On 2019/1/26 19:38, Marc Zyngier wrote: Hi Zheng, On Sat, 26 Jan 2019 06:16:24 +, Zheng

Re: [PATCH] irqchip/gic-v3-its: Lock its device list during find and create its device

2019-01-28 Thread Zheng Xiang
On 2019/1/28 21:51, Marc Zyngier wrote: > On 28/01/2019 07:13, Zheng Xiang wrote: >> Hi Marc, >> >> Thanks for your review. >> >> On 2019/1/26 19:38, Marc Zyngier wrote: >>> Hi Zheng, >>> >>> On Sat, 26 Jan 2019 06:16:24 +, >>> Zheng Xiang wrote: Currently each PCI device under a

Re: [PATCH] irqchip/gic-v3-its: Lock its device list during find and create its device

2019-01-28 Thread Marc Zyngier
On 28/01/2019 07:13, Zheng Xiang wrote: > Hi Marc, > > Thanks for your review. > > On 2019/1/26 19:38, Marc Zyngier wrote: >> Hi Zheng, >> >> On Sat, 26 Jan 2019 06:16:24 +, >> Zheng Xiang wrote: >>> >>> Currently each PCI device under a PCI Bridge shares the same device id >>> and ITS

Re: [PATCH] irqchip/gic-v3-its: Lock its device list during find and create its device

2019-01-27 Thread Zheng Xiang
Hi Marc, Thanks for your review. On 2019/1/26 19:38, Marc Zyngier wrote: > Hi Zheng, > > On Sat, 26 Jan 2019 06:16:24 +, > Zheng Xiang wrote: >> >> Currently each PCI device under a PCI Bridge shares the same device id >> and ITS device. Assume there are two PCI devices call

Re: [PATCH] irqchip/gic-v3-its: Lock its device list during find and create its device

2019-01-26 Thread Marc Zyngier
Hi Zheng, On Sat, 26 Jan 2019 06:16:24 +, Zheng Xiang wrote: > > Currently each PCI device under a PCI Bridge shares the same device id > and ITS device. Assume there are two PCI devices call its_msi_prepare > concurrently and they are both going to find and create their ITS > device. There

[PATCH] irqchip/gic-v3-its: Lock its device list during find and create its device

2019-01-25 Thread Zheng Xiang
Currently each PCI device under a PCI Bridge shares the same device id and ITS device. Assume there are two PCI devices call its_msi_prepare concurrently and they are both going to find and create their ITS device. There is a chance that the later one couldn't find ITS device before the other one