Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp818249ybk; Fri, 15 May 2020 14:35:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8jOL2G7y4EQT7NQIvowGIIrcW2+FX+DS/6OREub52JyixtLdkU2CJlalDfoKvH2YGb0sX X-Received: by 2002:a50:e607:: with SMTP id y7mr4900080edm.71.1589578501117; Fri, 15 May 2020 14:35:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589578501; cv=none; d=google.com; s=arc-20160816; b=QjihZaQ7KoLWRw+3uSKbwP+jtaxq90LR0UBknMrPQFEMmr1x9isKaj8H4/8KphkTvQ 6Q20iYTEJKpNT3VDi4DJj9kbyX8zSuw2eRJnBUaNm6bOWEE/46HYocX8vy07KLa4Svue 8YOChBL1EIo0Ud0tHKTW0xVIsisMqSOFf8pFEB1yWUBvwWwEVRHLMfsb1pjcL1RQaR8p kYM/y9u17Zby8mrrYczxa2DARNTTCIdEfUPbjyD2F8kwSfGCHQFPPmkivL4Qz5z0Aayh TDChrUuy7i6O47Bne2TfY4ub4bcOqoxlqjg8+ZJHI4d8/It6pIj8NWXB92J4csL+chwc i+Tg== 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=mQHcezCNWzGuPmczrAfsld1MqXEk0Ppb3Y+korjrHEA=; b=RGWm4kXgGpROoHTCthhgMFF61z6c8jagF5m7iXv7vBTdW7flekMGmbc2YDoTsfnDmN yM9nYiCN33jngQ0lwI63lQabhI3pDD88tZdluPZ1qm9SO9u4KIx4rPvNV0my4G4+daq6 2g8li/Kqefn9lTCp5jLBHkLp3M76KBs+fsMn8yZygorAXO0/YJlc56p5Ti2NhZr1EPld 9XlhAa7R2HsV37hz2IhYjA9BMQMa1bxwFeOLTCd9GjF5RfiJb7V7LaoR+U5tOC4w+tvp Z7edqNXHNlImWmTNXs6+9DXvgTy8WLW0uG9gqEKU2Ac1kk25Z5PhzOFwdhNrwPLcZG5S 0/VQ== 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 v13si2197352ejo.418.2020.05.15.14.34.38; Fri, 15 May 2020 14:35:01 -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 S1727785AbgEOV24 (ORCPT + 99 others); Fri, 15 May 2020 17:28:56 -0400 Received: from mail-pj1-f65.google.com ([209.85.216.65]:50980 "EHLO mail-pj1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726261AbgEOV2z (ORCPT ); Fri, 15 May 2020 17:28:55 -0400 Received: by mail-pj1-f65.google.com with SMTP id t9so1486896pjw.0; Fri, 15 May 2020 14:28:54 -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=mQHcezCNWzGuPmczrAfsld1MqXEk0Ppb3Y+korjrHEA=; b=H+2oKvnmYCrBr2Dfs1Pi6drOXJbvRQQt+hNxPiGB08gBWLo4B6oz9KQfGx0iADraeb vnHi6UQV0Df0WWM6dUKmqvQM1QPXX+pYS9l34fs/uUQTcO7bBg2CktOOutBmSl4mNquM KG5lKxbRxFOjvl634ZryJUHKWTAeyC8V394sA96MxQuZrvGO4hoZ2QwR1MW/Spx63/hR 36F3xQIaghvCqctVOCQIdn6UmPvWh14pOacWOkMZYTB3OvogYP80heUiqC53gdUsBmeu R5pIjqLuhum1Ejz3kHouKQ1JP0fBQHmFQp77sdVduxQyEo5WzUflp+DWk88B+SYby8Vi MPkA== X-Gm-Message-State: AOAM531apOtzAfQAAvMk67g1R4jK5OCKFAmmivnDcqo+2ZHRW7XlTADW Si9bRDwwbbv6rKK5eBJ1aMI= X-Received: by 2002:a17:90a:4d4a:: with SMTP id l10mr5686766pjh.0.1589578133718; Fri, 15 May 2020 14:28:53 -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 z13sm2235488pjz.42.2020.05.15.14.28.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 May 2020 14:28:50 -0700 (PDT) Received: by 42.do-not-panic.com (Postfix, from userid 1000) id 98C5341D00; Fri, 15 May 2020 21:28:49 +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 , "Michael S. Tsirkin" , Shannon Nelson , Jakub Kicinski , Heiner Kallweit Subject: [PATCH v2 02/15] ethernet/839: use new module_firmware_crashed() Date: Fri, 15 May 2020 21:28:33 +0000 Message-Id: <20200515212846.1347-3-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: "Michael S. Tsirkin" Cc: Shannon Nelson Cc: Jakub Kicinski Cc: Heiner Kallweit Signed-off-by: Luis Chamberlain --- drivers/net/ethernet/8390/axnet_cs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/8390/axnet_cs.c b/drivers/net/ethernet/8390/axnet_cs.c index aeae7966a082..8ad0200db8e9 100644 --- a/drivers/net/ethernet/8390/axnet_cs.c +++ b/drivers/net/ethernet/8390/axnet_cs.c @@ -1358,9 +1358,11 @@ static void ei_receive(struct net_device *dev) */ if ((netif_msg_rx_err(ei_local)) && this_frame != ei_local->current_page && - (this_frame != 0x0 || rxing_page != 0xFF)) + (this_frame != 0x0 || rxing_page != 0xFF)) { + module_firmware_crashed(); netdev_err(dev, "mismatched read page pointers %2x vs %2x\n", this_frame, ei_local->current_page); + } if (this_frame == rxing_page) /* Read all the frames? */ break; /* Done for now */ -- 2.26.2