Re: [PATCH] drivers: cpuidle: Fix checkpatch error and warnings

2017-09-08 Thread gaurav jindal
This patch fixes the below checkpatch errors and warnings in drivers/cpuidle/cpuidle.c WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable #343: FILE: drivers/cpuidle/cpuidle.c:343: +EXPORT_SYMBOL_GPL(cpuidle_pause_and_lock); WARNING: EXPORT_SYMBOL(foo); should

[PATCH 2/2] mxser: remove unused parameters

2017-09-08 Thread Jiri Slaby
Remove * pdev from mxser_initbrd * old_termios from mxser_change_speed as they are unused and update the callers. Signed-off-by: Jiri Slaby --- drivers/tty/mxser.c | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/drivers/tty/mxser.c b/drivers/tty/mxser.c

[PATCH 4.12 37/43] ahci: dont use MSI for devices with the silly Intel NVMe remapping scheme

2017-09-08 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Hellwig commit f723fa4e69920f6a5dd5fa0d10ce90e2f14d189c upstream. Intel AHCI controllers that also hide NVMe devices in their bar can't use MSI interrupts, so disable them.

[PATCH 4.12 18/43] binder: free memory on error

2017-09-08 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Christian Brauner commit 22eb9476b5d80a393ac0ba235c42bccc90b82c76 upstream. On binder_init() the devices string is duplicated and smashed into individual device names which are passed along.

[PATCH 4.12 34/43] drm/nouveau/pci/msi: disable MSI on big-endian platforms by default

2017-09-08 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Ilia Mirkin commit bc60c90f472b6e762ea96ef384072145adc8d4af upstream. It appears that MSI does not work on either G5 PPC nor on a E5500-based platform, where other hardware is reported to

[PATCH 4.12 33/43] s390/mm: fix BUG_ON in crst_table_upgrade

2017-09-08 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Martin Schwidefsky commit 8ab867cb0806a8e195de161fd8883a0578d1d050 upstream. A 31-bit compat process can force a BUG_ON in crst_table_upgrade with specific, invalid mmap calls, e.g.

[PATCH 4.12 31/43] MCB: add support for SC31 to mcb-lpc

2017-09-08 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Michael Moese commit acf5e051ac44d5dc60b21bc4734ef1b844d1 upstream. This patch adds the resources and DMI ID's for the MEN SC31, which uses a different address region to map the LPC bus

[PATCH 4.12 32/43] s390/mm: avoid empty zero pages for KVM guests to avoid postcopy hangs

2017-09-08 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Christian Borntraeger commit fa41ba0d08de7c975c3e94d0067553f9b934221f upstream. Right now there is a potential hang situation for postcopy migrations, if the guest is enabling storage keys on

[PATCH 4.12 28/43] iwlwifi: pci: add new PCI ID for 7265D

2017-09-08 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Luca Coelho commit 3f7a5e13e85026b6e460bbd6e87f87379421d272 upstream. We have a new PCI subsystem ID for 7265D. Add it to the list. Signed-off-by: Luca Coelho Signed-off-by: Greg

[PATCH 4.12 17/43] HID: wacom: Do not completely map WACOM_HID_WD_TOUCHRINGSTATUS usage

2017-09-08 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Jason Gerecke commit 8d411cbf46e515ca2b7ceb3d2b3f43e22813edac upstream. The WACOM_HID_WD_TOUCHRINGSTATUS usage is a single bit which tells us whether the touchring is currently in use or not.

[PATCH 4.12 27/43] Bluetooth: Add support of 13d3:3494 RTL8723BE device

2017-09-08 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Dmitry Tunin commit a81d72d2002d6a932bd83022cbf8c442b1b97512 upstream. T: Bus=02 Lev=01 Prnt=01 Port=03 Cnt=03 Dev#= 4 Spd=12 MxCh= 0 D: Ver= 2.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs=

[PATCH 4.12 09/43] staging/rts5208: fix incorrect shift to extract upper nybble

2017-09-08 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Colin Ian King commit 34ff1bf4920471cff66775dc39537b15c5f0feff upstream. The mask of sns_key_info1 suggests the upper nybble is being extracted however the following shift of 8 bits is too

[PATCH 4.12 07/43] ANDROID: binder: add hwbinder,vndbinder to BINDER_DEVICES.

2017-09-08 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Martijn Coenen commit 9e18d0c82f0c07f2a41898d4adbb698a953403ee upstream. These will be required going forward. Signed-off-by: Martijn Coenen Signed-off-by: Greg Kroah-Hartman ---

[PATCH 4.12 05/43] USB: musb: fix external abort on suspend

2017-09-08 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 082df8be455ade361748f0385aa6c9c8d07be167 upstream. Make sure that the controller is runtime resumed when system suspending to avoid an external abort when accessing the

[PATCH 4.12 03/43] usb: Add device quirk for Logitech HD Pro Webcam C920-C

2017-09-08 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Dmitry Fleytman commit a1279ef74eeeb5f627f091c71d80dd7ac766c99d upstream. Commit e0429362ab15 ("usb: Add device quirk for Logitech HD Pro Webcams C920 and C930e") introduced quirk to

[PATCH 4.12 04/43] usb:xhci:Fix regression when ATI chipsets detected

2017-09-08 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Sandeep Singh commit e6b422b88b46353cf596e0db6dc0e39d50d90d6e upstream. The following commit cause a regression on ATI chipsets. 'commit e788787ef4f9 ("usb:xhci:Add quirk for Certain failing

[PATCH 4.12 15/43] iio: adc: ti-ads1015: add adequate wait time to get correct conversion

2017-09-08 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Akinobu Mita commit 4744d4e2afebf9644a439da9ca73d822fdd67bd9 upstream. This driver assumes that the device is operating in the continuous conversion mode which performs the conversion

[PATCH 4.12 02/43] USB: serial: option: add support for D-Link DWM-157 C1

2017-09-08 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Maciej S. Szmigiero commit 169e86546f5712179709de23cd64bbb15f199fab upstream. This commit adds support (an ID, really) for D-Link DWM-157 hardware version C1 USB modem to option driver.

Re: [PATCH 3/4] [media] sp2: Adjust a jump target in sp2_probe()

2017-09-08 Thread Hans Verkuil
Hi Markus, On 09/01/17 21:44, SF Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 1 Sep 2017 21:08:38 +0200 > > * Adjust a jump target so that a null pointer will not be passed to a call > of the function "kfree". > > * Move this function call into an if branch. > > Signed-off-by:

[PATCH 4.12 13/43] iio: adc: ti-ads1015: avoid getting stale result after runtime resume

2017-09-08 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Akinobu Mita commit 73e3e3fc50de50cfd68e945d85679c983ed31bd9 upstream. This driver assumes that the device is operating in the continuous conversion mode which performs the conversion

[PATCH 4.12 14/43] iio: adc: ti-ads1015: dont return invalid value from buffer setup callbacks

2017-09-08 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Akinobu Mita commit a6fe5e52d5ecfc98530034d6c9db73777cf41ede upstream. pm_runtime_get_sync() and pm_runtime_put_autosuspend() return 0 on success, 1 if the device's runtime PM status was

Re: [PATCH v1 1/4] perf annotate: create a new hists to manage multiple events samples

2017-09-08 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 16, 2017 at 06:18:33PM +0800, Jin Yao escreveu: > An issue is found during using perf annotate. > > perf record -e cycles,branches ... > perf annotate main --stdio > > The result only shows cycles. It should show both cycles and > branches on the left side. It works with "--group",

[PATCH 4.12 12/43] iio: adc: ti-ads1015: enable conversion when CONFIG_PM is not set

2017-09-08 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Akinobu Mita commit e8245c68350104b6022b6783719e843d69ea7c43 upstream. The ADS1015 device have two operating modes, continuous conversion mode and single-shot mode. This driver assumes that

[PATCH 4.13 45/47] of/device: Prevent buffer overflow in of_device_modalias()

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Bjorn Andersson commit 08ab58d9de3eb8498ae0585001d0975e46217a39 upstream. As of_device_get_modalias() returns the number of bytes that would have been written to the target string, regardless

[PATCH 4.13 28/47] drm/vgem: Pin our pages for dmabuf exports

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Chris Wilson commit 71bb23c707c141b176bc084179ca5ee58d5fd26a upstream. When the caller maps their dmabuf and we return an sg_table, the caller doesn't expect the pages beneath that sg_table

[PATCH 4.12 10/43] iio: adc: ti-ads1015: fix incorrect data rate setting update

2017-09-08 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Akinobu Mita commit 0d106b74c558e3000aa0e058b4725cacb70ce77a upstream. The ti-ads1015 driver has eight iio voltage channels and each iio channel can hold own sampling frequency information.

[PATCH 4.13 47/47] rtlwifi: Fix fallback firmware loading

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Sven Joachim commit 1d9b168d8ea9a0f51947d0e2f84856e77d2fe7ff upstream. Commit f70e4df2b384 ("rtlwifi: Add code to read new versions of firmware") added code to load an old firmware file if

[PATCH 4.13 46/47] rtlwifi: Fix memory leak when firmware request fails

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Souptick Joarder commit f2764f61fa10593204b0c5e4e9a68dba02112e50 upstream. This patch will fix memory leak when firmware request fails Signed-off-by: Souptick Joarder Acked-by: Larry Finger

Re: [PATCH] drm/vc4: clean up error handling on devm_kzalloc failure

2017-09-08 Thread Emil Velikov
Hi Colin, On 8 September 2017 at 14:17, Colin King wrote: > From: Colin Ian King > > The current error handling on devm_kzalloc failures performs a non-null > check on connector. Thss check is redundant because connector is null > at that failure point. With this check removed, we may as well

Re: [RFC 1/4] perf ui progress: Add size info into progress bar

2017-09-08 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 08, 2017 at 02:05:06PM +0200, Jiri Olsa escreveu: > hi, > sending some progress bar fixes. Thanks, tested and applied. - Arnaldo

[PATCH 4.13 27/47] ath10k: fix memory leak in rx ring buffer allocation

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Rakesh Pillai commit f35a7f91f66af528b3ee1921de16bea31d347ab0 upstream. The rx ring buffers are added to a hash table if firmware support full rx reorder. If the full rx reorder support flag

[PATCH 4.13 25/47] intel_th: pci: Add Cannon Lake PCH-H support

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Shishkin commit 84331e1390b6378a5129a3678c87a42c6f697d29 upstream. This adds Intel(R) Trace Hub PCI ID for Cannon Lake PCH-H. Signed-off-by: Alexander Shishkin Signed-off-by: Greg

[PATCH 4.13 26/47] intel_th: pci: Add Cannon Lake PCH-LP support

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Shishkin commit efb3669e14fe17d0ec4ecf57d0365039fe726f59 upstream. This adds Intel(R) Trace Hub PCI ID for Cannon Lake PCH-LP. Signed-off-by: Alexander Shishkin Signed-off-by:

[PATCH 4.13 43/47] scsi: sg: protect against races between mmap() and SG_SET_RESERVED_SIZE

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Todd Poynor commit 6a8dadcca81fceff9976e8828cceb072873b7bd5 upstream. Take f_mutex around mmap() processing to protect against races with the SG_SET_RESERVED_SIZE ioctl. Ensure the reserve

Re: [PATCH] selftests: breakpoints: re-order TEST_GEN_PROGS targets

2017-09-08 Thread Shuah Khan
On 09/08/2017 04:32 AM, Thomas Meyer wrote: > On Fri, Sep 08, 2017 at 11:41:21AM +0300, Fathi Boudra wrote: >> Shuah, should I resend? > > Hi, > > I also did send some patches to his kernel.org address after lazy searching > for "Shuah" in my inbox. But maybe his other email address is the

[PATCH 4.13 44/47] scsi: sg: recheck MMAP_IO request length with lock held

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Todd Poynor commit 8d26f491116feaa0b16de370b6a7ba40a40fa0b4 upstream. Commit 1bc0eb044615 ("scsi: sg: protect accesses to 'reserved' page array") adds needed concurrency protection for the

[PATCH 4.13 23/47] thunderbolt: Fix reset response_type

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 02729d17b1b818cc38a6b6319231a0cd86b132e4 upstream. There is a mistake here where we accidentally use sizeof(TB_CFG_PKG_RESET) instead of just TB_CFG_PKG_RESET. The size

Re: [PATCH 33/35] perf bench futex: Fix build on musl + clang

2017-09-08 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 08, 2017 at 10:04:05AM +0200, Jörg Krause escreveu: > On Mon, 2017-03-06 at 16:38 -0300, Arnaldo Carvalho de Melo wrote: > > When building with clang on a musl libc system, Alpine Linux, we end up > > hitting a problem where memset() is used but its prototype is not > > present, add it

[PATCH 4.13 38/47] drm/nouveau/pci/msi: disable MSI on big-endian platforms by default

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Ilia Mirkin commit bc60c90f472b6e762ea96ef384072145adc8d4af upstream. It appears that MSI does not work on either G5 PPC nor on a E5500-based platform, where other hardware is reported to

[PATCH 4.13 37/47] s390/mm: avoid empty zero pages for KVM guests to avoid postcopy hangs

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Christian Borntraeger commit fa41ba0d08de7c975c3e94d0067553f9b934221f upstream. Right now there is a potential hang situation for postcopy migrations, if the guest is enabling storage keys on

[PATCH 4.13 31/47] rtlwifi: rtl_pci_probe: Fix fail path of _rtl_pci_find_adapter

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Malcolm Priestley commit fc81bab5eeb103711925d7510157cf5cd2b153f4 upstream. _rtl_pci_find_adapter fail path will jump to label fail3 for unsupported adapter types. However, on course for

[PATCH 4.13 32/47] Bluetooth: Add support of 13d3:3494 RTL8723BE device

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Dmitry Tunin commit a81d72d2002d6a932bd83022cbf8c442b1b97512 upstream. T: Bus=02 Lev=01 Prnt=01 Port=03 Cnt=03 Dev#= 4 Spd=12 MxCh= 0 D: Ver= 2.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs=

[PATCH 4.13 07/47] ANDROID: binder: add hwbinder,vndbinder to BINDER_DEVICES.

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Martijn Coenen commit 9e18d0c82f0c07f2a41898d4adbb698a953403ee upstream. These will be required going forward. Signed-off-by: Martijn Coenen Signed-off-by: Greg Kroah-Hartman ---

[PATCH 4.13 08/47] USB: core: Avoid race of async_completed() w/ usbdev_release()

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Douglas Anderson commit ed62ca2f4f51c17841ea39d98c0c409cb53a3e10 upstream. While running reboot tests w/ a specific set of USB devices (and slub_debug enabled), I found that once every few

[PATCH 4.13 06/47] ANDROID: binder: add padding to binder_fd_array_object.

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Martijn Coenen commit 5cdcf4c6a638591ec0e98c57404a19e7f9997567 upstream. binder_fd_array_object starts with a 4-byte header, followed by a few fields that are 8 bytes when

Re: [PATCH net-next 2/3] net: ethernet: socionext: add AVE ethernet driver

2017-09-08 Thread Andrew Lunn
> +static int ave_mdio_busywait(struct net_device *ndev) > +{ > + int ret = 1, loop = 100; > + u32 mdiosr; > + > + /* wait until completion */ > + while (1) { > + mdiosr = ave_r32(ndev, AVE_MDIOSR); > + if (!(mdiosr & AVE_MDIOSR_STS)) > +

[PATCH 4.13 05/47] USB: musb: fix external abort on suspend

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit 082df8be455ade361748f0385aa6c9c8d07be167 upstream. Make sure that the controller is runtime resumed when system suspending to avoid an external abort when accessing the

[PATCH 4.13 03/47] usb: Add device quirk for Logitech HD Pro Webcam C920-C

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Dmitry Fleytman commit a1279ef74eeeb5f627f091c71d80dd7ac766c99d upstream. Commit e0429362ab15 ("usb: Add device quirk for Logitech HD Pro Webcams C920 and C930e") introduced quirk to

[PATCH 4.13 02/47] USB: serial: option: add support for D-Link DWM-157 C1

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Maciej S. Szmigiero commit 169e86546f5712179709de23cd64bbb15f199fab upstream. This commit adds support (an ID, really) for D-Link DWM-157 hardware version C1 USB modem to option driver.

[PATCH] fix null pointer dereferences with a null driver_adapter

2017-09-08 Thread Colin King
From: Colin Ian King The call to _rtl_dbg_trace via macro HALMAC_RT_TRACE will trigger a null pointer deference on a null driver_adapter. Fix this by assigning driver_adapter earlier to halmac_adapter->driver_adapter before the tracing call so that a non-null driver_adapter is passed instead.

Re: [PATCH] selftests: breakpoints: re-order TEST_GEN_PROGS targets

2017-09-08 Thread Shuah Khan
On 09/08/2017 02:41 AM, Fathi Boudra wrote: > Shuah, should I resend? No need to resend. Sorry about this.I just missed it. I will get this into 4.14-rc2 or so. Thanks for the ping. -- Shuah > > On 29 June 2017 at 12:39, Fathi Boudra wrote: >> breakpoint_test can fail on arm64 with

[PATCH 4.13 20/47] binder: free memory on error

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Christian Brauner commit 22eb9476b5d80a393ac0ba235c42bccc90b82c76 upstream. On binder_init() the devices string is duplicated and smashed into individual device names which are passed along.

[PATCH 4.13 17/47] iio: adc: ti-ads1015: add adequate wait time to get correct conversion

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Akinobu Mita commit 4744d4e2afebf9644a439da9ca73d822fdd67bd9 upstream. This driver assumes that the device is operating in the continuous conversion mode which performs the conversion

[PATCH 4.13 16/47] iio: adc: ti-ads1015: dont return invalid value from buffer setup callbacks

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Akinobu Mita commit a6fe5e52d5ecfc98530034d6c9db73777cf41ede upstream. pm_runtime_get_sync() and pm_runtime_put_autosuspend() return 0 on success, 1 if the device's runtime PM status was

[PATCH 4.13 15/47] iio: adc: ti-ads1015: avoid getting stale result after runtime resume

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Akinobu Mita commit 73e3e3fc50de50cfd68e945d85679c983ed31bd9 upstream. This driver assumes that the device is operating in the continuous conversion mode which performs the conversion

Re: [RFC Part2 PATCH v3 02/26] crypto: ccp: Add Platform Security Processor (PSP) device support

2017-09-08 Thread Brijesh Singh
On 09/08/2017 03:40 AM, Borislav Petkov wrote: On Thu, Sep 07, 2017 at 05:19:32PM -0500, Brijesh Singh wrote: At high level, AMD-SP (AMD Secure Processor) (i.e CCP driver) will provide the support for CCP, SEV and TEE FW commands. +--- CCP | AMD-SP --| |

Re: [PATCH] fix null pointer dereferences with a null driver_adapter

2017-09-08 Thread Colin Ian King
On 08/09/17 14:52, Colin King wrote: > From: Colin Ian King > > The call to _rtl_dbg_trace via macro HALMAC_RT_TRACE will trigger a null > pointer deference on a null driver_adapter. Fix this by assigning > driver_adapter earlier to halmac_adapter->driver_adapter before the tracing > call so

[PATCH][V2] staging: r8822be: fix null pointer dereferences with a null driver_adapter

2017-09-08 Thread Colin King
From: Colin Ian King The call to _rtl_dbg_trace via macro HALMAC_RT_TRACE will trigger a null pointer deference on a null driver_adapter. Fix this by assigning driver_adapter earlier to halmac_adapter->driver_adapter before the tracing call so that a non-null driver_adapter is passed instead.

[PATCH 4.13 13/47] iio: adc: ti-ads1015: fix scale information for ADS1115

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Akinobu Mita commit 8d0e8e795623bd6229cf48bba1c456c370ed upstream. The ti-ads1015 driver supports ADS1015 and ADS1115 devices. The same scale information is used for both devices in this

[PATCH 4.13 01/47] usb: quirks: add delay init quirk for Corsair Strafe RGB keyboard

2017-09-08 Thread Greg Kroah-Hartman
4.13-stable review patch. If anyone has any objections, please let me know. -- From: Kai-Heng Feng commit de3af5bf259d7a0bfaac70441c8568ab5998d80c upstream. Corsair Strafe RGB keyboard has trouble to initialize: [ 1.679455] usb 3-6: new full-speed USB device number 4 using

Re: [PATCH net-next 3/3] net: phy: realtek: add RTL8201F phy-id and functions

2017-09-08 Thread Andrew Lunn
On Fri, Sep 08, 2017 at 10:02:11PM +0900, Kunihiko Hayashi wrote: > From: Jassi Brar > > Add RTL8201F phy-id and the related functions to the driver. > > The original patch is as follows: > https://patchwork.kernel.org/patch/2538341/ > > Signed-off-by: Jongsung Kim > Signed-off-by: Jassi Brar

Re: [PATCH V2] thermal/drivers/step_wise: Fix temperature regulation misbehavior

2017-09-08 Thread Daniel Lezcano
On 08/09/2017 14:25, Keerthy wrote: > [ ... ] > This definitely is an issue i have seen on dra7 and if step_wise by > design can accommodate this change, It will fix the issue! Ah, ok. I understood you thought we should not do the change and use the DT crit trip instead. > Then you should be

Re: [PATCH v5 10/10] net: stmmac: dwmac-sun8i: Handle integrated/external MDIOs

2017-09-08 Thread Andrew Lunn
> > > +static int mdio_mux_syscon_switch_fn(int current_child, int > > > desired_child, > > > + void *data) > > > +{ > > > + struct stmmac_priv *priv = data; > > > + struct sunxi_priv_data *gmac = priv->plat->bsp_priv; > > > + u32 reg, val; > > > + int ret = 0; > > >

Re: [PATCH net-next v2 01/10] net: dsa: add debugfs interface

2017-09-08 Thread Vivien Didelot
Hi Greg, Greg KH writes: > I agree you shouldn't be using debugfs for this, but in the future, if > you do write debugfs code, please take the following review into > account: Humm sorry I may not have given enough details. This was really meant for debug and dev only, because DSA makes it

Re: [PATCH v2] tracing: Ignore mmiotrace from kernel commandline

2017-09-08 Thread Ziqian SUN (Zamir)
Hi Steve, Is this solution acceptable? Any suggestions? Thanks. - Original Message - > From: "Ziqian SUN (Zamir)" > > The mmiotrace tracer cannot be enabled with ftrace=mmiotrace in > kernel commandline. With this patch, a trace_noboot_tracer_list > is implemented and will be checked

Re: [PATCH net-next 1/3] dt-bindings: net: add DT bindings for Socionext UniPhier AVE

2017-09-08 Thread Andrew Lunn
> + eth: ethernet@6500 { > + compatible = "socionext,uniphier-ave4"; > + reg = <0x6500 0x8500>; > + interrupts = <0 66 4>; > + pinctrl-names = "default"; > + pinctrl-0 = <_ether_rgmii>; > + phy-mode = "rgmii"; > +

[PATCH][V2] drm/vc4: clean up error handling on devm_kzalloc failure

2017-09-08 Thread Colin King
From: Colin Ian King The current error handling when devm_kzalloc fails performs a non-null check on connector which is redundant because connector is null at that failure point. Once this is removed, make the failure path into a trivial -ENOMEM return to clean up the error handling. Also

Re: [PATCH v5 10/10] net: stmmac: dwmac-sun8i: Handle integrated/external MDIOs

2017-09-08 Thread Corentin Labbe
On Fri, Sep 08, 2017 at 04:00:20PM +0200, Andrew Lunn wrote: > > > > +static int mdio_mux_syscon_switch_fn(int current_child, int > > > > desired_child, > > > > +void *data) > > > > +{ > > > > + struct stmmac_priv *priv = data; > > > > + struct

[PATCH] Staging: media: omap4iss: Use WARN_ON() instead of BUG_ON().

2017-09-08 Thread Srishti Sharma
Use WARN_ON() instead of BUG_ON() to avoid crashing the kernel. Signed-off-by: Srishti Sharma --- drivers/staging/media/omap4iss/iss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/omap4iss/iss.c b/drivers/staging/media/omap4iss/iss.c index

[GIT PULL] tracing: Updates for 4.14

2017-09-08 Thread Steven Rostedt
Linus, Nothing new in development for this release. These are mostly fixes that were found during development of changes for the next merge window and fixes that were sent to me late in the last cycle. Please pull the latest trace-v4.14 tree, which can be found at:

Re: [Outreachy kernel] [PATCH] Staging: media: omap4iss: Use WARN_ON() instead of BUG_ON().

2017-09-08 Thread Julia Lawall
On Fri, 8 Sep 2017, Srishti Sharma wrote: > Use WARN_ON() instead of BUG_ON() to avoid crashing the kernel. > > Signed-off-by: Srishti Sharma > --- > drivers/staging/media/omap4iss/iss.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH RFC 02/10] perf tools: using scandir to replace readdir

2017-09-08 Thread Arnaldo Carvalho de Melo
Em Thu, Sep 07, 2017 at 10:55:46AM -0700, kan.li...@intel.com escreveu: > From: Kan Liang > > For perf_event__synthesize_threads, perf goes through all proc files > serially by readdir. > scandir did a snapshoot of proc, which is multithreading friendly. > > It's possible that some threads

Re: [PATCH v2] ARM: dts: Add initial Pistachio i.mx6q board support.

2017-09-08 Thread Fabio Estevam
On Fri, Sep 8, 2017 at 2:14 AM, Wig Cheng wrote: > From: YuanCheng Cheng > > Working items: > > - 800/433 MHz (CPU/DDR3) > - 2GB of RAM (DDR3) > - 4GB of NAND FLASH > - 1T1R WiFi 2.4 GHz > - Power management support > - 1x 10/100/1000 Mbps Ethernet WAN port > - 2x USB 2.0 Host > - PCIe > -

Re: [PATCH RFC] Update documentation for KSZ DSA drivers so that new drivers can be added

2017-09-08 Thread Andrew Lunn
On Fri, Sep 08, 2017 at 04:32:35PM +0300, Maxim Uvarov wrote: > 2017-09-08 0:54 GMT+03:00 Andrew Lunn : > >> -- compatible: For external switch chips, compatible string must be > >> exactly one > >> - of: "microchip,ksz9477" > >> +- compatible: Should be "microchip,ksz9477" for KSZ9477 chip, >

Re: [PATCH] iommu/dma: limit the IOVA allocated to dma-ranges region

2017-09-08 Thread Robin Murphy
On 05/09/17 18:35, Krishna Reddy wrote: > Robin, >>> Why? IOVA allocation is already constrained as much as it should be - if >>> the device's DMA mask is wrong that's another problem, and this isn't the >>> right place to fix it. > > This is because of following reasons. > 1. Many of the HW

[PATCH] drm/amdkfd: check for null dev to avoid a null pointer dereference

2017-09-08 Thread Colin King
From: Colin Ian King The call to kfd_device_by_id can potentially return null, so check that dev is null and return with -EINVAL to avoid a null pointer dereference. Detected by CoverityScan CID#1454629 ("Dereference null return value") Fixes: 5d71dbc3a588 ("drm/amdkfd: Implement image tiling

[PATCH V3] thermal/drivers/step_wise: Fix temperature regulation misbehavior

2017-09-08 Thread Daniel Lezcano
There is a particular situation when the cooling device is cpufreq and the heat dissipation is not efficient enough where the temperature increases little by little until reaching the critical threshold and leading to a SoC reset. The behavior is reproducible on a hikey6220 with bad heat

Re: [Outreachy kernel] [PATCH] Staging: media: omap4iss: Use WARN_ON() instead of BUG_ON().

2017-09-08 Thread Srishti Sharma
On Fri, Sep 8, 2017 at 7:40 PM, Julia Lawall wrote: > > > On Fri, 8 Sep 2017, Srishti Sharma wrote: > >> Use WARN_ON() instead of BUG_ON() to avoid crashing the kernel. >> >> Signed-off-by: Srishti Sharma >> --- >> drivers/staging/media/omap4iss/iss.c | 2 +- >> 1 file changed, 1 insertion(+),

Re: [PATCH v5 10/10] net: stmmac: dwmac-sun8i: Handle integrated/external MDIOs

2017-09-08 Thread Andrew Lunn
> > Do you know why the reset times out/fails? > > > > Because there are nothing connected to it. That should not be an issue. A read should just return 0x. And it should return 0x fast. The timing of the MDIO protocol is fixed. A read or a write takes a fixed number of cycles,

Re: [PATCH] net: bonding: Fix transmit load balancing in balance-alb mode if specified by sysfs

2017-09-08 Thread Kosuke Tatsukawa
Hi, > On 08/09/17 13:10, Nikolay Aleksandrov wrote: >> On 08/09/17 05:06, Kosuke Tatsukawa wrote: >>> Hi, >>> On 7.09.2017 01:47, Kosuke Tatsukawa wrote: > Commit cbf5ecb30560 ("net: bonding: Fix transmit load balancing in > balance-alb mode") tried to fix transmit dynamic load

Re: [PATCH v2 25/40] tracing: Add support for dynamic tracepoints

2017-09-08 Thread Tom Zanussi
Hi Steve, On Thu, 2017-09-07 at 18:02 -0400, Steven Rostedt wrote: > On Tue, 5 Sep 2017 16:57:37 -0500 > Tom Zanussi wrote: > > > The tracepoint infrastructure assumes statically-defined tracepoints > > and uses static_keys for tracepoint enablement. In order to define > > tracepoints on the

Re: [PATCH RFC 01/10] perf tools: hashtable for machine threads

2017-09-08 Thread Arnaldo Carvalho de Melo
Em Thu, Sep 07, 2017 at 10:55:45AM -0700, kan.li...@intel.com escreveu: > From: Kan Liang > > To process any events, it needs to find the thread in the machine first. > The machine maintains a rb tree to store all threads. The rb tree is > protected by a rw lock. > It is not a problem for

Re: [PATCH net-next v2 02/10] net: dsa: debugfs: add tree

2017-09-08 Thread Vivien Didelot
Hi Greg, Can I ask for a quick review of this patch as well? It's the one adding the boilerplate for a single debugfs file, and I'm pretty sure it can be reduced somehow. Also more important, you will notice what seems to be a bug to me: I can read or write a file even if I didn't mask the

Re: [PATCH] block: tolerate tracing of NULL bio

2017-09-08 Thread Jens Axboe
On 09/07/2017 06:36 PM, Greg Thelen wrote: > __get_request() can call trace_block_getrq() with bio=NULL which causes > block_get_rq::TP_fast_assign() to deref a NULL pointer and panic. > > Syzkaller fuzzer panics with > linux-next (1d53d908b79d7870d89063062584eead4cf83448): > kasan: GPF could

Re: [PATCH] drm/vc4: clean up error handling on devm_kzalloc failure

2017-09-08 Thread Eric Engestrom
On Friday, 2017-09-08 14:17:04 +0100, Colin King wrote: > From: Colin Ian King > > The current error handling on devm_kzalloc failures performs a non-null > check on connector. Thss check is redundant because connector is null > at that failure point. With this check removed, we may as well

RE: [PATCH v2] tpm-dev-common: Reject too short writes

2017-09-08 Thread Alexander.Steffen
> On Wed, Sep 06, 2017 at 02:19:28PM +, > alexander.stef...@infineon.com wrote: > > > On Wed, Sep 06, 2017 at 03:42:33PM +0300, Jarkko Sakkinen wrote: > > > > On Mon, Sep 04, 2017 at 07:36:42PM +0200, Alexander Steffen wrote: > > > > > tpm_transmit() does not offer an explicit interface to

[PATCH v6] staging: pi433: Fixes minor typo errors

2017-09-08 Thread Harsha Sharma
Fixes checkpatch warning -- "occured" and "succesfully" are misspelled Signed-off-by: Harsha Sharma --- Changes in v6: -Added changes from other versions Changes in v5: -Signed-off properly with correct author name in .gitconfig Changes in v4: -Correct the format of the subject. -Signed-off

Re: [PATCH RFC 06/10] perf tools: lock to protect comm_str rb tree

2017-09-08 Thread Arnaldo Carvalho de Melo
Em Thu, Sep 07, 2017 at 10:55:50AM -0700, kan.li...@intel.com escreveu: > From: Kan Liang > > Add comm_str_lock to protect comm_str rb tree. > > Signed-off-by: Kan Liang > --- > tools/perf/util/comm.c | 18 ++ > 1 file changed, 14 insertions(+), 4 deletions(-) > > diff --git

Re: [PATCH v11 4/6] target-arm: kvm64: detect guest RAS EXTENSION feature

2017-09-08 Thread gengdongjiu
Hi Peter, Sorry for my late response. > > On 18 August 2017 at 15:23, Dongjiu Geng wrote: > > check if kvm supports guest RAS EXTENSION. if so, set corresponding > > feature bit for vcpu. > > > > Signed-off-by: Dongjiu Geng > > --- > > linux-headers/linux/kvm.h | 1 + > > target/arm/cpu.h

Re: [PATCH v5 10/10] net: stmmac: dwmac-sun8i: Handle integrated/external MDIOs

2017-09-08 Thread Corentin Labbe
On Fri, Sep 08, 2017 at 04:17:36PM +0200, Andrew Lunn wrote: > > > Do you know why the reset times out/fails? > > > > > > > Because there are nothing connected to it. > > That should not be an issue. A read should just return 0x. And it > should return 0x fast. The timing of the MDIO

Re: [PATCH v2] tracing: Ignore mmiotrace from kernel commandline

2017-09-08 Thread Steven Rostedt
On Fri, 8 Sep 2017 10:02:04 -0400 (EDT) "Ziqian SUN (Zamir)" wrote: > Hi Steve, > > Is this solution acceptable? Any suggestions? > Sorry this patch got buried in other email. I'll take a look at it now. -- Steve

Re: [PATCH v2 27/40] tracing: Add support for 'synthetic' events

2017-09-08 Thread Tom Zanussi
On Thu, 2017-09-07 at 19:40 -0400, Steven Rostedt wrote: > On Tue, 5 Sep 2017 16:57:39 -0500 > Tom Zanussi wrote: > > > > +static int synth_field_string_size(char *type) > > +{ > > + char buf[4], *end, *start; > > + unsigned int len; > > + int size, err; > > + > > + start =

Re: [PATCH] net: bonding: Fix transmit load balancing in balance-alb mode if specified by sysfs

2017-09-08 Thread Nikolay Aleksandrov
On 08/09/17 17:17, Kosuke Tatsukawa wrote: > Hi, > >> On 08/09/17 13:10, Nikolay Aleksandrov wrote: >>> On 08/09/17 05:06, Kosuke Tatsukawa wrote: Hi, > On 7.09.2017 01:47, Kosuke Tatsukawa wrote: >> Commit cbf5ecb30560 ("net: bonding: Fix transmit load balancing in >>

[GIT PULL] First batch of KVM changes for v4.14

2017-09-08 Thread Radim Krčmář
Linus, there is going to be a simple merge conflict between ea2800ddb20d ("kvm/x86: Avoid clearing the C-bit in rsvd_bits()") and d6321d493319 ("KVM: x86: generalize guest_cpuid_has_ helpers"). It should be resolved as in next and I've also pasted the resolution at the bottom. Outside of kvm

Re: [PATCH v5 1/3] perf config: Check not only section->from_system_config but also item's

2017-09-08 Thread Arnaldo Carvalho de Melo
Em Thu, Sep 07, 2017 at 12:18:45PM +0900, Taeung Song escreveu: > Currently only section->from_system_config is being checked multiple times. > items->from_system_config should be also checked, so fix it. Reworded the cset log as: perf config: Check not only section->from_system_config but

Re: [PATCH v5 2/3] perf config: Once write a config file in the end, not a repeat

2017-09-08 Thread Arnaldo Carvalho de Melo
Em Thu, Sep 07, 2017 at 12:18:51PM +0900, Taeung Song escreveu: > Currently set_config() can be repeatedly called for each > input config on the below case: > > $ perf config kmem.default=slab report.children=false ... > > But it's a waste, so only once write a config file > gathering all

[PATCH v5] usb: serial: add vid:pid for Cypress WICED dev board

2017-09-08 Thread Jeffrey Chu
Add CYPRESS_VID vid and CYPRESS_WICED_BT_USB and CYPRESS_WICED_WL_USB device IDs to ftdi_sio driver Signed-off-by: Jeffrey Chu --- drivers/usb/serial/ftdi_sio.c | 2 ++ drivers/usb/serial/ftdi_sio_ids.h | 7 +++ 2 files changed, 9 insertions(+) diff --git

Re: [PATCH 1/3] kthread: add a mechanism to store cgroup info

2017-09-08 Thread Tejun Heo
Hello, On Wed, Sep 06, 2017 at 07:00:51PM -0700, Shaohua Li wrote: > +#ifdef CONFIG_CGROUPS > +void kthread_set_orig_css(struct cgroup_subsys_state *css); > +struct cgroup_subsys_state *kthread_get_orig_css(void); > +void kthread_reset_orig_css(void); * It's a bit weird to associate a kthread

[PATCH] staging: typec: tcpm: Comparison to NULL changed as "!port->partner_altmode[pmdata->altmodes]"

2017-09-08 Thread Harsha Sharma
Fixes coding style issue Signed-off-by: Harsha Sharma --- drivers/staging/typec/tcpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/typec/tcpm.c b/drivers/staging/typec/tcpm.c index 630fe75..9f4a5a5 100644 --- a/drivers/staging/typec/tcpm.c +++

Re: [PATCH v5 3/3] perf config: Allow creating empty config set for config file autogeneration

2017-09-08 Thread Arnaldo Carvalho de Melo
Em Thu, Sep 07, 2017 at 12:18:56PM +0900, Taeung Song escreveu: > When there isn't a config file (e.g. ~/.perfconfig) > or it has nothing, the config set wasn't created. > If the config set not exists, a config file can't be autogenerated. > > So allow creating a empty config set in the above

<    7   8   9   10   11   12   13   14   15   16   >