From patchwork Mon Jan 26 10:41:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Majewski X-Patchwork-Id: 5708351 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AE8719F2ED for ; Mon, 26 Jan 2015 10:42:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DFCE5200F2 for ; Mon, 26 Jan 2015 10:42:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EE417200FF for ; Mon, 26 Jan 2015 10:42:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754643AbbAZKmY (ORCPT ); Mon, 26 Jan 2015 05:42:24 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:43667 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754308AbbAZKmX (ORCPT ); Mon, 26 Jan 2015 05:42:23 -0500 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NIS005SS5QLL960@mailout3.samsung.com> for linux-pm@vger.kernel.org; Mon, 26 Jan 2015 19:42:21 +0900 (KST) X-AuditID: cbfee61b-f79d76d0000024d6-ee-54c61a0d61c9 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 31.02.09430.D0A16C45; Mon, 26 Jan 2015 19:42:21 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NIS00ILA5P29690@mmp1.samsung.com>; Mon, 26 Jan 2015 19:42:21 +0900 (KST) From: Lukasz Majewski To: Viresh Kumar Cc: Eduardo Valentin , Linux PM list , Lukasz Majewski , Abhilash Kesavan , Abhilash Kesavan , Chanwoo Choi , Thomas Abraham , Kevin Hilman , Kevin Hilman , a.nitecki@samsung.com, Lukasz Majewski Subject: [PATCH 3/3] doc: cpufreq: tests: Provide cpufreq tests README Date: Mon, 26 Jan 2015 11:41:24 +0100 Message-id: <1422268884-26173-3-git-send-email-l.majewski@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1422268884-26173-1-git-send-email-l.majewski@samsung.com> References: <1422268884-26173-1-git-send-email-l.majewski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLLMWRmVeSWpSXmKPExsVy+t9jAV1eqWMhBgdn61s8XrOYyeL0hG2s Fte/PGe1mH/lGqvFmr9KFk83P2ay+Hp4BaPFm0fcFm8ebma0+Nx7hNGiYxmjxcavHg48Hjtn 3WX32LSqk83jzrU9bB7rpr1l9ujbsorR4/MmuQC2KC6blNSczLLUIn27BK6Mjb18BccFK16c b2FqYLzD18XIySEhYCJxufMKC4QtJnHh3nq2LkYuDiGBRYwSe6+eZ4Vwupgk1t/+AFbFJqAn 8fnuU6YuRg4OEQEtiZc3U0FqmAV2MEs0bDoGViMs4CbxafoGdhCbRUBV4vKFyWA2L1B86db7 zBDbFCW6n01gA7E5Bdwllq2azwpiCwHVND2/zTyBkXcBI8MqRtHUguSC4qT0XCO94sTc4tK8 dL3k/NxNjOBAfCa9g3FVg8UhRgEORiUeXo3GoyFCrIllxZW5hxglOJiVRHhF+Y6FCPGmJFZW pRblxxeV5qQWH2KU5mBREudVsm8LERJITyxJzU5NLUgtgskycXBKNTDWHeJovZhzf3FMr8Jb qy49x+PmkwJUmk+5PeQsnRD38cJd5cPr9TjTKgqn2WneP+prGcIyuSHG/Vjz1qLv127sFZiZ Ev33xZLPPxRknx1Vn7BP6YzY4sxzxW1iBu++FTgsvGvvMV8w2WXG1APG2hl2C/wtHnX5aX6z 4b7c9iHJMHLlwc8JM2WVWIozEg21mIuKEwE3NlGRQAIAAA== Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This commit adds README to ./tools/testing/cpufreq directory. Signed-off-by: Lukasz Majewski --- tools/testing/cpufreq/README | 53 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 tools/testing/cpufreq/README diff --git a/tools/testing/cpufreq/README b/tools/testing/cpufreq/README new file mode 100644 index 0000000..c934016 --- /dev/null +++ b/tools/testing/cpufreq/README @@ -0,0 +1,53 @@ +This file contains list of cpufreq's available regression tests with a short +usage description. + +1. cpufreq_freq_test.sh + +Description: +------------ +This script is supposed to test if cpufreq attributes exported by sysfs are +exposing correct values. + +To achieve this goal it saves the current governor and changes it to +"performance". Afterwards, it reads the "scaling_available_frequencies" +property. With the list of supported frequencies it is able to enforce each of +them by writing to "scaling_max_freq" attribute. To make the test more reliable +a superfluous load with gzip is created to be sure that we are running with +highest possible frequency. This high load is regulated with the 'sleep' +duration. After this time the "cpufreq_cur_freq" is read and compared with the +original value. As the last step the original governor is restored. + +This script can work with or without BOOST enabled and helps in spotting errors +related to cpufreq and common clock framework. + +Used attributes: +---------------- +- "scaling_available_frequencies" +- "cpuinfo_cur_freq" +- "scaling_governor" +- "scaling_max_freq" + +Target devices: +--------------- + +All devices which exports mentioned above sysfs attributes. + +2. governors_switch.sh + +Description: +------------ +This script is supposed to test if all governors are available and possible to +set. + +Moreover, it allows to test if cpufreq is able to withstand multiple accesses to +the same sysfs attribute without crash. + +Used attributes: +---------------- +- "scaling_available_governors" +- "scaling_governor" + +Target devices: +--------------- + +All devices which exports mentioned above sysfs attributes.