aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/hw/ehca/ehca_hca.c2
-rw-r--r--drivers/infiniband/hw/ehca/ehca_main.c19
-rw-r--r--drivers/infiniband/hw/ehca/ehca_mrmw.c10
3 files changed, 15 insertions, 16 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_hca.c b/drivers/infiniband/hw/ehca/ehca_hca.c
index 5bd7b591987e..8832123d1d0f 100644
--- a/drivers/infiniband/hw/ehca/ehca_hca.c
+++ b/drivers/infiniband/hw/ehca/ehca_hca.c
@@ -314,7 +314,7 @@ query_gid1:
314 return ret; 314 return ret;
315} 315}
316 316
317const u32 allowed_port_caps = ( 317static const u32 allowed_port_caps = (
318 IB_PORT_SM | IB_PORT_LED_INFO_SUP | IB_PORT_CM_SUP | 318 IB_PORT_SM | IB_PORT_LED_INFO_SUP | IB_PORT_CM_SUP |
319 IB_PORT_SNMP_TUNNEL_SUP | IB_PORT_DEVICE_MGMT_SUP | 319 IB_PORT_SNMP_TUNNEL_SUP | IB_PORT_DEVICE_MGMT_SUP |
320 IB_PORT_VENDOR_CLASS_SUP); 320 IB_PORT_VENDOR_CLASS_SUP);
diff --git a/drivers/infiniband/hw/ehca/ehca_main.c b/drivers/infiniband/hw/ehca/ehca_main.c
index a86ebcc79a95..65b3362cdb9b 100644
--- a/drivers/infiniband/hw/ehca/ehca_main.c
+++ b/drivers/infiniband/hw/ehca/ehca_main.c
@@ -57,16 +57,17 @@ MODULE_AUTHOR("Christoph Raisch <raisch@de.ibm.com>");
57MODULE_DESCRIPTION("IBM eServer HCA InfiniBand Device Driver"); 57MODULE_DESCRIPTION("IBM eServer HCA InfiniBand Device Driver");
58MODULE_VERSION(HCAD_VERSION); 58MODULE_VERSION(HCAD_VERSION);
59 59
60int ehca_open_aqp1 = 0; 60static int ehca_open_aqp1 = 0;
61static int ehca_hw_level = 0;
62static int ehca_poll_all_eqs = 1;
63static int ehca_mr_largepage = 1;
64
61int ehca_debug_level = 0; 65int ehca_debug_level = 0;
62int ehca_hw_level = 0;
63int ehca_nr_ports = 2; 66int ehca_nr_ports = 2;
64int ehca_use_hp_mr = 0; 67int ehca_use_hp_mr = 0;
65int ehca_port_act_time = 30; 68int ehca_port_act_time = 30;
66int ehca_poll_all_eqs = 1;
67int ehca_static_rate = -1; 69int ehca_static_rate = -1;
68int ehca_scaling_code = 0; 70int ehca_scaling_code = 0;
69int ehca_mr_largepage = 1;
70int ehca_lock_hcalls = -1; 71int ehca_lock_hcalls = -1;
71 72
72module_param_named(open_aqp1, ehca_open_aqp1, int, S_IRUGO); 73module_param_named(open_aqp1, ehca_open_aqp1, int, S_IRUGO);
@@ -396,7 +397,7 @@ init_node_guid1:
396 return ret; 397 return ret;
397} 398}
398 399
399int ehca_init_device(struct ehca_shca *shca) 400static int ehca_init_device(struct ehca_shca *shca)
400{ 401{
401 int ret; 402 int ret;
402 403
@@ -579,8 +580,8 @@ static ssize_t ehca_store_debug_level(struct device_driver *ddp,
579 return 1; 580 return 1;
580} 581}
581 582
582DRIVER_ATTR(debug_level, S_IRUSR | S_IWUSR, 583static DRIVER_ATTR(debug_level, S_IRUSR | S_IWUSR,
583 ehca_show_debug_level, ehca_store_debug_level); 584 ehca_show_debug_level, ehca_store_debug_level);
584 585
585static struct attribute *ehca_drv_attrs[] = { 586static struct attribute *ehca_drv_attrs[] = {
586 &driver_attr_debug_level.attr, 587 &driver_attr_debug_level.attr,
@@ -941,7 +942,7 @@ void ehca_poll_eqs(unsigned long data)
941 spin_unlock(&shca_list_lock); 942 spin_unlock(&shca_list_lock);
942} 943}
943 944
944int __init ehca_module_init(void) 945static int __init ehca_module_init(void)
945{ 946{
946 int ret; 947 int ret;
947 948
@@ -988,7 +989,7 @@ module_init1:
988 return ret; 989 return ret;
989}; 990};
990 991
991void __exit ehca_module_exit(void) 992static void __exit ehca_module_exit(void)
992{ 993{
993 if (ehca_poll_all_eqs == 1) 994 if (ehca_poll_all_eqs == 1)
994 del_timer_sync(&poll_eqs_timer); 995 del_timer_sync(&poll_eqs_timer);
diff --git a/drivers/infiniband/hw/ehca/ehca_mrmw.c b/drivers/infiniband/hw/ehca/ehca_mrmw.c
index e239bbf54da1..5e99c45493c1 100644
--- a/drivers/infiniband/hw/ehca/ehca_mrmw.c
+++ b/drivers/infiniband/hw/ehca/ehca_mrmw.c
@@ -1952,9 +1952,8 @@ next_kpage:
1952 return ret; 1952 return ret;
1953} 1953}
1954 1954
1955int ehca_set_pagebuf_phys(struct ehca_mr_pginfo *pginfo, 1955static int ehca_set_pagebuf_phys(struct ehca_mr_pginfo *pginfo,
1956 u32 number, 1956 u32 number, u64 *kpage)
1957 u64 *kpage)
1958{ 1957{
1959 int ret = 0; 1958 int ret = 0;
1960 struct ib_phys_buf *pbuf; 1959 struct ib_phys_buf *pbuf;
@@ -2012,9 +2011,8 @@ int ehca_set_pagebuf_phys(struct ehca_mr_pginfo *pginfo,
2012 return ret; 2011 return ret;
2013} 2012}
2014 2013
2015int ehca_set_pagebuf_fmr(struct ehca_mr_pginfo *pginfo, 2014static int ehca_set_pagebuf_fmr(struct ehca_mr_pginfo *pginfo,
2016 u32 number, 2015 u32 number, u64 *kpage)
2017 u64 *kpage)
2018{ 2016{
2019 int ret = 0; 2017 int ret = 0;
2020 u64 *fmrlist; 2018 u64 *fmrlist;