From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751150AbdAOLIL (ORCPT ); Sun, 15 Jan 2017 06:08:11 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:34440 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750946AbdAOLIK (ORCPT ); Sun, 15 Jan 2017 06:08:10 -0500 From: Arkadiusz Miskiewicz Reply-To: arekm@maven.pl Organization: Do not reply to gmail address. Write to arekm@maven.pl instead. To: linux-kernel@vger.kerne.org Subject: aacraid: kernel: AAC: Host adapter dead -1 (bisected) Date: Sun, 15 Jan 2017 12:05:37 +0100 User-Agent: KMail/1.13.7 (Linux/4.9.3; KDE/4.14.27; x86_64; ; ) Cc: Raghava Aditya Renukunta , Johannes Thumshirn , "Martin K. Petersen" , Adaptec OEM Raid Solutions MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Message-Id: <201701151205.37563.a.miskiewicz@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v0FB8H3I017853 Hi. There is a bug with handling of adaptec raid cards (in my case it is Adaptec 3405) where kernel logs hundreds of "AAC: Host adapter dead -1" messages. Bug was reported previously on lkml but there was no progres in solving it. There is also bugzilla entry: https://bugzilla.kernel.org/show_bug.cgi?id=151661 I've bisected that to commit bellow and indeed, reverting it from kernel 4.9.3 makes messages go away. Could anyone at microsemi look at this regression? Thanks commit 78cbccd3bd683c295a44af8050797dc4a41376ff Author: Raghava Aditya Renukunta Date: Mon Apr 25 23:32:37 2016 -0700 aacraid: Fix for KDUMP driver hang When KDUMP is triggered the driver first talks to the firmware in INTX mode, but the adapter firmware is still in MSIX mode. Therefore the first driver command hangs since the driver is waiting for an INTX response and firmware gives a MSIX response. If when the OS is installed on a RAID drive created by the adapter KDUMP will hang since the driver does not receive a response in sync mode. Fixed by: Change the firmware to INTX mode if it is in MSIX mode before sending the first sync command. Cc: stable@vger.kernel.org Signed-off-by: Raghava Aditya Renukunta Reviewed-by: Johannes Thumshirn Signed-off-by: Martin K. Petersen my hardware: 02:0e.0 RAID bus controller [0104]: Adaptec AAC-RAID [9005:0285] Subsystem: Adaptec 3405 [9005:02bb] Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR+ FastB2B- DisINTx- Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR-