Re: [Qemu-devel] [PATCH 2/7] allwinner-a10-pic: fix interrupt clear behaviour

2014-02-24 Thread Beniamino Galvani
On Mon, Feb 24, 2014 at 02:45:06PM +0800, Li Guang wrote: Beniamino Galvani wrote: On Wed, Feb 19, 2014 at 10:02:36AM +0800, Li Guang wrote: Beniamino Galvani wrote: On Tue, Feb 18, 2014 at 11:49:51AM +0800, Li Guang wrote: Beniamino Galvani wrote: According to this mail thread [1], writing

Re: [Qemu-devel] [PATCH 2/7] allwinner-a10-pic: fix interrupt clear behaviour

2014-02-24 Thread Li Guang
Beniamino Galvani wrote: On Mon, Feb 24, 2014 at 02:45:06PM +0800, Li Guang wrote: Beniamino Galvani wrote: On Wed, Feb 19, 2014 at 10:02:36AM +0800, Li Guang wrote: Beniamino Galvani wrote: On Tue, Feb 18, 2014 at 11:49:51AM +0800, Li Guang wrote:

Re: [Qemu-devel] [PATCH 2/7] allwinner-a10-pic: fix interrupt clear behaviour

2014-02-23 Thread Li Guang
Beniamino Galvani wrote: On Wed, Feb 19, 2014 at 10:02:36AM +0800, Li Guang wrote: Beniamino Galvani wrote: On Tue, Feb 18, 2014 at 11:49:51AM +0800, Li Guang wrote: Beniamino Galvani wrote: According to this mail thread [1], writing to pending register seems to

Re: [Qemu-devel] [PATCH 2/7] allwinner-a10-pic: fix interrupt clear behaviour

2014-02-22 Thread Beniamino Galvani
On Wed, Feb 19, 2014 at 10:02:36AM +0800, Li Guang wrote: Beniamino Galvani wrote: On Tue, Feb 18, 2014 at 11:49:51AM +0800, Li Guang wrote: Beniamino Galvani wrote: According to this mail thread [1], writing to pending register seems to have no effect on actual pending status of interrupts.

Re: [Qemu-devel] [PATCH 2/7] allwinner-a10-pic: fix interrupt clear behaviour

2014-02-18 Thread Beniamino Galvani
On Tue, Feb 18, 2014 at 11:49:51AM +0800, Li Guang wrote: Beniamino Galvani wrote: According to this mail thread [1], writing to pending register seems to have no effect on actual pending status of interrupts. This means that the only way to clear a pending interrupt is to clear the interrupt

Re: [Qemu-devel] [PATCH 2/7] allwinner-a10-pic: fix interrupt clear behaviour

2014-02-18 Thread Li Guang
Beniamino Galvani wrote: On Tue, Feb 18, 2014 at 11:49:51AM +0800, Li Guang wrote: Beniamino Galvani wrote: According to this mail thread [1], writing to pending register seems to have no effect on actual pending status of interrupts. This means that the only way to clear a pending

[Qemu-devel] [PATCH 2/7] allwinner-a10-pic: fix interrupt clear behaviour

2014-02-17 Thread Beniamino Galvani
According to this mail thread [1], writing to pending register seems to have no effect on actual pending status of interrupts. This means that the only way to clear a pending interrupt is to clear the interrupt source. This patch implements such behaviour. [1] http://lkml.org/lkml/2013/7/6/59

Re: [Qemu-devel] [PATCH 2/7] allwinner-a10-pic: fix interrupt clear behaviour

2014-02-17 Thread Li Guang
pending registers are also clear registers by a10 datasheet, also you found bits are marked as 'R', so, ..., contradict itself. Beniamino Galvani wrote: According to this mail thread [1], writing to pending register seems to have no effect on actual pending status of interrupts. This means that