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
407b3ea0
Commit
407b3ea0
authored
Jul 15, 2021
by
Vinod Koul
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixes' into next
Signed-off-by:
Vinod Koul
<
vkoul@kernel.org
>
parents
4faee8b6
d5c10e0f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
drivers/dma/idxd/init.c
drivers/dma/idxd/init.c
+3
-1
drivers/dma/sh/usb-dmac.c
drivers/dma/sh/usb-dmac.c
+1
-1
drivers/dma/xilinx/xilinx_dma.c
drivers/dma/xilinx/xilinx_dma.c
+12
-0
No files found.
drivers/dma/idxd/init.c
View file @
407b3ea0
...
...
@@ -102,6 +102,8 @@ static int idxd_setup_interrupts(struct idxd_device *idxd)
spin_lock_init
(
&
idxd
->
irq_entries
[
i
].
list_lock
);
}
idxd_msix_perm_setup
(
idxd
);
irq_entry
=
&
idxd
->
irq_entries
[
0
];
rc
=
request_threaded_irq
(
irq_entry
->
vector
,
NULL
,
idxd_misc_thread
,
0
,
"idxd-misc"
,
irq_entry
);
...
...
@@ -148,7 +150,6 @@ static int idxd_setup_interrupts(struct idxd_device *idxd)
}
idxd_unmask_error_interrupts
(
idxd
);
idxd_msix_perm_setup
(
idxd
);
return
0
;
err_wq_irqs:
...
...
@@ -162,6 +163,7 @@ static int idxd_setup_interrupts(struct idxd_device *idxd)
err_misc_irq:
/* Disable error interrupt generation */
idxd_mask_error_interrupts
(
idxd
);
idxd_msix_perm_clear
(
idxd
);
err_irq_entries:
pci_free_irq_vectors
(
pdev
);
dev_err
(
dev
,
"No usable interrupts
\n
"
);
...
...
drivers/dma/sh/usb-dmac.c
View file @
407b3ea0
...
...
@@ -855,8 +855,8 @@ static int usb_dmac_probe(struct platform_device *pdev)
error:
of_dma_controller_free
(
pdev
->
dev
.
of_node
);
pm_runtime_put
(
&
pdev
->
dev
);
error_pm:
pm_runtime_put
(
&
pdev
->
dev
);
pm_runtime_disable
(
&
pdev
->
dev
);
return
ret
;
}
...
...
drivers/dma/xilinx/xilinx_dma.c
View file @
407b3ea0
...
...
@@ -394,6 +394,7 @@ struct xilinx_dma_tx_descriptor {
* @genlock: Support genlock mode
* @err: Channel has errors
* @idle: Check for channel idle
* @terminating: Check for channel being synchronized by user
* @tasklet: Cleanup work after irq
* @config: Device configuration info
* @flush_on_fsync: Flush on Frame sync
...
...
@@ -431,6 +432,7 @@ struct xilinx_dma_chan {
bool
genlock
;
bool
err
;
bool
idle
;
bool
terminating
;
struct
tasklet_struct
tasklet
;
struct
xilinx_vdma_config
config
;
bool
flush_on_fsync
;
...
...
@@ -1049,6 +1051,13 @@ static void xilinx_dma_chan_desc_cleanup(struct xilinx_dma_chan *chan)
/* Run any dependencies, then free the descriptor */
dma_run_dependencies
(
&
desc
->
async_tx
);
xilinx_dma_free_tx_descriptor
(
chan
,
desc
);
/*
* While we ran a callback the user called a terminate function,
* which takes care of cleaning up any remaining descriptors
*/
if
(
chan
->
terminating
)
break
;
}
spin_unlock_irqrestore
(
&
chan
->
lock
,
flags
);
...
...
@@ -1965,6 +1974,8 @@ static dma_cookie_t xilinx_dma_tx_submit(struct dma_async_tx_descriptor *tx)
if
(
desc
->
cyclic
)
chan
->
cyclic
=
true
;
chan
->
terminating
=
false
;
spin_unlock_irqrestore
(
&
chan
->
lock
,
flags
);
return
cookie
;
...
...
@@ -2436,6 +2447,7 @@ static int xilinx_dma_terminate_all(struct dma_chan *dchan)
xilinx_dma_chan_reset
(
chan
);
/* Remove and free all of the descriptors in the lists */
chan
->
terminating
=
true
;
xilinx_dma_free_descriptors
(
chan
);
chan
->
idle
=
true
;
...
...
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