Giter VIP home page Giter VIP logo

Comments (2)

KiralyCraft avatar KiralyCraft commented on September 18, 2024

Well, good news:

[root@sysrescue ~/hpsahba/contrib/dkms]# modprobe hpsa hpsa_use_nvram_hba_flag=1
[root@sysrescue ~/hpsahba/contrib/dkms]# lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0    7:0    0 631.9M  1 loop /run/archiso/sfs/airootfs
sda      8:0    0 931.5G  0 disk 
sdb      8:16   0 931.5G  0 disk 
sdc      8:32   0 931.5G  0 disk 
sdd      8:48   0 279.4G  0 disk 
├─sdd1   8:49   0 278.4G  0 part 
├─sdd2   8:50   0     1K  0 part 
└─sdd5   8:53   0   976M  0 part 
sde      8:64   0 279.4G  0 disk 
├─sde1   8:65   0 278.4G  0 part 
├─sde2   8:66   0     1K  0 part 
└─sde5   8:69   0   976M  0 part 
sdf      8:80   0 931.5G  0 disk 
sdg      8:96   0 931.5G  0 disk 
sdh      8:112  0 931.5G  0 disk 
sr0     11:0    1   703M  0 rom  /run/archiso/bootmnt

I ran this on Systemrescue 9.0 running kernel 5.15.22, I had to patch hpsa.c from dkms, patch coming soon

from hpsahba.

KiralyCraft avatar KiralyCraft commented on September 18, 2024

The patching dkms script assumes kernel 5.8 if none specified. So the patch below should be applied on top of the 5.8 kernel patch, although I have not checked the newer ones to see if they would work without modifications.

--- hpsa.c	2022-03-15 22:05:12.046873522 +0200
+++ hpsa_new.c	2022-03-15 21:50:31.490115346 +0200
@@ -79,7 +79,7 @@
 MODULE_AUTHOR("Hewlett-Packard Company");
 MODULE_DESCRIPTION("Driver for HP Smart Array Controller version " \
 	HPSA_DRIVER_VERSION);
-MODULE_SUPPORTED_DEVICE("HP Smart Array Controllers");
+//MODULE_SUPPORTED_DEVICE("HP Smart Array Controllers");
 MODULE_VERSION(HPSA_DRIVER_VERSION);
 MODULE_LICENSE("GPL");
 MODULE_ALIAS("cciss");
@@ -5774,7 +5774,7 @@
 	/* Get the ptr to our adapter structure out of cmd->host. */
 	h = sdev_to_hba(cmd->device);
 
-	BUG_ON(cmd->request->tag < 0);
+	BUG_ON(scsi_cmd_to_rq(cmd)->tag < 0);
 
 	dev = cmd->device->hostdata;
 	if (!dev) {
@@ -5813,7 +5813,7 @@
 	 * Retries always go down the normal I/O path.
 	 */
 	if (likely(cmd->retries == 0 &&
-			!blk_rq_is_passthrough(cmd->request) &&
+			!blk_rq_is_passthrough(scsi_cmd_to_rq(cmd)) &&
 			h->acciopath_status)) {
 		rc = hpsa_ioaccel_submit(h, c, cmd);
 		if (rc == 0)
@@ -5977,7 +5977,7 @@
  */
 static int hpsa_get_cmd_index(struct scsi_cmnd *scmd)
 {
-	int idx = scmd->request->tag;
+	int idx = scsi_cmd_to_rq(scmd)->tag;
 
 	if (idx < 0)
 		return idx;

from hpsahba.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.