From: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
To: Richard Weinberger <richard@nod.at>
Cc: <linux-arch@vger.kernel.org>, <arnd@arndb.de>,
<linux-kernel@vger.kernel.org>,
Ralf Baechle <ralf@linux-mips.org>,
"John Crispin" <blogic@openwrt.org>,
Markos Chandras <markos.chandras@imgtec.com>,
<linux-mips@linux-mips.org>
Subject: Re: [PATCH 16/27] mips: Use common bits from generic tlb.h
Date: Thu, 15 May 2014 11:02:17 -0700 [thread overview]
Message-ID: <53750129.6060902@imgtec.com> (raw)
In-Reply-To: <1400093999-18703-17-git-send-email-richard@nod.at>
On 05/14/2014 11:59 AM, Richard Weinberger wrote:
> It is no longer needed to define them on our own.
>
> Cc: Ralf Baechle <ralf@linux-mips.org>
> Cc: John Crispin <blogic@openwrt.org>
> Cc: Markos Chandras <markos.chandras@imgtec.com>
> Cc: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
> Cc: Richard Weinberger <richard@nod.at>
> Cc: linux-mips@linux-mips.org
> Cc: linux-kernel@vger.kernel.org
> Signed-off-by: Richard Weinberger <richard@nod.at>
> ---
> arch/mips/include/asm/tlb.h | 7 -------
> 1 file changed, 7 deletions(-)
>
> diff --git a/arch/mips/include/asm/tlb.h b/arch/mips/include/asm/tlb.h
> index 4a23493..5ea43ca 100644
> --- a/arch/mips/include/asm/tlb.h
> +++ b/arch/mips/include/asm/tlb.h
> @@ -10,13 +10,6 @@
> if (!tlb->fullmm) \
> flush_cache_range(vma, vma->vm_start, vma->vm_end); \
> } while (0)
> -#define tlb_end_vma(tlb, vma) do { } while (0)
> -#define __tlb_remove_tlb_entry(tlb, ptep, address) do { } while (0)
> -
> -/*
> - * .. because we flush the whole mm when it fills up.
> - */
> -#define tlb_flush(tlb) flush_tlb_mm((tlb)->mm)
>
> #define UNIQUE_ENTRYHI(idx) \
> ((CKSEG0 + ((idx) << (PAGE_SHIFT + 1))) | \
I would like to know why these functions are eliminated (don't find any
clue).
Is it just because there will be a generic one or the calls would be
eliminated?
And if there are generic - can I tune it later?
Explanation of Q: MIPS R6 architecture has now TLBINV instruction which
eliminates TLB elements only for specific ASID (read here - "mm_struct")
and I would like to use it for efficiency in tlb_flush()/flush_tlb_mm.
(Not sure about tlb_end_vma()/ __tlb_remove_tlb_entry() yet)
- Leonid.
WARNING: multiple messages have this Message-ID (diff)
From: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
To: Richard Weinberger <richard@nod.at>
Cc: linux-arch@vger.kernel.org, arnd@arndb.de,
linux-kernel@vger.kernel.org, Ralf Baechle <ralf@linux-mips.org>,
John Crispin <blogic@openwrt.org>,
Markos Chandras <markos.chandras@imgtec.com>,
linux-mips@linux-mips.org
Subject: Re: [PATCH 16/27] mips: Use common bits from generic tlb.h
Date: Thu, 15 May 2014 11:02:17 -0700 [thread overview]
Message-ID: <53750129.6060902@imgtec.com> (raw)
Message-ID: <20140515180217._fIwWEBVHfRZDFpUWuBcyEC1q4Em-tGeLlFyGj-2tl8@z> (raw)
In-Reply-To: <1400093999-18703-17-git-send-email-richard@nod.at>
On 05/14/2014 11:59 AM, Richard Weinberger wrote:
> It is no longer needed to define them on our own.
>
> Cc: Ralf Baechle <ralf@linux-mips.org>
> Cc: John Crispin <blogic@openwrt.org>
> Cc: Markos Chandras <markos.chandras@imgtec.com>
> Cc: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
> Cc: Richard Weinberger <richard@nod.at>
> Cc: linux-mips@linux-mips.org
> Cc: linux-kernel@vger.kernel.org
> Signed-off-by: Richard Weinberger <richard@nod.at>
> ---
> arch/mips/include/asm/tlb.h | 7 -------
> 1 file changed, 7 deletions(-)
>
> diff --git a/arch/mips/include/asm/tlb.h b/arch/mips/include/asm/tlb.h
> index 4a23493..5ea43ca 100644
> --- a/arch/mips/include/asm/tlb.h
> +++ b/arch/mips/include/asm/tlb.h
> @@ -10,13 +10,6 @@
> if (!tlb->fullmm) \
> flush_cache_range(vma, vma->vm_start, vma->vm_end); \
> } while (0)
> -#define tlb_end_vma(tlb, vma) do { } while (0)
> -#define __tlb_remove_tlb_entry(tlb, ptep, address) do { } while (0)
> -
> -/*
> - * .. because we flush the whole mm when it fills up.
> - */
> -#define tlb_flush(tlb) flush_tlb_mm((tlb)->mm)
>
> #define UNIQUE_ENTRYHI(idx) \
> ((CKSEG0 + ((idx) << (PAGE_SHIFT + 1))) | \
I would like to know why these functions are eliminated (don't find any
clue).
Is it just because there will be a generic one or the calls would be
eliminated?
And if there are generic - can I tune it later?
Explanation of Q: MIPS R6 architecture has now TLBINV instruction which
eliminates TLB elements only for specific ASID (read here - "mm_struct")
and I would like to use it for efficiency in tlb_flush()/flush_tlb_mm.
(Not sure about tlb_end_vma()/ __tlb_remove_tlb_entry() yet)
- Leonid.
next prev parent reply other threads:[~2014-05-15 18:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1400093999-18703-1-git-send-email-richard@nod.at>
2014-05-14 18:59 ` [PATCH 16/27] mips: Use common bits from generic tlb.h Richard Weinberger
2014-05-15 18:02 ` Leonid Yegoshin [this message]
2014-05-15 18:02 ` Leonid Yegoshin
2014-05-15 18:31 ` Richard Weinberger
2014-05-27 9:17 ` Ralf Baechle
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=53750129.6060902@imgtec.com \
--to=leonid.yegoshin@imgtec.com \
--cc=arnd@arndb.de \
--cc=blogic@openwrt.org \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=markos.chandras@imgtec.com \
--cc=ralf@linux-mips.org \
--cc=richard@nod.at \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox