Re: [Crash-utility] arm64: doesn't work for kernel v5.4?

2019-10-03 Thread Dave Anderson



- Original Message -
> Hi Dave,
> 
> I tried to use crash v7.2.7 with kernel v5.4-rc1 on arm64.
> 
> 1. VA_BITS_ACTUAL is missing in vmcoreinfo.
>Does anyone work on fixing it on kernel side?
>(just adding one or two lines though)
> 
> 2. With a tweak above, I still fail to run crash with vmcore
>seeing the following errors;
>(I didn't dig into details)
> 
>crash-arm64: invalid kernel virtual address: 800010c689a8  type: 
> "kernel_config_data"
>WARNING: cannot read kernel_config_data
>crash-arm64: invalid kernel virtual address: 80001177a160  type: 
> "possible"
>WARNING: cannot read cpu_possible_map
>crash-arm64: invalid kernel virtual address: 80001177a140  type: 
> "present"
>WARNING: cannot read cpu_present_map
>crash-arm64: invalid kernel virtual address: 80001177a120  type: 
> "online"
>WARNING: cannot read cpu_online_map 
>crash-arm64: invalid kernel virtual address: 80001177a188  type: 
> "active" 
>WARNING: cannot read cpu_active_map
>crash-arm64: invalid kernel virtual address: 80001196afe0  type: 
> "shadow_timekeeper xtime_sec"
>crash-arm64: invalid kernel virtual address: 800011782b3c  type: 
> "init_uts_ns"
>WARNING: invalid linux_banner pointer: 800010c500e8
>crash: vmlinux.1003 and vmcore.1003 do not match!
> 
> Have you noticed this issue?

I have been waiting for our internal 5.4-rc1 based ARK kernel to be built,
and it looks like it should be available soon.  But I did not expect crash
to work on arm64 in 5.4.

I put in a bunch of 52-bit support into the crash utility last spring, but 
it was based upon an early proposed patch-set from Steve Capper that Chris
von Recklinghausen backported to our 4.18.0-80.el8 kernel at the time.
I believe Chris may have added the VA_BITS_ACTUAL vmcoreinfo entry (?),
and I'm presuming there will be other VM-related things that are 
different from that original kernel patch.

Thanks,
  Dave
   


> 
> Thanks,
> -Takahiro Akashi
> 
> --
> Crash-utility mailing list
> Crash-utility@redhat.com
> https://www.redhat.com/mailman/listinfo/crash-utility
> 

--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility


Re: [Crash-utility] arm64: doesn't work for kernel v5.4?

2019-10-03 Thread AKASHI Takahiro
Hi Bhupesh,

On Thu, Oct 03, 2019 at 11:25:25AM +0530, Bhupesh Sharma wrote:
> Hi Akashi,
> 
> On Thu, Oct 3, 2019 at 10:49 AM AKASHI Takahiro
>  wrote:
> >
> > Hi Dave,
> >
> > I tried to use crash v7.2.7 with kernel v5.4-rc1 on arm64.
> >
> > 1. VA_BITS_ACTUAL is missing in vmcoreinfo.
> >Does anyone work on fixing it on kernel side?
> >(just adding one or two lines though)
> 
> I am working on the changes in the vmcoreinfo after the 52-bit VA
> changes from Steve were accepted in Linux 5.4-rc1 ("Support for 52-bit
> virtual addressing in kernel space").

Okay.
I was trying to make sure that my kexec_file_load-based kdump patch
would work on v5.4 before reposting it to kernel ML.

Thanks,
-Takahiro Akashi

> The suggestions during the last set of reviews (my v3 patchset) was to
> introduce arch specific details like TCR_EL1.TxSZ in the vmcoreinfo
> and also to wait for the 52-bit changes to make way upstream (as I
> raised a couple of issues/kernel panic issues) earlier with the 52-bit
> VA changes from Steve.
> 
> I plan to send out the v4 patchset later this week (and will Cc you).
> 
> Thanks,
> Bhupesh
> 
> 
> > 2. With a tweak above, I still fail to run crash with vmcore
> >seeing the following errors;
> >(I didn't dig into details)
> >
> >crash-arm64: invalid kernel virtual address: 800010c689a8  type: 
> > "kernel_config_data"
> >WARNING: cannot read kernel_config_data
> >crash-arm64: invalid kernel virtual address: 80001177a160  type: 
> > "possible"
> >WARNING: cannot read cpu_possible_map
> >crash-arm64: invalid kernel virtual address: 80001177a140  type: 
> > "present"
> >WARNING: cannot read cpu_present_map
> >crash-arm64: invalid kernel virtual address: 80001177a120  type: 
> > "online"
> >WARNING: cannot read cpu_online_map
> >crash-arm64: invalid kernel virtual address: 80001177a188  type: 
> > "active"
> >WARNING: cannot read cpu_active_map
> >crash-arm64: invalid kernel virtual address: 80001196afe0  type: 
> > "shadow_timekeeper xtime_sec"
> >crash-arm64: invalid kernel virtual address: 800011782b3c  type: 
> > "init_uts_ns"
> >WARNING: invalid linux_banner pointer: 800010c500e8
> >crash: vmlinux.1003 and vmcore.1003 do not match!
> >
> > Have you noticed this issue?
> >
> > Thanks,
> > -Takahiro Akashi
> >
> > --
> > Crash-utility mailing list
> > Crash-utility@redhat.com
> > https://www.redhat.com/mailman/listinfo/crash-utility
> 
> --
> Crash-utility mailing list
> Crash-utility@redhat.com
> https://www.redhat.com/mailman/listinfo/crash-utility

--
Crash-utility mailing list
Crash-utility@redhat.com
https://www.redhat.com/mailman/listinfo/crash-utility