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
e2f0176d
Commit
e2f0176d
authored
Oct 11, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge with DRI CVS tree
parent
82edf0ac
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
4 deletions
+26
-4
drivers/char/drm/drm_ioctl.h
drivers/char/drm/drm_ioctl.h
+15
-2
drivers/char/drm/drm_os_linux.h
drivers/char/drm/drm_os_linux.h
+1
-1
drivers/char/drm/mga_dma.c
drivers/char/drm/mga_dma.c
+10
-1
No files found.
drivers/char/drm/drm_ioctl.h
View file @
e2f0176d
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
#define __NO_VERSION__
#define __NO_VERSION__
#include "drmP.h"
#include "drmP.h"
int
DRM
(
irq_busid
)(
struct
inode
*
inode
,
struct
file
*
filp
,
int
DRM
(
irq_busid
)(
struct
inode
*
inode
,
struct
file
*
filp
,
unsigned
int
cmd
,
unsigned
long
arg
)
unsigned
int
cmd
,
unsigned
long
arg
)
{
{
...
@@ -41,8 +42,20 @@ int DRM(irq_busid)(struct inode *inode, struct file *filp,
...
@@ -41,8 +42,20 @@ int DRM(irq_busid)(struct inode *inode, struct file *filp,
if
(
copy_from_user
(
&
p
,
(
drm_irq_busid_t
*
)
arg
,
sizeof
(
p
)))
if
(
copy_from_user
(
&
p
,
(
drm_irq_busid_t
*
)
arg
,
sizeof
(
p
)))
return
-
EFAULT
;
return
-
EFAULT
;
dev
=
pci_find_slot
(
p
.
busnum
,
PCI_DEVFN
(
p
.
devnum
,
p
.
funcnum
));
dev
=
pci_find_slot
(
p
.
busnum
,
PCI_DEVFN
(
p
.
devnum
,
p
.
funcnum
));
if
(
dev
)
p
.
irq
=
dev
->
irq
;
if
(
!
dev
)
{
else
p
.
irq
=
0
;
DRM_ERROR
(
"pci_find_slot failed for %d:%d:%d
\n
"
,
p
.
busnum
,
p
.
devnum
,
p
.
funcnum
);
p
.
irq
=
0
;
goto
out
;
}
if
(
pci_enable_device
(
dev
)
!=
0
)
{
DRM_ERROR
(
"pci_enable_device failed for %d:%d:%d
\n
"
,
p
.
busnum
,
p
.
devnum
,
p
.
funcnum
);
p
.
irq
=
0
;
goto
out
;
}
p
.
irq
=
dev
->
irq
;
out:
DRM_DEBUG
(
"%d:%d:%d => IRQ %d
\n
"
,
DRM_DEBUG
(
"%d:%d:%d => IRQ %d
\n
"
,
p
.
busnum
,
p
.
devnum
,
p
.
funcnum
,
p
.
irq
);
p
.
busnum
,
p
.
devnum
,
p
.
funcnum
,
p
.
irq
);
if
(
copy_to_user
((
drm_irq_busid_t
*
)
arg
,
&
p
,
sizeof
(
p
)))
if
(
copy_to_user
((
drm_irq_busid_t
*
)
arg
,
&
p
,
sizeof
(
p
)))
...
...
drivers/char/drm/drm_os_linux.h
View file @
e2f0176d
...
@@ -74,7 +74,7 @@ do { \
...
@@ -74,7 +74,7 @@ do { \
ret = -EBUSY; \
ret = -EBUSY; \
break; \
break; \
} \
} \
schedule_timeout(
max(HZ/100,1)
); \
schedule_timeout(
(HZ/100 > 1) ? HZ/100 : 1
); \
if (signal_pending(current)) { \
if (signal_pending(current)) { \
ret = -EINTR; \
ret = -EINTR; \
break; \
break; \
...
...
drivers/char/drm/mga_dma.c
View file @
e2f0176d
...
@@ -157,9 +157,18 @@ void mga_do_dma_flush( drm_mga_private_t *dev_priv )
...
@@ -157,9 +157,18 @@ void mga_do_dma_flush( drm_mga_private_t *dev_priv )
{
{
drm_mga_primary_buffer_t
*
primary
=
&
dev_priv
->
prim
;
drm_mga_primary_buffer_t
*
primary
=
&
dev_priv
->
prim
;
u32
head
,
tail
;
u32
head
,
tail
;
DMA_LOCALS
;
u32
status
=
0
;
int
i
;
DMA_LOCALS
;
DRM_DEBUG
(
"
\n
"
);
DRM_DEBUG
(
"
\n
"
);
/* We need to wait so that we can do an safe flush */
for
(
i
=
0
;
i
<
dev_priv
->
usec_timeout
;
i
++
)
{
status
=
MGA_READ
(
MGA_STATUS
)
&
MGA_ENGINE_IDLE_MASK
;
if
(
status
==
MGA_ENDPRDMASTS
)
break
;
udelay
(
1
);
}
if
(
primary
->
tail
==
primary
->
last_flush
)
{
if
(
primary
->
tail
==
primary
->
last_flush
)
{
DRM_DEBUG
(
" bailing out...
\n
"
);
DRM_DEBUG
(
" bailing out...
\n
"
);
return
;
return
;
...
...
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