[PATCH 0/4] Add DesignWare EP support

2018-05-14 Thread Gustavo Pimentel
The PCIe controller dual mode is capable of operating in RC mode as well as EP mode by configuration option. Till now only RC mode was supported, with this patch is add EP support to the DesignWare driver. Gustavo Pimentel (4): bindings: PCI: designware: Example update PCI: dwc: Add support fo

[PATCH 1/4] bindings: PCI: designware: Example update

2018-05-14 Thread Gustavo Pimentel
Replace "ctrlreg" reg-name by "dbi" to be coherent with similar drivers, however it still be compatible with any previous DT that uses the old reg-name. Replace the PCIe base address example by a real PCIe base address in use. Signed-off-by: Gustavo Pimentel Reviewed-by: Rob Herring --- Docume

Re: [PATCH 4.4 24/72] audit: add tty field to LOGIN event

2018-05-14 Thread Ben Hutchings
On Fri, 2018-04-06 at 15:23 +0200, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Richard Guy Briggs > > commit db0a6fb5d97afe01fd9c47d37c6daa82d4d4001d upstream. [...] > --- a/kernel/auditsc.c > +++ b/ker

[PATCH 2/4] PCI: dwc: Add support for EP mode

2018-05-14 Thread Gustavo Pimentel
The PCIe controller dual mode is capable of operating in RC mode as well as EP mode by configuration option. Till now only RC mode was supported, with this patch is add EP support to the DesignWare driver. Add new property on pci_epc structure which allow to configure pci_epf_test driver according

Re: [PATCH 3.18 00/23] 3.18.109-stable review

2018-05-14 Thread Guenter Roeck
On Mon, May 14, 2018 at 08:48:29AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 3.18.109 release. > There are 23 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 kno

[patch v20 4/4] Documentation: jtag: Add ABI documentation

2018-05-14 Thread Oleksandr Shamray
Added document that describe the ABI for JTAG class drivrer Signed-off-by: Oleksandr Shamray Acked-by: Arnd Bergmann --- v19->v20 Comments pointed by Randy Dunlap - Fix JTAG doccumentation v18->v19 Pavel Machek - Added JTAG doccumentation to Documentation/jtag v17->v18 v16->v17 v15->v16 v14-

Re: [PATCH 4.4 00/56] 4.4.132-stable review

2018-05-14 Thread Guenter Roeck
On Mon, May 14, 2018 at 08:48:05AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.132 release. > There are 56 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

[patch v20 3/4] Documentation: jtag: Add bindings for Aspeed SoC 24xx and 25xx families JTAG master driver

2018-05-14 Thread Oleksandr Shamray
It has been tested on Mellanox system with BMC equipped with Aspeed 2520 SoC for programming CPLD devices. Signed-off-by: Oleksandr Shamray Signed-off-by: Jiri Pirko Acked-by: Rob Herring --- v19->v20 v18->v19 v17->v18 v16->v17 v15->v16 Comments pointed by Joel Stanley - change clocks = <&clk_

[patch v20 0/4] JTAG driver introduction

2018-05-14 Thread Oleksandr Shamray
When a need raise up to use JTAG interface for system's devices programming or CPU debugging, usually the user layer application implements jtag protocol by bit-bang or using a proprietary connection to vendor hardware. This method can be slow and not generic. We propose to implement general JTA

[patch v20 1/4] drivers: jtag: Add JTAG core driver

2018-05-14 Thread Oleksandr Shamray
Initial patch for JTAG driver JTAG class driver provide infrastructure to support hardware/software JTAG platform drivers. It provide user layer API interface for flashing and debugging external devices which equipped with JTAG interface using standard transactions. Driver exposes set of IOCTL to

[PATCH] dmaengine: qcom: bam_dma: check if the runtime pm enabled

2018-05-14 Thread Srinivas Kandagatla
Disabling pm runtime at probe is not sufficient to get BAM working on remotely controller instances. pm_runtime_get_sync() would return -EACCES in such cases. So check if runtime pm is enabled before returning error from bam functions. Fixes: 5b4a68952a89 ("dmaengine: qcom: bam_dma: disable runtim

[patch v20 2/4] drivers: jtag: Add Aspeed SoC 24xx and 25xx families JTAG master driver

2018-05-14 Thread Oleksandr Shamray
Driver adds support of Aspeed 2500/2400 series SOC JTAG master controller. Driver implements the following jtag ops: - freq_get; - freq_set; - status_get; - idle; - xfer; It has been tested on Mellanox system with BMC equipped with Aspeed 2520 SoC for programming CPLD devices. Signed-off-by: Ole

Re: [PATCH 4.9 00/36] 4.9.100-stable review

2018-05-14 Thread Guenter Roeck
On Mon, May 14, 2018 at 08:48:34AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.100 release. > There are 36 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

Re: [PATCH 4.14 00/62] 4.14.41-stable review

2018-05-14 Thread Guenter Roeck
On Mon, May 14, 2018 at 08:48:16AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.41 release. > There are 62 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

Re: [PATCH RFC v2 3/5] KVM: nVMX: add enlightened VMCS state

2018-05-14 Thread Paolo Bonzini
On 11/05/2018 15:37, Vitaly Kuznetsov wrote: > - if (enable_shadow_vmcs) > - to_vmx(vcpu)->nested.sync_shadow_vmcs = true; > + > + if (vmx->nested.hv_evmcs) > + vmx->nested.sync_enlightened_vmcs = true; > + else if (enable_shadow_vmcs) > + vmx->nested

Re: [PATCH 05/14] net: sched: always take reference to action

2018-05-14 Thread Jiri Pirko
Mon, May 14, 2018 at 04:27:06PM CEST, vla...@mellanox.com wrote: >Without rtnl lock protection it is no longer safe to use pointer to tc >action without holding reference to it. (it can be destroyed concurrently) > >Remove unsafe action idr lookup function. Instead of it, implement safe tcf >idr ch

Re: [PATCH 2/4] PCI: dwc: Add support for EP mode

2018-05-14 Thread Joao Pinto
Às 5:17 PM de 5/14/2018, Gustavo Pimentel escreveu: > The PCIe controller dual mode is capable of operating in RC mode as well > as EP mode by configuration option. Till now only RC mode was supported, > with this patch is add EP support to the DesignWare driver. > > Add new property on pci_epc st

Re: Clang arm64 build is broken

2018-05-14 Thread Nick Desaulniers
On Fri, Apr 20, 2018 at 7:59 AM Andrey Konovalov wrote: > On Fri, Apr 20, 2018 at 10:13 AM, Marc Zyngier wrote: > >> The issue is that > >> clang doesn't know about the "S" asm constraint. I reported this to > >> clang [2], and hopefully this will get fixed. In the meantime, would > >> it possibl

Re: [PATCH] gpu: drm: vgem: Change return type to vm_fault_t

2018-05-14 Thread Daniel Vetter
On Thu, May 10, 2018 at 02:51:38PM -0400, Sean Paul wrote: > On Thu, May 10, 2018 at 07:58:11PM +0530, Souptick Joarder wrote: > > Hi Sean, > > > > On Mon, Apr 16, 2018 at 8:32 PM, Souptick Joarder > > wrote: > > > Use new return type vm_fault_t for fault handler. > > > > > > Signed-off-by: Soup

Re: [PATCH v2] device property: Get rid of union aliasing

2018-05-14 Thread Lukas Wunner
On Mon, May 14, 2018 at 07:13:24PM +0300, Andy Shevchenko wrote: > On Mon, 2018-05-14 at 17:40 +0200, Lukas Wunner wrote: > > On Mon, May 14, 2018 at 03:48:09PM +0300, Andy Shevchenko wrote: > > > On Mon, 2018-05-14 at 14:18 +0200, Lukas Wunner wrote: > > > > On Tue, May 08, 2018 at 04:15:47PM +030

Re: [PATCH 4.16 00/72] 4.16.9-stable review

2018-05-14 Thread Guenter Roeck
On Mon, May 14, 2018 at 08:48:17AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.16.9 release. > There are 72 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.

Re: PROBLEM: mce: [Hardware Error] from dmesg -l emerg

2018-05-14 Thread Borislav Petkov
On Mon, May 14, 2018 at 09:19:11PM +0530, Jeffrin Thalakkottoor wrote: > hello, > > output related of "sudo dmesg -l emerg" from my laptop... > > ---> > $sudo dmesg -l emerg > [sudo] password for jeff

Re: [PATCH v2 26/26] drm/bridge: establish a link between the bridge supplier and consumer

2018-05-14 Thread Daniel Vetter
On Fri, May 11, 2018 at 09:37:47AM +0200, Peter Rosin wrote: > On 2018-05-10 10:10, Andrzej Hajda wrote: > > On 04.05.2018 15:52, Peter Rosin wrote: > >> If the bridge supplier is unbound, this will bring the bridge consumer > >> down along with the bridge. Thus, there will no longer linger any > >

Re: [PATCH 06/14] net: sched: implement reference counted action release

2018-05-14 Thread Jiri Pirko
Mon, May 14, 2018 at 04:27:07PM CEST, vla...@mellanox.com wrote: >Implement helper function to delete action using new action ops delete >function implemented by each action for lockless execution. Reading this sentense for 4 times. I still don't understand what you say :( > >Implement action put

Re: [PATCH 6/6] vfs: change inode times to use struct timespec64

2018-05-14 Thread Kees Cook
On Sun, May 13, 2018 at 9:05 PM, Deepa Dinamani wrote: > Kees mentioned that he wants to merge a patch to pstore that changes > it to use timespec64 internally for 4.17: > https://lkml.org/lkml/2018/5/13/3 I'm still working on a v2 for pstore. What is the correct cross-architecture format string

Re: [PATCH 03/14] net: sched: add 'delete' function to action ops

2018-05-14 Thread Jiri Pirko
Mon, May 14, 2018 at 05:12:22PM CEST, j...@resnulli.us wrote: >Mon, May 14, 2018 at 04:27:04PM CEST, vla...@mellanox.com wrote: >>Extend action ops with 'delete' function. Each action type to implement its >>own delete function that doesn't depend on rtnl lock. >> >>Signed-off-by: Vlad Buslov >>--

Re: [PATCH 10/23] LSM: Infrastructure management of the inode security

2018-05-14 Thread Casey Schaufler
On 5/14/2018 8:04 AM, Stephen Smalley wrote: > On 05/10/2018 08:53 PM, Casey Schaufler wrote: >> From: Casey Schaufler >> Date: Thu, 10 May 2018 14:23:27 -0700 >> Subject: [PATCH 10/23] LSM: Infrastructure management of the inode security >> blob >> >> Move management of the inode->i_security blo

Re: [PATCH 3/3] sched/fair: schedutil: explicit update only when required

2018-05-14 Thread Patrick Bellasi
On 12-May 23:25, Joel Fernandes wrote: > On Sat, May 12, 2018 at 11:04:43PM -0700, Joel Fernandes wrote: > > On Thu, May 10, 2018 at 04:05:53PM +0100, Patrick Bellasi wrote: > > > Schedutil updates for FAIR tasks are triggered implicitly each time a > > > cfs_rq's utilization is updated via cfs_rq_

Re: [PATCH 1/3] sched/cpufreq: always consider blocked FAIR utilization

2018-05-14 Thread Patrick Bellasi
On 14-May 11:18, Vincent Guittot wrote: > On 11 May 2018 at 11:12, Patrick Bellasi wrote: > > >> > >> Do we need a Fixes tag and Cc stable ? > > > > Mmm... no sure, I would say that's not a fix. > > > > As I say in the changelog above, 8f111bc357aa was doing the correct > > thing but, since the r

Re: [PATCH -next 0/2] ipc/shm: shmat() fixes around nil-page

2018-05-14 Thread Davidlohr Bueso
On Thu, 10 May 2018, Vlastimil Babka wrote: Can you add appropriate Fixes: tags if possible? I guess patch 1 is clear, dunno about patch 2... Right, patch 1 would still benefit from Fixes tag. As to patch 2, the bug as been there since forever (pre-dates git history). But yeah, as both come to

Re: MMC performance degradation due to too many requests

2018-05-14 Thread Tony Lindgren
* Faiz Abbas [180514 11:31]: > Hi Everyone, > > I am debugging a performance degradation issue in some SD cards which > happened around 4.13 kernel on TI's AM335x-evm. > > I compare the time taken for a simple dd command (after dropping > caches) to run between kernel versions 4.13 and 4.14. I s

Re: [PATCH V2] mlx4_core: allocate ICM memory in page size chunks

2018-05-14 Thread Qing Huang
On 5/13/2018 2:00 AM, Tariq Toukan wrote: On 11/05/2018 10:23 PM, Qing Huang wrote: When a system is under memory presure (high usage with fragments), the original 256KB ICM chunk allocations will likely trigger kernel memory management to enter slow path doing memory compact/migration ops i

Re: [PATCH 03/21] clk: sunxi-ng: Enable DE2_CCU for Allwinner 64-bit SoCs

2018-05-14 Thread Chen-Yu Tsai
On Mon, May 14, 2018 at 1:20 AM, Jagan Teki wrote: > On Tue, May 1, 2018 at 9:53 PM, Chen-Yu Tsai wrote: >> On Mon, Apr 30, 2018 at 7:40 PM, Jagan Teki >> wrote: >>> Allwinner 64-bit SoC like H5/A64 has DE2 CCU so enable them >>> as default. >>> >>> Signed-off-by: Jagan Teki >>> --- >>> drive

Re: [PATCH 06/14] net: sched: implement reference counted action release

2018-05-14 Thread Jiri Pirko
Mon, May 14, 2018 at 04:27:07PM CEST, vla...@mellanox.com wrote: [...] >+static int tcf_action_del_1(struct net *net, char *kind, u32 index, >+ struct netlink_ext_ack *extack) >+{ >+ const struct tc_action_ops *ops; >+ int err = -EINVAL; >+ >+ ops = tc_loo

Re: [PATCH v2 1/3] sched/cpufreq: always consider blocked FAIR utilization

2018-05-14 Thread Patrick Bellasi
On 14-May 11:16, Vincent Guittot wrote: > Hi Patrick, Hi Vincent, > On 11 May 2018 at 15:15, Patrick Bellasi wrote: > > Since the refactoring introduced by: > > > >commit 8f111bc357aa ("cpufreq/schedutil: Rewrite CPUFREQ_RT support") > > > > we aggregate FAIR utilization only if this class

Re: [PATCH] thermal: exynos: Reduce severity of too early temperature read

2018-05-14 Thread Bartlomiej Zolnierkiewicz
On Sunday, May 13, 2018 07:54:02 PM Krzysztof Kozlowski wrote: > Thermal core tries to read temperature during sensor registering in > thermal_zone_of_sensor_register(). In that time Exynos TMU driver and > hardware are not yet initialized. Commit 0eb875d88aaa ("thermal: > exynos: Reading tempera

Re: PROBLEM: mce: [Hardware Error] from dmesg -l emerg

2018-05-14 Thread Luck, Tony
On Mon, May 14, 2018 at 06:27:52PM +0200, Borislav Petkov wrote: > On Mon, May 14, 2018 at 09:19:11PM +0530, Jeffrin Thalakkottoor wrote: > > hello, > > > > output related of "sudo dmesg -l emerg" from my laptop... > > > > -

Re: [PATCH 4.16 41/72] mtd: rawnand: Make sure we wait tWB before polling the STATUS reg

2018-05-14 Thread Greg Kroah-Hartman
On Mon, May 14, 2018 at 11:04:22AM +0200, Greg Kroah-Hartman wrote: > On Mon, May 14, 2018 at 09:32:51AM +0200, Geert Uytterhoeven wrote: > > On Mon, May 14, 2018 at 8:48 AM, Greg Kroah-Hartman > > wrote: > > > 4.16-stable review patch. If anyone has any objections, please let me > > > know. > >

Re: [PATCH 3/3] arm64: dts: renesas: draak: Describe HDMI input

2018-05-14 Thread Laurent Pinchart
Hi Niklas, On Monday, 14 May 2018 12:49:00 EEST Niklas Söderlund wrote: > On 2018-05-14 05:49:41 +0300, Laurent Pinchart wrote: > > [snip] > > >>> +&vin4 { > >>> + pinctrl-0 = <&vin4_pins>; > >>> + pinctrl-names = "default"; > >>> + > >>> + status = "okay"; > >>> + > >>> + ports { > >>> +

Re: [PATCH 4.16 00/72] 4.16.9-stable review

2018-05-14 Thread Greg Kroah-Hartman
On Mon, May 14, 2018 at 09:27:58AM -0700, Guenter Roeck wrote: > On Mon, May 14, 2018 at 08:48:17AM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.16.9 release. > > There are 72 patches in this series, all will be posted as a response > > to this one. I

Re: [PATCH 20/23] LSM: Move common usercopy into

2018-05-14 Thread Stephen Smalley
On 05/14/2018 11:12 AM, Stephen Smalley wrote: > On 05/10/2018 08:55 PM, Casey Schaufler wrote: >> From: Casey Schaufler >> Date: Thu, 10 May 2018 15:54:25 -0700 >> Subject: [PATCH 20/23] LSM: Move common usercopy into >> security_getpeersec_stream >> >> The modules implementing hook for getpeers

[ANNOUNCE] 4.14.40-rt30

2018-05-14 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 4.14.40-rt30 stable release. This release is just an update to the new stable 4.14.40 version and no RT specific changes have been made. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt

Re: [PATCH v3 0/1] multi-threading device shutdown

2018-05-14 Thread Pavel Tatashin
On 05/14/2018 11:03 AM, Greg KH wrote: > On Mon, May 07, 2018 at 11:54:01AM -0400, Pavel Tatashin wrote: >> Changelog >> v2 - v3 >> - Fixed warning from kbuild test. >> - Moved device_lock/device_unlock inside device_shutdown_tree(). >> >> v1 - v2 >> - It turns out we cannot lock mor

Re: [PATCH v3 6/6] tty/serial: atmel: changed the driver to work under at91-usart mfd

2018-05-14 Thread Andy Shevchenko
On Mon, May 14, 2018 at 1:57 PM, Richard Genoud wrote: > On 11/05/2018 12:38, Radu Pirea wrote: >> This patch modifies the place where resources and device tree properties >> are searched. > I think it may be simpler with something like: > + int size = mfd_pdev->resource[0].end - mfd_pdev-

Re: [PATCH V1 2/5] backlight: qcom-wled: Add support for WLED4 peripheral

2018-05-14 Thread Pavel Machek
Hi! > WLED4 peripheral is present on some PMICs like pmi8998 > and pm660l. It has a different register map and also > configurations are different. Add support for it. > > Signed-off-by: Kiran Gunda > --- > .../bindings/leds/backlight/qcom-wled.txt | 172 - > drivers/video/backligh

Re: [PATCH v4 2/2] leds: Add Spreadtrum SC27xx breathing light controller driver

2018-05-14 Thread Pavel Machek
On Mon 2018-05-14 14:34:51, Baolin Wang wrote: > This patch adds Spreadtrum SC27xx PMIC series breathing light controller > driver, which can support 3 LEDs. Each LED can work at normal PWM mode > and breathing mode. > > Signed-off-by: Xiaotong Lu > Signed-off-by: Baolin Wang ACK.

Re: [ANNOUNCE] Kconfiglib menuconfig implementation

2018-05-14 Thread Pavel Machek
Hi! > > config CAN_PEAK_PCIEFD > > depends on PCI > > tristate "PEAK-System PCAN-PCIe FD cards" > > ---help--- > > This driver adds support for the PEAK-System PCI Express FD > > CAN-FD cards family. > > These 1x or 2x CAN-FD channels cards off

Re: [PATCH 03/21] i2c: algo: pcf: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Andy Shevchenko
On Mon, May 14, 2018 at 5:53 PM, Peter Rosin wrote: > Because it looks neater. > drivers/i2c/algos/i2c-algo-pcf.c | 5 + I guess for such trivial no functional change patches you may do them one per folder, and not one-per driver. -- With Best Regards, Andy Shevchenko

Re: [PATCH 00/21] i2c: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
On 2018-05-14 18:11, Joe Perches wrote: > On Mon, 2018-05-14 at 16:53 +0200, Peter Rosin wrote: >> Hi! >> >> The nice little inline i2c_8bit_addr_from_msg is not getting >> enough use. This series improves the situation and drops a >> bunch of lines in the process. > > Perhaps the inline should te

Re: [PATCH V1 5/5] backlight: qcom-wled: Add auto string detection logic

2018-05-14 Thread Bjorn Andersson
On Wed 09 May 00:14 PDT 2018, kgu...@codeaurora.org wrote: > On 2018-05-07 23:40, Bjorn Andersson wrote: > > On Thu 03 May 02:57 PDT 2018, Kiran Gunda wrote: > > > > [..] > > > + > > > +#define WLED_AUTO_DETECT_OVP_COUNT 5 > > > +#define WLED_AUTO_DETECT_CNT_DLY_US HZ /

Re: [PATCH 3/3] arm64: dts: renesas: draak: Describe HDMI input

2018-05-14 Thread Laurent Pinchart
Hi Niklas, On Monday, 14 May 2018 13:23:26 EEST Niklas Söderlund wrote: > On 2018-05-14 09:39:34 +0200, Jacopo Mondi wrote: > > On Sun, May 13, 2018 at 02:57:55PM +0200, Niklas Söderlund wrote: > >> On 2018-05-11 12:00:02 +0200, Jacopo Mondi wrote: > >>> Describe HDMI input connected to VIN4 inter

Re: [PATCH 03/21] i2c: algo: pcf: make use of i2c_8bit_addr_from_msg

2018-05-14 Thread Peter Rosin
On 2018-05-14 18:59, Andy Shevchenko wrote: > On Mon, May 14, 2018 at 5:53 PM, Peter Rosin wrote: >> Because it looks neater. > >> drivers/i2c/algos/i2c-algo-pcf.c | 5 + > > I guess for such trivial no functional change patches you may do them > one per folder, and not one-per driver. Righ

Re: [PATCH v2 1/2] dt-bindings/display/bridge: sii902x: add optional power supplies

2018-05-14 Thread Laurent Pinchart
Hi Philippe, On Monday, 14 May 2018 12:22:16 EEST Philippe CORNU wrote: > On 04/26/2018 12:05 AM, Laurent Pinchart wrote: > > On Wednesday, 25 April 2018 20:11:23 EEST Rob Herring wrote: > >> On Wed, Apr 25, 2018 at 04:17:25PM +0300, Laurent Pinchart wrote: > >>> On Wednesday, 25 April 2018 15:20:

Re: [PATCH v2 1/7] bitops: Introduce the for_each_set_port_word macro

2018-05-14 Thread Andy Shevchenko
On Mon, May 14, 2018 at 4:04 PM, William Breathitt Gray wrote: > On Sun, May 13, 2018 at 06:06:42PM +0300, Andy Shevchenko wrote: >>On Tue, May 8, 2018 at 4:26 PM, William Breathitt Gray >> wrote: >>> This macro iterates for each group of bits (port word) with set bits, >>> within a bitmap memory

Re: [PATCH 13/18] kernel: add kcompat_sys_{f,}statfs64()

2018-05-14 Thread Mark Rutland
On Mon, May 14, 2018 at 10:46:35AM +0100, Mark Rutland wrote: > Using this helper allows us to avoid the in-kernel calls to the > compat_sys_{f,}statfs64() sycalls, as are necessary for parameter > mangling in arm64's compat handling. > > Following the example of ksys_* functions, kcompat_sys_* fu

[RFC PATCH 00/11] prctl: Modernise wiring for optional prctl() calls

2018-05-14 Thread Dave Martin
[Reviewer note: this is a cross-arch series. To reduce spam, I have tried not to Cc people on patches they aren't likely to care about. The complete series can be found in the LKML or linux-arch archives.] The core framework for the prctl() syscall is unloved and looking rather crusty these days.

Re: linux-next: Tree for May 14

2018-05-14 Thread Andy Shevchenko
On Mon, May 14, 2018 at 3:40 PM, Stephen Rothwell wrote: > On Mon, 14 May 2018 10:26:07 +0300 Andy Shevchenko > wrote: > BTW, the drivers-x86 tree I have is > > https://github.com/dvhart/linux-pdx86.git#for-next > > and the contact is Darren Hart. Is that expected? That URL was temporary work

[RFC PATCH 08/11] ia64: Remove unused task argument from prctl functions

2018-05-14 Thread Dave Martin
Some ia64-specific prctl backends take a task argument that is redundant, since the only thing ever passed is "current". This patch gets rid of the redundant arguments. No functional change. Signed-off-by: Dave Martin Cc: Tony Luck Cc: Fenghua Yu --- arch/ia64/include/asm/processor.h | 8 +++

[RFC PATCH 10/11] prctl: Remove redundant task argument from PR_{SET,GET}_UNALIGN backends

2018-05-14 Thread Dave Martin
Architecture backends for the PT_SET_UNALIGN and PR_GET_UNALIGN prctl() calls take a task argument that is redundant, since the only thing ever passed is "current". This patch gets rid of the redundant arguments. No functional change. Signed-off-by: Dave Martin Cc: Kees Cook Cc: Andrew Morton

[RFC PATCH 11/11] prctl: Refactor PR_{SET,GET}_UNALIGN to reduce boilerplate

2018-05-14 Thread Dave Martin
The PR_SET_UNALIGN and PR_GET_UNALIGN prctl() calls are implemented by five architectures today, but there is some irregularity and duplication in the way they are implemented. This patch moves the common put_user() operation to common code, since the user pointer type is the same in all cases. B

[PATCH] i2c: xiic: fix spelling mistake: "unexpexted" -> "unexpected"

2018-05-14 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistakes in dev_dbg messages Signed-off-by: Colin Ian King --- drivers/i2c/busses/i2c-xiic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c index c80527816ad0..92

[RFC PATCH 07/11] powerpc: Move arch-specific prctls out of core code

2018-05-14 Thread Dave Martin
This patch moves the powerpc-specific prctl call implementations out of core code and removes redundant boilerplate associated with them. No functional change. Signed-off-by: Dave Martin Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman --- arch/powerpc/Kconfig

Re: [PATCH v3] selftests: add headers_install to lib.mk

2018-05-14 Thread Paolo Bonzini
On 14/05/2018 13:58, Anders Roxell wrote: > If the kernel headers aren't installed we can't build all the tests. > Add a new make target rule 'khdr' in the file lib.mk to generate the > kernel headers and that gets include for every test-dir Makefile that > includes lib.mk If the testdir in turn ha

[RFC PATCH 09/11] ia64: Move arch-specific prctls out of core code

2018-05-14 Thread Dave Martin
This patch moves the ia64-specific prctl call implementations out of core code and removes redundant boilerplate associated with them. No functional change. Signed-off-by: Dave Martin Cc: Tony Luck Cc: Fenghua Yu --- arch/ia64/Kconfig | 1 + arch/ia64/include/asm/processor.h

Re: [PATCH BUGFIX] block, bfq: postpone rq preparation to insert or merge

2018-05-14 Thread Paolo Valente
> Il giorno 10 mag 2018, alle ore 18:14, Bart Van Assche > ha scritto: > > On Fri, 2018-05-04 at 19:17 +0200, Paolo Valente wrote: >> When invoked for an I/O request rq, [ ... ] > > Tested-by: Bart Van Assche > > > Any decision for this fix, Jens? Thanks, Paolo

[RFC PATCH 05/11] x86: Move arch-specific prctls out of core code

2018-05-14 Thread Dave Martin
This patch moves the x86-specific prctl call implementations out of core code and removes redundant boilerplate associated with them. No functional change. Signed-off-by: Dave Martin Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x...@kernel.org --- arch/x86/Kconfig

[RFC PATCH 03/11] MIPS: Remove unused task argument from prctl functions

2018-05-14 Thread Dave Martin
Some MIPS-specific prctl backends take a task argument that is redundant, since the only thing ever passed is "current". This patch gets rid of the redundant arguments. No functional change. Signed-off-by: Dave Martin Cc: Ralf Baechle Cc: James Hogan --- arch/mips/include/asm/processor.h |

[RFC PATCH 06/11] powerpc: Remove unused task argument from prctl functions

2018-05-14 Thread Dave Martin
Some powerpc-specific prctl backends take a task argument that is redundant, since the only thing ever passed is "current". This patch gets rid of the redundant arguments. No functional change. Signed-off-by: Dave Martin Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael Ellerman ---

[RFC PATCH 01/11] prctl: Support movement of arch prctls out of common code

2018-05-14 Thread Dave Martin
The core framework for the prctl() syscall is unloved and looking rather crusty these days. It also relies on defining ancillary boilerplate macros for each prctl() in order to control conditional compilation of the different prctl calls. We have better ways to do this now, using Kconfig. This p

Re: [PATCH v2] i2c: i801: fix unused-function warning

2018-05-14 Thread Andy Shevchenko
On Mon, May 14, 2018 at 12:33 PM, Anders Roxell wrote: > With CONFIG_PM, we get a harmless build warning: > drivers/i2c/busses/i2c-i801.c:1723:12: warning: ‘i801_resume’ defined but not > used [-Wunused-function] > static int i801_resume(struct device *dev) > ^~~ > drivers/i2

[RFC PATCH 04/11] MIPS: Move arch-specific prctls out of core code

2018-05-14 Thread Dave Martin
This patch moves the MIPS-specific prctl call implementations out of core code and removes redundant boilerplate associated with them. No functional change. Signed-off-by: Dave Martin Cc: Ralf Baechle Cc: James Hogan --- arch/mips/Kconfig | 1 + arch/mips/include/asm/processo

[RFC PATCH 02/11] arm64: Move arch-specific prctls out of core code

2018-05-14 Thread Dave Martin
This patch moves the arm64-specific prctl call implementations out of core code and removes redundant boilerplate associated with them. No functional change. Signed-off-by: Dave Martin Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/pr

[PATCH v2] coresight: documentation: update sysfs section

2018-05-14 Thread Kim Phillips
- Align and show updated ls devices output from the TC2, based on current driver - Provide an example from an ETMv4 based system (Juno) - Reflect changes to the way the RAM write pointer is accessed since it got changed in commit 7d83d17795ef ("coresight: tmc: adding sysFS management entrie

Re: [PATCH RFC 2/8] rcu: Clarify usage of cond_resched for tasks-RCU

2018-05-14 Thread Paul E. McKenney
On Mon, May 14, 2018 at 10:54:54AM -0400, Steven Rostedt wrote: > On Sun, 13 May 2018 20:15:35 -0700 > "Joel Fernandes (Google)" wrote: > > > Recently we had a discussion about cond_resched unconditionally > > recording a voluntary context switch [1]. > > > > Lets add a comment clarifying that h

[PATCH v7 2/2] iommu/amd: Add basic debugfs infrastructure for AMD IOMMU

2018-05-14 Thread Gary R Hook
Implement a skeleton framework for debugfs support in the AMD IOMMU. Signed-off-by: Gary R Hook --- drivers/iommu/Makefile|5 + drivers/iommu/amd_iommu_debugfs.c | 39 + drivers/iommu/amd_iommu_init.c|6 -- drivers/iommu/amd_i

[PATCH v7 0/2] Base enablement of IOMMU debugfs support

2018-05-14 Thread Gary R Hook
These patches create a top-level function, called at IOMMU initialization, to create a debugfs directory for the IOMMU. Under this directory drivers may create and populate-specific directories for their device internals. Patch 1: general IOMMU enablement Patch 2: basic AMD enablement to demonstra

[PATCH v7 1/2] iommu - Enable debugfs exposure of IOMMU driver internals

2018-05-14 Thread Gary R Hook
Provide base enablement for using debugfs to expose internal data of an IOMMU driver. When called, create the /sys/kernel/debug/iommu directory. Emit a strong warning at boot time to indicate that this feature is enabled. This function is called from iommu_init, and creates the initial DebugFS di

Re: serial: custom baud rate

2018-05-14 Thread Andy Shevchenko
On Thu, May 3, 2018 at 8:54 PM, Theodore Y. Ts'o wrote: > On Thu, May 03, 2018 at 06:09:13PM +0530, Muni Sekhar wrote: > See the setserial man page:t > > https://linux.die.net/man/8/setserial > > Not all serial devices support the spd_cust and divisor, however. In > general Oh, please,

[PATCH] KVM: fix spelling mistake: "cop_unsuable" -> "cop_unusable"

2018-05-14 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in debugfs_entries text Signed-off-by: Colin Ian King --- arch/mips/kvm/mips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/kvm/mips.c b/arch/mips/kvm/mips.c index 2549fdd27ee1..0f725e9cee8f 100644 --- a/arch

Re: CONFIG_KCOV causing crash in svm_vcpu_run()

2018-05-14 Thread Eric Biggers
On Mon, May 14, 2018 at 07:14:41AM +0200, Dmitry Vyukov wrote: > On Mon, May 14, 2018 at 5:02 AM, Eric Biggers wrote: > > Sorry, messed up address for KVM mailing list. See message below. > > > > On Sun, May 13, 2018 at 08:00:07PM -0700, Eric Biggers wrote: > >> With CONFIG_KCOV=y and an AMD proc

Re: [PATCH 6/6] vfs: change inode times to use struct timespec64

2018-05-14 Thread Deepa Dinamani
On Mon, May 14, 2018 at 9:30 AM, Kees Cook wrote: > On Sun, May 13, 2018 at 9:05 PM, Deepa Dinamani > wrote: >> Kees mentioned that he wants to merge a patch to pstore that changes >> it to use timespec64 internally for 4.17: >> https://lkml.org/lkml/2018/5/13/3 > > I'm still working on a v2 for

RE: media: uvcvideo: Support realtek's UVC 1.5 device

2018-05-14 Thread Josef Šimánek
> The length of UVC 1.5 video control is 48, and it id 34 for UVC 1.1. > Change it to 48 for UVC 1.5 device, > and the UVC 1.5 device can be recognized. > > More changes to the driver are needed for full UVC 1.5 compatibility. > However, at least the UVC 1.5 Realtek RTS5847/RTS5852 cameras have >

[PATCH] mm: Add new vma flag VM_LOCAL_CPU

2018-05-14 Thread Boaz Harrosh
On a call to mmap an mmap provider (like an FS) can put this flag on vma->vm_flags. The VM_LOCAL_CPU flag tells the Kernel that the vma will be used from a single-core only, and therefore invalidation (flush_tlb) of PTE(s) need not be a wide CPU scheduling. The motivation of this flag is the ZUF

Re: [PATCH BUGFIX] block, bfq: postpone rq preparation to insert or merge

2018-05-14 Thread Jens Axboe
On 5/14/18 11:16 AM, Paolo Valente wrote: > > >> Il giorno 10 mag 2018, alle ore 18:14, Bart Van Assche >> ha scritto: >> >> On Fri, 2018-05-04 at 19:17 +0200, Paolo Valente wrote: >>> When invoked for an I/O request rq, [ ... ] >> >> Tested-by: Bart Van Assche >> >> >> > > Any decision for t

Re: [PATCH 0/7] psi: pressure stall information for CPU, memory, and IO

2018-05-14 Thread Bart Van Assche
On 05/14/18 08:39, Christopher Lameter wrote: On Mon, 7 May 2018, Johannes Weiner wrote: What to make of this number? If CPU utilization is at 100% and CPU pressure is 0, it means the system is perfectly utilized, with one runnable thread per CPU and nobody waiting. At two or more runnable tasks

Re: [PATCH RFC 1/8] rcu: Add comment documenting how rcu_seq_snap works

2018-05-14 Thread Paul E. McKenney
On Sun, May 13, 2018 at 08:15:34PM -0700, Joel Fernandes (Google) wrote: > rcu_seq_snap may be tricky for someone looking at it for the first time. > Lets document how it works with an example to make it easier. > > Signed-off-by: Joel Fernandes (Google) > --- > kernel/rcu/rcu.h | 24 +++

Re: [PATCH BUGFIX] block, bfq: postpone rq preparation to insert or merge

2018-05-14 Thread Paolo Valente
> Il giorno 14 mag 2018, alle ore 19:31, Jens Axboe ha > scritto: > > On 5/14/18 11:16 AM, Paolo Valente wrote: >> >> >>> Il giorno 10 mag 2018, alle ore 18:14, Bart Van Assche >>> ha scritto: >>> >>> On Fri, 2018-05-04 at 19:17 +0200, Paolo Valente wrote: When invoked for an I/O req

Re: [PATCH v3 5/6] spi: at91-usart: add driver for at91-usart as spi

2018-05-14 Thread Andy Shevchenko
First of all, do not remove mailing lists from Cc and people if you are not sure they do not need your stuff. On Mon, May 14, 2018 at 11:11 AM, Radu Pirea wrote: > On Sun, 2018-05-13 at 16:33 +0300, Andy Shevchenko wrote: >> On Fri, May 11, 2018 at 1:38 PM, Radu Pirea > > wrote: >> > +static voi

Re: media: uvcvideo: Support realtek's UVC 1.5 device

2018-05-14 Thread Josef Šimánek
I'm really sorry, but this message was originally meant to be sent (and was already also sent) to linux-media. Please ignore here. 2018-05-14 19:28 GMT+02:00 Josef Šimánek : > > > The length of UVC 1.5 video control is 48, and it id 34 for UVC 1.1. > > Change it to 48 for UVC 1.5 device, > > and t

Re: [PATCH 4.4 49/72] media: usbtv: prevent double free in error case

2018-05-14 Thread Ben Hutchings
On Fri, 2018-04-06 at 15:23 +0200, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me know. > > -- > > From: Oliver Neukum > > commit 50e7044535537b2a54c7ab798cd34c7f6d900bd2 upstream. [...] > --- a/drivers/media/usb/usbtv/usbtv-cor

Re: [PATCH] thermal: qcom: tsens: Allow number of sensors to come from DT

2018-05-14 Thread Bjorn Andersson
On Mon 14 May 07:45 PDT 2018, Amit Kucheria wrote: > On Tue, May 8, 2018 at 2:53 AM, Bjorn Andersson > wrote: > > For platforms that has multiple copies of the TSENS hardware block it's > > necessary to be able to specify the number of sensors per block in > > DeviceTree. > > I assume you want

Re: [PATCH net-next v8 0/3] kernel: add support to collect hardware logs in crash recovery kernel

2018-05-14 Thread David Miller
From: ebied...@xmission.com (Eric W. Biederman) Date: Mon, 14 May 2018 08:11:24 -0500 > David Miller writes: > >> I'm deferring this patch series. >> >> If we can't get a reasonable review from an interested party in 10+ >> days, that is not reasonable. >> >> Resubmit this once someone reviews i

Re: [PATCH v7 2/2] iommu/amd: Add basic debugfs infrastructure for AMD IOMMU

2018-05-14 Thread Randy Dunlap
On 05/14/2018 10:20 AM, Gary R Hook wrote: > Implement a skeleton framework for debugfs support in the > AMD IOMMU. > > Signed-off-by: Gary R Hook > --- > drivers/iommu/Makefile|5 + > drivers/iommu/amd_iommu_debugfs.c | 39 > + > driver

Re: [PATCH 6/6] vfs: change inode times to use struct timespec64

2018-05-14 Thread Kees Cook
On Mon, May 14, 2018 at 10:25 AM, Deepa Dinamani wrote: > On Mon, May 14, 2018 at 9:30 AM, Kees Cook wrote: >> On Sun, May 13, 2018 at 9:05 PM, Deepa Dinamani >> wrote: >>> Kees mentioned that he wants to merge a patch to pstore that changes >>> it to use timespec64 internally for 4.17: >>> htt

Re: use memcpy_mcsafe() for copy_to_iter() (was: Re: [PATCH v3 0/9] Series short description)

2018-05-14 Thread Andy Lutomirski
> On May 14, 2018, at 8:52 AM, Dan Williams wrote: > > > I think "happy" is a strong word when it comes to x86 machine check > handling. My interpretation is that he and Andy acquiesced that this > is about the best we can do with dax+mce as things stand today. Agreed. I think it’s plausibl

Re: [PATCH v5 2/2] mtd: rawnand: use bit-wise majority to recover the contents of ONFI parameter

2018-05-14 Thread Andy Shevchenko
On Thu, May 10, 2018 at 3:03 PM, Boris Brezillon wrote: >> +#define GET_BIT(bit, val) (((val) >> (bit)) & 0x01) > > Not sure we need that macro, see below. +1. We have too many nice helpers for bit manipulations (for_each_set_bit() as an example). > for (k = 0; k < nb

Re: [PATCH RFC 01/19] kallsyms: Simplify update_iter_mod()

2018-05-14 Thread Arnaldo Carvalho de Melo
Em Thu, May 10, 2018 at 05:02:18PM +, Hunter, Adrian escreveu: > > -Original Message- > > From: Jiri Olsa [mailto:jo...@redhat.com] > > Sent: Thursday, May 10, 2018 4:02 PM > > To: Hunter, Adrian > > Cc: Thomas Gleixner ; Arnaldo Carvalho de Melo > > ; Ingo Molnar ; Peter Zijlstra > >

Re: [PATCH RFC 4/8] rcu: Get rid of old c variable from places in tree RCU

2018-05-14 Thread Paul E. McKenney
On Sun, May 13, 2018 at 08:15:37PM -0700, Joel Fernandes (Google) wrote: > The 'c' variable was used previously to store the grace period > that is being requested. However it is not very meaningful for > a code reader, this patch replaces it with gp_seq_start indicating that Good catch, but how a

Re: [PATCH RFC 5/8] rcu: Use rcu_node as temporary variable in funnel locking loop

2018-05-14 Thread Paul E. McKenney
On Sun, May 13, 2018 at 08:15:38PM -0700, Joel Fernandes (Google) wrote: > The funnel locking loop in rcu_start_this_gp uses rcu_root as a > temporary variable while walking the combining tree. This causes a > tiresome exercise of a code reader reminding themselves that rcu_root > may not be root.

Re: possible deadlock in sk_diag_fill

2018-05-14 Thread Andrei Vagin
On Sat, May 12, 2018 at 09:46:25AM +0200, Dmitry Vyukov wrote: > On Fri, May 11, 2018 at 8:33 PM, Andrei Vagin wrote: > > On Sat, May 05, 2018 at 10:59:02AM -0700, syzbot wrote: > >> Hello, > >> > >> syzbot found the following crash on: > >> > >> HEAD commit:c1c07416cdd4 Merge tag 'kbuild-fixe

<    5   6   7   8   9   10   11   12   13   14   >