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
9bd36ed7
Commit
9bd36ed7
authored
Jul 23, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
http://ppc.bkbits.net/for-linus-ppc64
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
6f78e912
0880790a
Changes
22
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
255 additions
and
208 deletions
+255
-208
arch/i386/config.in
arch/i386/config.in
+0
-4
arch/ppc/config.in
arch/ppc/config.in
+0
-1
arch/ppc64/kernel/pSeries_lpar.c
arch/ppc64/kernel/pSeries_lpar.c
+7
-2
drivers/char/hvc_console.c
drivers/char/hvc_console.c
+25
-1
drivers/scsi/README.st
drivers/scsi/README.st
+20
-9
drivers/scsi/scsi_lib.c
drivers/scsi/scsi_lib.c
+1
-1
drivers/scsi/st.c
drivers/scsi/st.c
+169
-173
drivers/scsi/st.h
drivers/scsi/st.h
+14
-3
include/asm-arm/tlb.h
include/asm-arm/tlb.h
+1
-1
include/asm-i386/tlb.h
include/asm-i386/tlb.h
+1
-1
include/asm-ia64/tlb.h
include/asm-ia64/tlb.h
+1
-1
include/asm-m68k/tlb.h
include/asm-m68k/tlb.h
+1
-1
include/asm-s390/tlb.h
include/asm-s390/tlb.h
+1
-1
include/asm-s390x/tlb.h
include/asm-s390x/tlb.h
+1
-1
include/asm-sparc64/tlb.h
include/asm-sparc64/tlb.h
+1
-1
include/asm-x86_64/tlb.h
include/asm-x86_64/tlb.h
+1
-1
include/linux/trdevice.h
include/linux/trdevice.h
+1
-0
include/linux/writeback.h
include/linux/writeback.h
+5
-0
mm/memory.c
mm/memory.c
+1
-1
mm/rmap.c
mm/rmap.c
+1
-1
net/802/tr.c
net/802/tr.c
+1
-2
net/sunrpc/xprt.c
net/sunrpc/xprt.c
+2
-2
No files found.
arch/i386/config.in
View file @
9bd36ed7
...
...
@@ -185,10 +185,6 @@ choice 'High Memory Support' \
4GB CONFIG_HIGHMEM4G \
64GB CONFIG_HIGHMEM64G" off
if [ "$CONFIG_HIGHMEM4G" = "y" -o "$CONFIG_HIGHMEM64G" = "y" ]; then
bool 'Use high memory pte support' CONFIG_HIGHPTE
fi
if [ "$CONFIG_HIGHMEM4G" = "y" ]; then
define_bool CONFIG_HIGHMEM y
fi
...
...
arch/ppc/config.in
View file @
9bd36ed7
...
...
@@ -263,7 +263,6 @@ mainmenu_option next_comment
comment 'General setup'
bool 'High memory support' CONFIG_HIGHMEM
dep_bool ' Support for PTEs in high memory' CONFIG_HIGHPTE $CONFIG_HIGHMEM
bool 'Prompt for advanced kernel configuration options' CONFIG_ADVANCED_OPTIONS
if [ "$CONFIG_ADVANCED_OPTIONS" = "y" ]; then
if [ "$CONFIG_HIGHMEM" = "y" ]; then
...
...
arch/ppc64/kernel/pSeries_lpar.c
View file @
9bd36ed7
...
...
@@ -356,8 +356,13 @@ static int udbg_getc_pollLP(void)
/* get some more chars. */
inbuflen
=
0
;
rc
=
plpar_get_term_char
(
vtermno
,
&
inbuflen
,
buf
);
if
(
inbuflen
==
0
&&
rc
==
H_Success
)
return
-
1
;
if
(
rc
!=
H_Success
)
inbuflen
=
0
;
/* otherwise inbuflen is garbage */
}
if
(
inbuflen
<=
0
||
inbuflen
>
16
)
{
/* Catch error case as well as other oddities (corruption) */
inbuflen
=
0
;
return
-
1
;
}
ch
=
buf
[
0
];
for
(
i
=
1
;
i
<
inbuflen
;
i
++
)
/* shuffle them down. */
...
...
drivers/char/hvc_console.c
View file @
9bd36ed7
...
...
@@ -22,6 +22,7 @@
#include <linux/console.h>
#include <linux/major.h>
#include <linux/kernel.h>
#include <linux/sysrq.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include <linux/sched.h>
...
...
@@ -46,6 +47,9 @@ static struct tty_struct *hvc_table[MAX_NR_HVC_CONSOLES];
static
struct
termios
*
hvc_termios
[
MAX_NR_HVC_CONSOLES
];
static
struct
termios
*
hvc_termios_locked
[
MAX_NR_HVC_CONSOLES
];
static
int
hvc_offset
;
#ifdef CONFIG_MAGIC_SYSRQ
static
int
sysrq_pressed
;
#endif
#define N_OUTBUF 16
...
...
@@ -98,6 +102,14 @@ static void hvc_close(struct tty_struct *tty, struct file * filp)
spin_unlock_irqrestore
(
&
hp
->
lock
,
flags
);
}
static
void
hvc_hangup
(
struct
tty_struct
*
tty
)
{
struct
hvc_struct
*
hp
=
tty
->
driver_data
;
hp
->
count
=
0
;
hp
->
tty
=
NULL
;
}
/* called with hp->lock held */
static
void
hvc_push
(
struct
hvc_struct
*
hp
)
{
...
...
@@ -186,8 +198,19 @@ static void hvc_poll(int index)
n
=
hvc_get_chars
(
index
+
hvc_offset
,
buf
,
sizeof
(
buf
));
if
(
n
<=
0
)
break
;
for
(
i
=
0
;
i
<
n
;
++
i
)
for
(
i
=
0
;
i
<
n
;
++
i
)
{
#ifdef CONFIG_MAGIC_SYSRQ
/* Handle the SysRq Hack */
if
(
buf
[
i
]
==
'\x0f'
)
{
/* ^O -- should support a sequence */
sysrq_pressed
=
1
;
continue
;
}
else
if
(
sysrq_pressed
)
{
handle_sysrq
(
buf
[
i
],
NULL
,
NULL
,
tty
);
sysrq_pressed
=
0
;
continue
;
}
#endif
tty_insert_flip_char
(
tty
,
buf
[
i
],
0
);
}
}
if
(
tty
->
flip
.
count
)
tty_schedule_flip
(
tty
);
...
...
@@ -246,6 +269,7 @@ int __init hvc_init(void)
hvc_driver
.
open
=
hvc_open
;
hvc_driver
.
close
=
hvc_close
;
hvc_driver
.
write
=
hvc_write
;
hvc_driver
.
hangup
=
hvc_hangup
;
hvc_driver
.
write_room
=
hvc_write_room
;
hvc_driver
.
chars_in_buffer
=
hvc_chars_in_buffer
;
...
...
drivers/scsi/README.st
View file @
9bd36ed7
...
...
@@ -2,7 +2,7 @@ This file contains brief information about the SCSI tape driver.
The
driver
is
currently
maintained
by
Kai
M
{
kisara
(
email
Kai
.
Makisara
@
metla
.
fi
)
Last
modified:
Tue
Jun
18
18
:
13
:
5
0
2002
by
makisara
Last
modified:
Mon
Jul
15
16
:
30
:
4
0
2002
by
makisara
BASICS
...
...
@@ -118,7 +118,6 @@ allowed if ST_BUFFER_WRITES is non-zero. Buffer allocation uses chunks of
memory having sizes 2^n * (page size). Because of this the actual
buffer size may be larger than the minimum allowable buffer size.
Asynchronous writing. Writing the buffer contents to the tape is
started and the write call returns immediately. The status is checked
at the next tape operation.
...
...
@@ -163,12 +162,24 @@ is smaller than the number of segments used in phases 1 and 2,
extending
the
buffer
will
always
fail
.
EOM
BEHAVIOUR
WHEN
WRITING
When
the
end
of
medium
early
warning
is
encountered,
the
current
write
is
finished
and
the
number
of
bytes
is
returned
.
The
next
write
returns
-
1
and
errno
is
set
to
ENOSPC
.
To
enable
writing
a
trailer,
the
next
write
is
allowed
to
proceed
and,
if
successful,
the
number
of
bytes
is
returned
.
After
this,
-1
and
the
number
of
bytes
are
alternately
returned
until
the
physical
end
of
medium
(
or
some
other
error
)
is
encountered
.
MODULE
PARAMETERS
The
buffer
size,
write
threshold,
and
the
maximum
number
of
allocated
buffers
are
configurable
when
the
driver
is
loaded
as
a
module
.
The
keywords
are:
buffer_kbs
=
xxx
the
buffer
size
in
kilobytes
is
set
to
xxx
buffer_kbs
=
xxx
the
buffer
size
for
fixed
block
mode
is
set
to
xxx
kilobytes
write_threshold_kbs=
xxx
the
write
threshold
in
kilobytes
set
to
xxx
max_buffers=
xxx
the
maximum
number
of
tape
buffer
set
to
xxx
max_sg_segs=
xxx
the
maximum
number
of
scatter/
gather
...
...
@@ -188,17 +199,15 @@ a comma (no spaces allowed). A colon can be used instead of the equal
mark
.
The
definition
is
prepended
by
the
string
st=
.
Here
is
an
example:
st
=buffer_kbs:
64
,
max_buffers:
2
st
=buffer_kbs:
64
,
write_threhold_kbs:
60
The
following
syntax
used
by
the
old
kernel
versions
is
also
supported:
st
=
aa
[
,
bb
[
,
cc
[
,
dd
]
]]
st
=
aa
[
,
bb
[
,
dd
]]
where
aa
is
the
buffer
size
in
1024
byte
units
aa
is
the
buffer
size
for
fixed
block
mode
in
1024
byte
units
bb
is
the
write
threshold
in
1024
byte
units
cc
is
the
maximum
number
of
tape
buffers
to
allocate
(
the
number
of
buffers
is
bounded
also
by
the
number
of
drives
detected
)
dd
is
the
maximum
number
of
scatter/
gather
segments
...
...
@@ -231,7 +240,9 @@ MTOFFL Set device off line (often rewind plus eject).
MTNOP
Do
nothing
except
flush
the
buffers
.
MTRETEN
Re-
tension
tape
.
MTEOM
Space
to
end
of
recorded
data
.
MTERASE
Erase
tape
.
MTERASE
Erase
tape
.
If
the
argument
is
zero,
the
short
erase
command
is
used
.
The
long
erase
command
is
used
with
all
other
values
of
the
argument
.
MTSEEK
Seek
to
tape
block
count
.
Uses
Tandberg-
compatible
seek
(
QFA
)
for
SCSI-
1
drives
and
SCSI-
2
seek
for
SCSI-
2
drives
.
The
file
and
block
numbers
in
the
status
are
not
valid
after
a
seek
.
...
...
drivers/scsi/scsi_lib.c
View file @
9bd36ed7
...
...
@@ -360,7 +360,7 @@ static Scsi_Cmnd *__scsi_end_request(Scsi_Cmnd * SCpnt,
{
request_queue_t
*
q
=
&
SCpnt
->
device
->
request_queue
;
struct
request
*
req
=
SCpnt
->
request
;
int
flags
;
unsigned
long
flags
;
ASSERT_LOCK
(
q
->
queue_lock
,
0
);
...
...
drivers/scsi/st.c
View file @
9bd36ed7
This diff is collapsed.
Click to expand it.
drivers/scsi/st.h
View file @
9bd36ed7
...
...
@@ -21,12 +21,20 @@ typedef struct {
int
syscall_result
;
Scsi_Request
*
last_SRpnt
;
unsigned
char
*
b_data
;
unsigned
short
use_sg
;
/* zero or number of segments for this adapter */
unsigned
short
sg_segs
;
/* total number of allocated segments */
unsigned
short
orig_sg_segs
;
/* number of segments allocated at first try */
unsigned
short
use_sg
;
/* zero or maximum number of s/g segments for this adapter */
unsigned
short
sg_segs
;
/* number of segments in s/g list */
unsigned
short
orig_frp_segs
;
/* number of segments allocated at first try */
unsigned
short
frp_segs
;
/* number of buffer segments */
unsigned
int
frp_sg_current
;
/* driver buffer length currently in s/g list */
struct
st_buf_fragment
*
frp
;
/* the allocated buffer fragment list */
struct
scatterlist
sg
[
1
];
/* MUST BE last item */
}
ST_buffer
;
/* The tape buffer fragment descriptor */
struct
st_buf_fragment
{
struct
page
*
page
;
unsigned
int
length
;
};
/* The tape mode definition */
typedef
struct
{
...
...
@@ -147,6 +155,9 @@ typedef struct {
#define ST_EOD 7
/* EOD hit while reading => ST_EOD_1 => return zero => ST_EOD_2 =>
return zero => ST_EOD, return ENOSPC */
/* When writing: ST_EOM_OK == early warning found, write OK
ST_EOD_1 == allow trying new write after early warning
ST_EOM_ERROR == early warning found, not able to write all */
/* Values of rw */
#define ST_IDLE 0
...
...
include/asm-arm/tlb.h
View file @
9bd36ed7
...
...
@@ -11,7 +11,7 @@
#define tlb_end_vma(tlb,vma) \
flush_tlb_range(vma, vma->vm_start, vma->vm_end)
#define tlb_remove_tlb_entry(tlb, pte, address) do { } while (0)
#define tlb_remove_tlb_entry(tlb, pte
p
, address) do { } while (0)
#include <asm-generic/tlb.h>
...
...
include/asm-i386/tlb.h
View file @
9bd36ed7
...
...
@@ -7,7 +7,7 @@
*/
#define tlb_start_vma(tlb, vma) do { } while (0)
#define tlb_end_vma(tlb, vma) do { } while (0)
#define tlb_remove_tlb_entry(tlb, pte, address) do { } while (0)
#define tlb_remove_tlb_entry(tlb, pte
p
, address) do { } while (0)
/*
* .. because we flush the whole mm when it
...
...
include/asm-ia64/tlb.h
View file @
9bd36ed7
/* XXX fix me! */
#define tlb_start_vma(tlb, vma) do { } while (0)
#define tlb_end_vma(tlb, vma) do { } while (0)
#define tlb_remove_tlb_entry(tlb, pte, address) do { } while (0)
#define tlb_remove_tlb_entry(tlb, pte
p
, address) do { } while (0)
#define tlb_flush(tlb) flush_tlb_mm((tlb)->mm)
#include <asm-generic/tlb.h>
include/asm-m68k/tlb.h
View file @
9bd36ed7
...
...
@@ -7,7 +7,7 @@
*/
#define tlb_start_vma(tlb, vma) do { } while (0)
#define tlb_end_vma(tlb, vma) do { } while (0)
#define tlb_remove_tlb_entry(tlb, pte, address) do { } while (0)
#define tlb_remove_tlb_entry(tlb, pte
p
, address) do { } while (0)
/*
* .. because we flush the whole mm when it
...
...
include/asm-s390/tlb.h
View file @
9bd36ed7
...
...
@@ -7,7 +7,7 @@
*/
#define tlb_start_vma(tlb, vma) do { } while (0)
#define tlb_end_vma(tlb, vma) do { } while (0)
#define tlb_remove_tlb_entry(tlb, pte, address) do { } while (0)
#define tlb_remove_tlb_entry(tlb, pte
p
, address) do { } while (0)
/*
* .. because we flush the whole mm when it
...
...
include/asm-s390x/tlb.h
View file @
9bd36ed7
...
...
@@ -7,7 +7,7 @@
*/
#define tlb_start_vma(tlb, vma) do { } while (0)
#define tlb_end_vma(tlb, vma) do { } while (0)
#define tlb_remove_tlb_entry(tlb, pte, address) do { } while (0)
#define tlb_remove_tlb_entry(tlb, pte
p
, address) do { } while (0)
/*
* .. because we flush the whole mm when it
...
...
include/asm-sparc64/tlb.h
View file @
9bd36ed7
...
...
@@ -16,7 +16,7 @@ do { if (!(tlb)->fullmm) \
flush_tlb_range(vma, vma->vm_start, vma->vm_end); \
} while (0)
#define tlb_remove_tlb_entry(tlb, pte, address) \
#define tlb_remove_tlb_entry(tlb, pte
p
, address) \
do { } while (0)
#include <asm-generic/tlb.h>
...
...
include/asm-x86_64/tlb.h
View file @
9bd36ed7
...
...
@@ -4,7 +4,7 @@
#define tlb_start_vma(tlb, vma) do { } while (0)
#define tlb_end_vma(tlb, vma) do { } while (0)
#define tlb_remove_tlb_entry(tlb, pte, address) do { } while (0)
#define tlb_remove_tlb_entry(tlb, pte
p
, address) do { } while (0)
#define tlb_flush(tlb) flush_tlb_mm((tlb)->mm)
...
...
include/linux/trdevice.h
View file @
9bd36ed7
...
...
@@ -33,6 +33,7 @@ extern int tr_header(struct sk_buff *skb, struct net_device *dev,
void
*
saddr
,
unsigned
len
);
extern
int
tr_rebuild_header
(
struct
sk_buff
*
skb
);
extern
unsigned
short
tr_type_trans
(
struct
sk_buff
*
skb
,
struct
net_device
*
dev
);
extern
void
tr_source_route
(
struct
sk_buff
*
skb
,
struct
trh_hdr
*
trh
,
struct
net_device
*
dev
);
extern
struct
net_device
*
init_trdev
(
struct
net_device
*
dev
,
int
sizeof_priv
);
extern
struct
net_device
*
alloc_trdev
(
int
sizeof_priv
);
extern
int
register_trdev
(
struct
net_device
*
dev
);
...
...
include/linux/writeback.h
View file @
9bd36ed7
...
...
@@ -8,6 +8,8 @@
#ifndef WRITEBACK_H
#define WRITEBACK_H
struct
backing_dev_info
;
extern
spinlock_t
inode_lock
;
extern
struct
list_head
inode_in_use
;
extern
struct
list_head
inode_unused
;
...
...
@@ -38,6 +40,9 @@ void wake_up_inode(struct inode *inode);
void
__wait_on_inode
(
struct
inode
*
inode
);
void
sync_inodes_sb
(
struct
super_block
*
,
int
wait
);
void
sync_inodes
(
int
wait
);
void
writeback_backing_dev
(
struct
backing_dev_info
*
bdi
,
int
*
nr_to_write
,
enum
writeback_sync_modes
sync_mode
,
unsigned
long
*
older_than_this
);
/* writeback.h requires fs.h; it, too, is not included from here. */
static
inline
void
wait_on_inode
(
struct
inode
*
inode
)
...
...
mm/memory.c
View file @
9bd36ed7
...
...
@@ -344,7 +344,7 @@ static void zap_pte_range(mmu_gather_t *tlb, pmd_t * pmd, unsigned long address,
unsigned
long
pfn
=
pte_pfn
(
pte
);
pte
=
ptep_get_and_clear
(
ptep
);
tlb_remove_tlb_entry
(
tlb
,
pte
,
address
+
offset
);
tlb_remove_tlb_entry
(
tlb
,
pte
p
,
address
+
offset
);
if
(
pfn_valid
(
pfn
))
{
struct
page
*
page
=
pfn_to_page
(
pfn
);
if
(
!
PageReserved
(
page
))
{
...
...
mm/rmap.c
View file @
9bd36ed7
...
...
@@ -163,7 +163,7 @@ void page_add_rmap(struct page * page, pte_t * ptep)
void
page_remove_rmap
(
struct
page
*
page
,
pte_t
*
ptep
)
{
struct
pte_chain
*
pc
,
*
prev_pc
=
NULL
;
unsigned
long
pfn
=
p
te_pfn
(
*
ptep
);
unsigned
long
pfn
=
p
age_to_pfn
(
page
);
if
(
!
page
||
!
ptep
)
BUG
();
...
...
net/802/tr.c
View file @
9bd36ed7
...
...
@@ -36,7 +36,6 @@
#include <linux/init.h>
#include <net/arp.h>
static
void
tr_source_route
(
struct
sk_buff
*
skb
,
struct
trh_hdr
*
trh
,
struct
net_device
*
dev
);
static
void
tr_add_rif_info
(
struct
trh_hdr
*
trh
,
struct
net_device
*
dev
);
static
void
rif_check_expire
(
unsigned
long
dummy
);
...
...
@@ -230,7 +229,7 @@ unsigned short tr_type_trans(struct sk_buff *skb, struct net_device *dev)
* We try to do source routing...
*/
static
void
tr_source_route
(
struct
sk_buff
*
skb
,
struct
trh_hdr
*
trh
,
struct
net_device
*
dev
)
void
tr_source_route
(
struct
sk_buff
*
skb
,
struct
trh_hdr
*
trh
,
struct
net_device
*
dev
)
{
int
i
,
slack
;
unsigned
int
hash
;
...
...
net/sunrpc/xprt.c
View file @
9bd36ed7
...
...
@@ -966,10 +966,10 @@ xprt_write_space(struct sock *sk)
return
;
if
(
!
xprt_test_and_set_wspace
(
xprt
))
{
spin_lock
(
&
xprt
->
sock_lock
);
spin_lock
_bh
(
&
xprt
->
sock_lock
);
if
(
xprt
->
snd_task
&&
xprt
->
snd_task
->
tk_rpcwait
==
&
xprt
->
pending
)
rpc_wake_up_task
(
xprt
->
snd_task
);
spin_unlock
(
&
xprt
->
sock_lock
);
spin_unlock
_bh
(
&
xprt
->
sock_lock
);
}
if
(
test_bit
(
SOCK_NOSPACE
,
&
sock
->
flags
))
{
...
...
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