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
nexedi
linux
Commits
858c52d1
Commit
858c52d1
authored
Apr 18, 2008
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git://git.kernel.org/pub/scm/linux/kernel/git/jk/spufs
parents
77116849
ada397e9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
5 deletions
+13
-5
arch/powerpc/platforms/cell/spufs/coredump.c
arch/powerpc/platforms/cell/spufs/coredump.c
+6
-2
arch/powerpc/platforms/cell/spufs/file.c
arch/powerpc/platforms/cell/spufs/file.c
+2
-2
arch/powerpc/platforms/cell/spufs/run.c
arch/powerpc/platforms/cell/spufs/run.c
+4
-0
arch/powerpc/platforms/cell/spufs/switch.c
arch/powerpc/platforms/cell/spufs/switch.c
+1
-1
No files found.
arch/powerpc/platforms/cell/spufs/coredump.c
View file @
858c52d1
...
...
@@ -133,8 +133,6 @@ static struct spu_context *coredump_next_context(int *fd)
if
(
ctx
->
flags
&
SPU_CREATE_NOSCHED
)
continue
;
/* start searching the next fd next time we're called */
(
*
fd
)
++
;
break
;
}
...
...
@@ -157,6 +155,9 @@ int spufs_coredump_extra_notes_size(void)
break
;
size
+=
rc
;
/* start searching the next fd next time */
fd
++
;
}
return
size
;
...
...
@@ -239,6 +240,9 @@ int spufs_coredump_extra_notes_write(struct file *file, loff_t *foffset)
}
spu_release_saved
(
ctx
);
/* start searching the next fd next time */
fd
++
;
}
return
0
;
...
...
arch/powerpc/platforms/cell/spufs/file.c
View file @
858c52d1
...
...
@@ -1337,7 +1337,7 @@ static u64 spufs_signal1_type_get(struct spu_context *ctx)
return
ctx
->
ops
->
signal1_type_get
(
ctx
);
}
DEFINE_SPUFS_ATTRIBUTE
(
spufs_signal1_type
,
spufs_signal1_type_get
,
spufs_signal1_type_set
,
"%llu"
,
SPU_ATTR_ACQUIRE
);
spufs_signal1_type_set
,
"%llu
\n
"
,
SPU_ATTR_ACQUIRE
);
static
int
spufs_signal2_type_set
(
void
*
data
,
u64
val
)
...
...
@@ -1359,7 +1359,7 @@ static u64 spufs_signal2_type_get(struct spu_context *ctx)
return
ctx
->
ops
->
signal2_type_get
(
ctx
);
}
DEFINE_SPUFS_ATTRIBUTE
(
spufs_signal2_type
,
spufs_signal2_type_get
,
spufs_signal2_type_set
,
"%llu"
,
SPU_ATTR_ACQUIRE
);
spufs_signal2_type_set
,
"%llu
\n
"
,
SPU_ATTR_ACQUIRE
);
#if SPUFS_MMAP_4K
static
unsigned
long
spufs_mss_mmap_nopfn
(
struct
vm_area_struct
*
vma
,
...
...
arch/powerpc/platforms/cell/spufs/run.c
View file @
858c52d1
...
...
@@ -323,6 +323,10 @@ static int spu_process_callback(struct spu_context *ctx)
return
-
EINTR
;
}
/* need to re-get the ls, as it may have changed when we released the
* spu */
ls
=
(
void
__iomem
*
)
ctx
->
ops
->
get_ls
(
ctx
);
/* write result, jump over indirect pointer */
memcpy_toio
(
ls
+
ls_pointer
,
&
spu_ret
,
sizeof
(
spu_ret
));
ctx
->
ops
->
npc_write
(
ctx
,
npc
);
...
...
arch/powerpc/platforms/cell/spufs/switch.c
View file @
858c52d1
...
...
@@ -1815,6 +1815,7 @@ static void save_csa(struct spu_state *prev, struct spu *spu)
save_mfc_csr_ato
(
prev
,
spu
);
/* Step 24. */
save_mfc_tclass_id
(
prev
,
spu
);
/* Step 25. */
set_mfc_tclass_id
(
prev
,
spu
);
/* Step 26. */
save_mfc_cmd
(
prev
,
spu
);
/* Step 26a - moved from 44. */
purge_mfc_queue
(
prev
,
spu
);
/* Step 27. */
wait_purge_complete
(
prev
,
spu
);
/* Step 28. */
setup_mfc_sr1
(
prev
,
spu
);
/* Step 30. */
...
...
@@ -1831,7 +1832,6 @@ static void save_csa(struct spu_state *prev, struct spu *spu)
save_ppuint_mb
(
prev
,
spu
);
/* Step 41. */
save_ch_part1
(
prev
,
spu
);
/* Step 42. */
save_spu_mb
(
prev
,
spu
);
/* Step 43. */
save_mfc_cmd
(
prev
,
spu
);
/* Step 44. */
reset_ch
(
prev
,
spu
);
/* Step 45. */
}
...
...
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