Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
767dcd42
Commit
767dcd42
authored
May 27, 2010
by
Roland Dreier
Browse files
Options
Browse Files
Download
Plain Diff
Merge branches 'misc' and 'qib' into for-next
parents
e642df6a
7145c45a
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
200 additions
and
614 deletions
+200
-614
drivers/infiniband/hw/qib/qib_fs.c
drivers/infiniband/hw/qib/qib_fs.c
+15
-10
drivers/infiniband/hw/qib/qib_iba6120.c
drivers/infiniband/hw/qib/qib_iba6120.c
+0
-12
drivers/infiniband/hw/qib/qib_iba7322.c
drivers/infiniband/hw/qib/qib_iba7322.c
+179
-592
drivers/infiniband/hw/qib/qib_init.c
drivers/infiniband/hw/qib/qib_init.c
+6
-0
No files found.
drivers/infiniband/hw/qib/qib_fs.c
View file @
767dcd42
...
...
@@ -144,10 +144,11 @@ static ssize_t dev_counters_read(struct file *file, char __user *buf,
size_t
count
,
loff_t
*
ppos
)
{
u64
*
counters
;
size_t
avail
;
struct
qib_devdata
*
dd
=
private2dd
(
file
);
return
simple_read_from_buffer
(
buf
,
count
,
ppos
,
counters
,
dd
->
f_read_cntrs
(
dd
,
*
ppos
,
NULL
,
&
counters
)
);
avail
=
dd
->
f_read_cntrs
(
dd
,
*
ppos
,
NULL
,
&
counters
);
return
simple_read_from_buffer
(
buf
,
count
,
ppos
,
counters
,
avail
);
}
/* read the per-device counters */
...
...
@@ -155,10 +156,11 @@ static ssize_t dev_names_read(struct file *file, char __user *buf,
size_t
count
,
loff_t
*
ppos
)
{
char
*
names
;
size_t
avail
;
struct
qib_devdata
*
dd
=
private2dd
(
file
);
return
simple_read_from_buffer
(
buf
,
count
,
ppos
,
names
,
dd
->
f_read_cntrs
(
dd
,
*
ppos
,
&
names
,
NULL
)
);
avail
=
dd
->
f_read_cntrs
(
dd
,
*
ppos
,
&
names
,
NULL
);
return
simple_read_from_buffer
(
buf
,
count
,
ppos
,
names
,
avail
);
}
static
const
struct
file_operations
cntr_ops
[]
=
{
...
...
@@ -176,10 +178,11 @@ static ssize_t portnames_read(struct file *file, char __user *buf,
size_t
count
,
loff_t
*
ppos
)
{
char
*
names
;
size_t
avail
;
struct
qib_devdata
*
dd
=
private2dd
(
file
);
return
simple_read_from_buffer
(
buf
,
count
,
ppos
,
names
,
dd
->
f_read_portcntrs
(
dd
,
*
ppos
,
0
,
&
names
,
NULL
)
);
avail
=
dd
->
f_read_portcntrs
(
dd
,
*
ppos
,
0
,
&
names
,
NULL
);
return
simple_read_from_buffer
(
buf
,
count
,
ppos
,
names
,
avail
);
}
/* read the per-port counters for port 1 (pidx 0) */
...
...
@@ -187,10 +190,11 @@ static ssize_t portcntrs_1_read(struct file *file, char __user *buf,
size_t
count
,
loff_t
*
ppos
)
{
u64
*
counters
;
size_t
avail
;
struct
qib_devdata
*
dd
=
private2dd
(
file
);
return
simple_read_from_buffer
(
buf
,
count
,
ppos
,
counters
,
dd
->
f_read_portcntrs
(
dd
,
*
ppos
,
0
,
NULL
,
&
counters
)
);
avail
=
dd
->
f_read_portcntrs
(
dd
,
*
ppos
,
0
,
NULL
,
&
counters
);
return
simple_read_from_buffer
(
buf
,
count
,
ppos
,
counters
,
avail
);
}
/* read the per-port counters for port 2 (pidx 1) */
...
...
@@ -198,10 +202,11 @@ static ssize_t portcntrs_2_read(struct file *file, char __user *buf,
size_t
count
,
loff_t
*
ppos
)
{
u64
*
counters
;
size_t
avail
;
struct
qib_devdata
*
dd
=
private2dd
(
file
);
return
simple_read_from_buffer
(
buf
,
count
,
ppos
,
counters
,
dd
->
f_read_portcntrs
(
dd
,
*
ppos
,
1
,
NULL
,
&
counters
)
);
avail
=
dd
->
f_read_portcntrs
(
dd
,
*
ppos
,
1
,
NULL
,
&
counters
);
return
simple_read_from_buffer
(
buf
,
count
,
ppos
,
counters
,
avail
);
}
static
const
struct
file_operations
portcntr_ops
[]
=
{
...
...
drivers/infiniband/hw/qib/qib_iba6120.c
View file @
767dcd42
...
...
@@ -3475,14 +3475,6 @@ struct qib_devdata *qib_init_iba6120_funcs(struct pci_dev *pdev,
struct
qib_devdata
*
dd
;
int
ret
;
#ifndef CONFIG_PCI_MSI
qib_early_err
(
&
pdev
->
dev
,
"QLogic PCIE device 0x%x cannot "
"work if CONFIG_PCI_MSI is not enabled
\n
"
,
ent
->
device
);
dd
=
ERR_PTR
(
-
ENODEV
);
goto
bail
;
#endif
dd
=
qib_alloc_devdata
(
pdev
,
sizeof
(
struct
qib_pportdata
)
+
sizeof
(
struct
qib_chip_specific
));
if
(
IS_ERR
(
dd
))
...
...
@@ -3554,10 +3546,6 @@ struct qib_devdata *qib_init_iba6120_funcs(struct pci_dev *pdev,
if
(
qib_mini_init
)
goto
bail
;
#ifndef CONFIG_PCI_MSI
qib_dev_err
(
dd
,
"PCI_MSI not configured, NO interrupts
\n
"
);
#endif
if
(
qib_pcie_params
(
dd
,
8
,
NULL
,
NULL
))
qib_dev_err
(
dd
,
"Failed to setup PCIe or interrupts; "
"continuing anyway
\n
"
);
...
...
drivers/infiniband/hw/qib/qib_iba7322.c
View file @
767dcd42
This diff is collapsed.
Click to expand it.
drivers/infiniband/hw/qib/qib_init.c
View file @
767dcd42
...
...
@@ -1237,7 +1237,13 @@ static int __devinit qib_init_one(struct pci_dev *pdev,
*/
switch
(
ent
->
device
)
{
case
PCI_DEVICE_ID_QLOGIC_IB_6120
:
#ifdef CONFIG_PCI_MSI
dd
=
qib_init_iba6120_funcs
(
pdev
,
ent
);
#else
qib_early_err
(
&
pdev
->
dev
,
"QLogic PCIE device 0x%x cannot "
"work if CONFIG_PCI_MSI is not enabled
\n
"
,
ent
->
device
);
#endif
break
;
case
PCI_DEVICE_ID_QLOGIC_IB_7220
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment