kernel space: finding cpu usage of individual process/thread

2022-03-23 Thread Pintu Agarwal
Hi, For one of my requirements I need to find cpu usage or load_avg of an individual process or thread using "for_each_process_thread(process, thread)" where process/thread is a pointer to "task_struct". But, currently I am not able to figure out which is the right field from task_struct to get

Re: dm-verity: How to exactly use the dm-mod.create with verity-metadata append

2021-11-25 Thread Pintu Agarwal
On Tue, 23 Nov 2021 at 22:13, Will Drewry wrote: > > On Tue, Nov 23, 2021 at 4:36 AM Pintu Agarwal wrote: > > > > Hi, > > > > For rootfs dm-verity I am trying to pass dm-mod.create from our > > bootloader but it seems not working for me. > > So, I ne

dm-verity: How to exactly use the dm-mod.create with verity-metadata append

2021-11-23 Thread Pintu Agarwal
Hi, For rootfs dm-verity I am trying to pass dm-mod.create from our bootloader but it seems not working for me. So, I need some guidance on the parameters that we pass here. The documentation also does not seem to help much. Kernel: 4.14 (with dm-init patch backported) Target: Arm-32 / NAND /

Re: MTD: How to get actual image size from MTD partition

2021-11-08 Thread Pintu Agarwal
Hi, On Fri, 29 Oct 2021 at 22:18, Ezequiel Garcia wrote: > > On Fri, 29 Oct 2021 at 13:13, Pintu Agarwal wrote: > > > > Hi All, > > > > On Mon, 30 Aug 2021 at 21:28, Pintu Agarwal wrote: > > > > > > On Sun, 22 Aug 2021 at 19:51, Ezequiel Garcia

Re: MTD: How to get actual image size from MTD partition

2021-10-29 Thread Pintu Agarwal
Hi All, On Mon, 30 Aug 2021 at 21:28, Pintu Agarwal wrote: > > On Sun, 22 Aug 2021 at 19:51, Ezequiel Garcia > wrote: > > > In other words, IMO it's best to expose the NAND through UBI > > for both read-only and read-write access, using a single UBI device, > >

Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue

2021-10-29 Thread Pintu Agarwal
Hi All, On Wed, 8 Sept 2021 at 17:38, Greg KH wrote: > > > > > No, but you can backport it easily. Back at > > > > > http://lists.infradead.org/pipermail/openwrt-devel/2019-November/025967.html > > > > > I provided backports of this feature to OpenWrt, for the 4.14 and 4.19 > > > > > kernels. >

Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue

2021-09-08 Thread Pintu Agarwal
Hi, On Mon, 6 Sept 2021 at 21:58, Pintu Agarwal wrote: > On Tue, 31 Aug 2021 at 18:49, Pintu Agarwal wrote: > > > > No, but you can backport it easily. Back at > > > http://lists.infradead.org/pipermail/openwrt-devel/2019-November/025967.html > > > I p

Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue

2021-09-06 Thread Pintu Agarwal
Dear Thomas, Mikulas, Need your help in root causing my dm-verity issue with squashfs. Please see my comments inline. On Tue, 31 Aug 2021 at 18:49, Pintu Agarwal wrote: > > No, but you can backport it easily. Back at > > http://lists.infradead.org/pipermail/openwrt-devel/2019-Nov

Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue

2021-08-31 Thread Pintu Agarwal
Hi, On Tue, 31 Aug 2021 at 00:42, Thomas Petazzoni wrote: > > Hello, > > On Mon, 30 Aug 2021 23:48:40 +0530 > Pintu Agarwal wrote: > > > ohh that means we already have a working reference. > > If possible can you share the details, even 4.19 or higher wil

Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue

2021-08-30 Thread Pintu Agarwal
On Mon, 30 Aug 2021 at 22:25, Thomas Petazzoni wrote: > > Hello, > > On Mon, 30 Aug 2021 21:55:19 +0530 > Pintu Agarwal wrote: > > > Sorry for coming back to this again.. > > Unfortunately, none of the options is working for us with squashfs > > (bootlo

Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue

2021-08-30 Thread Pintu Agarwal
On Wed, 21 Jul 2021 at 22:59, Pintu Agarwal wrote: > > On Wed, 21 Jul 2021 at 22:40, Mikulas Patocka wrote: > > > > > > > > > Try to set up dm-verity with block size 512 bytes. > > > > > > > > I don't know what block size does squashfs

Re: MTD: How to get actual image size from MTD partition

2021-08-30 Thread Pintu Agarwal
On Sun, 22 Aug 2021 at 19:51, Ezequiel Garcia wrote: > In other words, IMO it's best to expose the NAND through UBI > for both read-only and read-write access, using a single UBI device, > and then creating UBI volumes as needed. This will allow UBI > to spread wear leveling across the whole

Re: MTD: How to get actual image size from MTD partition

2021-08-20 Thread Pintu Agarwal
On Thu, 29 Jul 2021 at 22:41, Pintu Agarwal wrote: > > On Thu, 29 Jul 2021 at 17:33, Ezequiel Garcia > wrote: > > > > On Thu, 29 Jul 2021 at 08:45, Richard Weinberger wrote: > > > > > > Ezequiel, > > > > > > - Ursprüngliche Mai

Re: MTD: How to get actual image size from MTD partition

2021-07-29 Thread Pintu Agarwal
On Thu, 29 Jul 2021 at 17:33, Ezequiel Garcia wrote: > > On Thu, 29 Jul 2021 at 08:45, Richard Weinberger wrote: > > > > Ezequiel, > > > > - Ursprüngliche Mail - > > > [snip] > > > > > > Ouch, so surprised that after all these years someone is doing > > > squashfs/mtdblock > > > instead

Re: MTD: How to get actual image size from MTD partition

2021-07-22 Thread Pintu Agarwal
On Thu, 22 Jul 2021 at 02:24, Richard Weinberger wrote: > > - Ursprüngliche Mail - > >> But let me advertise ubiblock a second time. > > Sorry, I could not understand about the ubiblock request. Is it > > possible to elaborate little more ? > > We are already using squashfs on top of our

Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue

2021-07-21 Thread Pintu Agarwal
On Wed, 21 Jul 2021 at 22:40, Mikulas Patocka wrote: > > > > > > Try to set up dm-verity with block size 512 bytes. > > > > > > I don't know what block size does squashfs use, but if the filesystem > > > block size is smaller than dm-verity block size, it doesn't work. > > > > > Okay thank you

Re: Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue

2021-07-21 Thread Pintu Agarwal
On Tue, 20 Jul 2021 at 17:12, Mikulas Patocka wrote: > > Hi > > Try to set up dm-verity with block size 512 bytes. > > I don't know what block size does squashfs use, but if the filesystem > block size is smaller than dm-verity block size, it doesn't work. > Okay thank you so much for this clue,

Kernel 4.14: Using dm-verity with squashfs rootfs - mounting issue

2021-07-20 Thread Pintu Agarwal
Hi, Our ARM32 Linux embedded system consists of these: * Linux Kernel: 4.14 * Processor: Qualcomm Arm32 Cortex-A7 * Storage: NAND 512MB * Platform: Simple busybox * Filesystem: UBIFS, Squashfs * Consists of nand raw partitions, squashfs ubi volumes. My requirement: We wanted to use dm-verity at

Re: MTD: How to get actual image size from MTD partition

2021-07-20 Thread Pintu Agarwal
On Tue, 20 Jul 2021 at 12:10, Richard Weinberger wrote: > > Anyways, I will create a separate thread for dm-verity issue and keep > > this thread still open for UBI image size issue. > > We may use dm-verify for rootfs during booting, but still we need to > > perform integrity check for other

Re: MTD: How to get actual image size from MTD partition

2021-07-20 Thread Pintu Agarwal
On Mon, 19 Jul 2021 at 14:58, Richard Weinberger wrote: > > - Ursprüngliche Mail - > > Von: "Pintu Agarwal" > > An: "richard" > > CC: "Greg KH" , "linux-kernel" > > , "linux-mtd" > > , "linux-f

Re: MTD: How to get actual image size from MTD partition

2021-07-19 Thread Pintu Agarwal
On Fri, 16 Jul 2021 at 21:56, Richard Weinberger wrote: > >> My requirement: > >> To find the checksum of a real image in runtime which is flashed in an > >> MTD partition. > > > > Try using the dm-verity module for ensuring that a block device really > > is properly signed before mounting it.

MTD: How to get actual image size from MTD partition

2021-07-16 Thread Pintu Agarwal
Hi, Our ARM32 Linux embedded system consists of these: * Linux Kernel: 4.14 * Processor: Qualcomm Arm32 Cortex-A7 * Storage: NAND 512MB * Platform: Simple busybox * Filesystem: UBIFS, Squashfs * Consists of nand raw partitions, squashfs ubi volumes. My requirement: To find the checksum of a real

Re: Query: UBIFS: How to detect empty volumes

2021-06-27 Thread Pintu Agarwal
On Sun, 27 Jun 2021 at 14:12, Richard Weinberger wrote: > > On Thu, Jun 24, 2021 at 6:09 PM Pintu Agarwal wrote: > > I have one basic query related to UBIFS volumes on a system with NAND > > partition. > > There is no such thing as a UBIFS volume. Do you mean UBI volum

Re: Query: UBIFS: How to detect empty volumes

2021-06-24 Thread Pintu Agarwal
Hi, I have one basic query related to UBIFS volumes on a system with NAND partition. In short, how to detect a particular empty volume inside a system partition while flashing the partition image? Suppose I have one big system partition that consists of 4-5 ubi volumes inside it with varying

Query: UBIFS: How to detect empty volumes

2021-06-24 Thread Pintu Agarwal
Hi, I have one basic query related to UBIFS volumes on a system with NAND partition. In short, how to detect a particular empty volume inside a system partition while flashing the partition image? Suppose I have one big system partition that consists of 4-5 ubi volumes inside it with varying

Re: KASLR support on ARM with Kernel 4.9 and 4.14

2020-09-30 Thread Pintu Agarwal
On Tue, 29 Sep 2020 at 01:20, Kees Cook wrote: > Note that I still can't explain what you're seeing. /proc/kallsyms > shouldn't be affected by these patches -- I would expect it to either > report the true value or 00s. > > > I will disable kptr_restrict and check or, I will enable > >

Re: KASLR support on ARM with Kernel 4.9 and 4.14

2020-09-28 Thread Pintu Agarwal
On Mon, 28 Sep 2020 at 19:15, Pintu Agarwal wrote: > > On Sat, 26 Sep 2020 at 22:10, Kees Cook wrote: > > > > >> I wonder if this is an Android Common kernel? > > > It uses the below kernel for 4.14: > > > https://gitlab.com/quicla/kernel/msm-4.14/

Re: KASLR support on ARM with Kernel 4.9 and 4.14

2020-09-28 Thread Pintu Agarwal
On Sat, 26 Sep 2020 at 22:10, Kees Cook wrote: > > >> I wonder if this is an Android Common kernel? > > It uses the below kernel for 4.14: > > https://gitlab.com/quicla/kernel/msm-4.14/-/tree/LE.UM.3.4.2.r1.5 (or > > similar branch). > > Okay, so yes. And this appears to have the hashing of %p

Re: KASLR support on ARM with Kernel 4.9 and 4.14

2020-09-26 Thread Pintu Agarwal
On Sat, 26 Sep 2020 at 05:17, Kees Cook wrote: > > > > For a 3/1 split ARM kernel of the typical size, all kernel virtual > > addresses start with 0xc0, and given that the kernel is located at the > > start of the linear map, those addresses cannot change even if you > > move the kernel around in

KASLR support on ARM with Kernel 4.9 and 4.14

2020-09-25 Thread Pintu Agarwal
Hi All, This is regarding the KASLR feature support on ARM for the kernel version 4.9 and 4.14. Is KASLR supported on ARM-32 Linux 4.9 and above ? Is it dependent on CONFIG_RANDOMIZE_BASE or /proc/sys/kernel/randomize_va_space ? Is there any relation between these two? Is the changing kernel

Re: Generic way for verifying GPIO wakeup capability

2020-06-10 Thread Pintu Agarwal
On Tue, 9 Jun 2020 at 23:06, Pintu Agarwal wrote: > > Hi All, > > I am looking for ways to wakeup any devices (from sleep) using any > arbitrary gpio wakeup method in a generic way (either from user space > or kernel space) that should work on any kernel version (starting f

Generic way for verifying GPIO wakeup capability

2020-06-09 Thread Pintu Agarwal
Hi All, I am looking for ways to wakeup any devices (from sleep) using any arbitrary gpio wakeup method in a generic way (either from user space or kernel space) that should work on any kernel version (starting from 4.14 onwards). What are the options available right now ? I wanted to experiment

Re: Estimating total memory usage in any Linux system

2020-05-20 Thread Pintu Agarwal
On Wed, 20 May 2020 at 11:02, Valdis Klētnieks wrote: > > On Wed, 20 May 2020 10:26:50 +0530, Pintu Agarwal said: > > I know it is weird to manually arrive a MemTotal from the values of meminfo. > > But I am actually looking for general formula. > > You missed the poin

Re: Estimating total memory usage in any Linux system

2020-05-19 Thread Pintu Agarwal
On Wed, 20 May 2020 at 09:31, Valdis Klētnieks wrote: > > On Tue, 19 May 2020 22:33:15 +0530, Pintu Agarwal said: > > > > Below are some data taken from a small embedded arm32 device with 512MB > > > RAM: > > > > > > > Sorry, I forgot to me

Re: Estimating total memory usage in any Linux system

2020-05-19 Thread Pintu Agarwal
On Mon, 18 May 2020 at 23:27, Pintu Agarwal wrote: > > Hi, > > I was just trying to manually calculate the total memory available in > a system to match up the MemTotal shown in /proc/meminfo > I know "free -m" command will give the vary high level usage, but I > w

Estimating total memory usage in any Linux system

2020-05-18 Thread Pintu Agarwal
Hi, I was just trying to manually calculate the total memory available in a system to match up the MemTotal shown in /proc/meminfo I know "free -m" command will give the vary high level usage, but I wanted to breakdown the MemTotal numbers to see usage in each category. I am looking for a common

Re: interrupt handler not getting called after resume

2019-12-30 Thread Pintu Agarwal
Dear Anish, On Thu, 5 Dec 2019 at 00:55, anish singh wrote: > > On Wed, Dec 4, 2019 at 1:49 AM Pintu Agarwal wrote: > > > > On Wed, 4 Dec 2019 at 00:28, anish singh > > wrote: > > > > > > On Tue, Dec 3, 2019 at 6:12 AM Pintu Agarwal wrote: > >

Re: interrupt handler not getting called after resume

2019-12-04 Thread Pintu Agarwal
On Wed, 4 Dec 2019 at 00:28, anish singh wrote: > > On Tue, Dec 3, 2019 at 6:12 AM Pintu Agarwal wrote: > > > > Hi All, > > > > I have one general query. > > > > If an interrupt handler is NOT getting called (for one device) after > > the syst

interrupt handler not getting called after resume

2019-12-03 Thread Pintu Agarwal
Hi All, I have one general query. If an interrupt handler is NOT getting called (for one device) after the system resume (from snapshot image), then what could be the issue? Note: * The suspend worked perfectly fine. * The runtime suspend/resume of the system is also working fine. If anybody

interrupt handler not getting called after resume

2019-12-03 Thread Pintu Agarwal
Hi All, I have one general query. If an interrupt handler is NOT getting called (for one device) after the system resume (from snapshot image), then what could be the issue? Note: * The suspend worked perfectly fine. * The runtime suspend/resume of the system is also working fine. If anybody

Re: [IMX] [DRM]: help in analyzing clock_summary rate difference

2019-07-11 Thread Pintu Agarwal
Hi, I need one general help in analyzing difference in clock_summary rate before and after the system resume. I am using custom IMX7 board with 4.9 Kernel. With this I am trying to support some functionality during suspend/resume. I am trying to analyze clk_summary from: # cat

Re: [IMX] [DRM]: suspend/resume support

2019-07-01 Thread Pintu Agarwal
On Sat, Jun 22, 2019 at 1:43 PM Pintu Agarwal wrote: > > On Fri, Jun 21, 2019 at 9:09 PM Fabio Estevam wrote: > > > > On Fri, Jun 21, 2019 at 12:13 PM Pintu Agarwal wrote: > > > > > Okay there is some update on the 2nd part. > > > Now I am able to

Re: [IMX] [DRM]: suspend/resume support

2019-06-22 Thread Pintu Agarwal
On Fri, Jun 21, 2019 at 9:09 PM Fabio Estevam wrote: > > On Fri, Jun 21, 2019 at 12:13 PM Pintu Agarwal wrote: > > > Okay there is some update on the 2nd part. > > Now I am able to successfully install all imx modules after the resume > > (no hang). > > But

Re: [IMX] [DRM]: suspend/resume support

2019-06-21 Thread Pintu Agarwal
On Wed, Jun 19, 2019 at 8:59 PM Pintu Agarwal wrote: > > > This scenario is not with suspend/resume. > > > This hang is, when we make hdmi as a loadable module (.ko) and trying > > > to install it after resume. > > > In this case, suspend/resume will

Re: [IMX] [DRM]: suspend/resume support

2019-06-21 Thread Pintu Agarwal
On Wed, Jun 19, 2019 at 9:56 PM Valdis Klētnieks wrote: > > On Wed, 19 Jun 2019 20:47:34 +0530, Pintu Agarwal said: > > > No I mean to say, there are lots of features and customization already > > done on this version and stabilized. > > Upgrading again m

Re: [IMX] [DRM]: suspend/resume support

2019-06-19 Thread Pintu Agarwal
On Wed, Jun 19, 2019 at 8:41 PM Fabio Estevam wrote: > > > > Then you can test suspend/resume and see if HDMI hangs or not. > > > > > By this suspend/resume, you mean "suspend-to-ram" or "suspend-to-disk" ? > > I tested with "echo mem > /sys/power/state" > hmm. That's what I said. This is runtime

Re: [IMX] [DRM]: suspend/resume support

2019-06-19 Thread Pintu Agarwal
On Wed, Jun 19, 2019 at 8:34 PM Greg KH wrote: > > On Wed, Jun 19, 2019 at 07:03:39PM +0530, Pintu Agarwal wrote: > > You can think that the version I am using right now is almost 4.9 itself. > > Upgrading again to higher kernel version is again difficult, also > >

Re: [IMX] [DRM]: suspend/resume support

2019-06-19 Thread Pintu Agarwal
On Wed, Jun 19, 2019 at 7:14 PM Fabio Estevam wrote: > > On Wed, Jun 19, 2019 at 10:33 AM Pintu Agarwal wrote: > > > You can think that the version I am using right now is almost 4.9 itself. > > "almost 4.9" does not help, sorry. > > > Upgrading again to

Re: [IMX] [DRM]: suspend/resume support

2019-06-19 Thread Pintu Agarwal
On Tue, Jun 18, 2019 at 8:39 PM Fabio Estevam wrote: > > On Tue, Jun 18, 2019 at 11:46 AM Pintu Agarwal wrote: > > > Thank you so much for your reply. > > Yes, I already checked the latest mainline kernel changes until 5.2-**. > > I see that there are many cleanup r

Re: [IMX] [DRM]: suspend/resume support

2019-06-18 Thread Pintu Agarwal
On Tue, Jun 18, 2019 at 7:32 PM Fabio Estevam wrote: > > Hi Pintu, > > On Mon, Jun 17, 2019 at 10:50 AM Pintu Agarwal wrote: > > > > Hi All, > > > > I am trying to implement suspend/resume functionality to to imx-hdmi driver: > > https://git.kernel.org

[IMX] [DRM]: suspend/resume support

2019-06-17 Thread Pintu Agarwal
Hi All, I am trying to implement suspend/resume functionality to to imx-hdmi driver: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/gpu/drm/imx/dw_hdmi-imx.c?h=v4.9.181 So, I need some help about this. I logged the request in imx community, but it seems they are

Re: Pause a process execution from external program

2019-06-17 Thread Pintu Agarwal
On Fri, Jun 14, 2019 at 1:13 AM Valdis Klētnieks wrote: > > On Thu, 13 Jun 2019 13:22:12 +0530, Shyam Saini said: > > > from command line we use ctrl-z to stop execution of a foreground > > process but you can program > > SIGTSTP signal handler in your application code to do the same. > > Note

Re: Pause a process execution from external program

2019-06-17 Thread Pintu Agarwal
On Thu, Jun 13, 2019 at 8:52 PM Elias Kouskoumvekakis wrote: > > On Thu, Jun 13, 2019 at 10:45 AM Pintu Agarwal wrote: > > > > For some reason, I want to halt/pause the execution (for some > > specified time) of a running process/thread (at some location), > > wi

Re: Pause a process execution from external program

2019-06-13 Thread Pintu Agarwal
On Thu, Jun 13, 2019 at 1:22 PM Shyam Saini wrote: > > Hi Pintu, > > > > Hi All, > > I was just wondering if this is possible in the Linux world. > > My requirement is: > > For some reason, I want to halt/pause the execution (for some > > specified time) of a running process/thread (at some

Pause a process execution from external program

2019-06-13 Thread Pintu Agarwal
Hi All, I was just wondering if this is possible in the Linux world. My requirement is: For some reason, I want to halt/pause the execution (for some specified time) of a running process/thread (at some location), without modified the source, may be by firing some events/signals from an another

Building and cross-compiling kernel source on Mac OS

2019-03-12 Thread Pintu Agarwal
Hi, I have a Mac Book Pro with macOS High Sierra 10.13.x installed (with Mac OS Extended (Journaled, Encrypted)). I also have the Xcode installed so I can compile a C program using gcc. Now, I wanted to build linux kernel code (cross compile for arm or risc-v) on Mac OS. I know this is possible,

Re: ssh session with qemu-arm using busybox

2019-03-12 Thread Pintu Agarwal
On Tue, Mar 12, 2019 at 7:41 PM Suzuki K Poulose wrote: > > > > On 12/03/2019 14:02, Pintu Agarwal wrote: > >> > >> -netdev user,id=unet,hostfwd=tcp::-:22 \ > >> -net user \ > >> > >> and you 'll get guest's port 22 to be forwarded

Re: ssh session with qemu-arm using busybox

2019-03-12 Thread Pintu Agarwal
> > -netdev user,id=unet,hostfwd=tcp::-:22 \ > -net user \ > > and you 'll get guest's port 22 to be forwarded to hosts port , so > you can do > > ssh root@localhost: > > from the host. > I tried many different options, but unfortunately none worked for me. 1) qemu-system-arm -M

ssh session with qemu-arm using busybox

2019-03-11 Thread Pintu Agarwal
Hi, I have a qemu-arm setup with busybox which I normally use to test my kernel changes. I use this command to boot it: QEMU-ARM$ qemu-system-arm -M vexpress-a9 -m 1024M -kernel ../KERNEL/linux/arch/arm/boot/zImage -dtb ../KERNEL/linux/arch/arm/boot/dts/vexpress-v2p-ca9.dtb -initrd rootfs.img.gz

Re: arm64 Kernel build for qemu-system-aarch64 ?

2019-02-22 Thread Pintu Agarwal
On Fri, Feb 22, 2019 at 7:41 PM Mark Rutland wrote: > > On Fri, Feb 22, 2019 at 07:17:00PM +0530, Pintu Agarwal wrote: > > Hi All, > > Hi, > > > I want to build Linux Kernel 4.20 for arm64 and use it on qemu-arm64. > > I see that there is a defconfig availabl

arm64 Kernel build for qemu-system-aarch64 ?

2019-02-22 Thread Pintu Agarwal
Hi All, I want to build Linux Kernel 4.20 for arm64 and use it on qemu-arm64. I see that there is a defconfig available in arch/arm64/configs/defconfig But I am not sure whether it will work for qemu-arm64, and by default which machine type is supported. I already have working setup for qemu-arm

Re: Need help: how to locate failure from irq_chip subsystem

2019-01-21 Thread Pintu Agarwal
On Fri, Jan 18, 2019 at 5:23 PM Sai Prakash Ranjan wrote: > > On 1/18/2019 4:50 PM, Pintu Agarwal wrote: > >>>> Could you please tell which QCOM SoC this board is based on? > >>>> > >>> > >>> Snapdragon 845 with kernel 4.9.x > >

Re: Need help: how to locate failure from irq_chip subsystem

2019-01-18 Thread Pintu Agarwal
> >> Could you please tell which QCOM SoC this board is based on? > >> > > > > Snapdragon 845 with kernel 4.9.x > > I want to know from which subsystem it is triggered:drivers/soc/qcom/ > > > > Irqchip driver is "drivers/irqchip/irq-gic-v3.c". The kernel you are > using is msm-4.9 I suppose or

Re: Need help: how to locate failure from irq_chip subsystem

2019-01-18 Thread Pintu Agarwal
On Fri, Jan 18, 2019 at 3:54 PM Sai Prakash Ranjan wrote: > > Hi Pintu-san, > > On 1/18/2019 3:38 PM, Pintu Agarwal wrote: > > Hi All, > > > > Currently, I am trying to debug a boot up crash on some qualcomm > > snapdragon arm64 board with kernel 4.9. >

Need help: how to locate failure from irq_chip subsystem

2019-01-18 Thread Pintu Agarwal
Hi All, Currently, I am trying to debug a boot up crash on some qualcomm snapdragon arm64 board with kernel 4.9. I could find the cause of the failure, but I am unable to locate from which subsystem/drivers this is getting triggered. If you have any ideas or suggestions to locate the issue,

Re: [ARM64] Printing IRQ stack usage information

2018-11-20 Thread Pintu Agarwal
On Sat, Nov 17, 2018 at 6:36 PM Pintu Agarwal wrote: > > On Sat, Nov 17, 2018 at 12:02 AM wrote: > > > > > But my concern is that if I dump it from irq handler, I will get > > > information only for the current cpu. > > > How do I store and get the informa

Re: [ARM64] Printing IRQ stack usage information

2018-11-17 Thread Pintu Agarwal
On Sat, Nov 17, 2018 at 12:02 AM wrote: > > On Fri, 16 Nov 2018 23:13:48 +0530, Pintu Agarwal said: > > On Fri, Nov 16, 2018 at 10:16 PM wrote: > > > > Congrats. You just re-invented DEBUG_STACK_USAGE, which just keeps a > > > high-water mark > > > fo

Re: [ARM64] Printing IRQ stack usage information

2018-11-16 Thread Pintu Agarwal
On Fri, Nov 16, 2018 at 10:16 PM wrote: > > On Fri, 16 Nov 2018 20:10:28 +0530, Pintu Agarwal said: > > > > Look at the code controlled by '#ifdef CONFIG_DEBUG_STACK_USAGE' > > > For example: is it possible to keep storing the irq_stack_usage (for > > each cpu in

Re: [ARM64] Printing IRQ stack usage information

2018-11-16 Thread Pintu Agarwal
On Fri, Nov 16, 2018 at 5:03 PM wrote: > > On Fri, 16 Nov 2018 11:44:36 +0530, Pintu Agarwal said: > > > > If your question is "Did one > > > of the CPUs blow out its IRQ stack (or come close to doing so)?" there's > > > better > > > ap

Re: [ARM64] Printing IRQ stack usage information

2018-11-15 Thread Pintu Agarwal
On Thu, 15 Nov 2018, 10:19 pm > On Thu, 15 Nov 2018 18:52:39 +0530, Pintu Agarwal said: > > > Currently, when I tested this (as a proc interface), I got the below output: > > CPUUNUSED-STACKACTUAL-STACK > > 0 16368 16384 > > &g

[ARM64] Printing IRQ stack usage information

2018-11-15 Thread Pintu Agarwal
Hi All, I have a requirement in printing irq stack usage information for each cpu. I am using the following: Linux Kernel: 4.9.x Board: hikey620 (arm64, armv8 with 8 cores) Platform: Ubuntu 14 debian As a vague idea, I tried to implement like this:

Re: Creating compressed backing_store as swapfile

2018-11-08 Thread Pintu Agarwal
On Mon, Nov 5, 2018 at 9:37 PM Austin S. Hemmelgarn wrote: > > On 11/5/2018 10:58 AM, Adam Borowski wrote: > > On Mon, Nov 05, 2018 at 08:31:46PM +0530, Pintu Agarwal wrote: > >> Hi, > >> > >> I have one requirement: > >> I wanted to have a swapfile

Re: Creating compressed backing_store as swapfile

2018-11-08 Thread Pintu Agarwal
On Mon, Nov 5, 2018 at 9:42 PM wrote: > > On Mon, 05 Nov 2018 20:31:46 +0530, Pintu Agarwal said: > > I wanted to have a swapfile (64MB to 256MB) on my system. > > But I wanted the data to be compressed and stored on the disk in my > > swapfile. > > [Similar to zr

Creating compressed backing_store as swapfile

2018-11-05 Thread Pintu Agarwal
Hi, I have one requirement: I wanted to have a swapfile (64MB to 256MB) on my system. But I wanted the data to be compressed and stored on the disk in my swapfile. [Similar to zram, but compressed data should be moved to disk, instead of RAM]. Note: I wanted to optimize RAM space, so performance