Skip to contentSkip to conversation

cciss: set max scatter gather entries to 32 on P600

PATCH In review Mike Miller 4 participants 5 messages Aug 14, 2013 – Aug 15, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cciss: set max scatter gather entries to 32 on P600

Patch 1/1

From: Mike Miller <[email protected]>

At one time we used to set the maximum number of scatter gather elements on all Smart Array controllers to 32. At some point in time the firmware began to write the "appropriate" value for each controller into the config table. The cciss driver would then read that and set h->maxsgentries.

        h->maxsgentries = readl(&(h->cfgtable->MaxSGElements);

On the P600 that value is 544. Under some workloads a significant performance reduction may result. This patch forces the P600 to use only 32 scatter gather elements. Other controllers are not affected.

---
 drivers/block/cciss.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
drivers/block/cciss.c +7 -0
index 62b6c2c..d2d95ff 100644
@@ -4258,6 +4258,13 @@ static void cciss_find_board_params(ctlr_info_t *h)
 	h->nr_cmds = h->max_commands - 4 - cciss_tape_cmds;
 	h->maxsgentries = readl(&(h->cfgtable->MaxSGElements));
 	/*
+	 * The P600 may exhibit poor performnace under some workloads
+	 * if we use the value in the configuration table. Limit this
+	 * controller to MAXSGENTRIES (32) instead.
+	 */
+	if (h->board_id == 0x3225103C)
+		h->maxsgentries = MAXSGENTRIES;
+	/*
 	 * Limit in-command s/g elements to 32 save dma'able memory.
 	 * Howvever spec says if 0, use 31
 	 */
maintainer
#1 lore raw
Quoted 11 lines · Mike Miller

Patch 1/1

From: Mike Miller <[email protected]>

At one time we used to set the maximum number of scatter gather elements on all Smart Array controllers to 32. At some point in time the firmware began to write the "appropriate" value for each controller into the config table. The cciss driver would then read that and set h->maxsgentries.

        h->maxsgentries = readl(&(h->cfgtable->MaxSGElements);
Quoted 8 lines

On the P600 that value is 544. Under some workloads a significant performance reduction may result. This patch forces the P600 to use only 32 scatter gather elements. Other controllers are not affected.

I don't quite understand the signoff chain on this patch. For a one line patch, are you saying it has three authors?

James

#2 lore raw

-----Original Message-----
From: James Bottomley [mailto:[email protected]]
Sent: Wednesday, August 14, 2013 4:27 PM
To: Miller, Mike (OS Dev); [email protected]
Cc: Andrew Morton; Jens Axboe; LKML-scsi; LKML; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 1/1] cciss: set max scatter gather entries to 32 on P600

Quoted 11 lines · Mike Miller

Patch 1/1

From: Mike Miller <[email protected]>

At one time we used to set the maximum number of scatter gather
elements on all Smart Array controllers to 32. At some point in time
the firmware began to write the "appropriate" value for each controller into the config table. The cciss driver would then read that and set h->maxsgentries.

        h->maxsgentries = readl(&(h->cfgtable->MaxSGElements);
Quoted 8 lines

On the P600 that value is 544. Under some workloads a significant performance reduction may result. This patch forces the P600 to use only 32 scatter gather elements. Other controllers are not affected.

I don't quite understand the signoff chain on this patch. For a one line patch, are you saying it has three authors?

James

The patch origin is unknown. I got it from Tomas and Bud who think it may have originated from HP. I cleaned it up, compile tested it, and sent it on. I'll review my procedures for future patches.

-- mikem

#3 lore raw
Quoted 24 lines · Mike (OS Dev)

-----Original Message-----
From: James Bottomley [mailto:[email protected]]
Sent: Wednesday, August 14, 2013 4:27 PM
To: Miller, Mike (OS Dev); [email protected]
Cc: Andrew Morton; Jens Axboe; LKML-scsi; LKML; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH 1/1] cciss: set max scatter gather entries to 32 on P600

Quoted 15 lines · Mike Miller

Patch 1/1

From: Mike Miller <[email protected]>

At one time we used to set the maximum number of scatter gather
elements on all Smart Array controllers to 32. At some point in time
the firmware began to write the "appropriate" value for each controller into the config table. The cciss driver would then read that and set h->maxsgentries.

        h->maxsgentries = readl(&(h->cfgtable->MaxSGElements);

On the P600 that value is 544. Under some workloads a significant performance reduction may result. This patch forces the P600 to use only 32 scatter gather elements. Other controllers are not affected.

Quoted 5 lines
Quoted 4 lines

I don't quite understand the signoff chain on this patch. For a one line patch, are you saying it has three authors?

It look a bit funny, but from what I know everybody from that list^ was somehow involved in that issue, debugging..testing, etc, so seeing the names there is not that bad. But I'm also not the direct author of the patch so feel free to remove my name from the list.

Tomas

Quoted 12 lines

James

The patch origin is unknown. I got it from Tomas and Bud who think it may have originated from HP. I cleaned it up, compile tested it, and sent it on. I'll review my procedures for future patches.

-- mikem

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
Quoted 11 lines
Quoted 11 lines

James

The patch origin is unknown. I got it from Tomas and Bud who think it may have originated from HP. I cleaned it up, compile tested it, and sent it on. I'll review my procedures for future patches.

-- mikem

Patch originated from me, although Tomas did the heavy lifting via kernel bisect to localize the specific set of changes causing the performance regression. Its modeled on the other P600'ism in the driver.

bud