Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2934002ybf; Mon, 2 Mar 2020 19:03:58 -0800 (PST) X-Google-Smtp-Source: ADFU+vvGEnvSQa/XukszNgRTK317vUCZZQX6MlS8UCMGeLJZge0lHZ3545ietuUZX4fFjC0s3cmu X-Received: by 2002:a9d:740d:: with SMTP id n13mr1851210otk.140.1583204638658; Mon, 02 Mar 2020 19:03:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583204638; cv=none; d=google.com; s=arc-20160816; b=dkhbpczJraO8V51F5WfKAwY+bZ5rafzTf//VMB7HqEd5cODMht6SLvw2FmX6BCRX8D bWgFpBa2nIeDjKosvO8CcvSceBxSeUUAU+G3ZlXicthD43NJ8zIdWEWlbV6GqxQ7T0H7 oV26FQebeuZORHuEcNjVMs71uOCqMz53yOf/xy/rvJNlI+uvBW88eAnELcVUMBvsvq91 uFcYHiYt28dh2iBuBGsuve2VSo2ibb4PnJZtTtjsyHXViGw9+eYTfcU0JLMQyCBZmxFl /lPGHVnc1mu+bef3IHURI23VRpnRrKAyG0G6lw9doo0Bq2mn1Eja5FtarBY62y2PZgql F5wQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=n6SSTXG+r13O/jojez+zOGcepO/1ES0cWbnZW+teUtE=; b=V7LYgJZB0NmeGKdjuDYMsycl/XvJKEQ7WfwWD/5zt2jEqnugXQFcrMOAmCOGLsLlWU rg1KMCTLrqUkvrb3LmIIUFY0GudoYzy52MEyxSuxumj3iM9Ip3p9kEGG7hbMEUwCBjFm RY9LDN5/eErYK/15OVA3eEmIzKTw0jwmTse2IZte6vUcuxVwmg5CEkK3yfYVpOCTOyZC Y5c9QyPos0zrLSr6U+r/9ab5jVREVaToGEsJSPbYHPOW+kJ3kXdDhTOfoj/i+rjziCwy TGpXsewEL2LXS9D4XqAcbkxHSO1DKAs4kGNh8MGmSALcdIP36sNSiiEspLH9Ote2LKaG 7uTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XDO3RL8g; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l14si6667979oii.37.2020.03.02.19.03.46; Mon, 02 Mar 2020 19:03:58 -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; dkim=pass header.i=@kernel.org header.s=default header.b=XDO3RL8g; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727588AbgCCCqk (ORCPT + 99 others); Mon, 2 Mar 2020 21:46:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:41010 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727536AbgCCCqg (ORCPT ); Mon, 2 Mar 2020 21:46:36 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 96B3D24684; Tue, 3 Mar 2020 02:46:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583203595; bh=m3/5GV8iND6nq+ZvNW2PfXvQ5eZR+5DVF27T+hS7AB4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XDO3RL8g+zs8FuuUTjBEa/gwUz5h0Szl38OmAL77m6MGgA3r87aK7EL/O2roeQrkG jOBChEuSQKZpUcelX9YL963/8rXvReBsyvxGE8V9w9W3PiWbTXecVIs6IdkRKTBKOd msWZmh1brcw8WPz2CrB8OPN6eEmq9RVqp+Xlnvlo= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Tomas Henzl , Sumit Saxena , Lee Duncan , "Martin K . Petersen" , Sasha Levin , megaraidlinux.pdl@broadcom.com, linux-scsi@vger.kernel.org Subject: [PATCH AUTOSEL 5.5 16/66] scsi: megaraid_sas: silence a warning Date: Mon, 2 Mar 2020 21:45:25 -0500 Message-Id: <20200303024615.8889-16-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200303024615.8889-1-sashal@kernel.org> References: <20200303024615.8889-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tomas Henzl [ Upstream commit 0e99b2c625da181aebf1a3d13493e3f7a5057a9c ] Add a flag to DMA memory allocation to silence a warning. This driver allocates DMA memory for IO frames. This allocation may exceed MAX_ORDER pages for few megaraid_sas controllers (controllers with very high queue depth). Consequently, the driver has logic to keep reducing the controller queue depth until the DMA memory allocation succeeds. On impacted megaraid_sas controllers there would be multiple DMA allocation failures until driver settled on an allocation that fit. These failed DMA allocation requests caused stack traces in system logs. These were not harmful and this patch silences those warnings/stack traces. [mkp: clarified commit desc] Link: https://lore.kernel.org/r/20200204152413.7107-1-thenzl@redhat.com Signed-off-by: Tomas Henzl Acked-by: Sumit Saxena Reviewed-by: Lee Duncan Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/megaraid/megaraid_sas_fusion.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c b/drivers/scsi/megaraid/megaraid_sas_fusion.c index 46bc062d873ef..d868388018053 100644 --- a/drivers/scsi/megaraid/megaraid_sas_fusion.c +++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c @@ -594,7 +594,8 @@ megasas_alloc_request_fusion(struct megasas_instance *instance) fusion->io_request_frames = dma_pool_alloc(fusion->io_request_frames_pool, - GFP_KERNEL, &fusion->io_request_frames_phys); + GFP_KERNEL | __GFP_NOWARN, + &fusion->io_request_frames_phys); if (!fusion->io_request_frames) { if (instance->max_fw_cmds >= (MEGASAS_REDUCE_QD_COUNT * 2)) { instance->max_fw_cmds -= MEGASAS_REDUCE_QD_COUNT; @@ -632,7 +633,7 @@ megasas_alloc_request_fusion(struct megasas_instance *instance) fusion->io_request_frames = dma_pool_alloc(fusion->io_request_frames_pool, - GFP_KERNEL, + GFP_KERNEL | __GFP_NOWARN, &fusion->io_request_frames_phys); if (!fusion->io_request_frames) { -- 2.20.1