Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2070098imu; Fri, 14 Dec 2018 05:23:55 -0800 (PST) X-Google-Smtp-Source: AFSGD/WgpOOj5zNP3zrjlwvkkEverT47vZeF/EX+GmeoXYg7hxr9OfzkfNhKxCZ2Xty5buz+Owj9 X-Received: by 2002:a62:42d4:: with SMTP id h81mr2814312pfd.259.1544793835563; Fri, 14 Dec 2018 05:23:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544793835; cv=none; d=google.com; s=arc-20160816; b=Mun5mUO0NkLcMdbssr8F61ywV8Gk76M+HUrsZgLe+9LM+BlgKWHLHoUaT1L3Z4EdF5 3JK+QCsPp1xoeFwP1Rv3oawQUAf4RftZnTICLXEW3mPj0QnUAnBI0TAOzvtLrd2iAY8L tfnNjF0pK32YDrIS5jUQ1A9++a7Oxg0jExLNmVGoO7GY4t02Nhl2Taqf8xKRYAGG7hBe YUsDjrbrDVDuTB6ZJk4SkHU4ZEaNLtavyaFzNuM7Xh3BJCOyif7Rfuhl48CpJt5LUapY 7/QoJlvTU7P4gAGN4v/N0kgM0DKjJMCcNjvuEtqMf8FG/2VvfTSD4WcqIbHkjVTST5Jh OMxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=XCtFdiGQU6hhvLH6ZcpcAPy/PZILPhC2uLj3eTmyt3s=; b=SSkuJ9QP6MlBIvQJ9LpkIbcyjJFSWy+8ADK7R8+yMFwKtRfShX93DqROHhLrTXbMjc T4uqZ4L1Fx5GbgWTKMgj4pcBJ0VG9MFkQ5Wgc3bjrjK6qzv+uzrvKPQuv2lffrAEIK7K JSj6DZFCRTx8bz3JVL9lHmvPyNIylh7zicR/A0WwkySIEiMv5cSKPpXfTRcZTfGMYnPG QDDLubMB7MYNxaHIzs9SP+XecEhsMzwljaQKm7i4xAsnHzP3P8CleSX+KhxArlWWjRAh vah7nyudjtpSSxQIZFZmMJeLZpbtRcsAv8byhW4XAc+IS49i8t90yNDAmLf1cmb0hAkw sh0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=R5dAuqjx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bc7si3953661plb.120.2018.12.14.05.23.36; Fri, 14 Dec 2018 05:23:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=R5dAuqjx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729915AbeLNNWW (ORCPT + 99 others); Fri, 14 Dec 2018 08:22:22 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:34105 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729641AbeLNNWW (ORCPT ); Fri, 14 Dec 2018 08:22:22 -0500 Received: by mail-lf1-f66.google.com with SMTP id p6so4253826lfc.1; Fri, 14 Dec 2018 05:22:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XCtFdiGQU6hhvLH6ZcpcAPy/PZILPhC2uLj3eTmyt3s=; b=R5dAuqjxeD7GZ6v5NHOI7Km/U/l/XvB3LOc5EjvvBJcGjCrPoKKElZY5HzD1/qd6zn U4JgmdN8za3u+6wLH1ujpRENcPPERbViVD4jABTJqXMjNGAA3omPiz0VmnEsCFklXhoE 1MfzXxMWd8d9UU0Iv6Vzc5VfYyvCPNDuafQymi6e/ZrrRdGuy217Z2iQm0r6J5oXNnRJ ZP+3Y4Eanz3N8k2C14kwM9DKS8mdV9Rc90A5g8MWhUk9hL2vz2mzjoX4LS18xZXBoJPb uGeRImEE5f2WXoq4I5a+7RAobXjMJO5nbPtybAMkWqbpqaZjgV8jH5W8am1j9oYNAA1Q dDpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XCtFdiGQU6hhvLH6ZcpcAPy/PZILPhC2uLj3eTmyt3s=; b=i7OCzjPiDVn6GC2T54NxrJPVisflu9P/mYfbLpJhG3TdqV47mPjHviA5Pz7wdLApIS 5FawwWVO8846Rzs+VoU7a6Z2/pY6bQnxyEj+CbRBlEovBR6q7jCFh27DCKfrD2ZS/EtD um1NPfrFoZ1BQinJ7KuM6H16kAthiSEM0zA8xdh6dRJYOSG5ZS3J7+s8hEOBFeRF2s4P QfTZR032DQlbvWXLoakn8e5vk97JCBWMB8TzBljdO8SfFCS+CvDo8yUmA/HBgLUDtbHL cL+Uwc4MrQdZn+uUYvEOrmVbZqHbey3sQrKybGoig2WpWA6Md0OyJ5AeMhxL1vOqwfpX D66w== X-Gm-Message-State: AA+aEWYWgKwYj6q7gVoCgF8+dzmc48dfKiK4myZ0YOcI/wVOYAVTSbyF +tQGBCQaQR7QwgZmytxpFGujAqvhp407UgPp X-Received: by 2002:ac2:41cb:: with SMTP id d11mr1927038lfi.3.1544793739659; Fri, 14 Dec 2018 05:22:19 -0800 (PST) Received: from localhost.localdomain (pool-109-191-228-208.is74.ru. [109.191.228.208]) by smtp.gmail.com with ESMTPSA id u79-v6sm944101lje.36.2018.12.14.05.22.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Dec 2018 05:22:19 -0800 (PST) From: Ivan Mironov To: linux-scsi@vger.kernel.org, mironov.ivan@gmail.com Cc: linux-kernel@vger.kernel.org, Don Brace , "James E.J. Bottomley" , "Martin K. Petersen" , esc.storagedev@microsemi.com Subject: [PATCH 0/6] Add support of the HBA mode on HP Smart Array P410i controllers Date: Fri, 14 Dec 2018 18:21:09 +0500 Message-Id: <20181214132115.21440-1-mironov.ivan@gmail.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series of patches adds support of the HBA mode on HP Smart Array P410i RAID controllers. This is not guaranteed to be correct as I do not have any access to documentation on these controllers. However, this works fine for me on hardware that I have. Also, these changes successfully passes blktests[1] and xfstests[2]. To make sure that this new functionality does not break anything, it is disabled by default and may be enabled only manually using new module parameter. [1] https://github.com/osandov/blktests [2] https://git.kernel.org/pub/scm/fs/xfs/xfstests-dev.git Ivan Mironov (6): scsi: hpsa: Add function to check if device is a disk or a zoned device scsi: hpsa: Support HBA mode on HP Smart Array P410i controllers scsi: hpsa: Add/mask existing devices on rescan if visibility changes scsi: hpsa: Ignore HBA flag from NVRAM if logical devices exist scsi: hpsa: Name more fields in "struct bmic_identify_controller" scsi: hpsa: Do not use HBA flag from NVRAM if HBA is not supported drivers/scsi/hpsa.c | 145 ++++++++++++++++++++++++++++++++++++---- drivers/scsi/hpsa.h | 3 + drivers/scsi/hpsa_cmd.h | 113 ++++++++++++++++++++++++++++++- 3 files changed, 244 insertions(+), 17 deletions(-) -- 2.19.2