From patchwork Fri Jan 18 02:58:51 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ching Huang X-Patchwork-Id: 10769339 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E6B3913B4 for ; Fri, 18 Jan 2019 02:58:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CE50B2E649 for ; Fri, 18 Jan 2019 02:58:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C0D872E660; Fri, 18 Jan 2019 02:58:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F56F2E649 for ; Fri, 18 Jan 2019 02:58:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727099AbfARC6z (ORCPT ); Thu, 17 Jan 2019 21:58:55 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:34807 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726927AbfARC6y (ORCPT ); Thu, 17 Jan 2019 21:58:54 -0500 Received: by mail-pf1-f196.google.com with SMTP id h3so5841743pfg.1 for ; Thu, 17 Jan 2019 18:58:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=areca-com-tw.20150623.gappssmtp.com; s=20150623; h=subject:from:to:cc:date:message-id:mime-version :content-transfer-encoding; bh=K4VpzqOOpFHSKfG6lkiV1ToMp9cD2QVH4F/ND1wf9NQ=; b=QH/nbSrGQ/A75EADukmRuF1tQn2+B+X14yho9ytOmOpitNcLlJOlqfbTlafIyQtq0E 5QwVpWnl+pVwD5AETrTdLXL/bQNf88y+ZEN94rDxieRVDVgbpOjF9qEWJf2K9KO/6vnH BEN2LCuGZa8IJCnf6bhKS2sUMhP9z9XgzTdBwR9byeGPztiPdK8W/jOYnXxWrrM2K3TS bTL9i2lNcHoCvACoqTBeFSBIE0suDYXe/J1XYGQ2X8Xt/dnD2JiM9NsFAzyw5xfeu1Vz dyqPjivNYk+XyAevXdyB3MDk8wtZFFmLA+uvc3TDn7H3HkqzeNa81/Ee/LRWOCEa93Gu gWgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:date:message-id:mime-version :content-transfer-encoding; bh=K4VpzqOOpFHSKfG6lkiV1ToMp9cD2QVH4F/ND1wf9NQ=; b=YAheBUGv76fKX8c0dI1eFWOtsDkyzM1lT0h+U22MRTFG5DHn/OJ+G3BJd5LBrekC5p AT06p/iyZrI9a2GtSSbVk7chdYbyDBE3j34/tpD9douluPcWx2ofj62Ox3N75EKpZ8ks AvIcWoLh3DqcarQjC3K1gux7oP0wj4WTnMMh8oXQWLyLa/fca8je48PGN1JlQuvCGxBe OkKiKVIN5GFnvkgmnOrkbz/1jNvC1tiHvdVQWBhZ7MCgYP9CbvKDBO+RnRZqZSmJBTjh hdEyPktI/EsLZ3Ldf38bwNVogGIOY4l6KqbcpFH49w0QzbeQMbKAb+9E/tJwD5qfGH2a c0Nw== X-Gm-Message-State: AJcUukfa0SDLzG8fNlhBbF0cLP2bh5bgVtZKoeJ639srUJ2EhF2WKPMM jgfnbTrC9pz+P79lkF162xchKw== X-Google-Smtp-Source: ALg8bN4Ny1fg/tE288LKcy+Dgm0VqIGEkfPU96o6d0bRBskkJ07OUrNhGeA9LVad9Hz4ZdwFXhzONw== X-Received: by 2002:a63:d157:: with SMTP id c23mr15813305pgj.170.1547780334009; Thu, 17 Jan 2019 18:58:54 -0800 (PST) Received: from [192.168.0.79] (60-248-88-209.HINET-IP.hinet.net. [60.248.88.209]) by smtp.gmail.com with ESMTPSA id u29sm3938054pgn.23.2019.01.17.18.58.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Jan 2019 18:58:53 -0800 (PST) Subject: [PATCH v2 2/3] scsi: arcmsr: Fix suspend/resume of ACB_ADAPTER_TYPE_B part 2 From: Ching Huang To: martin.petersen@oracle.com, James.Bottomley@HansenPartnership.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: dan.carpenter@oracle.com, hch@infradead.org, colin.king@canonical.com Date: Fri, 18 Jan 2019 10:58:51 +0800 Message-ID: <1547780331.4532.19.camel@Centos6.3-64> Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 (2.32.3-37.el6) Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From Ching Huang For ACB_ADAPTER_TYPE_B controller, the read/write after hibernate and resume may got 'isr get an illegal ccb command' in log/messages sometimes. This patch fix it. Signed-off-by: Ching Huang diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c index 5736434..88053b1 100755 --- a/drivers/scsi/arcmsr/arcmsr_hba.c +++ b/drivers/scsi/arcmsr/arcmsr_hba.c @@ -1113,7 +1113,11 @@ static int arcmsr_resume(struct pci_dev *pdev) switch (acb->adapter_type) { case ACB_ADAPTER_TYPE_B: { struct MessageUnit_B *reg = acb->pmuB; - reg->post_qbuffer[0] = 0; + uint32_t i; + for (i = 0; i < ARCMSR_MAX_HBB_POSTQUEUE; i++) { + reg->post_qbuffer[i] = 0; + reg->done_qbuffer[i] = 0; + } reg->postq_index = 0; reg->doneq_index = 0; break; From patchwork Fri Jan 18 03:01:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ching Huang X-Patchwork-Id: 10769341 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3FA4813B4 for ; Fri, 18 Jan 2019 03:01:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2A1E42F08E for ; Fri, 18 Jan 2019 03:01:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1BDF22F09B; Fri, 18 Jan 2019 03:01:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74C012F08E for ; Fri, 18 Jan 2019 03:01:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726908AbfARDBx (ORCPT ); Thu, 17 Jan 2019 22:01:53 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:36297 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbfARDBx (ORCPT ); Thu, 17 Jan 2019 22:01:53 -0500 Received: by mail-pl1-f193.google.com with SMTP id g9so5677792plo.3 for ; Thu, 17 Jan 2019 19:01:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=areca-com-tw.20150623.gappssmtp.com; s=20150623; h=subject:from:to:cc:date:message-id:mime-version :content-transfer-encoding; bh=ZqoXXRFbL8LOG168WUI36YcQoZy1XNTlv6gJAPqhUBQ=; b=uheASdiz6dEOFlkfiYGvugmTs/dB65fqRv+ESmJ8rgZmsYT9Yvuxpk1pHftqJD0hsU EhqP577sUOTCgf1u6pHrkzn8qU6hlM7dojRMQy/RKEWUdq918clNVkC/kAufQ2UHM1Gs Y7T+6pk5zfg9xCuFjF5qlMcXPLYgE0DPPaciL+5mSfnIbOTHuYDqdgM30SiXvaLv+y+V s/dXl2XhRL7C9jTEJJHen4M/6XYOiEDlqwYqgM1H7ML42v0ee/8fq//R16GF4IGzy/Df +nrryu4l28KFcOz6RDvDRXPjdEiIZMXtpB2KMnxAwAalWjFOLclLMqlwqoaWa4LoCWlA pu1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:date:message-id:mime-version :content-transfer-encoding; bh=ZqoXXRFbL8LOG168WUI36YcQoZy1XNTlv6gJAPqhUBQ=; b=ptvn86DUaoFBduBlVUt+n04KKYMULycVwlkqYtcWH05j0z43NeHpxKT+oLr5Ffqzq2 eIlR7cqdOpADx3e9lgPpywRfHimn7BC+FH0dW7egUk5KKaAbEXLmH2tBkByr8zceWXtz evmPKtJzu/aNoXEu2hXwOXATytUAD1f8SEfedjNA85GvgntYqKASjKdcdvmbzv/uHmmC AkoR6ZBRsPOMnYsc6KBz8b+tgxRBp4FPcmxzX7DZkwnyePOvuK6oWXVNpQyEJCVznev8 8YVPg63bmLK+ENQG8pk6Hzy7oBMhaefzGP1+luCaF8si7544mlLhEGdLC5Kz+hIP+dCz 0RMw== X-Gm-Message-State: AJcUukcgpH2vTGnQjcM/CD6Kmk4yjtbA54iabAB3Axla31Wrhal7y1Vq 0wiYZaHv1G5n67afCAhu15Uf2g== X-Google-Smtp-Source: ALg8bN6PLc5phI3fRdBEwZdUBKj6aaNSOiIzYspd4qBbi3RJ+QNoLhzVVT+Lg/VQwenkRZXibb+wLg== X-Received: by 2002:a17:902:7687:: with SMTP id m7mr17357284pll.187.1547780512578; Thu, 17 Jan 2019 19:01:52 -0800 (PST) Received: from [192.168.0.79] (60-248-88-209.HINET-IP.hinet.net. [60.248.88.209]) by smtp.gmail.com with ESMTPSA id r187sm10506737pfc.63.2019.01.17.19.01.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Jan 2019 19:01:52 -0800 (PST) Subject: [PATCH v2 3/3] scsi: arcmsr: Update driver version to v1.40.00.10-20190116 From: Ching Huang To: martin.petersen@oracle.com, James.Bottomley@HansenPartnership.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: dan.carpenter@oracle.com, hch@infradead.org, colin.king@canonical.com Date: Fri, 18 Jan 2019 11:01:49 +0800 Message-ID: <1547780509.4532.22.camel@Centos6.3-64> Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 (2.32.3-37.el6) Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From Ching Huang Update driver version to v1.40.00.10-20190116. Signed-off-by: Ching Huang diff --git a/drivers/scsi/arcmsr/arcmsr.h b/drivers/scsi/arcmsr/arcmsr.h index a94c513..9220bcf 100755 --- a/drivers/scsi/arcmsr/arcmsr.h +++ b/drivers/scsi/arcmsr/arcmsr.h @@ -49,7 +49,7 @@ struct device_attribute; #define ARCMSR_MAX_OUTSTANDING_CMD 1024 #define ARCMSR_DEFAULT_OUTSTANDING_CMD 128 #define ARCMSR_MIN_OUTSTANDING_CMD 32 -#define ARCMSR_DRIVER_VERSION "v1.40.00.10-20181217" +#define ARCMSR_DRIVER_VERSION "v1.40.00.10-20190116" #define ARCMSR_SCSI_INITIATOR_ID 255 #define ARCMSR_MAX_XFER_SECTORS 512 #define ARCMSR_MAX_XFER_SECTORS_B 4096