From patchwork Wed Dec 4 17:55:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 180834 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp942574ile; Wed, 4 Dec 2019 10:11:00 -0800 (PST) X-Google-Smtp-Source: APXvYqycP1sHS1bCCYEUg91vnVbaG0QldZNFJYK7FLkFnzd7deu58IdPxtyTThLPBmzEF6ryNsUB X-Received: by 2002:a05:6830:1e81:: with SMTP id n1mr3471605otr.53.1575483056910; Wed, 04 Dec 2019 10:10:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575483056; cv=none; d=google.com; s=arc-20160816; b=e7aGqZwRDvQXmlWUCbUJ1LXyl3ULT62G8eJXV5hjQJfscEGEryi9KTJthbM7hGoasv IDkaT3cCxs1TQT+2tLdEiZdcI5LTAthTAqRsS1LQJ1PSMP4a4prGDmzrkKqJLrC5YlqC 9q4xRhphsYra1GSvgN2co2zSPKlRTlZqFvXAJlgwBpTId4qrtcJw+QmA30K3NCxNvAxt I33o2QBUP5eCkqG21DpdMjkqSfVOlPPjo6XPdgb+oqB44qlgXc5YlGT7iS+72/en6S3A DHYUMI1g7X8KKVPkCI2E2STpWQBoJ/NOliGpZWUR8Gkld9ROkEbe4MddLjQE6qhJKj9J M6JA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9aia7+Z/YS1mY7iCpGJde4gg0MntPnfmVy3R/BOFR7c=; b=vWblJgwlZFjw1uw3p4JCS8/6mTT5jLUctfX4YIGBYblLNJS6q5tDCYU2QcUN8ZyB75 snUNCNfcVmdhVZt8auqRHc9eE1FSCZNTVJeTeMVjK7EE5cSXpWzSy8brgeAZqALfQMFs uv9XBf8HpZyAMEBI0L/+bwxSx8//ffewxUm2w9wZBcu7qGL8qGHKF3ZDIvxEOYPH4Hyg 7L3OKHueBv6V7h6Nx4jsh9p7bz+kQsmYXgEly+wrIjEc3kRLYCx31Bku1/n1kGRYHDkx xj7pUY4ZrzvlCKBdhUPTKhtRevSdB4fNmjZT7T7zUEOB0EDomwGbg8shHgb4Up0MzbCs phQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SeqAPmI+; 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 p12si3525953otk.86.2019.12.04.10.10.55; Wed, 04 Dec 2019 10:10:56 -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=@kernel.org header.s=default header.b=SeqAPmI+; 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 S1730993AbfLDSKx (ORCPT + 27 others); Wed, 4 Dec 2019 13:10:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:38522 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731325AbfLDSKs (ORCPT ); Wed, 4 Dec 2019 13:10:48 -0500 Received: from localhost (unknown [217.68.49.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 54C9120833; Wed, 4 Dec 2019 18:10:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575483047; bh=GNrThHvp51OQUW6thM0FBK86TAxOtmVirBWYAuPFsDE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SeqAPmI+A8yJmeFpIU4VjpsLHdg2W86VahPFY1bn+ZcPIKLg8B4BDhUkShCUSmkGz YCwfzVn3SkAKdnODVyFuLzEF8cLlZb7fKoSGTPBqU5TwtSK5bTFBmizS3i75c5JbqU uZrwPADCkh3cppkdHXFJ2eawNgrJL1tloxUMAC9g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Reported-by: Marian Mihailescu" , Marek Szyprowski , Sylwester Nawrocki , Sasha Levin Subject: [PATCH 4.9 003/125] clk: samsung: exynos5420: Preserve PLL configuration during suspend/resume Date: Wed, 4 Dec 2019 18:55:08 +0100 Message-Id: <20191204175310.136962421@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191204175308.377746305@linuxfoundation.org> References: <20191204175308.377746305@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marek Szyprowski [ Upstream commit e9323b664ce29547d996195e8a6129a351c39108 ] Properly save and restore all top PLL related configuration registers during suspend/resume cycle. So far driver only handled EPLL and RPLL clocks, all other were reset to default values after suspend/resume cycle. This caused for example lower G3D (MALI Panfrost) performance after system resume, even if performance governor has been selected. Reported-by: Reported-by: Marian Mihailescu Fixes: 773424326b51 ("clk: samsung: exynos5420: add more registers to restore list") Signed-off-by: Marek Szyprowski Signed-off-by: Sylwester Nawrocki Signed-off-by: Sasha Levin --- drivers/clk/samsung/clk-exynos5420.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.20.1 diff --git a/drivers/clk/samsung/clk-exynos5420.c b/drivers/clk/samsung/clk-exynos5420.c index 13c09a740840b..2bb88d1251136 100644 --- a/drivers/clk/samsung/clk-exynos5420.c +++ b/drivers/clk/samsung/clk-exynos5420.c @@ -170,12 +170,18 @@ static const unsigned long exynos5x_clk_regs[] __initconst = { GATE_BUS_CPU, GATE_SCLK_CPU, CLKOUT_CMU_CPU, + CPLL_CON0, + DPLL_CON0, EPLL_CON0, EPLL_CON1, EPLL_CON2, RPLL_CON0, RPLL_CON1, RPLL_CON2, + IPLL_CON0, + SPLL_CON0, + VPLL_CON0, + MPLL_CON0, SRC_TOP0, SRC_TOP1, SRC_TOP2,