Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp818110ybk; Fri, 15 May 2020 14:34:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJrIh+sGDX1QFo441EHRWVHGg7esxZNMEBFs9SwWSx58ma2UzDTAuR7h7c2r8Cg6FidfGQ X-Received: by 2002:a17:906:8d0:: with SMTP id o16mr4912888eje.196.1589578483278; Fri, 15 May 2020 14:34:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589578483; cv=none; d=google.com; s=arc-20160816; b=WA+SGXBPsic6krXpxTsmLDA+8D+jYKUom76biITTE7kAcQYx2BhuX94+27aDKcMliK E3eJo71Hn+DgonrtofM/8wWezpcDOSoDaRudnZGAohJTLsyG4nAVrnb1VyQ8syCHPR5p xw1xm48xMf9ys7d5WqNgTHFdB4+dYdUI+ThkShwQxOqtl1JnZ5oxGAaBSXjiopdo+7kN 3puBIRffDWKTIZtOiUWQ3kxV+0nr3R44FomsxA4YqGXUJLtsLwNfyj+jaBKqtpRR8yEP kK0GQy7ItUPSN1OF5i5nnW12F1UuML045+AU6N5NMbKF5x0Nj556h3pWbfGly2Ezx7lB wX8g== 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; bh=xBkpYn0OGRXJFLEKv1YJxgMkLUAuINcwhwjSKqfiGiY=; b=Gareg+AAYrgNphmG3nvJNodeZnL7i1THlDkHPRRxFauWqKeCENlb6DKVOh/oHa2hqI S7DmiqtJvCovXUUiU/WClD2ORfhb/puHdvy+L8ZCC1qAvZ9/djfTdwmqDaXbef8ye2aO KHnmz5w0OKgB5Gdw59CPWn1J+MRPULH1ZBh3ZL/JzSaQrjfkUIGqqqU8j2w27aITzwLt 2ZWBqXvjPPLA63HXwZB8b6qKIHz8liumt+nOAmyE8sLQZODZryUMhq/nN8hfSnne0kT+ 9YzvFzitUEVoipDe58vLHDVtCNcBACPDaMTfvw0881cma6J+MZUUZsAHxlW0aHajk717 i1gg== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s10si1957832ejq.400.2020.05.15.14.34.20; Fri, 15 May 2020 14:34:43 -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; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728174AbgEOVaD (ORCPT + 99 others); Fri, 15 May 2020 17:30:03 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:41782 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727858AbgEOV3C (ORCPT ); Fri, 15 May 2020 17:29:02 -0400 Received: by mail-pf1-f194.google.com with SMTP id 23so1592594pfy.8; Fri, 15 May 2020 14:29:01 -0700 (PDT) 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=xBkpYn0OGRXJFLEKv1YJxgMkLUAuINcwhwjSKqfiGiY=; b=m30sbDf77Zi/njTeLobRWD016F37cTQ8m/G0f51ZK5biDp25HiBDwGAxuo2WImwvbb d4BoLWrZb5scx0nhWdgCa+RQ0d+aS/v37Nkg6W5gB0i7YPZHx6iXODjiHcKUG9imGugm baK23zRzhw+xFwa9PrH9vu/Mp05p1iIH/VO8GUVE/GRD1QIwFGXWxLz80hDxxHvDrO8f mgXnyVBpDLS7yXqo2qNW5W3Opx1v4kvA+hBcJRGlT2AwjlS96oTdZT7k+uC1bDS05fWr 5HWQXuAg+GXrA1PhJ+f0dW95ghV3wnUESHltzegIu+g53gP7lgmtyXIStNBDmK4O0ExB l9Tw== X-Gm-Message-State: AOAM5336AFOIF49CJJ/Lo4SqpHT724gjcPOW8qwhJqcnG5IL3oUenlZG lgGV4zeb1LpFrdJH4CltuZI= X-Received: by 2002:a63:42c4:: with SMTP id p187mr5038674pga.153.1589578141509; Fri, 15 May 2020 14:29:01 -0700 (PDT) Received: from 42.do-not-panic.com (42.do-not-panic.com. [157.230.128.187]) by smtp.gmail.com with ESMTPSA id y7sm2681182pfq.21.2020.05.15.14.28.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 May 2020 14:28:55 -0700 (PDT) Received: by 42.do-not-panic.com (Postfix, from userid 1000) id 053B742337; Fri, 15 May 2020 21:28:50 +0000 (UTC) From: Luis Chamberlain To: jeyu@kernel.org Cc: akpm@linux-foundation.org, arnd@arndb.de, rostedt@goodmis.org, mingo@redhat.com, aquini@redhat.com, cai@lca.pw, dyoung@redhat.com, bhe@redhat.com, peterz@infradead.org, tglx@linutronix.de, gpiccoli@canonical.com, pmladek@suse.com, tiwai@suse.de, schlad@suse.de, andriy.shevchenko@linux.intel.com, keescook@chromium.org, daniel.vetter@ffwll.ch, will@kernel.org, mchehab+samsung@kernel.org, kvalo@codeaurora.org, davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Luis Chamberlain , Ariel Elior , GR-everest-linux-l2@marvell.com, Igor Russkikh Subject: [PATCH v2 09/15] qed: use new module_firmware_crashed() Date: Fri, 15 May 2020 21:28:40 +0000 Message-Id: <20200515212846.1347-10-mcgrof@kernel.org> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20200515212846.1347-1-mcgrof@kernel.org> References: <20200515212846.1347-1-mcgrof@kernel.org> 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 This makes use of the new module_firmware_crashed() to help annotate when firmware for device drivers crash. When firmware crashes devices can sometimes become unresponsive, and recovery sometimes requires a driver unload / reload and in the worst cases a reboot. Using a taint flag allows us to annotate when this happens clearly. Cc: Ariel Elior Cc: GR-everest-linux-l2@marvell.com Reviewed-by: Igor Russkikh Signed-off-by: Luis Chamberlain --- drivers/net/ethernet/qlogic/qed/qed_mcp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/qlogic/qed/qed_mcp.c b/drivers/net/ethernet/qlogic/qed/qed_mcp.c index 9624616806e7..aea200d465ef 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_mcp.c +++ b/drivers/net/ethernet/qlogic/qed/qed_mcp.c @@ -566,6 +566,7 @@ _qed_mcp_cmd_and_union(struct qed_hwfn *p_hwfn, DP_NOTICE(p_hwfn, "The MFW failed to respond to command 0x%08x [param 0x%08x].\n", p_mb_params->cmd, p_mb_params->param); + module_firmware_crashed(); qed_mcp_print_cpu_info(p_hwfn, p_ptt); spin_lock_bh(&p_hwfn->mcp_info->cmd_lock); -- 2.26.2