Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2498974imu; Sun, 13 Jan 2019 03:35:15 -0800 (PST) X-Google-Smtp-Source: ALg8bN5d+3iDS9yLGy+ZfkBbqYCWBH/MAVpwiIfogQHCgoled0xUrbQAnKOrybF31o4fRHJX9kjf X-Received: by 2002:a63:b81a:: with SMTP id p26mr19715904pge.433.1547379315031; Sun, 13 Jan 2019 03:35:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547379315; cv=none; d=google.com; s=arc-20160816; b=eyUgalDFEVMc/RkRlF3gB3HF2zLQHCGmc30c3NAfuEPi1YtnwviiPJn6oJ/Qg7bm10 lIsdbOOA/3cO5ApixHNpQzuFNRhcFLzazHWNNZ4oiQAykDN9qSKyVgDnY8r6wV8bO1Zd W9pKcDYI8x64sE0POEtTYcvlqgM+IJ9y5AHhBS5ituz3u8rlBW31HrwtJF6TiEUipvfy 5KlCMgo71N9fESzo0DcKNU4yjS/R7vu6y8mQbKK8KE4OlCbfY28usTnZjWBcZC7yxKm5 ynTpIPn7+pyEUH+YhpsXTmGVegyk/NCx3h3ZlJl7IaPjzQrKyHsBiZ67lUzSRJ1hnygS S87A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=QocuMXPO2cuEKTdtddlrinSOC7kKDgjuD/KEsWkjNeI=; b=Y7x6JUvpryStLEV98ViHJUCzmvVbgAkYIRdXbasE0g1i7WGnC42Bb0TgG/ZcbV500u 4OG4bTktQnnx48pgs9xjLS4xJGRQnmF9Y8Trzd2Twt0Fulh+w+F5rVf/k/hrXW0aXgrB gfDOlZ8DBGib8aN+gJGrY46WB5LViE8Sx/2LMFRBcGrGz2OQuCkU/no9MU/81iY5rkoC XN7KEpl+FAH4OWP5u4GNdnNeMq+XlrTZEdV5jmpNdL805O50MGnSk7n194z2/IRI6iP/ XjH4DYzWYkPBaMtrslrrjb9qL8QLAe3xhFwd8dclAxpWOlKKDdtc0vNTrq47hYWOesb4 rUIg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d127si8988387pfg.255.2019.01.13.03.34.24; Sun, 13 Jan 2019 03:35:14 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726437AbfAMLbI (ORCPT + 99 others); Sun, 13 Jan 2019 06:31:08 -0500 Received: from mga17.intel.com ([192.55.52.151]:22351 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725875AbfAMLbI (ORCPT ); Sun, 13 Jan 2019 06:31:08 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Jan 2019 03:31:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,473,1539673200"; d="scan'208";a="266762705" Received: from twinkler-lnx.jer.intel.com ([10.12.91.48]) by orsmga004.jf.intel.com with ESMTP; 13 Jan 2019 03:31:05 -0800 From: Tomas Winkler To: Greg Kroah-Hartman Cc: Alexander Usyskin , linux-kernel@vger.kernel.org, Tomas Winkler , stable@vger.kernel.org Subject: [char-misc 1/3] mei: dma: silent the reject message Date: Sun, 13 Jan 2019 14:24:46 +0200 Message-Id: <20190113122449.7252-1-tomas.winkler@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Not all FW versions support DMA on their first release, hence it is normal behavior to receive a reject response upon DMA setup request. In order to prevent confusion, the DMA setup reject message is printed only in debug level. Cc: #v5.0+ Signed-off-by: Tomas Winkler --- drivers/misc/mei/hbm.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/misc/mei/hbm.c b/drivers/misc/mei/hbm.c index 78c26cebf5d4..8f7616557c97 100644 --- a/drivers/misc/mei/hbm.c +++ b/drivers/misc/mei/hbm.c @@ -1187,9 +1187,15 @@ int mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr) dma_setup_res = (struct hbm_dma_setup_response *)mei_msg; if (dma_setup_res->status) { - dev_info(dev->dev, "hbm: dma setup response: failure = %d %s\n", - dma_setup_res->status, - mei_hbm_status_str(dma_setup_res->status)); + u8 status = dma_setup_res->status; + + if (status == MEI_HBMS_NOT_ALLOWED) { + dev_dbg(dev->dev, "hbm: dma setup not allowed\n"); + } else { + dev_info(dev->dev, "hbm: dma setup response: failure = %d %s\n", + status, + mei_hbm_status_str(status)); + } dev->hbm_f_dr_supported = 0; mei_dmam_ring_free(dev); } -- 2.20.1