Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 697403

Summary: Patch file for RAID controller driver, arcmsr, at RHEL6 Update2
Product: Red Hat Enterprise Linux 6 Reporter: nickcheng <nick.cheng>
Component: kernelAssignee: Tomas Henzl <thenzl>
Status: CLOSED ERRATA QA Contact: Storage QE <storage-qe>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: bdonahue, coughlan, eguan, fge
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kernel-2.6.32-184.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 13:10:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch file for RAID controller driver, arcmsr, at RHEL6 Update2
none
Patch file for RAID controller driver, arcmsr, at RHEL6 Update2 none

Description nickcheng 2011-04-18 07:17:43 UTC
Created attachment 492814 [details]
Patch file for RAID controller driver, arcmsr, at RHEL6 Update2

Description of problem:
Patch file for RAID controller driver, arcmsr, at RHEL6 Update2

Comment 2 RHEL Program Management 2011-05-13 15:25:47 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has 
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed 
products. This request is not yet committed for inclusion in an Update release.

Comment 6 Tomas Henzl 2011-06-14 12:22:29 UTC
Nick,
I hope I can post the update soon to the internal list.

We need from you a commitment that you will test this update when we make the test release accessible for you.

Thanks,
Tomas

Comment 8 nickcheng 2011-06-14 12:28:42 UTC
Tomas,
Sure.
If the release is available, please let me know.
I will test it in no time.

Comment 10 Tomas Henzl 2011-06-14 15:07:49 UTC
Created attachment 504701 [details]
Patch file for RAID controller driver, arcmsr, at RHEL6 Update2

This is the patch with a minor change - I removed a parenthesis pair to better fit upstream, further I removed the changes to arcmsr/.tmp_versions/arcmsr.mod file, Nick do you agree?

Comment 11 nickcheng 2011-06-15 02:11:05 UTC
Hi Tomas,
What a lot of changes!
I can't tell which are from you.
Could you make another patch?
Thanks,

Comment 12 Tomas Henzl 2011-06-17 12:25:42 UTC
(In reply to comment #11)
> Hi Tomas,
> What a lot of changes!
> I can't tell which are from you.
> Could you make another patch?
> Thanks,
Nick, in fact the changes are really minor - I removed a pair of parenthesis and removed a file which I think you added by mistake. A good tool to compare patches is interdiff, so:

> interdiff -p8 orig.patch new.patch 
diff -u arcmsr.1.20.00.15.el6u2-100805/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c
--- arcmsr.1.20.00.15.el6u2-100805/arcmsr_hba.c	2011-04-18 15:07:51.000000000 +0800
+++ b/drivers/scsi/arcmsr/arcmsr_hba.c
@@ -1170,9 +1170,8 @@
 	arcmsr_cdb->msgPages = arccdbsize/0x100 + (arccdbsize % 0x100 ? 1 : 0);
 	if ( arccdbsize > 256)
 		arcmsr_cdb->Flags |= ARCMSR_CDB_FLAG_SGL_BSIZE;
-	if (pcmd->sc_data_direction == DMA_TO_DEVICE) {
+	if (pcmd->sc_data_direction == DMA_TO_DEVICE)
 		arcmsr_cdb->Flags |= ARCMSR_CDB_FLAG_WRITE;
-	}
 	ccb->arc_cdb_size = arccdbsize;
 	return SUCCESS;
 }
reverted:
--- arcmsr.1.20.00.15.el6u2-100805/.tmp_versions/arcmsr.mod	2011-04-18 14:58:06.000000000 +0800
+++ arcmsr/.tmp_versions/arcmsr.mod	1970-01-01 08:00:00.000000000 +0800
@@ -1,2 +0,0 @@
-/root/arcmsr.1.20.00.15.el6u2-100805/arcmsr.ko
-/root/arcmsr.1.20.00.15.el6u2-100805/arcmsr_hba.o /root/arcmsr.1.20.00.15.el6u2-100805/arcmsr_attr.o

As you can see it isn't so much:)

Please next time  post your patches here in the same form as in upstream
so use this depth "diff --git a/drivers/scsi/arcmsr/arcmsr.h b/drivers/scsi/arcmsr/arcmsr.h" instead of "diff -Naurp arcmsr/arcmsr_attr.c arcmsr.1.20.00.15.el6u2-100805/arcmsr_attr.c" so it can be applied with "patch -p1 .."

Thanks, Tomas

Comment 13 nickcheng 2011-06-20 12:48:21 UTC
OK.
I agree with it.
Thank you, Tomas,

Comment 14 Tomas Henzl 2011-06-21 14:08:38 UTC
Posted to internal review.

Comment 15 Aristeu Rozanski 2011-08-10 14:14:09 UTC
Patch(es) available on kernel-2.6.32-184.el6

Comment 19 errata-xmlrpc 2011-12-06 13:10:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2011-1530.html