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
b29cf443
Commit
b29cf443
authored
Oct 24, 2018
by
Vinod Koul
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'topic/intel' into for-linus
parents
9b01029d
f4d34aa8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
drivers/dma/idma64.c
drivers/dma/idma64.c
+2
-3
drivers/dma/ioat/init.c
drivers/dma/ioat/init.c
+11
-5
No files found.
drivers/dma/idma64.c
View file @
b29cf443
...
...
@@ -142,9 +142,8 @@ static void idma64_chan_irq(struct idma64 *idma64, unsigned short c,
{
struct
idma64_chan
*
idma64c
=
&
idma64
->
chan
[
c
];
struct
idma64_desc
*
desc
;
unsigned
long
flags
;
spin_lock
_irqsave
(
&
idma64c
->
vchan
.
lock
,
flags
);
spin_lock
(
&
idma64c
->
vchan
.
lock
);
desc
=
idma64c
->
desc
;
if
(
desc
)
{
if
(
status_err
&
(
1
<<
c
))
{
...
...
@@ -161,7 +160,7 @@ static void idma64_chan_irq(struct idma64 *idma64, unsigned short c,
if
(
idma64c
->
desc
==
NULL
||
desc
->
status
==
DMA_ERROR
)
idma64_stop_transfer
(
idma64c
);
}
spin_unlock
_irqrestore
(
&
idma64c
->
vchan
.
lock
,
flags
);
spin_unlock
(
&
idma64c
->
vchan
.
lock
);
}
static
irqreturn_t
idma64_irq
(
int
irq
,
void
*
dev
)
...
...
drivers/dma/ioat/init.c
View file @
b29cf443
...
...
@@ -129,7 +129,7 @@ static void
ioat_init_channel
(
struct
ioatdma_device
*
ioat_dma
,
struct
ioatdma_chan
*
ioat_chan
,
int
idx
);
static
void
ioat_intr_quirk
(
struct
ioatdma_device
*
ioat_dma
);
static
int
ioat_enumerate_channels
(
struct
ioatdma_device
*
ioat_dma
);
static
void
ioat_enumerate_channels
(
struct
ioatdma_device
*
ioat_dma
);
static
int
ioat3_dma_self_test
(
struct
ioatdma_device
*
ioat_dma
);
static
int
ioat_dca_enabled
=
1
;
...
...
@@ -575,7 +575,7 @@ static void ioat_dma_remove(struct ioatdma_device *ioat_dma)
* ioat_enumerate_channels - find and initialize the device's channels
* @ioat_dma: the ioat dma device to be enumerated
*/
static
int
ioat_enumerate_channels
(
struct
ioatdma_device
*
ioat_dma
)
static
void
ioat_enumerate_channels
(
struct
ioatdma_device
*
ioat_dma
)
{
struct
ioatdma_chan
*
ioat_chan
;
struct
device
*
dev
=
&
ioat_dma
->
pdev
->
dev
;
...
...
@@ -594,7 +594,7 @@ static int ioat_enumerate_channels(struct ioatdma_device *ioat_dma)
xfercap_log
=
readb
(
ioat_dma
->
reg_base
+
IOAT_XFERCAP_OFFSET
);
xfercap_log
&=
0x1f
;
/* bits [4:0] valid */
if
(
xfercap_log
==
0
)
return
0
;
return
;
dev_dbg
(
dev
,
"%s: xfercap = %d
\n
"
,
__func__
,
1
<<
xfercap_log
);
for
(
i
=
0
;
i
<
dma
->
chancnt
;
i
++
)
{
...
...
@@ -611,7 +611,6 @@ static int ioat_enumerate_channels(struct ioatdma_device *ioat_dma)
}
}
dma
->
chancnt
=
i
;
return
i
;
}
/**
...
...
@@ -1205,8 +1204,15 @@ static void ioat_shutdown(struct pci_dev *pdev)
spin_lock_bh
(
&
ioat_chan
->
prep_lock
);
set_bit
(
IOAT_CHAN_DOWN
,
&
ioat_chan
->
state
);
del_timer_sync
(
&
ioat_chan
->
timer
);
spin_unlock_bh
(
&
ioat_chan
->
prep_lock
);
/*
* Synchronization rule for del_timer_sync():
* - The caller must not hold locks which would prevent
* completion of the timer's handler.
* So prep_lock cannot be held before calling it.
*/
del_timer_sync
(
&
ioat_chan
->
timer
);
/* this should quiesce then reset */
ioat_reset_hw
(
ioat_chan
);
}
...
...
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