Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751581AbbL1CIZ (ORCPT ); Sun, 27 Dec 2015 21:08:25 -0500 Received: from mail-pa0-f48.google.com ([209.85.220.48]:35612 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751022AbbL1CIO (ORCPT ); Sun, 27 Dec 2015 21:08:14 -0500 Date: Sun, 27 Dec 2015 18:08:09 -0800 From: Bjorn Andersson To: Georgi Djakov Cc: sboyd@codeaurora.org, agross@codeaurora.org, mturquette@baylibre.com, linux-clk@vger.kernel.org, bjorn.andersson@sonymobile.com, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v5 1/6] clk: qcom: Add support for SMD-RPM Clocks Message-ID: <20151228020809.GB16437@tuxbot> References: <1449151376-25930-1-git-send-email-georgi.djakov@linaro.org> <1449151376-25930-2-git-send-email-georgi.djakov@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1449151376-25930-2-git-send-email-georgi.djakov@linaro.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1860 Lines: 46 On Thu 03 Dec 06:02 PST 2015, Georgi Djakov wrote: > This adds initial support for clocks controlled by the Resource > Power Manager (RPM) processor on some Qualcomm SoCs, which use > the qcom_smd_rpm driver to communicate with RPM. > Such platforms are msm8916, apq8084 and msm8974. > > The RPM is a dedicated hardware engine for managing the shared > SoC resources in order to keep the lowest power profile. It > communicates with other hardware subsystems via shared memory > and accepts clock requests, aggregates the requests and turns > the clocks on/off or scales them on demand. > > This driver is based on the codeaurora.org driver: > https://www.codeaurora.org/cgit/quic/la/kernel/msm-3.10/tree/drivers/clk/qcom/clock-rpm.c > > Signed-off-by: Georgi Djakov Hi Georgi, I added the 8974 clocks to this to make the WNCSS core happy (need CXO_A2 for XO calibration), but I have a few issues: *) msm_serial acquires a handle to GCC_BLSP1_UART2_APPS_CLK which is parented by "xo"; the clock framework returns a clock, as the gcc driver is probed, but as the rpmcc driver isn't probed clk_get_rate() returns 0. Do you have any patches in your tree to fix the ordering or making the clk_get() implement probe deferral in this case? *) If I let the code call clk_smd_rpm_enable_scaling() my eMMC becomes very unstable, with a rather high occurrence of timeouts during boot (like 80% of boots fail to mount my rootfs). Part of these (unrelated to your code) issues I think this looks good, and hacking around these two issues allows me to get CXO_A2 ticking :) Regards, Bjorn -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/