From: VMware, Inc <> Date: Thu, 17 Dec 2009 21:30:02 +0000 (-0800) Subject: Remove MSI depndency on kernel version. X-Git-Tag: 2009.12.16-217847~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9365f76e0c88bb3b07c60fd210e22b531b1e596;p=thirdparty%2Fopen-vm-tools.git Remove MSI depndency on kernel version. No need to worry about the suboptimal MSI implementation in older kernels. Now that we only build for 2.6.16 and higher, get rid of those MSI dependencies. Signed-off-by: Marcelo Vanzin --- diff --git a/open-vm-tools/modules/linux/pvscsi/pvscsi.c b/open-vm-tools/modules/linux/pvscsi/pvscsi.c index e2345afa5..5a9d22b02 100644 --- a/open-vm-tools/modules/linux/pvscsi/pvscsi.c +++ b/open-vm-tools/modules/linux/pvscsi/pvscsi.c @@ -26,10 +26,10 @@ #include #include -#include -#include #include #include +#include + #include #include #include @@ -65,13 +65,6 @@ MODULE_INFO(supported, "external"); #define PVSCSI_DEFAULT_NUM_PAGES_MSG_RING 1 #define PVSCSI_DEFAULT_QUEUE_DEPTH 64 -/* MSI has horrible performance in < 2.6.13 due to needless mask frotzing */ -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 13) -#define PVSCSI_DISABLE_MSI 0 -#else -#define PVSCSI_DISABLE_MSI 1 -#endif - /* MSI-X has horrible performance in < 2.6.19 due to needless mask frobbing */ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 19) #define PVSCSI_DISABLE_MSIX 0 @@ -146,7 +139,7 @@ static int pvscsi_debug_level; static int pvscsi_ring_pages = PVSCSI_DEFAULT_NUM_PAGES_PER_RING; static int pvscsi_msg_ring_pages = PVSCSI_DEFAULT_NUM_PAGES_MSG_RING; static int pvscsi_cmd_per_lun = PVSCSI_DEFAULT_QUEUE_DEPTH; -static int pvscsi_disable_msi = PVSCSI_DISABLE_MSI; +static int pvscsi_disable_msi; static int pvscsi_disable_msix = PVSCSI_DISABLE_MSIX; static int pvscsi_use_msg = TRUE; @@ -168,8 +161,7 @@ MODULE_PARM_DESC(cmd_per_lun, "Maximum commands per lun - (default=" __stringify(PVSCSI_MAX_REQ_QUEUE_DEPTH) ")"); module_param_named(disable_msi, pvscsi_disable_msi, bool, PVSCSI_RW); -MODULE_PARM_DESC(disable_msi, "Disable MSI use in driver - (default=" - __stringify(PVSCSI_DISABLE_MSI) ")"); +MODULE_PARM_DESC(disable_msi, "Disable MSI use in driver - (default=0)"); module_param_named(disable_msix, pvscsi_disable_msix, bool, PVSCSI_RW); MODULE_PARM_DESC(disable_msix, "Disable MSI-X use in driver - (default="