|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v4] xen/arm: Add a clock property
On 14.07.2016 17:55, Stefano Stabellini wrote: On Thu, 14 Jul 2016, Dirk Behme wrote:On 14.07.2016 12:38, Stefano Stabellini wrote:On Thu, 14 Jul 2016, Dirk Behme wrote:On 13.07.2016 23:03, Michael Turquette wrote:Quoting Dirk Behme (2016-07-13 11:56:30)On 13.07.2016 20:43, Stefano Stabellini wrote:On Wed, 13 Jul 2016, Dirk Behme wrote:On 13.07.2016 00:26, Michael Turquette wrote:Quoting Dirk Behme (2016-07-12 00:46:45)Clocks described by this property are reserved for use by Xen, and the OS must not alter their state any way, such as disabling or gating a clock, or modifying its rate. Ensuring this may impose constraints on parent clocks or other resources used by the clock tree. I don't think so. We are just using the existing one https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/clock/clock-bindings.txt#n66, pick it from other device tree nodes (e.g. serial, timer etc) and add it to the hypervisor node. And then use this existing one with the existing well defined clock API. one which will have to be supported for a long time by both Xen and Linux, so at the very least we need to have the full picture. We need to understand if the binding if sufficient Even if it's not sufficient, you can't change it. or if we need something different to solve the problem completely. You might need anything additionally. E.g. an extension of the Linux kernel clock API to be able to modify the flags was proposed. Best regards DirkP.S.: I still would be interested if we do have a practical example where it's not sufficient practically? Once we understand that, I am happy to accept a partial implementation in Linux, as long as it is a step in the right direction. Does it make sense?While I agree that the patch theoretically incomplete, if nobody has a real world example I would think that from practical point of view it's sufficient in a first step. If this is the case, I'd propose to fix the practical issue in a first step with a patch (this one) which is sufficient to fix the issues the Xen users have. And update the code for theoretical future issues in a second step. Best regards Dirk [1] http://bugs.xenproject.org/xen/bug/45We need to understand at least what it would take to have a complete solution. Michael, do you have any suggestions on how it would be possible to set CLK_SET_RATE_GATE and CLK_SET_PARENT_GATE for those clocks in a proper way? Like you wrote, I would imagine it needs to be done by the clock provider driver. Maybe to do that, it would be easier to have a new device tree property on the clock node, rather than listing phandle and clock-specifier pairs under the Xen node? _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |