Re: [PATCH v3 5/5] net: asix: autoneg will set WRITE_MEDIUM reg

2016-09-06 Thread Robert Foss
On 2016-09-06 12:41 PM, Grant Grundler wrote: On Thu, Sep 1, 2016 at 10:02 AM, Eric Dumazet <eric.duma...@gmail.com> wrote: On Thu, 2016-09-01 at 12:47 -0400, Robert Foss wrote: I'm not quite sure how the first From line was added, it should not have been. Grant Grundler is most defi

Re: [PATCH v3 5/5] net: asix: autoneg will set WRITE_MEDIUM reg

2016-09-06 Thread Robert Foss
On 2016-09-06 12:41 PM, Grant Grundler wrote: On Thu, Sep 1, 2016 at 10:02 AM, Eric Dumazet wrote: On Thu, 2016-09-01 at 12:47 -0400, Robert Foss wrote: I'm not quite sure how the first From line was added, it should not have been. Grant Grundler is most definitely the author. Would you

[PATCH v5 3/3] Documentation/filesystems: Added /proc/PID/totmaps documentation

2016-09-05 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

[PATCH v5 2/3] Documentation/filesystems: Fixed typo

2016-09-05 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

[PATCH v5 2/3] Documentation/filesystems: Fixed typo

2016-09-05 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 68080ad..fcc1ac0 100

[PATCH v5 3/3] Documentation/filesystems: Added /proc/PID/totmaps documentation

2016-09-05 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 fcc1ac0

[PATCH v5 1/3] mm, proc: Implement /proc//totmaps

2016-09-05 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

[PATCH v5 1/3] mm, proc: Implement /proc//totmaps

2016-09-05 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

[PATCH v5 0/3] mm, proc: Implement /proc//totmaps

2016-09-05 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> This series provides the /proc/PID/totmaps feature, which summarizes the information provided by /proc/PID/smaps for improved performance and usability reasons. A use case is to speed up monitoring of memory consumption in environments whe

[PATCH v5 0/3] mm, proc: Implement /proc//totmaps

2016-09-05 Thread robert . foss
From: Robert Foss This series provides the /proc/PID/totmaps feature, which summarizes the information provided by /proc/PID/smaps for improved performance and usability reasons. A use case is to speed up monitoring of memory consumption in environments where RSS isn't precise. For example

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

2016-09-01 Thread Robert Foss
On 2016-08-31 01:04 PM, Mateusz Guzik wrote: On Wed, Aug 31, 2016 at 12:36:26PM -0400, Robert Foss wrote: On 2016-08-31 05:45 AM, Jacek Anaszewski wrote: +static void *m_totmaps_start(struct seq_file *p, loff_t *pos) +{ +return NULL + (*pos == 0); +} + +static void *m_totmaps_next(struct

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

2016-09-01 Thread Robert Foss
On 2016-08-31 01:04 PM, Mateusz Guzik wrote: On Wed, Aug 31, 2016 at 12:36:26PM -0400, Robert Foss wrote: On 2016-08-31 05:45 AM, Jacek Anaszewski wrote: +static void *m_totmaps_start(struct seq_file *p, loff_t *pos) +{ +return NULL + (*pos == 0); +} + +static void *m_totmaps_next(struct

Re: [PATCH v3 5/5] net: asix: autoneg will set WRITE_MEDIUM reg

2016-09-01 Thread Robert Foss
On 2016-09-01 12:43 PM, Eric Dumazet wrote: On Mon, 2016-08-29 at 09:32 -0400, robert.f...@collabora.com wrote: From: Robert Foss <robert.f...@collabora.com> From: Grant Grundler <grund...@chromium.org> The miii_nway_restart() causes a PHY link change activity and ax8877

Re: [PATCH v3 5/5] net: asix: autoneg will set WRITE_MEDIUM reg

2016-09-01 Thread Robert Foss
On 2016-09-01 12:43 PM, Eric Dumazet wrote: On Mon, 2016-08-29 at 09:32 -0400, robert.f...@collabora.com wrote: From: Robert Foss From: Grant Grundler The miii_nway_restart() causes a PHY link change activity and ax88772_link_reset will be called. link_reset will set

Re: [PATCH v3 0/5] net/usb: asix driver improvements

2016-08-31 Thread Robert Foss
o "Command failed" fi done iperf3 UDP: sudo iperf3 -c 192.168.0.28 -u -b 100M -t 0 On 2016-08-29 09:32 AM, robert.f...@collabora.com wrote: From: Robert Foss <robert.f...@collabora.com> This is a resubmission of v3, since the netdev mailinlist was not se

Re: [PATCH v3 0/5] net/usb: asix driver improvements

2016-08-31 Thread Robert Foss
o "Command failed" fi done iperf3 UDP: sudo iperf3 -c 192.168.0.28 -u -b 100M -t 0 On 2016-08-29 09:32 AM, robert.f...@collabora.com wrote: From: Robert Foss This is a resubmission of v3, since the netdev mailinlist was not sent the previous submission. This s

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

2016-08-31 Thread Robert Foss
On 2016-08-31 05:45 AM, Jacek Anaszewski wrote: Hi Robert, On 08/17/2016 12:33 AM, robert.f...@collabora.com wrote: 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 co

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

2016-08-31 Thread Robert Foss
On 2016-08-31 05:45 AM, Jacek Anaszewski wrote: Hi Robert, On 08/17/2016 12:33 AM, robert.f...@collabora.com wrote: 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

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

2016-08-29 Thread Robert Foss
On 2016-08-11 12:35 PM, Robert Foss wrote: 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 <adur...@chromium.org> When the panic path is taken for khungtaskd dump all tasks with the UNINTERUPTIBLE

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

2016-08-29 Thread Robert Foss
On 2016-08-11 12:35 PM, Robert Foss wrote: 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

Re: [PATCH v1] mm, sysctl: Add sysctl for controlling VM_MAYEXEC taint

2016-08-29 Thread Robert Foss
On 2016-08-29 11:25 AM, Will Drewry wrote: On Fri, Aug 26, 2016 at 4:32 PM, Kirill A. Shutemov > wrote: On Fri, Aug 26, 2016 at 12:30:04PM -0400, robert.f...@collabora.com wrote: > From: Will

Re: [PATCH v1] mm, sysctl: Add sysctl for controlling VM_MAYEXEC taint

2016-08-29 Thread Robert Foss
On 2016-08-29 11:25 AM, Will Drewry wrote: On Fri, Aug 26, 2016 at 4:32 PM, Kirill A. Shutemov mailto:kir...@shutemov.name>> wrote: On Fri, Aug 26, 2016 at 12:30:04PM -0400, robert.f...@collabora.com wrote: > From: Will Drewry

[PATCH v3 2/5] net: asix: Avoid looping when the device is disconnected

2016-08-29 Thread robert . foss
From: Vincent Palatin <vpala...@chromium.org> Check the answers from the USB stack and avoid re-sending multiple times the request if the device has disappeared. Signed-off-by: Vincent Palatin <vpala...@chromium.org> Signed-off-by: Robert Foss <robert.f...@collabora.com> Test

[PATCH v3 2/5] net: asix: Avoid looping when the device is disconnected

2016-08-29 Thread robert . foss
From: Vincent Palatin Check the answers from the USB stack and avoid re-sending multiple times the request if the device has disappeared. Signed-off-by: Vincent Palatin Signed-off-by: Robert Foss Tested-by: Robert Foss --- drivers/net/usb/asix_common.c | 56

[PATCH v3 5/5] net: asix: autoneg will set WRITE_MEDIUM reg

2016-08-29 Thread robert . foss
ch may be different from the negotiation result. So do this first. Ignore the ret value since it's ignored in XXX_link_reset() functions. Signed-off-by: Grant Grundler <grund...@google.com> Signed-off-by: Robert Foss <robert.f...@collabora.com> Tested-by: Robert Foss <robe

[PATCH v3 5/5] net: asix: autoneg will set WRITE_MEDIUM reg

2016-08-29 Thread robert . foss
the negotiation result. So do this first. Ignore the ret value since it's ignored in XXX_link_reset() functions. Signed-off-by: Grant Grundler Signed-off-by: Robert Foss Tested-by: Robert Foss --- drivers/net/usb/asix_devices.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git

[PATCH v3 3/5] net: asix: Fix AX88772x resume failures

2016-08-29 Thread robert . foss
f-by: Robert Foss <robert.f...@collabora.com> Tested-by: Robert Foss <robert.f...@collabora.com> --- drivers/net/usb/asix_devices.c | 47 +- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/drivers/net/usb/asix_devices.c b/drivers/net/

[PATCH v3 4/5] net: asix: see 802.3 spec for phy reset

2016-08-29 Thread robert . foss
ned-off-by: Grant Grundler <grund...@chromium.org> Signed-off-by: Robert Foss <robert.f...@collabora.com> Tested-by: Robert Foss <robert.f...@collabora.com> --- drivers/net/usb/asix_devices.c | 27 --- 1 file changed, 24 insertions(+), 3 deletions(-) diff --gi

[PATCH v3 3/5] net: asix: Fix AX88772x resume failures

2016-08-29 Thread robert . foss
From: Allan Chou The change fixes AX88772x resume failure by - Restore incorrect AX88772A PHY registers when resetting - Need to stop MAC operation when suspending - Need to restart MII when restoring PHY Signed-off-by: Allan Chou Signed-off-by: Robert Foss Tested-by: Robert Foss

[PATCH v3 4/5] net: asix: see 802.3 spec for phy reset

2016-08-29 Thread robert . foss
From: Grant Grundler https://lkml.org/lkml/2014/11/11/947 Ben Hutchings is correct. IEEE 802.3 spec section "22.2.4.1.1 Reset" requires up to 500ms delay. Mitigate the "max" delay by polling the phy until BCM_RESET bit is clear. Signed-off-by: Grant Grundler Signed

[PATCH v3 1/5] net: asix: Add in_pm parameter

2016-08-29 Thread robert . foss
Reset HW in resume function to ensure the PHY works correctly. Signed-off-by: Freddy Xin <fre...@asix.com.tw> Signed-off-by: Robert Foss <robert.f...@collabora.com> Tested-by: Robert Foss <robert.f...@collabora.com> --- drivers/net/usb/asix.h | 40 +++-- drivers/net/

[PATCH v3 1/5] net: asix: Add in_pm parameter

2016-08-29 Thread robert . foss
function to ensure the PHY works correctly. Signed-off-by: Freddy Xin Signed-off-by: Robert Foss Tested-by: Robert Foss --- drivers/net/usb/asix.h | 40 +++-- drivers/net/usb/asix_common.c | 180 +++- drivers/net/usb/asix_devices.c | 373

[PATCH v1] mm, sysctl: Add sysctl for controlling VM_MAYEXEC taint

2016-08-26 Thread robert . foss
able the defense entirely. (There are many other ways to approach this problem, but this seemed to be the most practical and feel the least like a hack or a major change.) Signed-off-by: Will Drewry <w...@chromium.org> Signed-off-by: Robert Foss <robert.f...@collabora.com> Test

[PATCH v1] mm, sysctl: Add sysctl for controlling VM_MAYEXEC taint

2016-08-26 Thread robert . foss
e entirely. (There are many other ways to approach this problem, but this seemed to be the most practical and feel the least like a hack or a major change.) Signed-off-by: Will Drewry Signed-off-by: Robert Foss Tested-by: Robert Foss --- include/linux/mm.h | 2 ++ kernel/sysctl.c| 9 +

[PATCH v3 4/5] net: asix: see 802.3 spec for phy reset

2016-08-25 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> From: Grant Grundler <grund...@chromium.org> https://lkml.org/lkml/2014/11/11/947 Ben Hutchings is correct. IEEE 802.3 spec section "22.2.4.1.1 Reset" requires up to 500ms delay. Mitigate the "max" delay by pol

[PATCH v3 1/5] net: asix: Add in_pm parameter

2016-08-25 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> From: Freddy Xin <fre...@asix.com.tw> In order to R/W registers in suspend/resume functions, in_pm flags are added to some functions to determine whether the nopm version of usb functions is called. Save BMCR and ANAR PHY register

[PATCH v3 1/5] net: asix: Add in_pm parameter

2016-08-25 Thread robert . foss
Reset HW in resume function to ensure the PHY works correctly. Signed-off-by: Freddy Xin <fre...@asix.com.tw> Signed-off-by: Robert Foss <robert.f...@collabora.com> Tested-by: Robert Foss <robert.f...@collabora.com> --- drivers/net/usb/asix.h | 40 +++-- drivers/net/

[PATCH v3 4/5] net: asix: see 802.3 spec for phy reset

2016-08-25 Thread robert . foss
ned-off-by: Grant Grundler <grund...@chromium.org> Signed-off-by: Robert Foss <robert.f...@collabora.com> Tested-by: Robert Foss <robert.f...@collabora.com> --- drivers/net/usb/asix_devices.c | 27 --- 1 file changed, 24 insertions(+), 3 deletions(-) diff --gi

[PATCH v3 2/5] net: asix: Avoid looping when the device is disconnected

2016-08-25 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> From: Vincent Palatin <vpala...@chromium.org> Check the answers from the USB stack and avoid re-sending multiple times the request if the device has disappeared. Signed-off-by: Vincent Palatin <vpala...@chromium.org> Signed-o

[PATCH v3 5/5] net: asix: autoneg will set WRITE_MEDIUM reg

2016-08-25 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> From: Grant Grundler <grund...@chromium.org> The miii_nway_restart() causes a PHY link change activity and ax88772_link_reset will be called. link_reset will set AX_CMD_WRITE_MEDIUM_MODE register correctly. The asix_write_medium_m

[PATCH v3 3/5] net: asix: Fix AX88772x resume failures

2016-08-25 Thread robert . foss
f-by: Robert Foss <robert.f...@collabora.com> Tested-by: Robert Foss <robert.f...@collabora.com> --- drivers/net/usb/asix_devices.c | 47 +- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/drivers/net/usb/asix_devices.c b/drivers/net/

[PATCH v3 3/5] net: asix: Fix AX88772x resume failures

2016-08-25 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> From: Allan Chou <al...@asix.com.tw> The change fixes AX88772x resume failure by - Restore incorrect AX88772A PHY registers when resetting - Need to stop MAC operation when suspending - Need to restart MII when restoring PHY Signed-o

[PATCH v3 4/5] net: asix: see 802.3 spec for phy reset

2016-08-25 Thread robert . foss
From: Robert Foss From: Grant Grundler https://lkml.org/lkml/2014/11/11/947 Ben Hutchings is correct. IEEE 802.3 spec section "22.2.4.1.1 Reset" requires up to 500ms delay. Mitigate the "max" delay by polling the phy until BCM_RESET bit is clear. Signed-off-by: Grant

[PATCH v3 1/5] net: asix: Add in_pm parameter

2016-08-25 Thread robert . foss
From: Robert Foss From: Freddy Xin In order to R/W registers in suspend/resume functions, in_pm flags are added to some functions to determine whether the nopm version of usb functions is called. Save BMCR and ANAR PHY registers in suspend function and restore them in resume function. Reset

[PATCH v3 1/5] net: asix: Add in_pm parameter

2016-08-25 Thread robert . foss
function to ensure the PHY works correctly. Signed-off-by: Freddy Xin Signed-off-by: Robert Foss Tested-by: Robert Foss --- drivers/net/usb/asix.h | 40 +++-- drivers/net/usb/asix_common.c | 180 +++- drivers/net/usb/asix_devices.c | 373

[PATCH v3 5/5] net: asix: autoneg will set WRITE_MEDIUM reg

2016-08-25 Thread robert . foss
From: Robert Foss From: Grant Grundler The miii_nway_restart() causes a PHY link change activity and ax88772_link_reset will be called. link_reset will set AX_CMD_WRITE_MEDIUM_MODE register correctly. The asix_write_medium_mode in reset() fills in a default value to the register which may

[PATCH v3 3/5] net: asix: Fix AX88772x resume failures

2016-08-25 Thread robert . foss
From: Allan Chou The change fixes AX88772x resume failure by - Restore incorrect AX88772A PHY registers when resetting - Need to stop MAC operation when suspending - Need to restart MII when restoring PHY Signed-off-by: Allan Chou Signed-off-by: Robert Foss Tested-by: Robert Foss

[PATCH v3 4/5] net: asix: see 802.3 spec for phy reset

2016-08-25 Thread robert . foss
From: Grant Grundler https://lkml.org/lkml/2014/11/11/947 Ben Hutchings is correct. IEEE 802.3 spec section "22.2.4.1.1 Reset" requires up to 500ms delay. Mitigate the "max" delay by polling the phy until BCM_RESET bit is clear. Signed-off-by: Grant Grundler Signed

[PATCH v3 2/5] net: asix: Avoid looping when the device is disconnected

2016-08-25 Thread robert . foss
From: Robert Foss From: Vincent Palatin Check the answers from the USB stack and avoid re-sending multiple times the request if the device has disappeared. Signed-off-by: Vincent Palatin Signed-off-by: Robert Foss Tested-by: Robert Foss --- drivers/net/usb/asix_common.c | 56

[PATCH v3 3/5] net: asix: Fix AX88772x resume failures

2016-08-25 Thread robert . foss
From: Robert Foss From: Allan Chou The change fixes AX88772x resume failure by - Restore incorrect AX88772A PHY registers when resetting - Need to stop MAC operation when suspending - Need to restart MII when restoring PHY Signed-off-by: Allan Chou Signed-off-by: Robert Foss Tested

[PATCH v3 5/5] net: asix: autoneg will set WRITE_MEDIUM reg

2016-08-25 Thread robert . foss
ch may be different from the negotiation result. So do this first. Ignore the ret value since it's ignored in XXX_link_reset() functions. Signed-off-by: Grant Grundler <grund...@google.com> Signed-off-by: Robert Foss <robert.f...@collabora.com> Tested-by: Robert Foss <robe

[PATCH v3 0/5] net/usb: asix driver improvements

2016-08-25 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> This series improves power management of the asix driver. - Suspend/resume support is improved to save needed registers. - Device disconnection is improved. - Fixes AX88772x resume failures - Implementes IEEE 802.3 spec section "22.2.

[PATCH v3 2/5] net: asix: Avoid looping when the device is disconnected

2016-08-25 Thread robert . foss
From: Vincent Palatin <vpala...@chromium.org> Check the answers from the USB stack and avoid re-sending multiple times the request if the device has disappeared. Signed-off-by: Vincent Palatin <vpala...@chromium.org> Signed-off-by: Robert Foss <robert.f...@collabora.com> Test

[PATCH v3 5/5] net: asix: autoneg will set WRITE_MEDIUM reg

2016-08-25 Thread robert . foss
the negotiation result. So do this first. Ignore the ret value since it's ignored in XXX_link_reset() functions. Signed-off-by: Grant Grundler Signed-off-by: Robert Foss Tested-by: Robert Foss --- drivers/net/usb/asix_devices.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git

[PATCH v3 0/5] net/usb: asix driver improvements

2016-08-25 Thread robert . foss
From: Robert Foss This series improves power management of the asix driver. - Suspend/resume support is improved to save needed registers. - Device disconnection is improved. - Fixes AX88772x resume failures - Implementes IEEE 802.3 spec section "22.2.4.1.1 Reset" correctl

[PATCH v3 2/5] net: asix: Avoid looping when the device is disconnected

2016-08-25 Thread robert . foss
From: Vincent Palatin Check the answers from the USB stack and avoid re-sending multiple times the request if the device has disappeared. Signed-off-by: Vincent Palatin Signed-off-by: Robert Foss Tested-by: Robert Foss --- drivers/net/usb/asix_common.c | 56

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

2016-08-24 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

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

2016-08-24 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 --git

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

2016-08-22 Thread Robert Foss
On 2016-08-22 10:12 AM, Minchan Kim wrote: On Mon, Aug 22, 2016 at 09:40:52AM +0200, Michal Hocko wrote: On Mon 22-08-16 09:07:45, Minchan Kim wrote: [...] #!/bin/sh ./smap_test & pid=$! for i in $(seq 25) do awk '/^Rss/{rss+=$2} /^Pss/{pss+=$2} END {}' \ /proc/$pid/smaps

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

2016-08-22 Thread Robert Foss
On 2016-08-22 10:12 AM, Minchan Kim wrote: On Mon, Aug 22, 2016 at 09:40:52AM +0200, Michal Hocko wrote: On Mon 22-08-16 09:07:45, Minchan Kim wrote: [...] #!/bin/sh ./smap_test & pid=$! for i in $(seq 25) do awk '/^Rss/{rss+=$2} /^Pss/{pss+=$2} END {}' \ /proc/$pid/smaps

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

2016-08-18 Thread Robert Foss
On 2016-08-18 02:01 PM, Michal Hocko wrote: On Thu 18-08-16 10:47:57, Sonny Rao wrote: On Thu, Aug 18, 2016 at 12:44 AM, Michal Hocko wrote: On Wed 17-08-16 11:57:56, Sonny Rao wrote: [...] 2) User space OOM handling -- we'd rather do a more graceful shutdown than let

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

2016-08-18 Thread Robert Foss
On 2016-08-18 02:01 PM, Michal Hocko wrote: On Thu 18-08-16 10:47:57, Sonny Rao wrote: On Thu, Aug 18, 2016 at 12:44 AM, Michal Hocko wrote: On Wed 17-08-16 11:57:56, Sonny Rao wrote: [...] 2) User space OOM handling -- we'd rather do a more graceful shutdown than let the kernel's OOM

Re: [PACTH v9] stacktrace: Eliminate task stack trace duplication

2016-08-17 Thread Robert Foss
On 2016-08-17 03:57 PM, Josh Poimboeuf wrote: On Wed, Aug 17, 2016 at 02:41:30PM -0400, Robert Foss wrote: On 2016-08-17 02:06 PM, Josh Poimboeuf wrote: On Wed, Aug 17, 2016 at 01:40:33PM -0400, Robert Foss wrote: On 2016-08-17 12:58 PM, Josh Poimboeuf wrote: On Wed, Aug 17, 2016 at 09:51

Re: [PACTH v9] stacktrace: Eliminate task stack trace duplication

2016-08-17 Thread Robert Foss
On 2016-08-17 03:57 PM, Josh Poimboeuf wrote: On Wed, Aug 17, 2016 at 02:41:30PM -0400, Robert Foss wrote: On 2016-08-17 02:06 PM, Josh Poimboeuf wrote: On Wed, Aug 17, 2016 at 01:40:33PM -0400, Robert Foss wrote: On 2016-08-17 12:58 PM, Josh Poimboeuf wrote: On Wed, Aug 17, 2016 at 09:51

Re: [PACTH v9] stacktrace: Eliminate task stack trace duplication

2016-08-17 Thread Robert Foss
On 2016-08-17 02:06 PM, Josh Poimboeuf wrote: On Wed, Aug 17, 2016 at 01:40:33PM -0400, Robert Foss wrote: On 2016-08-17 12:58 PM, Josh Poimboeuf wrote: On Wed, Aug 17, 2016 at 09:51:45AM -0400, Robert Foss wrote: On 2016-08-17 02:50 AM, Peter Zijlstra wrote: On Tue, Aug 16, 2016 at 07

Re: [PACTH v9] stacktrace: Eliminate task stack trace duplication

2016-08-17 Thread Robert Foss
On 2016-08-17 02:06 PM, Josh Poimboeuf wrote: On Wed, Aug 17, 2016 at 01:40:33PM -0400, Robert Foss wrote: On 2016-08-17 12:58 PM, Josh Poimboeuf wrote: On Wed, Aug 17, 2016 at 09:51:45AM -0400, Robert Foss wrote: On 2016-08-17 02:50 AM, Peter Zijlstra wrote: On Tue, Aug 16, 2016 at 07

Re: [PACTH v9] stacktrace: Eliminate task stack trace duplication

2016-08-17 Thread Robert Foss
On 2016-08-17 12:58 PM, Josh Poimboeuf wrote: On Wed, Aug 17, 2016 at 09:51:45AM -0400, Robert Foss wrote: On 2016-08-17 02:50 AM, Peter Zijlstra wrote: On Tue, Aug 16, 2016 at 07:12:36PM -0400, robert.f...@collabora.com wrote: From: Ying Han <ying...@google.com> The problem with

Re: [PACTH v9] stacktrace: Eliminate task stack trace duplication

2016-08-17 Thread Robert Foss
On 2016-08-17 12:58 PM, Josh Poimboeuf wrote: On Wed, Aug 17, 2016 at 09:51:45AM -0400, Robert Foss wrote: On 2016-08-17 02:50 AM, Peter Zijlstra wrote: On Tue, Aug 16, 2016 at 07:12:36PM -0400, robert.f...@collabora.com wrote: From: Ying Han The problem with small dmesg ring buffer

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

2016-08-17 Thread Robert Foss
cedure and possibly leaving the controller in a bad state. Since the tuning command is expected to complete 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...@collabo

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

2016-08-17 Thread Robert Foss
the controller in a bad state. Since the tuning command is expected to complete quickly (<50ms) 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 Reviewed-by: Benson Leung The mmc block que

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

2016-08-17 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> Reviewed-by: Benson Leung <ble...@

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

2016-08-17 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 Reviewed-by: Benson Leung Acked-by: Adrian Hunter --- Changes since v1: - Added proper metadata tags to series. Changes since v2: - Added "

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

2016-08-17 Thread Robert Foss
On 2016-08-17 09:03 AM, Michal Hocko wrote: On Wed 17-08-16 11:31:25, Jann Horn wrote: On Wed, Aug 17, 2016 at 10:22:00AM +0200, Michal Hocko wrote: On Tue 16-08-16 12:46:51, Robert Foss wrote: [...] $ /usr/bin/time -v -p zsh -c "repeat 25 { awk '/^Rss/{rss+=\$2} /^Pss/{pss+=\$2

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

2016-08-17 Thread Robert Foss
On 2016-08-17 09:03 AM, Michal Hocko wrote: On Wed 17-08-16 11:31:25, Jann Horn wrote: On Wed, Aug 17, 2016 at 10:22:00AM +0200, Michal Hocko wrote: On Tue 16-08-16 12:46:51, Robert Foss wrote: [...] $ /usr/bin/time -v -p zsh -c "repeat 25 { awk '/^Rss/{rss+=\$2} /^Pss/{pss+=\$2

Re: [PACTH v9] stacktrace: Eliminate task stack trace duplication

2016-08-17 Thread Robert Foss
On 2016-08-17 02:50 AM, Peter Zijlstra wrote: On Tue, Aug 16, 2016 at 07:12:36PM -0400, robert.f...@collabora.com wrote: From: Ying Han The problem with small dmesg ring buffer like 512k is that only limited number of task traces will be logged. Sometimes we lose

Re: [PACTH v9] stacktrace: Eliminate task stack trace duplication

2016-08-17 Thread Robert Foss
On 2016-08-17 02:50 AM, Peter Zijlstra wrote: On Tue, Aug 16, 2016 at 07:12:36PM -0400, robert.f...@collabora.com wrote: From: Ying Han The problem with small dmesg ring buffer like 512k is that only limited number of task traces will be logged. Sometimes we lose important information only

[PACTH v9] stacktrace: Eliminate task stack trace duplication

2016-08-16 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 v9] stacktrace: Eliminate task stack trace duplication

2016-08-16 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 is a resubmission of v9. This series has previously had 8 versions

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

2016-08-16 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 v4 3/3] Documentation/filesystems: Added /proc/PID/totmaps documentation

2016-08-16 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 v4 2/3] Documentation/filesystems: Fixed typo

2016-08-16 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 v4 2/3] Documentation/filesystems: Fixed typo

2016-08-16 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 v4 0/3] Implement /proc//totmaps

2016-08-16 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> This series provides the /proc/PID/totmaps feature, which summarizes the information provided by /proc/PID/smaps for improved performance and usability reasons. A use case is to speed up monitoring of memory consumption in environments whe

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

2016-08-16 Thread robert . foss
From: Robert Foss This series provides the /proc/PID/totmaps feature, which summarizes the information provided by /proc/PID/smaps for improved performance and usability reasons. A use case is to speed up monitoring of memory consumption in environments where RSS isn't precise. For example

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

2016-08-16 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 v4 1/3] mm, proc: Implement /proc//totmaps

2016-08-16 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 v3] mmc: sdhci: Do not allow tuning procedure to be interrupted

2016-08-16 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> Reviewed-by: Benson Leung <ble...@

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

2016-08-16 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 Reviewed-by: Benson Leung --- drivers/mmc/host/sdhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci.c b/driv

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

2016-08-16 Thread Robert Foss
On 2016-08-16 02:18 PM, Jann Horn wrote: On Tue, Aug 16, 2016 at 01:34:14PM -0400, robert.f...@collabora.com wrote: 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 co

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

2016-08-16 Thread Robert Foss
On 2016-08-16 02:18 PM, Jann Horn wrote: On Tue, Aug 16, 2016 at 01:34:14PM -0400, robert.f...@collabora.com wrote: 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

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

2016-08-16 Thread Robert Foss
On 2016-08-16 02:01 PM, Jann Horn wrote: nit: s/extenssion/extension/ Thanks :)

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

2016-08-16 Thread Robert Foss
On 2016-08-16 02:01 PM, Jann Horn wrote: nit: s/extenssion/extension/ Thanks :)

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

2016-08-16 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 v3 2/3] Documentation/filesystems: Fixed typo

2016-08-16 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 v3 3/3] Documentation/filesystems: Added /proc/PID/totmaps documentation

2016-08-16 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 v3 2/3] Documentation/filesystems: Fixed typo

2016-08-16 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 v3 1/3] mm, proc: Implement /proc//totmaps

2016-08-16 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 v3 1/3] mm, proc: Implement /proc//totmaps

2016-08-16 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 v3 0/3] Implement /proc//totmaps

2016-08-16 Thread robert . foss
From: Robert Foss <robert.f...@collabora.com> This series provides the /proc/PID/totmaps feature, which summarizes the information provided by /proc/PID/smaps for improved performance and usability reasons. A use case is to speed up monitoring of memory consumption in environments whe

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

2016-08-16 Thread robert . foss
From: Robert Foss This series provides the /proc/PID/totmaps feature, which summarizes the information provided by /proc/PID/smaps for improved performance and usability reasons. A use case is to speed up monitoring of memory consumption in environments where RSS isn't precise. For example

<    1   2   3   4   5   6   7   8   >