Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dma_ip_drivers
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
dma_ip_drivers
Commits
520b6d92
Commit
520b6d92
authored
Jul 26, 2022
by
ll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimis driver
parent
a7219ec0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
XDMA/linux-kernel/xdma/libxdma.c
XDMA/linux-kernel/xdma/libxdma.c
+2
-2
XDMA/linux-kernel/xdma/libxdma.h
XDMA/linux-kernel/xdma/libxdma.h
+2
-2
XDMA/linux-kernel/xdma/xdma_thread.c
XDMA/linux-kernel/xdma/xdma_thread.c
+2
-1
No files found.
XDMA/linux-kernel/xdma/libxdma.c
View file @
520b6d92
...
...
@@ -1123,7 +1123,7 @@ static int engine_service(struct xdma_engine *engine, int desc_writeback)
* engine status. For polled mode descriptor completion, this read is
* unnecessary and is skipped to reduce latency
*/
if
((
desc_count
==
0
)
||
(
err_flag
!=
0
)
)
{
if
((
(
desc_count
==
0
)
||
(
err_flag
!=
0
))
&&
!
poll_mode
)
{
rv
=
engine_status_read
(
engine
,
1
,
0
);
if
(
rv
<
0
)
{
pr_err
(
"Failed to read engine status
\n
"
);
...
...
@@ -1150,7 +1150,7 @@ static int engine_service(struct xdma_engine *engine, int desc_writeback)
* from HW. In polled mode descriptor completion, this read is
* unnecessary and is skipped to reduce latency
*/
if
(
!
desc_count
)
if
(
!
desc_count
&&
!
poll_mode
)
desc_count
=
read_register
(
&
engine
->
regs
->
completed_desc_count
);
dbg_tfr
(
"%s wb 0x%x, desc_count %u, err %u, dequeued %u.
\n
"
,
engine
->
name
,
desc_writeback
,
desc_count
,
err_flag
,
...
...
XDMA/linux-kernel/xdma/libxdma.h
View file @
520b6d92
...
...
@@ -76,9 +76,9 @@
#define XDMA_BAR_SIZE (0x8000UL)
/* Use this definition to poll several times between calls to schedule */
#define NUM_POLLS_PER_SCHED
10
0
#define NUM_POLLS_PER_SCHED
6
0
#define XDMA_CHANNEL_NUM_MAX (
4
)
#define XDMA_CHANNEL_NUM_MAX (
1
)
/*
* interrupts per engine, rad2_vul.sv:237
* .REG_IRQ_OUT (reg_irq_from_ch[(channel*2) +: 2]),
...
...
XDMA/linux-kernel/xdma/xdma_thread.c
View file @
520b6d92
...
...
@@ -295,7 +295,8 @@ int xdma_threads_create(unsigned int num_threads)
thp
=
cs_threads
;
for_each_online_cpu
(
cpu
)
{
pr_debug
(
"index %d cpu %d online
\n
"
,
thread_cnt
,
cpu
);
thp
->
cpu
=
cpu
;
thp
->
cpu
=
(
num_online_cpus
()
-
1
)
-
cpu
;
printk
(
"index %d cpu %d online
\n
"
,
thread_cnt
,
thp
->
cpu
);
thp
->
timeout
=
0
;
thp
->
fproc
=
xdma_thread_cmpl_status_proc
;
thp
->
fpending
=
xdma_thread_cmpl_status_pend
;
...
...
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