Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
linux
linux-davinci
Commits
2ccb04ec
Commit
2ccb04ec
authored
Feb 12, 2010
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau: remove PUSHBUF_CAL macro
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
9a391ad8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
drivers/gpu/drm/nouveau/nouveau_gem.c
drivers/gpu/drm/nouveau/nouveau_gem.c
+4
-6
No files found.
drivers/gpu/drm/nouveau/nouveau_gem.c
View file @
2ccb04ec
...
@@ -614,8 +614,6 @@ out:
...
@@ -614,8 +614,6 @@ out:
return
ret
;
return
ret
;
}
}
#define PUSHBUF_CAL (dev_priv->card_type >= NV_20)
int
int
nouveau_gem_ioctl_pushbuf_call
(
struct
drm_device
*
dev
,
void
*
data
,
nouveau_gem_ioctl_pushbuf_call
(
struct
drm_device
*
dev
,
void
*
data
,
struct
drm_file
*
file_priv
)
struct
drm_file
*
file_priv
)
...
@@ -703,7 +701,7 @@ nouveau_gem_ioctl_pushbuf_call(struct drm_device *dev, void *data,
...
@@ -703,7 +701,7 @@ nouveau_gem_ioctl_pushbuf_call(struct drm_device *dev, void *data,
/* If presumed return address doesn't match, we need to map the
/* If presumed return address doesn't match, we need to map the
* push buffer and fix it..
* push buffer and fix it..
*/
*/
if
(
!
PUSHBUF_CAL
)
{
if
(
dev_priv
->
card_type
<
NV_20
)
{
uint32_t
retaddy
;
uint32_t
retaddy
;
if
(
chan
->
dma
.
free
<
4
+
NOUVEAU_DMA_SKIPS
)
{
if
(
chan
->
dma
.
free
<
4
+
NOUVEAU_DMA_SKIPS
)
{
...
@@ -741,7 +739,7 @@ nouveau_gem_ioctl_pushbuf_call(struct drm_device *dev, void *data,
...
@@ -741,7 +739,7 @@ nouveau_gem_ioctl_pushbuf_call(struct drm_device *dev, void *data,
req
->
offset
/
4
,
req
->
offset
/
4
,
pbvirt
,
is_iomem
);
pbvirt
,
is_iomem
);
if
(
!
PUSHBUF_CAL
)
{
if
(
dev_priv
->
card_type
<
NV_20
)
{
nouveau_bo_wr32
(
pbbo
,
nouveau_bo_wr32
(
pbbo
,
req
->
offset
/
4
+
req
->
nr_dwords
-
2
,
req
->
offset
/
4
+
req
->
nr_dwords
-
2
,
req
->
suffix0
);
req
->
suffix0
);
...
@@ -763,7 +761,7 @@ nouveau_gem_ioctl_pushbuf_call(struct drm_device *dev, void *data,
...
@@ -763,7 +761,7 @@ nouveau_gem_ioctl_pushbuf_call(struct drm_device *dev, void *data,
nv50_dma_push
(
chan
,
pbbo
,
req
->
offset
,
req
->
nr_dwords
);
nv50_dma_push
(
chan
,
pbbo
,
req
->
offset
,
req
->
nr_dwords
);
}
else
}
else
if
(
PUSHBUF_CAL
)
{
if
(
dev_priv
->
card_type
>=
NV_20
)
{
ret
=
RING_SPACE
(
chan
,
2
);
ret
=
RING_SPACE
(
chan
,
2
);
if
(
ret
)
{
if
(
ret
)
{
NV_ERROR
(
dev
,
"cal_space: %d
\n
"
,
ret
);
NV_ERROR
(
dev
,
"cal_space: %d
\n
"
,
ret
);
...
@@ -805,7 +803,7 @@ out_next:
...
@@ -805,7 +803,7 @@ out_next:
req
->
suffix0
=
0x00000000
;
req
->
suffix0
=
0x00000000
;
req
->
suffix1
=
0x00000000
;
req
->
suffix1
=
0x00000000
;
}
else
}
else
if
(
PUSHBUF_CAL
)
{
if
(
dev_priv
->
card_type
>=
NV_20
)
{
req
->
suffix0
=
0x00020000
;
req
->
suffix0
=
0x00020000
;
req
->
suffix1
=
0x00000000
;
req
->
suffix1
=
0x00000000
;
}
else
{
}
else
{
...
...
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