Re: [PACTH v2 0/3] Implement /proc//totmaps

2016-08-16 Thread Robert Foss
On 2016-08-16 03:12 AM, Michal Hocko wrote: On Mon 15-08-16 12:25:10, Robert Foss wrote: On 2016-08-15 09:42 AM, Michal Hocko wrote: [...] The use case is to speed up monitoring of memory consumption in environments where RSS isn't precise. For example Chrome tends to many processes

Re: [PACTH v2 0/3] Implement /proc//totmaps

2016-08-16 Thread Robert Foss
On 2016-08-16 03:12 AM, Michal Hocko wrote: On Mon 15-08-16 12:25:10, Robert Foss wrote: On 2016-08-15 09:42 AM, Michal Hocko wrote: [...] The use case is to speed up monitoring of memory consumption in environments where RSS isn't precise. For example Chrome tends to many processes

Re: [PACTH v2 1/3] mm, proc: Implement /proc//totmaps

2016-08-15 Thread Robert Foss
On 2016-08-15 09:57 AM, Robert Foss wrote: On 2016-08-13 10:39 AM, Jann Horn wrote: On Fri, Aug 12, 2016 at 06:04:20PM -0400, robert.f...@collabora.com wrote: diff --git a/fs/proc/internal.h b/fs/proc/internal.h index aa27810..c55e1fe 100644 --- a/fs/proc/internal.h +++ b/fs/proc

Re: [PACTH v2 1/3] mm, proc: Implement /proc//totmaps

2016-08-15 Thread Robert Foss
On 2016-08-15 09:57 AM, Robert Foss wrote: On 2016-08-13 10:39 AM, Jann Horn wrote: On Fri, Aug 12, 2016 at 06:04:20PM -0400, robert.f...@collabora.com wrote: diff --git a/fs/proc/internal.h b/fs/proc/internal.h index aa27810..c55e1fe 100644 --- a/fs/proc/internal.h +++ b/fs/proc

Re: [PACTH v2 0/3] Implement /proc//totmaps

2016-08-15 Thread Robert Foss
On 2016-08-15 09:42 AM, Michal Hocko wrote: On Mon 15-08-16 09:00:04, Robert Foss wrote: On 2016-08-14 05:04 AM, Michal Hocko wrote: On Fri 12-08-16 18:04:19, robert.f...@collabora.com wrote: From: Robert Foss <robert.f...@collabora.com> This series implements /proc/PID/totmaps,

Re: [PACTH v2 0/3] Implement /proc//totmaps

2016-08-15 Thread Robert Foss
On 2016-08-15 09:42 AM, Michal Hocko wrote: On Mon 15-08-16 09:00:04, Robert Foss wrote: On 2016-08-14 05:04 AM, Michal Hocko wrote: On Fri 12-08-16 18:04:19, robert.f...@collabora.com wrote: From: Robert Foss This series implements /proc/PID/totmaps, a tool for retrieving summarized

Re: [PACTH v2 1/3] mm, proc: Implement /proc//totmaps

2016-08-15 Thread Robert Foss
On 2016-08-13 10:39 AM, Jann Horn wrote: On Fri, Aug 12, 2016 at 06:04:20PM -0400, robert.f...@collabora.com wrote: diff --git a/fs/proc/internal.h b/fs/proc/internal.h index aa27810..c55e1fe 100644 --- a/fs/proc/internal.h +++ b/fs/proc/internal.h @@ -281,6 +281,7 @@ struct proc_maps_private

Re: [PACTH v2 1/3] mm, proc: Implement /proc//totmaps

2016-08-15 Thread Robert Foss
On 2016-08-13 10:39 AM, Jann Horn wrote: On Fri, Aug 12, 2016 at 06:04:20PM -0400, robert.f...@collabora.com wrote: diff --git a/fs/proc/internal.h b/fs/proc/internal.h index aa27810..c55e1fe 100644 --- a/fs/proc/internal.h +++ b/fs/proc/internal.h @@ -281,6 +281,7 @@ struct proc_maps_private

Re: [PACTH v2 0/3] Implement /proc//totmaps

2016-08-15 Thread Robert Foss
On 2016-08-14 05:04 AM, Michal Hocko wrote: On Fri 12-08-16 18:04:19, robert.f...@collabora.com wrote: From: Robert Foss <robert.f...@collabora.com> This series implements /proc/PID/totmaps, a tool for retrieving summarized information about the mappings of a process. The cha

Re: [PACTH v2 0/3] Implement /proc//totmaps

2016-08-15 Thread Robert Foss
On 2016-08-14 05:04 AM, Michal Hocko wrote: On Fri 12-08-16 18:04:19, robert.f...@collabora.com wrote: From: Robert Foss This series implements /proc/PID/totmaps, a tool for retrieving summarized information about the mappings of a process. The changelog is absolutely missing the usecase

[PACTH v2 2/3] Documentation/filesystems: Fixed typo

2016-08-12 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> Fixed a -> an typo. Signed-off-by: Robert Foss <robert.f...@collabora.com> --- Documentation/filesystems/proc.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/filesystems/proc.txt b/Documentat

[PACTH v2 1/3] mm, proc: Implement /proc//totmaps

2016-08-12 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> This is based on earlier work by Thiago Goncales. It implements a new per process proc file which summarizes the contents of the smaps file but doesn't display any addresses. It gives more detailed information than statm like the PSS (propro

[PACTH v2 3/3] Documentation/filesystems: Added /proc/PID/totmaps documentation

2016-08-12 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> Added documentation covering /proc/PID/totmaps. Signed-off-by: Robert Foss <robert.f...@collabora.com> --- Documentation/filesystems/proc.txt | 21 + 1 file changed, 21 insertions(+) diff --git a/Documentation

[PACTH v2 2/3] Documentation/filesystems: Fixed typo

2016-08-12 Thread robert . foss
From: Robert Foss Fixed a -> an typo. Signed-off-by: Robert Foss --- Documentation/filesystems/proc.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt index e8d0075..7d001be 100

[PACTH v2 1/3] mm, proc: Implement /proc//totmaps

2016-08-12 Thread robert . foss
From: Robert Foss This is based on earlier work by Thiago Goncales. It implements a new per process proc file which summarizes the contents of the smaps file but doesn't display any addresses. It gives more detailed information than statm like the PSS (proprotional set size). It differs from

[PACTH v2 3/3] Documentation/filesystems: Added /proc/PID/totmaps documentation

2016-08-12 Thread robert . foss
From: Robert Foss Added documentation covering /proc/PID/totmaps. Signed-off-by: Robert Foss --- Documentation/filesystems/proc.txt | 21 + 1 file changed, 21 insertions(+) diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt index 7d001be

[PACTH v2 0/3] Implement /proc//totmaps

2016-08-12 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> This series implements /proc/PID/totmaps, a tool for retrieving summarized information about the mappings of a process. Changes since v1: - Removed IS_ERR check from get_task_mm() function - Changed comment format - Moved proc_totmaps_oper

[PACTH v2 0/3] Implement /proc//totmaps

2016-08-12 Thread robert . foss
From: Robert Foss This series implements /proc/PID/totmaps, a tool for retrieving summarized information about the mappings of a process. Changes since v1: - Removed IS_ERR check from get_task_mm() function - Changed comment format - Moved proc_totmaps_operations declaration inside internal.h

Re: [PACTH v1] mm, proc: Implement /proc//totmaps

2016-08-12 Thread Robert Foss
On 2016-08-10 02:05 PM, Jann Horn wrote: On Wed, Aug 10, 2016 at 10:45:51AM -0700, Sonny Rao wrote: On Wed, Aug 10, 2016 at 10:37 AM, Jann Horn <j...@thejh.net> wrote: On Wed, Aug 10, 2016 at 10:23:53AM -0700, Sonny Rao wrote: On Tue, Aug 9, 2016 at 2:01 PM, Robert Foss <

Re: [PACTH v1] mm, proc: Implement /proc//totmaps

2016-08-12 Thread Robert Foss
On 2016-08-10 02:05 PM, Jann Horn wrote: On Wed, Aug 10, 2016 at 10:45:51AM -0700, Sonny Rao wrote: On Wed, Aug 10, 2016 at 10:37 AM, Jann Horn wrote: On Wed, Aug 10, 2016 at 10:23:53AM -0700, Sonny Rao wrote: On Tue, Aug 9, 2016 at 2:01 PM, Robert Foss wrote: On 2016-08-09 03:24 PM

Re: [PACTH v1] kernel/hung_task.c: Dump all UNINTERUPTIBLE tasks

2016-08-11 Thread Robert Foss
On 2016-08-10 06:43 PM, Andrew Morton wrote: On Tue, 2 Aug 2016 11:23:11 -0400 robert.f...@collabora.com wrote: From: Aaron Durbin When the panic path is taken for khungtaskd dump all tasks with the UNINTERUPTIBLE state. That way, any inter-dependent tasks that

Re: [PACTH v1] kernel/hung_task.c: Dump all UNINTERUPTIBLE tasks

2016-08-11 Thread Robert Foss
On 2016-08-10 06:43 PM, Andrew Morton wrote: On Tue, 2 Aug 2016 11:23:11 -0400 robert.f...@collabora.com wrote: From: Aaron Durbin When the panic path is taken for khungtaskd dump all tasks with the UNINTERUPTIBLE state. That way, any inter-dependent tasks that caused one another to hang

[PACTH v6 2/2] usb: xhci: plat: Enable async suspend/resume

2016-08-10 Thread robert . foss
d late/resumed early), allow it to suspend and resume asynchronously. Signed-off-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Foss <robert.f...@collabora.com&

[PACTH v6 2/2] usb: xhci: plat: Enable async suspend/resume

2016-08-10 Thread robert . foss
it to suspend and resume asynchronously. Signed-off-by: Andrew Bresticker Tested-by: Andrew Bresticker Tested-by: Robert Foss Signed-off-by: Robert Foss --- drivers/usb/host/xhci-plat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c

[PACTH v6 1/2] usb: xhci: plat: Enable runtime PM

2016-08-10 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> Enable runtime PM for the xhci-plat device so that the parent device may implement runtime PM. Signed-off-by: Robert Foss <robert.f...@collabora.com> Tested-by: Robert Foss <robert.f...@collabora.com> --- drivers/usb/hos

[PACTH v6 1/2] usb: xhci: plat: Enable runtime PM

2016-08-10 Thread robert . foss
From: Robert Foss Enable runtime PM for the xhci-plat device so that the parent device may implement runtime PM. Signed-off-by: Robert Foss Tested-by: Robert Foss --- drivers/usb/host/xhci-plat.c | 29 +++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff

[PACTH v6 0/2] usb: xhci: plat: Enable runtime PM

2016-08-10 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> This series enables runtime PM and asynchronous resume/suspend support for xhci-plat devices. Changes since v1: - Added Signed-off-by: Robert Foss <robert.f...@collabora.com> - Added proper metadata tags to series Changes since v2: - A

[PACTH v6 0/2] usb: xhci: plat: Enable runtime PM

2016-08-10 Thread robert . foss
From: Robert Foss This series enables runtime PM and asynchronous resume/suspend support for xhci-plat devices. Changes since v1: - Added Signed-off-by: Robert Foss - Added proper metadata tags to series Changes since v2: - Added missing changelog to cover-letter - Added error checking

Re: [PACTH v1] mm, proc: Implement /proc//totmaps

2016-08-10 Thread Robert Foss
On 2016-08-10 11:02 AM, Jann Horn wrote: On Wed, Aug 10, 2016 at 10:16:45AM -0400, Robert Foss wrote: On 2016-08-09 06:30 PM, Jann Horn wrote: On Tue, Aug 09, 2016 at 05:01:44PM -0400, Robert Foss wrote: On 2016-08-09 03:24 PM, Jann Horn wrote: On Tue, Aug 09, 2016 at 12:05:43PM -0400

Re: [PACTH v1] mm, proc: Implement /proc//totmaps

2016-08-10 Thread Robert Foss
On 2016-08-10 11:02 AM, Jann Horn wrote: On Wed, Aug 10, 2016 at 10:16:45AM -0400, Robert Foss wrote: On 2016-08-09 06:30 PM, Jann Horn wrote: On Tue, Aug 09, 2016 at 05:01:44PM -0400, Robert Foss wrote: On 2016-08-09 03:24 PM, Jann Horn wrote: On Tue, Aug 09, 2016 at 12:05:43PM -0400

Re: [PACTH v1] mm, proc: Implement /proc//totmaps

2016-08-10 Thread Robert Foss
On 2016-08-09 06:30 PM, Jann Horn wrote: On Tue, Aug 09, 2016 at 05:01:44PM -0400, Robert Foss wrote: On 2016-08-09 03:24 PM, Jann Horn wrote: On Tue, Aug 09, 2016 at 12:05:43PM -0400, robert.f...@collabora.com wrote: + down_read(>mmap_sem); + hold_task_mempolicy(p

Re: [PACTH v1] mm, proc: Implement /proc//totmaps

2016-08-10 Thread Robert Foss
On 2016-08-09 06:30 PM, Jann Horn wrote: On Tue, Aug 09, 2016 at 05:01:44PM -0400, Robert Foss wrote: On 2016-08-09 03:24 PM, Jann Horn wrote: On Tue, Aug 09, 2016 at 12:05:43PM -0400, robert.f...@collabora.com wrote: + down_read(>mmap_sem); + hold_task_mempolicy(p

Re: [PACTH v1] mm, proc: Implement /proc//totmaps

2016-08-10 Thread Robert Foss
On 2016-08-10 11:42 AM, Mateusz Guzik wrote: On Wed, Aug 10, 2016 at 11:39:12AM -0400, Robert Foss wrote: On 2016-08-09 04:17 PM, Robert Foss wrote: +static int totmaps_proc_show(struct seq_file *m, void *data) +{ +struct proc_maps_private *priv = m->private; +struct mm_struct

Re: [PACTH v1] mm, proc: Implement /proc//totmaps

2016-08-10 Thread Robert Foss
On 2016-08-10 11:42 AM, Mateusz Guzik wrote: On Wed, Aug 10, 2016 at 11:39:12AM -0400, Robert Foss wrote: On 2016-08-09 04:17 PM, Robert Foss wrote: +static int totmaps_proc_show(struct seq_file *m, void *data) +{ +struct proc_maps_private *priv = m->private; +struct mm_struct

Re: [PACTH v1] mm, proc: Implement /proc//totmaps

2016-08-10 Thread Robert Foss
On 2016-08-09 04:17 PM, Robert Foss wrote: +static int totmaps_proc_show(struct seq_file *m, void *data) +{ +struct proc_maps_private *priv = m->private; +struct mm_struct *mm; +struct vm_area_struct *vma; +struct mem_size_stats *mss_sum = priv->mss; + +/* reference t

Re: [PACTH v1] mm, proc: Implement /proc//totmaps

2016-08-10 Thread Robert Foss
On 2016-08-09 04:17 PM, Robert Foss wrote: +static int totmaps_proc_show(struct seq_file *m, void *data) +{ +struct proc_maps_private *priv = m->private; +struct mm_struct *mm; +struct vm_area_struct *vma; +struct mem_size_stats *mss_sum = priv->mss; + +/* reference t

Re: [PACTH v1] mm, proc: Implement /proc//totmaps

2016-08-09 Thread Robert Foss
quot;Locked" as that was broken on the original implemenation. This new proc file provides information faster than parsing the potentially huge smaps file. Signed-off-by: Sonny Rao <sonny...@chromium.org> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Fos

Re: [PACTH v1] mm, proc: Implement /proc//totmaps

2016-08-09 Thread Robert Foss
was broken on the original implemenation. This new proc file provides information faster than parsing the potentially huge smaps file. Signed-off-by: Sonny Rao Tested-by: Robert Foss Signed-off-by: Robert Foss +static int totmaps_proc_show(struct seq_file *m, void *data) +{ +

Re: [PACTH v1] mm, proc: Implement /proc//totmaps

2016-08-09 Thread Robert Foss
On 2016-08-09 12:29 PM, Mateusz Guzik wrote: On Tue, Aug 09, 2016 at 12:05:43PM -0400, robert.f...@collabora.com wrote: From: Sonny Rao This is based on earlier work by Thiago Goncales. It implements a new per process proc file which summarizes the contents of the

Re: [PACTH v1] mm, proc: Implement /proc//totmaps

2016-08-09 Thread Robert Foss
On 2016-08-09 12:29 PM, Mateusz Guzik wrote: On Tue, Aug 09, 2016 at 12:05:43PM -0400, robert.f...@collabora.com wrote: From: Sonny Rao This is based on earlier work by Thiago Goncales. It implements a new per process proc file which summarizes the contents of the smaps file but doesn't

[PACTH v5 1/2] usb: xhci: plat: Enable runtime PM

2016-08-09 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> Enable runtime PM for the xhci-plat device so that the parent device may implement runtime PM. Signed-off-by: Robert Foss <robert.f...@collabora.com> Tested-by: Robert Foss <robert.f...@collabora.com> --- drivers/usb/hos

[PACTH v5 1/2] usb: xhci: plat: Enable runtime PM

2016-08-09 Thread robert . foss
From: Robert Foss Enable runtime PM for the xhci-plat device so that the parent device may implement runtime PM. Signed-off-by: Robert Foss Tested-by: Robert Foss --- drivers/usb/host/xhci-plat.c | 29 +++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff

[PACTH v5 0/2] usb: xhci: plat: Enable PM, async resume/suspend

2016-08-09 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> This series enables runtime PM and asynchronous resume/suspend support for xhci-plat devices. Changes since v1: - Added Signed-off-by: Robert Foss <robert.f...@collabora.com> - Added proper metadata tags to series Changes since v2: - A

[PACTH v5 0/2] usb: xhci: plat: Enable PM, async resume/suspend

2016-08-09 Thread robert . foss
From: Robert Foss This series enables runtime PM and asynchronous resume/suspend support for xhci-plat devices. Changes since v1: - Added Signed-off-by: Robert Foss - Added proper metadata tags to series Changes since v2: - Added missing changelog to cover-letter - Added error checking

[PACTH v5 2/2] usb: xhci: plat: Enable async suspend/resume

2016-08-09 Thread robert . foss
d late/resumed early), allow it to suspend and resume asynchronously. Signed-off-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Foss <robert.f...@collabora.com&

[PACTH v5 2/2] usb: xhci: plat: Enable async suspend/resume

2016-08-09 Thread robert . foss
it to suspend and resume asynchronously. Signed-off-by: Andrew Bresticker Tested-by: Andrew Bresticker Tested-by: Robert Foss Signed-off-by: Robert Foss --- drivers/usb/host/xhci-plat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c

[PACTH v1] mm, proc: Implement /proc//totmaps

2016-08-09 Thread robert . foss
ter than parsing the potentially huge smaps file. Signed-off-by: Sonny Rao <sonny...@chromium.org> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Foss <robert.f...@collabora.com> --- fs/proc/base.c | 1 + fs/proc/internal.h

[PACTH v1] mm, proc: Implement /proc//totmaps

2016-08-09 Thread robert . foss
smaps file. Signed-off-by: Sonny Rao Tested-by: Robert Foss Signed-off-by: Robert Foss --- fs/proc/base.c | 1 + fs/proc/internal.h | 4 ++ fs/proc/task_mmu.c | 126 + 3 files changed, 131 insertions(+) diff --git a/fs/proc/base.c

[PACTH v4 1/2] usb: xhci: plat: Enable runtime PM

2016-08-09 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> Enable runtime PM for the xhci-plat device so that the parent device may implement runtime PM. Signed-off-by: Robert Foss <robert.f...@collabora.com> Tested-by: Robert Foss <robert.f...@collabora.com> --- drivers/usb/hos

[PACTH v4 1/2] usb: xhci: plat: Enable runtime PM

2016-08-09 Thread robert . foss
From: Robert Foss Enable runtime PM for the xhci-plat device so that the parent device may implement runtime PM. Signed-off-by: Robert Foss Tested-by: Robert Foss --- drivers/usb/host/xhci-plat.c | 26 -- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git

[PACTH v4 0/2] usb: xhci: plat: Enable PM, async resume/suspend

2016-08-09 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> This series enables runtime PM and asynchronous resume/suspend support for xhci-plat devices. Changes since v1: - Added Signed-off-by: Robert Foss <robert.f...@collabora.com> - Added proper metadata tags to series Changes since v2: - A

[PACTH v4 2/2] usb: xhci: plat: Enable async suspend/resume

2016-08-09 Thread robert . foss
d late/resumed early), allow it to suspend and resume asynchronously. Signed-off-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Foss <robert.f...@collabora.com&

[PACTH v4 0/2] usb: xhci: plat: Enable PM, async resume/suspend

2016-08-09 Thread robert . foss
From: Robert Foss This series enables runtime PM and asynchronous resume/suspend support for xhci-plat devices. Changes since v1: - Added Signed-off-by: Robert Foss - Added proper metadata tags to series Changes since v2: - Added missing changelog to cover-letter - Added error checking

[PACTH v4 2/2] usb: xhci: plat: Enable async suspend/resume

2016-08-09 Thread robert . foss
it to suspend and resume asynchronously. Signed-off-by: Andrew Bresticker Tested-by: Andrew Bresticker Tested-by: Robert Foss Signed-off-by: Robert Foss --- drivers/usb/host/xhci-plat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c

Re: [PACTH v3 1/2] usb: xhci: plat: Enable runtime PM

2016-08-09 Thread Robert Foss
g> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Foss <robert.f...@collabora.com> --- drivers/usb/host/xhci-plat.c | 24 ++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/x

Re: [PACTH v3 1/2] usb: xhci: plat: Enable runtime PM

2016-08-09 Thread Robert Foss
On 2016-08-09 05:19 AM, Felipe Balbi wrote: Hi, robert.f...@collabora.com writes: From: Andrew Bresticker Enable runtime PM for the xhci-plat device so that the parent device may implement runtime PM. Signed-off-by: Andrew Bresticker Tested-by: Robert Foss Signed-off-by: Robert Foss

[PACTH v3] cdc-wdm: Clear read pipeline in case of error

2016-08-09 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> Implemented queued response handling. This queue is processed every time the WDM_READ flag is cleared. In case of a read error, userspace may not actually read the data, since the driver returns an error through wdm_poll. After this, the unde

[PACTH v3] cdc-wdm: Clear read pipeline in case of error

2016-08-09 Thread robert . foss
From: Robert Foss Implemented queued response handling. This queue is processed every time the WDM_READ flag is cleared. In case of a read error, userspace may not actually read the data, since the driver returns an error through wdm_poll. After this, the underlying device may attempt to send

Re: [PACTH v2] cdc-wdm: Clear read pipeline in case of error

2016-08-09 Thread Robert Foss
On 2016-08-09 09:51 AM, Greg KH wrote: On Mon, Aug 08, 2016 at 11:48:52AM -0400, robert.f...@collabora.com wrote: From: Robert Foss <robert.f...@collabora.com> Implemented queued response handling. This queue is processed every time the WDM_READ flag is cleared. In case of a read

Re: [PACTH v2] cdc-wdm: Clear read pipeline in case of error

2016-08-09 Thread Robert Foss
On 2016-08-09 09:51 AM, Greg KH wrote: On Mon, Aug 08, 2016 at 11:48:52AM -0400, robert.f...@collabora.com wrote: From: Robert Foss Implemented queued response handling. This queue is processed every time the WDM_READ flag is cleared. In case of a read error, userspace may not actually

[PACTH v3 1/2] usb: xhci: plat: Enable runtime PM

2016-08-08 Thread robert . foss
From: Andrew Bresticker <abres...@chromium.org> Enable runtime PM for the xhci-plat device so that the parent device may implement runtime PM. Signed-off-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Rob

[PACTH v3 1/2] usb: xhci: plat: Enable runtime PM

2016-08-08 Thread robert . foss
From: Andrew Bresticker Enable runtime PM for the xhci-plat device so that the parent device may implement runtime PM. Signed-off-by: Andrew Bresticker Tested-by: Robert Foss Signed-off-by: Robert Foss --- drivers/usb/host/xhci-plat.c | 24 ++-- 1 file changed, 22

[PACTH v3 2/2] usb: xhci: plat: Enable async suspend/resume

2016-08-08 Thread robert . foss
d late/resumed early), allow it to suspend and resume asynchronously. Signed-off-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Foss <robert.f...@collabora.com&

[PACTH v3 0/2] usb: xhci: plat: Enable PM, async resume/suspend

2016-08-08 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> This series enables runtime PM and asynchronous resume/suspend support for xhci-plat devices. This is a resumbmission of v3. Changes since v1: - Added Signed-off-by: Robert Foss <robert.f...@collabora.com> - Added proper metadata ta

[PACTH v3 2/2] usb: xhci: plat: Enable async suspend/resume

2016-08-08 Thread robert . foss
it to suspend and resume asynchronously. Signed-off-by: Andrew Bresticker Tested-by: Andrew Bresticker Tested-by: Robert Foss Signed-off-by: Robert Foss --- drivers/usb/host/xhci-plat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c

[PACTH v3 0/2] usb: xhci: plat: Enable PM, async resume/suspend

2016-08-08 Thread robert . foss
From: Robert Foss This series enables runtime PM and asynchronous resume/suspend support for xhci-plat devices. This is a resumbmission of v3. Changes since v1: - Added Signed-off-by: Robert Foss - Added proper metadata tags to series. Changes since v2: - Added missing changelog to cover

[PACTH v2] mmc: sdhci: Do not allow tuning procedure to be interrupted

2016-08-08 Thread robert . foss
mplete quickly (<50ms) and we've set a timeout, use wait_event_timeout() instead. Signed-off-by: Christopher Freeman <cfree...@nvidia.com> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Foss <robert.f...@collabora.com> --- This is a resubmission of v2 o

[PACTH v2] mmc: sdhci: Do not allow tuning procedure to be interrupted

2016-08-08 Thread robert . foss
0ms) and we've set a timeout, use wait_event_timeout() instead. Signed-off-by: Christopher Freeman Tested-by: Robert Foss Signed-off-by: Robert Foss --- This is a resubmission of v2 of this patch. drivers/mmc/host/sdhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/h

[PACTH v2] cdc-wdm: Clear read pipeline in case of error

2016-08-08 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> Implemented queued response handling. This queue is processed every time the WDM_READ flag is cleared. In case of a read error, userspace may not actually read the data, since the driver returns an error through wdm_poll. After this, the unde

[PACTH v2] cdc-wdm: Clear read pipeline in case of error

2016-08-08 Thread robert . foss
From: Robert Foss Implemented queued response handling. This queue is processed every time the WDM_READ flag is cleared. In case of a read error, userspace may not actually read the data, since the driver returns an error through wdm_poll. After this, the underlying device may attempt to send

Re: [PACTH v1] cdc-wdm: Clear read pipeline in case of error

2016-08-08 Thread Robert Foss
On 2016-08-07 04:59 AM, Oliver Neukum wrote: On Thu, 2016-08-04 at 13:44 -0400, Robert Foss wrote: On 2016-08-03 06:39 AM, Oliver Neukum wrote: On Tue, 2016-08-02 at 10:37 -0400, Robert Foss wrote: How can that depend on what we return to user space? In the driver we can continue just

Re: [PACTH v1] cdc-wdm: Clear read pipeline in case of error

2016-08-08 Thread Robert Foss
On 2016-08-07 04:59 AM, Oliver Neukum wrote: On Thu, 2016-08-04 at 13:44 -0400, Robert Foss wrote: On 2016-08-03 06:39 AM, Oliver Neukum wrote: On Tue, 2016-08-02 at 10:37 -0400, Robert Foss wrote: How can that depend on what we return to user space? In the driver we can continue just

[PACTH v1] stacktrace: Eliminate task stack trace duplication

2016-08-04 Thread robert . foss
47ffd8 88027547ffd8 88027547ffd8 [ 53.608788] 81813020 8802754627d0 00011fc0 8804758670c0 [ 53.616232] Call Trace: [ 53.618676] Signed-off-by: Ying Han <ying...@google.com> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Rob

[PACTH v1] stacktrace: Eliminate task stack trace duplication

2016-08-04 Thread robert . foss
88027547ffd8 [ 53.608788] 81813020 8802754627d0 00011fc0 8804758670c0 [ 53.616232] Call Trace: [ 53.618676] Signed-off-by: Ying Han Tested-by: Robert Foss Signed-off-by: Robert Foss --- This series was acked in 2012, https://lkml.org/lkml/2012/4/6/255 But was since

Re: [PACTH v1] cdc-wdm: Clear read pipeline in case of error

2016-08-04 Thread Robert Foss
On 2016-08-03 06:39 AM, Oliver Neukum wrote: On Tue, 2016-08-02 at 10:37 -0400, Robert Foss wrote: On 2016-08-02 09:59 AM, Oliver Neukum wrote: On Tue, 2016-08-02 at 09:54 -0400, Robert Foss wrote: On 2016-08-02 08:23 AM, Oliver Neukum wrote: On Thu, 2016-07-28 at 14:19 -0400, robert.f

Re: [PACTH v1] cdc-wdm: Clear read pipeline in case of error

2016-08-04 Thread Robert Foss
On 2016-08-03 06:39 AM, Oliver Neukum wrote: On Tue, 2016-08-02 at 10:37 -0400, Robert Foss wrote: On 2016-08-02 09:59 AM, Oliver Neukum wrote: On Tue, 2016-08-02 at 09:54 -0400, Robert Foss wrote: On 2016-08-02 08:23 AM, Oliver Neukum wrote: On Thu, 2016-07-28 at 14:19 -0400, robert.f

Re: [PACTH v1] kernel/hung_task.c: Dump all UNINTERUPTIBLE tasks

2016-08-04 Thread Robert Foss
On 2016-08-04 09:22 AM, Tetsuo Handa wrote: Robert Foss wrote: From: Aaron Durbin <adur...@chromium.org> When the panic path is taken for khungtaskd dump all tasks with the UNINTERUPTIBLE state. That way, any inter-dependent tasks that caused one another to hang will be saved in the

Re: [PACTH v1] kernel/hung_task.c: Dump all UNINTERUPTIBLE tasks

2016-08-04 Thread Robert Foss
On 2016-08-04 09:22 AM, Tetsuo Handa wrote: Robert Foss wrote: From: Aaron Durbin When the panic path is taken for khungtaskd dump all tasks with the UNINTERUPTIBLE state. That way, any inter-dependent tasks that caused one another to hang will be saved in the crash output. How useful do

[PACTH v1] kernel/hung_task.c: Dump all UNINTERUPTIBLE tasks

2016-08-02 Thread robert . foss
g> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Foss <robert.f...@collabora.com> --- kernel/hung_task.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/hung_task.c b/kernel/hung_task.c index d234022..946caf9 100644 --- a/kernel/hung_task.c

[PACTH v1] kernel/hung_task.c: Dump all UNINTERUPTIBLE tasks

2016-08-02 Thread robert . foss
From: Aaron Durbin When the panic path is taken for khungtaskd dump all tasks with the UNINTERUPTIBLE state. That way, any inter-dependent tasks that caused one another to hang will be saved in the crash output. Signed-off-by: Aaron Durbin Tested-by: Robert Foss Signed-off-by: Robert Foss

Re: [PACTH v1] cdc-wdm: Clear read pipeline in case of error

2016-08-02 Thread Robert Foss
On 2016-08-02 09:59 AM, Oliver Neukum wrote: On Tue, 2016-08-02 at 09:54 -0400, Robert Foss wrote: On 2016-08-02 08:23 AM, Oliver Neukum wrote: On Thu, 2016-07-28 at 14:19 -0400, robert.f...@collabora.com wrote: From: Prathmesh Prabhu <ppra...@chromium.org> Implemented queued re

Re: [PACTH v1] cdc-wdm: Clear read pipeline in case of error

2016-08-02 Thread Robert Foss
On 2016-08-02 09:59 AM, Oliver Neukum wrote: On Tue, 2016-08-02 at 09:54 -0400, Robert Foss wrote: On 2016-08-02 08:23 AM, Oliver Neukum wrote: On Thu, 2016-07-28 at 14:19 -0400, robert.f...@collabora.com wrote: From: Prathmesh Prabhu Implemented queued response handling. This queue

Re: [PACTH v1] cdc-wdm: Clear read pipeline in case of error

2016-08-02 Thread Robert Foss
On 2016-08-02 08:23 AM, Oliver Neukum wrote: On Thu, 2016-07-28 at 14:19 -0400, robert.f...@collabora.com wrote: From: Prathmesh Prabhu Implemented queued response handling. This queue is processed every time the WDM_READ flag is cleared. In case of a read error,

Re: [PACTH v1] cdc-wdm: Clear read pipeline in case of error

2016-08-02 Thread Robert Foss
On 2016-08-02 08:23 AM, Oliver Neukum wrote: On Thu, 2016-07-28 at 14:19 -0400, robert.f...@collabora.com wrote: From: Prathmesh Prabhu Implemented queued response handling. This queue is processed every time the WDM_READ flag is cleared. In case of a read error, userspace may not actually

Re: [PACTH v1] trace: Add trace events for open(), exec() and uselib()

2016-08-01 Thread Robert Foss
On 2016-08-01 02:10 PM, Al Viro wrote: On Mon, Aug 01, 2016 at 01:25:40PM -0400, robert.f...@collabora.com wrote: From: Scott James Remnant This patch uses TRACE_EVENT to add tracepoints for the open(), exec() and uselib() syscalls so that ureadahead can cheaply trace the

Re: [PACTH v1] trace: Add trace events for open(), exec() and uselib()

2016-08-01 Thread Robert Foss
On 2016-08-01 02:10 PM, Al Viro wrote: On Mon, Aug 01, 2016 at 01:25:40PM -0400, robert.f...@collabora.com wrote: From: Scott James Remnant This patch uses TRACE_EVENT to add tracepoints for the open(), exec() and uselib() syscalls so that ureadahead can cheaply trace the boot sequence to

[PACTH v1] trace: Add trace events for open(), exec() and uselib()

2016-08-01 Thread robert . foss
buntu.com> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Foss <robert.f...@collabora.com> --- fs/exec.c | 7 ++- fs/open.c | 4 include/trace/events/fs.h | 53 +++ 3 file

[PACTH v1] trace: Add trace events for open(), exec() and uselib()

2016-08-01 Thread robert . foss
From: Scott James Remnant This patch uses TRACE_EVENT to add tracepoints for the open(), exec() and uselib() syscalls so that ureadahead can cheaply trace the boot sequence to determine what to read to speed up the next. Signed-off-by: Scott James Remnant Tested-by: Robert Foss Signed-off

[PACTH v3 1/2] usb: xhci: plat: Enable runtime PM

2016-07-29 Thread robert . foss
From: Andrew Bresticker <abres...@chromium.org> Enable runtime PM for the xhci-plat device so that the parent device may implement runtime PM. Signed-off-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Rob

[PACTH v3 2/2] usb: xhci: plat: Enable async suspend/resume

2016-07-29 Thread robert . foss
d late/resumed early), allow it to suspend and resume asynchronously. Signed-off-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Foss <robert.f...@collabora.com&

[PACTH v3 1/2] usb: xhci: plat: Enable runtime PM

2016-07-29 Thread robert . foss
From: Andrew Bresticker Enable runtime PM for the xhci-plat device so that the parent device may implement runtime PM. Signed-off-by: Andrew Bresticker Tested-by: Robert Foss Signed-off-by: Robert Foss --- drivers/usb/host/xhci-plat.c | 24 ++-- 1 file changed, 22

[PACTH v3 2/2] usb: xhci: plat: Enable async suspend/resume

2016-07-29 Thread robert . foss
it to suspend and resume asynchronously. Signed-off-by: Andrew Bresticker Tested-by: Andrew Bresticker Tested-by: Robert Foss Signed-off-by: Robert Foss --- drivers/usb/host/xhci-plat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c

[PACTH v3 0/2] usb: xhci: plat: Enable PM, async resume/suspend

2016-07-29 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> This series enables runtime PM and asynchronous resume/suspend support for xhci-plat devices. Changes since v1: - Added Signed-off-by: Robert Foss <robert.f...@collabora.com> - Added proper metadata tags to series. Changes since v2: - A

[PACTH v3 0/2] usb: xhci: plat: Enable PM, async resume/suspend

2016-07-29 Thread robert . foss
From: Robert Foss This series enables runtime PM and asynchronous resume/suspend support for xhci-plat devices. Changes since v1: - Added Signed-off-by: Robert Foss - Added proper metadata tags to series. Changes since v2: - Added missing changelog to cover-letter. - Added error checking

Re: [PACTH v1 1/2] usb: xhci: plat: Enable runtime PM

2016-07-29 Thread Robert Foss
g> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Foss <robert.f...@collabora.com> --- drivers/usb/host/xhci-plat.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/x

Re: [PACTH v1 1/2] usb: xhci: plat: Enable runtime PM

2016-07-29 Thread Robert Foss
On 2016-07-28 08:24 PM, Felipe Balbi wrote: Hi, robert.f...@collabora.com writes: From: Andrew Bresticker Enable runtime PM for the xhci-plat device so that the parent device may implement runtime PM. Signed-off-by: Andrew Bresticker Tested-by: Robert Foss Signed-off-by: Robert Foss

Re: [PACTH v1 0/2] usb: xhci: plat: Enable PM, async resume/suspend

2016-07-28 Thread Robert Foss
This series should be labelled v2 instead of v1. This series enables runtime PM and asynchronous resume/suspend support for xhci-plat devices. Andrew Bresticker (2): usb: xhci: plat: Enable runtime PM usb: xhci: plat: Enable async suspend/resume drivers/usb/host/xhci-plat.c | 20

Re: [PACTH v1 0/2] usb: xhci: plat: Enable PM, async resume/suspend

2016-07-28 Thread Robert Foss
This series should be labelled v2 instead of v1. This series enables runtime PM and asynchronous resume/suspend support for xhci-plat devices. Andrew Bresticker (2): usb: xhci: plat: Enable runtime PM usb: xhci: plat: Enable async suspend/resume drivers/usb/host/xhci-plat.c | 20

[PACTH v1 2/2] usb: xhci: plat: Enable async suspend/resume

2016-07-28 Thread robert . foss
d late/resumed early), allow it to suspend and resume asynchronously. Signed-off-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Robert Foss <robert.f...@collabora.com&

[PACTH v1 1/2] usb: xhci: plat: Enable runtime PM

2016-07-28 Thread robert . foss
From: Andrew Bresticker <abres...@chromium.org> Enable runtime PM for the xhci-plat device so that the parent device may implement runtime PM. Signed-off-by: Andrew Bresticker <abres...@chromium.org> Tested-by: Robert Foss <robert.f...@collabora.com> Signed-off-by: Rob

<    2   3   4   5   6   7   8   >