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
2bf9c108
Commit
2bf9c108
authored
Jul 18, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: iSeries update - from 2.4
parent
106469f1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
78 additions
and
4 deletions
+78
-4
arch/ppc64/kernel/LparData.c
arch/ppc64/kernel/LparData.c
+8
-2
arch/ppc64/kernel/XmPciLpEvent.c
arch/ppc64/kernel/XmPciLpEvent.c
+8
-2
include/asm-ppc64/iSeries/ItExtVpdPanel.h
include/asm-ppc64/iSeries/ItExtVpdPanel.h
+60
-0
include/asm-ppc64/iSeries/LparData.h
include/asm-ppc64/iSeries/LparData.h
+2
-0
No files found.
arch/ppc64/kernel/LparData.c
View file @
2bf9c108
...
...
@@ -24,6 +24,7 @@
#include <asm/iSeries/LparMap.h>
#include <asm/iSeries/ItVpdAreas.h>
#include <asm/iSeries/ItIplParmsReal.h>
#include <asm/iSeries/ItExtVpdPanel.h>
#include <asm/iSeries/ItLpQueue.h>
#include <asm/iSeries/IoHriProcessorVpd.h>
#include <asm/iSeries/ItSpCommArea.h>
...
...
@@ -143,6 +144,8 @@ struct ItLpNaca itLpNaca = {
struct
ItIplParmsReal
xItIplParmsReal
=
{};
struct
ItExtVpdPanel
xItExtVpdPanel
=
{};
#define maxPhysicalProcessors 32
struct
IoHriProcessorVpd
xIoHriProcessorVpd
[
maxPhysicalProcessors
]
=
{
...
...
@@ -184,7 +187,8 @@ struct ItVpdAreas itVpdAreas = {
{
0
},
/* DMA lengths */
{
0
},
/* DMA tokens */
{
/* VPD lengths */
0
,
0
,
0
,
0
,
/* 0 - 3 */
0
,
0
,
0
,
/* 0 - 2 */
sizeof
(
xItExtVpdPanel
),
/* 3 Extended VPD */
sizeof
(
struct
paca_struct
),
/* 4 length of Paca */
0
,
/* 5 */
sizeof
(
struct
ItIplParmsReal
),
/* 6 length of IPL parms */
...
...
@@ -201,7 +205,8 @@ struct ItVpdAreas itVpdAreas = {
0
,
0
/* 24 - 25 */
},
{
/* VPD addresses */
0
,
0
,
0
,
0
,
/* 0 - 3 */
0
,
0
,
0
,
/* 0 - 2 */
&
xItExtVpdPanel
,
/* 3 Extended VPD */
&
paca
[
0
],
/* 4 first Paca */
0
,
/* 5 */
&
xItIplParmsReal
,
/* 6 IPL parms */
...
...
@@ -247,3 +252,4 @@ msChunks_alloc(unsigned long mem, unsigned long num_chunks, unsigned long chunk_
arch/ppc64/kernel/XmPciLpEvent.c
View file @
2bf9c108
...
...
@@ -26,10 +26,13 @@ long Pci_Event_Count = 0;
enum
XmPciLpEvent_Subtype
{
XmPciLpEvent_BusCreated
=
0
,
// PHB has been created
XmPciLpEvent_Bus
Failed
=
1
,
// PHB has failed
XmPciLpEvent_Bus
Recovered
=
12
,
// PHB has been recovered
XmPciLpEvent_Bus
Error
=
1
,
// PHB has failed
XmPciLpEvent_Bus
Failed
=
2
,
// Msg to Seconday, Primary failed bus
XmPciLpEvent_NodeFailed
=
4
,
// Multi-adapter bridge has failed
XmPciLpEvent_NodeRecovered
=
5
,
// Multi-adapter bridge has recovered
XmPciLpEvent_BusRecovered
=
12
,
// PHB has been recovered
XmPciLpEvent_UnQuiesceBus
=
18
,
// Secondary bus unqiescing
XmPciLpEvent_BridgeError
=
21
,
// Bridge Error
XmPciLpEvent_SlotInterrupt
=
22
// Slot interrupt
};
...
...
@@ -116,13 +119,16 @@ static void intReceived(struct XmPciLpEvent* eventParm, struct pt_regs* regsParm
case
XmPciLpEvent_BusCreated
:
printk
(
KERN_INFO
"XmPciLpEvent.c: system bus %d created
\n
"
,
eventParm
->
eventData
.
busCreated
.
busNumber
);
break
;
case
XmPciLpEvent_BusError
:
case
XmPciLpEvent_BusFailed
:
printk
(
KERN_INFO
"XmPciLpEvent.c: system bus %d failed
\n
"
,
eventParm
->
eventData
.
busFailed
.
busNumber
);
break
;
case
XmPciLpEvent_BusRecovered
:
case
XmPciLpEvent_UnQuiesceBus
:
printk
(
KERN_INFO
"XmPciLpEvent.c: system bus %d recovered
\n
"
,
eventParm
->
eventData
.
busRecovered
.
busNumber
);
break
;
case
XmPciLpEvent_NodeFailed
:
case
XmPciLpEvent_BridgeError
:
printk
(
KERN_INFO
"XmPciLpEvent.c: multi-adapter bridge %d/%d/%d failed
\n
"
,
eventParm
->
eventData
.
nodeFailed
.
busNumber
,
eventParm
->
eventData
.
nodeFailed
.
subBusNumber
,
eventParm
->
eventData
.
nodeFailed
.
deviceId
);
break
;
case
XmPciLpEvent_NodeRecovered
:
...
...
include/asm-ppc64/iSeries/ItExtVpdPanel.h
0 → 100644
View file @
2bf9c108
/*
* ItExtVpdPanel.h
* Copyright (C) 2002 Dave Boutcher IBM Corporation
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/*
*
* This struct maps the panel information
*
* Warning:
* This data must match the architecture for the panel information
*
*/
/*-------------------------------------------------------------------
* Standard Includes
*-------------------------------------------------------------------
*/
#ifndef _PPC_TYPES_H
#include <asm/types.h>
#endif
#ifndef _ITEXTVPDPANEL_H
#define _ITEXTVPDPANEL_H
struct
ItExtVpdPanel
{
// Definition of the Extended Vpd On Panel Data Area
char
systemSerial
[
8
];
char
mfgID
[
4
];
char
reserved1
[
24
];
char
machineType
[
4
];
char
systemID
[
6
];
char
somUniqueCnt
[
4
];
char
serialNumberCount
;
char
reserved2
[
7
];
u16
bbu3
;
u16
bbu2
;
u16
bbu1
;
char
xLocationLabel
[
8
];
u8
xRsvd1
[
6
];
u16
xFrameId
;
u8
xRsvd2
[
48
];
};
#endif
/* _ITEXTVPDPANEL_H */
include/asm-ppc64/iSeries/LparData.h
View file @
2bf9c108
...
...
@@ -37,6 +37,7 @@
#include <asm/iSeries/LparMap.h>
#include <asm/iSeries/ItVpdAreas.h>
#include <asm/iSeries/ItIplParmsReal.h>
#include <asm/iSeries/ItExtVpdPanel.h>
#include <asm/iSeries/ItLpQueue.h>
#include <asm/iSeries/IoHriProcessorVpd.h>
#include <asm/page.h>
...
...
@@ -45,6 +46,7 @@ extern struct LparMap xLparMap;
extern
struct
HvReleaseData
hvReleaseData
;
extern
struct
ItLpNaca
itLpNaca
;
extern
struct
ItIplParmsReal
xItIplParmsReal
;
extern
struct
ItExtVpdPanel
xItExtVpdPanel
;
extern
struct
IoHriProcessorVpd
xIoHriProcessorVpd
[];
extern
struct
ItLpQueue
xItLpQueue
;
extern
struct
ItVpdAreas
itVpdAreas
;
...
...
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