Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp184005pxb; Wed, 11 Nov 2020 00:34:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxirOwcumgT+fZDhepJxd0kSNljv0DhmRRQmjgc+l/Y33uqw+bECGa+TXODZtRv+YInv6tM X-Received: by 2002:a05:6402:3131:: with SMTP id dd17mr25415116edb.58.1605083695806; Wed, 11 Nov 2020 00:34:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605083695; cv=none; d=google.com; s=arc-20160816; b=aDqc1DqsJ//gSbVWSrLihM8w0hVLOA32TrG6n4bFUf5uXJZVh4S8gmlsAth/cUTTlh FoigUoWOVdZIt/3nQE7aecj+GBOgou4cBmUrz1575QHSFBa8vmX3q2ggCiIHt0cx6Lv4 B94KNt0HHN3Kl/K+y/OG/MTTG+AW9rk3HgBWCH/CzECjFDpIYb9Ucy7eIRdhy6tCEBYS hYLGPh7AeINXoODYmIAQN53pnabtPZnQf64L4L3qX+6uzrkKxPCGqF2drgXjXu0h7WBc 5r1ksYpVT9CPX9ZNlqhApV5UockQYZbLgltl6d+khvT/6ZPj26LgvJmCn+70sR3akH5H BrpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=Y2W5hGbXqo75afInWnhCDBpQ0YaFIfsKiWgbeJPUwww=; b=Gg9mHB4lB2IBUluv0Xl8f0SpGmigLD+J8usQCKmuFiRXEqDLx4iS/09Fm02YAMm00P viJYTZcBKX1exhOTI/aR3n4MHl/QDktU0H+ax/zL2KoIrUMXVprq2IrVnNkvTs+cNv+y 1bvwnQa7nM+EALspCpICnLiLYHLYBGDAUcjrMroA6He7Dr6KKM1yqRQqeVyz5PtVT3Az W2/uhghv5pcR8WFBUVKwHE+RBmHIF53yErb0mId03uZ4SK6SrojDSUuLQQdQWzHw6GCR eqdjqyidrlXuaoUnlf6NPQJnCFoc/Y9zgGslB2xArjgQzg5irNhLFWOeg0PPwqqO8Ctk 6gpw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k12si796785ejr.406.2020.11.11.00.34.31; Wed, 11 Nov 2020 00:34:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726293AbgKKIc4 (ORCPT + 99 others); Wed, 11 Nov 2020 03:32:56 -0500 Received: from m176115.mail.qiye.163.com ([59.111.176.115]:55774 "EHLO m176115.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726287AbgKKIc4 (ORCPT ); Wed, 11 Nov 2020 03:32:56 -0500 Received: from ubuntu.localdomain (unknown [157.0.31.124]) by m176115.mail.qiye.163.com (Hmail) with ESMTPA id EA409666B88; Wed, 11 Nov 2020 16:32:50 +0800 (CST) From: Bernard Zhao To: Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Jordan Crouse , Bernard Zhao , Bjorn Andersson , Brian Masney , Shawn Guo , Eric Anholt , Thomas Zimmermann , Sam Ravnborg , "Gustavo A. R. Silva" , Emil Velikov , Jonathan Marek , Dave Airlie , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/5] adreno/adreno_gpu.c: add KERN_LEVEL to printk Date: Wed, 11 Nov 2020 00:31:22 -0800 Message-Id: <20201111083131.39817-6-bernard@vivo.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20201111083131.39817-1-bernard@vivo.com> References: <20201111083131.39817-1-bernard@vivo.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZSEpIHk8YSR9MGBhPVkpNS05LQ0hOTEpIS0xVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS0hKQ1VLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6NDY6Hgw*CT8fERcISw84DwtI OUwKFD1VSlVKTUtOS0NITkxKTE5CVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlKTkxV S1VISlVKSU9ZV1kIAVlBT0pOQzcG X-HM-Tid: 0a75b66fa42d9373kuwsea409666b88 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add KERN_LEVEL to printk. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/msm/adreno/adreno_gpu.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/msm/adreno/adreno_gpu.c b/drivers/gpu/drm/msm/adreno/adreno_gpu.c index 458b5b26d3c2..be752db5abed 100644 --- a/drivers/gpu/drm/msm/adreno/adreno_gpu.c +++ b/drivers/gpu/drm/msm/adreno/adreno_gpu.c @@ -725,7 +725,7 @@ void adreno_dump_info(struct msm_gpu *gpu) struct adreno_gpu *adreno_gpu = to_adreno_gpu(gpu); int i; - printk("revision: %d (%d.%d.%d.%d)\n", + printk(KERN_DEBUG "revision: %d (%d.%d.%d.%d)\n", adreno_gpu->info->revn, adreno_gpu->rev.core, adreno_gpu->rev.major, adreno_gpu->rev.minor, adreno_gpu->rev.patchid); @@ -733,12 +733,12 @@ void adreno_dump_info(struct msm_gpu *gpu) for (i = 0; i < gpu->nr_rings; i++) { struct msm_ringbuffer *ring = gpu->rb[i]; - printk("rb %d: fence: %d/%d\n", i, + printk(KERN_DEBUG "rb %d: fence: %d/%d\n", i, ring->memptrs->fence, ring->seqno); - printk("rptr: %d\n", get_rptr(adreno_gpu, ring)); - printk("rb wptr: %d\n", get_wptr(ring)); + printk(KERN_DEBUG "rptr: %d\n", get_rptr(adreno_gpu, ring)); + printk(KERN_DEBUG "rb wptr: %d\n", get_wptr(ring)); } } @@ -752,7 +752,7 @@ void adreno_dump(struct msm_gpu *gpu) return; /* dump these out in a form that can be parsed by demsm: */ - printk("IO:region %s 00000000 00020000\n", gpu->name); + printk(KERN_DEBUG "IO:region %s 00000000 00020000\n", gpu->name); for (i = 0; adreno_gpu->registers[i] != ~0; i += 2) { uint32_t start = adreno_gpu->registers[i]; uint32_t end = adreno_gpu->registers[i+1]; @@ -760,7 +760,7 @@ void adreno_dump(struct msm_gpu *gpu) for (addr = start; addr <= end; addr++) { uint32_t val = gpu_read(gpu, addr); - printk("IO:R %08x %08x\n", addr<<2, val); + printk(KERN_DEBUG "IO:R %7x %08x\n", addr<<2, val); } } } -- 2.29.0