Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp230286yba; Fri, 5 Apr 2019 05:41:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRDVLrMPy7x2tlTK82bsGKb4HZtsTxc20qARzXrb5dMxfap17ICbHSGnZ1T/U/036+HF7Q X-Received: by 2002:a65:6149:: with SMTP id o9mr2782882pgv.254.1554468082114; Fri, 05 Apr 2019 05:41:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554468082; cv=none; d=google.com; s=arc-20160816; b=TVgkhzAOQA6EoSFSLSmB6uJvKnXzfsTO0LE5Uy4bZpK2uSuyb3BoZWIx7YDF3uCsWd 1WsAF2quPipRvpa8dJrpPrA6GSKEpGaPR0DrM3MW1t98yA3iJUZhDSShKeV7L8orbzB3 K4oPe2vdbyU8YEJI4Z5RqC3MutAJza2X70XNjRp2s6beeauypA+ghE6t3hbrmuQJKCT0 IbTVa4Uh+sMaW9LZL2OPJbu8cbeAuIuEOIkvO/h8X24rMskb94VRAywiMj61W7bY6eIx THUN8PB0TTvg30Lt6bI85+38O2Ya/Zy6A9x+AJSRtZNlN1x/+LS1Q0Wq15M0UBCOVpIZ DDMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=rS1R2m02zTRSGLbG0aAyxddVqYNUFial6bQLa+gNreg=; b=H8WpJNYRXqClIg8B35yNVQovV6rlcguVkYQsGNEibNBlo8qcVBIFnHVlYUO04AO7Ho Fm0x5hCT/cvNgoKffoSPX9rELvWPzdAsVffAHrGBIU96uburpTZProooHeJG9LvgGfEx qmfz4QxhljTSGSLqyf5Bym7DdjMwVXSbWVfAjgNiCq2LJWSWqKgW/LchqD4victIih8e 1gNEZYk9ozExEz2OpL+hDZWUTrekKB0K/bxv6xrHcXIbbTxlsjzR0ETaiR1vpW+Oay/Z 9EAsfxN8yZd75CSrl+NEdWr7oCj+iF4kq+kP9NFC8J3Oui77gd6wh6BwSdupYXd40ueR HEVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v124si18434398pgb.475.2019.04.05.05.41.06; Fri, 05 Apr 2019 05:41:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729818AbfDEMka (ORCPT + 99 others); Fri, 5 Apr 2019 08:40:30 -0400 Received: from smtp.asem.it ([151.1.184.197]:56361 "EHLO smtp.asem.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726027AbfDEMka (ORCPT ); Fri, 5 Apr 2019 08:40:30 -0400 Received: from webmail.asem.it by asem.it (smtp.asem.it) (SecurityGateway 5.5.0) with ESMTP id SG003794723.MSG for ; Fri, 05 Apr 2019 14:40:25 +0200S Received: from ASAS044.asem.intra (172.16.16.44) by ASAS044.asem.intra (172.16.16.44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Fri, 5 Apr 2019 14:40:24 +0200 Received: from flavio-x.asem.intra (172.16.17.208) by ASAS044.asem.intra (172.16.16.44) with Microsoft SMTP Server id 15.1.1261.35 via Frontend Transport; Fri, 5 Apr 2019 14:40:24 +0200 From: Flavio Suligoi To: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Mark Brown CC: , , , Flavio Suligoi Subject: [PATCH 1/1] spi: pxa2xxx: change "no DMA channels..." msg from debug to warning Date: Fri, 5 Apr 2019 14:40:22 +0200 Message-ID: <1554468022-17416-1-git-send-email-f.suligoi@asem.it> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-SGHeloLookup-Result: pass smtp.helo=webmail.asem.it (ip=172.16.16.44) X-SGSPF-Result: none (smtp.asem.it) X-SGOP-RefID: str=0001.0A0B0210.5CA74CB9.000D,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 (_st=1 _vt=0 _iwf=0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change the type of the diagnostic message: "no DMA channels available, using PIO" from debug to warning. The lack of an available DMA channel is very important regard the spi-pxa2xx performance. The transfer speed can be reduced more than 50%. So it is very important to warn the user about this, without enabling the full SPI debug with CONFIG_SPI_DEBUG. Moreover, enabling the full SPI debug only to enable this specific debug message, the dmesg buffer fills quickly with a lot of repetitive information during the SPI data transfer. This cause the loss of all the first important messages written during the initialization. Signed-off-by: Flavio Suligoi --- drivers/spi/spi-pxa2xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index 6160fe0..f7068cc 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c @@ -1696,7 +1696,7 @@ static int pxa2xx_spi_probe(struct platform_device *pdev) if (platform_info->enable_dma) { status = pxa2xx_spi_dma_setup(drv_data); if (status) { - dev_dbg(dev, "no DMA channels available, using PIO\n"); + dev_warn(dev, "no DMA channels available, using PIO\n"); platform_info->enable_dma = false; } else { controller->can_dma = pxa2xx_spi_can_dma; -- 2.7.4