Re: [PATCH v2] libata: Simulate REPORT LUNS for ATAPI devices

2006-12-13 Thread Patrick Mansfield
, done, atapi_xlat); + } return rc; } -- Patrick Mansfield - 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

Re: [PATCH] SCSI: Don't be so verbose if no disc is present

2005-09-09 Thread Patrick Mansfield
Hi ... did you try James' patch? Looks like the same problem. Patch here: http://marc.theaimsgroup.com/?l=linux-scsim=112585164819923w=2 Was hidden within some other thread ... On Fri, Sep 09, 2005 at 11:17:16PM +0100, Daniel Drake wrote: Running a simple touch /dev/scd0 on a SCSI cdrom will

Re: [GIT PATCH] SCSI merge for 2.6.13

2005-09-07 Thread Patrick Mansfield
to scsi_execute_req The scsi_execute() retries argument is still not used. How is this going to work? For example, multiple unit attentions (power on / reset) during scanning. We send REPORT LUN, READ CAPACITY, etc., and would not retry if we got a unit attention. -- Patrick Mansfield

Re: Pending patches

2005-09-06 Thread Patrick Mansfield
are in it, but the scsi-misc tre is at: http://www.kernel.org/git/?p=linux/kernel/git/jejb/scsi-misc-2.6.git;a=summary -- Patrick Mansfield - 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

[PATCH scsi-misc-2.6] scsi_debug testing patch, return LUN 0 with PQ 3

2005-08-30 Thread Patrick Mansfield
Just a patch for scanning with PQ == 3 for LUN 0, only for use in testing previous patch, don't apply. diff -uprN -X /home/patman/dontdiff scsi-misc-2.6/drivers/scsi/scsi_debug.c lun0-replun-scsi-misc-2.6/drivers/scsi/scsi_debug.c --- scsi-misc-2.6/drivers/scsi/scsi_debug.c 2005-07-26

[PATCH scsi-misc-2.6] allow REPORT LUN scanning even for LUN 0 PQ of 3

2005-08-30 Thread Patrick Mansfield
LUN 0 available for use via user space, for compatibility it likely requires that it stay visible in the future: http://marc.theaimsgroup.com/?l=linux-scsim=111692497200507w=2 Hannes' patch also causes a lot of extra vSCSI devices to show up on some platforms :) Signed-off-by: Patrick Mansfield

Re: new qla2xxx driver breaks SAN setup with 2 controllers

2005-08-24 Thread Patrick Mansfield
); - } if (sdev) scsi_device_put(sdev); out_reap: + if ((lun == 0) (res == SCSI_SCAN_LUN_IGNORED)) + scsi_scan_remove(sdev); /* now determine if the target has any children at all * and if not, nuke it */ scsi_target_reap(starget); -- Patrick

Re: [PATCH] minimal SAS transport class

2005-08-24 Thread Patrick Mansfield
On Wed, Aug 24, 2005 at 04:05:03PM -0400, Luben Tuikov wrote: On 08/24/05 13:12, Patrick Mansfield wrote: On Tue, Aug 23, 2005 at 07:55:37PM -0400, Luben Tuikov wrote: Where does udev get its label? You can call any script or program from udev and use the result

Re: [PATCH] minimal SAS transport class

2005-08-23 Thread Patrick Mansfield
to go above 20. -- Patrick Mansfield - 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

Re: [PATCH] scsi: /proc/scsi/scsi patch for large number of devices

2005-08-23 Thread Patrick Mansfield
or such under sysfs. -- Patrick Mansfield - 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

Re: [PATCH] correct attribute_container list usage

2005-08-22 Thread Patrick Mansfield
On Mon, Aug 22, 2005 at 03:14:27PM -0700, Patrick Mansfield wrote: Attached is a test module, it oopsed for me with CONFIG_DEBUG_SLAB, on ppc64. I was trying to complete testing of my hack (on current git tree, rather than scsi-misc), but have been preempted by other work today. The patch

Re: [PATCH] correct attribute_container list usage

2005-08-22 Thread Patrick Mansfield
; } And then: void kref_get(struct kref *kref) { WARN_ON(!atomic_read(kref-refcount)); atomic_inc(kref-refcount); } -- Patrick Mansfield - 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

Re: [PATCH] correct attribute_container list usage

2005-08-22 Thread Patrick Mansfield
On Mon, Aug 22, 2005 at 09:03:03PM -0500, James Bottomley wrote: On Mon, 2005-08-22 at 17:39 -0700, Patrick Mansfield wrote: But, we have to pass in a struct kref, to affect put/get_device, correct? Correct. Let me post the code mods to drivers/base/core.c so you can see how it works. OK

Re: libata error handling

2005-08-19 Thread Patrick Mansfield
the driver in interrupt context, so the called function can't sleep. There is no queueing or list mechanism, so LLDD's that can only cancel one command at a time will have problem. -- Patrick Mansfield - To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message

Re: libata error handling

2005-08-19 Thread Patrick Mansfield
On Fri, Aug 19, 2005 at 04:03:15PM -0400, Luben Tuikov wrote: On 08/19/05 15:38, Patrick Mansfield wrote: On Fri, Aug 19, 2005 at 02:46:35PM -0400, Luben Tuikov wrote: Using the command time out hook and the strategy routine, gives _complete_ control over host recovery, and I really do

Re: libata error handling

2005-08-19 Thread Patrick Mansfield
Luben - On Fri, Aug 19, 2005 at 04:43:41PM -0400, Luben Tuikov wrote: On 08/19/05 16:11, Patrick Mansfield wrote: I was changing it to wakeup the eh even while other IO is outstanding, so the eh can wakeup and cancel individual commands while other IO is still using the HBA. Hmm

Re: [RFC] add global timeout to the scsi mid-layer

2005-08-17 Thread Patrick Mansfield
sdev-timeout, instead of hardcoding to the timeout * allowed. -- Patrick Mansfield James diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c --- a/drivers/scsi/advansys.c +++ b/drivers/scsi/advansys.c @@ -9200,8 +9200,8 @@ asc_prt_scsi_cmnd(struct scsi_cmnd *s) (unsigned

Re: [2.6.13-rc6-latest] SCSI disk registration msgs repeat themselves

2005-08-17 Thread Patrick Mansfield
On Tue, Aug 16, 2005 at 10:51:13PM -0700, Pete Zaitcev wrote: On Tue, 16 Aug 2005 21:39:33 -0700, Patrick Mansfield [EMAIL PROTECTED] wrote: On Tue, Aug 16, 2005 at 11:01:30PM -0400, Chuck Ebbert wrote: I just added some usb-storage devices to my system and got the below. Why do

Re: [2.6.13-rc6-latest] SCSI disk registration msgs repeat themselves

2005-08-16 Thread Patrick Mansfield
://marc.theaimsgroup.com/?l=linux-scsim=110848617107098w=2 -- Patrick Mansfield - 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

Re: Unplugging of SBP-2 devices still does not work

2005-07-26 Thread Patrick Mansfield
Seeing sysrq-t stack traces might help debugging. On Sat, Jul 23, 2005 at 09:58:18PM +0200, Stefan Richter wrote: I wrote: Problem 1) Hot unplugging of SBP-2 hangs ieee1394's nodemgr [...] [unplug disk] Jul 23 20:08:53 shuttle kernel: ieee1394: Node changed: 1-01:1023 - 1-00:1023 Jul 23

Re: SCSI luns

2005-07-15 Thread Patrick Mansfield
is not modified (we'll fail to scan LUNs with higher bits set). -- Patrick Mansfield - 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

Re: map gendisk (or blockdev) - scsi_device

2005-07-13 Thread Patrick Mansfield
rescan state vendor bus driver ioerr_cnt queue_depth rev timeout delete iocounterbits iorequest_cnt queue_type scsi_level type -- Patrick Mansfield - To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to [EMAIL PROTECTED

Re: [PATCH] Use device_for_each_child() to unregister devices in scsi_remove_target().

2005-07-11 Thread Patrick Mansfield
On Mon, Jul 11, 2005 at 05:20:12PM -0700, Greg KH wrote: On Tue, Jul 05, 2005 at 05:38:50PM -0700, Patrick Mansfield wrote: Hi Greg / Patrick - I'm getting an oops with current (pulled today) 2.6 git, the device_for_each_child() does not seem to be deletion safe. We hold the klist

Re: Perform uncached reads on SCSI drives?

2005-04-21 Thread Patrick Mansfield
appear to have a realistic result, then the rest will all complete in the neighborhood of 10 microseconds. -- Patrick Mansfield - 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

Re: [dm-devel] Re: fastfail operation and retries

2005-04-21 Thread Patrick Mansfield
On Fri, Apr 22, 2005 at 12:52:56AM +0200, Lars Marowsky-Bree wrote: On 2005-04-21T15:13:16, Patrick Mansfield [EMAIL PROTECTED] wrote: The most recent udm patchset has a patch by Jens Axboe and myself to pass up sense data / error codes in the bio so the dm mpath module can deal

Re: proc_name in sysfs

2005-04-07 Thread Patrick Mansfield
On Thu, Apr 07, 2005 at 11:06:03AM +1000, Douglas Gilbert wrote: Patrick Mansfield wrote: On Wed, Apr 06, 2005 at 01:40:04PM +0200, Frederic TEMPORELLI wrote: 2/ now, how can we get the adapter module name from sysfs ? Why do you need it? Patrick, lsscsi currently uses proc_name so

Re: proc_name in sysfs

2005-04-07 Thread Patrick Mansfield
On Thu, Apr 07, 2005 at 08:35:16AM +0200, Frederic TEMPORELLI wrote: Hi, Sorry, no such driver directory in /sys/class/scsi_host/hostX/ Doug answered that. Why do you need it? If you answer the above you might get better/other suggestions. -- Patrick Mansfield - To unsubscribe from

Re: proc_name in sysfs

2005-04-06 Thread Patrick Mansfield
} module (driver) is: ${module} done [elm3b79 tmp]$ sh ./xx.sh /sys/class/scsi_host/host0 module (driver) is: qla1280 /sys/class/scsi_host/host1 module (driver) is: qla1280 /sys/class/scsi_host/host2 module (driver) is: qla2300 /sys/class/scsi_host/host3 module (driver) is: qla2300 -- Patrick Mansfield

Re: [PATCH] 2/2 Use bus dev_attrs to create scsi_device attributes

2005-03-30 Thread Patrick Mansfield
On Wed, Mar 30, 2005 at 08:32:44PM +0200, Kay Sievers wrote: On Thu, 2005-03-17 at 09:53 -0500, James Bottomley wrote: On Wed, 2005-03-16 at 14:45 -0800, Patrick Mansfield wrote: Any comments on this? Should I resend these patches? Well, the basic comment is that there are a lot

Re: [PATCH] 2/2 Use bus dev_attrs to create scsi_device attributes

2005-03-16 Thread Patrick Mansfield
On Wed, Mar 02, 2005 at 11:46:47AM -0800, Patrick Mansfield wrote: Use bus dev_attrs to create the default scsi_device attributes. Note sdev_default_attrs is not a pointer to an array (like scsi_sysfs_sdev_attrs), and so DEVICE_ATTR's can be removed, and __ATTR used instaed. Any comments

[PATCH] 0/2 use sysfs bus dev_attrs for scsi_device attributes

2005-03-02 Thread Patrick Mansfield
queue_depth or queue_type. The attr_overridden (and post these patches, scsi_sysfs_sdev_attrs) should someday be removed, the only attribute being overridden (versus a host specific scsi_device attribute) today is queue_depth, and we have shost-change_queue_depth that can be used instead. -- Patrick

[PATCH] 1/2 remove attr_changed_internally

2005-03-02 Thread Patrick Mansfield
Get rid of the attr_changed_internally(), and always create queue_type and queue_depth as read/write, and then writes fail if not supported. Signed-off-by: Patrick Mansfield [EMAIL PROTECTED] --- linux-2.6.11/drivers/scsi/scsi_sysfs.c 2005-03-02 02:59:50.0 -0800 +++ sattrs-linux

[PATCH] 2/2 Use bus dev_attrs to create scsi_device attributes

2005-03-02 Thread Patrick Mansfield
Use bus dev_attrs to create the default scsi_device attributes. Note sdev_default_attrs is not a pointer to an array (like scsi_sysfs_sdev_attrs), and so DEVICE_ATTR's can be removed, and __ATTR used instaed. Signed-off-by: Patrick Mansfield [EMAIL PROTECTED] --- sattrs-linux-2.6.11/drivers

Re: [PATCH as470] Add a NOREPORTLUN blacklist flag

2005-02-21 Thread Patrick Mansfield
be useful... Probably not. -- Patrick Mansfield - 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

Re: [ANNOUNCE] hotplug-ng 001 release

2005-02-18 Thread Patrick Mansfield
): MODULE_ALIAS(scsi-type-*); -- Patrick Mansfield - 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

Re: [ANNOUNCE] hotplug-ng 001 release

2005-02-18 Thread Patrick Mansfield
On Fri, Feb 18, 2005 at 10:41:35PM +0300, Roman Kagan wrote: On Fri, Feb 18, 2005 at 10:33:50AM -0800, Patrick Mansfield wrote: The block SG_IO handles the ioctls, but not devices without a SCSI upper level driver (i.e. not tape, disk or cdrom). Then it might make sense to explicitly list

Re: scsi disk registration - double messages

2005-02-15 Thread Patrick Mansfield
) || !(state = check_partition(disk, bdev))) return 0; for (p = 1; p state-limit; p++) { -- Patrick Mansfield - 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

Re: [usb-storage] Re: MPIO HS200 Gigabox weird behaviour again

2005-02-11 Thread Patrick Mansfield
HBA drivers (the same is true for devinfo); I think this means manually loading scsi_mod, populate the tables, then allow hotplug loading of HBA drivers. We still need a nice way to display and modify a list or array in sysfs (for both the devinfo or this asc/ascq table). -- Patrick Mansfield

Re: still BUG's for smp_processor_id() on interrupt

2005-02-09 Thread Patrick Mansfield
On Tue, Feb 08, 2005 at 10:44:35PM -0800, Andrew Vasquez wrote: On Tue, 08 Feb 2005, Patrick Mansfield wrote: I'm still getting lots of BUG's for the smp_processor_id, but via the interrupt function. It's during the driver's init-time polling for interrupts... Argg

Re: still BUG's for smp_processor_id() on interrupt

2005-02-09 Thread Patrick Mansfield
the first one fix HBA removal problem with transport classes, plus it is NOT in mainline. I applied and no more oops (and no BUGs using _smp_processor_id()). -- Patrick Mansfield - To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to [EMAIL PROTECTED] More

still BUG's for smp_processor_id() on interrupt

2005-02-08 Thread Patrick Mansfield
] sys_init_module+0x111/0x270 [c0102443] syscall_call+0x7/0xb BUG: using smp_processor_id() in preemptible [0001] code: modprobe/1362 ... -- Patrick Mansfield - To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to [EMAIL PROTECTED] More majordomo info

Re: 2.6.11rc2 prints disksize twice

2005-01-31 Thread Patrick Mansfield
; for (p = 1; p state-limit; p++) { -- Patrick Mansfield - 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

Re: Mid-layer handling of NOT_READY conditions...

2005-01-31 Thread Patrick Mansfield
On Mon, Jan 31, 2005 at 11:56:02AM -0500, [EMAIL PROTECTED] wrote: On Sat, 2005-01-29 at 11:34 -0800, Patrick Mansfield wrote: Why not just set scmd-retries to zero in scsi_requeue_command()? This is exactly what I was thinking would be a fairly straight-forward approach

Re: Mid-layer handling of NOT_READY conditions...

2005-01-29 Thread Patrick Mansfield
or make it much less likely, and is still a good idea. And as a long term goal, losing the retry count and moving to allowing all retries for a period of time would avoid other potential problems, and not be tied to the speed of the system. -- Patrick Mansfield - To unsubscribe from this list: send

Re: How to add/drop SCSI drives from within the driver?

2005-01-25 Thread Patrick Mansfield
/dev.d/scsi/*.dev script or something else. I just tried something simple but did not get it working. Try [EMAIL PROTECTED] list for help. -- Patrick Mansfield - To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to [EMAIL PROTECTED] More majordomo info

Re: Problems with scsi_scan.c

2001-06-20 Thread Patrick Mansfield
7.1 2.4.2-2 kernel). You might want to check the specs, and see if you can modify the PQ value returned - some array devices can be configured to return different PQ values, since different operating systems behave differently based on the PQ. -- Patrick Mansfield - To unsubscribe from this list

Re: Who maintains the Fibre Channel QLogic SCSI drivers?

2001-03-15 Thread Patrick Mansfield
/21linux.html Specifically: http://www.qlogic.com/bbs-html/csg_web/drivers/linux/22xx/qla2x00src-4.24Beta.tgz I had a similiar issue with the qlogicisp.c driver (per email sent by Mike Anderson), no one answered if it was supported or not. -- Patrick Mansfield I know my question (about "this s