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
Kirill Smelkov
linux
Commits
821077b2
Commit
821077b2
authored
Nov 14, 2005
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Plain Diff
Merge
git://oak/home/sfr/kernels/iseries/work
parents
3136254c
d7867959
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
62 deletions
+33
-62
arch/powerpc/kernel/irq.c
arch/powerpc/kernel/irq.c
+5
-4
arch/powerpc/kernel/lparcfg.c
arch/powerpc/kernel/lparcfg.c
+25
-26
arch/powerpc/kernel/setup_32.c
arch/powerpc/kernel/setup_32.c
+0
-4
arch/powerpc/platforms/iseries/irq.c
arch/powerpc/platforms/iseries/irq.c
+3
-22
arch/powerpc/platforms/iseries/setup.c
arch/powerpc/platforms/iseries/setup.c
+0
-6
No files found.
arch/powerpc/kernel/irq.c
View file @
821077b2
...
...
@@ -71,6 +71,11 @@
#include <asm/paca.h>
#endif
int
__irq_offset_value
;
#ifdef CONFIG_PPC32
EXPORT_SYMBOL
(
__irq_offset_value
);
#endif
static
int
ppc_spurious_interrupts
;
#if defined(CONFIG_PPC_ISERIES) && defined(CONFIG_SMP)
...
...
@@ -98,7 +103,6 @@ extern atomic_t ipi_sent;
EXPORT_SYMBOL
(
irq_desc
);
int
distribute_irqs
=
1
;
int
__irq_offset_value
;
u64
ppc64_interrupt_controller
;
#endif
/* CONFIG_PPC64 */
...
...
@@ -311,7 +315,6 @@ void __init init_IRQ(void)
}
#ifdef CONFIG_PPC64
#ifndef CONFIG_PPC_ISERIES
/*
* Virtual IRQ mapping code, used on systems with XICS interrupt controllers.
*/
...
...
@@ -420,8 +423,6 @@ unsigned int real_irq_to_virt_slowpath(unsigned int real_irq)
}
#endif
/* CONFIG_PPC_ISERIES */
#ifdef CONFIG_IRQSTACKS
struct
thread_info
*
softirq_ctx
[
NR_CPUS
];
struct
thread_info
*
hardirq_ctx
[
NR_CPUS
];
...
...
arch/powerpc/kernel/lparcfg.c
View file @
821077b2
...
...
@@ -42,32 +42,6 @@
/* #define LPARCFG_DEBUG */
/* find a better place for this function... */
static
void
log_plpar_hcall_return
(
unsigned
long
rc
,
char
*
tag
)
{
if
(
rc
==
0
)
/* success, return */
return
;
/* check for null tag ? */
if
(
rc
==
H_Hardware
)
printk
(
KERN_INFO
"plpar-hcall (%s) failed with hardware fault
\n
"
,
tag
);
else
if
(
rc
==
H_Function
)
printk
(
KERN_INFO
"plpar-hcall (%s) failed; function not allowed
\n
"
,
tag
);
else
if
(
rc
==
H_Authority
)
printk
(
KERN_INFO
"plpar-hcall (%s) failed; not authorized to this function
\n
"
,
tag
);
else
if
(
rc
==
H_Parameter
)
printk
(
KERN_INFO
"plpar-hcall (%s) failed; Bad parameter(s)
\n
"
,
tag
);
else
printk
(
KERN_INFO
"plpar-hcall (%s) failed with unexpected rc(0x%lx)
\n
"
,
tag
,
rc
);
}
static
struct
proc_dir_entry
*
proc_ppc64_lparcfg
;
#define LPARCFG_BUFF_SIZE 4096
...
...
@@ -172,6 +146,31 @@ static int lparcfg_data(struct seq_file *m, void *v)
/*
* Methods used to fetch LPAR data when running on a pSeries platform.
*/
/* find a better place for this function... */
static
void
log_plpar_hcall_return
(
unsigned
long
rc
,
char
*
tag
)
{
if
(
rc
==
0
)
/* success, return */
return
;
/* check for null tag ? */
if
(
rc
==
H_Hardware
)
printk
(
KERN_INFO
"plpar-hcall (%s) failed with hardware fault
\n
"
,
tag
);
else
if
(
rc
==
H_Function
)
printk
(
KERN_INFO
"plpar-hcall (%s) failed; function not allowed
\n
"
,
tag
);
else
if
(
rc
==
H_Authority
)
printk
(
KERN_INFO
"plpar-hcall (%s) failed; not authorized to this function
\n
"
,
tag
);
else
if
(
rc
==
H_Parameter
)
printk
(
KERN_INFO
"plpar-hcall (%s) failed; Bad parameter(s)
\n
"
,
tag
);
else
printk
(
KERN_INFO
"plpar-hcall (%s) failed with unexpected rc(0x%lx)
\n
"
,
tag
,
rc
);
}
/*
* H_GET_PPP hcall returns info in 4 parms.
...
...
arch/powerpc/kernel/setup_32.c
View file @
821077b2
...
...
@@ -57,10 +57,6 @@ extern void power4_idle(void);
boot_infos_t
*
boot_infos
;
struct
ide_machdep_calls
ppc_ide_md
;
/* XXX should go elsewhere */
int
__irq_offset_value
;
EXPORT_SYMBOL
(
__irq_offset_value
);
int
boot_cpuid
;
EXPORT_SYMBOL_GPL
(
boot_cpuid
);
int
boot_cpuid_phys
;
...
...
arch/powerpc/platforms/iseries/irq.c
View file @
821077b2
...
...
@@ -42,13 +42,6 @@
#include "irq.h"
#include "call_pci.h"
/* This maps virtual irq numbers to real irqs */
unsigned
int
virt_irq_to_real_map
[
NR_IRQS
];
/* The next available virtual irq number */
/* Note: the pcnet32 driver assumes irq numbers < 2 aren't valid. :( */
static
int
next_virtual_irq
=
2
;
static
long
Pci_Interrupt_Count
;
static
long
Pci_Event_Count
;
...
...
@@ -350,26 +343,14 @@ static hw_irq_controller iSeries_IRQ_handler = {
int
__init
iSeries_allocate_IRQ
(
HvBusNumber
busNumber
,
HvSubBusNumber
subBusNumber
,
HvAgentId
deviceId
)
{
unsigned
int
realirq
,
virtirq
;
int
virtirq
;
unsigned
int
realirq
;
u8
idsel
=
(
deviceId
>>
4
);
u8
function
=
deviceId
&
7
;
virtirq
=
next_virtual_irq
++
;
realirq
=
((
busNumber
-
1
)
<<
6
)
+
((
idsel
-
1
)
<<
3
)
+
function
;
virt
_irq_to_real_map
[
virtirq
]
=
realirq
;
virt
irq
=
virt_irq_create_mapping
(
realirq
)
;
irq_desc
[
virtirq
].
handler
=
&
iSeries_IRQ_handler
;
return
virtirq
;
}
int
virt_irq_create_mapping
(
unsigned
int
real_irq
)
{
BUG
();
/* Don't call this on iSeries, yet */
return
0
;
}
void
virt_irq_init
(
void
)
{
return
;
}
arch/powerpc/platforms/iseries/setup.c
View file @
821077b2
...
...
@@ -39,7 +39,6 @@
#include <asm/sections.h>
#include <asm/iommu.h>
#include <asm/firmware.h>
#include <asm/systemcfg.h>
#include <asm/system.h>
#include <asm/time.h>
#include <asm/paca.h>
...
...
@@ -548,8 +547,6 @@ static unsigned long __init build_iSeries_Memory_Map(void)
*/
static
void
__init
iSeries_setup_arch
(
void
)
{
unsigned
procIx
=
get_paca
()
->
lppaca
.
dyn_hv_phys_proc_index
;
if
(
get_paca
()
->
lppaca
.
shared_proc
)
{
ppc_md
.
idle_loop
=
iseries_shared_idle
;
printk
(
KERN_INFO
"Using shared processor idle loop
\n
"
);
...
...
@@ -565,9 +562,6 @@ static void __init iSeries_setup_arch(void)
itVpdAreas
.
xSlicMaxLogicalProcs
);
printk
(
"Max physical processors = %d
\n
"
,
itVpdAreas
.
xSlicMaxPhysicalProcs
);
_systemcfg
->
processor
=
xIoHriProcessorVpd
[
procIx
].
xPVR
;
printk
(
"Processor version = %x
\n
"
,
_systemcfg
->
processor
);
}
static
void
iSeries_show_cpuinfo
(
struct
seq_file
*
m
)
...
...
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