Re: [PATCH] selftests/sched: add basic test for psi

2024-10-22 Thread Pintu Agarwal
Hi Johannes, On Tue, 22 Oct 2024 at 19:36, Johannes Weiner wrote: > > On Tue, Oct 22, 2024 at 05:51:58PM +0530, Pintu Kumar wrote: > > There is a psi module that exists under kernel/sched/psi. > > Add a basic test to test the psi. > > I'm not sure this is a valuable use of test cycles. The mere e

rt-linux mailing list and discussions

2021-03-15 Thread Pintu Agarwal
Hi, I just want to know which is the right and active mailing list for contributing and discussing about rt-linux and preempt-rt related changes. Thanks, Pintu

Re: [PATCH] mm: cma: support sysfs

2021-02-06 Thread Pintu Agarwal
On Sat, 6 Feb 2021 at 04:17, Minchan Kim wrote: > > On Fri, Feb 05, 2021 at 01:58:06PM -0800, John Hubbard wrote: > > On 2/5/21 1:52 PM, Suren Baghdasaryan wrote: > > > > > > I takes your suggestion something like this. > > > > > > > > > > > > [alloc_range] could be order or range by interval > >

Re: [BUG]: Kernel 4.9: Kernel crash at fs/sysfs/file.c : sysfs_kf_seq_show

2021-01-13 Thread Pintu Agarwal
On Wed, 13 Jan 2021 at 17:57, Greg Kroah-Hartman wrote: > > And, if you look close at the above links, you will see where the error > is, and what the out-of-tree code needs to to do be fixed up properly. > An exercise for that is left for the vendor :) Seems like I have fixed the issue myself.

Re: [BUG]: Kernel 4.9: Kernel crash at fs/sysfs/file.c : sysfs_kf_seq_show

2021-01-13 Thread Pintu Agarwal
On Tue, 12 Jan 2021 at 17:39, Greg Kroah-Hartman wrote: > > On Tue, Jan 12, 2021 at 05:31:54PM +0530, Pintu Agarwal wrote: > > Hi, > > > > I am using Kernel: 4.9.217 for one of the ARM32 boards for Qualcomm SOC. > > https://github.com/android-linux-stable/msm-4.9

[BUG]: Kernel 4.9: Kernel crash at fs/sysfs/file.c : sysfs_kf_seq_show

2021-01-12 Thread Pintu Agarwal
Hi, I am using Kernel: 4.9.217 for one of the ARM32 boards for Qualcomm SOC. https://github.com/android-linux-stable/msm-4.9 But I think this is a general bug applicable to :Kernel 4.9 under fs/sysfs/file.c So, I wanted to quickly check here if others are familiar with this issue and if it is fix

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 > > CONFIG_DEB

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 b

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 symb

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: imx6: i2c-transfer timeout issue after resume

2019-10-15 Thread Pintu Agarwal
On Fri, Oct 4, 2019 at 3:47 PM Pintu Agarwal wrote: > > Hi, > > On Sun, Sep 29, 2019 at 10:24 PM Pintu Agarwal wrote: > > > > > > > > On Mon, Sep 23, 2019 at 1:28 PM Pintu Agarwal > > > wrote: > > > > > > > > Dear Philipp,

Re: imx6: hdmi black screen issue after resume

2019-09-29 Thread Pintu Agarwal
> > On Mon, Sep 23, 2019 at 1:28 PM Pintu Agarwal wrote: > > > > Dear Philipp, > > > > I have a iMX6dl custom board with custom Linux Kernel 4.8. > > I have both LCD and HDMI connected to the board. > > And we are using weston/wayland as the display i

Re: Let's talk about the elephant in the room - the Linux kernel's inability to gracefully handle low memory pressure

2019-08-09 Thread Pintu Agarwal
[...] Hi, This is an interesting topic for me so I would like to join the conversation. I will be glad if I can be of any help here either in testing PSI, or verifying some scenarios and observation. I have some experience working with low memory embedded devices, like RAM as low as 128MB, 256MB

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 tha

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 ext

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: 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: BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:65

2019-02-14 Thread Pintu Agarwal
Hello Sai, Thanks so much for your help. On Thu, Feb 14, 2019 at 12:14 AM Sai Prakash Ranjan wrote: > > Hi, > > On 2/13/2019 8:10 PM, Pintu Agarwal wrote: > > OK thanks for your suggestions. sdm845-perf_defconfig did not work for > > me. The target did not boot. >

Re: BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:65

2019-02-13 Thread Pintu Agarwal
On Wed, Feb 13, 2019 at 3:21 PM Sai Prakash Ranjan wrote: > > Hi Pintu, > > On 2/13/2019 2:04 PM, Pintu Agarwal wrote: > > > > This is the complete logs at the time of crash: > > > > [ 21.681020] VFS: Mounted root (ext4 filesystem) readonly on device 8:6.

BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:65

2019-02-13 Thread Pintu Agarwal
Hi, I need some pointer in debugging the root cause of this issue. BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:65 [ 22.140224] [] ___might_sleep+0x140/0x188 [ 22.145862] [] __might_sleep+0x58/0x90 [ 22.151249] [] down_write_killable+0x2c/0x80 [ 22.157155] [

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 some

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, please

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

[PATCHv5 1/1] [tools/selftests]: android/ion: userspace test utility for ion buffer sharing

2017-11-01 Thread Pintu Agarwal
: Pintu Agarwal --- tools/testing/selftests/Makefile | 3 +- tools/testing/selftests/android/Makefile | 46 tools/testing/selftests/android/ion/.gitignore | 2 + tools/testing/selftests/android/ion/Makefile | 16 ++ tools/testing/selftests/android/ion

[PATCHv4 1/1] [tools/selftests]: android/ion: userspace test utility for ion buffer sharing

2017-10-23 Thread Pintu Agarwal
. Signed-off-by: Pintu Agarwal --- tools/testing/selftests/Makefile | 3 +- tools/testing/selftests/android/Makefile | 46 tools/testing/selftests/android/ion/.gitignore | 2 + tools/testing/selftests/android/ion/Makefile | 16 ++ tools/testing/selftests

[PATCHv3 1/1] [tools/selftests]: android/ion: userspace test utility for ion buffer sharing

2017-10-14 Thread Pintu Agarwal
. Signed-off-by: Pintu Agarwal --- tools/testing/selftests/Makefile | 3 +- tools/testing/selftests/android/Makefile | 44 tools/testing/selftests/android/ion/.gitignore | 2 + tools/testing/selftests/android/ion/Makefile | 16 ++ tools/testing/selftests

[PATCH 1/1] [mm]: cma: change pr_info to pr_err for cma_alloc fail log

2017-10-10 Thread Pintu Agarwal
capture failure log. Signed-off-by: Pintu Agarwal --- mm/cma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/cma.c b/mm/cma.c index c0da318..e0d1393 100644 --- a/mm/cma.c +++ b/mm/cma.c @@ -461,7 +461,7 @@ struct page *cma_alloc(struct cma *cma, size_t count, unsigned

[PATCHv2 1/1] [tools]: android/ion: userspace test utility for ion buffer sharing

2017-10-03 Thread Pintu Agarwal
0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd 0xfd : buffer release successfully Signed-off-by: Pintu Agarwal --- tools/android/ion/Makefile| 17 +++ tools/android/ion/ionapp_export.c | 151 tools/android/ion/ionapp_import.c | 86 ++ tools/android/ion

[PATCH 1/1] [tools]: android/ion: userspace test utility for ion buffer sharing

2017-09-26 Thread Pintu Agarwal
Signed-off-by: Pintu Agarwal --- tools/android/ion/Makefile| 17 +++ tools/android/ion/ionapp_export.c | 152 tools/android/ion/ionapp_import.c | 87 tools/android/ion/ionutils.c | 282 ++ tools/android/ion