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
69a6146d
Commit
69a6146d
authored
Nov 13, 2013
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nv10-: we no longer need to create nvsw object on user channels
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
eae389f9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
9 deletions
+32
-9
drivers/gpu/drm/nouveau/nouveau_abi16.c
drivers/gpu/drm/nouveau/nouveau_abi16.c
+1
-1
drivers/gpu/drm/nouveau/nouveau_chan.c
drivers/gpu/drm/nouveau/nouveau_chan.c
+3
-8
drivers/gpu/drm/nouveau/nouveau_drm.c
drivers/gpu/drm/nouveau/nouveau_drm.c
+27
-0
drivers/gpu/drm/nouveau/nouveau_drm.h
drivers/gpu/drm/nouveau/nouveau_drm.h
+1
-0
No files found.
drivers/gpu/drm/nouveau/nouveau_abi16.c
View file @
69a6146d
...
...
@@ -298,7 +298,7 @@ nouveau_abi16_ioctl_channel_alloc(ABI16_IOCTL_ARGS)
else
init
->
pushbuf_domains
=
NOUVEAU_GEM_DOMAIN_GART
;
if
(
device
->
card_type
<
NV_
C
0
)
{
if
(
device
->
card_type
<
NV_
1
0
)
{
init
->
subchan
[
0
].
handle
=
0x00000000
;
init
->
subchan
[
0
].
grclass
=
0x0000
;
init
->
subchan
[
1
].
handle
=
NvSw
;
...
...
drivers/gpu/drm/nouveau/nouveau_chan.c
View file @
69a6146d
...
...
@@ -346,22 +346,17 @@ nouveau_channel_init(struct nouveau_channel *chan, u32 vram, u32 gart)
for
(
i
=
0
;
i
<
NOUVEAU_DMA_SKIPS
;
i
++
)
OUT_RING
(
chan
,
0x00000000
);
/* allocate software object class (used for fences on <= nv05, and
* to signal flip completion), bind it to a subchannel.
*/
if
((
device
->
card_type
<
NV_E0
)
||
gart
/* nve0: want_nvsw */
)
{
/* allocate software object class (used for fences on <= nv05) */
if
(
device
->
card_type
<
NV_10
)
{
ret
=
nouveau_object_new
(
nv_object
(
client
),
chan
->
handle
,
NvSw
,
nouveau_abi16_swclass
(
chan
->
drm
),
NULL
,
0
,
&
object
);
NvSw
,
0x006e
,
NULL
,
0
,
&
object
);
if
(
ret
)
return
ret
;
swch
=
(
void
*
)
object
->
parent
;
swch
->
flip
=
nouveau_flip_complete
;
swch
->
flip_data
=
chan
;
}
if
(
device
->
card_type
<
NV_C0
)
{
ret
=
RING_SPACE
(
chan
,
2
);
if
(
ret
)
return
ret
;
...
...
drivers/gpu/drm/nouveau/nouveau_drm.c
View file @
69a6146d
...
...
@@ -37,6 +37,7 @@
#include <engine/device.h>
#include <engine/disp.h>
#include <engine/fifo.h>
#include <engine/software.h>
#include <subdev/vm.h>
...
...
@@ -191,6 +192,32 @@ nouveau_accel_init(struct nouveau_drm *drm)
return
;
}
ret
=
nouveau_object_new
(
nv_object
(
drm
),
NVDRM_CHAN
,
NVDRM_NVSW
,
nouveau_abi16_swclass
(
drm
),
NULL
,
0
,
&
object
);
if
(
ret
==
0
)
{
struct
nouveau_software_chan
*
swch
=
(
void
*
)
object
->
parent
;
ret
=
RING_SPACE
(
drm
->
channel
,
2
);
if
(
ret
==
0
)
{
if
(
device
->
card_type
<
NV_C0
)
{
BEGIN_NV04
(
drm
->
channel
,
NvSubSw
,
0
,
1
);
OUT_RING
(
drm
->
channel
,
NVDRM_NVSW
);
}
else
if
(
device
->
card_type
<
NV_E0
)
{
BEGIN_NVC0
(
drm
->
channel
,
FermiSw
,
0
,
1
);
OUT_RING
(
drm
->
channel
,
0x001f0000
);
}
}
swch
=
(
void
*
)
object
->
parent
;
swch
->
flip
=
nouveau_flip_complete
;
swch
->
flip_data
=
drm
->
channel
;
}
if
(
ret
)
{
NV_ERROR
(
drm
,
"failed to allocate software object, %d
\n
"
,
ret
);
nouveau_accel_fini
(
drm
);
return
;
}
if
(
device
->
card_type
<
NV_C0
)
{
ret
=
nouveau_gpuobj_new
(
drm
->
device
,
NULL
,
32
,
0
,
0
,
&
drm
->
notify
);
...
...
drivers/gpu/drm/nouveau/nouveau_drm.h
View file @
69a6146d
...
...
@@ -56,6 +56,7 @@ enum nouveau_drm_handle {
NVDRM_CONTROL
=
0xdddddddc
,
NVDRM_PUSH
=
0xbbbb0000
,
/* |= client chid */
NVDRM_CHAN
=
0xcccc0000
,
/* |= client chid */
NVDRM_NVSW
=
0x55550000
,
};
struct
nouveau_cli
{
...
...
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