Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752904AbbGFOoN (ORCPT ); Mon, 6 Jul 2015 10:44:13 -0400 Received: from mail-la0-f45.google.com ([209.85.215.45]:34575 "EHLO mail-la0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751155AbbGFOoL (ORCPT ); Mon, 6 Jul 2015 10:44:11 -0400 From: Dmitry Kalinkin To: linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org Cc: Martyn Welch , Manohar Vanga , Greg Kroah-Hartman , Dmitry Kalinkin Subject: [PATCH] vme: print unhandled VME access errors Date: Mon, 6 Jul 2015 17:43:55 +0300 Message-Id: <1436193835-20154-1-git-send-email-dmitry.kalinkin@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <559A7533.8000408@ge.com> References: <559A7533.8000408@ge.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1324 Lines: 44 This will enable error messages for accesses done through mmap. Signed-off-by: Dmitry Kalinkin --- This depends on '[PATCH 0/3] VME bus error handling overhaul' patchset. --- drivers/vme/vme.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/vme/vme.c b/drivers/vme/vme.c index 7a10d92..72924b0 100644 --- a/drivers/vme/vme.c +++ b/drivers/vme/vme.c @@ -1028,6 +1028,7 @@ void vme_bus_error_handler(struct vme_bridge *bridge, { struct list_head *handler_pos = NULL; struct vme_error_handler *handler; + int handler_triggered = 0; u32 aspace = vme_get_aspace(am); list_for_each(handler_pos, &bridge->vme_error_handlers) { @@ -1040,8 +1041,14 @@ void vme_bus_error_handler(struct vme_bridge *bridge, handler->first_error = address; if (handler->num_errors != UINT_MAX) handler->num_errors++; + handler_triggered = 1; } } + + if (!handler_triggered) + dev_err(bridge->parent, + "Unhandled VME access error at address 0x%llx\n", + address); } EXPORT_SYMBOL(vme_bus_error_handler); -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/