From patchwork Wed Dec 19 08:53:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ching Huang X-Patchwork-Id: 10736921 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 6F2356C5 for ; Wed, 19 Dec 2018 08:53:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E8172AA56 for ; Wed, 19 Dec 2018 08:53:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5287D2AEC7; Wed, 19 Dec 2018 08:53:52 +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 511AA2AA56 for ; Wed, 19 Dec 2018 08:53:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728528AbeLSIxu (ORCPT ); Wed, 19 Dec 2018 03:53:50 -0500 Received: from mail-io1-f65.google.com ([209.85.166.65]:37084 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727868AbeLSIxt (ORCPT ); Wed, 19 Dec 2018 03:53:49 -0500 Received: by mail-io1-f65.google.com with SMTP id k4so3546009iop.4 for ; Wed, 19 Dec 2018 00:53:48 -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=WgdFPlLFkxQ/SMzDT9mj9aSUL5NFG4zY5RYSkN5hQ6g=; b=zBny0wqgIMvX+4jx0R61m3BbKSNWuWtyyP3M9qRtRwG2A8L8rNfy7twXruFZaF4guC W7DMaXRinMlM/bVGCxZsPr17xgSUppYOEbdheiMYA2WWbzfoznWCZMHc8SEWwOmUF0aH g97Q5BFFw3fKFeNGUMOLcIfnJssUAFz/8aF4I2U3RZ0avit7rHZ7zSWOOln+kcV09Qdz 96fVxukApFZX0NraRRyvycsX6dkGMdz8lv0B6Qw68u+MShIhk2y7lo7kQJuZe1iTClac nmgm63Ch1ivTjt9JBfhSufuRGuZ20RFx0zN02TItUl5Th71RQV0l+ZCMEDLffHgmgYjh mT9A== 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=WgdFPlLFkxQ/SMzDT9mj9aSUL5NFG4zY5RYSkN5hQ6g=; b=m5qVkYb8YDqRR93+F5EPkDwS35lV0v+weaoWwXhrwJ4raY1rSNjMACnMgM25HMw1uW yBefb6jhpRj6suEl1JAwdUIP01VUK3LmH/TRTGWilTfLCiB0sgWSWUBSEBe6eRk8aZEB d4G7TjFWKu1SGUTHZ3IzxPXTngmw7UJjKSrx+Ai3FIlfZqmiT++0c9jwWqwNiWj2MLSu JVhIgnvWX5DRIPsIYYcbZfKCg74qasH15BiDQt5TGG8Jqqvx7/tPalrOw15hbaI9Usck dnYWCIs90UA5/rvwIyRcdBgy4+QrVyyPn+M28flrtQNadnepegDvKAvtqaul6fFGS+sg Kmwg== X-Gm-Message-State: AA+aEWaMcGxZMWIxPJVNCQvCgspX76wu13586uCT7jsUpYRQZ2XRs7Ws MxuA6TfGidKMLoaX/Hyl86G+kH1CEFkcXw== X-Google-Smtp-Source: AFSGD/X5f4Abkn6+amqimBhCexsWKKnCxBrsL/EDSHHgH6KiQfmZjDbOzqPDxWGVFL2UsyEQjTaJoA== X-Received: by 2002:a5e:8611:: with SMTP id z17mr17438309ioj.35.1545209627879; Wed, 19 Dec 2018 00:53:47 -0800 (PST) Received: from [192.168.0.130] (60-248-88-209.HINET-IP.hinet.net. [60.248.88.209]) by smtp.gmail.com with ESMTPSA id o21sm8354301ioa.71.2018.12.19.00.53.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Dec 2018 00:53:47 -0800 (PST) Subject: [PATCH 9/12] scsi: arcmsr: Add an option of set dma_mask_64 for ACB_ADAPTER_TYPE_A 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: Wed, 19 Dec 2018 16:53:44 +0800 Message-ID: <1545209624.4457.41.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 Add an option of set dma_mask_64 for ACB_ADAPTER_TYPE_A Signed-off-by: Ching Huang diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c index 8cc2134..45f1374 100755 --- a/drivers/scsi/arcmsr/arcmsr_hba.c +++ b/drivers/scsi/arcmsr/arcmsr_hba.c @@ -91,6 +91,10 @@ static int cmd_per_lun = ARCMSR_DEFAULT_CMD_PERLUN; module_param(cmd_per_lun, int, S_IRUGO); MODULE_PARM_DESC(cmd_per_lun, " device queue depth(1 ~ 128), default is 32"); +static int dma_mask_64 = 0; +module_param(dma_mask_64, int, S_IRUGO); +MODULE_PARM_DESC(dma_mask_64, " set DMA mask to 64 bits(0 ~ 1), dma_mask_64=1(64 bits), =0(32 bits)"); + static int set_date_time = 0; module_param(set_date_time, int, S_IRUGO); MODULE_PARM_DESC(set_date_time, " send date, time to iop(0 ~ 1), set_date_time=1(enable), default(=0) is disable");