Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp183695pxb; Wed, 11 Nov 2020 00:34:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwOFBpG3tj0HlUihDdWmFFf3vAB5df5avyLAGJ111UMBTT30g8+P1/RWPtqSik5pjMGCEKo X-Received: by 2002:aa7:de95:: with SMTP id j21mr3920107edv.199.1605083662213; Wed, 11 Nov 2020 00:34:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605083662; cv=none; d=google.com; s=arc-20160816; b=dqTMlposh3xbJfK/cNKxuNTYlAsUoH+UVSVv6Ca5dgdSfmwg73eOVUmx1XezL7FZLk fSdNuGAOMhk+rWaGF9uHrRKxvpO+9c7nyu5qzyqDaDut2QkS+0hKndmTo1HSeGy5tMvq 30ZbpMstX4CBXmj5h/sgGOC8mda+g9Vw5dZqRdvmcEbWxyR8NUWoRhrcV42zGfQ1n/zi B0fHiMdpbYe6XQFGZ/5/CaOsC6WNjtO8ibEm5tbXsmOVoq9MbCdPrM6MtmXX2EZSNzOH 8+4PwPdSO8Yb/0XiAsN+4E9R/6Q2tyRFbHyzxvx3QZIRdkoHxfxoKeXp1f4lpx5d85BZ 3gUQ== 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=PDQVFyv4ViIqXu2qEnuZIJLMVbbeQnJ38uls5LGNE2w=; b=Mw5LrKnQnNDA713HEkoYbA04mgUP9mx4Mj7ZybVZFLoOZND8IXO5WMu6VNw+NKYotd WxuD5FhB3xj9hhJk3abaVjBC26uh4Q26AlYmQmLp/t4lWa0KPsTjpjsvoEfOvqa1iiL/ fi4fo2TeY1bHq/s1lyTsSzEmJ0OFrnWuiTezwp4m8poIkL2HWmo4iyw0clQWENGZA/yn pdQUzt3nWPV9pj7t5ebrBDjEiR3v0jQjnrptMeslKIg6vbAhlLHWL9zSU101c11egtkG Cl7NLAefFh8e7VQDmW6HvWnlUhE99eZL91ZUzllDar1nhWRANoPEcctZB8rX5c5lwEsq Khjg== 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 qc1si853707ejb.315.2020.11.11.00.33.59; Wed, 11 Nov 2020 00:34:22 -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 S1726199AbgKKIca (ORCPT + 99 others); Wed, 11 Nov 2020 03:32:30 -0500 Received: from m176115.mail.qiye.163.com ([59.111.176.115]:52408 "EHLO m176115.mail.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725468AbgKKIca (ORCPT ); Wed, 11 Nov 2020 03:32:30 -0500 Received: from ubuntu.localdomain (unknown [157.0.31.124]) by m176115.mail.qiye.163.com (Hmail) with ESMTPA id E00F76672D5; Wed, 11 Nov 2020 16:32:26 +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 3/5] adreno/a4xx_gpu.c: add KERN_LEVEL to printk Date: Wed, 11 Nov 2020 00:31:20 -0800 Message-Id: <20201111083131.39817-4-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 oVCBIfWUFZTRlPTB8ZHh1IT0seVkpNS05LQ0hOT0xITkJVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS0hKQ1VLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Mgg6EBw4TT8vThcXSwg9CANJ Sk0KC0lVSlVKTUtOS0NITk9MQ0hDVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlKTkxV S1VISlVKSU9ZV1kIAVlBSE9DQzcG X-HM-Tid: 0a75b66f46949373kuwse00f76672d5 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/a4xx_gpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/msm/adreno/a4xx_gpu.c b/drivers/gpu/drm/msm/adreno/a4xx_gpu.c index 2b93b33b05e4..2206b3b4b191 100644 --- a/drivers/gpu/drm/msm/adreno/a4xx_gpu.c +++ b/drivers/gpu/drm/msm/adreno/a4xx_gpu.c @@ -355,7 +355,7 @@ static void a4xx_recover(struct msm_gpu *gpu) adreno_dump_info(gpu); for (i = 0; i < 8; i++) { - printk("CP_SCRATCH_REG%d: %u\n", i, + printk(KERN_DEBUG "CP_SCRATCH_REG%d: %u\n", i, gpu_read(gpu, REG_AXXX_CP_SCRATCH_REG0 + i)); } @@ -409,7 +409,7 @@ static irqreturn_t a4xx_irq(struct msm_gpu *gpu) if (status & A4XX_INT0_CP_REG_PROTECT_FAULT) { uint32_t reg = gpu_read(gpu, REG_A4XX_CP_PROTECT_STATUS); - printk("CP | Protected mode error| %s | addr=%x\n", + printk(KERN_DEBUG "CP | Protected mode error| %s | addr=%x\n", reg & (1 << 24) ? "WRITE" : "READ", (reg & 0xFFFFF) >> 2); } @@ -565,7 +565,7 @@ static struct msm_gpu_state *a4xx_gpu_state_get(struct msm_gpu *gpu) static void a4xx_dump(struct msm_gpu *gpu) { - printk("status: %08x\n", + printk(KERN_DEBUG "status: %08x\n", gpu_read(gpu, REG_A4XX_RBBM_STATUS)); adreno_dump(gpu); } -- 2.29.0