[RFC][PATCH] epoll: allow EPOLLWAKEUP flag if PM_SLEEP is enabled

2013-11-11 Thread Amit Pundir
be a good solution, stripping the flag seems to follow the established behavior, as is done when the process doesn't have sufficient capabilities to block suspend. I'd appreciate any thoughts or feedback! Signed-off-by: Amit Pundir amit.pun...@linaro.org --- fs/eventpoll.c |3 ++- 1 file

[RFC][PATCH v2] epoll: allow EPOLLWAKEUP flag if PM_SLEEP is enabled

2013-11-12 Thread Amit Pundir
ep_create_wakeup_source() reports ENOMEM if wakeup_source_register() returns NULL. ep_create_wakeup_source() assumes that NULL is only returned if we run into ENOMEM but NULL is also returned when CONFIG_PM_SLEEP is disabled. Signed-off-by: Amit Pundir amit.pun...@linaro.org --- Changed in v2

Re: [RFC][PATCH v2] epoll: allow EPOLLWAKEUP flag if PM_SLEEP is enabled

2013-11-13 Thread Amit Pundir
On 13 November 2013 05:29, Rafael J. Wysocki r...@sisk.pl wrote: On Wednesday, November 13, 2013 02:22:28 AM Amit Pundir wrote: ep_create_wakeup_source() reports ENOMEM That needs to be fixed too. I suppose we can make the wakeup_source_register() stub for CONFIG_PM_SLEEP unset return

Re: [RFC][PATCH v2] epoll: allow EPOLLWAKEUP flag if PM_SLEEP is enabled

2013-11-14 Thread Amit Pundir
On 14 November 2013 03:14, Rafael J. Wysocki r...@sisk.pl wrote: On Wednesday, November 13, 2013 01:35:38 PM Amit Pundir wrote: On 13 November 2013 05:29, Rafael J. Wysocki r...@sisk.pl wrote: On Wednesday, November 13, 2013 02:22:28 AM Amit Pundir wrote: ep_create_wakeup_source() reports

[PATCH v3] epoll: drop EPOLLWAKEUP if PM_SLEEP is disabled

2013-11-14 Thread Amit Pundir
Drop EPOLLWAKEUP from epoll events mask if CONFIG_PM_SLEEP is disabled. Signed-off-by: Amit Pundir amit.pun...@linaro.org --- Changes in v3: Renamed ep_epollwakeup_check() to ep_take_care_of_epollwakeup(). Didn't update ep_create_wakeup_source() to return -ENOSYS if PM_SLEEP is unset. --- fs

[RFC][PATCH 2/2] PM: Suspend: Print wall time at suspend entry and exit

2014-08-01 Thread Amit Pundir
...@android.com Cc: John Stultz john.stu...@linaro.org Cc: Sumit Semwal sumit.sem...@linaro.org Signed-off-by: Todd Poynor toddpoy...@google.com [Amit Pundir: Reworded the commit message] Signed-off-by: Amit Pundir amit.pun...@linaro.org --- The original patch was submitted to linux-pm couple of years

[RFC][PATCH 1/2] PM: Print pending wakeup IRQ preventing suspend to dmesg

2014-08-01 Thread Amit Pundir
Cc: Android Kernel Team kernel-t...@android.com Cc: John Stultz john.stu...@linaro.org Cc: Sumit Semwal sumit.sem...@linaro.org Signed-off-by: Todd Poynor toddpoy...@google.com [Amit Pundir: Reworded the commit message] Signed-off-by: Amit Pundir amit.pun...@linaro.org --- kernel/irq/pm.c |7

[RFC][PATCH 0/2] Minor Suspend debugging patches from Android

2014-08-01 Thread Amit Pundir
Couple of PM patches from Android tree printing Suspend debug messages. These messages are used to help debug PM related issues on Android based devices and look useful enough to troubleshoot PM issues on generic Linux devices as well. I'd greatly appreciate any feedback or comments! Todd Poynor

[PATCH v2] PM: Print pending wakeup IRQ preventing suspend

2014-09-18 Thread Amit Pundir
toddpoy...@google.com [Amit Pundir: Reworded the commit message] Signed-off-by: Amit Pundir amit.pun...@linaro.org --- Resending this patch assuming that it might have got lost in between merge window rush last time and now people might have some time to look at it. kernel/irq/pm.c | 7 ++- 1 file

[PATCH v2] PM: Print wall time at suspend entry and exit

2014-09-18 Thread Amit Pundir
...@linutronix.de Cc: Rafael J. Wysocki r...@rjwysocki.net Cc: Len Brown len.br...@intel.com Cc: linux...@vger.kernel.org Cc: Android Kernel Team kernel-t...@android.com Signed-off-by: Todd Poynor toddpoy...@google.com [Amit Pundir: Reworded the commit message] Signed-off-by: Amit Pundir amit.pun

Re: [PATCH v2] android: binder: fix binder mmap failures

2015-03-01 Thread Amit Pundir
for binder's purposes and it allows to get rid of 'vm_struct tmp_area' at all. Fixes: 71394fe50146 (mm: vmalloc: add flag preventing guard hole allocation) Signed-off-by: Andrey Ryabinin a.ryabi...@samsung.com Reported-by: Amit Pundir amit.pun...@linaro.org --- Changes since v1: - fixed

Regression in v4.0.0-rc1 with Android Binder

2015-02-26 Thread Amit Pundir
) { --8-- Regards, Amit Pundir -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[RFC][PATCH 0/2] usb: gadget: add MTP function and Uevent userspace notifications

2015-08-13 Thread Amit Pundir
down. Thoughts and feedback would be appreciated. Thanks, Amit Pundir Cc: Mike Lockwood lockw...@android.com Cc: Benoit Goby ben...@android.com Cc: Colin Cross ccr...@android.com Cc: Arve Hjønnevåg a...@android.com Cc: Peter Oh p...@broadcom.com Cc: Greg Hackmann ghackm...@google.com Cc: Badhri

[RFC][PATCH 2/2] usb: gadget: configfs: notify userspace of usb state changes

2015-08-13 Thread Amit Pundir
Yefremov yegorsli...@googlemail.com Cc: Philippe Reynes trem...@gmail.com Cc: John Stultz john.stu...@linaro.org Cc: Sumit Semwal sumit.sem...@linaro.org Signed-off-by: Amit Pundir amit.pun...@linaro.org --- drivers/usb/gadget/Kconfig| 8 ++ drivers/usb/gadget/configfs.c | 201

[RFC][PATCH 1/2] usb: gadget: configfs: add MTP function

2015-08-13 Thread Amit Pundir
...@linaro.org Cc: Sumit Semwal sumit.sem...@linaro.org Signed-off-by: Amit Pundir amit.pun...@linaro.org --- Documentation/ABI/testing/configfs-usb-gadget-mtp |7 + Documentation/usb/gadget-testing.txt | 24 + drivers/usb/gadget/Kconfig| 13 + drivers/usb/gadget

Re: [RFC][PATCH 1/2] usb: gadget: configfs: add MTP function

2015-08-14 Thread Amit Pundir
On 14 August 2015 at 02:11, Krzysztof Opasiak k.opas...@samsung.com wrote: On 08/13/2015 09:57 PM, Greg Kroah-Hartman wrote: On Thu, Aug 13, 2015 at 09:34:46PM +0200, Krzysztof Opasiak wrote: Hello, On 08/13/2015 09:12 PM, Amit Pundir wrote: his MTP function is based on years of work

Re: [PATCH] config: Add android config fragments

2016-06-22 Thread Amit Pundir
> pain. Adding the config fragments into the kernel tree, makes > configuring a mainline kernel as simple as: > > make ARCH=arm multi_v7_defconfig android-base.config > android-recommended.config > > Cc: Amit Pundir <amit.pun...@linaro.org> > Cc: John Stultz <john.stu...

Re: [PATCH] config: Add android config fragments

2016-06-23 Thread Amit Pundir
On 23 June 2016 at 08:50, Rob Herring <r...@kernel.org> wrote: > On Wed, Jun 22, 2016 at 2:53 AM, Amit Pundir <amit.pun...@linaro.org> wrote: >> On 8 June 2016 at 22:09, Rob Herring <r...@kernel.org> wrote: >>> Copy the config fragments from the AOSP common kern

[PATCH v2] usb: gadget: rndis: free response queue during REMOTE_NDIS_RESET_MSG

2016-06-29 Thread Amit Pundir
gt; [AmitP: Cherry-picked this patch and folded other relevant fixes from Android common kernel android-4.4] Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- v2: Sanitized the name of original author. Dropped his email address from the list of reviewers, since it is no longer v

Re: [RFC][PATCH] usb: gadget: rndis: Free the response queue during REMOTE_NDIS_RESET_MSG

2016-02-08 Thread Amit Pundir
Please ignore this one. I build tested these patches in series and turned out it can't be build independently because configNr is deprecated. I'll resend this patch. Nevertheless I'd like to get a feedback on the real problem this patch is trying to solve here. Thanks, Amit Pundir On 9 February

[RFC][PATCH v2] usb: gadget: u_ether: Fix data stall issue in RNDIS tethering mode

2016-02-08 Thread Amit Pundir
e...@ti.com> Signed-off-by: Vijayavardhan Vennapusa <vvre...@codeaurora.org> [pundir: * cherry-picked this patch from AOSP experimental/android-4.4 tree. * folded in an AOSP build fix from Praneeth Bajjuri <prane...@ti.com>] Signed-off-by: Amit Pundir <amit.pun...@linaro.org>

[RFC][PATCH] usb: gadget: prevent change of Host MAC address of 'usb0' interface

2016-02-08 Thread Amit Pundir
t; Cc: John Stultz <john.stu...@linaro.org> Cc: Sumit Semwal <sumit.sem...@linaro.org> Signed-off-by: Badhri Jagan Sridharan <bad...@google.com> [pundir: cherry-picked this patch from AOSP experimental/android-4.4 tree.] Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- Cher

[RFC][PATCH v2] usb: gadget: u_ether: Add workqueue as bottom half handler for rx data path

2016-02-08 Thread Amit Pundir
ro.org> Cc: Praneeth Bajjuri <prane...@ti.com> Signed-off-by: Badhri Jagan Sridharan <bad...@google.com> [pundir: * cherry-picked this patch from AOSP experimental/android-4.4 tree. * folded in an AOSP build fix from Praneeth Bajjuri <prane...@ti.com>] Signed-off-by: Amit Pund

Re: [RFC][PATCH] usb: gadget: u_ether: Add workqueue as bottom half handler for rx data path

2016-02-08 Thread Amit Pundir
Please ignore this one too. I should have build tested these patches individually and not in particular series. I'll resend this patch. Thanks, Amit Pundir On 9 February 2016 at 01:41, Amit Pundir <amit.pun...@linaro.org> wrote: > From: Badhri Jagan Sridharan <bad...@google.com&

[RFC][PATCH v2] usb: gadget: rndis: Free the response queue during REMOTE_NDIS_RESET_MSG

2016-02-08 Thread Amit Pundir
ra.org> Signed-off-by: Xerox Lin <xerox_...@htc.com> [pundir: * cherry-picked this patch from AOSP experimental/android-4.4 tree. * folded in the AOSP fix to use rndis_params instead of configNr.] Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- v2: Use rndis_params instead of

[RFC][PATCH] usb: gadget: rndis: Free the response queue during REMOTE_NDIS_RESET_MSG

2016-02-08 Thread Amit Pundir
ra.org> Signed-off-by: Xerox Lin <xerox_...@htc.com> [pundir: cherry-picked this patch from AOSP experimental/android-4.4 tree.] Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- Cherry-picked this patch from AOSP common/experimental/android-4.4 tree. I could not find upst

[RFC][PATCH] usb: gadget: u_ether: Add workqueue as bottom half handler for rx data path

2016-02-08 Thread Amit Pundir
ro.org> Signed-off-by: Badhri Jagan Sridharan <bad...@google.com> [pundir: cherry-picked this patch from AOSP experimental/android-4.4 tree.] Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- Cherry-picked this patch from AOSP common/experimental/android-4.4 tree. I coul

[RFC][PATCH] usb: gadget: u_ether: Fix data stall issue in RNDIS tethering mode

2016-02-08 Thread Amit Pundir
nnapusa <vvre...@codeaurora.org> [pundir: cherry-picked this patch from AOSP experimental/android-4.4 tree.] Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- Cherry-picked this patch from AOSP common/experimental/android-4.4 tree. I could not find upstream submission history for thi

[RFC][PATCH] usb: phy: Dual role sysfs class definition

2016-02-08 Thread Amit Pundir
emwal <sumit.sem...@linaro.org> Signed-off-by: Badhri Jagan Sridharan <bad...@google.com> [pundir: cherry-picked this patch from AOSP experimental/android-4.4 tree.] Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- Cherry-picked this patch from AOSP common/experimental/androi

Re: [RFC][PATCH] usb: gadget: u_ether: Add workqueue as bottom half handler for rx data path

2016-02-09 Thread Amit Pundir
On 9 February 2016 at 04:50, Greg Kroah-Hartman <gre...@linuxfoundation.org> wrote: > On Tue, Feb 09, 2016 at 02:07:02AM +0530, Amit Pundir wrote: >> Please ignore this one too. I should have build tested these patches >> individually and not in particular series. I'll resend

[PATCH] mmc: block: improve logging of handling emmc timeouts

2016-05-04 Thread Amit Pundir
android.com> [AmitP: cherry-picked this Android patch from aosp common kernel android-4.4] Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- drivers/mmc/card/block.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/card/block.c b/drivers/mmc/c

[PATCH v2] mmc: block: improve logging of handling emmc timeouts

2016-05-10 Thread Amit Pundir
From: Ken Sumrall <ksumr...@android.com> Add some logging to make it clear just how the emmc timeout was handled. Signed-off-by: Ken Sumrall <ksumr...@android.com> [AmitP: cherry-picked this Android patch from aosp common kernel android-4.4] Signed-off-by: Amit Pund

[PATCH] usb: gadget: rndis: free response queue during REMOTE_NDIS_RESET_MSG

2016-06-27 Thread Amit Pundir
gt; [AmitP: Cherry-picked this patch and folded other relevant fixes from Android common kernel android-4.4] Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- Cherry picked this usb tethering fix from AOSP kernel/common/android-4.4 tree and to make sure it doesn't get overlooked,

Regression in ARM CLCD Fb

2016-10-15 Thread Amit Pundir
, aborting It means Android didn't find /dev/fb* or equivalent /dev/graphics/fb*. Any thoughts on what might be going wrong here? Or am I missing anything obvious in my Qemu setup, though it was working fine so far. I'd be happy to help debug things. Regards, Amit Pundir

[PATCH 1/2] config: android-recommended: disable aio support

2016-12-07 Thread Amit Pundir
upport, kernel aio isn't even going to work properly on Android devices using file-based encryption. Reviewed-at: https://android-review.googlesource.com/#/c/292158/ Signed-off-by: Daniel Micay <danielmi...@gmail.com> Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- kern

[PATCH 2/2] config: android-base: enable hardened usercopy and kernel ASLR

2016-12-07 Thread Amit Pundir
Enable CONFIG_HARDENED_USERCOPY and CONFIG_RANDOMIZE_BASE in Android base config fragment. Reviewed-at: https://android-review.googlesource.com/#/c/283659/ Reviewed-at: https://android-review.googlesource.com/#/c/278133/ Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- kernel/c

[PATCH for-4.9 1/7] MIPS: Introduce irq_stack

2017-04-06 Thread Amit Pundir
> (cherry picked from commit fe8bd18ffea5327344d4ec2bf11f47951212abd0) Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- arch/mips/include/asm/irq.h| 12 arch/mips/kernel/asm-offsets.c | 1 + arch/mips/kernel/irq.c | 11 +++ 3 files changed, 24 inserti

[PATCH for-4.9 4/7] MIPS: Switch to the irq_stack in interrupts

2017-04-06 Thread Amit Pundir
ul.bur...@imgtec.com> Cc: linux-m...@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/14743/ Signed-off-by: Ralf Baechle <r...@linux-mips.org> (cherry picked from commit dda45f701c9d7ad4ac0bb446e3a96f6df9a468d9) Signed-off-by: Amit Pundir <

[PATCH for-4.9 5/7] MIPS: Select HAVE_IRQ_EXIT_ON_IRQ_STACK

2017-04-06 Thread Amit Pundir
gt; (cherry picked from commit 3cc3434fd6307d06b53b98ce83e76bf9807689b9) Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index b3c5bde..80832aa 100644 --- a/arch/mips/Kconfig +++ b/arch/mips

[PATCH for-4.9 2/7] MIPS: Stack unwinding while on IRQ stack

2017-04-06 Thread Amit Pundir
ed-off-by: Ralf Baechle <r...@linux-mips.org> (cherry picked from commit d42d8d106b0275b027c1e8992c42aecf933436ea) Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- arch/mips/kernel/process.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/arch/mips/kernel/

[PATCH for-4.9 3/7] MIPS: Only change $28 to thread_info if coming from user mode

2017-04-06 Thread Amit Pundir
m...@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/14742/ Signed-off-by: Ralf Baechle <r...@linux-mips.org> (cherry picked from commit 510d86362a27577f5ee23f46cfb354ad49731e61) Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- arch/m

[PATCH for-4.10 3/6] MIPS: Only change $28 to thread_info if coming from user mode

2017-04-06 Thread Amit Pundir
m...@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/14742/ Signed-off-by: Ralf Baechle <r...@linux-mips.org> (cherry picked from commit 510d86362a27577f5ee23f46cfb354ad49731e61) Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- arch/m

[PATCH for-4.10 2/6] MIPS: Stack unwinding while on IRQ stack

2017-04-06 Thread Amit Pundir
ed-off-by: Ralf Baechle <r...@linux-mips.org> (cherry picked from commit d42d8d106b0275b027c1e8992c42aecf933436ea) Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- arch/mips/kernel/process.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/arch/mips/kernel/

[PATCH for-4.10 5/6] MIPS: Select HAVE_IRQ_EXIT_ON_IRQ_STACK

2017-04-06 Thread Amit Pundir
gt; (cherry picked from commit 3cc3434fd6307d06b53b98ce83e76bf9807689b9) Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index b3c5bde..80832aa 100644 --- a/arch/mips/Kconfig +++ b/arch/mips

[PATCH for-4.10 1/6] MIPS: Introduce irq_stack

2017-04-06 Thread Amit Pundir
> (cherry picked from commit fe8bd18ffea5327344d4ec2bf11f47951212abd0) Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- arch/mips/include/asm/irq.h| 12 arch/mips/kernel/asm-offsets.c | 1 + arch/mips/kernel/irq.c | 11 +++ 3 files changed, 24 inserti

[PATCH for-4.10 4/6] MIPS: Switch to the irq_stack in interrupts

2017-04-06 Thread Amit Pundir
ul.bur...@imgtec.com> Cc: linux-m...@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/14743/ Signed-off-by: Ralf Baechle <r...@linux-mips.org> (cherry picked from commit dda45f701c9d7ad4ac0bb446e3a96f6df9a468d9) Signed-off-by: Amit Pundir <

[PATCH for-4.4 3/7] MIPS: Only change $28 to thread_info if coming from user mode

2017-04-06 Thread Amit Pundir
m...@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/14742/ Signed-off-by: Ralf Baechle <r...@linux-mips.org> (cherry picked from commit 510d86362a27577f5ee23f46cfb354ad49731e61) Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- arch/m

[PATCH for-4.4 2/7] MIPS: Stack unwinding while on IRQ stack

2017-04-06 Thread Amit Pundir
ed-off-by: Ralf Baechle <r...@linux-mips.org> (cherry picked from commit d42d8d106b0275b027c1e8992c42aecf933436ea) Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- arch/mips/kernel/process.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/arch/mips/kernel/

[PATCH for-4.4 1/7] MIPS: Introduce irq_stack

2017-04-06 Thread Amit Pundir
> (cherry picked from commit fe8bd18ffea5327344d4ec2bf11f47951212abd0) Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- arch/mips/include/asm/irq.h| 12 arch/mips/kernel/asm-offsets.c | 1 + arch/mips/kernel/irq.c | 11 +++ 3 files changed, 24 inserti

[PATCH for-4.4 4/7] MIPS: Switch to the irq_stack in interrupts

2017-04-06 Thread Amit Pundir
ul.bur...@imgtec.com> Cc: linux-m...@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/14743/ Signed-off-by: Ralf Baechle <r...@linux-mips.org> (cherry picked from commit dda45f701c9d7ad4ac0bb446e3a96f6df9a468d9) Signed-off-by: Amit Pundir <

[PATCH for-4.4 5/7] MIPS: Select HAVE_IRQ_EXIT_ON_IRQ_STACK

2017-04-06 Thread Amit Pundir
gt; (cherry picked from commit 3cc3434fd6307d06b53b98ce83e76bf9807689b9) Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index db45961..49c276c 100644 --- a/arch/mips/Kconfig +++ b/arch/mips

Re: [PATCH 3.18 000/145] 3.18.49-stable review

2017-04-17 Thread Amit Pundir
Qemu test results: >> total: 111 pass: 111 fail: 0 >> >> Fixing the build failure requires commit 6c8afa88adce ("Input: gscps2 - fix >> MODULE_DEVICE_TABLE invocation"). > > Ah, nice! I'm pretty amazed that there was only one failure, thanks for > testing all of these and letting me know. I've also queued up this last > patch for 3.18. Can you please pick this one https://www.spinics.net/lists/stable/msg166162.html as well. It fixes ARCH=arm + CONFIG_SMP=n + CONFIG_ARM_PSCI=y builds. Regards, Amit Pundir > > thanks, > > greg k-h

Re: [PATCH 3.18 00/22] 3.18.61-stable review

2017-07-14 Thread Amit Pundir
gt; >> Details are available at http://kerneltests.org/builders. > > Ick, problem is in patch bgmac-add-check-for-oversized-packets.patch > from Amit. > > Amit, how did you test this it obviously doesn't build :( argh.. ARCH=mips allmodconfig didn't catch that. I'm sorry about that. I'll be more careful next time and build test relevant defconfigs as well. Regards, Amit Pundir > > I'm dropping it from the tree now... > > thanks, > > greg k-h

Re: [PATCH 02/37] binder: use group leader instead of open thread

2017-07-27 Thread Amit Pundir
iled: unable to mmap transaction memory. > > This doesn't look right. Is there anything in the kernel log? There is a slight difference in this patch and the one that got pushed in android-4.9[1]. I cherry-picked those changes and got BT/WiFi working again on Hikey with mainline tracking (4.1

Re: [PATCH 02/37] binder: use group leader instead of open thread

2017-07-27 Thread Amit Pundir
On 27 July 2017 at 18:53, Greg Kroah-Hartman <gre...@linuxfoundation.org> wrote: > On Thu, Jul 27, 2017 at 02:38:30PM +0530, Amit Pundir wrote: >> Hi, >> >> On 25 July 2017 at 14:43, Martijn Coenen <m...@google.com> wrote: >> > Hi John, >> >

[PATCH for-4.4 09/16] MIPS: ralink: fix MT7628 wled_an pinmux gpio

2017-06-29 Thread Amit Pundir
nux-mips.org/patch/13307/ Signed-off-by: Ralf Baechle <r...@linux-mips.org> Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- arch/mips/ralink/mt7620.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/mips/ralink/mt7620.c b/arch/mips/ralink/mt7

[PATCH for-4.4 08/16] MIPS: ralink: fix MT7628 pinmux typos

2017-06-29 Thread Amit Pundir
nux-mips.org/patch/13306/ Signed-off-by: Ralf Baechle <r...@linux-mips.org> Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- arch/mips/ralink/mt7620.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/ralink/mt7620.c b/arch/mips/ralink/mt7

Re: [PATCH 3/3] ANDROID: binder: fix proc->tsk check.

2017-07-30 Thread Amit Pundir
s Android WiFi/BT regression reported on 4.13-rc2. Tested-by: Amit Pundir <amit.pun...@linaro.org> > Signed-off-by: Martijn Coenen <m...@android.com> > --- > drivers/android/binder.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/d

[PATCH 5/9] config: android-base: add CONFIG_IKCONFIG option

2017-06-08 Thread Amit Pundir
herry-picked this change from Android common kernel] Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- kernel/configs/android-base.config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/configs/android-base.config b/kernel/configs/android-base.config index efe5ff86767e..e

[PATCH 0/9] kernel/configs: Android config fragment updates

2017-06-08 Thread Amit Pundir
Hi, Following are the Android config fragment changes cherry-picked from Android common kernel for your consideration. Config fragments are folded or re-placed in sorted order wherever required. Regards, Amit Pundir Chenbo Feng (1): config: android-base: add CGROUP_BPF Greg Kroah-Hartman (2

[PATCH 7/9] config: android-base: enable CONFIG_INET_DIAG_DESTROY

2017-06-08 Thread Amit Pundir
From: Lorenzo Colitti <lore...@google.com> As of Android N, this is required to close sockets when a network disconnects. Reviewed-at: https://android-review.googlesource.com/#/c/322674/ [AmitP: cherry-picked this change from Android common kernel] Signed-off-by: Amit Pundir <

[PATCH 1/9] config: android-recommended: enable fstack-protector-strong

2017-06-08 Thread Amit Pundir
droid common kernel] Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- kernel/configs/android-recommended.config | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/configs/android-recommended.config b/kernel/configs/android-recommended.config index 28ee064b6744..a86faa41bfd2 1

[PATCH 2/9] config: android-recommended: enable CONFIG_ARM64_SW_TTBR0_PAN

2017-06-08 Thread Amit Pundir
and updated the commit message] Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- kernel/configs/android-recommended.config | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/configs/android-recommended.config b/kernel/configs/android-recommended.config index a86faa41bfd2..a

[PATCH 8/9] config: android-base: add CGROUP_BPF

2017-06-08 Thread Amit Pundir
herry-picked this change from Android common kernel] Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- kernel/configs/android-base.config | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/configs/android-base.config b/kernel/configs/android-base.config index 5ecedaaf7c2e..0

[PATCH 9/9] config: android-base: disable CONFIG_NFSD and CONFIG_NFS_FS

2017-06-08 Thread Amit Pundir
mmit message] Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- kernel/configs/android-base.config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/configs/android-base.config b/kernel/configs/android-base.config index 01b186c5ef18..dadb830413a3 100644 --- a/kernel/configs/android

[PATCH 4/9] config: android-recommended: enable CONFIG_CPU_SW_DOMAIN_PAN

2017-06-08 Thread Amit Pundir
herry-picked this change from Android common kernel, updated the commit message and re-placed the CONFIG_STRICT_KERNEL_RWX config in sorted order] Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- kernel/configs/android-recommended.config | 3 ++- 1 file changed, 2 inserti

[PATCH 6/9] config: android-base: add CONFIG_MODULES option

2017-06-08 Thread Amit Pundir
herry-picked this change from Android common kernel] Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- kernel/configs/android-base.config | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/configs/android-base.config b/kernel/configs/android-base.config

[PATCH 3/9] config: android-base: disable CONFIG_USELIB and CONFIG_FHANDLE

2017-06-08 Thread Amit Pundir
From: Max Shi <meixuan...@google.com> Turn off the two kernel configs to disable related system ABI. Reviewed-at: https://android-review.googlesource.com/#/c/264976/ Signed-off-by: Max Shi <meixuan...@google.com> [AmitP: cherry-picked this change from Android common kernel] Signed-

Re: [PATCH 7/9] config: android-base: enable CONFIG_INET_DIAG_DESTROY

2017-06-08 Thread Amit Pundir
On 8 June 2017 at 15:32, Lorenzo Colitti <lore...@google.com> wrote: > On Thu, Jun 8, 2017 at 6:55 PM, Amit Pundir <amit.pun...@linaro.org> wrote: >> Reviewed-at: https://android-review.googlesource.com/#/c/322674/ > > Note: that change was a mistake. > >> ---

[PATCH v2 0/8] kernel/configs: Android config fragment updates

2017-06-08 Thread Amit Pundir
Hi, Following are the Android config fragment changes cherry-picked from Android common kernel for your consideration. Config fragments are folded or re-placed in sorted order wherever required. Changes since v1: Dropped that one patch adding non-existent config. Regards, Amit Pundir

[PATCH v2 2/8] config: android-recommended: enable CONFIG_ARM64_SW_TTBR0_PAN

2017-06-08 Thread Amit Pundir
and updated the commit message] Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- kernel/configs/android-recommended.config | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/configs/android-recommended.config b/kernel/configs/android-recommended.config index a86faa41bfd2..a

[PATCH v2 1/8] config: android-recommended: enable fstack-protector-strong

2017-06-08 Thread Amit Pundir
droid common kernel] Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- kernel/configs/android-recommended.config | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/configs/android-recommended.config b/kernel/configs/android-recommended.config index 28ee064b6744..a86faa41bfd2 1

[PATCH v2 3/8] config: android-base: disable CONFIG_USELIB and CONFIG_FHANDLE

2017-06-08 Thread Amit Pundir
From: Max Shi <meixuan...@google.com> Turn off the two kernel configs to disable related system ABI. Reviewed-at: https://android-review.googlesource.com/#/c/264976/ Signed-off-by: Max Shi <meixuan...@google.com> [AmitP: cherry-picked this change from Android common kernel] Signed-

[PATCH v2 4/8] config: android-recommended: enable CONFIG_CPU_SW_DOMAIN_PAN

2017-06-08 Thread Amit Pundir
herry-picked this change from Android common kernel, updated the commit message and re-placed the CONFIG_STRICT_KERNEL_RWX config in sorted order] Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- kernel/configs/android-recommended.config | 3 ++- 1 file changed, 2 inserti

[PATCH v2 6/8] config: android-base: add CONFIG_MODULES option

2017-06-08 Thread Amit Pundir
herry-picked this change from Android common kernel] Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- kernel/configs/android-base.config | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/configs/android-base.config b/kernel/configs/android-base.config

[PATCH v2 5/8] config: android-base: add CONFIG_IKCONFIG option

2017-06-08 Thread Amit Pundir
herry-picked this change from Android common kernel] Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- kernel/configs/android-base.config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/configs/android-base.config b/kernel/configs/android-base.config index efe5ff86767e..e

[PATCH v2 8/8] config: android-base: disable CONFIG_NFSD and CONFIG_NFS_FS

2017-06-08 Thread Amit Pundir
mmit message] Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- kernel/configs/android-base.config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/configs/android-base.config b/kernel/configs/android-base.config index cdde5af6b332..d70829033bb7 100644 --- a/kernel/configs/android

[PATCH v2 7/8] config: android-base: add CGROUP_BPF

2017-06-08 Thread Amit Pundir
herry-picked this change from Android common kernel] Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- kernel/configs/android-base.config | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/configs/android-base.config b/kernel/configs/android-base.config index 62cb392fc34b..c

[PATCH] tracing: Resolve stack corruption due to string copy

2017-05-03 Thread Amit Pundir
urora.org> [AmitP: Cherry-picked this commit from CodeAurora kernel/msm-3.10 https://source.codeaurora.org/quic/la/kernel/msm-3.10/commit/?id=2161ae9a70b12cf18ac8e5952a20161ffbccb477] Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- This patch featured in Android Security Bulletin f

Re: [PATCH] binder: fix memory corruption in binder_transaction binder

2017-09-11 Thread Amit Pundir
nch. 1st boot is fine but hikey runs into an unexpected short boot loops on 2nd and successive boots. It takes about 3-4 iterations to finally come to sane state and boot to UI. I don't see this behaviour if I revert this patch. Regards, Amit Pundir > > Signed-off-by: Xu YiPing <xuyi

Re: [PATCH] binder: fix memory corruption in binder_transaction binder

2017-09-11 Thread Amit Pundir
-git.linaro.org/kernel/linaro-android.git/log/?h=test/hikey-llct. I have already reverted this patch in hikey-llct so you have to revert that revert to reproduce this issue on hikey-llct tree. Regards, Amit Pundir > > -Todd > >> On Mon, Sep 11, 2017 at 5:18 AM, Amit Pundir <amit.pu

Re: [PATCH] binder: fix memory corruption in binder_transaction binder

2017-10-03 Thread Amit Pundir
causing boot animation loop. I've been bitten by such intermittent AOSP issues before. I also ran binder tests from frameworks/native/libs/binder/tests/ to be sure and found the results mostly inline with android-4.9 kernel. Sorry for all the noise. Regards, Amit Pundir > Thanks, > Martijn > > On

[PATCH 0/2] selftests: firmware: skip testing unsupported features

2017-11-08 Thread Amit Pundir
test scripts. The proposed changes skip/ignore testing the upstream functionality missing in the older kernel releases. Regards, Amit Pundir Amit Pundir (2): selftests: firmware: skip unsupported async loading tests selftests: firmware: skip unsupported custom firmware fallback tests tools

[PATCH 1/2] selftests: firmware: skip unsupported async loading tests

2017-11-08 Thread Amit Pundir
Ignore async firmware loading tests on older kernel releases, which do not support this feature. Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- tools/testing/selftests/firmware/fw_filesystem.sh | 34 ++- 1 file changed, 21 insertions(+), 13 deletions(-) diff

[PATCH 2/2] selftests: firmware: skip unsupported custom firmware fallback tests

2017-11-08 Thread Amit Pundir
Ignore custom firmware loading and cancellation tests on older kernel releases, which do not support this feature. Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- tools/testing/selftests/firmware/fw_fallback.sh | 38 + 1 file changed, 26 insertions(

[PATCH v2 0/2] selftests: firmware: skip testing unsupported features

2017-11-08 Thread Amit Pundir
test scripts. The proposed changes skip/ignore testing the upstream functionality missing in the older kernel releases. v2: Changed the display message to make it consistent across all the firmware test scripts. Added Fixes tag. Regards, Amit Pundir Amit Pundir (2): selftests: firmware: skip

[PATCH v2 1/2] selftests: firmware: skip unsupported async loading tests

2017-11-08 Thread Amit Pundir
; Acked-by: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- v2: Changed the display message to make it consistent across all the firmware test scripts. Added Fixes tag. tools/testing/selftests/firmware/fw_filesystem.sh | 34 +

[PATCH v2 2/2] selftests: firmware: skip unsupported custom firmware fallback tests

2017-11-08 Thread Amit Pundir
.@kernel.org> Acked-by: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- v2: Changed the display message to make it consistent across all the firmware test scripts. Added Fixes tag. tools/testing/selftests/firmware/fw_fallback.sh

[PATCH v2 3/3] NFC: fdp: Fix possible buffer overflow in WCS4000 NFC driver

2018-05-02 Thread Amit Pundir
From: Suren Baghdasaryan <sur...@google.com> Possible buffer overflow when reading next_read_size bytes into tmp buffer after next_read_size was extracted from a previous packet. Signed-off-by: Suren Baghdasaryan <sur...@google.com> Signed-off-by: Amit Pundir <amit.pun...@lin

[PATCH v2 2/3] NFC: Fix possible memory corruption when handling SHDLC I-Frame commands

2018-05-02 Thread Amit Pundir
aghdasaryan <sur...@google.com> Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- v2: Resend. No changes. net/nfc/hci/core.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/net/nfc/hci/core.c b/net/nfc/hci/core.c index ac8030c4..19cb2e4 100644 --- a/net/nfc/hci/cor

[PATCH v2 0/3] Few NFC fixes from android-4.14 tree

2018-05-02 Thread Amit Pundir
ter usage in dev_dbg(), so submitting a new patch separately to clean that up. Regards, Amit Pundir [1] https://android.googlesource.com/kernel/common/+log/android-4.14 Suren Baghdasaryan (3): NFC: st21nfca: Fix out of bounds kernel access when handling ATR_REQ NFC: Fix possible memory corr

[PATCH] NFC: fdp: Remove __func__ parameter from dev_dbg() call

2018-05-02 Thread Amit Pundir
Remove redundant __func__ parameter from dev_dgb() calls. Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- drivers/nfc/fdp/fdp.c | 22 +++--- drivers/nfc/fdp/i2c.c | 20 +--- 2 files changed, 20 insertions(+), 22 deletions(-) diff --git a/drivers/n

[PATCH v2 1/3] NFC: st21nfca: Fix out of bounds kernel access when handling ATR_REQ

2018-05-02 Thread Amit Pundir
tra bytes resulting in OOB read from the kernel heap. Signed-off-by: Suren Baghdasaryan <sur...@google.com> Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- v2: Resend. No changes. drivers/nfc/st21nfca/dep.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH v2] NFC: fdp: Remove __func__ from dev_dbg()

2018-05-02 Thread Amit Pundir
Remove redundant __func__ parameter from dev_dgb() calls. v2: Deleted empty dev_dbg() trace calls, which are redundant if function tracer is enabled. Signed-off-by: Amit Pundir <amit.pun...@linaro.org> --- drivers/nfc/fdp/fdp.c | 18 +++--- drivers/nfc/fdp/i2c.

Re: [PATCH v2 3/3] NFC: fdp: Fix possible buffer overflow in WCS4000 NFC driver

2018-05-03 Thread Amit Pundir
On 3 May 2018 at 15:50, Andy Shevchenko <andriy.shevche...@linux.intel.com> wrote: > On Wed, 2018-05-02 at 23:18 +0530, Amit Pundir wrote: >> From: Suren Baghdasaryan <sur...@google.com> >> >> Possible buffer overflow when reading next_read_size bytes into &

[PATCH v3 3/4] NFC: fdp: Fix possible buffer overflow in WCS4000 NFC driver

2018-05-03 Thread Amit Pundir
From: Suren Baghdasaryan <sur...@google.com> Possible buffer overflow when reading next_read_size bytes into tmp buffer after next_read_size was extracted from a previous packet. cc: Stable <sta...@vger.kernel.org> Signed-off-by: Suren Baghdasaryan <sur...@google.com> Signed-o

[PATCH v3 1/4] NFC: st21nfca: Fix out of bounds kernel access when handling ATR_REQ

2018-05-03 Thread Amit Pundir
tra bytes resulting in OOB read from the kernel heap. cc: Stable <sta...@vger.kernel.org> Signed-off-by: Suren Baghdasaryan <sur...@google.com> Signed-off-by: Amit Pundir <amit.pun...@linaro.org> Reviewed-by: Andy Shevchenko <andriy.shevche...@linux.intel.com> --- v3..v1: Resend. N

[PATCH v3 4/4] NFC: fdp: Remove __func__ from dev_dbg()

2018-05-03 Thread Amit Pundir
Remove redundant __func__ parameter from dev_dgb() calls and delete empty dev_dbg() trace calls, which are redundant if function tracer is enabled. Signed-off-by: Amit Pundir <amit.pun...@linaro.org> Reviewed-by: Andy Shevchenko <andriy.shevche...@linux.intel.com> --- v3: Updated co

[PATCH v3 2/4] NFC: Fix possible memory corruption when handling SHDLC I-Frame commands

2018-05-03 Thread Amit Pundir
.kernel.org> Signed-off-by: Suren Baghdasaryan <sur...@google.com> Signed-off-by: Amit Pundir <amit.pun...@linaro.org> Reviewed-by: Andy Shevchenko <andriy.shevche...@linux.intel.com> --- v3..v1: Resend. No changes. net/nfc/hci/core.c | 10 ++ 1 file changed, 10 insert

[PATCH] usb: f_fs: Prevent gadget unbind if it is already unbound

2018-01-08 Thread Amit Pundir
tr...@google.com> Cc: Badhri <bad...@google.com> Cc: Android Kernel Team <kernel-t...@android.com> Cc: sta...@vger.kernel.org Signed-off-by: Hemant Kumar <hema...@codeaurora.org> [AmitP: Cherry-picked it from android-4.14 and updated the commit log] Signed-off-by: Amit Pundir <amit.p

  1   2   3   >