3) Seems there are some problem with HIGHMEM :(. System crashes if I'm trying
to run hackbench (see log 1). I can run hackbench only if HIGHMEM is disabled.
I've also tried to disable CONFIG_CPU_SW_DOMAIN_PAN, CONFIG_ARM_PATCH_PHYS_VIRT,
and CONFIG_CPUSETS, before disabling HIGHMEM.
Sorry, I'll not able to investigate it further because of Christmas holidays here.
I see. It seems not to trigger anything on x86.
Yah. I saw other reports - it seems this issue is not triggered on ARM SMP also
(as per report from Tim Sander). Will try to dig deeper.
I did more tests, but still don't know what is wrong.
1) vanilla 4.4 - no issue
2) 4.4-rt: CONFIG_PREEMPT_RT_BASE=n and CONFIG_PREEMPT_RT_FULL=n -- no issue
3) 4.4-rt: CONFIG_DEBUG_HIGHMEM=y -- issue is present log1
4) 4.4-rt: this is interesting ;)
I can run hackbench few times without issues If I run hackbench with RT priority (log2)
But I got crash immediately once I run it using non-RT priorities.
Seems I've found root cause of the issue - FIX_KMAP_BEGIN offset need to be taken into
account in switch_kmaps() and below diff fixes this issue for me.
What I'm not fully understand is why I'm the only one who hit this issue :(
New functionality was added by commit:
commit a5f4c561b3b19a9bc43a81da6382b0098ebbc1fb
ARM: 8415/1: early fixmap support for earlycon
and it is enabled by default.
Luckiness :(
@@ -138,7 +143,7 @@ void *kmap_atomic_pfn(unsigned long pfn)returnpage_address(page);type=kmap_atomic_idx_push();-idx=FIX_KMAP_BEGIN+type+KM_TYPE_NR*smp_processor_id();+idx=fixmap_idx(type);vaddr=__fix_to_virt(idx);#ifdef CONFIG_DEBUG_HIGHMEMBUG_ON(!pte_none(get_fixmap_pte(vaddr)));
--
RMK's Patch system: http://www.arm.linux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
@@ -34,6 +34,11 @@ static inline pte_t get_fixmap_pte(unsigned long vaddr)return*ptep;}+staticunsignedintfixmap_idx(inttype)+{+returnFIX_KMAP_BEGIN+type+KM_TYPE_NR*smp_processor_id();+}+
This looks very reasonable - I'll updated and re-send.
Would you agree if I'll add your Signed-off-by: in final patch?
Thanks for review.
[...]
--
regards,
-grygorii
From: Russell King - ARM Linux <hidden> Date: 2016-01-15 11:36:57
On Fri, Jan 15, 2016 at 01:35:33PM +0200, Grygorii Strashko wrote:
This looks very reasonable - I'll updated and re-send.
Would you agree if I'll add your Signed-off-by: in final patch?
Yes, that's fine. Please use:
Signed-off-by: Russell King <redacted>
Thanks.
--
RMK's Patch system: http://www.arm.linux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.