Received: by 10.223.176.5 with SMTP id f5csp2642979wra; Mon, 29 Jan 2018 01:24:57 -0800 (PST) X-Google-Smtp-Source: AH8x226WlEeSZAaguG6qyMAoUBzkg8cJd5Rqf7SViUizg8dSaY3GlmKbSLbcGXSn6hH2jaTXkwx+ X-Received: by 10.99.37.7 with SMTP id l7mr10356015pgl.311.1517217897726; Mon, 29 Jan 2018 01:24:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517217897; cv=none; d=google.com; s=arc-20160816; b=X5w8LmGiM/7/gYORvObdIKVSv6VbaTIEgax3FL8COw5GfIo2i4pfkNOyX3EgL16PLJ z+VM/hj+ckPBv674DHHDkkZGapZynmOizndIF+JSHSeZV9l3D5fQhAJAF1U/H/EWB1FZ IfmhRKGocyI8xbFxaD1+LyGbwZDhNGYimw9jVN/v9rkSq3WGDZYyC1ZSWo0MdBEGO1qy WCRT8QP5rnHn4HzMRgN16C9BZKn/lctyHUG2Z2oLRX5s7gUW8gDrOLODqT29HmeEJaGo wY1UArno+7mEMMh4wsfVHYYI3JyOWfZvFnlFiNBgk7Rm4d8URH39iVisO3Hp7i0Hxs7Z Pqbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature:arc-authentication-results; bh=97Drt84xVNL713pnBzXRiuXmkJPT/3uCBjvhIlzCwes=; b=xsv1GCe/8p5C6L8nwk/pO/pLTU1oLL+xPtSq4eP9xWDO1ucpc1nDkYqaUODEe4lbYF EbmT9sFxRfHDikzGX1o5SDXNfyP+VtIYyespK691CoBrEiWKb/dbiGBmJMOYBywIHAVu hCZyyI0Xk1mCc+39aa3Z/r4/iCY/G76HyDH8lM9qx1FxcoIR5p74VcaxpIz1Jockw05W fHSlBh4R/aijpenI1wFcHH/jK5ZW7AeKNkd1A2kC2lc0KeXR6RhU7sIdOcqfQMf/rFv5 GpzcO/ZTfeM/SZNUf+Kdd3G9e5S7y1XUgaUwEMqvMxkxeW+G2iQOL1WctHYq1k/aVz20 Jlkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=fiF8uAvX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n17si11539183pfj.302.2018.01.29.01.24.20; Mon, 29 Jan 2018 01:24:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=fiF8uAvX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751717AbeA2JXF (ORCPT + 99 others); Mon, 29 Jan 2018 04:23:05 -0500 Received: from mail-wm0-f53.google.com ([74.125.82.53]:40931 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751649AbeA2JXB (ORCPT ); Mon, 29 Jan 2018 04:23:01 -0500 Received: by mail-wm0-f53.google.com with SMTP id v123so32204798wmd.5 for ; Mon, 29 Jan 2018 01:23:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=97Drt84xVNL713pnBzXRiuXmkJPT/3uCBjvhIlzCwes=; b=fiF8uAvXWQCcGF9eomiq3hfoghN7n9Jj4h/NqhapC9mU4S59Zud5pApUVd4i9skPp5 5Gq3ZUZgz+wUDss0fPbU6CIzYXfkjUSG9cXUvqkpP+ge6/zmvwlCi/AyvRtXEYneY6E8 /IFyE40AaemqBj15ozv5YtQp7ULRIPr2c0A6rVdagygBOz6GlrnHtAdwSbJBC+FnYp1x 0nCJx8S47G2rhVJwUe5eNNgdfzNvf1+jF4bL2P0KEaRw2AWD6sgcd+hlP27meHfoi/pD cawTeR0u30pAElB14xhFJeXmrAWvb8sv4jHOvNQfeV6m6wBMj679JI4+FkiQMMrozny9 WdaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=97Drt84xVNL713pnBzXRiuXmkJPT/3uCBjvhIlzCwes=; b=dx7nSEVqKYmLPTcSdynVsj2v04QRV1BGqYZ4Qd6hlGwXupYDx6Hl5c7ahMEKJ3hqAs 7E1Vsoy1zxcmEEAyH5WDp/UfxjjCcng00ikeATN7cgEMBFMrLKOTGD/GRsSzoWR08ktA dPdhDQi+3bRko53HK9x5uiH3FddoR3W6Ik0buByNljEXHiAsUAR85v88neDNZ/poOl/A Mwgph3n1M5efHcSDQBXK6bzMpNxz4cxfFFAuysaP2OM+zICF9QuQ6ikE3eNF39EpYMPK Ey6A8Z4VDVlsHR+304DIKv0LS39sJISPyiJ5j0fN81lQqWps3XoLV3oQFcbRHh8h3qxm DvZA== X-Gm-Message-State: AKwxytcvmwMn2mHEyTVolv/oe9dcXNOJesxF+Osyp6lvt0cwzkV1/6l0 CGbNt6wAHs3jLTbH+b+OAk4BuA== X-Received: by 10.28.217.213 with SMTP id q204mr11524957wmg.154.1517217779994; Mon, 29 Jan 2018 01:22:59 -0800 (PST) Received: from [10.1.2.124] ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id p21sm6782588wmc.45.2018.01.29.01.22.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Jan 2018 01:22:59 -0800 (PST) Message-ID: <1517217778.3153.1.camel@baylibre.com> Subject: Re: [PATCH v5 00/10] clk: implement clock rate protection mechanism From: Jerome Brunet To: Stephen Boyd , Michael Turquette Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Russell King , Linus Walleij , Quentin Schulz , Kevin Hilman , Maxime Ripard Date: Mon, 29 Jan 2018 10:22:58 +0100 In-Reply-To: <20171222021520.GO7997@codeaurora.org> References: <20171201215200.23523-1-jbrunet@baylibre.com> <151373031022.33554.13905466641279532222@resonance> <20171222021520.GO7997@codeaurora.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.4 (3.26.4-1.fc27) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2017-12-21 at 18:15 -0800, Stephen Boyd wrote: > On 12/19, Michael Turquette wrote: > > Quoting Jerome Brunet (2017-12-01 13:51:50) > > > This Patchset is related the RFC [0] and the discussion around > > > CLK_SET_RATE_GATE available here [1] > > > > > > This patchset introduce clock protection to the CCF core. This can then > > > be used for: > > > > > > * Provide a way for a consumer to claim exclusivity over the rate control > > > of a provider. Some clock consumers require that a clock rate must not > > > deviate from its selected frequency. There can be several reasons for > > > this, not least of which is that some hardware may not be able to > > > handle or recover from a glitch caused by changing the clock rate while > > > the hardware is in operation. For such HW, The ability to get exclusive > > > control of a clock's rate, and release that exclusivity, could be seen > > > as a fundamental clock rate control primitive. The exclusivity is not > > > preemptible, so when claimed more than once, is rate is effectively > > > locked. > > > > > > * Provide a similar functionality to providers themselves, fixing > > > CLK_SET_RATE_GATE flag (enforce clock gating along the tree). While > > > there might still be a few platforms relying the broken implementation, > > > tests done has shown this change to be pretty safe. > > > > Applied to clk-protect-rate, with the exception that I did not apply > > "clk: fix CLK_SET_RATE_GATE with clock rate protection" as it breaks > > qcom clk code. > > > > Stephen, do you plan to fix up the qcom clock code so that the > > SET_RATE_GATE improvement can go in? > > > > I started working on it a while back. Let's see if I can finish > it off this weekend. > Hi Stephen, Have you been able find something to fix the qcom code regarding this issue ? Cheers Jerome