* [PATCH] Remove stale iseries global
@ 2006-04-18 16:25 Olof Johansson
2006-04-18 17:31 ` Will Schmidt
0 siblings, 1 reply; 7+ messages in thread
From: Olof Johansson @ 2006-04-18 16:25 UTC (permalink / raw)
To: sfr; +Cc: linuxppc-dev, paulus
Hi,
Not even the iSeries maintainer seems to have access to this legendary
piranha simulator. It adds a bit of ugliness in the common time init
code, and if it's no longer used we might as well be done with it and
remove the bloat.
Signed-off-by: Olof Johansson <olof@lixom.net>
Index: 2.6/arch/powerpc/kernel/time.c
===================================================================
--- 2.6.orig/arch/powerpc/kernel/time.c
+++ 2.6/arch/powerpc/kernel/time.c
@@ -76,7 +76,6 @@
/* keep track of when we need to update the rtc */
time_t last_rtc_update;
-extern int piranha_simulator;
#ifdef CONFIG_PPC_ISERIES
unsigned long iSeries_recal_titan = 0;
unsigned long iSeries_recal_tb = 0;
@@ -1010,10 +1009,7 @@ void __init time_init(void)
tb_to_ns_scale = scale;
tb_to_ns_shift = shift;
-#ifdef CONFIG_PPC_ISERIES
- if (!piranha_simulator)
-#endif
- tm = get_boot_time();
+ tm = get_boot_time();
write_seqlock_irqsave(&xtime_lock, flags);
Index: 2.6/arch/powerpc/platforms/iseries/mf.c
===================================================================
--- 2.6.orig/arch/powerpc/platforms/iseries/mf.c
+++ 2.6/arch/powerpc/platforms/iseries/mf.c
@@ -45,7 +45,6 @@
#include "setup.h"
-extern int piranha_simulator;
static int mf_initialized;
/*
@@ -658,7 +657,7 @@ static void mf_clear_src(void)
void __init mf_display_progress(u16 value)
{
- if (piranha_simulator || !mf_initialized)
+ if (!mf_initialized)
return;
if (0xFFFF == value)
@@ -1295,9 +1294,6 @@ __initcall(mf_proc_init);
*/
void iSeries_get_rtc_time(struct rtc_time *rtc_tm)
{
- if (piranha_simulator)
- return;
-
mf_get_rtc(rtc_tm);
rtc_tm->tm_mon--;
}
@@ -1316,9 +1312,6 @@ unsigned long iSeries_get_boot_time(void
{
struct rtc_time tm;
- if (piranha_simulator)
- return 0;
-
mf_get_boot_rtc(&tm);
return mktime(tm.tm_year + 1900, tm.tm_mon, tm.tm_mday,
tm.tm_hour, tm.tm_min, tm.tm_sec);
Index: 2.6/arch/powerpc/platforms/iseries/setup.c
===================================================================
--- 2.6.orig/arch/powerpc/platforms/iseries/setup.c
+++ 2.6/arch/powerpc/platforms/iseries/setup.c
@@ -80,9 +80,6 @@ extern void iSeries_pci_final_fixup(void
static void iSeries_pci_final_fixup(void) { }
#endif
-/* Global Variables */
-int piranha_simulator;
-
extern int rd_size; /* Defined in drivers/block/rd.c */
extern unsigned long embedded_sysmap_start;
extern unsigned long embedded_sysmap_end;
@@ -339,8 +336,6 @@ static void __init iSeries_init_early(vo
#ifdef CONFIG_SMP
smp_init_iSeries();
#endif
- if (itLpNaca.xPirEnvironMode == 0)
- piranha_simulator = 1;
/* Associate Lp Event Queue 0 with processor 0 */
HvCallEvent_setLpEventQueueInterruptProc(0, 0);
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Remove stale iseries global
2006-04-18 16:25 [PATCH] Remove stale iseries global Olof Johansson
@ 2006-04-18 17:31 ` Will Schmidt
2006-04-18 17:54 ` Michael Ellerman
0 siblings, 1 reply; 7+ messages in thread
From: Will Schmidt @ 2006-04-18 17:31 UTC (permalink / raw)
To: Olof Johansson; +Cc: linuxppc-dev, paulus
On Tue, 2006-04-18 at 11:25 -0500, Olof Johansson wrote:
> Hi,
>
> Not even the iSeries maintainer seems to have access to this legendary
> piranha simulator. It adds a bit of ugliness in the common time init
> code, and if it's no longer used we might as well be done with it and
> remove the bloat.
>
Yes, the piranha tools are no longer used with linux. I see no reason
why this needs to stay.
> Signed-off-by: Olof Johansson <olof@lixom.net>
>
Acked-by: Will Schmidt willschm@us.ibm.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Remove stale iseries global
2006-04-18 17:31 ` Will Schmidt
@ 2006-04-18 17:54 ` Michael Ellerman
2006-04-18 19:02 ` Will Schmidt
0 siblings, 1 reply; 7+ messages in thread
From: Michael Ellerman @ 2006-04-18 17:54 UTC (permalink / raw)
To: will_schmidt; +Cc: Olof Johansson, linuxppc-dev, paulus
[-- Attachment #1: Type: text/plain, Size: 1199 bytes --]
On Tue, 2006-04-18 at 12:31 -0500, Will Schmidt wrote:
> On Tue, 2006-04-18 at 11:25 -0500, Olof Johansson wrote:
> > Hi,
> >
> > Not even the iSeries maintainer seems to have access to this legendary
> > piranha simulator. It adds a bit of ugliness in the common time init
> > code, and if it's no longer used we might as well be done with it and
> > remove the bloat.
>
> Yes, the piranha tools are no longer used with linux. I see no reason
> why this needs to stay.
So can we get rid of this from head_64.S as well? Or is that a different
debugger?
/*
* At offset 0x28 and 0x30 are offsets to the mschunks_map
* array (used by the iSeries LPAR debugger to do translation
* between physical addresses and absolute addresses) and
* to the pidhash table (also used by the debugger)
*/
.llong mschunks_map-KERNELBASE
.llong 0 /* pidhash-KERNELBASE SFRXXX */
cheers
--
Michael Ellerman
IBM OzLabs
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 191 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] Remove stale iseries global
2006-04-18 17:54 ` Michael Ellerman
@ 2006-04-18 19:02 ` Will Schmidt
2006-05-02 4:05 ` [PATCH] powerpc: Remove remaining iSeries debugger cruft Michael Ellerman
0 siblings, 1 reply; 7+ messages in thread
From: Will Schmidt @ 2006-04-18 19:02 UTC (permalink / raw)
To: michael; +Cc: Olof Johansson, linuxppc-dev, paulus
On Tue, 2006-04-18 at 19:54 +0200, Michael Ellerman wrote:
> On Tue, 2006-04-18 at 12:31 -0500, Will Schmidt wrote:
> > On Tue, 2006-04-18 at 11:25 -0500, Olof Johansson wrote:
> > > Hi,
> > >
> > > Not even the iSeries maintainer seems to have access to this legendary
> > > piranha simulator. It adds a bit of ugliness in the common time init
> > > code, and if it's no longer used we might as well be done with it and
> > > remove the bloat.
> >
> > Yes, the piranha tools are no longer used with linux. I see no reason
> > why this needs to stay.
>
> So can we get rid of this from head_64.S as well? Or is that a different
> debugger?
It's likely the same (piranha) debugger. I'm not aware of any other
debuggers that would be involved here.
What I dont know is if this offset to the mschunks_map array is also
used by the hypervisor for some non debug purposes. If iSeries
continues to work without it, then it can probably go too.
Just be sure that PPC_EARLY_DEBUG_ISERIES will continue to work for
getting info out of the system. :-)
> /*
> * At offset 0x28 and 0x30 are offsets to the mschunks_map
> * array (used by the iSeries LPAR debugger to do translation
> * between physical addresses and absolute addresses) and
> * to the pidhash table (also used by the debugger)
> */
> .llong mschunks_map-KERNELBASE
> .llong 0 /* pidhash-KERNELBASE SFRXXX */
>
> cheers
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] powerpc: Remove remaining iSeries debugger cruft
2006-04-18 19:02 ` Will Schmidt
@ 2006-05-02 4:05 ` Michael Ellerman
2006-05-02 4:52 ` Michael Ellerman
2006-05-02 5:57 ` [RFC/PATCH] " Michael Ellerman
0 siblings, 2 replies; 7+ messages in thread
From: Michael Ellerman @ 2006-05-02 4:05 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev
This isn't needed anymore, as no one is using this debugger. Doesn't have
any effect on early debug output etc.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
---
arch/powerpc/kernel/head_64.S | 9 ---------
1 file changed, 9 deletions(-)
Index: to-merge/arch/powerpc/kernel/head_64.S
===================================================================
--- to-merge.orig/arch/powerpc/kernel/head_64.S
+++ to-merge/arch/powerpc/kernel/head_64.S
@@ -93,15 +93,6 @@ END_FTR_SECTION(0, 1)
. = 0x20
.llong hvReleaseData-KERNELBASE
- /*
- * At offset 0x28 and 0x30 are offsets to the mschunks_map
- * array (used by the iSeries LPAR debugger to do translation
- * between physical addresses and absolute addresses) and
- * to the pidhash table (also used by the debugger)
- */
- .llong mschunks_map-KERNELBASE
- .llong 0 /* pidhash-KERNELBASE SFRXXX */
-
/* Offset 0x38 - Pointer to start of embedded System.map */
.globl embedded_sysmap_start
embedded_sysmap_start:
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] powerpc: Remove remaining iSeries debugger cruft
2006-05-02 4:05 ` [PATCH] powerpc: Remove remaining iSeries debugger cruft Michael Ellerman
@ 2006-05-02 4:52 ` Michael Ellerman
2006-05-02 5:57 ` [RFC/PATCH] " Michael Ellerman
1 sibling, 0 replies; 7+ messages in thread
From: Michael Ellerman @ 2006-05-02 4:52 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 559 bytes --]
On Tue, 2006-05-02 at 14:05 +1000, Michael Ellerman wrote:
> This isn't needed anymore, as no one is using this debugger. Doesn't have
> any effect on early debug output etc.
>
> Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
> ---
This is bogus, it moves the embedded_sysmap variables, new patch coming.
cheers
--
Michael Ellerman
IBM OzLabs
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 191 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* [RFC/PATCH] powerpc: Remove remaining iSeries debugger cruft
2006-05-02 4:05 ` [PATCH] powerpc: Remove remaining iSeries debugger cruft Michael Ellerman
2006-05-02 4:52 ` Michael Ellerman
@ 2006-05-02 5:57 ` Michael Ellerman
1 sibling, 0 replies; 7+ messages in thread
From: Michael Ellerman @ 2006-05-02 5:57 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev
None of this seems to be necessary, so let's see if can remove it and not
break anything. Booted on iSeries & pSeries here.
NB. we don't remove the hvReleaseData, we just move it down so that the file
reads more clearly.
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
---
arch/powerpc/kernel/head_64.S | 37 ++++++++-------------------------
arch/powerpc/platforms/iseries/setup.c | 12 ----------
2 files changed, 9 insertions(+), 40 deletions(-)
Index: to-merge/arch/powerpc/kernel/head_64.S
===================================================================
--- to-merge.orig/arch/powerpc/kernel/head_64.S
+++ to-merge/arch/powerpc/kernel/head_64.S
@@ -85,34 +85,6 @@ END_FTR_SECTION(0, 1)
/* Catch branch to 0 in real mode */
trap
-#ifdef CONFIG_PPC_ISERIES
- /*
- * At offset 0x20, there is a pointer to iSeries LPAR data.
- * This is required by the hypervisor
- */
- . = 0x20
- .llong hvReleaseData-KERNELBASE
-
- /*
- * At offset 0x28 and 0x30 are offsets to the mschunks_map
- * array (used by the iSeries LPAR debugger to do translation
- * between physical addresses and absolute addresses) and
- * to the pidhash table (also used by the debugger)
- */
- .llong mschunks_map-KERNELBASE
- .llong 0 /* pidhash-KERNELBASE SFRXXX */
-
- /* Offset 0x38 - Pointer to start of embedded System.map */
- .globl embedded_sysmap_start
-embedded_sysmap_start:
- .llong 0
- /* Offset 0x40 - Pointer to end of embedded System.map */
- .globl embedded_sysmap_end
-embedded_sysmap_end:
- .llong 0
-
-#endif /* CONFIG_PPC_ISERIES */
-
/* Secondary processors spin on this value until it goes to 1. */
.globl __secondary_hold_spinloop
__secondary_hold_spinloop:
@@ -124,6 +96,15 @@ __secondary_hold_spinloop:
__secondary_hold_acknowledge:
.llong 0x0
+#ifdef CONFIG_PPC_ISERIES
+ /*
+ * At offset 0x20, there is a pointer to iSeries LPAR data.
+ * This is required by the hypervisor
+ */
+ . = 0x20
+ .llong hvReleaseData-KERNELBASE
+#endif /* CONFIG_PPC_ISERIES */
+
. = 0x60
/*
* The following code is used on pSeries to hold secondary processors
Index: to-merge/arch/powerpc/platforms/iseries/setup.c
===================================================================
--- to-merge.orig/arch/powerpc/platforms/iseries/setup.c
+++ to-merge/arch/powerpc/platforms/iseries/setup.c
@@ -84,8 +84,6 @@ static void iSeries_pci_final_fixup(void
#endif
extern int rd_size; /* Defined in drivers/block/rd.c */
-extern unsigned long embedded_sysmap_start;
-extern unsigned long embedded_sysmap_end;
extern unsigned long iSeries_recal_tb;
extern unsigned long iSeries_recal_titan;
@@ -568,16 +566,6 @@ static void __init iSeries_fixup_klimit(
if (naca.xRamDisk)
klimit = KERNELBASE + (u64)naca.xRamDisk +
(naca.xRamDiskSize * HW_PAGE_SIZE);
- else {
- /*
- * No ram disk was included - check and see if there
- * was an embedded system map. Change klimit to take
- * into account any embedded system map
- */
- if (embedded_sysmap_end)
- klimit = KERNELBASE + ((embedded_sysmap_end + 4095) &
- 0xfffffffffffff000);
- }
}
static int __init iSeries_src_init(void)
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-05-02 5:57 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-18 16:25 [PATCH] Remove stale iseries global Olof Johansson
2006-04-18 17:31 ` Will Schmidt
2006-04-18 17:54 ` Michael Ellerman
2006-04-18 19:02 ` Will Schmidt
2006-05-02 4:05 ` [PATCH] powerpc: Remove remaining iSeries debugger cruft Michael Ellerman
2006-05-02 4:52 ` Michael Ellerman
2006-05-02 5:57 ` [RFC/PATCH] " Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).