[PATCH 3.12 16/38] cfg80211: limit scan results cache size

2016-12-13 Thread Jiri Slaby
From: Johannes Berg 3.12-stable review patch. If anyone has any objections, please let me know. === commit 9853a55ef1bb66d7411136046060bbfb69c714fa upstream. It's possible to make scanning consume almost arbitrary amounts of memory, e.g. by sending beacon frames with random

[PATCH 3.12 02/38] PCI: Fix devfn for VPD access through function 0

2016-12-13 Thread Jiri Slaby
From: Alex Williamson 3.12-stable review patch. If anyone has any objections, please let me know. === commit 9d9240756e63dd87d6cbf5da8b98ceb8f8192b55 upstream. Commit 932c435caba8 ("PCI: Add dev_flags bit to access VPD through function 0") passes PCI_SLOT(devfn) for the devfn

[PATCH 3.12 18/38] mpi: Fix NULL ptr dereference in mpi_powm() [ver #3]

2016-12-13 Thread Jiri Slaby
From: Andrey Ryabinin 3.12-stable review patch. If anyone has any objections, please let me know. === commit f5527f3f002b0a6b376163613b82f69de073 upstream. This fixes CVE-2016-8650. If mpi_powm() is given a zero exponent, it wants to immediately

[PATCH 3.12 18/38] mpi: Fix NULL ptr dereference in mpi_powm() [ver #3]

2016-12-13 Thread Jiri Slaby
From: Andrey Ryabinin 3.12-stable review patch. If anyone has any objections, please let me know. === commit f5527f3f002b0a6b376163613b82f69de073 upstream. This fixes CVE-2016-8650. If mpi_powm() is given a zero exponent, it wants to immediately return either 1 or 0,

[PATCH 3.12 03/38] PCI: Use function 0 VPD for identical functions, regular VPD for others

2016-12-13 Thread Jiri Slaby
From: Alex Williamson 3.12-stable review patch. If anyone has any objections, please let me know. === commit da2d03ea27f6ed9d2005a67b20dd021ddacf1e4d upstream. 932c435caba8 ("PCI: Add dev_flags bit to access VPD through function 0") added

[PATCH 3.12 03/38] PCI: Use function 0 VPD for identical functions, regular VPD for others

2016-12-13 Thread Jiri Slaby
From: Alex Williamson 3.12-stable review patch. If anyone has any objections, please let me know. === commit da2d03ea27f6ed9d2005a67b20dd021ddacf1e4d upstream. 932c435caba8 ("PCI: Add dev_flags bit to access VPD through function 0") added PCI_DEV_FLAGS_VPD_REF_F0. Previously, we

[PATCH 3.12 22/38] PCI: Export pcie_find_root_port

2016-12-13 Thread Jiri Slaby
From: Johannes Thumshirn 3.12-stable review patch. If anyone has any objections, please let me know. === commit e784930bd645e7df78c66e7872fec282b0620075 upstream. Export pcie_find_root_port() so we can use it outside of PCIe-AER error injection.

[PATCH 3.12 24/38] pwm: Fix device reference leak

2016-12-13 Thread Jiri Slaby
From: Johan Hovold 3.12-stable review patch. If anyone has any objections, please let me know. === commit 0e1614ac84f1719d87bed577963bb8140d0c9ce8 upstream. Make sure to drop the reference to the parent device taken by class_find_device() after "unexporting" any

[PATCH 3.12 25/38] ipv6: Set skb->protocol properly for local output

2016-12-13 Thread Jiri Slaby
From: Eli Cooper 3.12-stable review patch. If anyone has any objections, please let me know. === commit b4e479a96fc398ccf83bb1cffb4ffef8631beaf1 upstream. When xfrm is applied to TSO/GSO packets, it follows this path: xfrm_output() -> xfrm_output_gso() ->

[PATCH 3.12 33/38] packet: fix race condition in packet_set_ring

2016-12-13 Thread Jiri Slaby
From: Philip Pettersson 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 84ac7260236a49c79eede91617700174c2c19b0c ] When packet_set_ring creates a ring buffer it will initialize a struct timer_list if

[PATCH 3.12 19/38] drm/radeon: Ensure vblank interrupt is enabled on DPMS transition to on

2016-12-13 Thread Jiri Slaby
From: Michel Dänzer 3.12-stable review patch. If anyone has any objections, please let me know. === NOTE: This patch only applies to 4.5.y or older kernels. With newer kernels, this problem cannot happen because the driver now uses drm_crtc_vblank_on/off

[PATCH 3.12 21/38] rcu: Fix soft lockup for rcu_nocb_kthread

2016-12-13 Thread Jiri Slaby
From: Ding Tianhong 3.12-stable review patch. If anyone has any objections, please let me know. === commit bedc1969150d480c462cdac320fa944b694a7162 upstream. Carrying out the following steps results in a softlockup in the RCU callback-offload (rcuo)

[PATCH 3.12 22/38] PCI: Export pcie_find_root_port

2016-12-13 Thread Jiri Slaby
From: Johannes Thumshirn 3.12-stable review patch. If anyone has any objections, please let me know. === commit e784930bd645e7df78c66e7872fec282b0620075 upstream. Export pcie_find_root_port() so we can use it outside of PCIe-AER error injection. Signed-off-by: Johannes Thumshirn

[PATCH 3.12 24/38] pwm: Fix device reference leak

2016-12-13 Thread Jiri Slaby
From: Johan Hovold 3.12-stable review patch. If anyone has any objections, please let me know. === commit 0e1614ac84f1719d87bed577963bb8140d0c9ce8 upstream. Make sure to drop the reference to the parent device taken by class_find_device() after "unexporting" any children when

[PATCH 3.12 25/38] ipv6: Set skb->protocol properly for local output

2016-12-13 Thread Jiri Slaby
From: Eli Cooper 3.12-stable review patch. If anyone has any objections, please let me know. === commit b4e479a96fc398ccf83bb1cffb4ffef8631beaf1 upstream. When xfrm is applied to TSO/GSO packets, it follows this path: xfrm_output() -> xfrm_output_gso() -> skb_gso_segment()

[PATCH 3.12 33/38] packet: fix race condition in packet_set_ring

2016-12-13 Thread Jiri Slaby
From: Philip Pettersson 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 84ac7260236a49c79eede91617700174c2c19b0c ] When packet_set_ring creates a ring buffer it will initialize a struct timer_list if the packet version is

[PATCH 3.12 19/38] drm/radeon: Ensure vblank interrupt is enabled on DPMS transition to on

2016-12-13 Thread Jiri Slaby
From: Michel Dänzer 3.12-stable review patch. If anyone has any objections, please let me know. === NOTE: This patch only applies to 4.5.y or older kernels. With newer kernels, this problem cannot happen because the driver now uses drm_crtc_vblank_on/off instead of

[PATCH 3.12 21/38] rcu: Fix soft lockup for rcu_nocb_kthread

2016-12-13 Thread Jiri Slaby
From: Ding Tianhong 3.12-stable review patch. If anyone has any objections, please let me know. === commit bedc1969150d480c462cdac320fa944b694a7162 upstream. Carrying out the following steps results in a softlockup in the RCU callback-offload (rcuo) kthreads: 1. Connect to

[PATCH 3.12 13/38] Fix USB CB/CBI storage devices with CONFIG_VMAP_STACK=y

2016-12-13 Thread Jiri Slaby
From: Petr Vandrovec 3.12-stable review patch. If anyone has any objections, please let me know. === commit 2ce9d2272b98743b911196c49e7af5841381c206 upstream. Some code (all error handling) submits CDBs that are allocated on the stack. This breaks with

[PATCH 3.12 23/38] mwifiex: printk() overflow with 32-byte SSIDs

2016-12-13 Thread Jiri Slaby
From: Brian Norris 3.12-stable review patch. If anyone has any objections, please let me know. === commit fcd2042e8d36cf644bd2d69c26378d17158b17df upstream. SSIDs aren't guaranteed to be 0-terminated. Let's cap the max length when we print them out.

[PATCH 3.12 13/38] Fix USB CB/CBI storage devices with CONFIG_VMAP_STACK=y

2016-12-13 Thread Jiri Slaby
From: Petr Vandrovec 3.12-stable review patch. If anyone has any objections, please let me know. === commit 2ce9d2272b98743b911196c49e7af5841381c206 upstream. Some code (all error handling) submits CDBs that are allocated on the stack. This breaks with CB/CBI code that tries to

[PATCH 3.12 23/38] mwifiex: printk() overflow with 32-byte SSIDs

2016-12-13 Thread Jiri Slaby
From: Brian Norris 3.12-stable review patch. If anyone has any objections, please let me know. === commit fcd2042e8d36cf644bd2d69c26378d17158b17df upstream. SSIDs aren't guaranteed to be 0-terminated. Let's cap the max length when we print them out. This can be easily noticed by

[PATCH 3.12 20/38] x86/traps: Ignore high word of regs->cs in early_fixup_exception()

2016-12-13 Thread Jiri Slaby
From: Andy Lutomirski 3.12-stable review patch. If anyone has any objections, please let me know. === commit fc0e81b2bea0ebceb71889b61d2240856141c9ee upstream. On the 80486 DX, it seems that some exceptions may leave garbage in the high bits of CS. This causes

[PATCH 3.12 20/38] x86/traps: Ignore high word of regs->cs in early_fixup_exception()

2016-12-13 Thread Jiri Slaby
From: Andy Lutomirski 3.12-stable review patch. If anyone has any objections, please let me know. === commit fc0e81b2bea0ebceb71889b61d2240856141c9ee upstream. On the 80486 DX, it seems that some exceptions may leave garbage in the high bits of CS. This causes sporadic failures

[PATCH 3.12 26/38] ipv4: Set skb->protocol properly for local output

2016-12-13 Thread Jiri Slaby
From: Eli Cooper 3.12-stable review patch. If anyone has any objections, please let me know. === commit f4180439109aa720774baafdd798b3234ab1a0d2 upstream. When xfrm is applied to TSO/GSO packets, it follows this path: xfrm_output() -> xfrm_output_gso() ->

[PATCH 3.12 30/38] l2tp: fix racy SOCK_ZAPPED flag check in l2tp_ip{,6}_bind()

2016-12-13 Thread Jiri Slaby
From: Guillaume Nault 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 32c231164b762dddefa13af5a0101032c70b50ef ] Lock socket before checking the SOCK_ZAPPED flag in l2tp_ip6_bind(). Without lock, a concurrent

[PATCH 3.12 27/38] ALSA: pcm : Call kill_fasync() in stream lock

2016-12-13 Thread Jiri Slaby
From: Takashi Iwai 3.12-stable review patch. If anyone has any objections, please let me know. === commit 3aa02cb664c5fb1042958c8d1aa8c35055a2ebc4 upstream. Currently kill_fasync() is called outside the stream lock in snd_pcm_period_elapsed(). This is potentially

[PATCH 3.12 37/38] sparc64: Fix find_node warning if numa node cannot be found

2016-12-13 Thread Jiri Slaby
From: Thomas Tai 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 74a5ed5c4f692df2ff0a2313ea71e81243525519 ] When booting up LDOM, find_node() warns that a physical address doesn't match a NUMA node.

[PATCH 3.12 28/38] ip6_tunnel: disable caching when the traffic class is inherited

2016-12-13 Thread Jiri Slaby
From: Paolo Abeni 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit b5c2d49544e5930c96e2632a7eece3f4325a1888 ] If an ip6 tunnel is configured to inherit the traffic class from the inner header, the dst_cache must

[PATCH 3.12 38/38] sparc64: fix compile warning section mismatch in find_node()

2016-12-13 Thread Jiri Slaby
From: Thomas Tai 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 87a349f9cc0908bc0cfac0c9ece3179f650ae95a ] A compile warning is introduced by a commit to fix the find_node(). This patch fix the compile

[PATCH 3.12 26/38] ipv4: Set skb->protocol properly for local output

2016-12-13 Thread Jiri Slaby
From: Eli Cooper 3.12-stable review patch. If anyone has any objections, please let me know. === commit f4180439109aa720774baafdd798b3234ab1a0d2 upstream. When xfrm is applied to TSO/GSO packets, it follows this path: xfrm_output() -> xfrm_output_gso() -> skb_gso_segment()

[PATCH 3.12 30/38] l2tp: fix racy SOCK_ZAPPED flag check in l2tp_ip{,6}_bind()

2016-12-13 Thread Jiri Slaby
From: Guillaume Nault 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 32c231164b762dddefa13af5a0101032c70b50ef ] Lock socket before checking the SOCK_ZAPPED flag in l2tp_ip6_bind(). Without lock, a concurrent call could modify the

[PATCH 3.12 27/38] ALSA: pcm : Call kill_fasync() in stream lock

2016-12-13 Thread Jiri Slaby
From: Takashi Iwai 3.12-stable review patch. If anyone has any objections, please let me know. === commit 3aa02cb664c5fb1042958c8d1aa8c35055a2ebc4 upstream. Currently kill_fasync() is called outside the stream lock in snd_pcm_period_elapsed(). This is potentially racy, since the

[PATCH 3.12 37/38] sparc64: Fix find_node warning if numa node cannot be found

2016-12-13 Thread Jiri Slaby
From: Thomas Tai 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 74a5ed5c4f692df2ff0a2313ea71e81243525519 ] When booting up LDOM, find_node() warns that a physical address doesn't match a NUMA node. WARNING: CPU: 0 PID: 0 at

[PATCH 3.12 28/38] ip6_tunnel: disable caching when the traffic class is inherited

2016-12-13 Thread Jiri Slaby
From: Paolo Abeni 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit b5c2d49544e5930c96e2632a7eece3f4325a1888 ] If an ip6 tunnel is configured to inherit the traffic class from the inner header, the dst_cache must be disabled or it

[PATCH 3.12 38/38] sparc64: fix compile warning section mismatch in find_node()

2016-12-13 Thread Jiri Slaby
From: Thomas Tai 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 87a349f9cc0908bc0cfac0c9ece3179f650ae95a ] A compile warning is introduced by a commit to fix the find_node(). This patch fix the compile warning by moving

[PATCH 3.12 32/38] net/dccp: fix use-after-free in dccp_invalid_packet

2016-12-13 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 648f0c28df282636c0c8a7a19ca3ce5fc80a39c3 ] pskb_may_pull() can reallocate skb->head, we need to reload dh pointer in dccp_invalid_packet() or

[PATCH 3.12 29/38] net: sky2: Fix shutdown crash

2016-12-13 Thread Jiri Slaby
From: Jeremy Linton 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 06ba3b2133dc203e1e9bc36cee7f0839b79a9e8b ] The sky2 frequently crashes during machine shutdown with: sky2_get_stats+0x60/0x3d8 [sky2]

[PATCH 3.12 31/38] net/sched: pedit: make sure that offset is valid

2016-12-13 Thread Jiri Slaby
From: Amir Vadai 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 95c2027bfeda21a28eb245121e6a249f38d0788e ] Add a validation function to make sure offset is valid: 1. Not below skb head (could happen when offset is

[PATCH 3.12 32/38] net/dccp: fix use-after-free in dccp_invalid_packet

2016-12-13 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 648f0c28df282636c0c8a7a19ca3ce5fc80a39c3 ] pskb_may_pull() can reallocate skb->head, we need to reload dh pointer in dccp_invalid_packet() or risk use after free.

[PATCH 3.12 29/38] net: sky2: Fix shutdown crash

2016-12-13 Thread Jiri Slaby
From: Jeremy Linton 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 06ba3b2133dc203e1e9bc36cee7f0839b79a9e8b ] The sky2 frequently crashes during machine shutdown with: sky2_get_stats+0x60/0x3d8 [sky2] dev_get_stats+0x68/0xd8

[PATCH 3.12 31/38] net/sched: pedit: make sure that offset is valid

2016-12-13 Thread Jiri Slaby
From: Amir Vadai 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 95c2027bfeda21a28eb245121e6a249f38d0788e ] Add a validation function to make sure offset is valid: 1. Not below skb head (could happen when offset is negative). 2.

[PATCH 3.12 01/38] x86/idle: Restore trace_cpu_idle to mwait_idle() calls

2016-12-13 Thread Jiri Slaby
From: Jisheng Zhang 3.12-stable review patch. If anyone has any objections, please let me know. === commit e43d0189ac02415fe4487f79fc35e8f147e9ea0d upstream. Commit b253149b843f ("sched/idle/x86: Restore mwait_idle() to fix boot hangs, to improve power

[PATCH 3.12 36/38] sparc32: Fix inverted invalid_frame_pointer checks on sigreturns

2016-12-13 Thread Jiri Slaby
From: Andreas Larsson 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 07b5ab3f71d318e52c18cc3b73c1d44c908aacfa ] Signed-off-by: Andreas Larsson Signed-off-by: David S. Miller

[PATCH 3.12 15/38] tile: avoid using clocksource_cyc2ns with absolute cycle count

2016-12-13 Thread Jiri Slaby
From: Chris Metcalf 3.12-stable review patch. If anyone has any objections, please let me know. === commit e658a6f14d7c0243205f035979d0ecf6c12a036f upstream. For large values of "mult" and long uptimes, the intermediate result of "cycles * mult" can

[PATCH 3.12 35/38] net: ping: check minimum size on ICMP header length

2016-12-13 Thread Jiri Slaby
From: Kees Cook 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 0eab121ef8750a5c8637d51534d5e9143fb0633f ] Prior to commit c0371da6047a ("put iov_iter into msghdr") in v3.19, there was no check that the

[PATCH 3.12 01/38] x86/idle: Restore trace_cpu_idle to mwait_idle() calls

2016-12-13 Thread Jiri Slaby
From: Jisheng Zhang 3.12-stable review patch. If anyone has any objections, please let me know. === commit e43d0189ac02415fe4487f79fc35e8f147e9ea0d upstream. Commit b253149b843f ("sched/idle/x86: Restore mwait_idle() to fix boot hangs, to improve power savings and to improve

[PATCH 3.12 36/38] sparc32: Fix inverted invalid_frame_pointer checks on sigreturns

2016-12-13 Thread Jiri Slaby
From: Andreas Larsson 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 07b5ab3f71d318e52c18cc3b73c1d44c908aacfa ] Signed-off-by: Andreas Larsson Signed-off-by: David S. Miller Signed-off-by: Jiri Slaby ---

[PATCH 3.12 15/38] tile: avoid using clocksource_cyc2ns with absolute cycle count

2016-12-13 Thread Jiri Slaby
From: Chris Metcalf 3.12-stable review patch. If anyone has any objections, please let me know. === commit e658a6f14d7c0243205f035979d0ecf6c12a036f upstream. For large values of "mult" and long uptimes, the intermediate result of "cycles * mult" can overflow 64 bits. For

[PATCH 3.12 35/38] net: ping: check minimum size on ICMP header length

2016-12-13 Thread Jiri Slaby
From: Kees Cook 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit 0eab121ef8750a5c8637d51534d5e9143fb0633f ] Prior to commit c0371da6047a ("put iov_iter into msghdr") in v3.19, there was no check that the iovec contained enough

[PATCH 3.12 34/38] net: avoid signed overflows for SO_{SND|RCV}BUFFORCE

2016-12-13 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit b98b0bc8c431e3ceb4b26b0dfc8db509518fb290 ] CAP_NET_ADMIN users should not be allowed to set negative sk_sndbuf or sk_rcvbuf values, as it can

[PATCH 3.12 34/38] net: avoid signed overflows for SO_{SND|RCV}BUFFORCE

2016-12-13 Thread Jiri Slaby
From: Eric Dumazet 3.12-stable review patch. If anyone has any objections, please let me know. === [ Upstream commit b98b0bc8c431e3ceb4b26b0dfc8db509518fb290 ] CAP_NET_ADMIN users should not be allowed to set negative sk_sndbuf or sk_rcvbuf values, as it can lead to various

[PATCH v2 07/12] scsi: ufs: add option to change default UFS power management level

2016-12-13 Thread Subhash Jadavani
UFS device and link can be put in multiple different low power modes hence UFS driver supports multiple different low power modes. By default UFS driver selects the default (optimal) low power mode (which gives moderate power savings and have relatively less enter and exit latencies) but we might

[PATCH 3.12 00/38] 3.12.69-stable review

2016-12-13 Thread Jiri Slaby
This is the start of the stable review cycle for the 3.12.69 release. There are 38 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Thu Dec 15 20:52:26 CET 2016. Anything

[PATCH v2 11/12] scsi: ufs: add trace event for ufs commands

2016-12-13 Thread Subhash Jadavani
From: Lee Susman Use the ftrace infrastructure to conditionally trace ufs command events. New trace event is created, which samples the following ufs command data: - device name - optional identification string - task tag - doorbell register - number of transfer bytes -

[PATCH v2 08/12] scsi: ufs: add capability to keep auto bkops always enabled

2016-12-13 Thread Subhash Jadavani
UFS device requires to perform bkops (back ground operations) periodically but host can control (via auto-bkops parameter of device) when device can perform bkops based on its performance requirements. In general, host would like to enable the device's auto-bkops only when it's not doing any

[PATCH v2 10/12] scsi: ufs: add time profiling support

2016-12-13 Thread Subhash Jadavani
This patch adds the profiling support for some of the time critical operations like hibern8 enter/exit, clock gating & clock scaling. Reviewed-by: Venkat Gopalakrishnan Signed-off-by: Subhash Jadavani --- drivers/scsi/ufs/ufshcd.c | 24

[PATCH v2 07/12] scsi: ufs: add option to change default UFS power management level

2016-12-13 Thread Subhash Jadavani
UFS device and link can be put in multiple different low power modes hence UFS driver supports multiple different low power modes. By default UFS driver selects the default (optimal) low power mode (which gives moderate power savings and have relatively less enter and exit latencies) but we might

[PATCH 3.12 00/38] 3.12.69-stable review

2016-12-13 Thread Jiri Slaby
This is the start of the stable review cycle for the 3.12.69 release. There are 38 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Thu Dec 15 20:52:26 CET 2016. Anything

[PATCH v2 11/12] scsi: ufs: add trace event for ufs commands

2016-12-13 Thread Subhash Jadavani
From: Lee Susman Use the ftrace infrastructure to conditionally trace ufs command events. New trace event is created, which samples the following ufs command data: - device name - optional identification string - task tag - doorbell register - number of transfer bytes - interrupt status register

[PATCH v2 08/12] scsi: ufs: add capability to keep auto bkops always enabled

2016-12-13 Thread Subhash Jadavani
UFS device requires to perform bkops (back ground operations) periodically but host can control (via auto-bkops parameter of device) when device can perform bkops based on its performance requirements. In general, host would like to enable the device's auto-bkops only when it's not doing any

[PATCH v2 10/12] scsi: ufs: add time profiling support

2016-12-13 Thread Subhash Jadavani
This patch adds the profiling support for some of the time critical operations like hibern8 enter/exit, clock gating & clock scaling. Reviewed-by: Venkat Gopalakrishnan Signed-off-by: Subhash Jadavani --- drivers/scsi/ufs/ufshcd.c | 24 include/trace/events/ufs.h | 40

[PATCH] tools: usb: usbip: Update README

2016-12-13 Thread Krzysztof Opasiak
Update README file: - remove outdated parts - clarify terminology and general structure - add some description of vUDC Signed-off-by: Krzysztof Opasiak --- tools/usb/usbip/README | 56 +- 1 file changed, 55 insertions(+), 1

[PATCH v2 09/12] scsi: ufs: fix setting init power mode

2016-12-13 Thread Subhash Jadavani
Immediately after successful UFS link startup, UFS link power mode would be in PWM-G1, 1-lane, SLOW-AUTO mode. But currently we are doing few of the DME local/peer attributes access before setting the "hba->pwr_info" to default power mode. If we are doing link startup as part of error recovery

[PATCH v2 12/12] scsi: ufs: Improve fatal error logs

2016-12-13 Thread Subhash Jadavani
From: Dolev Raviv Errors such as UIC error, illegal OCS values, and others may require more information for debugging. Such information could be hibern8 events, events sequences, recoverable errors, error history, and more. This patch improves tracking of important errors

[PATCH] tools: usb: usbip: Update README

2016-12-13 Thread Krzysztof Opasiak
Update README file: - remove outdated parts - clarify terminology and general structure - add some description of vUDC Signed-off-by: Krzysztof Opasiak --- tools/usb/usbip/README | 56 +- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git

[PATCH v2 09/12] scsi: ufs: fix setting init power mode

2016-12-13 Thread Subhash Jadavani
Immediately after successful UFS link startup, UFS link power mode would be in PWM-G1, 1-lane, SLOW-AUTO mode. But currently we are doing few of the DME local/peer attributes access before setting the "hba->pwr_info" to default power mode. If we are doing link startup as part of error recovery

[PATCH v2 12/12] scsi: ufs: Improve fatal error logs

2016-12-13 Thread Subhash Jadavani
From: Dolev Raviv Errors such as UIC error, illegal OCS values, and others may require more information for debugging. Such information could be hibern8 events, events sequences, recoverable errors, error history, and more. This patch improves tracking of important errors and events in debug

kvm: WARNING in mmu_spte_clear_track_bits

2016-12-13 Thread Dmitry Vyukov
Hello, The following program: https://gist.githubusercontent.com/dvyukov/23d8bd622fd526d7701ac2057bbbc9c2/raw/aacd20451e6f460232f5e1da262b653fb3155613/gistfile1.txt leads to WARNING in mmu_spte_clear_track_bits and later to splash of BUG: Bad page state in process a.out pfn:619b5 On commit

kvm: WARNING in mmu_spte_clear_track_bits

2016-12-13 Thread Dmitry Vyukov
Hello, The following program: https://gist.githubusercontent.com/dvyukov/23d8bd622fd526d7701ac2057bbbc9c2/raw/aacd20451e6f460232f5e1da262b653fb3155613/gistfile1.txt leads to WARNING in mmu_spte_clear_track_bits and later to splash of BUG: Bad page state in process a.out pfn:619b5 On commit

[PATCH v2 03/12] scsi: ufs: fix multiple ufs spec violation

2016-12-13 Thread Subhash Jadavani
From: Dolev Raviv When a command to a W-LU is timed out via scsi, error handling will treat it as any other LU and send commands such as START_STOP with wrong format or task abort. Those commands are illegal for W-LU according to the UFS spec. To solve it, when an error is

[PATCH v2 03/12] scsi: ufs: fix multiple ufs spec violation

2016-12-13 Thread Subhash Jadavani
From: Dolev Raviv When a command to a W-LU is timed out via scsi, error handling will treat it as any other LU and send commands such as START_STOP with wrong format or task abort. Those commands are illegal for W-LU according to the UFS spec. To solve it, when an error is recognized those steps

[PATCH v2 04/12] scsi: ufs: Add sysfs node to dynamically control clock gating

2016-12-13 Thread Subhash Jadavani
From: Sahitya Tummala Provide an option to enable/disable clock gating during runtime. Write 1 or 0 to "clkgate_enable" sysfs node to enable/disable clock gating. Signed-off-by: Sahitya Tummala Signed-off-by: Subhash Jadavani

[PATCH v2 06/12] scsi: ufs: provide sysfs attribute to select the PM level

2016-12-13 Thread Subhash Jadavani
This patch provides the sysfs attribute to choose the power management level for UFS runtime and system suspend. Reviewed-by: Sujit Reddy Thumma Signed-off-by: Subhash Jadavani --- drivers/scsi/ufs/ufshcd.c | 122

[PATCH v2 04/12] scsi: ufs: Add sysfs node to dynamically control clock gating

2016-12-13 Thread Subhash Jadavani
From: Sahitya Tummala Provide an option to enable/disable clock gating during runtime. Write 1 or 0 to "clkgate_enable" sysfs node to enable/disable clock gating. Signed-off-by: Sahitya Tummala Signed-off-by: Subhash Jadavani --- drivers/scsi/ufs/ufshcd.c | 48

[PATCH v2 06/12] scsi: ufs: provide sysfs attribute to select the PM level

2016-12-13 Thread Subhash Jadavani
This patch provides the sysfs attribute to choose the power management level for UFS runtime and system suspend. Reviewed-by: Sujit Reddy Thumma Signed-off-by: Subhash Jadavani --- drivers/scsi/ufs/ufshcd.c | 122 ++ drivers/scsi/ufs/ufshcd.h | 2 +

[PATCH v2 05/12] scsi: ufs: Add sysfs node to dynamically control clock scaling

2016-12-13 Thread Subhash Jadavani
From: Sahitya Tummala Provide an option to enable/disable clock scaling during runtime. Write 1/0 to "clkscale_enable" sysfs node to enable/disable clock scaling. Signed-off-by: Sahitya Tummala Signed-off-by: Subhash Jadavani

[PATCH v2 05/12] scsi: ufs: Add sysfs node to dynamically control clock scaling

2016-12-13 Thread Subhash Jadavani
From: Sahitya Tummala Provide an option to enable/disable clock scaling during runtime. Write 1/0 to "clkscale_enable" sysfs node to enable/disable clock scaling. Signed-off-by: Sahitya Tummala Signed-off-by: Subhash Jadavani --- drivers/scsi/ufs/ufshcd.c | 95

[PATCH v2 02/12] scsi: ufs: add tracing support

2016-12-13 Thread Subhash Jadavani
This change adds the ftrace support for following: 1. UFS initialization time 2. Clock gating states 3. Clock scaling states 4. Power management APIs latency 5. BKOPs enable/disable Usage: echo 1 > /sys/kernel/debug/tracing/events/ufs/enable cat

[PATCH v2 02/12] scsi: ufs: add tracing support

2016-12-13 Thread Subhash Jadavani
This change adds the ftrace support for following: 1. UFS initialization time 2. Clock gating states 3. Clock scaling states 4. Power management APIs latency 5. BKOPs enable/disable Usage: echo 1 > /sys/kernel/debug/tracing/events/ufs/enable cat

Re: [PATCH 4/6] ARM: dts: sun8i: add opp-v2 table for A33

2016-12-13 Thread Maxime Ripard
On Tue, Dec 13, 2016 at 11:22:50PM +0800, Icenowy Zheng wrote: > An operating point table is needed for the cpu frequency adjusting to > work. > > The operating point table is converted from the common value in > extracted script.fex from many A33 board/tablets. > > 1.344GHz is set as a

Re: [PATCH 4/6] ARM: dts: sun8i: add opp-v2 table for A33

2016-12-13 Thread Maxime Ripard
On Tue, Dec 13, 2016 at 11:22:50PM +0800, Icenowy Zheng wrote: > An operating point table is needed for the cpu frequency adjusting to > work. > > The operating point table is converted from the common value in > extracted script.fex from many A33 board/tablets. > > 1.344GHz is set as a

Re: [RFC 1/2] powerpc/32: Unset MSR RI in exception epilogs

2016-12-13 Thread Segher Boessenkool
On Tue, Dec 13, 2016 at 07:19:41PM +0100, Christophe Leroy wrote: > At exception prologs, once SRR0 and SRR1 have been saved, MSR RI is > set to mark the interrupt as recoverable. > > MSR RI has to be unset before writing into SRR0 and SRR1 at exception > epilogs. Why? What goes wrong without

Re: [RFC 1/2] powerpc/32: Unset MSR RI in exception epilogs

2016-12-13 Thread Segher Boessenkool
On Tue, Dec 13, 2016 at 07:19:41PM +0100, Christophe Leroy wrote: > At exception prologs, once SRR0 and SRR1 have been saved, MSR RI is > set to mark the interrupt as recoverable. > > MSR RI has to be unset before writing into SRR0 and SRR1 at exception > epilogs. Why? What goes wrong without

Re: [PATCH 5/6] ARM: dts: sun8i: set cpu-supply in reference tablet DTSI

2016-12-13 Thread Maxime Ripard
On Tue, Dec 13, 2016 at 11:22:51PM +0800, Icenowy Zheng wrote: > All reference design A33 tablets uses DCDC2 of AXP223 as the power > supply of the Cortex-A7 cores. > > Set the cpu-supply in the DTSI of sun8i reference tablets. > > Signed-off-by: Icenowy Zheng Applied, thanks

Re: [inotify] fee1df54b6: BUG_kmalloc-#(Not_tainted):Freepointer_corrupt

2016-12-13 Thread Nikolay Borisov
On 13.12.2016 20:51, Eric W. Biederman wrote: > Nikolay Borisov writes: > >> So this thing resurfaced again and I took a hard look into the code but >> couldn't find anything suspicious. So the allocating and freeing >> contexts leads me to believe it's the 'tbl'

Re: [PATCH 5/6] ARM: dts: sun8i: set cpu-supply in reference tablet DTSI

2016-12-13 Thread Maxime Ripard
On Tue, Dec 13, 2016 at 11:22:51PM +0800, Icenowy Zheng wrote: > All reference design A33 tablets uses DCDC2 of AXP223 as the power > supply of the Cortex-A7 cores. > > Set the cpu-supply in the DTSI of sun8i reference tablets. > > Signed-off-by: Icenowy Zheng Applied, thanks Maxime --

Re: [inotify] fee1df54b6: BUG_kmalloc-#(Not_tainted):Freepointer_corrupt

2016-12-13 Thread Nikolay Borisov
On 13.12.2016 20:51, Eric W. Biederman wrote: > Nikolay Borisov writes: > >> So this thing resurfaced again and I took a hard look into the code but >> couldn't find anything suspicious. So the allocating and freeing >> contexts leads me to believe it's the 'tbl' pointer that is being >>

Fwd: kvmgt-vfio-mdev-for-v4.10 pull request content

2016-12-13 Thread Daniel Vetter
Hi Linus, Below is the gvt pull request from Zhenyu, now that the vfio stuff has landed. I figured no point in passing this all through the various trees especially since Dave is kinda in vacation mode anyway. But I did a local test pull and looked all reasonable to me. Diffstat and summary is

Fwd: kvmgt-vfio-mdev-for-v4.10 pull request content

2016-12-13 Thread Daniel Vetter
Hi Linus, Below is the gvt pull request from Zhenyu, now that the vfio stuff has landed. I figured no point in passing this all through the various trees especially since Dave is kinda in vacation mode anyway. But I did a local test pull and looked all reasonable to me. Diffstat and summary is

Re: [PATCH 2/3] power: supply: bq24735-charger: optionally poll the ac-detect gpio

2016-12-13 Thread Rob Herring
On Mon, Dec 12, 2016 at 12:00:23PM +0100, Peter Rosin wrote: > If the ac-detect gpio does not support interrupts, provide a fallback > to poll the gpio at a configurable interval. > > Signed-off-by: Peter Rosin > --- > .../bindings/power/supply/ti,bq24735.txt | 2 + >

Re: [PATCH 2/3] power: supply: bq24735-charger: optionally poll the ac-detect gpio

2016-12-13 Thread Rob Herring
On Mon, Dec 12, 2016 at 12:00:23PM +0100, Peter Rosin wrote: > If the ac-detect gpio does not support interrupts, provide a fallback > to poll the gpio at a configurable interval. > > Signed-off-by: Peter Rosin > --- > .../bindings/power/supply/ti,bq24735.txt | 2 + >

Re: [RFC][PATCH 5/5] usb: dwc2: Add a quirk to allow speed negotiation for Hisilicon Hi6220

2016-12-13 Thread John Stultz
On Tue, Dec 13, 2016 at 5:24 AM, Alan Stern wrote: > On Mon, 12 Dec 2016, John Stultz wrote: > >> From: Chen Yu >> >> The Hi6220's usb controller is limited in that it does not >> support "Split Transactions", so it does not support communicating

Re: [RFC][PATCH 5/5] usb: dwc2: Add a quirk to allow speed negotiation for Hisilicon Hi6220

2016-12-13 Thread John Stultz
On Tue, Dec 13, 2016 at 5:24 AM, Alan Stern wrote: > On Mon, 12 Dec 2016, John Stultz wrote: > >> From: Chen Yu >> >> The Hi6220's usb controller is limited in that it does not >> support "Split Transactions", so it does not support communicating >> with low-speed and full-speed devices behind a

Re: [PATCH 4.8 00/33] 4.8.15-stable review

2016-12-13 Thread Shuah Khan
On 12/13/2016 10:16 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.8.15 release. > There are 33 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: [PATCH 4.8 00/33] 4.8.15-stable review

2016-12-13 Thread Shuah Khan
On 12/13/2016 10:16 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.8.15 release. > There are 33 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: [PATCH 4.4 00/16] 4.4.39-stable review

2016-12-13 Thread Shuah Khan
On 12/13/2016 10:15 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.39 release. > There are 16 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: [PATCH 4.4 00/16] 4.4.39-stable review

2016-12-13 Thread Shuah Khan
On 12/13/2016 10:15 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.39 release. > There are 16 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

[GIT PULL] arm64 updates for 4.10

2016-12-13 Thread Catalin Marinas
Hi Linus, Please pull the arm64 updates for 4.10 below. The patches touch the generic include/linux/thread_info.h to factor out struct restart_block into a separate include/linux/restart_block.h file (needed for arm64 moving thread_info off stack; acked by Andy Lutomirski). There is also a

[GIT PULL] arm64 updates for 4.10

2016-12-13 Thread Catalin Marinas
Hi Linus, Please pull the arm64 updates for 4.10 below. The patches touch the generic include/linux/thread_info.h to factor out struct restart_block into a separate include/linux/restart_block.h file (needed for arm64 moving thread_info off stack; acked by Andy Lutomirski). There is also a

<    2   3   4   5   6   7   8   9   10   11   >