Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC TDC 1ns 5cha - Software
Commits
583328e6
Commit
583328e6
authored
Sep 26, 2018
by
Juan David González Cobas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add some traces
parent
4dbf3185
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
ft-irq.c
kernel/ft-irq.c
+6
-1
No files found.
kernel/ft-irq.c
View file @
583328e6
...
...
@@ -292,6 +292,7 @@ static void ft_dma_work(struct work_struct *work)
loop
=
(
unsigned
long
*
)
&
irq_stat
;
/* arm all csets */
n_block
=
0
;
printk
(
KERN_INFO
"ft->zdev->n_cset = %d
\n
"
,
ft
->
zdev
->
n_cset
);
for_each_set_bit
(
i
,
loop
,
ft
->
zdev
->
n_cset
)
{
st
=
&
ft
->
channels
[
i
];
cset
=
&
ft
->
zdev
->
cset
[
i
];
...
...
@@ -299,7 +300,7 @@ static void ft_dma_work(struct work_struct *work)
base_cur
[
n_block
]
=
st
->
buf_addr
[
transfer
];
cset
->
ti
->
nsamples
=
ft_buffer_count
(
ft
,
i
);
printk
(
KERN_INFO
"cset->ti->nsamples = %d
\n
"
,
cset
->
ti
->
nsamples
);
zio_arm_trigger
(
cset
->
ti
);
/* actually arm'n'fire */
if
(
!
zio_cset_can_acquire
(
cset
))
{
dev_warn
(
&
cset
->
head
.
dev
,
...
...
@@ -314,6 +315,10 @@ static void ft_dma_work(struct work_struct *work)
and probably it should not */
ft
->
zdma
=
zio_dma_alloc_sg
(
cset
->
chan
,
ft
->
fmc
->
hwdev
,
blocks
,
n_block
,
GFP_ATOMIC
);
printk
(
KERN_INFO
"n_block = %d
\n
"
,
n_block
);
printk
(
KERN_INFO
"cset->chan = %p, ft->fmc->hwdev = %p
\n
"
,
cset
->
chan
,
ft
->
fmc
->
hwdev
);
printk
(
KERN_INFO
"return = %p
\n
"
,
ft
->
zdma
);
if
(
IS_ERR_OR_NULL
(
ft
->
zdma
))
goto
err_alloc
;
for
(
i
=
0
;
i
<
n_block
;
++
i
)
...
...
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