From patchwork Sat Feb 17 14:22:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Rossak X-Patchwork-Id: 10226211 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2E655602CB for ; Sat, 17 Feb 2018 14:23:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2BD052834A for ; Sat, 17 Feb 2018 14:23:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1E3C428653; Sat, 17 Feb 2018 14:23:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A1B6E2834A for ; Sat, 17 Feb 2018 14:23:02 +0000 (UTC) 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=hhOrTK/nGDP1jlQ57rxBFLEf+EHXQIycb2tNzAtEQvc=; b=UQ8 GL58yTt1O66C29HnqQEqco4tbSBBJ1SuRBKF+ScAHcZJp406c/FBO/0azmpag+LnuFRBFGdJIeVyk 1mcW+WsZY+lAv9Pw6aU63UmD7lZRlP7Usv/BLd5O46n0bxVrWbObgYQ+5rnV/XMmTuFXN1Cc0Z6sd tY6xRN2yB8cAn6YLSYVqHsFlrlxdnWINVidwHk5Il/Fgxmqjai+QHiSr1Ur9gm01kqqvdK3ybI6+5 56mVrjWMqNeq9gGvWzw7jgVmlmLnzCcutgwY7UVc4KpXFB9BnWA39tKaNDjtHTcPuD4Os4gfZt+90 cj/VX0Bai/ueAO3/dCG1qsNArQYwUcQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1en3O8-0004KX-Sy; Sat, 17 Feb 2018 14:22:52 +0000 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1en3O4-0004JO-Qw for linux-arm-kernel@lists.infradead.org; Sat, 17 Feb 2018 14:22:50 +0000 Received: by mail-wr0-x244.google.com with SMTP id f14so1031086wre.8 for ; Sat, 17 Feb 2018 06:22:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=wDbn0XfylD6S87dTo9oN2WUpPBcaxYnYl2nwYyy7pN8=; b=TwJTzXoF5B98NyCRTxNKOP6Wcq628rvlFQMY+iakxagNT4CeJKAeCzWhpwO+BQ+fTs 3r0sHDx/4g9qyyOglEh9VUFjDNTQ/5LWHHCkLX1KuEHB/vRUMoKqMIIrvPzBJPZG6XKH orlUtBZ7SAgDme8rOhxjtOuwjmmHPmkdtY+DyxmkVjBLFUzPmAw6pWVfrLiTdD6sicBL j3cbP8rbObg3dhPMvuj+3TqMbmktjsSq5pQoNcd5JUWrCv7A4zxV1lYTZvBFtHZKzlFv IErBftKJ8kVqP1igGM3Y6a9OgZdytHIEdcx5Y4PZGdlh3bia5TKykYv+rCjUBRdkM2sO UHzg== 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:date:message-id; bh=wDbn0XfylD6S87dTo9oN2WUpPBcaxYnYl2nwYyy7pN8=; b=eNGSjOUHoT6ihR+ddEh7u1Ia9s9OnUaNhB1+6bGphTNUTAXB3z9xjl2H+SYgmsLEc/ zFTrLmLknqYM5a/jV7l4gBskQ/t6/e/tKW9w2IC2BilMmSumy7E9PS7NoUm/WhCJZL9u tgft/XvT/yUO7OFIkB1yGYSQTJf/DaVohHRFhWeqe+xKoOAPzYL5caa+3Ngeu4klYK/B VdTkG6ITvEmOBhxYCfCrTiK4sExW3oFm13NGSr4WN2Crq6p1fC8nGapRhMUTJ16EZ5n7 t2Pj+Uc9QXRYMJvA3MTkvvtrQ6HTa5ZLlM4ikdXKhP49I/M112h6txtiWml3zWhMHH88 jerQ== X-Gm-Message-State: APf1xPCOWkUEh0282NCAFzACWZgs28K7+4CCfPoXukH+NGI9m+YvwbSR K6HJpQSpvqOlWPGZ3RRVGSw= X-Google-Smtp-Source: AH8x226XFS681yPomnKx7lga79QC0Pks2QhlCKWP/tj0wQCq3h6Lc3wV4dLY6lI/Fz+CJ1lLgLIH2g== X-Received: by 10.223.158.10 with SMTP id u10mr30966wre.165.1518877357312; Sat, 17 Feb 2018 06:22:37 -0800 (PST) Received: from debian-laptop.fritz.box (p578F04D2.dip0.t-ipconnect.de. [87.143.4.210]) by smtp.gmail.com with ESMTPSA id v202sm7327189wmv.29.2018.02.17.06.22.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Feb 2018 06:22:36 -0800 (PST) From: Philipp Rossak To: linux@armlinux.org.uk, maxime.ripard@free-electrons.com, wens@csie.org, davem@davemloft.net, arnd@arndb.de, mchehab@kernel.org, clabbe.montjoie@gmail.com, rask@formelder.dk, krzk@kernel.org, sean@mess.org Subject: [RFC PATCH] ARM: configs: sunxi: Set ondemand govenor as default Date: Sat, 17 Feb 2018 15:22:35 +0100 Message-Id: <20180217142235.28541-1-embed3d@gmail.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180217_062248_883551_E72DA3D8 X-CRM114-Status: GOOD ( 12.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Right now the performance govenor is the default frequency govenor on sunxi devices. This causes some general problems. When the cpu is idle the cpu runs with its maximum frequency. This causes a higher cpu temperature in the idle state. When the cpu is now under load the cpu gets with that higher idle temperature now faster to its thermal limits. An other big problem of the performace govenor is the missing thermal throttling. Some tests with cpuburn resulted in a system crash when the soc reached its thermal limits since no thermal throttling occurred. With this patch we set the default frequency govenor to ondemand mode and reduce the temperature when the cpu is idle and activate the thermal throtteling. Signed-off-by: Philipp Rossak --- arch/arm/configs/sunxi_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/sunxi_defconfig b/arch/arm/configs/sunxi_defconfig index df433abfcb02..e5812851091c 100644 --- a/arch/arm/configs/sunxi_defconfig +++ b/arch/arm/configs/sunxi_defconfig @@ -14,6 +14,7 @@ CONFIG_CMA=y CONFIG_ARM_APPENDED_DTB=y CONFIG_ARM_ATAG_DTB_COMPAT=y CONFIG_CPU_FREQ=y +CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y CONFIG_CPUFREQ_DT=y CONFIG_VFP=y CONFIG_NEON=y