Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1186156 > unrolled thread
| Started by | Mark Salter <msalter@redhat.com> |
|---|---|
| First post | 2015-07-16 20:00 +0200 |
| Last post | 2015-07-17 11:50 +0200 |
| Articles | 5 — 3 participants |
Back to article view | Back to linux.kernel
[PATCH] arm64: remove dead code Mark Salter <msalter@redhat.com> - 2015-07-16 20:00 +0200
Re: [PATCH] arm64: remove dead code Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2015-07-17 08:50 +0200
Re: [PATCH] arm64: remove dead code Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2015-07-17 09:00 +0200
Re: [PATCH] arm64: remove dead code Will Deacon <will.deacon@arm.com> - 2015-07-17 11:50 +0200
Re: [PATCH] arm64: remove dead code Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2015-07-17 11:50 +0200
| From | Mark Salter <msalter@redhat.com> |
|---|---|
| Date | 2015-07-16 20:00 +0200 |
| Subject | [PATCH] arm64: remove dead code |
| Message-ID | <pMVBT-5ug-1@gated-at.bofh.it> |
Commit 68234df4ea79 ("arm64: kill flush_cache_all()") removed
soft_reset() from the kernel. This was the only caller of
setup_mm_for_reboot(), so remove that also.
Signed-off-by: Mark Salter <msalter@redhat.com>
---
arch/arm64/include/asm/mmu.h | 1 -
arch/arm64/mm/mmu.c | 11 -----------
2 files changed, 12 deletions(-)
diff --git a/arch/arm64/include/asm/mmu.h b/arch/arm64/include/asm/mmu.h
index 79fcfb0..0302087 100644
--- a/arch/arm64/include/asm/mmu.h
+++ b/arch/arm64/include/asm/mmu.h
@@ -28,7 +28,6 @@ typedef struct {
#define ASID(mm) ((mm)->context.id & 0xffff)
extern void paging_init(void);
-extern void setup_mm_for_reboot(void);
extern void __iomem *early_io_map(phys_addr_t phys, unsigned long virt);
extern void init_mem_pgprot(void);
extern void create_pgd_mapping(struct mm_struct *mm, phys_addr_t phys,
diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
index a4ede4e..63012fe 100644
--- a/arch/arm64/mm/mmu.c
+++ b/arch/arm64/mm/mmu.c
@@ -461,17 +461,6 @@ void __init paging_init(void)
}
/*
- * Enable the identity mapping to allow the MMU disabling.
- */
-void setup_mm_for_reboot(void)
-{
- cpu_set_reserved_ttbr0();
- flush_tlb_all();
- cpu_set_idmap_tcr_t0sz();
- cpu_switch_mm(idmap_pg_dir, &init_mm);
-}
-
-/*
* Check whether a kernel address is valid (derived from arch/x86/).
*/
int kern_addr_valid(unsigned long addr)
--
2.4.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Ard Biesheuvel <ard.biesheuvel@linaro.org> |
|---|---|
| Date | 2015-07-17 08:50 +0200 |
| Message-ID | <pN7D3-666-15@gated-at.bofh.it> |
| In reply to | #1186156 |
(adding Geoff and Takahiro)
On 16 July 2015 at 19:58, Mark Salter <msalter@redhat.com> wrote:
> Commit 68234df4ea79 ("arm64: kill flush_cache_all()") removed
> soft_reset() from the kernel. This was the only caller of
> setup_mm_for_reboot(), so remove that also.
>
I am wondering if setup_mm_for_reboot() is being used in the kexec
patches. Perhaps we should check that before removing it.
Geoff?
> Signed-off-by: Mark Salter <msalter@redhat.com>
> ---
> arch/arm64/include/asm/mmu.h | 1 -
> arch/arm64/mm/mmu.c | 11 -----------
> 2 files changed, 12 deletions(-)
>
> diff --git a/arch/arm64/include/asm/mmu.h b/arch/arm64/include/asm/mmu.h
> index 79fcfb0..0302087 100644
> --- a/arch/arm64/include/asm/mmu.h
> +++ b/arch/arm64/include/asm/mmu.h
> @@ -28,7 +28,6 @@ typedef struct {
> #define ASID(mm) ((mm)->context.id & 0xffff)
>
> extern void paging_init(void);
> -extern void setup_mm_for_reboot(void);
> extern void __iomem *early_io_map(phys_addr_t phys, unsigned long virt);
> extern void init_mem_pgprot(void);
> extern void create_pgd_mapping(struct mm_struct *mm, phys_addr_t phys,
> diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
> index a4ede4e..63012fe 100644
> --- a/arch/arm64/mm/mmu.c
> +++ b/arch/arm64/mm/mmu.c
> @@ -461,17 +461,6 @@ void __init paging_init(void)
> }
>
> /*
> - * Enable the identity mapping to allow the MMU disabling.
> - */
> -void setup_mm_for_reboot(void)
> -{
> - cpu_set_reserved_ttbr0();
> - flush_tlb_all();
> - cpu_set_idmap_tcr_t0sz();
> - cpu_switch_mm(idmap_pg_dir, &init_mm);
> -}
> -
> -/*
> * Check whether a kernel address is valid (derived from arch/x86/).
> */
> int kern_addr_valid(unsigned long addr)
> --
> 2.4.3
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Ard Biesheuvel <ard.biesheuvel@linaro.org> |
|---|---|
| Date | 2015-07-17 09:00 +0200 |
| Message-ID | <pN7MK-6h9-5@gated-at.bofh.it> |
| In reply to | #1186501 |
(use Geoff's correct email address)
On 17 July 2015 at 08:49, Ard Biesheuvel <ard.biesheuvel@linaro.org> wrote:
> (adding Geoff and Takahiro)
>
> On 16 July 2015 at 19:58, Mark Salter <msalter@redhat.com> wrote:
>> Commit 68234df4ea79 ("arm64: kill flush_cache_all()") removed
>> soft_reset() from the kernel. This was the only caller of
>> setup_mm_for_reboot(), so remove that also.
>>
>
> I am wondering if setup_mm_for_reboot() is being used in the kexec
> patches. Perhaps we should check that before removing it.
>
> Geoff?
>
>
>> Signed-off-by: Mark Salter <msalter@redhat.com>
>> ---
>> arch/arm64/include/asm/mmu.h | 1 -
>> arch/arm64/mm/mmu.c | 11 -----------
>> 2 files changed, 12 deletions(-)
>>
>> diff --git a/arch/arm64/include/asm/mmu.h b/arch/arm64/include/asm/mmu.h
>> index 79fcfb0..0302087 100644
>> --- a/arch/arm64/include/asm/mmu.h
>> +++ b/arch/arm64/include/asm/mmu.h
>> @@ -28,7 +28,6 @@ typedef struct {
>> #define ASID(mm) ((mm)->context.id & 0xffff)
>>
>> extern void paging_init(void);
>> -extern void setup_mm_for_reboot(void);
>> extern void __iomem *early_io_map(phys_addr_t phys, unsigned long virt);
>> extern void init_mem_pgprot(void);
>> extern void create_pgd_mapping(struct mm_struct *mm, phys_addr_t phys,
>> diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
>> index a4ede4e..63012fe 100644
>> --- a/arch/arm64/mm/mmu.c
>> +++ b/arch/arm64/mm/mmu.c
>> @@ -461,17 +461,6 @@ void __init paging_init(void)
>> }
>>
>> /*
>> - * Enable the identity mapping to allow the MMU disabling.
>> - */
>> -void setup_mm_for_reboot(void)
>> -{
>> - cpu_set_reserved_ttbr0();
>> - flush_tlb_all();
>> - cpu_set_idmap_tcr_t0sz();
>> - cpu_switch_mm(idmap_pg_dir, &init_mm);
>> -}
>> -
>> -/*
>> * Check whether a kernel address is valid (derived from arch/x86/).
>> */
>> int kern_addr_valid(unsigned long addr)
>> --
>> 2.4.3
>>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Will Deacon <will.deacon@arm.com> |
|---|---|
| Date | 2015-07-17 11:50 +0200 |
| Message-ID | <pNarf-1FW-3@gated-at.bofh.it> |
| In reply to | #1186509 |
On Fri, Jul 17, 2015 at 07:50:30AM +0100, Ard Biesheuvel wrote:
> (use Geoff's correct email address)
>
> On 17 July 2015 at 08:49, Ard Biesheuvel <ard.biesheuvel@linaro.org> wrote:
> > (adding Geoff and Takahiro)
> >
> > On 16 July 2015 at 19:58, Mark Salter <msalter@redhat.com> wrote:
> >> Commit 68234df4ea79 ("arm64: kill flush_cache_all()") removed
> >> soft_reset() from the kernel. This was the only caller of
> >> setup_mm_for_reboot(), so remove that also.
> >>
> >
> > I am wondering if setup_mm_for_reboot() is being used in the kexec
> > patches. Perhaps we should check that before removing it.
Well, given that I can't see any kexec patches on the radar for 4.3, I'm
happy to merge this clean-up and Geoff can reintroduce the function in
his series if he needs it.
Will
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Ard Biesheuvel <ard.biesheuvel@linaro.org> |
|---|---|
| Date | 2015-07-17 11:50 +0200 |
| Message-ID | <pNarh-1FW-21@gated-at.bofh.it> |
| In reply to | #1186648 |
On 17 July 2015 at 11:45, Will Deacon <will.deacon@arm.com> wrote:
> On Fri, Jul 17, 2015 at 07:50:30AM +0100, Ard Biesheuvel wrote:
>> (use Geoff's correct email address)
>>
>> On 17 July 2015 at 08:49, Ard Biesheuvel <ard.biesheuvel@linaro.org> wrote:
>> > (adding Geoff and Takahiro)
>> >
>> > On 16 July 2015 at 19:58, Mark Salter <msalter@redhat.com> wrote:
>> >> Commit 68234df4ea79 ("arm64: kill flush_cache_all()") removed
>> >> soft_reset() from the kernel. This was the only caller of
>> >> setup_mm_for_reboot(), so remove that also.
>> >>
>> >
>> > I am wondering if setup_mm_for_reboot() is being used in the kexec
>> > patches. Perhaps we should check that before removing it.
>
> Well, given that I can't see any kexec patches on the radar for 4.3, I'm
> happy to merge this clean-up and Geoff can reintroduce the function in
> his series if he needs it.
>
OK, fair enough
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web