Re: [RFC PATCH] vring: Force use of DMA API for ARM-based systems

2017-01-09 Thread Michael S. Tsirkin
On Mon, Jan 09, 2017 at 11:24:04AM +, Robin Murphy wrote: > On 06/01/17 21:51, Andy Lutomirski wrote: > > On Fri, Jan 6, 2017 at 10:32 AM, Robin Murphy wrote: > >> On 06/01/17 17:48, Jean-Philippe Brucker wrote: > >>> Hi Will, > >>> > >>> On 20/12/16 15:14, Will Deacon wrote: > Booting Li

[PATCH 2/2] hwmon/tmp401: Fix some checkstyle warnings

2017-01-09 Thread jeroen.de_wachter.ext
From: Jeroen De Wachter Signed-off-by: Jeroen De Wachter --- drivers/hwmon/tmp401.c | 66 +- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/drivers/hwmon/tmp401.c b/drivers/hwmon/tmp401.c index 88b17e4..853056d 100644 --- a/driver

Re: [PATCH] serial: 8250_lpss: Unconditionally set PCI master for Quark

2017-01-09 Thread Jan Kiszka
On 2017-01-05 22:54, Andy Shevchenko wrote: > On Wed, Jan 4, 2017 at 10:48 PM, Jan Kiszka wrote: >> MSI needs it as well. >> >> Should have no practical impact, though, as DMA is always available on >> the Quark. But given the few users of pci_alloc_irq_vectors so far, this >> incorrect pattern ma

[PATCH 1/2] hwmon/tmp401: use smb word operations instead of 2 smb byte operations

2017-01-09 Thread jeroen.de_wachter.ext
From: Jeroen De Wachter tmp401 separately read/wrote high and low bytes of temperature values while the hardware supports reading/writing those values in one operation. Driver has been modified to use word operations where possible. Tested with a tmp432 sensor on a mips64 platform. Signed-off-b

Re: [PATCH v2 6/6] arm64: allwinner: a64: Increase the MMC max frequency

2017-01-09 Thread Chen-Yu Tsai
On Tue, Jan 10, 2017 at 12:46 AM, Maxime Ripard wrote: > All the controllers can have a maximum frequency of 200MHz. > > Since older SoCs cannot go that high, we cannot change the default maximum > frequency, but fortunately for us we have a property for that in the DT. > > This also has the side

Re: [Cocci] [PATCH] coccicheck: add a test for repeat copy_from_user

2017-01-09 Thread Vaishali Thakkar
On Tuesday 27 December 2016 11:51 PM, Julia Lawall wrote: I totally dropped the ball on this. Many thanks to Vaishali for resurrecting it. Some changes are suggested below. On Tue, 26 Apr 2016, Kees Cook wrote: This is usually a sign of a resized request. This adds a check for potential race

net/ipv6: use-after-free in sock_wfree

2017-01-09 Thread Andrey Konovalov
Hi! I've got the following error report while running the syzkaller fuzzer. On commit a121103c922847ba5010819a3f250f1f7fc84ab8 (4.10-rc3). A reproducer is attached. == BUG: KASAN: use-after-free in sock_wfree+0x118/0x120 Read of si

Re: [PATCH 1/2] hwmon/tmp401: use smb word operations instead of 2 smb byte operations

2017-01-09 Thread Guenter Roeck
On Mon, Jan 09, 2017 at 05:47:37PM +0100, jeroen.de_wachter@nokia.com wrote: > From: Jeroen De Wachter > > tmp401 separately read/wrote high and low bytes of temperature values while > the hardware supports reading/writing those values in one operation. Driver > has been modified to use word

Re: [PATCH] net: ibm: ehea: use new api ethtool_{get|set}_link_ksettings

2017-01-09 Thread David Miller
From: Philippe Reynes Date: Sat, 7 Jan 2017 17:47:47 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH] net: ibm: ibmvnic: use new api ethtool_{get|set}_link_ksettings

2017-01-09 Thread David Miller
From: Philippe Reynes Date: Sat, 7 Jan 2017 22:37:29 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH 0/4] net: ethernet: ti: cpsw: correct common res usage

2017-01-09 Thread Grygorii Strashko
Hi Ivan, On 01/08/2017 10:40 AM, Ivan Khoronzhuk wrote: This series is intended to remove unneeded redundancies connected with common resource usage function. Based on net-next/master Tested on am572x idk Ivan Khoronzhuk (4): net: ethernet: ti: cpsw: remove dual check from common res usage

Re: [PATCH] serial: 8250_lpss: Unconditionally set PCI master for Quark

2017-01-09 Thread Jan Kiszka
On 2017-01-05 22:56, Andy Shevchenko wrote: > On Thu, Jan 5, 2017 at 1:56 AM, Andy Shevchenko > wrote: >> On Wed, Jan 4, 2017 at 10:48 PM, Jan Kiszka wrote: >>> MSI needs it as well. >>> >>> Should have no practical impact, though, as DMA is always available on >>> the Quark. But given the few us

Re: [PATCH] net: ibm: emac: use new api ethtool_{get|set}_link_ksettings

2017-01-09 Thread David Miller
From: Philippe Reynes Date: Sat, 7 Jan 2017 22:32:27 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH] net: intel: e100: use new api ethtool_{get|set}_link_ksettings

2017-01-09 Thread David Miller
From: Philippe Reynes Date: Sat, 7 Jan 2017 23:18:07 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH 2/2] hwmon/tmp401: Fix some checkstyle warnings

2017-01-09 Thread Guenter Roeck
On Mon, Jan 09, 2017 at 05:47:38PM +0100, jeroen.de_wachter@nokia.com wrote: > From: Jeroen De Wachter > > Signed-off-by: Jeroen De Wachter > --- > drivers/hwmon/tmp401.c | 66 > +- > 1 file changed, 33 insertions(+), 33 deletions(-) > > dif

Re: net/ipv6: use-after-free in sock_wfree

2017-01-09 Thread Andrey Konovalov
On Mon, Jan 9, 2017 at 6:08 PM, Andrey Konovalov wrote: > Hi! > > I've got the following error report while running the syzkaller fuzzer. > > On commit a121103c922847ba5010819a3f250f1f7fc84ab8 (4.10-rc3). > > A reproducer is attached. > > ===

Re: [PATCH] net: ibm: ibmveth: use new api ethtool_{get|set}_link_ksettings

2017-01-09 Thread David Miller
From: Philippe Reynes Date: Sat, 7 Jan 2017 22:35:13 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

[PATCH 1/1] ARM: dts: add Armadeus Systems OPOS6UL AND OPOS6ULDEV support

2017-01-09 Thread Sébastien Szymanski
OPOS6UL is an i.MX6UL based SoM. OPOS6ULDev is a carrier board for the OPOS6UL SoM. For more details see: http://www.opossom.com/english/products-processor_boards-opos6ul.html http://www.opossom.com/english/products-development_boards-opos6ul_dev.html Signed-off-by: Sébastien Szymanski --- arch

[PATCH] ARM: prima2: constify reset_control_ops structures

2017-01-09 Thread Bhumika Goyal
Declare reset_control_ops structures as const as they are only stored in the ops field of a reset_controller_dev structure. This field is of type const struct reset_control_ops *, so reset_control_ops structures having this property can be declared as const. Done using Coccinelle: @r1 disable opti

Re: [PATCH v2 2/2] reset: make optional functions really optional

2017-01-09 Thread Ramiro Oliveira
Hi Philipp On 1/9/2017 10:45 AM, Philipp Zabel wrote: > Hi Ramiro, > > Am Dienstag, den 27.12.2016, 12:37 + schrieb Ramiro Oliveira: >> The optional functions weren't really optional so this patch makes them >> really optional. > > Please add a bit of detail to the description. Since this ch

Re: [PATCH 3/4] hv_util: use do_adjtimex() to update system time

2017-01-09 Thread Stephen Hemminger
On Tue, 3 Jan 2017 19:48:29 + "Alex Ng (LIS)" wrote: > > -Original Message- > > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > > Sent: Tuesday, January 3, 2017 4:32 AM > > To: Alex Ng (LIS) > > Cc: de...@linuxdriverproject.org; linux-kernel@vger.kernel.org; KY > > Srinivasan ;

net/atm: warning in alloc_tx/__might_sleep

2017-01-09 Thread Andrey Konovalov
Hi! I've got the following error report while running the syzkaller fuzzer. On commit a121103c922847ba5010819a3f250f1f7fc84ab8 (4.10-rc3). A reproducer is attached. [ cut here ] WARNING: CPU: 0 PID: 4114 at kernel/sched/core.c:7737 __might_sleep+0x149/0x1a0 do not call b

Re: net/ipv6: use-after-free in sock_wfree

2017-01-09 Thread Eric Dumazet
On Mon, Jan 9, 2017 at 9:11 AM, Andrey Konovalov wrote: > On Mon, Jan 9, 2017 at 6:08 PM, Andrey Konovalov > wrote: >> Hi! >> >> I've got the following error report while running the syzkaller fuzzer. >> >> On commit a121103c922847ba5010819a3f250f1f7fc84ab8 (4.10-rc3). >> >> A reproducer is atta

Re: [PATCH] libata-eh: Use switch() instead of sparse array for protocol strings

2017-01-09 Thread Christoph Hellwig
On Mon, Jan 09, 2017 at 08:21:43AM -0800, Christoph Hellwig wrote: > Having it global is kinda weird anyway. But looking the code none > of the commands actually using is in the paging path, so it could > simply be replaced with a dynamic allocation in ata_scsi_rbuf_fill > for the actually needed

Re: [RFC PATCH] vring: Force use of DMA API for ARM-based systems

2017-01-09 Thread Will Deacon
On Mon, Jan 09, 2017 at 11:24:04AM +, Robin Murphy wrote: > On 06/01/17 21:51, Andy Lutomirski wrote: > > On Fri, Jan 6, 2017 at 10:32 AM, Robin Murphy wrote: > >> On 06/01/17 17:48, Jean-Philippe Brucker wrote: > >>> It used to work with 4.9, but since 9491ae4 ("mm: don't cap request size > >

Re: [RFC PATCH] vring: Force use of DMA API for ARM-based systems

2017-01-09 Thread Will Deacon
Hi Jean-Philippe, On Fri, Jan 06, 2017 at 05:48:33PM +, Jean-Philippe Brucker wrote: > On 20/12/16 15:14, Will Deacon wrote: > > Booting Linux on an ARM fastmodel containing an SMMU emulation results > > in an unexpected I/O page fault from the legacy virtio-blk PCI device: > > > > [1.211

Re: [Intel-gfx] 4.10-rc2 oops in DRM connector code

2017-01-09 Thread Dave Hansen
On 01/09/2017 08:59 AM, Daniel Vetter wrote: > On Mon, Jan 9, 2017 at 5:50 PM, Dave Hansen wrote: >> On 01/09/2017 08:41 AM, Daniel Vetter wrote: >>> On Mon, Jan 9, 2017 at 2:40 PM, Dave Hansen wrote: Well, now I found where the -2 comes from. intel_dp_register_mst_connector() calls drm

Re: [PATCH] ibmvscsis: Fix srp_transfer_data fail return code

2017-01-09 Thread Bryant G. Ly
On 1/9/17 10:47 AM, Greg KH wrote: On Mon, Jan 09, 2017 at 10:21:20AM -0600, Bryant G. Ly wrote: From: "Bryant G. Ly" If srp_transfer_data fails within ibmvscsis_write_pending, then the most likely scenario is that the client timed out the op and removed the TCE mapping. Thus it will loop for

Re: [PATCH 3/4] net: ethernet: ti: cpsw: don't duplicate ndev_running

2017-01-09 Thread Grygorii Strashko
On 01/08/2017 10:41 AM, Ivan Khoronzhuk wrote: > No need to create additional vars to identify if interface is running. > So simplify code by removing redundant var and checking usage counter > instead. > > Signed-off-by: Ivan Khoronzhuk > --- > drivers/net/ethernet/ti/cpsw.c | 14

Re: [PATCH] libata-eh: Use switch() instead of sparse array for protocol strings

2017-01-09 Thread Christoph Hellwig
On Mon, Jan 09, 2017 at 05:30:02PM +0100, Geert Uytterhoeven wrote: > > ata_force_param_buf is __initdata and shouldn't really matter. > > It mainly matters because of e.g. bootloader limitations. Do we need a full 4k for the force parameters? What would a typical command line for it look like?

Re: [PATCH] libata-eh: Use switch() instead of sparse array for protocol strings

2017-01-09 Thread Tejun Heo
On Mon, Jan 09, 2017 at 09:22:07AM -0800, Christoph Hellwig wrote: > Prototype here, only tested with a simple mkfs.xfs and some I/O on > AHCI so far: > > http://git.infradead.org/users/hch/block.git/shortlog/refs/heads/libata-kill-ata_scsi_rbuf Yeah, the only thing which needs completion from at

Re: [PATCH] libata-eh: Use switch() instead of sparse array for protocol strings

2017-01-09 Thread Tejun Heo
Hello, On Mon, Jan 09, 2017 at 09:27:23AM -0800, Christoph Hellwig wrote: > On Mon, Jan 09, 2017 at 05:30:02PM +0100, Geert Uytterhoeven wrote: > > > ata_force_param_buf is __initdata and shouldn't really matter. > > > > It mainly matters because of e.g. bootloader limitations. > > Do we need a

[PATCH v4 0/9] arm64: Expose CPUID registers via emulation

2017-01-09 Thread Suzuki K Poulose
This series adds a new ABI to expose the CPU feature registers to the user space via emulation of MRS instruction. The system exposes only a limited set of feature values (See the documentation patch) from the cpufeature infrastructure. The feature bits that are not exposed are set to the 'safe val

[PATCH v4 3/9] arm64: cpufeature: Cleanup feature bit tables

2017-01-09 Thread Suzuki K Poulose
This patch does the following clean ups : 1) All undescribed fields of a register are now treated as 'strict' with a safe value of 0. Hence we could leave an empty table for describing registers which are RAZ. 2) ID_AA64DFR1_EL1 is RAZ and should use the table for RAZ register. 3) ftr_gene

[PATCH v4 9/9] arm64: Documentation - Expose CPU feature registers

2017-01-09 Thread Suzuki K Poulose
Documentation for the infrastructure to expose CPU feature register by emulating MRS. Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Rutland Cc: Dave Martin Reviewed-by: Catalin Marinas Signed-off-by: Suzuki K Poulose --- Changes since V3: - Mark RES0 fields as hidden and remove the RAZ regis

[PATCH v4 6/9] arm64: Add helper to decode register from instruction

2017-01-09 Thread Suzuki K Poulose
Add a helper to extract the register field from a given instruction. Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Rutland Reviewed-by: Catalin Marinas Signed-off-by: Suzuki K Poulose --- arch/arm64/include/asm/insn.h | 2 ++ arch/arm64/kernel/insn.c | 29 +

[PATCH v4 8/9] arm64: cpufeature: Expose CPUID registers by emulation

2017-01-09 Thread Suzuki K Poulose
This patch adds the hook for emulating MRS instruction to export the 'user visible' value of supported system registers. We emulate only the following id space for system registers: Op0=3, Op1=0, CRn=0, CRm=[0, 4-7] The rest will fall back to SIGILL. This capability is also advertised via a new

[PATCH v4 5/9] arm64: cpufeature: Define helpers for sys_reg id

2017-01-09 Thread Suzuki K Poulose
Define helper macros to extract op0, op1, CRn, CRm & op2 for a given sys_reg id. While at it remove the explicit masking only used for Op0. Cc: Catalin Marinas Cc: Mark Rutland Cc: Will Deacon Reviewed-by: Catalin Marinas Signed-off-by: Suzuki K Poulose --- arch/arm64/include/asm/sysreg.h |

[PATCH v4 7/9] arm64: cpufeature: Track user visible fields

2017-01-09 Thread Suzuki K Poulose
Track the user visible fields of a CPU feature register. This will be used for exposing the value to the userspace. All the user visible fields of a feature register will be passed on as it is, while the others would be filled with their respective safe value. Cc: Catalin Marinas Cc: Will Deacon

Re: [PATCH V5 04/17] blk-throttle: configure bps/iops limit for cgroup in low limit

2017-01-09 Thread Tejun Heo
Hello, On Thu, Dec 15, 2016 at 12:32:55PM -0800, Shaohua Li wrote: > each queue will have a state machine. Initially queue is in LIMIT_LOW > state, which means all cgroups will be throttled according to their low > limit. After all cgroups with low limit cross the limit, the queue state > gets upg

[PATCH v4 2/9] arm64: cpufeature: remove explicit RAZ fields

2017-01-09 Thread Suzuki K Poulose
From: Mark Rutland We currently have some RAZ fields described explicitly in our arm64_ftr_bits arrays. These are inconsistently commented, grouped, and/or applied, and maintaining these is error-prone. Luckily, we don't need these at all. We'll never need to inspect RAZ fields to determine feat

[PATCH v4 4/9] arm64: cpufeature: Document the rules of safe value for features

2017-01-09 Thread Suzuki K Poulose
Document the rules for choosing the safe value for different types of features. Cc: Dave Martin Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Rutland Reviewed-by: Catalin Marinas Signed-off-by: Suzuki K Poulose --- Changes since v3: - Reworded the comment --- arch/arm64/include/asm/cpufeatu

[PATCH v4 1/9] arm64: cpufeature: treat unknown fields as RES0

2017-01-09 Thread Suzuki K Poulose
From: Mark Rutland Any fields not defined in an arm64_ftr_bits entry are propagated to the system-wide register value in init_cpu_ftr_reg(), and while we require that these strictly match for the sanity checks, we don't update them in update_cpu_ftr_reg(). Generally, the lack of an arm64_ftr_bit

Re: [PATCH tip/master v4] kprobes: extable: Identify kprobes' insn-slots as kernel text area

2017-01-09 Thread Josh Poimboeuf
On Sun, Jan 08, 2017 at 11:58:09PM +0900, Masami Hiramatsu wrote: > Make __kernel_text_address()/kernel_text_address() returns > true if the given address is on a kprobe's instruction slot, > which is generated by kprobes as a trampoline code. > This can help stacktraces to determine the address is

Re: [PATCH v1.1] ARM: multi_v7_defconfig: Enable power sequence for Odroid U3

2017-01-09 Thread Krzysztof Kozlowski
On Mon, Jan 9, 2017 at 6:24 PM, Javier Martinez Canillas wrote: > Hello Krzysztof, > > I think it would had been clearer if the subject prefix was "[PATCH v1.1 > 4/4]" :) Ah, yes. > > On 01/07/2017 06:16 AM, Krzysztof Kozlowski wrote: >> Odroid U3 needs a power sequence for lan9730, if it was e

Re: [PATCH 3/4] hv_util: use do_adjtimex() to update system time

2017-01-09 Thread Vitaly Kuznetsov
Stephen Hemminger writes: > An alternative would be for hyper-v util to provide a clocksource device and > let NTP manage the adjustment. The advantage of this would be HV util not > fighting > with NTP, and using standard API's. The downside would be the complexity of > configuring > NTP, and

Re: [PATCH net-next v2] net: dsa: make "label" property optional for dsa2

2017-01-09 Thread Florian Fainelli
On 01/09/2017 08:06 AM, Jiri Pirko wrote: > Mon, Jan 09, 2017 at 04:45:33PM CET, vivien.dide...@savoirfairelinux.com > wrote: >> Hi Jiri, >> >> Jiri Pirko writes: >> Extra question: shouldn't phys_port_{id,name} be switchdev attributes in >>> >>> Again, phys_port_id has nothing to do with sw

Re: [Intel-gfx] 4.10-rc2 oops in DRM connector code

2017-01-09 Thread Dave Hansen
On 01/09/2017 08:59 AM, Daniel Vetter wrote: > On Mon, Jan 9, 2017 at 5:50 PM, Dave Hansen wrote: >> On 01/09/2017 08:41 AM, Daniel Vetter wrote: >>> On Mon, Jan 9, 2017 at 2:40 PM, Dave Hansen wrote: Well, now I found where the -2 comes from. intel_dp_register_mst_connector() calls drm

Re: [PATCH v9 1/8] drivers:input:tsc2007: add new common binding names, pre-calibration, flipping and rotation

2017-01-09 Thread Rob Herring
On Wed, Dec 28, 2016 at 03:53:16PM +0100, H. Nikolaus Schaller wrote: > commit b98abe52fa8e ("Input: add common DT binding for touchscreens") > introduced common DT bindings for touchscreens [1] and a helper function to > parse the DT. > > commit ed7c9870c9bc ("Input: of_touchscreen - add support

Re: __GFP_REPEAT usage in fq_alloc_node

2017-01-09 Thread Michal Hocko
On Mon 09-01-17 08:00:16, Eric Dumazet wrote: > On Mon, Jan 9, 2017 at 2:22 AM, Michal Hocko wrote: > > > > the changelog doesn't mention it but this, unlike other kvmalloc > > conversions is not without functional changes. The kmalloc part > > will be weaker than it is with the original code for

Re: [PATCH v1.1] ARM: multi_v7_defconfig: Enable power sequence for Odroid U3

2017-01-09 Thread Javier Martinez Canillas
Hello Krzysztof, On 01/09/2017 02:38 PM, Krzysztof Kozlowski wrote: > On Mon, Jan 9, 2017 at 6:24 PM, Javier Martinez Canillas > wrote: >> Hello Krzysztof, >> >> I think it would had been clearer if the subject prefix was "[PATCH v1.1 >> 4/4]" :) > > Ah, yes. > >> >> On 01/07/2017 06:16 AM, Kr

Re: [PATCH v3 2/4] dt-bindings: Add TI SCI PM Domains

2017-01-09 Thread Rob Herring
On Wed, Jan 04, 2017 at 02:55:34PM -0600, Dave Gerlach wrote: > Add a generic power domain implementation, TI SCI PM Domains, that > will hook into the genpd framework and allow the TI SCI protocol to > control device power states. > > Also, provide macros representing each device index as underst

[PATCH v2] nfc: don't be making arch specific unaligned decisions at driver level.

2017-01-09 Thread Paul Gortmaker
Currently ia64 fails building allmodconfig with variations of: In file included from drivers/nfc/nxp-nci/i2c.c:39:0: ./include/linux/unaligned/access_ok.h:62:29: error: redefinition of ‘put_unaligned_be64’ static __always_inline void put_unaligned_be64(u64 val, void *p)

Re: __GFP_REPEAT usage in fq_alloc_node

2017-01-09 Thread Eric Dumazet
On Mon, Jan 9, 2017 at 9:45 AM, Michal Hocko wrote: > What about those non-default configurations. Do they really want to > invoke the OOM killer rather than fallback to the vmalloc? In our case, we use 4096 slots per fq, so that is a 16KB memory allocation. And these allocations happen right af

Re: [PATCH] ibmvscsis: Fix srp_transfer_data fail return code

2017-01-09 Thread Greg KH
On Mon, Jan 09, 2017 at 11:23:23AM -0600, Bryant G. Ly wrote: > On 1/9/17 10:47 AM, Greg KH wrote: > > > On Mon, Jan 09, 2017 at 10:21:20AM -0600, Bryant G. Ly wrote: > > > From: "Bryant G. Ly" > > > > > > If srp_transfer_data fails within ibmvscsis_write_pending, then > > > the most likely scen

Re: [PATCH v2] i2c: do not enable fall back to Host Notify by default

2017-01-09 Thread Rob Herring
On Wed, Jan 04, 2017 at 08:57:22PM -0800, Dmitry Torokhov wrote: > Falling back unconditionally to HostNotify as primary client's interrupt > breaks some drivers which alter their functionality depending on whether > interrupt is present or not, so let's introduce a board flag telling I2C > core ex

[PATCH] drm/exynos: constify exynos_drm_crtc_ops structures

2017-01-09 Thread Bhumika Goyal
Declare exynos_drm_crtc_ops structures as const as they are only passed as an argument to the function exynos_drm_crtc_create. This argument is of type const struct exynos_drm_crtc_ops *, so exynos_drm_crtc_ops structures having this property can be declared const. Done using Coccinelle: @r disabl

Re: [PATCH 3/4] hv_util: use do_adjtimex() to update system time

2017-01-09 Thread Stephen Hemminger
On Mon, 09 Jan 2017 18:40:15 +0100 Vitaly Kuznetsov wrote: > Stephen Hemminger writes: > > > An alternative would be for hyper-v util to provide a clocksource device and > > let NTP manage the adjustment. The advantage of this would be HV util not > > fighting > > with NTP, and using standard

Re: [HMM v15 01/16] mm/free_hot_cold_page: catch ZONE_DEVICE pages

2017-01-09 Thread Jerome Glisse
On Mon, Jan 09, 2017 at 09:00:34AM -0800, Dave Hansen wrote: > On 01/09/2017 08:57 AM, Jerome Glisse wrote: > > On Mon, Jan 09, 2017 at 08:21:25AM -0800, Dave Hansen wrote: > >> On 01/09/2017 01:19 AM, Balbir Singh wrote: > +/* > + * This should never happen ! Page from ZO

Re: [PATCH net-next v2] net: dsa: make "label" property optional for dsa2

2017-01-09 Thread Jiri Pirko
Mon, Jan 09, 2017 at 06:42:07PM CET, f.faine...@gmail.com wrote: >On 01/09/2017 08:06 AM, Jiri Pirko wrote: >> Mon, Jan 09, 2017 at 04:45:33PM CET, vivien.dide...@savoirfairelinux.com >> wrote: >>> Hi Jiri, >>> >>> Jiri Pirko writes: >>> > Extra question: shouldn't phys_port_{id,name} be swit

Re: [PATCH v3 2/4] dt-bindings: Add TI SCI PM Domains

2017-01-09 Thread Dave Gerlach
Rob, On 01/09/2017 11:50 AM, Rob Herring wrote: On Wed, Jan 04, 2017 at 02:55:34PM -0600, Dave Gerlach wrote: Add a generic power domain implementation, TI SCI PM Domains, that will hook into the genpd framework and allow the TI SCI protocol to control device power states. Also, provide macros

[PATCH v2] hwmon/tmp401: use smb word operations instead of 2 smb byte operations

2017-01-09 Thread jeroen.de_wachter.ext
From: Jeroen De Wachter tmp401 separately read/wrote high and low bytes of temperature values while the hardware supports reading/writing those values in one operation. Driver has been modified to use word operations where possible. Tested with a tmp432 sensor on a mips64 platform. Signed-off-b

[PATCH 4/4] x86/entry: fix the end of the stack for newly forked tasks

2017-01-09 Thread Josh Poimboeuf
When unwinding a task, the end of the stack is always at the same offset right below the saved pt_regs, regardless of which syscall was used to enter the kernel. That convention allows the unwinder to verify that a stack is sane. However, newly forked tasks don't always follow that convention, as

Re: [PATCH v7 1/8] MFD: add bindings for STM32 Timers driver

2017-01-09 Thread Rob Herring
On Thu, Jan 05, 2017 at 10:25:37AM +0100, Benjamin Gaignard wrote: > Add bindings information for STM32 Timers > > version 6: > - rename stm32-gtimer to stm32-timers > - change compatible > - add description about the IPs > > version 2: > - rename stm32-mfd-timer to stm32-gptimer > - only keep on

Re: [PATCH v7 3/8] PWM: add pwm-stm32 DT bindings

2017-01-09 Thread Rob Herring
On Thu, Jan 05, 2017 at 10:25:39AM +0100, Benjamin Gaignard wrote: > Define bindings for pwm-stm32 > > version 6: > - change st,breakinput parameter format to make it usuable on stm32f7 too. > > version 2: > - use parameters instead of compatible of handle the hardware configuration > > Signed-o

[PATCH 3/4] x86/unwind: include __schedule() in stack traces

2017-01-09 Thread Josh Poimboeuf
In the following commit: 0100301bfdf5 ("sched/x86: Rewrite the switch_to() code") ... the layout of the 'inactive_task_frame' struct was designed to have a frame pointer header embedded in it, so that the unwinder could use the 'bp' and 'ret_addr' fields to report __schedule() on the stack (or

Re: [PATCH v7 2/8] MFD: add STM32 Timers driver

2017-01-09 Thread Rob Herring
On Thu, Jan 05, 2017 at 10:25:38AM +0100, Benjamin Gaignard wrote: > This hardware block could at used at same time for PWM generation > and IIO timers. > PWM and IIO timer configuration are mixed in the same registers > so we need a multi fonction driver to be able to share those registers. > > v

[PATCH 0/4] x86: unwinder/entry fixes

2017-01-09 Thread Josh Poimboeuf
Some unwinder-related fixes for some issues reported over the holidays. The first three patches are pretty minor, but note the last patch modifies entry code. Josh Poimboeuf (4): x86/unwind: silence warnings for non-current tasks x86/unwind: disable KASAN checks for non-current tasks x86/unw

[PATCH 2/4] x86/unwind: disable KASAN checks for non-current tasks

2017-01-09 Thread Josh Poimboeuf
There are a handful of callers to save_stack_trace_tsk() and show_stack() which try to unwind the stack of a task other than current. In such cases, it's remotely possible that the task is running on one CPU while the unwinder is reading its stack from another CPU, causing the unwinder to see stack

[PATCH 1/4] x86/unwind: silence warnings for non-current tasks

2017-01-09 Thread Josh Poimboeuf
There are a handful of callers to save_stack_trace_tsk() and show_stack() which try to unwind the stack of a task other than current. In such cases, it's remotely possible that the task is running on one CPU while the unwinder is reading its stack from another CPU, causing the unwinder to see stack

Re: [PATCH 0/4] ARM: exynos: Fix Odroid U3 USB/LAN when TFTP booting (power sequence)

2017-01-09 Thread Anand Moon
Hi Krzysztof, On 7 January 2017 at 14:21, Krzysztof Kozlowski wrote: > Hi, > > Thanks to Markus Reichl, I got an Odroid U3 to work with. Thanks to Peter > Chen, we got a power sequence generic library which solves my long > standing Odroid U3 problem - no LAN9730 if it was enabled by bootloader.

Re: [PATCH v7 5/8] IIO: add bindings for STM32 timer trigger driver

2017-01-09 Thread Rob Herring
On Thu, Jan 05, 2017 at 10:25:41AM +0100, Benjamin Gaignard wrote: > Define bindings for STM32 timer trigger > > version 4: > - remove triggers enumeration from DT > - add reg parameter > > version 3: > - change file name > - add cross reference with mfd bindings > > version 2: > - only keep one

Re: [PATCH net-next v2] net: dsa: make "label" property optional for dsa2

2017-01-09 Thread Florian Fainelli
On 01/09/2017 09:58 AM, Jiri Pirko wrote: > Mon, Jan 09, 2017 at 06:42:07PM CET, f.faine...@gmail.com wrote: >> On 01/09/2017 08:06 AM, Jiri Pirko wrote: >>> Mon, Jan 09, 2017 at 04:45:33PM CET, vivien.dide...@savoirfairelinux.com >>> wrote: Hi Jiri, Jiri Pirko writes: >>

Re: [PATCH 1/2] Documentation: phy: introduce new optional property to specify drive impedance

2017-01-09 Thread Rob Herring
On Thu, Jan 05, 2017 at 05:31:21PM +0800, Shawn Lin wrote: > We need to modify the drive impedance according to the > different hardware condition. So let's expose this to > the DT. > > Signed-off-by: Shawn Lin > --- > > Documentation/devicetree/bindings/phy/rockchip-emmc-phy.txt | 5 + > 1

ILK regression: hangs on reboot to Watchdog line, bisected

2017-01-09 Thread Tomi Sarvela
Hello there, Our Iron Lake testhosts stopped rebooting at Christmas time. When commanding reboot, the last line showing is [ 21.360606] watchdog: watchdog0: watchdog did not stop! (usually after that comes reboot: Restarting system) This affects the following hardware: HP Elite 8100 Small Form

Re: SELinux lead to soft lockup when pid 1 proceess reap child

2017-01-09 Thread Oleg Nesterov
On 01/09, yangshukui wrote: > > --- a/security/selinux/hooks.c > +++ b/security/selinux/hooks.c > @@ -3596,6 +3596,9 @@ static int selinux_task_kill(struct task_struct *p, > struct siginfo *info, > > static int selinux_task_wait(struct task_struct *p) > { > + if (pid_vnr(task_tgid(current))

Re: [PATCH 3/4] hv_util: use do_adjtimex() to update system time

2017-01-09 Thread Vitaly Kuznetsov
Stephen Hemminger writes: > On Mon, 09 Jan 2017 18:40:15 +0100 > Vitaly Kuznetsov wrote: > >> Stephen Hemminger writes: >> >> > An alternative would be for hyper-v util to provide a clocksource device >> > and >> > let NTP manage the adjustment. The advantage of this would be HV util not >>

Re: [PATCH 0/4] ARM: exynos: Fix Odroid U3 USB/LAN when TFTP booting (power sequence)

2017-01-09 Thread Krzysztof Kozlowski
On Mon, Jan 09, 2017 at 11:34:48PM +0530, Anand Moon wrote: > Hi Krzysztof, > > On 7 January 2017 at 14:21, Krzysztof Kozlowski wrote: > > Hi, > > > > Thanks to Markus Reichl, I got an Odroid U3 to work with. Thanks to Peter > > Chen, we got a power sequence generic library which solves my long >

Re: [PATCH] [linux-next] bus:qcom : Fix typo in qcom,ebi2.txt

2017-01-09 Thread Rob Herring
On Thu, Jan 05, 2017 at 11:43:07PM +0900, Masanari Iida wrote: > This patch fix 2 spelling typos found in qcom,ebi2.txt > > Signed-off-by: Masanari Iida > --- > Documentation/devicetree/bindings/bus/qcom,ebi2.txt | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Applied, thanks. Ro

Re: [PATCH 4.9 000/116] 4.9.2-stable review

2017-01-09 Thread Kevin Hilman
Greg Kroah-Hartman writes: > On Fri, Jan 06, 2017 at 09:42:24PM -0800, kernelci.org bot wrote: >> stable-rc boot: 513 boots: 4 failed, 489 passed with 20 offline >> (v4.9.1-117-ge3bc65e52a08) >> >> Full Boot Summary: >> https://kernelci.org/boot/all/job/stable-rc/kernel/v4.9.1-117-ge3bc65e52a0

Re: [PATCH v2 11/12] crypto: atmel-authenc: add support to authenc(hmac(shaX),Y(aes)) modes

2017-01-09 Thread Cyrille Pitchen
Hi Stephan, Le 23/12/2016 à 12:34, Stephan Müller a écrit : > Am Donnerstag, 22. Dezember 2016, 17:38:00 CET schrieb Cyrille Pitchen: > > Hi Cyrille, > >> This patchs allows to combine the AES and SHA hardware accelerators on >> some Atmel SoCs. Doing so, AES blocks are only written to/read from

Re: [PATCH 0/2] sched: Introduce rcuwait

2017-01-09 Thread Davidlohr Bueso
Gents, any further thoughts on this? Thanks, Davidlohr

Re: [PATCH] libata-eh: Use switch() instead of sparse array for protocol strings

2017-01-09 Thread Geert Uytterhoeven
On Mon, Jan 9, 2017 at 6:31 PM, Tejun Heo wrote: > On Mon, Jan 09, 2017 at 09:27:23AM -0800, Christoph Hellwig wrote: >> On Mon, Jan 09, 2017 at 05:30:02PM +0100, Geert Uytterhoeven wrote: >> > > ata_force_param_buf is __initdata and shouldn't really matter. >> > >> > It mainly matters because of

Re: [PATCH 0/4] ARM: exynos: Fix Odroid U3 USB/LAN when TFTP booting (power sequence)

2017-01-09 Thread Anand Moon
Hi Krzysztof, On 9 January 2017 at 23:47, Krzysztof Kozlowski wrote: > On Mon, Jan 09, 2017 at 11:34:48PM +0530, Anand Moon wrote: >> Hi Krzysztof, >> >> On 7 January 2017 at 14:21, Krzysztof Kozlowski wrote: >> > Hi, >> > >> > Thanks to Markus Reichl, I got an Odroid U3 to work with. Thanks to

Re: [V9fs-developer] 9pfs hangs since 4.7

2017-01-09 Thread Greg Kurz
On Sat, 7 Jan 2017 17:19:10 + Al Viro wrote: > On Sat, Jan 07, 2017 at 04:10:45PM +0100, Greg Kurz wrote: > > > virtqueue_push(), but pdu freeing is delayed until v9fs_flush() gets woken > > > up. In the meanwhile, another request arrives into the slot of freed by > > > that virtqueue_push()

Re: SELinux lead to soft lockup when pid 1 proceess reap child

2017-01-09 Thread Oleg Nesterov
Seriously, could someone explain why do we need the security_task_wait() hook at all? On 01/09, Oleg Nesterov wrote: > > On 01/09, yangshukui wrote: > > > > --- a/security/selinux/hooks.c > > +++ b/security/selinux/hooks.c > > @@ -3596,6 +3596,9 @@ static int selinux_task_kill(struct task_struct

Re: [PATCH 1/8] mmc-core: Use kmalloc_array() in mmc_test_area_init()

2017-01-09 Thread Linus Walleij
On Sun, Jan 8, 2017 at 10:42 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 8 Jan 2017 18:44:26 +0100 > > * A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus use the corresponding function

Re: [PATCH 2/8] mmc-core: Fix a typo in a comment line

2017-01-09 Thread Linus Walleij
On Sun, Jan 8, 2017 at 10:43 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 8 Jan 2017 19:05:37 +0100 > > Add a missing character in the function description. > > Signed-off-by: Markus Elfring Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH 1/2] Documentation: devicetree: Add document bindings for mtk-cir

2017-01-09 Thread Rob Herring
On Fri, Jan 06, 2017 at 12:06:23AM +0800, sean.w...@mediatek.com wrote: > From: Sean Wang > > This patch adds documentation for devicetree bindings for > Mediatek IR controller. > > Signed-off-by: Sean Wang > --- > .../devicetree/bindings/media/mtk-cir.txt | 23 >

Re: [PATCH 3/4] hv_util: use do_adjtimex() to update system time

2017-01-09 Thread Stephen Hemminger
On Mon, 09 Jan 2017 19:14:30 +0100 Vitaly Kuznetsov wrote: > Stephen Hemminger writes: > > > On Mon, 09 Jan 2017 18:40:15 +0100 > > Vitaly Kuznetsov wrote: > > > >> Stephen Hemminger writes: > >> > >> > An alternative would be for hyper-v util to provide a clocksource device > >> > and

Re: [PATCH 3/8] mmc-core: Use seq_puts() in mtf_testlist_show()

2017-01-09 Thread Linus Walleij
On Sun, Jan 8, 2017 at 10:45 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 8 Jan 2017 19:48:28 +0100 > > The script "checkpatch.pl" pointed information out like the following. > > WARNING: Prefer seq_puts to seq_printf > > Thus fix the affected source code place. > > Signed-of

Re: [PATCH 5/8] mmc/core/mmc_test: Combine substrings for 5 messages

2017-01-09 Thread Linus Walleij
On Sun, Jan 8, 2017 at 10:47 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 8 Jan 2017 20:56:48 +0100 > > The script "checkpatch.pl" pointed information out like the following. > > WARNING: quoted string split across lines > > Thus fix affected source code places. > > Signed-of

Re: [PATCH 4/8] mmc/core/mmc_test: Add some spaces for better code readability

2017-01-09 Thread Linus Walleij
On Sun, Jan 8, 2017 at 10:46 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 8 Jan 2017 20:25:39 +0100 > > Use space characters at some source code places according to > the Linux coding style convention. > > Signed-off-by: Markus Elfring OK then. Reviewed-by: Linus Walleij

Re: [PATCH v2 11/12] crypto: atmel-authenc: add support to authenc(hmac(shaX),Y(aes)) modes

2017-01-09 Thread Stephan Müller
Am Montag, 9. Januar 2017, 19:24:12 CET schrieb Cyrille Pitchen: Hi Cyrille, > >> +static int atmel_aes_authenc_copy_assoc(struct aead_request *req) > >> +{ > >> + size_t buflen, assoclen = req->assoclen; > >> + off_t skip = 0; > >> + u8 buf[256]; > >> + > >> + while (assoclen) { > >> +

Re: [PATCH 0/4] ARM: exynos: Fix Odroid U3 USB/LAN when TFTP booting (power sequence)

2017-01-09 Thread Krzysztof Kozlowski
On Mon, Jan 09, 2017 at 11:56:41PM +0530, Anand Moon wrote: > Hi Krzysztof, > > On 9 January 2017 at 23:47, Krzysztof Kozlowski wrote: > > On Mon, Jan 09, 2017 at 11:34:48PM +0530, Anand Moon wrote: > >> Hi Krzysztof, > >> > >> On 7 January 2017 at 14:21, Krzysztof Kozlowski wrote: > >> > Hi, >

Re: [PATCH 6/8] mmc/core/mmc_test: Improve a size determination in five functions

2017-01-09 Thread Linus Walleij
On Sun, Jan 8, 2017 at 10:49 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 8 Jan 2017 21:25:44 +0100 > > Replace the specification of a data structure by a pointer dereference > as the parameter for the operator "sizeof" to make the corresponding size > determination a bit saf

Re: [PATCH 7/8] mmc-core: Use kcalloc() in mmc_test_alloc_mem()

2017-01-09 Thread Linus Walleij
On Sun, Jan 8, 2017 at 10:50 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 8 Jan 2017 21:43:12 +0100 > > * The script "checkpatch.pl" pointed information out like the following. > > WARNING: Prefer kcalloc over kzalloc with multiply > > Thus fix the affected source code pl

Re: [PATCH 8/8] mmc-core: Use kmalloc_array() in mmc_alloc_sg()

2017-01-09 Thread Linus Walleij
On Sun, Jan 8, 2017 at 10:55 PM, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 8 Jan 2017 22:10:40 +0100 > > * A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus use the corresponding function

Re: [V9fs-developer] 9pfs hangs since 4.7

2017-01-09 Thread Tuomas Tynkkynen
On Sat, 7 Jan 2017 17:19:10 + Al Viro wrote: > On Sat, Jan 07, 2017 at 04:10:45PM +0100, Greg Kurz wrote: > > > virtqueue_push(), but pdu freeing is delayed until v9fs_flush() gets woken > > > up. In the meanwhile, another request arrives into the slot of freed by > > > that virtqueue_push()

Re: [PATCHv3 1/5] clk: mvebu: support for 98DX3236 SoC

2017-01-09 Thread Rob Herring
On Fri, Jan 06, 2017 at 05:14:58PM +1300, Chris Packham wrote: > The 98DX3236, 98DX3336, 98DX4521 and variants have a different TCLK from > the Armada XP (200MHz vs 250MHz). The CPU core clock is fixed at 800MHz. > > The clock gating options are a subset of those on the Armada XP. > > The core cl

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