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
cb57e089
Commit
cb57e089
authored
Oct 17, 2003
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Plain Diff
Merge samba.org:/home/anton/ppc64/linux-2.5
into samba.org:/home/anton/ppc64/for-linus-ppc64
parents
83161bf9
535a8a4c
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
57 additions
and
20 deletions
+57
-20
arch/arm/lib/div64.S
arch/arm/lib/div64.S
+2
-0
arch/i386/kernel/apic.c
arch/i386/kernel/apic.c
+15
-4
drivers/ide/pci/aec62xx.c
drivers/ide/pci/aec62xx.c
+3
-1
drivers/ide/pci/cmd64x.c
drivers/ide/pci/cmd64x.c
+3
-1
drivers/ide/pci/hpt34x.c
drivers/ide/pci/hpt34x.c
+7
-5
drivers/ide/pci/hpt366.c
drivers/ide/pci/hpt366.c
+3
-1
drivers/ide/pci/it8172.c
drivers/ide/pci/it8172.c
+3
-1
drivers/ide/pci/pdc202xx_new.c
drivers/ide/pci/pdc202xx_new.c
+3
-1
drivers/ide/pci/pdc202xx_old.c
drivers/ide/pci/pdc202xx_old.c
+3
-1
drivers/ide/pci/piix.c
drivers/ide/pci/piix.c
+3
-1
drivers/ide/pci/serverworks.c
drivers/ide/pci/serverworks.c
+3
-1
drivers/ide/pci/siimage.c
drivers/ide/pci/siimage.c
+3
-1
drivers/ide/pci/sis5513.c
drivers/ide/pci/sis5513.c
+3
-1
drivers/ide/pci/slc90e66.c
drivers/ide/pci/slc90e66.c
+3
-1
No files found.
arch/arm/lib/div64.S
View file @
cb57e089
...
@@ -30,6 +30,8 @@ ENTRY(do_div64)
...
@@ -30,6 +30,8 @@ ENTRY(do_div64)
moveq
lr
,
#
1
@
only
divide
low
bits
moveq
lr
,
#
1
@
only
divide
low
bits
moveq
nh
,
onl
moveq
nh
,
onl
tst
dh
,
#
0x80000000
bne
2
f
1
:
cmp
nh
,
dh
1
:
cmp
nh
,
dh
bls
2
f
bls
2
f
add
lr
,
lr
,
#
1
add
lr
,
lr
,
#
1
...
...
arch/i386/kernel/apic.c
View file @
cb57e089
...
@@ -533,14 +533,19 @@ static int lapic_resume(struct sys_device *dev)
...
@@ -533,14 +533,19 @@ static int lapic_resume(struct sys_device *dev)
if
(
!
apic_pm_state
.
active
)
if
(
!
apic_pm_state
.
active
)
return
0
;
return
0
;
/* XXX: Pavel needs this for S3 resume, but can't explain why */
set_fixmap_nocache
(
FIX_APIC_BASE
,
APIC_DEFAULT_PHYS_BASE
);
local_irq_save
(
flags
);
local_irq_save
(
flags
);
/*
* Make sure the APICBASE points to the right address
*
* FIXME! This will be wrong if we ever support suspend on
* SMP! We'll need to do this as part of the CPU restore!
*/
rdmsr
(
MSR_IA32_APICBASE
,
l
,
h
);
rdmsr
(
MSR_IA32_APICBASE
,
l
,
h
);
l
&=
~
MSR_IA32_APICBASE_BASE
;
l
&=
~
MSR_IA32_APICBASE_BASE
;
l
|=
MSR_IA32_APICBASE_ENABLE
|
APIC_DEFAULT_PHYS_BASE
;
l
|=
MSR_IA32_APICBASE_ENABLE
|
mp_lapic_addr
;
wrmsr
(
MSR_IA32_APICBASE
,
l
,
h
);
wrmsr
(
MSR_IA32_APICBASE
,
l
,
h
);
apic_write
(
APIC_LVTERR
,
ERROR_APIC_VECTOR
|
APIC_LVT_MASKED
);
apic_write
(
APIC_LVTERR
,
ERROR_APIC_VECTOR
|
APIC_LVT_MASKED
);
apic_write
(
APIC_ID
,
apic_pm_state
.
apic_id
);
apic_write
(
APIC_ID
,
apic_pm_state
.
apic_id
);
apic_write
(
APIC_DFR
,
apic_pm_state
.
apic_dfr
);
apic_write
(
APIC_DFR
,
apic_pm_state
.
apic_dfr
);
...
@@ -680,6 +685,12 @@ static int __init detect_init_APIC (void)
...
@@ -680,6 +685,12 @@ static int __init detect_init_APIC (void)
}
}
set_bit
(
X86_FEATURE_APIC
,
boot_cpu_data
.
x86_capability
);
set_bit
(
X86_FEATURE_APIC
,
boot_cpu_data
.
x86_capability
);
mp_lapic_addr
=
APIC_DEFAULT_PHYS_BASE
;
mp_lapic_addr
=
APIC_DEFAULT_PHYS_BASE
;
/* The BIOS may have set up the APIC at some other address */
rdmsr
(
MSR_IA32_APICBASE
,
l
,
h
);
if
(
l
&
MSR_IA32_APICBASE_ENABLE
)
mp_lapic_addr
=
l
&
MSR_IA32_APICBASE_BASE
;
if
(
nmi_watchdog
!=
NMI_NONE
)
if
(
nmi_watchdog
!=
NMI_NONE
)
nmi_watchdog
=
NMI_LOCAL_APIC
;
nmi_watchdog
=
NMI_LOCAL_APIC
;
...
...
drivers/ide/pci/aec62xx.c
View file @
cb57e089
...
@@ -355,13 +355,15 @@ static int aec62xx_config_drive_xfer_rate (ide_drive_t *drive)
...
@@ -355,13 +355,15 @@ static int aec62xx_config_drive_xfer_rate (ide_drive_t *drive)
}
else
{
}
else
{
goto
fast_ata_pio
;
goto
fast_ata_pio
;
}
}
return
hwif
->
ide_dma_on
(
drive
);
}
else
if
((
id
->
capability
&
8
)
||
(
id
->
field_valid
&
2
))
{
}
else
if
((
id
->
capability
&
8
)
||
(
id
->
field_valid
&
2
))
{
fast_ata_pio:
fast_ata_pio:
no_dma_set:
no_dma_set:
aec62xx_tune_drive
(
drive
,
5
);
aec62xx_tune_drive
(
drive
,
5
);
return
hwif
->
ide_dma_off_quietly
(
drive
);
return
hwif
->
ide_dma_off_quietly
(
drive
);
}
}
return
hwif
->
ide_dma_on
(
drive
);
/* IORDY not supported */
return
0
;
}
}
static
int
aec62xx_irq_timeout
(
ide_drive_t
*
drive
)
static
int
aec62xx_irq_timeout
(
ide_drive_t
*
drive
)
...
...
drivers/ide/pci/cmd64x.c
View file @
cb57e089
...
@@ -484,13 +484,15 @@ static int cmd64x_config_drive_for_dma (ide_drive_t *drive)
...
@@ -484,13 +484,15 @@ static int cmd64x_config_drive_for_dma (ide_drive_t *drive)
}
else
{
}
else
{
goto
fast_ata_pio
;
goto
fast_ata_pio
;
}
}
return
hwif
->
ide_dma_on
(
drive
);
}
else
if
((
id
->
capability
&
8
)
||
(
id
->
field_valid
&
2
))
{
}
else
if
((
id
->
capability
&
8
)
||
(
id
->
field_valid
&
2
))
{
fast_ata_pio:
fast_ata_pio:
no_dma_set:
no_dma_set:
config_chipset_for_pio
(
drive
,
1
);
config_chipset_for_pio
(
drive
,
1
);
return
hwif
->
ide_dma_off_quietly
(
drive
);
return
hwif
->
ide_dma_off_quietly
(
drive
);
}
}
return
hwif
->
ide_dma_on
(
drive
);
/* IORDY not supported */
return
0
;
}
}
static
int
cmd64x_alt_dma_status
(
struct
pci_dev
*
dev
)
static
int
cmd64x_alt_dma_status
(
struct
pci_dev
*
dev
)
...
...
drivers/ide/pci/hpt34x.c
View file @
cb57e089
...
@@ -215,17 +215,19 @@ static int hpt34x_config_drive_xfer_rate (ide_drive_t *drive)
...
@@ -215,17 +215,19 @@ static int hpt34x_config_drive_xfer_rate (ide_drive_t *drive)
}
else
{
}
else
{
goto
fast_ata_pio
;
goto
fast_ata_pio
;
}
}
#ifndef CONFIG_HPT34X_AUTODMA
return
hwif
->
ide_dma_off_quietly
(
drive
);
#else
return
hwif
->
ide_dma_on
(
drive
);
#endif
}
else
if
((
id
->
capability
&
8
)
||
(
id
->
field_valid
&
2
))
{
}
else
if
((
id
->
capability
&
8
)
||
(
id
->
field_valid
&
2
))
{
fast_ata_pio:
fast_ata_pio:
no_dma_set:
no_dma_set:
hpt34x_tune_drive
(
drive
,
255
);
hpt34x_tune_drive
(
drive
,
255
);
return
hwif
->
ide_dma_off_quietly
(
drive
);
return
hwif
->
ide_dma_off_quietly
(
drive
);
}
}
/* IORDY not supported */
#ifndef CONFIG_HPT34X_AUTODMA
return
0
;
return
hwif
->
ide_dma_off_quietly
(
drive
);
#endif
/* CONFIG_HPT34X_AUTODMA */
return
hwif
->
ide_dma_on
(
drive
);
}
}
/*
/*
...
...
drivers/ide/pci/hpt366.c
View file @
cb57e089
...
@@ -538,13 +538,15 @@ static int hpt366_config_drive_xfer_rate (ide_drive_t *drive)
...
@@ -538,13 +538,15 @@ static int hpt366_config_drive_xfer_rate (ide_drive_t *drive)
}
else
{
}
else
{
goto
fast_ata_pio
;
goto
fast_ata_pio
;
}
}
return
hwif
->
ide_dma_on
(
drive
);
}
else
if
((
id
->
capability
&
8
)
||
(
id
->
field_valid
&
2
))
{
}
else
if
((
id
->
capability
&
8
)
||
(
id
->
field_valid
&
2
))
{
fast_ata_pio:
fast_ata_pio:
no_dma_set:
no_dma_set:
hpt3xx_tune_drive
(
drive
,
5
);
hpt3xx_tune_drive
(
drive
,
5
);
return
hwif
->
ide_dma_off_quietly
(
drive
);
return
hwif
->
ide_dma_off_quietly
(
drive
);
}
}
return
hwif
->
ide_dma_on
(
drive
);
/* IORDY not supported */
return
0
;
}
}
/*
/*
...
...
drivers/ide/pci/it8172.c
View file @
cb57e089
...
@@ -227,13 +227,15 @@ static int it8172_config_drive_xfer_rate (ide_drive_t *drive)
...
@@ -227,13 +227,15 @@ static int it8172_config_drive_xfer_rate (ide_drive_t *drive)
}
else
{
}
else
{
goto
fast_ata_pio
;
goto
fast_ata_pio
;
}
}
return
hwif
->
ide_dma_on
(
drive
);
}
else
if
((
id
->
capability
&
8
)
||
(
id
->
field_valid
&
2
))
{
}
else
if
((
id
->
capability
&
8
)
||
(
id
->
field_valid
&
2
))
{
fast_ata_pio:
fast_ata_pio:
no_dma_set:
no_dma_set:
it8172_tune_drive
(
drive
,
5
);
it8172_tune_drive
(
drive
,
5
);
return
hwif
->
ide_dma_off_quietly
(
drive
);
return
hwif
->
ide_dma_off_quietly
(
drive
);
}
}
return
hwif
->
ide_dma_on
(
drive
);
/* IORDY not supported */
return
0
;
}
}
static
unsigned
int
__init
init_chipset_it8172
(
struct
pci_dev
*
dev
,
const
char
*
name
)
static
unsigned
int
__init
init_chipset_it8172
(
struct
pci_dev
*
dev
,
const
char
*
name
)
...
...
drivers/ide/pci/pdc202xx_new.c
View file @
cb57e089
...
@@ -414,13 +414,15 @@ static int pdcnew_config_drive_xfer_rate (ide_drive_t *drive)
...
@@ -414,13 +414,15 @@ static int pdcnew_config_drive_xfer_rate (ide_drive_t *drive)
}
else
{
}
else
{
goto
fast_ata_pio
;
goto
fast_ata_pio
;
}
}
return
hwif
->
ide_dma_on
(
drive
);
}
else
if
((
id
->
capability
&
8
)
||
(
id
->
field_valid
&
2
))
{
}
else
if
((
id
->
capability
&
8
)
||
(
id
->
field_valid
&
2
))
{
fast_ata_pio:
fast_ata_pio:
no_dma_set:
no_dma_set:
hwif
->
tuneproc
(
drive
,
5
);
hwif
->
tuneproc
(
drive
,
5
);
return
hwif
->
ide_dma_off_quietly
(
drive
);
return
hwif
->
ide_dma_off_quietly
(
drive
);
}
}
return
hwif
->
ide_dma_on
(
drive
);
/* IORDY not supported */
return
0
;
}
}
static
int
pdcnew_quirkproc
(
ide_drive_t
*
drive
)
static
int
pdcnew_quirkproc
(
ide_drive_t
*
drive
)
...
...
drivers/ide/pci/pdc202xx_old.c
View file @
cb57e089
...
@@ -518,13 +518,15 @@ static int pdc202xx_config_drive_xfer_rate (ide_drive_t *drive)
...
@@ -518,13 +518,15 @@ static int pdc202xx_config_drive_xfer_rate (ide_drive_t *drive)
}
else
{
}
else
{
goto
fast_ata_pio
;
goto
fast_ata_pio
;
}
}
return
hwif
->
ide_dma_on
(
drive
);
}
else
if
((
id
->
capability
&
8
)
||
(
id
->
field_valid
&
2
))
{
}
else
if
((
id
->
capability
&
8
)
||
(
id
->
field_valid
&
2
))
{
fast_ata_pio:
fast_ata_pio:
no_dma_set:
no_dma_set:
hwif
->
tuneproc
(
drive
,
5
);
hwif
->
tuneproc
(
drive
,
5
);
return
hwif
->
ide_dma_off_quietly
(
drive
);
return
hwif
->
ide_dma_off_quietly
(
drive
);
}
}
return
hwif
->
ide_dma_on
(
drive
);
/* IORDY not supported */
return
0
;
}
}
static
int
pdc202xx_quirkproc
(
ide_drive_t
*
drive
)
static
int
pdc202xx_quirkproc
(
ide_drive_t
*
drive
)
...
...
drivers/ide/pci/piix.c
View file @
cb57e089
...
@@ -588,13 +588,15 @@ static int piix_config_drive_xfer_rate (ide_drive_t *drive)
...
@@ -588,13 +588,15 @@ static int piix_config_drive_xfer_rate (ide_drive_t *drive)
}
else
{
}
else
{
goto
fast_ata_pio
;
goto
fast_ata_pio
;
}
}
return
hwif
->
ide_dma_on
(
drive
);
}
else
if
((
id
->
capability
&
8
)
||
(
id
->
field_valid
&
2
))
{
}
else
if
((
id
->
capability
&
8
)
||
(
id
->
field_valid
&
2
))
{
fast_ata_pio:
fast_ata_pio:
no_dma_set:
no_dma_set:
hwif
->
tuneproc
(
drive
,
255
);
hwif
->
tuneproc
(
drive
,
255
);
return
hwif
->
ide_dma_off_quietly
(
drive
);
return
hwif
->
ide_dma_off_quietly
(
drive
);
}
}
return
hwif
->
ide_dma_on
(
drive
);
/* IORDY not supported */
return
0
;
}
}
/**
/**
...
...
drivers/ide/pci/serverworks.c
View file @
cb57e089
...
@@ -484,6 +484,7 @@ static int svwks_config_drive_xfer_rate (ide_drive_t *drive)
...
@@ -484,6 +484,7 @@ static int svwks_config_drive_xfer_rate (ide_drive_t *drive)
}
else
{
}
else
{
goto
no_dma_set
;
goto
no_dma_set
;
}
}
return
hwif
->
ide_dma_on
(
drive
);
}
else
if
((
id
->
capability
&
8
)
||
(
id
->
field_valid
&
2
))
{
}
else
if
((
id
->
capability
&
8
)
||
(
id
->
field_valid
&
2
))
{
fast_ata_pio:
fast_ata_pio:
no_dma_set:
no_dma_set:
...
@@ -491,7 +492,8 @@ static int svwks_config_drive_xfer_rate (ide_drive_t *drive)
...
@@ -491,7 +492,8 @@ static int svwks_config_drive_xfer_rate (ide_drive_t *drive)
// hwif->tuneproc(drive, 5);
// hwif->tuneproc(drive, 5);
return
hwif
->
ide_dma_off_quietly
(
drive
);
return
hwif
->
ide_dma_off_quietly
(
drive
);
}
}
return
hwif
->
ide_dma_on
(
drive
);
/* IORDY not supported */
return
0
;
}
}
/* This can go soon */
/* This can go soon */
...
...
drivers/ide/pci/siimage.c
View file @
cb57e089
...
@@ -515,13 +515,15 @@ static int siimage_config_drive_for_dma (ide_drive_t *drive)
...
@@ -515,13 +515,15 @@ static int siimage_config_drive_for_dma (ide_drive_t *drive)
}
else
{
}
else
{
goto
fast_ata_pio
;
goto
fast_ata_pio
;
}
}
return
hwif
->
ide_dma_on
(
drive
);
}
else
if
((
id
->
capability
&
8
)
||
(
id
->
field_valid
&
2
))
{
}
else
if
((
id
->
capability
&
8
)
||
(
id
->
field_valid
&
2
))
{
fast_ata_pio:
fast_ata_pio:
no_dma_set:
no_dma_set:
config_chipset_for_pio
(
drive
,
1
);
config_chipset_for_pio
(
drive
,
1
);
return
hwif
->
ide_dma_off_quietly
(
drive
);
return
hwif
->
ide_dma_off_quietly
(
drive
);
}
}
return
hwif
->
ide_dma_on
(
drive
);
/* IORDY not supported */
return
0
;
}
}
/* returns 1 if dma irq issued, 0 otherwise */
/* returns 1 if dma irq issued, 0 otherwise */
...
...
drivers/ide/pci/sis5513.c
View file @
cb57e089
...
@@ -696,13 +696,15 @@ static int sis5513_config_drive_xfer_rate (ide_drive_t *drive)
...
@@ -696,13 +696,15 @@ static int sis5513_config_drive_xfer_rate (ide_drive_t *drive)
}
else
{
}
else
{
goto
fast_ata_pio
;
goto
fast_ata_pio
;
}
}
return
hwif
->
ide_dma_on
(
drive
);
}
else
if
((
id
->
capability
&
8
)
||
(
id
->
field_valid
&
2
))
{
}
else
if
((
id
->
capability
&
8
)
||
(
id
->
field_valid
&
2
))
{
fast_ata_pio:
fast_ata_pio:
no_dma_set:
no_dma_set:
sis5513_tune_drive
(
drive
,
5
);
sis5513_tune_drive
(
drive
,
5
);
return
hwif
->
ide_dma_off_quietly
(
drive
);
return
hwif
->
ide_dma_off_quietly
(
drive
);
}
}
return
hwif
->
ide_dma_on
(
drive
);
/* IORDY not supported */
return
0
;
}
}
/* initiates/aborts (U)DMA read/write operations on a drive. */
/* initiates/aborts (U)DMA read/write operations on a drive. */
...
...
drivers/ide/pci/slc90e66.c
View file @
cb57e089
...
@@ -301,13 +301,15 @@ static int slc90e66_config_drive_xfer_rate (ide_drive_t *drive)
...
@@ -301,13 +301,15 @@ static int slc90e66_config_drive_xfer_rate (ide_drive_t *drive)
}
else
{
}
else
{
goto
fast_ata_pio
;
goto
fast_ata_pio
;
}
}
return
hwif
->
ide_dma_on
(
drive
);
}
else
if
((
id
->
capability
&
8
)
||
(
id
->
field_valid
&
2
))
{
}
else
if
((
id
->
capability
&
8
)
||
(
id
->
field_valid
&
2
))
{
fast_ata_pio:
fast_ata_pio:
no_dma_set:
no_dma_set:
hwif
->
tuneproc
(
drive
,
5
);
hwif
->
tuneproc
(
drive
,
5
);
return
hwif
->
ide_dma_off_quietly
(
drive
);
return
hwif
->
ide_dma_off_quietly
(
drive
);
}
}
return
hwif
->
ide_dma_on
(
drive
);
/* IORDY not supported */
return
0
;
}
}
#endif
/* CONFIG_BLK_DEV_IDEDMA */
#endif
/* CONFIG_BLK_DEV_IDEDMA */
...
...
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