scsi/ibmvscsi: add module alias for ibmvscsic
Subsystems (3)
PATCH 1/1 scsi/ibmvscsi: add module alias for ibmvscsic
From: Olaf Hering <[email protected]>
The driver is named ibmvscsic, at runtime it its name is advertised as ibmvscsi. For this reason mkinitrd wont pickup the driver properly. Reported by IBM during SLES11 beta testing:
https://bugzilla.novell.com/show_bug.cgi?id=459933
LTC50724
drivers/scsi/ibmvscsi/ibmvscsi.c +6 -3
@@ -100,6 +100,9 @@ static struct scsi_transport_template *ibmvscsi_transport_template;static struct ibmvscsi_ops *ibmvscsi_ops; +/* The driver is named ibmvscsic, map ibmvscsi to module name */ +#define IBMVSCSI_NAME "ibmvscsi" +MODULE_ALIAS (IBMVSCSI_NAME );MODULE_DESCRIPTION ("IBM Virtual SCSI" );MODULE_AUTHOR ("Dave Boutcher" );MODULE_LICENSE ("GPL" );
@@ -1796,7 +1799,7 @@ static struct device_attribute *ibmvscsi_attrs[] = {static struct scsi_host_template driver_template = { .module =THIS_MODULE , .name ="IBM POWER Virtual SCSI Adapter " IBMVSCSI_VERSION , - .proc_name ="ibmvscsi" , + .proc_name =IBMVSCSI_NAME , .queuecommand = ibmvscsi_queuecommand, .eh_abort_handler = ibmvscsi_eh_abort_handler, .eh_device_reset_handler = ibmvscsi_eh_device_reset_handler,
@@ -1936,7 +1939,7 @@ static int ibmvscsi_probe(struct vio_dev *vdev, const struct vio_device_id *id) } hostdata->work_thread =kthread_run (ibmvscsi_work, hostdata,"%s_%d" , -"ibmvscsi" , host->host_no); +IBMVSCSI_NAME , host->host_no);if (IS_ERR (hostdata->work_thread)) { dev_err(&vdev->dev, "couldn't initialize kthread. rc=%ld\n",
@@ -2061,7 +2064,7 @@ static struct vio_driver ibmvscsi_driver = { .probe = ibmvscsi_probe, .remove = ibmvscsi_remove, .get_desired_dma = ibmvscsi_get_desired_dma, - .name = "ibmvscsi", + .name = IBMVSCSI_NAME, .pm = &ibmvscsi_pm_ops, };
Signature · 1 line
1.7.10.4
Quoted 8 lines · On Wed, 2012-07-18 at 18:49 +0200, [email protected] wrote:
From: Olaf Hering <[email protected]>
The driver is named ibmvscsic, at runtime it its name is advertised as ibmvscsi. For this reason mkinitrd wont pickup the driver properly. Reported by IBM during SLES11 beta testing:
So while this would work, I do wonder however whether we could instead fix it by simplifying the whole thing as follow since iSeries is now gone and so we don't need split backends anymore:
scsi/ibmvscsi: Remove backend abstraction
Now that the iSeries code is gone the backend abstraction in this driver is no longer necessary, which allows us to consolidate the driver in one file.
The side effect is that the module name is now ibmvscsi.ko which matches the driver hotplug name and fixes auto-load issues.
---
--- drivers/scsi/ibmvscsi/Makefile | 6 +- drivers/scsi/ibmvscsi/ibmvscsi.c | 348 +++++++++++++++++++++++++++++++++-- drivers/scsi/ibmvscsi/ibmvscsi.h | 22 --- drivers/scsi/ibmvscsi/rpa_vscsi.c | 368 ------------------------------------- 4 files changed, 330 insertions(+), 414 deletions(-) delete mode 100644 drivers/scsi/ibmvscsi/rpa_vscsi.c
drivers/scsi/ibmvscsi/Makefile +1 -5
@@ -1,7 +1,3 @@ -obj-$(CONFIG_SCSI_IBMVSCSI) += ibmvscsic.o - -ibmvscsic-y += ibmvscsi.o -ibmvscsic-$(CONFIG_PPC_PSERIES) += rpa_vscsi.o - +obj-$(CONFIG_SCSI_IBMVSCSI) += ibmvscsi.o obj-$(CONFIG_SCSI_IBMVSCSIS) += ibmvstgt.o obj-$(CONFIG_SCSI_IBMVFC) += ibmvfc.o
drivers/scsi/ibmvscsi/ibmvscsi.c +329 -19
432 lines not on this page · raw message
drivers/scsi/ibmvscsi/ibmvscsi.h +0 -22
@@ -107,26 +107,4 @@ struct ibmvscsi_host_data { dma_addr_t adapter_info_addr; }; -/* routines for managing a command/response queue */ -void ibmvscsi_handle_crq (struct viosrp_crq *crq, -struct ibmvscsi_host_data *hostdata); - -struct ibmvscsi_ops { -int (*init_crq_queue)(struct crq_queue *queue, -struct ibmvscsi_host_data *hostdata, -int max_requests); -void (*release_crq_queue)(struct crq_queue *queue, -struct ibmvscsi_host_data *hostdata, -int max_requests); -int (*reset_crq_queue)(struct crq_queue *queue, -struct ibmvscsi_host_data *hostdata); -int (*reenable_crq_queue)(struct crq_queue *queue, -struct ibmvscsi_host_data *hostdata); -int (*send_crq)(struct ibmvscsi_host_data *hostdata, -u64 word1,u64 word2); -int (*resume) (struct ibmvscsi_host_data *hostdata); -}; - -extern struct ibmvscsi_ops rpavscsi_ops; -#endif /* IBMVSCSI_H */
drivers/scsi/ibmvscsi/rpa_vscsi.c deleted +0 -368
368 lines not on this page · raw message
Quoted 7 lines · Benjamin Herrenschmidt
Quoted 6 lines · On Wed, 2012-07-18 at 18:49 +0200, [email protected] wrote:
From: Olaf Hering <[email protected]>
The driver is named ibmvscsic, at runtime it its name is advertised as ibmvscsi. For this reason mkinitrd wont pickup the driver properly. Reported by IBM during SLES11 beta testing:
Quoted 8 lines
Quoted 2 lines
So while this would work, I do wonder however whether we could instead fix it by simplifying the whole thing as follow since iSeries is now gone and so we don't need split backends anymore:
scsi/ibmvscsi: Remove backend abstraction
I cant that these things myself anymore.
Olaf
Quoted 8 lines · Olaf Hering
Quoted 1 line
So while this would work, I do wonder however whether we could
instead
Quoted 4 lines
fix it by simplifying the whole thing as follow since iSeries is now gone and so we don't need split backends anymore:
scsi/ibmvscsi: Remove backend abstraction
I cant that these things myself anymore.
Brian, can somebody from your side own these ?
Cheers,
Ben.
Quoted 11 lines · Benjamin Herrenschmidt
Quoted 8 lines · Olaf Hering
Quoted 1 line
So while this would work, I do wonder however whether we could
instead
Quoted 4 lines
fix it by simplifying the whole thing as follow since iSeries is now gone and so we don't need split backends anymore:
scsi/ibmvscsi: Remove backend abstraction
I cant that these things myself anymore.
Brian, can somebody from your side own these ?
I talked to Rob and he will be picking this up. Rob - can you submit a patch to the maintainers file, adding yourself as the ibmvscsi maintainer?
Thanks,
Brian
Signature · 3 lines
Brian King Power Linux I/O IBM Linux Technology Center
Quoted 9 lines · Brian King
Quoted 8 lines · Benjamin Herrenschmidt
Quoted 7 lines · Olaf Hering
Quoted 1 line
So while this would work, I do wonder however whether we could
instead
Quoted 4 lines
fix it by simplifying the whole thing as follow since iSeries is now gone and so we don't need split backends anymore:
scsi/ibmvscsi: Remove backend abstraction
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
I cant that these things myself anymore.
Brian, can somebody from your side own these ?
I talked to Rob and he will be picking this up. Rob - can you submit a patch to the maintainers file, adding yourself as the ibmvscsi maintainer?
Submitted a patch for the MAINTAINERS file and I'll take a look at these patches to verify them as well. Thanks.
--Rob Jennings
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev
Quoted 10 lines · Brian King
Quoted 8 lines · Benjamin Herrenschmidt
Quoted 7 lines · Olaf Hering
Quoted 1 line
So while this would work, I do wonder however whether we could
instead
Quoted 4 lines
fix it by simplifying the whole thing as follow since iSeries is now gone and so we don't need split backends anymore:
scsi/ibmvscsi: Remove backend abstraction
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
I cant that these things myself anymore.
Brian, can somebody from your side own these ?
I talked to Rob and he will be picking this up. Rob - can you submit a patch to the maintainers file, adding yourself as the ibmvscsi maintainer?
I've submitted a patch for the MAINTAINERS file and I'll take a look at these patches to verify them as well. Thanks.
--Rob Jennings
Robert Jennings
Acked-byQuoted 20 lines · Benjamin Herrenschmidt
Quoted 8 lines · On Wed, 2012-07-18 at 18:49 +0200, [email protected] wrote:
From: Olaf Hering <[email protected]>
The driver is named ibmvscsic, at runtime it its name is advertised as ibmvscsi. For this reason mkinitrd wont pickup the driver properly. Reported by IBM during SLES11 beta testing:
So while this would work, I do wonder however whether we could instead fix it by simplifying the whole thing as follow since iSeries is now gone and so we don't need split backends anymore:
scsi/ibmvscsi: Remove backend abstraction
Now that the iSeries code is gone the backend abstraction in this driver is no longer necessary, which allows us to consolidate the driver in one file.
Quoted 5 lines
The side effect is that the module name is now ibmvscsi.ko which matches the driver hotplug name and fixes auto-load issues.
Signed-off-by Benjamin Herrenschmidt <[email protected].
I've give this a quick test and I prefer this cleanup, it solves the initial problem nicely.
James, please consider pulling this patch. Thanks.