From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 19D8AC4332F for ; Tue, 19 Oct 2021 23:16:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 046246136A for ; Tue, 19 Oct 2021 23:16:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229980AbhJSXSr (ORCPT ); Tue, 19 Oct 2021 19:18:47 -0400 Received: from mga17.intel.com ([192.55.52.151]:7453 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229910AbhJSXSp (ORCPT ); Tue, 19 Oct 2021 19:18:45 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10142"; a="209445769" X-IronPort-AV: E=Sophos;i="5.87,164,1631602800"; d="scan'208";a="209445769" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2021 16:15:50 -0700 X-IronPort-AV: E=Sophos;i="5.87,164,1631602800"; d="scan'208";a="567152170" Received: from rhweight-mobl.amr.corp.intel.com (HELO rhweight-mobl.ra.intel.com) ([10.212.183.7]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2021 16:15:49 -0700 From: Russ Weight To: mdf@kernel.org, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Cc: trix@redhat.com, lgoncalv@redhat.com, yilun.xu@intel.com, hao.wu@intel.com, matthew.gerlach@intel.com, Russ Weight Subject: [PATCH v1 0/2] fpga: dfl: Log and clear errors on driver init Date: Tue, 19 Oct 2021 16:15:43 -0700 Message-Id: <20211019231545.47118-1-russell.h.weight@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These patches address a request to log and clear any prexisting errors on FPGA cards when the drivers load. Any existing errors will result in print statements to the kernel error log before the errors are cleared. These changes specifically affect the fme and port error registers. Russ Weight (2): fpga: dfl: afu: Clear port errors in afu init fpga: dfl: fme: Clear fme global errors at driver init drivers/fpga/dfl-afu-error.c | 26 ++++--- drivers/fpga/dfl-fme-error.c | 128 +++++++++++++++++++++++------------ 2 files changed, 100 insertions(+), 54 deletions(-) -- 2.25.1