From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Christoph Egger <siccegge@cs.fau.de>
Cc: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>,
vamos@i4.informatik.uni-erlangen.de,
Huang Weiyi <weiyi.huang@gmail.com>,
linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org,
Paul Mackerras <paulus@samba.org>
Subject: Re: [PATCH 1/5] Removing dead BOOK3E_MMU_TLB_STATS
Date: Thu, 10 Jun 2010 15:20:19 +1000 [thread overview]
Message-ID: <1276147219.1962.41.camel@pasglop> (raw)
In-Reply-To: <20aa4815e07e1be0b073bcf4f63331a68b8f74be.1275925219.git.siccegge@cs.fau.de>
On Wed, 2010-06-09 at 11:59 +0200, Christoph Egger wrote:
> BOOK3E_MMU_TLB_STATS doesn't exist in Kconfig, therefore removing all
> references for it from the source code.
Heh, thanks but no :-)
I want to keep that code here, until we hook it up again. It was hooked
up properly in some internal stuff that didn't go upstream for some
reason and I need to fix that.
Cheers,
Ben.
> Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
> ---
> arch/powerpc/include/asm/exception-64e.h | 38 ------------------------------
> arch/powerpc/mm/tlb_low_64e.S | 9 -------
> 2 files changed, 0 insertions(+), 47 deletions(-)
>
> diff --git a/arch/powerpc/include/asm/exception-64e.h b/arch/powerpc/include/asm/exception-64e.h
> index 6d53f31..db74814 100644
> --- a/arch/powerpc/include/asm/exception-64e.h
> +++ b/arch/powerpc/include/asm/exception-64e.h
> @@ -65,14 +65,7 @@
> #define EX_TLB_MMUCR0 (12 * 8) /* Level 0 */
> #define EX_TLB_MAS1 (12 * 8) /* Level 0 */
> #define EX_TLB_MAS2 (13 * 8) /* Level 0 */
> -#ifdef CONFIG_BOOK3E_MMU_TLB_STATS
> -#define EX_TLB_R8 (14 * 8)
> -#define EX_TLB_R9 (15 * 8)
> -#define EX_TLB_LR (16 * 8)
> -#define EX_TLB_SIZE (17 * 8)
> -#else
> #define EX_TLB_SIZE (14 * 8)
> -#endif
>
> #define START_EXCEPTION(label) \
> .globl exc_##label##_book3e; \
> @@ -157,36 +150,6 @@ exc_##label##_book3e:
> addi r11,r13,PACA_EXTLB; \
> TLB_MISS_RESTORE(r11)
>
> -#ifdef CONFIG_BOOK3E_MMU_TLB_STATS
> -#define TLB_MISS_PROLOG_STATS \
> - mflr r10; \
> - std r8,EX_TLB_R8(r12); \
> - std r9,EX_TLB_R9(r12); \
> - std r10,EX_TLB_LR(r12);
> -#define TLB_MISS_RESTORE_STATS \
> - ld r16,EX_TLB_LR(r12); \
> - ld r9,EX_TLB_R9(r12); \
> - ld r8,EX_TLB_R8(r12); \
> - mtlr r16;
> -#define TLB_MISS_STATS_D(name) \
> - addi r9,r13,MMSTAT_DSTATS+name; \
> - bl .tlb_stat_inc;
> -#define TLB_MISS_STATS_I(name) \
> - addi r9,r13,MMSTAT_ISTATS+name; \
> - bl .tlb_stat_inc;
> -#define TLB_MISS_STATS_X(name) \
> - ld r8,PACA_EXTLB+EX_TLB_ESR(r13); \
> - cmpdi cr2,r8,-1; \
> - beq cr2,61f; \
> - addi r9,r13,MMSTAT_DSTATS+name; \
> - b 62f; \
> -61: addi r9,r13,MMSTAT_ISTATS+name; \
> -62: bl .tlb_stat_inc;
> -#define TLB_MISS_STATS_SAVE_INFO \
> - std r14,EX_TLB_ESR(r12); /* save ESR */ \
> -
> -
> -#else
> #define TLB_MISS_PROLOG_STATS
> #define TLB_MISS_RESTORE_STATS
> #define TLB_MISS_STATS_D(name)
> @@ -194,7 +157,6 @@ exc_##label##_book3e:
> #define TLB_MISS_STATS_X(name)
> #define TLB_MISS_STATS_Y(name)
> #define TLB_MISS_STATS_SAVE_INFO
> -#endif
>
> #define SET_IVOR(vector_number, vector_offset) \
> li r3,vector_offset@l; \
> diff --git a/arch/powerpc/mm/tlb_low_64e.S b/arch/powerpc/mm/tlb_low_64e.S
> index 8b04c54..4d7d059 100644
> --- a/arch/powerpc/mm/tlb_low_64e.S
> +++ b/arch/powerpc/mm/tlb_low_64e.S
> @@ -758,12 +758,3 @@ tlb_load_linear_fault:
> 1: TLB_MISS_EPILOG_ERROR_SPECIAL
> b exc_instruction_storage_book3e
>
> -
> -#ifdef CONFIG_BOOK3E_MMU_TLB_STATS
> -.tlb_stat_inc:
> -1: ldarx r8,0,r9
> - addi r8,r8,1
> - stdcx. r8,0,r9
> - bne- 1b
> - blr
> -#endif
WARNING: multiple messages have this Message-ID (diff)
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Christoph Egger <siccegge@cs.fau.de>
Cc: Paul Mackerras <paulus@samba.org>,
Kumar Gala <galak@kernel.crashing.org>,
Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>,
Huang Weiyi <weiyi.huang@gmail.com>,
linuxppc-dev@ozlabs.org, linux-kernel@vger.kernel.org,
vamos@i4.informatik.uni-erlangen.de
Subject: Re: [PATCH 1/5] Removing dead BOOK3E_MMU_TLB_STATS
Date: Thu, 10 Jun 2010 15:20:19 +1000 [thread overview]
Message-ID: <1276147219.1962.41.camel@pasglop> (raw)
In-Reply-To: <20aa4815e07e1be0b073bcf4f63331a68b8f74be.1275925219.git.siccegge@cs.fau.de>
On Wed, 2010-06-09 at 11:59 +0200, Christoph Egger wrote:
> BOOK3E_MMU_TLB_STATS doesn't exist in Kconfig, therefore removing all
> references for it from the source code.
Heh, thanks but no :-)
I want to keep that code here, until we hook it up again. It was hooked
up properly in some internal stuff that didn't go upstream for some
reason and I need to fix that.
Cheers,
Ben.
> Signed-off-by: Christoph Egger <siccegge@cs.fau.de>
> ---
> arch/powerpc/include/asm/exception-64e.h | 38 ------------------------------
> arch/powerpc/mm/tlb_low_64e.S | 9 -------
> 2 files changed, 0 insertions(+), 47 deletions(-)
>
> diff --git a/arch/powerpc/include/asm/exception-64e.h b/arch/powerpc/include/asm/exception-64e.h
> index 6d53f31..db74814 100644
> --- a/arch/powerpc/include/asm/exception-64e.h
> +++ b/arch/powerpc/include/asm/exception-64e.h
> @@ -65,14 +65,7 @@
> #define EX_TLB_MMUCR0 (12 * 8) /* Level 0 */
> #define EX_TLB_MAS1 (12 * 8) /* Level 0 */
> #define EX_TLB_MAS2 (13 * 8) /* Level 0 */
> -#ifdef CONFIG_BOOK3E_MMU_TLB_STATS
> -#define EX_TLB_R8 (14 * 8)
> -#define EX_TLB_R9 (15 * 8)
> -#define EX_TLB_LR (16 * 8)
> -#define EX_TLB_SIZE (17 * 8)
> -#else
> #define EX_TLB_SIZE (14 * 8)
> -#endif
>
> #define START_EXCEPTION(label) \
> .globl exc_##label##_book3e; \
> @@ -157,36 +150,6 @@ exc_##label##_book3e:
> addi r11,r13,PACA_EXTLB; \
> TLB_MISS_RESTORE(r11)
>
> -#ifdef CONFIG_BOOK3E_MMU_TLB_STATS
> -#define TLB_MISS_PROLOG_STATS \
> - mflr r10; \
> - std r8,EX_TLB_R8(r12); \
> - std r9,EX_TLB_R9(r12); \
> - std r10,EX_TLB_LR(r12);
> -#define TLB_MISS_RESTORE_STATS \
> - ld r16,EX_TLB_LR(r12); \
> - ld r9,EX_TLB_R9(r12); \
> - ld r8,EX_TLB_R8(r12); \
> - mtlr r16;
> -#define TLB_MISS_STATS_D(name) \
> - addi r9,r13,MMSTAT_DSTATS+name; \
> - bl .tlb_stat_inc;
> -#define TLB_MISS_STATS_I(name) \
> - addi r9,r13,MMSTAT_ISTATS+name; \
> - bl .tlb_stat_inc;
> -#define TLB_MISS_STATS_X(name) \
> - ld r8,PACA_EXTLB+EX_TLB_ESR(r13); \
> - cmpdi cr2,r8,-1; \
> - beq cr2,61f; \
> - addi r9,r13,MMSTAT_DSTATS+name; \
> - b 62f; \
> -61: addi r9,r13,MMSTAT_ISTATS+name; \
> -62: bl .tlb_stat_inc;
> -#define TLB_MISS_STATS_SAVE_INFO \
> - std r14,EX_TLB_ESR(r12); /* save ESR */ \
> -
> -
> -#else
> #define TLB_MISS_PROLOG_STATS
> #define TLB_MISS_RESTORE_STATS
> #define TLB_MISS_STATS_D(name)
> @@ -194,7 +157,6 @@ exc_##label##_book3e:
> #define TLB_MISS_STATS_X(name)
> #define TLB_MISS_STATS_Y(name)
> #define TLB_MISS_STATS_SAVE_INFO
> -#endif
>
> #define SET_IVOR(vector_number, vector_offset) \
> li r3,vector_offset@l; \
> diff --git a/arch/powerpc/mm/tlb_low_64e.S b/arch/powerpc/mm/tlb_low_64e.S
> index 8b04c54..4d7d059 100644
> --- a/arch/powerpc/mm/tlb_low_64e.S
> +++ b/arch/powerpc/mm/tlb_low_64e.S
> @@ -758,12 +758,3 @@ tlb_load_linear_fault:
> 1: TLB_MISS_EPILOG_ERROR_SPECIAL
> b exc_instruction_storage_book3e
>
> -
> -#ifdef CONFIG_BOOK3E_MMU_TLB_STATS
> -.tlb_stat_inc:
> -1: ldarx r8,0,r9
> - addi r8,r8,1
> - stdcx. r8,0,r9
> - bne- 1b
> - blr
> -#endif
next prev parent reply other threads:[~2010-06-10 6:18 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-09 9:58 [PATCH 0/5] Removing dead code Christoph Egger
2010-06-09 9:59 ` [PATCH 1/5] Removing dead BOOK3E_MMU_TLB_STATS Christoph Egger
2010-06-10 5:20 ` Benjamin Herrenschmidt [this message]
2010-06-10 5:20 ` Benjamin Herrenschmidt
2010-06-09 9:59 ` [PATCH 2/5] Removing dead CONFIG_HIGHPTE Christoph Egger
2010-06-09 10:00 ` [PATCH 3/5] Removing dead CONFIG_SMP_750 Christoph Egger
2010-06-09 12:35 ` Josh Boyer
2010-06-09 12:35 ` Josh Boyer
2010-06-10 6:14 ` Benjamin Herrenschmidt
2010-06-10 6:14 ` Benjamin Herrenschmidt
2010-06-10 12:23 ` Christoph Egger
2010-06-10 12:23 ` Christoph Egger
2010-06-11 6:41 ` Benjamin Herrenschmidt
2010-06-11 6:41 ` Benjamin Herrenschmidt
2010-06-09 10:00 ` [PATCH 4/5] Removing dead CONFIG_SERIAL_TEXT_DEBUG Christoph Egger
2010-06-09 10:28 ` Josh Boyer
2010-06-09 10:28 ` Josh Boyer
2010-06-09 10:01 ` [PATCH 5/5] Removing dead CONFIG_PPC47x Christoph Egger
2010-06-09 11:02 ` [PATCH 5b/5] " Christoph Egger
2010-06-09 12:05 ` Josh Boyer
2010-06-09 12:05 ` Josh Boyer
2010-06-10 8:59 ` Benjamin Herrenschmidt
2010-06-10 8:59 ` Benjamin Herrenschmidt
2010-06-10 18:46 ` [PATCH 0/5] Removing dead code Joe Perches
2010-06-10 18:46 ` Joe Perches
2010-06-11 7:26 ` Reinhard Tartler
2010-06-11 7:26 ` Reinhard Tartler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1276147219.1962.41.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=cascardo@holoscopio.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.org \
--cc=siccegge@cs.fau.de \
--cc=vamos@i4.informatik.uni-erlangen.de \
--cc=weiyi.huang@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.