Displaying 20 results from an estimated 31 matches for "scsi_add_host".
2011 Sep 01
4
[PATCH 1/1] staging: hv: Add support for >2 TB LUN in storage driver.
...tatic int storvsc_probe(struct hv_device *device)
host->max_id = STORVSC_MAX_TARGETS;
/* max # of channels */
host->max_channel = STORVSC_MAX_CHANNELS - 1;
+ /* max cmd length */
+ host->max_cmd_len = STORVSC_MAX_CMD_LEN;
/* Register the HBA and start the scsi bus scan */
ret = scsi_add_host(host, &device->device);
--
1.7.1
2011 Sep 01
4
[PATCH 1/1] staging: hv: Add support for >2 TB LUN in storage driver.
...tatic int storvsc_probe(struct hv_device *device)
host->max_id = STORVSC_MAX_TARGETS;
/* max # of channels */
host->max_channel = STORVSC_MAX_CHANNELS - 1;
+ /* max cmd length */
+ host->max_cmd_len = STORVSC_MAX_CMD_LEN;
/* Register the HBA and start the scsi bus scan */
ret = scsi_add_host(host, &device->device);
--
1.7.1
2012 Jul 06
2
[PATCH] virtio-scsi: Add vdrv->scan for post VIRTIO_CONFIG_S_DRIVER_OK LUN scanning
...hanged, 17 insertions(+), 4 deletions(-)
diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c
index 1b38431..391b30d 100644
--- a/drivers/scsi/virtio_scsi.c
+++ b/drivers/scsi/virtio_scsi.c
@@ -481,9 +481,10 @@ static int __devinit virtscsi_probe(struct virtio_device *vdev)
err = scsi_add_host(shost, &vdev->dev);
if (err)
goto scsi_add_host_failed;
-
- scsi_scan_host(shost);
-
+ /*
+ * scsi_scan_host() happens in virtscsi_scan() via virtio_driver->scan()
+ * after VIRTIO_CONFIG_S_DRIVER_OK has been set..
+ */
return 0;
scsi_add_host_failed:
@@ -493,6 +494,13 @@ vir...
2012 Jul 06
2
[PATCH] virtio-scsi: Add vdrv->scan for post VIRTIO_CONFIG_S_DRIVER_OK LUN scanning
...hanged, 17 insertions(+), 4 deletions(-)
diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c
index 1b38431..391b30d 100644
--- a/drivers/scsi/virtio_scsi.c
+++ b/drivers/scsi/virtio_scsi.c
@@ -481,9 +481,10 @@ static int __devinit virtscsi_probe(struct virtio_device *vdev)
err = scsi_add_host(shost, &vdev->dev);
if (err)
goto scsi_add_host_failed;
-
- scsi_scan_host(shost);
-
+ /*
+ * scsi_scan_host() happens in virtscsi_scan() via virtio_driver->scan()
+ * after VIRTIO_CONFIG_S_DRIVER_OK has been set..
+ */
return 0;
scsi_add_host_failed:
@@ -493,6 +494,13 @@ vir...
2008 Sep 27
1
Build fails on new kernel source
...deprecated
(declared at include/linux/ioport.h:134)
drivers/scsi/BusLogic.c:818: warning: 'check_region' is deprecated
(declared at include/linux/ioport.h:134)
drivers/scsi/BusLogic.c: In function 'BusLogic_init':
drivers/scsi/BusLogic.c:2301: warning: ignoring return value of
'scsi_add_host', declared with attribute warn_unused_result
make[2]: *** [drivers/scsi/BusLogic.o] Error 1
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
It seems like a simple enough error to correct, but it seems kind of
odd that it would occur in...
2010 Apr 26
9
passthrough PCI SCSI device
I have a sles10sp3 vm that I''m trying to passthrough a scsi card, which
has a DLT tape drive attached. Anyone doing anything similar?
When I passthrough the scsi card (forced to do both ports), the vm dies
when it loads, I think during udev. I''m viewing the vm through
virt-manager, so I can''t scroll up and see what everything says.
Is there a way to get the text xm
2007 Jun 27
1
making new initrd, how to do it?
...27 03:57 pm>Loading megaraid_sas.ko module
<Jun/27 03:57 pm>megaraid_sas: Unknown symbol scsi_remove_host
<Jun/27 03:57 pm>megaraid_sas: Unknown symbol scsi_host_put
<Jun/27 03:57 pm>megaraid_sas: Unknown symbol scsi_scan_host
<Jun/27 03:57 pm>megaraid_sas: Unknown symbol scsi_add_host
<Jun/27 03:57 pm>megaraid_sas: Unknown symbol scsi_host_alloc
<Jun/27 03:57 pm>insmod: error inserting ''/lib/megaraid_sas.ko'': -1
Unknown symb
ol in module
<Jun/27 03:57 pm>Loading usb-storage.ko module
<Jun/27 03:57 pm>Creating root device.
<Jun/27 03...
2012 Jul 11
2
[PATCH-v2] virtio-scsi: Add vdrv->scan for post VIRTIO_CONFIG_S_DRIVER_OK LUN scanning
...struct Scsi_Host *shost = (struct Scsi_Host *)vdev->priv;
+
+ scsi_scan_host(shost);
+}
+
static void virtscsi_remove_vqs(struct virtio_device *vdev)
{
struct Scsi_Host *sh = virtio_scsi_host(vdev);
@@ -677,9 +684,10 @@ static int __devinit virtscsi_probe(struct virtio_device *vdev)
err = scsi_add_host(shost, &vdev->dev);
if (err)
goto scsi_add_host_failed;
-
- scsi_scan_host(shost);
-
+ /*
+ * scsi_scan_host() happens in virtscsi_scan() via virtio_driver->scan()
+ * after VIRTIO_CONFIG_S_DRIVER_OK has been set..
+ */
return 0;
scsi_add_host_failed:
@@ -735,6 +743,7 @@ stat...
2012 Jul 11
2
[PATCH-v2] virtio-scsi: Add vdrv->scan for post VIRTIO_CONFIG_S_DRIVER_OK LUN scanning
...struct Scsi_Host *shost = (struct Scsi_Host *)vdev->priv;
+
+ scsi_scan_host(shost);
+}
+
static void virtscsi_remove_vqs(struct virtio_device *vdev)
{
struct Scsi_Host *sh = virtio_scsi_host(vdev);
@@ -677,9 +684,10 @@ static int __devinit virtscsi_probe(struct virtio_device *vdev)
err = scsi_add_host(shost, &vdev->dev);
if (err)
goto scsi_add_host_failed;
-
- scsi_scan_host(shost);
-
+ /*
+ * scsi_scan_host() happens in virtscsi_scan() via virtio_driver->scan()
+ * after VIRTIO_CONFIG_S_DRIVER_OK has been set..
+ */
return 0;
scsi_add_host_failed:
@@ -735,6 +743,7 @@ stat...
2009 Jun 17
0
MPTSAS is broken in xen-3.4.x ?
...[<c0305179>] transport_setup_classdev+0x12/0x17
[ 23.820333] [<c0305065>] attribute_container_add_device+0xb6/0xed
[ 23.820333] [<c0305167>] transport_setup_classdev+0x0/0x17
[ 23.820333] [<c0334195>] scsi_sysfs_add_host+0x46/0x5a
[ 23.820333] [<c032c681>] scsi_add_host+0x137/0x17c
[ 23.820333] [<e3556821>] mptsas_probe+0x2f6/0x38d [mptsas]
[ 23.820333] [<c02adaa1>] local_pci_probe+0xb/0xc
[ 23.820333] [<c02ae01a>] pci_device_probe+0x44/0x66
[ 23.820333] [<c030b00e>] pci_bus_probe_wrapper+0x3a/0x3e
[ 23.820333] [<c03031b8&...
2014 Apr 07
3
[PATCH 6/6] virtio-scsi: Enable DIF/DIX modes in SCSI host LLD
..._TYPE2_PROTECTION |
> + SHOST_DIF_TYPE3_PROTECTION | SHOST_DIX_TYPE1_PROTECTION |
> + SHOST_DIX_TYPE2_PROTECTION | SHOST_DIX_TYPE3_PROTECTION;
> +
> + scsi_host_set_prot(shost, host_prot);
> + scsi_host_set_guard(shost, SHOST_DIX_GUARD_CRC);
> + }
> +
> err = scsi_add_host(shost, &vdev->dev);
> if (err)
> goto scsi_add_host_failed;
> @@ -990,6 +1031,7 @@ static struct virtio_device_id id_table[] = {
> static unsigned int features[] = {
> VIRTIO_SCSI_F_HOTPLUG,
> VIRTIO_SCSI_F_CHANGE,
> + VIRTIO_SCSI_F_T10_PI,
> };
>
>...
2014 Apr 07
3
[PATCH 6/6] virtio-scsi: Enable DIF/DIX modes in SCSI host LLD
..._TYPE2_PROTECTION |
> + SHOST_DIF_TYPE3_PROTECTION | SHOST_DIX_TYPE1_PROTECTION |
> + SHOST_DIX_TYPE2_PROTECTION | SHOST_DIX_TYPE3_PROTECTION;
> +
> + scsi_host_set_prot(shost, host_prot);
> + scsi_host_set_guard(shost, SHOST_DIX_GUARD_CRC);
> + }
> +
> err = scsi_add_host(shost, &vdev->dev);
> if (err)
> goto scsi_add_host_failed;
> @@ -990,6 +1031,7 @@ static struct virtio_device_id id_table[] = {
> static unsigned int features[] = {
> VIRTIO_SCSI_F_HOTPLUG,
> VIRTIO_SCSI_F_CHANGE,
> + VIRTIO_SCSI_F_T10_PI,
> };
>
>...
2011 Apr 29
17
[RESEND] [PATCH 00/18] Staging: hv: Cleanup vmbus driver code
This is a resend of the patches yet to be applied.
This patch-set addresses some of the bus/driver model cleanup that
Greg sugested over the last couple of days. In this patch-set we
deal with the following issues:
1) Cleanup error handling in the vmbus_probe() and
vmbus_child_device_register() functions. Fixed a
bug in the probe failure path as part of this cleanup.
2) The Windows
2011 Apr 29
17
[RESEND] [PATCH 00/18] Staging: hv: Cleanup vmbus driver code
This is a resend of the patches yet to be applied.
This patch-set addresses some of the bus/driver model cleanup that
Greg sugested over the last couple of days. In this patch-set we
deal with the following issues:
1) Cleanup error handling in the vmbus_probe() and
vmbus_child_device_register() functions. Fixed a
bug in the probe failure path as part of this cleanup.
2) The Windows
2009 Sep 30
1
SCSI driver for VMware's virtual HBA - V5.
...+ error = request_irq(adapter->irq, pvscsi_isr, IRQF_SHARED,
> + "pvscsi", adapter);
> + if (error) {
> + printk(KERN_ERR "pvscsi: unable to request IRQ: %d\n", error);
> + adapter->irq = 0;
> + goto out_reset_adapter;
> + }
> +
> + error = scsi_add_host(host, &pdev->dev);
> + if (error) {
> + printk(KERN_ERR "pvscsi: scsi_add_host failed: %d\n", error);
> + goto out_reset_adapter;
> + }
> +
> + dev_info(&pdev->dev, "VMware PVSCSI rev %d host #%u\n",
> + adapter->rev, host->host_no);...
2009 Sep 30
1
SCSI driver for VMware's virtual HBA - V5.
...+ error = request_irq(adapter->irq, pvscsi_isr, IRQF_SHARED,
> + "pvscsi", adapter);
> + if (error) {
> + printk(KERN_ERR "pvscsi: unable to request IRQ: %d\n", error);
> + adapter->irq = 0;
> + goto out_reset_adapter;
> + }
> +
> + error = scsi_add_host(host, &pdev->dev);
> + if (error) {
> + printk(KERN_ERR "pvscsi: scsi_add_host failed: %d\n", error);
> + goto out_reset_adapter;
> + }
> +
> + dev_info(&pdev->dev, "VMware PVSCSI rev %d host #%u\n",
> + adapter->rev, host->host_no);...
2009 Oct 13
1
SCSI driver for VMware's virtual HBA - V6.
...flags = IRQF_SHARED;
+ }
+
+ error = request_irq(adapter->irq, pvscsi_isr, flags,
+ "vmw_pvscsi", adapter);
+ if (error) {
+ printk(KERN_ERR
+ "vmw_pvscsi: unable to request IRQ: %d\n", error);
+ adapter->irq = 0;
+ goto out_reset_adapter;
+ }
+
+ error = scsi_add_host(host, &pdev->dev);
+ if (error) {
+ printk(KERN_ERR
+ "vmw_pvscsi: scsi_add_host failed: %d\n", error);
+ goto out_reset_adapter;
+ }
+
+ dev_info(&pdev->dev, "VMware PVSCSI rev %d host #%u\n",
+ adapter->rev, host->host_no);
+
+ pvscsi_unmask_int...
2009 Oct 13
1
SCSI driver for VMware's virtual HBA - V6.
...flags = IRQF_SHARED;
+ }
+
+ error = request_irq(adapter->irq, pvscsi_isr, flags,
+ "vmw_pvscsi", adapter);
+ if (error) {
+ printk(KERN_ERR
+ "vmw_pvscsi: unable to request IRQ: %d\n", error);
+ adapter->irq = 0;
+ goto out_reset_adapter;
+ }
+
+ error = scsi_add_host(host, &pdev->dev);
+ if (error) {
+ printk(KERN_ERR
+ "vmw_pvscsi: scsi_add_host failed: %d\n", error);
+ goto out_reset_adapter;
+ }
+
+ dev_info(&pdev->dev, "VMware PVSCSI rev %d host #%u\n",
+ adapter->rev, host->host_no);
+
+ pvscsi_unmask_int...
2012 Jul 04
13
[PATCH 0/6] tcm_vhost/virtio-scsi WIP code for-3.6
From: Nicholas Bellinger <nab at linux-iscsi.org>
Hi folks,
This series contains patches required to update tcm_vhost <-> virtio-scsi
connected hosts <-> guests to run on v3.5-rc2 mainline code. This series is
available on top of target-pending/auto-next here:
git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git tcm_vhost
This includes the necessary vhost
2012 Jul 04
13
[PATCH 0/6] tcm_vhost/virtio-scsi WIP code for-3.6
From: Nicholas Bellinger <nab at linux-iscsi.org>
Hi folks,
This series contains patches required to update tcm_vhost <-> virtio-scsi
connected hosts <-> guests to run on v3.5-rc2 mainline code. This series is
available on top of target-pending/auto-next here:
git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending.git tcm_vhost
This includes the necessary vhost