From patchwork Sun May 29 05:24:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oded Gabbay X-Patchwork-Id: 9139661 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 721F560759 for ; Sun, 29 May 2016 05:24:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 581BB25D97 for ; Sun, 29 May 2016 05:24:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4B16927CF9; Sun, 29 May 2016 05:24:27 +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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F33F25D97 for ; Sun, 29 May 2016 05:24:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C2F576E05B; Sun, 29 May 2016 05:24:21 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id DC96F6E05B for ; Sun, 29 May 2016 05:24:19 +0000 (UTC) Received: by mail-wm0-x243.google.com with SMTP id n129so12122642wmn.1 for ; Sat, 28 May 2016 22:24:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=cqI8HtoFtjTSUq6zBFIcRWfMcXw/6TIigGUXMdU7HPI=; b=dIz25UE5j/TFtOyCZcITM/iwC+qUjnt5vklpcFQdjzcz8wuEgqT3ja+3WsDFHKaNB2 GPF2JuCaPsYPoagw5jgGerewcFsVfQJtImZslZUgMm/8oWIGQbPj5QKmjWzFxRBxcT69 KrlycV7FY4YlmqPqDIia9Ds3aCKl7cowmPk96tQ+jH2apNH4F5TyuT9EaPd6EexnmO4U UIDUAh8+IAc8Ji6b2gfGg4rwEE1+WDUSVzvJwK6h2MKhbH9usGiiAq9jbotm/GiaWAye mox+Wtq28hzJSLAPvmYtqQXBONhAwCAUKj+hphs8XztRpQKn90Ui5kLtUxdRDi4oM8Dh mSIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=cqI8HtoFtjTSUq6zBFIcRWfMcXw/6TIigGUXMdU7HPI=; b=chAnpfqT1UWWSSPTGRNh6pfroq167ZiqJA0tkjB85hCtLuOkTz2dOBhC+bx7bsZgMP Jnkz0o3/wENz8zXn9axoUVJkjwl42flGhQVnmDjXeBOih7kOJ6YqBEYqB2pBCT/q/11v 2UP5AVSL1O6MkoMQ1RN4vdFN9uo4LERc51wIRQNnJ5z/0VJFpDBFycDKqv2iUkYwBBJx AysMU1YCGXqJJhrkjBByORdBimBvk+ZU/kOv15MlSmEhDs2RQ9SKM0vB/XWo1/xsadI1 MVv6WSsAPLoZ4CVTqyAh8VSJdZQeJg7RtCWrLotokGS5+gfxy3WLuesq9DCW3Sm5P1OC 1huA== X-Gm-Message-State: ALyK8tL9NDuhddE3tABx7DtXmng17z5/TtYBgb98X2gGlIugNSPKhx9/3rZYITwH1a5cKg== X-Received: by 10.194.153.65 with SMTP id ve1mr21215644wjb.106.1464499458147; Sat, 28 May 2016 22:24:18 -0700 (PDT) Received: from odedg-home.localdomain ([2.55.141.226]) by smtp.gmail.com with ESMTPSA id bu7sm27478806wjc.3.2016.05.28.22.24.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 May 2016 22:24:17 -0700 (PDT) From: Oded Gabbay To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/amdkfd: print once about mem_banks truncation Date: Sun, 29 May 2016 08:24:15 +0300 Message-Id: <1464499455-5496-1-git-send-email-oded.gabbay@gmail.com> X-Mailer: git-send-email 2.5.5 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This print can really spam the kernel log in case we are truncating mem_banks, so just print this info once. It should also not be classified as warning. Signed-off-by: Oded Gabbay --- drivers/gpu/drm/amd/amdkfd/kfd_topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c index 74909e7..884c96f 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_topology.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_topology.c @@ -666,7 +666,7 @@ static ssize_t node_show(struct kobject *kobj, struct attribute *attr, dev->node_props.simd_count); if (dev->mem_bank_count < dev->node_props.mem_banks_count) { - pr_warn("kfd: mem_banks_count truncated from %d to %d\n", + pr_info_once("kfd: mem_banks_count truncated from %d to %d\n", dev->node_props.mem_banks_count, dev->mem_bank_count); sysfs_show_32bit_prop(buffer, "mem_banks_count",