From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F0E5C4360C for ; Thu, 26 Sep 2019 20:46:57 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4268C208C3 for ; Thu, 26 Sep 2019 20:46:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="gz8aCtl1"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="JD7JeQsA" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4268C208C3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=O+ZjSkKdk9bIhWAbXNuL86cHgOGCn0engK1d2stcXuo=; b=gz8aCtl1gAgzbe kWmXEWa6HN2ZVyIljql+eoEejLCaQDzGvWxKanIlX1hM7heSmueeheLA1hZdPGMBmShxmJUJNbe/q /fvhikNNEQ9p/M7SupQ3g1kJqQE+0Qa76QcrkVhYqdQk050ft/+EAqmqEZjPqib6Yz8Tvpt83aZPG mxCEIBj2vt2uNUg291LLic/ZhU5KrjN0DrIx74s30QXOb01PDHDjDa8/qsaChliNjRFMwWEDHdJZN C46m80ceMTjrTEG3t/z756ekd5wp1u1LQsjkLqiOXI7aNEhmcIpQkzvwZ29rcNS2QaYJm2PxfaIA7 olT1IoiqTA10LtqLNmIg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.2 #3 (Red Hat Linux)) id 1iDaev-0004bA-EZ; Thu, 26 Sep 2019 20:46:41 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by bombadil.infradead.org with esmtps (Exim 4.92.2 #3 (Red Hat Linux)) id 1iDael-0004ZT-QO for linux-arm-kernel@lists.infradead.org; Thu, 26 Sep 2019 20:46:34 +0000 Received: by mail-pg1-x541.google.com with SMTP id y35so2199139pgl.1 for ; Thu, 26 Sep 2019 13:46:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=5A93QbhcJ9OxEL8d529nmFDwwgHPcXf7jnflqd7ri+Q=; b=JD7JeQsALzOQnI/4qgjCyDszf1kSiggpL1jpjmpP0ZrOIuc+rH3npuK/vS6qQ+APdk DOxSlr0vPjLBh+8bgundu2vrbnLYxdK8cJ9A6n+FIHz1xHDLi0z+VJdL82dvLTGdo8zF HduM+63/IdGaaCFE3qZPWGsNkoTiLLi6WDvI4TVwW4s2I2xZ5uUu+xDZXrPM1SCBrSno 243VhgJkvY50yMHStaZPEVf1H+Otom59J+UCdTgAuVfnoDnn2+GtT1dZFqBM3z7sWZnu I935JuXgwOAV/a1Cyl2iPYd9RP8KwljZunUy8mZqpja4Q9GsaO0IKxZjvyjVaxIis/71 qQ2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=5A93QbhcJ9OxEL8d529nmFDwwgHPcXf7jnflqd7ri+Q=; b=S6QF1v6UkIjMbKDgWrbX210+GHN4D73u+BWRaFOjlzcYs8AkDJywpOlOs29KCTtwtG 9Enjc359bXbcUATncPuHCM+NN2BR0aaJymDzKpoViPObyPTkRGxWX0h5RMXFXiYdihhE zGEYEA4/nPHES8WxCQB7DzfUrZI3Mo0rYLiYBvjwwuHSWGbPmP3UZloMW3NcYIQRgGkl kpnD2ZmTYxOiaB/4f5THxaXZ67L3Vys3iZhmrAXsqCoIK3ha1XyvQScpybMS+duYrUDm 4iNcXzpVmCvIKgijhLRar5IpyQNg9v1fVpDCpEqBhT/v6l0aEbA82UCkpxk0zeBeplcR mwEg== X-Gm-Message-State: APjAAAXJPcOZcYlt/pFol+VR5Drvt7RGCnHRUloj+me+eklm/d9e64Ry eRhDLd1l7RhWcB3+t1BkaqLZuQ== X-Google-Smtp-Source: APXvYqzG2OOdfG5XCHclCet9YXaUJwXijZtrIpDdndqleeF+PAsM0A80TkkzpTkrpdeInKpWjGPpIg== X-Received: by 2002:aa7:9a48:: with SMTP id x8mr415038pfj.201.1569530790856; Thu, 26 Sep 2019 13:46:30 -0700 (PDT) Received: from localhost (c-71-197-186-152.hsd1.wa.comcast.net. [71.197.186.152]) by smtp.gmail.com with ESMTPSA id 195sm169718pfz.103.2019.09.26.13.46.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Sep 2019 13:46:30 -0700 (PDT) From: Kevin Hilman To: Neil Armstrong , sboyd@kernel.org, jbrunet@baylibre.com, mturquette@baylibre.com Subject: Re: [PATCH RFC 0/2] clk: meson: g12a: handle clock hw changes while in suspend In-Reply-To: <20190919102518.25126-1-narmstrong@baylibre.com> References: <20190919102518.25126-1-narmstrong@baylibre.com> Date: Thu, 26 Sep 2019 13:46:29 -0700 Message-ID: <7htv8ykcpm.fsf@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190926_134631_996376_AFCF7F66 X-CRM114-Status: UNSURE ( 9.76 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, Neil Armstrong , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Neil Armstrong writes: > This serie aime to support when the suspend/resume firmware alters the > clock tree, leading to an incorrect representation of the clock tree > after a resume from suspend-to-mem. > > For the Amlogic G12A/G12B/SM1 case, the SCPI firmware handling suspend > alters the CPU clock tree in various ways. > > Since we know which part of the tree is possibly altered, we introduce here > the clk_invalidate_rate() function that will rebuild the tree from the > hardware registers in case parents and dividers have changed. > > Finally we call clk_invalidate_rate() from a new resume callback to refresh > the CPU clock tree after a resume. > > With the clock tree refreshed, CCF can now handle the new clock tree > configuration and avoid crashing the system on further DVFS set_rates. For clarification, does this series work without the other proposed fixes[1]? or is this dependent on that? Kevin [1] https://lore.kernel.org/linux-amlogic/20190919093627.21245-1-narmstrong@baylibre.com/ _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel