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
5b0ec2ef
Commit
5b0ec2ef
authored
Jan 11, 2012
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fixes-for-linus' into mips-for-linux-next
parents
5611cc45
3d18c983
Changes
26
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
122 additions
and
116 deletions
+122
-116
arch/mips/ar7/platform.c
arch/mips/ar7/platform.c
+1
-1
arch/mips/ar7/setup.c
arch/mips/ar7/setup.c
+1
-1
arch/mips/ath79/setup.c
arch/mips/ath79/setup.c
+1
-1
arch/mips/bcm47xx/setup.c
arch/mips/bcm47xx/setup.c
+2
-2
arch/mips/cavium-octeon/setup.c
arch/mips/cavium-octeon/setup.c
+3
-3
arch/mips/cavium-octeon/smp.c
arch/mips/cavium-octeon/smp.c
+1
-1
arch/mips/include/asm/pgtable-32.h
arch/mips/include/asm/pgtable-32.h
+0
-6
arch/mips/include/asm/tlbmisc.h
arch/mips/include/asm/tlbmisc.h
+10
-0
arch/mips/jazz/irq.c
arch/mips/jazz/irq.c
+1
-0
arch/mips/jazz/setup.c
arch/mips/jazz/setup.c
+1
-0
arch/mips/jz4740/board-qi_lb60.c
arch/mips/jz4740/board-qi_lb60.c
+1
-1
arch/mips/kernel/smtc.c
arch/mips/kernel/smtc.c
+2
-2
arch/mips/kernel/traps.c
arch/mips/kernel/traps.c
+2
-2
arch/mips/lantiq/clk.c
arch/mips/lantiq/clk.c
+2
-2
arch/mips/lantiq/irq.c
arch/mips/lantiq/irq.c
+6
-6
arch/mips/lantiq/xway/dma.c
arch/mips/lantiq/xway/dma.c
+3
-3
arch/mips/lantiq/xway/ebu.c
arch/mips/lantiq/xway/ebu.c
+3
-3
arch/mips/lantiq/xway/pmu.c
arch/mips/lantiq/xway/pmu.c
+4
-4
arch/mips/lantiq/xway/reset.c
arch/mips/lantiq/xway/reset.c
+3
-3
arch/mips/mm/c-octeon.c
arch/mips/mm/c-octeon.c
+1
-1
arch/mips/mm/tlb-r3k.c
arch/mips/mm/tlb-r3k.c
+1
-0
arch/mips/mm/tlb-r4k.c
arch/mips/mm/tlb-r4k.c
+1
-0
arch/mips/pci/msi-octeon.c
arch/mips/pci/msi-octeon.c
+1
-1
arch/mips/pci/pci-alchemy.c
arch/mips/pci/pci-alchemy.c
+68
-70
arch/mips/pmc-sierra/msp71xx/msp_setup.c
arch/mips/pmc-sierra/msp71xx/msp_setup.c
+1
-1
arch/mips/sgi-ip27/ip27-irq.c
arch/mips/sgi-ip27/ip27-irq.c
+2
-2
No files found.
arch/mips/ar7/platform.c
View file @
5b0ec2ef
...
...
@@ -536,7 +536,7 @@ static int __init ar7_register_uarts(void)
bus_clk
=
clk_get
(
NULL
,
"bus"
);
if
(
IS_ERR
(
bus_clk
))
panic
(
"unable to get bus clk
\n
"
);
panic
(
"unable to get bus clk"
);
uart_port
.
type
=
PORT_AR7
;
uart_port
.
uartclk
=
clk_get_rate
(
bus_clk
)
/
2
;
...
...
arch/mips/ar7/setup.c
View file @
5b0ec2ef
...
...
@@ -96,7 +96,7 @@ void __init plat_mem_setup(void)
io_base
=
(
unsigned
long
)
ioremap
(
AR7_REGS_BASE
,
0x10000
);
if
(
!
io_base
)
panic
(
"Can't remap IO base!
\n
"
);
panic
(
"Can't remap IO base!"
);
set_io_port_base
(
io_base
);
prom_meminit
();
...
...
arch/mips/ath79/setup.c
View file @
5b0ec2ef
...
...
@@ -134,7 +134,7 @@ static void __init ath79_detect_sys_type(void)
break
;
default:
panic
(
"ath79: unknown SoC, id:0x%08x
\n
"
,
id
);
panic
(
"ath79: unknown SoC, id:0x%08x"
,
id
);
}
sprintf
(
ath79_sys_type
,
"Atheros AR%s rev %u"
,
chip
,
rev
);
...
...
arch/mips/bcm47xx/setup.c
View file @
5b0ec2ef
...
...
@@ -289,7 +289,7 @@ static void __init bcm47xx_register_ssb(void)
err
=
ssb_bus_ssbbus_register
(
&
(
bcm47xx_bus
.
ssb
),
SSB_ENUM_BASE
,
bcm47xx_get_invariants
);
if
(
err
)
panic
(
"Failed to initialize SSB bus (err %d)
\n
"
,
err
);
panic
(
"Failed to initialize SSB bus (err %d)"
,
err
);
mcore
=
&
bcm47xx_bus
.
ssb
.
mipscore
;
if
(
nvram_getenv
(
"kernel_args"
,
buf
,
sizeof
(
buf
))
>=
0
)
{
...
...
@@ -314,7 +314,7 @@ static void __init bcm47xx_register_bcma(void)
err
=
bcma_host_soc_register
(
&
bcm47xx_bus
.
bcma
);
if
(
err
)
panic
(
"Failed to initialize BCMA bus (err %d)
\n
"
,
err
);
panic
(
"Failed to initialize BCMA bus (err %d)"
,
err
);
}
#endif
...
...
arch/mips/cavium-octeon/setup.c
View file @
5b0ec2ef
...
...
@@ -767,11 +767,11 @@ void prom_free_prom_memory(void)
:
"=r"
(
insn
)
:
:
"$31"
,
"memory"
);
if
((
insn
>>
26
)
!=
0x33
)
panic
(
"No PREF instruction at Core-14449 probe point.
\n
"
);
panic
(
"No PREF instruction at Core-14449 probe point."
);
if
(((
insn
>>
16
)
&
0x1f
)
!=
28
)
panic
(
"Core-14449 WAR not in place (%04x).
\n
"
"Please build kernel with proper options (CONFIG_CAVIUM_CN63XXP1).
\n
"
,
insn
);
"Please build kernel with proper options (CONFIG_CAVIUM_CN63XXP1)."
,
insn
);
}
#ifdef CONFIG_CAVIUM_DECODE_RSL
cvmx_interrupt_rsl_enable
();
...
...
@@ -779,7 +779,7 @@ void prom_free_prom_memory(void)
/* Add an interrupt handler for general failures. */
if
(
request_irq
(
OCTEON_IRQ_RML
,
octeon_rlm_interrupt
,
IRQF_SHARED
,
"RML/RSL"
,
octeon_rlm_interrupt
))
{
panic
(
"Unable to request_irq(OCTEON_IRQ_RML)
\n
"
);
panic
(
"Unable to request_irq(OCTEON_IRQ_RML)"
);
}
#endif
}
arch/mips/cavium-octeon/smp.c
View file @
5b0ec2ef
...
...
@@ -210,7 +210,7 @@ void octeon_prepare_cpus(unsigned int max_cpus)
if
(
request_irq
(
OCTEON_IRQ_MBOX0
,
mailbox_interrupt
,
IRQF_PERCPU
|
IRQF_NO_THREAD
,
"SMP-IPI"
,
mailbox_interrupt
))
{
panic
(
"Cannot request_irq(OCTEON_IRQ_MBOX0)
\n
"
);
panic
(
"Cannot request_irq(OCTEON_IRQ_MBOX0)"
);
}
}
...
...
arch/mips/include/asm/pgtable-32.h
View file @
5b0ec2ef
...
...
@@ -18,12 +18,6 @@
#include <asm-generic/pgtable-nopmd.h>
/*
* - add_wired_entry() add a fixed TLB entry, and move wired register
*/
extern
void
add_wired_entry
(
unsigned
long
entrylo0
,
unsigned
long
entrylo1
,
unsigned
long
entryhi
,
unsigned
long
pagemask
);
/*
* - add_temporary_entry() add a temporary TLB entry. We use TLB entries
* starting at the top and working down. This is for populating the
...
...
arch/mips/include/asm/tlbmisc.h
0 → 100644
View file @
5b0ec2ef
#ifndef __ASM_TLBMISC_H
#define __ASM_TLBMISC_H
/*
* - add_wired_entry() add a fixed TLB entry, and move wired register
*/
extern
void
add_wired_entry
(
unsigned
long
entrylo0
,
unsigned
long
entrylo1
,
unsigned
long
entryhi
,
unsigned
long
pagemask
);
#endif
/* __ASM_TLBMISC_H */
arch/mips/jazz/irq.c
View file @
5b0ec2ef
...
...
@@ -20,6 +20,7 @@
#include <asm/io.h>
#include <asm/jazz.h>
#include <asm/pgtable.h>
#include <asm/tlbmisc.h>
static
DEFINE_RAW_SPINLOCK
(
r4030_lock
);
...
...
arch/mips/jazz/setup.c
View file @
5b0ec2ef
...
...
@@ -21,6 +21,7 @@
#include <asm/jazzdma.h>
#include <asm/reboot.h>
#include <asm/pgtable.h>
#include <asm/tlbmisc.h>
extern
asmlinkage
void
jazz_handle_int
(
void
);
...
...
arch/mips/jz4740/board-qi_lb60.c
View file @
5b0ec2ef
...
...
@@ -488,7 +488,7 @@ static int __init qi_lb60_board_setup(void)
board_gpio_setup
();
if
(
qi_lb60_init_platform_devices
())
panic
(
"Failed to initialize platform devices
\n
"
);
panic
(
"Failed to initialize platform devices"
);
return
0
;
}
...
...
arch/mips/kernel/smtc.c
View file @
5b0ec2ef
...
...
@@ -559,7 +559,7 @@ void smtc_prepare_cpus(int cpus)
pipi
=
kmalloc
(
nipi
*
sizeof
(
struct
smtc_ipi
),
GFP_KERNEL
);
if
(
pipi
==
NULL
)
panic
(
"kmalloc of IPI message buffers failed
\n
"
);
panic
(
"kmalloc of IPI message buffers failed"
);
else
printk
(
"IPI buffer pool of %d buffers
\n
"
,
nipi
);
for
(
i
=
0
;
i
<
nipi
;
i
++
)
{
...
...
@@ -813,7 +813,7 @@ void smtc_send_ipi(int cpu, int type, unsigned int action)
if
(
pipi
==
NULL
)
{
bust_spinlocks
(
1
);
mips_mt_regdump
(
dvpe
());
panic
(
"IPI Msg. Buffers Depleted
\n
"
);
panic
(
"IPI Msg. Buffers Depleted"
);
}
pipi
->
type
=
type
;
pipi
->
arg
=
(
void
*
)
action
;
...
...
arch/mips/kernel/traps.c
View file @
5b0ec2ef
...
...
@@ -400,7 +400,7 @@ void __noreturn die(const char *str, struct pt_regs *regs)
panic
(
"Fatal exception in interrupt"
);
if
(
panic_on_oops
)
{
printk
(
KERN_EMERG
"Fatal exception: panic in 5 seconds
\n
"
);
printk
(
KERN_EMERG
"Fatal exception: panic in 5 seconds"
);
ssleep
(
5
);
panic
(
"Fatal exception"
);
}
...
...
@@ -1150,7 +1150,7 @@ asmlinkage void do_mt(struct pt_regs *regs)
asmlinkage
void
do_dsp
(
struct
pt_regs
*
regs
)
{
if
(
cpu_has_dsp
)
panic
(
"Unexpected DSP exception
\n
"
);
panic
(
"Unexpected DSP exception"
);
force_sig
(
SIGILL
,
current
);
}
...
...
arch/mips/lantiq/clk.c
View file @
5b0ec2ef
...
...
@@ -134,11 +134,11 @@ void __init plat_time_init(void)
struct
clk
*
clk
;
if
(
insert_resource
(
&
iomem_resource
,
&
ltq_cgu_resource
)
<
0
)
panic
(
"Failed to insert cgu memory
\n
"
);
panic
(
"Failed to insert cgu memory"
);
if
(
request_mem_region
(
ltq_cgu_resource
.
start
,
resource_size
(
&
ltq_cgu_resource
),
"cgu"
)
<
0
)
panic
(
"Failed to request cgu memory
\n
"
);
panic
(
"Failed to request cgu memory"
);
ltq_cgu_membase
=
ioremap_nocache
(
ltq_cgu_resource
.
start
,
resource_size
(
&
ltq_cgu_resource
));
...
...
arch/mips/lantiq/irq.c
View file @
5b0ec2ef
...
...
@@ -249,28 +249,28 @@ void __init arch_init_irq(void)
int
i
;
if
(
insert_resource
(
&
iomem_resource
,
&
ltq_icu_resource
)
<
0
)
panic
(
"Failed to insert icu memory
\n
"
);
panic
(
"Failed to insert icu memory"
);
if
(
request_mem_region
(
ltq_icu_resource
.
start
,
resource_size
(
&
ltq_icu_resource
),
"icu"
)
<
0
)
panic
(
"Failed to request icu memory
\n
"
);
panic
(
"Failed to request icu memory"
);
ltq_icu_membase
=
ioremap_nocache
(
ltq_icu_resource
.
start
,
resource_size
(
&
ltq_icu_resource
));
if
(
!
ltq_icu_membase
)
panic
(
"Failed to remap icu memory
\n
"
);
panic
(
"Failed to remap icu memory"
);
if
(
insert_resource
(
&
iomem_resource
,
&
ltq_eiu_resource
)
<
0
)
panic
(
"Failed to insert eiu memory
\n
"
);
panic
(
"Failed to insert eiu memory"
);
if
(
request_mem_region
(
ltq_eiu_resource
.
start
,
resource_size
(
&
ltq_eiu_resource
),
"eiu"
)
<
0
)
panic
(
"Failed to request eiu memory
\n
"
);
panic
(
"Failed to request eiu memory"
);
ltq_eiu_membase
=
ioremap_nocache
(
ltq_eiu_resource
.
start
,
resource_size
(
&
ltq_eiu_resource
));
if
(
!
ltq_eiu_membase
)
panic
(
"Failed to remap eiu memory
\n
"
);
panic
(
"Failed to remap eiu memory"
);
/* make sure all irqs are turned off by default */
for
(
i
=
0
;
i
<
5
;
i
++
)
...
...
arch/mips/lantiq/xway/dma.c
View file @
5b0ec2ef
...
...
@@ -222,17 +222,17 @@ ltq_dma_init(void)
/* insert and request the memory region */
if
(
insert_resource
(
&
iomem_resource
,
&
ltq_dma_resource
)
<
0
)
panic
(
"Failed to insert dma memory
\n
"
);
panic
(
"Failed to insert dma memory"
);
if
(
request_mem_region
(
ltq_dma_resource
.
start
,
resource_size
(
&
ltq_dma_resource
),
"dma"
)
<
0
)
panic
(
"Failed to request dma memory
\n
"
);
panic
(
"Failed to request dma memory"
);
/* remap dma register range */
ltq_dma_membase
=
ioremap_nocache
(
ltq_dma_resource
.
start
,
resource_size
(
&
ltq_dma_resource
));
if
(
!
ltq_dma_membase
)
panic
(
"Failed to remap dma memory
\n
"
);
panic
(
"Failed to remap dma memory"
);
/* power up and reset the dma engine */
ltq_pmu_enable
(
PMU_DMA
);
...
...
arch/mips/lantiq/xway/ebu.c
View file @
5b0ec2ef
...
...
@@ -32,17 +32,17 @@ static int __init lantiq_ebu_init(void)
{
/* insert and request the memory region */
if
(
insert_resource
(
&
iomem_resource
,
&
ltq_ebu_resource
)
<
0
)
panic
(
"Failed to insert ebu memory
\n
"
);
panic
(
"Failed to insert ebu memory"
);
if
(
request_mem_region
(
ltq_ebu_resource
.
start
,
resource_size
(
&
ltq_ebu_resource
),
"ebu"
)
<
0
)
panic
(
"Failed to request ebu memory
\n
"
);
panic
(
"Failed to request ebu memory"
);
/* remap ebu register range */
ltq_ebu_membase
=
ioremap_nocache
(
ltq_ebu_resource
.
start
,
resource_size
(
&
ltq_ebu_resource
));
if
(
!
ltq_ebu_membase
)
panic
(
"Failed to remap ebu memory
\n
"
);
panic
(
"Failed to remap ebu memory"
);
/* make sure to unprotect the memory region where flash is located */
ltq_ebu_w32
(
ltq_ebu_r32
(
LTQ_EBU_BUSCON0
)
&
~
EBU_WRDIS
,
LTQ_EBU_BUSCON0
);
...
...
arch/mips/lantiq/xway/pmu.c
View file @
5b0ec2ef
...
...
@@ -40,7 +40,7 @@ void ltq_pmu_enable(unsigned int module)
do
{}
while
(
--
err
&&
(
ltq_pmu_r32
(
LTQ_PMU_PWDSR
)
&
module
));
if
(
!
err
)
panic
(
"activating PMU module failed!
\n
"
);
panic
(
"activating PMU module failed!"
);
}
EXPORT_SYMBOL
(
ltq_pmu_enable
);
...
...
@@ -53,16 +53,16 @@ EXPORT_SYMBOL(ltq_pmu_disable);
int
__init
ltq_pmu_init
(
void
)
{
if
(
insert_resource
(
&
iomem_resource
,
&
ltq_pmu_resource
)
<
0
)
panic
(
"Failed to insert pmu memory
\n
"
);
panic
(
"Failed to insert pmu memory"
);
if
(
request_mem_region
(
ltq_pmu_resource
.
start
,
resource_size
(
&
ltq_pmu_resource
),
"pmu"
)
<
0
)
panic
(
"Failed to request pmu memory
\n
"
);
panic
(
"Failed to request pmu memory"
);
ltq_pmu_membase
=
ioremap_nocache
(
ltq_pmu_resource
.
start
,
resource_size
(
&
ltq_pmu_resource
));
if
(
!
ltq_pmu_membase
)
panic
(
"Failed to remap pmu memory
\n
"
);
panic
(
"Failed to remap pmu memory"
);
return
0
;
}
...
...
arch/mips/lantiq/xway/reset.c
View file @
5b0ec2ef
...
...
@@ -69,17 +69,17 @@ static int __init mips_reboot_setup(void)
{
/* insert and request the memory region */
if
(
insert_resource
(
&
iomem_resource
,
&
ltq_rcu_resource
)
<
0
)
panic
(
"Failed to insert rcu memory
\n
"
);
panic
(
"Failed to insert rcu memory"
);
if
(
request_mem_region
(
ltq_rcu_resource
.
start
,
resource_size
(
&
ltq_rcu_resource
),
"rcu"
)
<
0
)
panic
(
"Failed to request rcu memory
\n
"
);
panic
(
"Failed to request rcu memory"
);
/* remap rcu register range */
ltq_rcu_membase
=
ioremap_nocache
(
ltq_rcu_resource
.
start
,
resource_size
(
&
ltq_rcu_resource
));
if
(
!
ltq_rcu_membase
)
panic
(
"Failed to remap rcu memory
\n
"
);
panic
(
"Failed to remap rcu memory"
);
_machine_restart
=
ltq_machine_restart
;
_machine_halt
=
ltq_machine_halt
;
...
...
arch/mips/mm/c-octeon.c
View file @
5b0ec2ef
...
...
@@ -223,7 +223,7 @@ static void __cpuinit probe_octeon(void)
break
;
default:
panic
(
"Unsupported Cavium Networks CPU type
\n
"
);
panic
(
"Unsupported Cavium Networks CPU type"
);
break
;
}
...
...
arch/mips/mm/tlb-r3k.c
View file @
5b0ec2ef
...
...
@@ -20,6 +20,7 @@
#include <asm/pgtable.h>
#include <asm/mmu_context.h>
#include <asm/system.h>
#include <asm/tlbmisc.h>
#include <asm/isadep.h>
#include <asm/io.h>
#include <asm/bootinfo.h>
...
...
arch/mips/mm/tlb-r4k.c
View file @
5b0ec2ef
...
...
@@ -19,6 +19,7 @@
#include <asm/mmu_context.h>
#include <asm/pgtable.h>
#include <asm/system.h>
#include <asm/tlbmisc.h>
extern
void
build_tlb_refill_handler
(
void
);
...
...
arch/mips/pci/msi-octeon.c
View file @
5b0ec2ef
...
...
@@ -162,7 +162,7 @@ int arch_setup_msi_irq(struct pci_dev *dev, struct msi_desc *desc)
msg
.
address_hi
=
(
0
+
CVMX_NPEI_PCIE_MSI_RCV
)
>>
32
;
break
;
default:
panic
(
"arch_setup_msi_irq: Invalid octeon_dma_bar_type
\n
"
);
panic
(
"arch_setup_msi_irq: Invalid octeon_dma_bar_type"
);
}
msg
.
data
=
irq
-
OCTEON_IRQ_MSI_BIT0
;
...
...
arch/mips/pci/pci-alchemy.c
View file @
5b0ec2ef
...
...
@@ -13,9 +13,11 @@
#include <linux/platform_device.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/syscore_ops.h>
#include <linux/vmalloc.h>
#include <asm/mach-au1x00/au1000.h>
#include <asm/tlbmisc.h>
#ifdef CONFIG_DEBUG_PCI
#define DBG(x...) printk(KERN_DEBUG x)
...
...
@@ -41,6 +43,12 @@ struct alchemy_pci_context {
int
(
*
board_pci_idsel
)(
unsigned
int
devsel
,
int
assert
);
};
/* for syscore_ops. There's only one PCI controller on Alchemy chips, so this
* should suffice for now.
*/
static
struct
alchemy_pci_context
*
__alchemy_pci_ctx
;
/* IO/MEM resources for PCI. Keep the memres in sync with __fixup_bigphys_addr
* in arch/mips/alchemy/common/setup.c
*/
...
...
@@ -99,18 +107,6 @@ static int config_access(unsigned char access_type, struct pci_bus *bus,
return
-
1
;
}
/* YAMON on all db1xxx boards wipes the TLB and writes zero to C0_wired
* on resume, clearing our wired entry. Unfortunately the ->resume()
* callback is called way way way too late (and ->suspend() too early)
* to have them destroy and recreate it. Instead just test if c0_wired
* is now lower than the index we retrieved before suspending and then
* recreate the entry if necessary. Of course this is totally bonkers
* and breaks as soon as someone else adds another wired entry somewhere
* else. Anyone have any ideas how to handle this better?
*/
if
(
unlikely
(
read_c0_wired
()
<
ctx
->
wired_entry
))
alchemy_pci_wired_entry
(
ctx
);
local_irq_save
(
flags
);
r
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_STATCMD
)
&
0x0000ffff
;
r
|=
PCI_STATCMD_STATUS
(
0x2000
);
...
...
@@ -304,6 +300,62 @@ static int alchemy_pci_def_idsel(unsigned int devsel, int assert)
return
1
;
/* success */
}
/* save PCI controller register contents. */
static
int
alchemy_pci_suspend
(
void
)
{
struct
alchemy_pci_context
*
ctx
=
__alchemy_pci_ctx
;
if
(
!
ctx
)
return
0
;
ctx
->
pm
[
0
]
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_CMEM
);
ctx
->
pm
[
1
]
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_CONFIG
)
&
0x0009ffff
;
ctx
->
pm
[
2
]
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_B2BMASK_CCH
);
ctx
->
pm
[
3
]
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_B2BBASE0_VID
);
ctx
->
pm
[
4
]
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_B2BBASE1_SID
);
ctx
->
pm
[
5
]
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_MWMASK_DEV
);
ctx
->
pm
[
6
]
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_MWBASE_REV_CCL
);
ctx
->
pm
[
7
]
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_ID
);
ctx
->
pm
[
8
]
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_CLASSREV
);
ctx
->
pm
[
9
]
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_PARAM
);
ctx
->
pm
[
10
]
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_MBAR
);
ctx
->
pm
[
11
]
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_TIMEOUT
);
return
0
;
}
static
void
alchemy_pci_resume
(
void
)
{
struct
alchemy_pci_context
*
ctx
=
__alchemy_pci_ctx
;
if
(
!
ctx
)
return
;
__raw_writel
(
ctx
->
pm
[
0
],
ctx
->
regs
+
PCI_REG_CMEM
);
__raw_writel
(
ctx
->
pm
[
2
],
ctx
->
regs
+
PCI_REG_B2BMASK_CCH
);
__raw_writel
(
ctx
->
pm
[
3
],
ctx
->
regs
+
PCI_REG_B2BBASE0_VID
);
__raw_writel
(
ctx
->
pm
[
4
],
ctx
->
regs
+
PCI_REG_B2BBASE1_SID
);
__raw_writel
(
ctx
->
pm
[
5
],
ctx
->
regs
+
PCI_REG_MWMASK_DEV
);
__raw_writel
(
ctx
->
pm
[
6
],
ctx
->
regs
+
PCI_REG_MWBASE_REV_CCL
);
__raw_writel
(
ctx
->
pm
[
7
],
ctx
->
regs
+
PCI_REG_ID
);
__raw_writel
(
ctx
->
pm
[
8
],
ctx
->
regs
+
PCI_REG_CLASSREV
);
__raw_writel
(
ctx
->
pm
[
9
],
ctx
->
regs
+
PCI_REG_PARAM
);
__raw_writel
(
ctx
->
pm
[
10
],
ctx
->
regs
+
PCI_REG_MBAR
);
__raw_writel
(
ctx
->
pm
[
11
],
ctx
->
regs
+
PCI_REG_TIMEOUT
);
wmb
();
__raw_writel
(
ctx
->
pm
[
1
],
ctx
->
regs
+
PCI_REG_CONFIG
);
wmb
();
/* YAMON on all db1xxx boards wipes the TLB and writes zero to C0_wired
* on resume, making it necessary to recreate it as soon as possible.
*/
ctx
->
wired_entry
=
8191
;
/* impossibly high value */
alchemy_pci_wired_entry
(
ctx
);
/* install it */
}
static
struct
syscore_ops
alchemy_pci_pmops
=
{
.
suspend
=
alchemy_pci_suspend
,
.
resume
=
alchemy_pci_resume
,
};
static
int
__devinit
alchemy_pci_probe
(
struct
platform_device
*
pdev
)
{
struct
alchemy_pci_platdata
*
pd
=
pdev
->
dev
.
platform_data
;
...
...
@@ -396,7 +448,8 @@ static int __devinit alchemy_pci_probe(struct platform_device *pdev)
ret
=
-
ENOMEM
;
goto
out4
;
}
ctx
->
wired_entry
=
8192
;
/* impossibly high value */
ctx
->
wired_entry
=
8191
;
/* impossibly high value */
alchemy_pci_wired_entry
(
ctx
);
/* install it */
set_io_port_base
((
unsigned
long
)
ctx
->
alchemy_pci_ctrl
.
io_map_base
);
...
...
@@ -408,7 +461,9 @@ static int __devinit alchemy_pci_probe(struct platform_device *pdev)
__raw_writel
(
val
,
ctx
->
regs
+
PCI_REG_CONFIG
);
wmb
();
__alchemy_pci_ctx
=
ctx
;
platform_set_drvdata
(
pdev
,
ctx
);
register_syscore_ops
(
&
alchemy_pci_pmops
);
register_pci_controller
(
&
ctx
->
alchemy_pci_ctrl
);
return
0
;
...
...
@@ -425,68 +480,11 @@ static int __devinit alchemy_pci_probe(struct platform_device *pdev)
return
ret
;
}
#ifdef CONFIG_PM
/* save PCI controller register contents. */
static
int
alchemy_pci_suspend
(
struct
device
*
dev
)
{
struct
alchemy_pci_context
*
ctx
=
dev_get_drvdata
(
dev
);
ctx
->
pm
[
0
]
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_CMEM
);
ctx
->
pm
[
1
]
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_CONFIG
)
&
0x0009ffff
;
ctx
->
pm
[
2
]
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_B2BMASK_CCH
);
ctx
->
pm
[
3
]
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_B2BBASE0_VID
);
ctx
->
pm
[
4
]
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_B2BBASE1_SID
);
ctx
->
pm
[
5
]
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_MWMASK_DEV
);
ctx
->
pm
[
6
]
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_MWBASE_REV_CCL
);
ctx
->
pm
[
7
]
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_ID
);
ctx
->
pm
[
8
]
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_CLASSREV
);
ctx
->
pm
[
9
]
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_PARAM
);
ctx
->
pm
[
10
]
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_MBAR
);
ctx
->
pm
[
11
]
=
__raw_readl
(
ctx
->
regs
+
PCI_REG_TIMEOUT
);
return
0
;
}
static
int
alchemy_pci_resume
(
struct
device
*
dev
)
{
struct
alchemy_pci_context
*
ctx
=
dev_get_drvdata
(
dev
);
__raw_writel
(
ctx
->
pm
[
0
],
ctx
->
regs
+
PCI_REG_CMEM
);
__raw_writel
(
ctx
->
pm
[
2
],
ctx
->
regs
+
PCI_REG_B2BMASK_CCH
);
__raw_writel
(
ctx
->
pm
[
3
],
ctx
->
regs
+
PCI_REG_B2BBASE0_VID
);
__raw_writel
(
ctx
->
pm
[
4
],
ctx
->
regs
+
PCI_REG_B2BBASE1_SID
);
__raw_writel
(
ctx
->
pm
[
5
],
ctx
->
regs
+
PCI_REG_MWMASK_DEV
);
__raw_writel
(
ctx
->
pm
[
6
],
ctx
->
regs
+
PCI_REG_MWBASE_REV_CCL
);
__raw_writel
(
ctx
->
pm
[
7
],
ctx
->
regs
+
PCI_REG_ID
);
__raw_writel
(
ctx
->
pm
[
8
],
ctx
->
regs
+
PCI_REG_CLASSREV
);
__raw_writel
(
ctx
->
pm
[
9
],
ctx
->
regs
+
PCI_REG_PARAM
);
__raw_writel
(
ctx
->
pm
[
10
],
ctx
->
regs
+
PCI_REG_MBAR
);
__raw_writel
(
ctx
->
pm
[
11
],
ctx
->
regs
+
PCI_REG_TIMEOUT
);
wmb
();
__raw_writel
(
ctx
->
pm
[
1
],
ctx
->
regs
+
PCI_REG_CONFIG
);
wmb
();
return
0
;
}
static
const
struct
dev_pm_ops
alchemy_pci_pmops
=
{
.
suspend
=
alchemy_pci_suspend
,
.
resume
=
alchemy_pci_resume
,
};
#define ALCHEMY_PCICTL_PM (&alchemy_pci_pmops)
#else
#define ALCHEMY_PCICTL_PM NULL
#endif
static
struct
platform_driver
alchemy_pcictl_driver
=
{
.
probe
=
alchemy_pci_probe
,
.
driver
=
{
.
name
=
"alchemy-pci"
,
.
owner
=
THIS_MODULE
,
.
pm
=
ALCHEMY_PCICTL_PM
,
},
};
...
...
arch/mips/pmc-sierra/msp71xx/msp_setup.c
View file @
5b0ec2ef
...
...
@@ -209,7 +209,7 @@ void __init prom_init(void)
default:
/* we don't recognize the machine */
mips_machtype
=
MACH_UNKNOWN
;
panic
(
"***Bogosity factor five***, exiting
\n
"
);
panic
(
"***Bogosity factor five***, exiting"
);
break
;
}
...
...
arch/mips/sgi-ip27/ip27-irq.c
View file @
5b0ec2ef
...
...
@@ -73,7 +73,7 @@ static inline int alloc_level(int cpu, int irq)
level
=
find_first_zero_bit
(
hub
->
irq_alloc_mask
,
LEVELS_PER_SLICE
);
if
(
level
>=
LEVELS_PER_SLICE
)
panic
(
"Cpu %d flooded with devices
\n
"
,
cpu
);
panic
(
"Cpu %d flooded with devices"
,
cpu
);
__set_bit
(
level
,
hub
->
irq_alloc_mask
);
si
->
level_to_irq
[
level
]
=
irq
;
...
...
@@ -96,7 +96,7 @@ static inline int find_level(cpuid_t *cpunum, int irq)
}
}
panic
(
"Could not identify cpu/level for irq %d
\n
"
,
irq
);
panic
(
"Could not identify cpu/level for irq %d"
,
irq
);
}
/*
...
...
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