Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp682241pxv; Fri, 9 Jul 2021 06:47:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEdT3QEsZK355bLkmLTuNnzA573xYN9SliZvoBbGOO+/RPgaUkPHmBMul7jjAnNlPQYfZ0 X-Received: by 2002:a92:360e:: with SMTP id d14mr26448593ila.106.1625838430777; Fri, 09 Jul 2021 06:47:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625838430; cv=none; d=google.com; s=arc-20160816; b=vT9QYod5H2iWXvDcWwVyDLmrk8N4VNGdf0Acv3cddmvbP1dXGLaeJCxkjFa9lBHXnk J9iK1xAtuLUjfoHzJhgEwn+Hr5K+ziIucde3dF7+nFCRkcE9stUas3Ygp4fbIJ3qG2+L OIcCBX29xwSOyvYlZ9eq9LSm/hO14mVQVCS/Drf2lvht+NbGehSM7eVyRp5xwpn82Mz+ aGwGmJoaP4kCnxp4/CoIDdFcnpO2yI1/8aswJKDjgVOXYl8SxC+1j4uZlnjjxLLtvJ/B AD6B5R5XUHl+bvKJvKB6/dDOhEc0EPTzYZX0n//PZKGYNK4Cjom+/wtSGUOPdY84syay jQLA== 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 :organization:message-id:date:subject:cc:to:from:dkim-signature; bh=c0nabnxYO3Pj1tSNnj4zugZjojE0WvtH+XiU1QLpplE=; b=IkkORk3VpufuCiRAQvvWARdX+OIaXwIgJ+V5Hb6yeSMCvmYDnUrJMynlJnQOL8C5bt 1Nmt5vnZ455FOpSrPphL8y8dKsxYIjFdljG08t5yCm/aELviPxYR0c97kMNE2zpNnhGQ WONWPMGDOlqBFLU3upMu5quvw1nPGfTWt5T/mgPxHxoGz29Hc/W9YpnFCaOXbroV2oZm c7p2EmnylGB5CT4eAPubncWFrf0MJRsDyV9hrbc8T0+qPhYwqRA/Z9kAVrNqzdzweBfO 9Xiez1UD9hdAfwYEndpbdRGFW5ZMi9C6MbbsoX93aS3vnubR3ZJ1JT5eAI6tCR/iSgxD PH7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vt-edu.20150623.gappssmtp.com header.s=20150623 header.b=c6vP56wK; 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=vt.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z10si6638554ioq.37.2021.07.09.06.46.58; Fri, 09 Jul 2021 06:47:10 -0700 (PDT) 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; dkim=pass header.i=@vt-edu.20150623.gappssmtp.com header.s=20150623 header.b=c6vP56wK; 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=vt.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231908AbhGINsc (ORCPT + 99 others); Fri, 9 Jul 2021 09:48:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231880AbhGINsb (ORCPT ); Fri, 9 Jul 2021 09:48:31 -0400 Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 932F8C0613DD for ; Fri, 9 Jul 2021 06:45:47 -0700 (PDT) Received: by mail-qk1-x72e.google.com with SMTP id r125so1744624qkf.1 for ; Fri, 09 Jul 2021 06:45:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vt-edu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:mime-version :content-transfer-encoding; bh=c0nabnxYO3Pj1tSNnj4zugZjojE0WvtH+XiU1QLpplE=; b=c6vP56wKhvfdWxYbh0FZ6eEWIP2TwTBo/IEIShGNTEady0yXtT35b9WNF3F3i4yuHt dr8XkwhtxTKDFlAm1NUa0rfhhBnftLLbXdrB5dyn3//2AI6tu1tmm2uGXqwMEf7GVc/k Z6cIvHwShz/A0EsHWhIvYtE0EJVKoV8NznZsN079akD/jEvRj3GgZ5F6OVjOgD3ruE5o 5G+m4gCLo9dryP06TmjBwkvpxf1bI5vXjfO3nZd2Ijb6YtNMqNPW+aAfL1CQz5iULmOq Aa0KWkylTkLp4AQzz/NG5OdM+oWpaH+Q10gdi2DRzxpGsu8alQwmXUdES42Et/njhKB3 pT/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :mime-version:content-transfer-encoding; bh=c0nabnxYO3Pj1tSNnj4zugZjojE0WvtH+XiU1QLpplE=; b=fG9b33J5NYVbk5TPWu+0P92zpqRCDd5MUfeORJHy6A2yYv6unuGD/YDY6MtFeRzZKk JZmo5owIk0nONU+g04orKELVYBiDzBu792+8o32CVc5Kn6Jws5h+SyF5PH9fKcOjtTdw 4zfzfh5NaGYVkZ8REu6s9hnR5SAgeveyVXaOLAaZaCAc/YovjZbAkBelcx/Mm4bI1uHf FvKRhdpaQ7s+HyE9uqq3+qVqeKtkZxyHQyhesyQ3T/70hwxeYjLn4MdoxTuUa44H+W+K 6JZ4WeuGgZ6tE6Vr6gb3MXF4Rax71MXyX7FzNaoZRl3kwu7vqTWK1ZmbwT9kMydiZHtR Aw4A== X-Gm-Message-State: AOAM533PPREvA1tTAUFOeRjqSL4DDWDVZh4YfUqw0VIR0lpep2dYkkOm 8nfzmN9n1gYW9BVmMkc7S6yBOA== X-Received: by 2002:a05:620a:1988:: with SMTP id bm8mr36222833qkb.222.1625838346722; Fri, 09 Jul 2021 06:45:46 -0700 (PDT) Received: from iron-maiden.localnet ([50.225.136.98]) by smtp.gmail.com with ESMTPSA id k66sm2612711qke.28.2021.07.09.06.45.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jul 2021 06:45:46 -0700 (PDT) From: Carlos Bilbao To: James.Bottomley@hansenpartnership.com, deller@gmx.de Cc: linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] drivers: parisc: Update sba_iommu driver with proper printks Date: Fri, 09 Jul 2021 09:45:45 -0400 Message-ID: <4359868.LvFx2qVVIh@iron-maiden> Organization: Virginia Tech MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The code from the old SBA IOMMU manager is outdated when it comes to printks. Fix applying proper indentation and using dev_dbg() instead of printk on debugging blocks. Also add a KERN_ where it is missing. Signed-off-by: Carlos Bilbao --- drivers/parisc/sba_iommu.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/parisc/sba_iommu.c b/drivers/parisc/sba_iommu.c index dce4cdf786cd..ca5d43bb347d 100644 --- a/drivers/parisc/sba_iommu.c +++ b/drivers/parisc/sba_iommu.c @@ -16,6 +16,7 @@ ** FIXME: add DMA hint support programming in both sba and lba modules. */ +#include #include #include #include @@ -65,26 +66,26 @@ #undef DEBUG_DMB_TRAP #ifdef DEBUG_SBA_INIT -#define DBG_INIT(x...) printk(x) +#define DBG_INIT(x...) dev_dbg(x) #else #define DBG_INIT(x...) #endif #ifdef DEBUG_SBA_RUN -#define DBG_RUN(x...) printk(x) +#define DBG_RUN(x...) dev_dbg(x) #else #define DBG_RUN(x...) #endif #ifdef DEBUG_SBA_RUN_SG -#define DBG_RUN_SG(x...) printk(x) +#define DBG_RUN_SG(x...) dev_dbg(x) #else #define DBG_RUN_SG(x...) #endif #ifdef DEBUG_SBA_RESOURCE -#define DBG_RES(x...) printk(x) +#define DBG_RES(x...) dev_dbg(x) #else #define DBG_RES(x...) #endif @@ -1276,7 +1277,7 @@ sba_ioc_init_pluto(struct parisc_device *sba, struct ioc *ioc, int ioc_num) iova_space_size = ~(READ_REG(ioc->ioc_hpa + IOC_IMASK) & 0xFFFFFFFFUL) + 1; if ((ioc->ibase < 0xfed00000UL) && ((ioc->ibase + iova_space_size) > 0xfee00000UL)) { - printk("WARNING: IOV space overlaps local config and interrupt message, truncating\n"); + printk(KERN_WARNING "WARNING: IOV space overlaps local config and interrupt message, truncating\n"); iova_space_size /= 2; } @@ -1550,7 +1551,7 @@ static void sba_hw_init(struct sba_device *sba_dev) #if 0 -printk("sba_hw_init(): mem_boot 0x%x 0x%x 0x%x 0x%x\n", PAGE0->mem_boot.hpa, + dev_dbg("sba_hw_init(): mem_boot 0x%x 0x%x 0x%x 0x%x\n", PAGE0->mem_boot.hpa, PAGE0->mem_boot.spa, PAGE0->mem_boot.pad, PAGE0->mem_boot.cl_class); /* -- 2.25.1