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
e4526d92
Commit
e4526d92
authored
Feb 08, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge penguin:v2.5/linux
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
42c7ef79
76a58ab3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
drivers/char/agp/agpgart_be.c
drivers/char/agp/agpgart_be.c
+5
-5
drivers/scsi/aha1542.c
drivers/scsi/aha1542.c
+3
-3
No files found.
drivers/char/agp/agpgart_be.c
View file @
e4526d92
...
@@ -2391,7 +2391,7 @@ static int amd_create_gatt_table(void)
...
@@ -2391,7 +2391,7 @@ static int amd_create_gatt_table(void)
agp_bridge
.
gatt_table_real
=
page_dir
.
real
;
agp_bridge
.
gatt_table_real
=
page_dir
.
real
;
agp_bridge
.
gatt_table
=
page_dir
.
remapped
;
agp_bridge
.
gatt_table
=
page_dir
.
remapped
;
agp_bridge
.
gatt_bus_addr
=
virt_to_
bu
s
(
page_dir
.
real
);
agp_bridge
.
gatt_bus_addr
=
virt_to_
phy
s
(
page_dir
.
real
);
/* Get the address for the gart region.
/* Get the address for the gart region.
* This is a bus address even on the alpha, b/c its
* This is a bus address even on the alpha, b/c its
...
@@ -2405,7 +2405,7 @@ static int amd_create_gatt_table(void)
...
@@ -2405,7 +2405,7 @@ static int amd_create_gatt_table(void)
/* Calculate the agp offset */
/* Calculate the agp offset */
for
(
i
=
0
;
i
<
value
->
num_entries
/
1024
;
i
++
,
addr
+=
0x00400000
)
{
for
(
i
=
0
;
i
<
value
->
num_entries
/
1024
;
i
++
,
addr
+=
0x00400000
)
{
page_dir
.
remapped
[
GET_PAGE_DIR_OFF
(
addr
)]
=
page_dir
.
remapped
[
GET_PAGE_DIR_OFF
(
addr
)]
=
virt_to_
bu
s
(
amd_irongate_private
.
gatt_pages
[
i
]
->
real
);
virt_to_
phy
s
(
amd_irongate_private
.
gatt_pages
[
i
]
->
real
);
page_dir
.
remapped
[
GET_PAGE_DIR_OFF
(
addr
)]
|=
0x00000001
;
page_dir
.
remapped
[
GET_PAGE_DIR_OFF
(
addr
)]
|=
0x00000001
;
}
}
...
@@ -3027,7 +3027,7 @@ static int serverworks_create_gatt_table(void)
...
@@ -3027,7 +3027,7 @@ static int serverworks_create_gatt_table(void)
for
(
i
=
0
;
i
<
1024
;
i
++
)
{
for
(
i
=
0
;
i
<
1024
;
i
++
)
{
serverworks_private
.
scratch_dir
.
remapped
[
i
]
=
(
unsigned
long
)
agp_bridge
.
scratch_page
;
serverworks_private
.
scratch_dir
.
remapped
[
i
]
=
(
unsigned
long
)
agp_bridge
.
scratch_page
;
page_dir
.
remapped
[
i
]
=
page_dir
.
remapped
[
i
]
=
virt_to_
bu
s
(
serverworks_private
.
scratch_dir
.
real
);
virt_to_
phy
s
(
serverworks_private
.
scratch_dir
.
real
);
page_dir
.
remapped
[
i
]
|=
0x00000001
;
page_dir
.
remapped
[
i
]
|=
0x00000001
;
}
}
...
@@ -3040,7 +3040,7 @@ static int serverworks_create_gatt_table(void)
...
@@ -3040,7 +3040,7 @@ static int serverworks_create_gatt_table(void)
agp_bridge
.
gatt_table_real
=
page_dir
.
real
;
agp_bridge
.
gatt_table_real
=
page_dir
.
real
;
agp_bridge
.
gatt_table
=
page_dir
.
remapped
;
agp_bridge
.
gatt_table
=
page_dir
.
remapped
;
agp_bridge
.
gatt_bus_addr
=
virt_to_
bu
s
(
page_dir
.
real
);
agp_bridge
.
gatt_bus_addr
=
virt_to_
phy
s
(
page_dir
.
real
);
/* Get the address for the gart region.
/* Get the address for the gart region.
* This is a bus address even on the alpha, b/c its
* This is a bus address even on the alpha, b/c its
...
@@ -3056,7 +3056,7 @@ static int serverworks_create_gatt_table(void)
...
@@ -3056,7 +3056,7 @@ static int serverworks_create_gatt_table(void)
for
(
i
=
0
;
i
<
value
->
num_entries
/
1024
;
i
++
)
{
for
(
i
=
0
;
i
<
value
->
num_entries
/
1024
;
i
++
)
{
page_dir
.
remapped
[
i
]
=
page_dir
.
remapped
[
i
]
=
virt_to_
bu
s
(
serverworks_private
.
gatt_pages
[
i
]
->
real
);
virt_to_
phy
s
(
serverworks_private
.
gatt_pages
[
i
]
->
real
);
page_dir
.
remapped
[
i
]
|=
0x00000001
;
page_dir
.
remapped
[
i
]
|=
0x00000001
;
}
}
...
...
drivers/scsi/aha1542.c
View file @
e4526d92
...
@@ -58,7 +58,7 @@ static void BAD_DMA(void *address, unsigned int length)
...
@@ -58,7 +58,7 @@ static void BAD_DMA(void *address, unsigned int length)
{
{
printk
(
KERN_CRIT
"buf vaddress %p paddress 0x%lx length %d
\n
"
,
printk
(
KERN_CRIT
"buf vaddress %p paddress 0x%lx length %d
\n
"
,
address
,
address
,
SCSI_BU
S
_PA
(
address
),
SCSI_BU
F
_PA
(
address
),
length
);
length
);
panic
(
"Buffer at physical address > 16Mb used for aha1542"
);
panic
(
"Buffer at physical address > 16Mb used for aha1542"
);
}
}
...
@@ -68,7 +68,7 @@ static void BAD_SG_DMA(Scsi_Cmnd * SCpnt,
...
@@ -68,7 +68,7 @@ static void BAD_SG_DMA(Scsi_Cmnd * SCpnt,
int
nseg
,
int
nseg
,
int
badseg
)
int
badseg
)
{
{
printk
(
KERN_CRIT
"sgpnt[%d:%d] page %p/0x%
l
x length %d
\n
"
,
printk
(
KERN_CRIT
"sgpnt[%d:%d] page %p/0x%x length %d
\n
"
,
badseg
,
nseg
,
badseg
,
nseg
,
page_address
(
sgpnt
[
badseg
].
page
)
+
sgpnt
[
badseg
].
offset
,
page_address
(
sgpnt
[
badseg
].
page
)
+
sgpnt
[
badseg
].
offset
,
SCSI_SG_PA
(
&
sgpnt
[
badseg
]),
SCSI_SG_PA
(
&
sgpnt
[
badseg
]),
...
@@ -727,7 +727,7 @@ static int aha1542_queuecommand(Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *))
...
@@ -727,7 +727,7 @@ static int aha1542_queuecommand(Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *))
panic
(
"Foooooooood fight!"
);
panic
(
"Foooooooood fight!"
);
};
};
any2scsi
(
cptr
[
i
].
dataptr
,
SCSI_SG_PA
(
&
sgpnt
[
i
]));
any2scsi
(
cptr
[
i
].
dataptr
,
SCSI_SG_PA
(
&
sgpnt
[
i
]));
if
(
SCSI_SG_PA
(
&
sgpnt
[
i
]
.
page
)
+
sgpnt
[
i
].
length
-
1
>
ISA_DMA_THRESHOLD
)
if
(
SCSI_SG_PA
(
&
sgpnt
[
i
])
+
sgpnt
[
i
].
length
-
1
>
ISA_DMA_THRESHOLD
)
BAD_SG_DMA
(
SCpnt
,
sgpnt
,
SCpnt
->
use_sg
,
i
);
BAD_SG_DMA
(
SCpnt
,
sgpnt
,
SCpnt
->
use_sg
,
i
);
any2scsi
(
cptr
[
i
].
datalen
,
sgpnt
[
i
].
length
);
any2scsi
(
cptr
[
i
].
datalen
,
sgpnt
[
i
].
length
);
};
};
...
...
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