From patchwork Mon Jan 20 11:19:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sanjay Singh Rawat X-Patchwork-Id: 23372 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 36E51203C6 for ; Mon, 20 Jan 2014 11:19:48 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id hq11sf11501470vcb.8 for ; Mon, 20 Jan 2014 03:19:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=cbZQehFMFltt1LIBUbPueHrZXv/HFjTOPjV0zoLJkoc=; b=aQhxm2dchBThkMgElBADU/Rk44m2RSOltcslSle/qE5tbFSaluznOOGXCe9aakdr3l 89gWsQdLhmwjYlWx0/+ZNiL6t1hVAbBpFzlqqsydPwfQf/OJUr1Bd9KzIWoLWZl+pK8t ysgS/DSKzNTciXhRpvBNXJsjvAbSzVkDrHIX/USJuO7xPmK1ikWTpVdraSD9H5EzkAFC 4c3NMFWsSL6fItqeSNv/Zl9NEDbRpoV5s/FoF/qdWm+frD/zV5lCOhhqE4vfoYH0adga KuvtpB7dMOWFwdU0wJEVva66GMYadH6odx4eDMAYPelYeerCVYdXImLSbkM0BWRPrteZ lWFA== X-Gm-Message-State: ALoCoQmVllm4T7fmKiC4MCtN1HL6/CeFYayTtRBrWPUUm7hEF1gPnlzcIgx8Kd/P8/8C0tJ39jnr X-Received: by 10.58.253.229 with SMTP id ad5mr5975539ved.30.1390216787367; Mon, 20 Jan 2014 03:19:47 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.42.138 with SMTP id c10ls981803qga.62.gmail; Mon, 20 Jan 2014 03:19:47 -0800 (PST) X-Received: by 10.52.157.68 with SMTP id wk4mr8447611vdb.19.1390216787256; Mon, 20 Jan 2014 03:19:47 -0800 (PST) Received: from mail-vb0-f46.google.com (mail-vb0-f46.google.com [209.85.212.46]) by mx.google.com with ESMTPS id vq3si223977veb.103.2014.01.20.03.19.47 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 Jan 2014 03:19:47 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.46 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.46; Received: by mail-vb0-f46.google.com with SMTP id o19so2673155vbm.19 for ; Mon, 20 Jan 2014 03:19:47 -0800 (PST) X-Received: by 10.220.99.7 with SMTP id s7mr2749428vcn.19.1390216787175; Mon, 20 Jan 2014 03:19:47 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp52577vcz; Mon, 20 Jan 2014 03:19:46 -0800 (PST) X-Received: by 10.66.137.109 with SMTP id qh13mr2531191pab.140.1390216786077; Mon, 20 Jan 2014 03:19:46 -0800 (PST) Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by mx.google.com with ESMTPS id y1si1074060pbm.154.2014.01.20.03.19.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 Jan 2014 03:19:46 -0800 (PST) Received-SPF: neutral (google.com: 209.85.192.171 is neither permitted nor denied by best guess record for domain of sanjay.rawat@linaro.org) client-ip=209.85.192.171; Received: by mail-pd0-f171.google.com with SMTP id g10so6011736pdj.2 for ; Mon, 20 Jan 2014 03:19:44 -0800 (PST) X-Received: by 10.68.196.195 with SMTP id io3mr18369416pbc.6.1390216784614; Mon, 20 Jan 2014 03:19:44 -0800 (PST) Received: from localhost.localdomain ([106.216.132.40]) by mx.google.com with ESMTPSA id om6sm2217067pbc.43.2014.01.20.03.19.41 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 Jan 2014 03:19:43 -0800 (PST) From: Sanjay Singh Rawat To: private-pmwg@linaro.org Cc: Sanjay Singh Rawat Subject: [PATCH] cpufreq: skip cpufreq tests for panda board Date: Mon, 20 Jan 2014 16:49:24 +0530 Message-Id: <1390216764-22327-1-git-send-email-sanjay.rawat@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sanjay.rawat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.46 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , cpufreq is broken on panda, skip the tests for now Signed-off-by: Sanjay Singh Rawat --- cpufreq/cpufreq_01.sh | 6 ++++++ cpufreq/cpufreq_02.sh | 6 ++++++ cpufreq/cpufreq_03.sh | 6 ++++++ cpufreq/cpufreq_04.sh | 6 ++++++ cpufreq/cpufreq_05.sh | 6 ++++++ cpufreq/cpufreq_06.sh | 6 ++++++ cpufreq/cpufreq_07.sh | 6 ++++++ cpufreq/cpufreq_08.sh | 6 ++++++ cpufreq/cpufreq_09.sh | 6 ++++++ include/functions.sh | 4 ++++ 10 files changed, 58 insertions(+) diff --git a/cpufreq/cpufreq_01.sh b/cpufreq/cpufreq_01.sh index 6f092fe..4aeee58 100755 --- a/cpufreq/cpufreq_01.sh +++ b/cpufreq/cpufreq_01.sh @@ -27,6 +27,12 @@ source ../include/functions.sh +is_board_panda +if [ $? -eq 0 ]; then + log_skip "cpufreq not supported" + exit 0 +fi + FILES="scaling_available_frequencies scaling_cur_freq scaling_setspeed" for_each_cpu check_cpufreq_files $FILES diff --git a/cpufreq/cpufreq_02.sh b/cpufreq/cpufreq_02.sh index 34e19b7..d146c03 100755 --- a/cpufreq/cpufreq_02.sh +++ b/cpufreq/cpufreq_02.sh @@ -29,5 +29,11 @@ source ../include/functions.sh FILES="scaling_available_governors scaling_governor" +is_board_panda +if [ $? -eq 0 ]; then + log_skip "cpufreq not supported" + exit 0 +fi + for_each_cpu check_cpufreq_files $FILES test_status_show diff --git a/cpufreq/cpufreq_03.sh b/cpufreq/cpufreq_03.sh index 0c59ce8..51efe28 100755 --- a/cpufreq/cpufreq_03.sh +++ b/cpufreq/cpufreq_03.sh @@ -27,6 +27,12 @@ source ../include/functions.sh +is_board_panda +if [ $? -eq 0 ]; then + log_skip "cpufreq not supported" + exit 0 +fi + check_governor() { local cpu=$1 diff --git a/cpufreq/cpufreq_04.sh b/cpufreq/cpufreq_04.sh index 530366a..7080acd 100755 --- a/cpufreq/cpufreq_04.sh +++ b/cpufreq/cpufreq_04.sh @@ -27,6 +27,12 @@ source ../include/functions.sh +is_board_panda +if [ $? -eq 0 ]; then + log_skip "cpufreq not supported" + exit 0 +fi + check_frequency() { local cpu=$1 diff --git a/cpufreq/cpufreq_05.sh b/cpufreq/cpufreq_05.sh index 7830118..e28533e 100755 --- a/cpufreq/cpufreq_05.sh +++ b/cpufreq/cpufreq_05.sh @@ -27,6 +27,12 @@ source ../include/functions.sh +is_board_panda +if [ $? -eq 0 ]; then + log_skip "cpufreq not supported" + exit 0 +fi + if [ $(id -u) -ne 0 ]; then log_skip "run as non-root" exit 0 diff --git a/cpufreq/cpufreq_06.sh b/cpufreq/cpufreq_06.sh index 25c473e..3700ac8 100755 --- a/cpufreq/cpufreq_06.sh +++ b/cpufreq/cpufreq_06.sh @@ -29,6 +29,12 @@ source ../include/functions.sh CPUCYCLE=../utils/cpucycle +is_board_panda +if [ $? -eq 0 ]; then + log_skip "cpufreq not supported" + exit 0 +fi + compute_freq_ratio() { local cpu=$1 diff --git a/cpufreq/cpufreq_07.sh b/cpufreq/cpufreq_07.sh index abfad7f..9268824 100755 --- a/cpufreq/cpufreq_07.sh +++ b/cpufreq/cpufreq_07.sh @@ -29,6 +29,12 @@ source ../include/functions.sh CPUBURN=../utils/cpuburn +is_board_panda +if [ $? -eq 0 ]; then + log_skip "cpufreq not supported" + exit 0 +fi + check_ondemand() { local cpu=$1 diff --git a/cpufreq/cpufreq_08.sh b/cpufreq/cpufreq_08.sh index 79008f0..54b36f6 100755 --- a/cpufreq/cpufreq_08.sh +++ b/cpufreq/cpufreq_08.sh @@ -29,6 +29,12 @@ source ../include/functions.sh CPUBURN=../utils/cpuburn +is_board_panda +if [ $? -eq 0 ]; then + log_skip "cpufreq not supported" + exit 0 +fi + check_frequency() { local cpu=$1 local freq=$2 diff --git a/cpufreq/cpufreq_09.sh b/cpufreq/cpufreq_09.sh index a0c1171..40f422b 100755 --- a/cpufreq/cpufreq_09.sh +++ b/cpufreq/cpufreq_09.sh @@ -29,6 +29,12 @@ source ../include/functions.sh CPUBURN=../utils/cpuburn +is_board_panda +if [ $? -eq 0 ]; then + log_skip "cpufreq not supported" + exit 0 +fi + check_powersave() { local cpu=$1 diff --git a/include/functions.sh b/include/functions.sh index 7009fa3..0a6ddb3 100644 --- a/include/functions.sh +++ b/include/functions.sh @@ -344,3 +344,7 @@ restore_frequencies() { sigtrap() { exit 255 } + +is_board_panda() { + egrep -i 'hardware' /proc/cpuinfo | egrep -i 'panda' > /dev/null +}