Re: About kexec issues in AWS nitro instances (RH bz 1758323)

2020-03-23 Thread Bhupesh Sharma
Hi Guilherme, On Mon, Mar 23, 2020 at 8:16 PM Guilherme G. Piccoli wrote: > > On 22/03/2020 18:16, Bhupesh Sharma wrote: > > Hello Guilherme, > > > > On Fri, Mar 20, 2020 at 9:10 PM Guilherme G. Piccoli > > wrote: > > > > Thanks for writing again. I was caught up in trying several other > > sugg

Re: arm64: Getting continuous PCIe "CmpltTO" AER from network card in kdump kernel

2020-03-23 Thread Robin Murphy
On 2020-03-23 3:21 pm, Prabhakar Kushwaha wrote: Hi All, I am facing issue on Marvell's ARM64 Thunder X2 with kdump kernel. Here network card is continuously giving following AER error [ 100.839168] igb :09:00.1: AER: aer_status: 0x4000, aer_mask: 0x [ 100.846463] igb :09:0

arm64: Getting continuous PCIe "CmpltTO" AER from network card in kdump kernel

2020-03-23 Thread Prabhakar Kushwaha
Hi All, I am facing issue on Marvell's ARM64 Thunder X2 with kdump kernel. Here network card is continuously giving following AER error [ 100.839168] igb :09:00.1: AER: aer_status: 0x4000, aer_mask: 0x [ 100.846463] igb :09:00.1: AER:[14] CmpltTO(First) [

Re: About kexec issues in AWS nitro instances (RH bz 1758323)

2020-03-23 Thread Guilherme G. Piccoli
On 22/03/2020 18:16, Bhupesh Sharma wrote: > Hello Guilherme, > > On Fri, Mar 20, 2020 at 9:10 PM Guilherme G. Piccoli > wrote: > > Thanks for writing again. I was caught up in trying several other > suggestions/code-snippets to further debug this. > I tried several combinations - turning iommu

Re: [RFC PATCH v2 1/3] meminfo_extra: introduce meminfo extra

2020-03-23 Thread Dave Young
Hi Jaewon, On 03/23/20 at 05:05pm, Jaewon Kim wrote: > Provide APIs to drivers so that they can show its memory usage on > /proc/meminfo_extra. > > int register_meminfo_extra(atomic_long_t *val, int shift, > const char *name); > int unregister_meminfo_extra(atomic_long_t

Re: [RFC PATCH v2 1/3] meminfo_extra: introduce meminfo extra

2020-03-23 Thread Greg KH
On Mon, Mar 23, 2020 at 05:05:01PM +0900, Jaewon Kim wrote: > Provide APIs to drivers so that they can show its memory usage on > /proc/meminfo_extra. > > int register_meminfo_extra(atomic_long_t *val, int shift, > const char *name); > int unregister_meminfo_extra(atomic_l

Re: [RFC PATCH v2 3/3] android: ion: include system heap size in meminfo extra

2020-03-23 Thread Greg KH
On Mon, Mar 23, 2020 at 05:05:03PM +0900, Jaewon Kim wrote: > In Android system ion system heap size is huge like hundreds of MB. To > know overal system memory usage, include ion system heap size in > proc/meminfo_extra. > > To include heap size, use register_meminfo_extra introduced in previous

[RFC PATCH v2 3/3] android: ion: include system heap size in meminfo extra

2020-03-23 Thread Jaewon Kim
In Android system ion system heap size is huge like hundreds of MB. To know overal system memory usage, include ion system heap size in proc/meminfo_extra. To include heap size, use register_meminfo_extra introduced in previous patch. Prior to register we need to add stats to show the ion heap us

[RFC PATCH v2 0/3] meminfo_extra: introduce meminfo extra

2020-03-23 Thread Jaewon Kim
/proc/meminfo or show_free_areas does not show full system wide memory usage status because memory stats do not track all memory allocations. There seems to be huge hidden memory especially on embedded system. It is because some HW IPs in the system use common DRAM memory instead of internal memory

[RFC PATCH v2 2/3] mm: zsmalloc: include zs page size in meminfo extra

2020-03-23 Thread Jaewon Kim
On most of recent Android device use DRAM memory based compressed swap to save free memory. And the swap device size is also big enough. The zsmalloc page size is alread shown on vmstat by commit 91537fee0013 ("mm: add NR_ZSMALLOC to vmstat"). If the size is also shown in /proc/meminfo_extra, it w

[RFC PATCH v2 1/3] meminfo_extra: introduce meminfo extra

2020-03-23 Thread Jaewon Kim
Provide APIs to drivers so that they can show its memory usage on /proc/meminfo_extra. int register_meminfo_extra(atomic_long_t *val, int shift, const char *name); int unregister_meminfo_extra(atomic_long_t *val); Signed-off-by: Jaewon Kim --- v2: move to /proc/meminfo