Re: [Qemu-devel] [PATCH v3 00/10] Clock framework API.

2017-06-27 Thread Peter Maydell
On 27 June 2017 at 08:04, KONRAD Frederic wrote: > Le 06/23/2017 à 03:58 PM, Peter Maydell a écrit : >> The pointer is for your clock inputs -- when would you >> want to start a refresh from that? I would expect >> refreshes to only ever go downstream -- you update >>

Re: [Qemu-devel] [PATCH v3 00/10] Clock framework API.

2017-06-27 Thread KONRAD Frederic
Le 06/23/2017 à 03:58 PM, Peter Maydell a écrit : On 23 June 2017 at 14:07, KONRAD Frederic wrote: Le 06/23/2017 à 02:47 PM, Peter Maydell a écrit : Each device "owns" its output clock objects, but input clocks are just pointers to the clock object owned by the

Re: [Qemu-devel] [PATCH v3 00/10] Clock framework API.

2017-06-23 Thread Peter Maydell
On 23 June 2017 at 14:07, KONRAD Frederic wrote: > Le 06/23/2017 à 02:47 PM, Peter Maydell a écrit : >> Each device "owns" its output clock objects, but input >> clocks are just pointers to the clock object owned by the >> device at the other end. In the board you

Re: [Qemu-devel] [PATCH v3 00/10] Clock framework API.

2017-06-23 Thread KONRAD Frederic
Le 06/23/2017 à 02:47 PM, Peter Maydell a écrit : On 23 June 2017 at 13:38, KONRAD Frederic wrote: Le 06/23/2017 à 11:51 AM, Peter Maydell a écrit : As an aside, I still find it very odd that you get a clock object for both an input clock and an output clock. I

Re: [Qemu-devel] [PATCH v3 00/10] Clock framework API.

2017-06-23 Thread Peter Maydell
On 23 June 2017 at 13:38, KONRAD Frederic wrote: > Le 06/23/2017 à 11:51 AM, Peter Maydell a écrit : >> As an aside, I still find it very odd that you get a clock >> object for both an input clock and an output clock. I feel >> like we should have one end owns the

Re: [Qemu-devel] [PATCH v3 00/10] Clock framework API.

2017-06-23 Thread KONRAD Frederic
Le 06/23/2017 à 11:51 AM, Peter Maydell a écrit : On 15 June 2017 at 16:15, Edgar E. Iglesias wrote: On Thu, Jun 15, 2017 at 04:04:56PM +0100, Peter Maydell wrote: The difference here is that the clock objects themselves have internal state. That's not necessarily

Re: [Qemu-devel] [PATCH v3 00/10] Clock framework API.

2017-06-23 Thread Peter Maydell
On 15 June 2017 at 16:15, Edgar E. Iglesias wrote: > On Thu, Jun 15, 2017 at 04:04:56PM +0100, Peter Maydell wrote: >> The difference here is that the clock objects themselves have >> internal state. That's not necessarily a bad idea, but it does >> mean that

Re: [Qemu-devel] [PATCH v3 00/10] Clock framework API.

2017-06-15 Thread KONRAD Frederic
Le 15/06/2017 à 17:15, Edgar E. Iglesias a écrit : On Thu, Jun 15, 2017 at 04:04:56PM +0100, Peter Maydell wrote: On 15 June 2017 at 15:57, Edgar E. Iglesias wrote: On Thu, Jun 15, 2017 at 03:40:40PM +0100, Peter Maydell wrote: Unfortunately we make no guarantees

Re: [Qemu-devel] [PATCH v3 00/10] Clock framework API.

2017-06-15 Thread Edgar E. Iglesias
On Thu, Jun 15, 2017 at 04:04:56PM +0100, Peter Maydell wrote: > On 15 June 2017 at 15:57, Edgar E. Iglesias wrote: > > On Thu, Jun 15, 2017 at 03:40:40PM +0100, Peter Maydell wrote: > >> Unfortunately we make no guarantees at all about migration order > >> for devices

Re: [Qemu-devel] [PATCH v3 00/10] Clock framework API.

2017-06-15 Thread Peter Maydell
On 15 June 2017 at 15:57, Edgar E. Iglesias wrote: > On Thu, Jun 15, 2017 at 03:40:40PM +0100, Peter Maydell wrote: >> Unfortunately we make no guarantees at all about migration order >> for devices as far as I'm aware, so devices have to cope regardless. > > > How does

Re: [Qemu-devel] [PATCH v3 00/10] Clock framework API.

2017-06-15 Thread Edgar E. Iglesias
On Thu, Jun 15, 2017 at 03:40:40PM +0100, Peter Maydell wrote: > On 14 June 2017 at 12:54, Paolo Bonzini wrote: > > I think the various bindings and rates could be refreshed as devices are > > migrated. This assumes that the device migration order is okay > > according to

Re: [Qemu-devel] [PATCH v3 00/10] Clock framework API.

2017-06-15 Thread Paolo Bonzini
On 15/06/2017 16:40, Peter Maydell wrote: > On 14 June 2017 at 12:54, Paolo Bonzini wrote: >> I think the various bindings and rates could be refreshed as devices are >> migrated. This assumes that the device migration order is okay >> according to the clock tree > >

Re: [Qemu-devel] [PATCH v3 00/10] Clock framework API.

2017-06-15 Thread Peter Maydell
On 14 June 2017 at 12:54, Paolo Bonzini wrote: > I think the various bindings and rates could be refreshed as devices are > migrated. This assumes that the device migration order is okay > according to the clock tree, that is if you have three devices X/Y/Z and > five clocks

Re: [Qemu-devel] [PATCH v3 00/10] Clock framework API.

2017-06-14 Thread KONRAD Frederic
Le 14/06/2017 à 13:54, Paolo Bonzini a écrit : On 13/06/2017 12:33, Peter Maydell wrote: For the migration maybe we can refresh the whole clock tree at the end of the migration. Is that a good idea? That seems kind of awkward -- where would this code that did a clock tree refresh be? Also

Re: [Qemu-devel] [PATCH v3 00/10] Clock framework API.

2017-06-14 Thread Paolo Bonzini
On 13/06/2017 12:33, Peter Maydell wrote: >> For the migration maybe we can refresh the whole clock tree at the end >> of the migration. Is that a good idea? > That seems kind of awkward -- where would this code that did a > clock tree refresh be? Also you're then reliant on all the > callback

Re: [Qemu-devel] [PATCH v3 00/10] Clock framework API.

2017-06-13 Thread Peter Maydell
On 8 June 2017 at 08:54, KONRAD Frederic wrote: > Le 06/06/2017 à 17:18, Peter Maydell a écrit : >> Some top-level review: >> * qemu_clk_device_add_clock() does a g_strdup, but when is this freed? >> (consider devices which are hot-unpluggable) >> * similarly, what

Re: [Qemu-devel] [PATCH v3 00/10] Clock framework API.

2017-06-08 Thread KONRAD Frederic
Le 06/06/2017 à 17:18, Peter Maydell a écrit : On 24 May 2017 at 08:35, KONRAD Frederic wrote: Le 28/02/2017 à 11:02, fred.kon...@greensocs.com a écrit : This is the third version of the clock framework API it contains: * The first 6 patches which introduce the

Re: [Qemu-devel] [PATCH v3 00/10] Clock framework API.

2017-06-06 Thread Peter Maydell
On 24 May 2017 at 08:35, KONRAD Frederic wrote: > Le 28/02/2017 à 11:02, fred.kon...@greensocs.com a écrit : >> This is the third version of the clock framework API it contains: >> >> * The first 6 patches which introduce the framework. >> * The 7th patch which

Re: [Qemu-devel] [PATCH v3 00/10] Clock framework API.

2017-05-24 Thread KONRAD Frederic
Ping. Thanks, Fred Le 28/02/2017 à 11:02, fred.kon...@greensocs.com a écrit : From: KONRAD Frederic Hi, This is the third version of the clock framework API it contains: * The first 6 patches which introduce the framework. * The 7th patch which introduces a

[Qemu-devel] [PATCH v3 00/10] Clock framework API.

2017-02-28 Thread fred . konrad
From: KONRAD Frederic Hi, This is the third version of the clock framework API it contains: * The first 6 patches which introduce the framework. * The 7th patch which introduces a fixed-clock model. * The rest which gives an example how to model a PLL from the