From patchwork Tue Jan 21 23:14:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jeff.mcgee@intel.com X-Patchwork-Id: 3521031 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 39FEDC02DC for ; Tue, 21 Jan 2014 23:08:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 59E8D20122 for ; Tue, 21 Jan 2014 23:08:29 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 6DE7420117 for ; Tue, 21 Jan 2014 23:08:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9B538FB1C3; Tue, 21 Jan 2014 15:08:27 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTP id 53E07FAD23 for ; Tue, 21 Jan 2014 15:07:52 -0800 (PST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP; 21 Jan 2014 15:07:51 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.95,697,1384329600"; d="scan'208";a="462523461" Received: from jeffdesk.fso.intel.com ([10.5.53.1]) by fmsmga001.fm.intel.com with ESMTP; 21 Jan 2014 15:07:51 -0800 From: jeff.mcgee@intel.com To: intel-gfx@lists.freedesktop.org Date: Tue, 21 Jan 2014 17:14:33 -0600 Message-Id: <1390346074-15774-4-git-send-email-jeff.mcgee@intel.com> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1390346074-15774-1-git-send-email-jeff.mcgee@intel.com> References: <1390346074-15774-1-git-send-email-jeff.mcgee@intel.com> Subject: [Intel-gfx] [PATCH 3/4] pm_rps: Make frequency logging more compact X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 From: Jeff McGee Signed-off-by: Jeff McGee --- tests/pm_rps.c | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/tests/pm_rps.c b/tests/pm_rps.c index 37f7020..7ae0438 100644 --- a/tests/pm_rps.c +++ b/tests/pm_rps.c @@ -128,8 +128,9 @@ static void dumpit(const int *freqs) { int i; + printf("gt freq (MHz):"); for (i = 0; i < NUMFREQ; i++) - printf("gt frequency %s (MHz): %d\n", stuff[i].name, freqs[i]); + printf(" %s=%d", stuff[i].name, freqs[i]); printf("\n"); } @@ -140,67 +141,67 @@ static void min_max_config(void (*check)(void)) { int fmid = (origfreqs[RPn] + origfreqs[RP0]) / 2; - log("Check original min and max...\n"); + log("\nCheck original min and max...\n"); check(); - log("Set min=RPn and max=RP0...\n"); + log("\nSet min=RPn and max=RP0...\n"); writeval(stuff[MIN].filp, origfreqs[RPn]); writeval(stuff[MAX].filp, origfreqs[RP0]); check(); - log("Increase min to midpoint...\n"); + log("\nIncrease min to midpoint...\n"); writeval(stuff[MIN].filp, fmid); check(); - log("Increase min to RP0...\n"); + log("\nIncrease min to RP0...\n"); writeval(stuff[MIN].filp, origfreqs[RP0]); check(); - log("Increase min above RP0 (invalid)...\n"); + log("\nIncrease min above RP0 (invalid)...\n"); writeval_inval(stuff[MIN].filp, origfreqs[RP0] + 1000); check(); - log("Decrease max to RPn (invalid)...\n"); + log("\nDecrease max to RPn (invalid)...\n"); writeval_inval(stuff[MAX].filp, origfreqs[RPn]); check(); - log("Decrease min to midpoint...\n"); + log("\nDecrease min to midpoint...\n"); writeval(stuff[MIN].filp, fmid); check(); - log("Decrease min to RPn...\n"); + log("\nDecrease min to RPn...\n"); writeval(stuff[MIN].filp, origfreqs[RPn]); check(); - log("Decrease min below RPn (invalid)...\n"); + log("\nDecrease min below RPn (invalid)...\n"); writeval_inval(stuff[MIN].filp, 0); check(); - log("Decrease max to midpoint...\n"); + log("\nDecrease max to midpoint...\n"); writeval(stuff[MAX].filp, fmid); check(); - log("Decrease max to RPn...\n"); + log("\nDecrease max to RPn...\n"); writeval(stuff[MAX].filp, origfreqs[RPn]); check(); - log("Decrease max below RPn (invalid)...\n"); + log("\nDecrease max below RPn (invalid)...\n"); writeval_inval(stuff[MAX].filp, 0); check(); - log("Increase min to RP0 (invalid)...\n"); + log("\nIncrease min to RP0 (invalid)...\n"); writeval_inval(stuff[MIN].filp, origfreqs[RP0]); check(); - log("Increase max to midpoint...\n"); + log("\nIncrease max to midpoint...\n"); writeval(stuff[MAX].filp, fmid); check(); - log("Increase max to RP0...\n"); + log("\nIncrease max to RP0...\n"); writeval(stuff[MAX].filp, origfreqs[RP0]); check(); - log("Increase max above RP0 (invalid)...\n"); + log("\nIncrease max above RP0 (invalid)...\n"); writeval_inval(stuff[MAX].filp, origfreqs[RP0] + 1000); check(); }