Re: [PATCH] mm: Refactor conversion of pages to bytes macro definitions

2017-06-21 Thread Nikolay Borisov
On 22.06.2017 09:44, Michal Hocko wrote: > On Tue 20-06-17 18:14:28, Nikolay Borisov wrote: >> Currently there are a multiple files with the following code: >> #define K(x) ((x) << (PAGE_SHIFT - 10)) >> ... some code.. >> #undef K >> >> This is mainly used to print out some memory-related stat

Re: [Intel-wired-lan] [PATCH] net: intel: e1000e: add check on e1e_wphy() return value

2017-06-21 Thread Neftin, Sasha
On 21/06/2017 22:52, Gustavo A. R. Silva wrote: Hi Ethan, Quoting Ethan Zhao : Gustavo, The return value of ret_val seems used to check if the access to PHY/NVM got its semaphore, generally speaking, it is needed for every PHY access of this driver. Reviewed-by: Ethan Zhao Thank yo

Re: [PATCH RESEND 4/4] pwm: mediatek: add MT2712/MT7622 support

2017-06-21 Thread John Crispin
On 22/06/17 08:09, Zhi Mao wrote: Hi John, Thanks for your review the code and feedback. There are 3 issues in this patch: 1.adds PWM_CLK_DIV_MAX which really should go into its own patch 2.adds mtk_pwm_com_reg which should also go into its own patch 3.remove comments inline /*===*/ for #1 an

Re: [PATCH] mm: Refactor conversion of pages to bytes macro definitions

2017-06-21 Thread Michal Hocko
On Tue 20-06-17 18:14:28, Nikolay Borisov wrote: > Currently there are a multiple files with the following code: > #define K(x) ((x) << (PAGE_SHIFT - 10)) > ... some code.. > #undef K > > This is mainly used to print out some memory-related statistics, where X is > given in pages and the macro

[PATCH] Staging: rtl8712 : osdep_intf.h: fix macro coding style issue

2017-06-21 Thread Jaya Durga
From: Jaya Durga Fix checkpatch.pl warning of the form "CHECK" Macro argument 'x' may be better as '(x)' to avoid precedence issues. Signed-off-by: Jaya Durga --- drivers/staging/rtl8712/osdep_intf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8712/os

Re: [PATCH] x86/insn: perf tools: Add new ptwrite instruction

2017-06-21 Thread Adrian Hunter
On 19/05/17 17:28, Masami Hiramatsu wrote: > On Fri, 19 May 2017 10:50:30 +0300 > Adrian Hunter wrote: > >> Add ptwrite to the op code map and the perf tools new instructions test. >> To run the test: >> >> $ tools/perf/perf test "x86 ins" >> 39: Test x86 instruction decoder - new instruction

Re: [PATCH v1] ARM: dts: sun7i: provide ramoops region on BananaPi

2017-06-21 Thread Oleksij Rempel
Am 22.06.2017 um 08:16 schrieb Maxime Ripard: > Hi Oleksij, > > On Wed, Jun 21, 2017 at 07:10:17PM +0200, Oleksij Rempel wrote: >> This should help provide useful debug information on remote >> targets without UART. >> >> Signed-off-by: Oleksij Rempel >> --- >> arch/arm/boot/dts/sun7i-a20-banana

Re: [PATCH 11/11] drm: remove unused and redundant callbacks

2017-06-21 Thread Daniel Vetter
On Thu, Jun 22, 2017 at 12:34:36AM +0800, kbuild test robot wrote: > Hi Peter, > > [auto build test ERROR on drm/drm-next] > [also build test ERROR on next-20170621] > [cannot apply to v4.12-rc6] > [if your patch is applied to the wrong git tree, please drop us a note to

Re: [PATCH 01/11] drm/fb-helper: do a generic fb_setcmap helper in terms of crtc .gamma_set

2017-06-21 Thread Daniel Vetter
On Wed, Jun 21, 2017 at 11:40:52AM +0200, Peter Rosin wrote: > On 2017-06-21 09:38, Daniel Vetter wrote: > > On Tue, Jun 20, 2017 at 09:25:25PM +0200, Peter Rosin wrote: > >> This makes the redundant fb helpers .load_lut, .gamma_set and .gamma_get > >> totally obsolete. > >> > >> I think the gamma_

Re: linux-next: build failure after merge of most trees

2017-06-21 Thread Stephen Rothwell
Hi Nick, On Thu, 22 Jun 2017 16:20:11 +1000 Stephen Rothwell wrote: > > On Thu, 22 Jun 2017 15:49:52 +1000 Nicholas Piggin wrote: > > > > It could be this > > > > https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git/commit/?h=thin-ar&id=ec2c9c20f0efab37ae31de44fe0617aa612

Re: [PATCH V4 2/2] powerpc/powernv : Add support for OPAL-OCC command/response interface

2017-06-21 Thread Cyril Bur
On Thu, 2017-06-22 at 09:57 +0530, Shilpasri G Bhat wrote: > Hi Cyril, > > On 06/22/2017 06:28 AM, Cyril Bur wrote: > > On Wed, 2017-06-21 at 13:36 +0530, Shilpasri G Bhat wrote: > > > In P9, OCC (On-Chip-Controller) supports shared memory based > > > commad-response interface. Within the shared m

Re: linux-next: build failure after merge of most trees

2017-06-21 Thread Stephen Rothwell
Hi Nicholas, On Thu, 22 Jun 2017 15:49:52 +1000 Nicholas Piggin wrote: > > It could be this > > https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git/commit/?h=thin-ar&id=ec2c9c20f0efab37ae31de44fe0617aa61283905 > > kbuild: handle libs-y archives separately from built-i

[PATCH v5 2/5] stmmac: pci: Use stmmac_pci_info for all devices

2017-06-21 Thread Jan Kiszka
From: Jan Kiszka Make stmmac_default_data compatible with stmmac_pci_info.setup and use an info structure for all devices. This allows to make the probing more regular. Signed-off-by: Jan Kiszka Reviewed-by: Andy Shevchenko --- drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 36 +++

[PATCH v5 0/5] stmmac: pci: Refactor DMI probing

2017-06-21 Thread Jan Kiszka
Some cleanups of the way we probe DMI platforms in the driver. Reduces a bit of open-coding and makes the logic easier reusable for any potential DMI platform != Quark. Tested on IOT2000 and Galileo Gen2. Changes in v5: - fixed a remaining issue in patch 5 - dropped patch 6 for now Jan Jan Ki

[PATCH v5 3/5] stmmac: pci: Make stmmac_pci_find_phy_addr truly generic

2017-06-21 Thread Jan Kiszka
From: Jan Kiszka Move the special case for the early Galileo firmware into quark_default_setup. This allows to use stmmac_pci_find_phy_addr for non-quark cases. Signed-off-by: Jan Kiszka Reviewed-by: Andy Shevchenko --- drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 20 +--

[PATCH v5 4/5] stmmac: pci: Select quark_pci_dmi_data from quark_default_data

2017-06-21 Thread Jan Kiszka
From: Jan Kiszka No need to carry this reference in stmmac_pci_info - the Quark-specific setup handler knows that it needs to use the Quark-specific DMI table. This also allows to drop the stmmac_pci_info reference from the setup handler parameter list. Signed-off-by: Jan Kiszka Reviewed-by: An

[PATCH v5 1/5] stmmac: pci: Make stmmac_pci_info structure constant

2017-06-21 Thread Jan Kiszka
From: Jan Kiszka By removing the PCI device reference from the structure and passing it as parameters to the interested functions, we can make quark_pci_info const. Signed-off-by: Jan Kiszka Reviewed-by: Andy Shevchenko --- drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 23 +++

[PATCH v5 5/5] stmmac: pci: Use dmi_system_id table for retrieving PHY addresses

2017-06-21 Thread Jan Kiszka
From: Jan Kiszka Avoids reimplementation of DMI matching in stmmac_pci_find_phy_addr. Signed-off-by: Jan Kiszka --- drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 97 1 file changed, 64 insertions(+), 33 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmma

Re: [PATCH v1] ARM: dts: sun7i: provide ramoops region on BananaPi

2017-06-21 Thread Maxime Ripard
Hi Oleksij, On Wed, Jun 21, 2017 at 07:10:17PM +0200, Oleksij Rempel wrote: > This should help provide useful debug information on remote > targets without UART. > > Signed-off-by: Oleksij Rempel > --- > arch/arm/boot/dts/sun7i-a20-bananapi.dts | 16 > 1 file changed, 16 insert

Re: [PATCH RESEND 4/4] pwm: mediatek: add MT2712/MT7622 support

2017-06-21 Thread John Crispin
On 22/06/17 08:09, Zhi Mao wrote: Hi John, Thanks for your review the code and feedback. There are 3 issues in this patch: 1.adds PWM_CLK_DIV_MAX which really should go into its own patch 2.adds mtk_pwm_com_reg which should also go into its own patch 3.remove comments inline /*===*/ for #1 an

[PATCH v4 2/2] acpi, gicv3-its, numa: Adding numa node mapping for gic-its units

2017-06-21 Thread Ganapatrao Kulkarni
Add code to parse SRAT ITS Affinity sub table as defined in ACPI 6.2. Later in per device probe, ITS devices are mapped to numa node using ITS Id to proximity domain mapping. Signed-off-by: Ganapatrao Kulkarni --- drivers/irqchip/irq-gic-v3-its.c | 75 +++- 1

[PATCH v4 1/2] ACPICA: ACPI 6.2: Add support for new SRAT subtable

2017-06-21 Thread Ganapatrao Kulkarni
Add GIC ITS Affinity (ACPI 6.2) subtable to SRAT table. ACPICA commit 5bc67f63918da249bfe279ee461d152bb3e6f55b Link: https://github.com/acpica/acpica/commit/5bc67f6 Signed-off-by: Ganapatrao Kulkarni --- include/acpi/actbl1.h | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) d

[PATCH v4 0/2] acpi, gicv3-its, numa: Adding numa node mapping for ITS

2017-06-21 Thread Ganapatrao Kulkarni
ACPI 6.2 have added SRAT subtable to define proximity domain for ITS devices. This patchset updates acpi header file from acpica repo and adds numa node mapping for ITS devices. v4: -Addressed review comments. v3: - Use static array to stash parsed data from srat its table. v2: - Incorporat

Re: [PATCH v2] ocfs2: fix deadlock caused by recursive locking in xattr

2017-06-21 Thread Joseph Qi
Looks good. Reviewed-by: Joseph Qi Thanks, Joseph On 17/6/22 09:47, Eric Ren wrote: > Another deadlock path caused by recursive locking is reported. > This kind of issue was introduced since commit 743b5f1434f5 ("ocfs2: > take inode lock in ocfs2_iop_set/get_acl()"). Two deadlock paths > have be

[PATCH v2 00/14] improve the fb_setcmap helper

2017-06-21 Thread Peter Rosin
in this mostly mechanical change... Changes since v1: - Rebased to next-20170621 - Split 1/11 into a preparatory patch, a cleanup patch and then the meat in 3/14. - Handle pseudo-palette for FB_VISUAL_TRUECOLOR. - Removed the empty .gamma_get/.gamma_set fb helpers from the armada driver that I

Re: [PATCH v2 1/1] mtd: spi-nor: parse Serial Flash Discoverable Parameters (SFDP) tables

2017-06-21 Thread kbuild test robot
Hi Cyrille, [auto build test WARNING on spi-nor/next] [cannot apply to v4.12-rc6] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Cyrille-Pitchen/mtd-spi-nor-parse-Serial-Flash-Discoverable-Param

Re: [PATCH] clk: keystone: TI_SCI_PROTOCOL is needed for clk driver

2017-06-21 Thread Tero Kristo
On 22/06/17 00:50, Stephen Boyd wrote: On 06/20, Arnd Bergmann wrote: CONFIG_COMPILE_TEST allows building a configuration without TI_SCI_PROTOCOL, which then fails to link: drivers/clk/keystone/sci-clk.o: In function `ti_sci_clk_probe': sci-clk.c:(.text.ti_sci_clk_probe+0x4c): undefined referen

[PATCH v2 04/14] drm: amd: remove dead code and pointless local lut storage

2017-06-21 Thread Peter Rosin
The redundant fb helpers .load_lut, .gamma_set and .gamma_get are no longer used. Remove the dead code and hook up the crtc .gamma_set to use the crtc gamma_store directly instead of duplicating that info locally. Signed-off-by: Peter Rosin --- drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c | 24 -

Re: [PATCH] netxen: Fix a sleep-in-atomic bug in netxen_nic_pci_mem_access_direct

2017-06-21 Thread Dan Carpenter
We should probably add a might_sleep() to ioremap() to prevent these bugs in the future. This bug is eight years old. You can report it, but it's going to hard to get anyone to fix it. I sometimes ignore ancient bugs. On the other hand, netxen is fairly well supported so it doesn't hurt to try.

[PATCH v2 08/14] drm: gma500: remove dead code and pointless local lut storage

2017-06-21 Thread Peter Rosin
The redundant fb helpers .gamma_set and .gamma_get are no longer used. Remove the dead code and hook up the crtc .gamma_set to use the crtc gamma_store directly instead of duplicating that info locally. Signed-off-by: Peter Rosin --- drivers/gpu/drm/gma500/framebuffer.c | 22 --

[PATCH v2 06/14] drm: ast: remove dead code and pointless local lut storage

2017-06-21 Thread Peter Rosin
The redundant fb helpers .load_lut, .gamma_set and .gamma_get are no longer used. Remove the dead code and hook up the crtc .gamma_set to use the crtc gamma_store directly instead of duplicating that info locally. Signed-off-by: Peter Rosin --- drivers/gpu/drm/ast/ast_drv.h | 1 - drivers/gpu/

[PATCH v2 05/14] drm: armada: remove dead empty functions

2017-06-21 Thread Peter Rosin
The redundant fb helpers .gamma_set and .gamma_get are no longer used. Remove the dead code. Signed-off-by: Peter Rosin --- drivers/gpu/drm/armada/armada_crtc.c | 10 -- drivers/gpu/drm/armada/armada_crtc.h | 2 -- drivers/gpu/drm/armada/armada_fbdev.c | 2 -- 3 files changed, 14 del

linux-next: Tree for Jun 22

2017-06-21 Thread Stephen Rothwell
Hi all, This tree does not build for sparc64 defconfig. Changes since 20170621: The v4l-dvb tree lost its build failure. The spi-nor tree lost its build failure. The md tree gained a build failure for which I applied a merge fix patch. The kvms390 tree gained a conflict against the s390 tree

[PATCH v2 02/14] drm/fb-helper: remove drm_fb_helper_save_lut_atomic

2017-06-21 Thread Peter Rosin
drm_fb_helper_save_lut_atomic is redundant since the .gamma_store is now always kept up to date by drm_fb_helper_setcmap. Signed-off-by: Peter Rosin --- drivers/gpu/drm/drm_fb_helper.c | 17 - 1 file changed, 17 deletions(-) diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers

[PATCH v2 14/14] drm: remove unused and redundant callbacks

2017-06-21 Thread Peter Rosin
Drivers no longer have any need for these callbacks, and there are no users. Zap. Zap-zap-zzzap-p-pp-p. Signed-off-by: Peter Rosin --- include/drm/drm_fb_helper.h | 32 include/drm/drm_modeset_helper_vtables.h | 16 2 files changed,

[PATCH v2 13/14] drm: stm: remove dead code and pointless local lut storage

2017-06-21 Thread Peter Rosin
The redundant fb helper .load_lut is no longer used, and can not work right without also providing the fb helpers .gamma_set and .gamma_get thus rendering the code in this driver suspect. Just remove the dead code. Signed-off-by: Peter Rosin --- drivers/gpu/drm/stm/ltdc.c | 12 dri

[PATCH v2 09/14] drm: i915: remove dead code and pointless local lut storage

2017-06-21 Thread Peter Rosin
The driver stores lut values from the fbdev interface, and is able to give them back, but does not appear to do anything with these lut values. The generic fb helpers have replaced this function, and may even have made the driver work for the C8 mode from the fbdev interface. But that is untested.

[PATCH v2 12/14] drm: radeon: remove dead code and pointless local lut storage

2017-06-21 Thread Peter Rosin
The redundant fb helpers .load_lut, .gamma_set and .gamma_get are no longer used. Remove the dead code and hook up the crtc .gamma_set to use the crtc gamma_store directly instead of duplicating that info locally. Signed-off-by: Peter Rosin --- drivers/gpu/drm/radeon/atombios_crtc.c | 1 -

[PATCH v2 11/14] drm: nouveau: remove dead code and pointless local lut storage

2017-06-21 Thread Peter Rosin
The redundant fb helpers .load_lut, .gamma_set and .gamma_get are no longer used. Remove the dead code and hook up the crtc .gamma_set to use the crtc gamma_store directly instead of duplicating that info locally. Signed-off-by: Peter Rosin --- drivers/gpu/drm/nouveau/dispnv04/crtc.c | 26 ++

[PATCH v2 10/14] drm: mgag200: remove dead code and pointless local lut storage

2017-06-21 Thread Peter Rosin
The redundant fb helpers .load_lut, .gamma_set and .gamma_get are no longer used. Remove the dead code and hook up the crtc .gamma_set to use the crtc gamma_store directly instead of duplicating that info locally. Signed-off-by: Peter Rosin --- drivers/gpu/drm/mgag200/mgag200_drv.h | 5 --- dr

[PATCH v2 01/14] drm/fb-helper: keep the .gamma_store updated in drm_fb_helper_setcmap

2017-06-21 Thread Peter Rosin
I think the gamma_store can end up invalid on error. But the way I read it, that can happen in drm_mode_gamma_set_ioctl as well, so why should this pesky legacy fbdev stuff be any better? Signed-off-by: Peter Rosin --- drivers/gpu/drm/drm_fb_helper.c | 27 +++ 1 file chan

[PATCH v2 03/14] drm/fb-helper: do a generic fb_setcmap helper in terms of crtc .gamma_set

2017-06-21 Thread Peter Rosin
This makes the redundant fb helpers .load_lut, .gamma_set and .gamma_get totally obsolete. Signed-off-by: Peter Rosin --- drivers/gpu/drm/drm_fb_helper.c | 154 1 file changed, 63 insertions(+), 91 deletions(-) diff --git a/drivers/gpu/drm/drm_fb_helper.

[PATCH v2 07/14] drm: cirrus: remove dead code and pointless local lut storage

2017-06-21 Thread Peter Rosin
The redundant fb helpers .load_lut, .gamma_set and .gamma_get are no longer used. Remove the dead code and hook up the crtc .gamma_set to use the crtc gamma_store directly instead of duplicating that info locally. Signed-off-by: Peter Rosin --- drivers/gpu/drm/cirrus/cirrus_drv.h | 8 dr

stack gap fix for 4.1

2017-06-21 Thread Arkadiusz Miskiewicz
Hi. I'm looking for stack gap fix backport for 4.1 (it's not in 4.1 stable queue git unfortunately). I wonder if any distro still maintains 4.1 and could already make backport? Thanks, -- Arkadiusz Miƛkiewicz, arekm / ( maven.pl | pld-linux.org )

Re: linux-next: build failure after merge of most trees

2017-06-21 Thread Nicholas Piggin
On Thu, 22 Jun 2017 15:24:41 +1000 Stephen Rothwell wrote: > Hi Dave, > > After merging almost all the trees, today's linux-next build (sparc64 > defconfig) failed like this: > > arch/sparc/lib/hweight.o: In function `__arch_hweight8': > (.text+0x0): relocation truncated to fit: R_SPARC_WDISP19

[PATCH 3/3] iio: adc: mt7622: Add compatible node for mt7622.

2017-06-21 Thread Zhiyong Tao
This commit adds mt7622 compatible node. Signed-off-by: Zhiyong Tao --- drivers/iio/adc/mt6577_auxadc.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iio/adc/mt6577_auxadc.c b/drivers/iio/adc/mt6577_auxadc.c index 2dd7c74..4a2cd9e 100644 --- a/drivers/iio/adc/mt6577_auxadc.c +++

[PATCH 0/3] ADC: Mediatek auxadc driver for mt7622

2017-06-21 Thread Zhiyong Tao
These patches are first version of Mediatek auxadc driver for mt7622. These patches include three patches. The First patch adds mt7622 compatible node in binding document. The second patch adds support for suspend/resume. The last patch adds mt7622 compatible node in auxadc driver. Zhiyong Tao (3)

[PATCH 1/3] dt-bindings: adc: mt7622: add binding document

2017-06-21 Thread Zhiyong Tao
The commit adds mt7622 compatible node in binding document. Signed-off-by: Zhiyong Tao --- .../devicetree/bindings/iio/adc/mt6577_auxadc.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iio/adc/mt6577_auxadc.txt b/Documentation/devicetree/bindings/ii

[PATCH 2/3] iio: adc: mt7622: add support for suspend/resume.

2017-06-21 Thread Zhiyong Tao
This patch supports auxadc suspend/resume flow. Disable auxadc clk and power in suspend function. Enable axuadc clk and power in resume function. Signed-off-by: Zhiyong Tao --- drivers/iio/adc/mt6577_auxadc.c | 37 + 1 file changed, 37 insertions(+) diff --

Re: [PATCH v2 1/3] input: sun4i-a10-lradc-keys: Add support for A83T

2017-06-21 Thread Ziping Chen
2017-06-22 4:35 GMT+08:00 Maxime Ripard : > On Tue, Jun 20, 2017 at 09:44:43PM +0800, Ziping Chen wrote: >> From: Ziping Chen >> >> Allwinner A83T SoC has a low res adc like the one >> in Allwinner A10 SoC, however, the A10 SoC's vref >> of lradc internally is divided by 2/3 and the A83T >> SoC's

Re: linux-next: Tree for Jun 7 (arch/x86/mm/tlb.c: events)

2017-06-21 Thread Stephen Rothwell
Hi Randy, On Wed, 21 Jun 2017 20:58:38 -0700 Randy Dunlap wrote: > > I cannot repro it on linux-next of 20170621. Thanks. -- Cheers, Stephen Rothwell

linux-next: build failure after merge of most trees

2017-06-21 Thread Stephen Rothwell
Hi Dave, After merging almost all the trees, today's linux-next build (sparc64 defconfig) failed like this: arch/sparc/lib/hweight.o: In function `__arch_hweight8': (.text+0x0): relocation truncated to fit: R_SPARC_WDISP19 against symbol `__sw_hweight8' defined in .text section in lib/hweight.o

Re: [PATCH v3 00/11] PCID and improved laziness

2017-06-21 Thread Andy Lutomirski
On Wed, Jun 21, 2017 at 11:23 AM, Linus Torvalds wrote: > On Tue, Jun 20, 2017 at 10:22 PM, Andy Lutomirski wrote: >> There are three performance benefits here: > > Side note: can you post the actual performance numbers, even if only > from some silly test program on just one platform? Things lik

Re: [PATCH][net-next] qtnfmac: fix uninitialized return code in ret

2017-06-21 Thread Dan Carpenter
On Wed, Jun 21, 2017 at 02:25:30PM +0100, Colin King wrote: > From: Colin Ian King > > The return value ret is unitialized and garbage is being returned > for the three different error conditions when setting up the PCIe > BARs. Fix this by initializing ret to -ENOMEM to indicate that > the BARs

[PATCH v5 0/2] drm: atmel-hlcdc: clut support

2017-06-21 Thread Peter Rosin
Hi! This series adds support for an 8-bit clut mode in the atmel-hlcdc driver. Changes since v4: - Added .clut_offset for overlay2 at 0xe00 for sama5d4 (unconfirmed if 0xe00 is the correct offset, but I'll eat my hat if it's not there). The sama5d4 overlay2 is indeed there, it is just AWOL i

[PATCH v5 2/2] drm: atmel-hlcdc: add support for 8-bit color lookup table mode

2017-06-21 Thread Peter Rosin
All layers of all supported chips support this, the only variable is the base address of the lookup table in the register map. Acked-by: Daniel Vetter Signed-off-by: Peter Rosin --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 4 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c| 14 +

[PATCH v5 1/2] drm: atmel-hlcdc: add missing .set_property helper to the crtc

2017-06-21 Thread Peter Rosin
The default implementation should be used. Signed-off-by: Peter Rosin --- drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c index 5348985..cc00ce3 100

Re: [PATCH] iio: adc: Add support for DLN2 ADC

2017-06-21 Thread Peter Meerwald-Stadler
> This patch adds support for Diolan DLN2 ADC via IIO's ADC interface. > ADC is the fourth and final component of the DLN2 for the kernel. comments below > Signed-off-by: Jack Andersen > --- > drivers/iio/adc/Kconfig| 9 + > drivers/iio/adc/Makefile | 1 + > drivers/iio/adc/dln2-adc.

Re: [PATCH] radio: wl1273: add check on core->write() return value

2017-06-21 Thread Baruch Siach
Hi Gustavi, On Wed, Jun 21, 2017 at 11:01:22PM -0500, Gustavo A. R. Silva wrote: > Check return value from call to core->write(), so in case of > error print error message, jump to goto label fail and eventually > return. > > Addresses-Coverity-ID: 1226943 > Signed-off-by: Gustavo A. R. Silva >

[PATCH v6 0/2] IV Generation algorithms for dm-crypt

2017-06-21 Thread Binoy Jayan
=== dm-crypt optimization for larger block sizes === Currently, the iv generation algorithms are implemented in dm-crypt.c. The goal is to move th

[PATCH v6 1/2] crypto: Add IV generation algorithms

2017-06-21 Thread Binoy Jayan
Just for reference. Not for merging. Currently, the iv generation algorithms are implemented in dm-crypt.c. The goal is to move these algorithms from the dm layer to the kernel crypto layer by implementing them as template ciphers so they can be implemented in hardware for performance. As part of

[PATCH v6 2/2] crypto: Multikey template for essiv

2017-06-21 Thread Binoy Jayan
Just for reference and to get the performance numbers. Not for merging. Depends on the following patches by Gilad: MAINTAINERS: add Gilad BY as maintainer for ccree staging: ccree: add devicetree bindings staging: ccree: add TODO list staging: add ccree crypto driver A multi key template impl

Re: [PATCH 32/32] ext4: add nombcache mount option

2017-06-21 Thread Theodore Ts'o
On Wed, Jun 21, 2017 at 04:46:48PM -0700, Tahsin Erdogan wrote: > Remount option handling is a bit strange. If an option is not > specified, it is not automatically cleared in sbi->s_mount_opt. So, > once nombcache option is set in the original mount, it is not possible > to clear it. I don't know

Re: [PATCH V4 2/2] powerpc/powernv : Add support for OPAL-OCC command/response interface

2017-06-21 Thread Shilpasri G Bhat
Hi Cyril, On 06/22/2017 06:28 AM, Cyril Bur wrote: > On Wed, 2017-06-21 at 13:36 +0530, Shilpasri G Bhat wrote: >> In P9, OCC (On-Chip-Controller) supports shared memory based >> commad-response interface. Within the shared memory there is an OPAL >> command buffer and OCC response buffer that can

Re: [lkp-robot] [mm] 1be7107fbe: kernel_BUG_at_mm/mmap.c

2017-06-21 Thread Hugh Dickins
On Wed, 21 Jun 2017, Oleg Nesterov wrote: > On 06/21, Linus Torvalds wrote: > > > > Hugh, Michal - I also merged Helge's drop-up cleanup, is there > > anything I've missed? I think Oleg had something, but I can't recall > > right now, and I might just have missed it. > > Well, I meant, perhaps we

[PATCH] dvb-usb-v2: lmedm04: remove unnecessary variable in lme2510_stream_restart()

2017-06-21 Thread Gustavo A. R. Silva
Remove unnecessary variable _ret_ and refactor the code. Addresses-Coverity-ID: 1226934 Signed-off-by: Gustavo A. R. Silva --- drivers/media/usb/dvb-usb-v2/lmedm04.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/media/usb/dvb-usb-v2/lmedm04.c b/drivers/m

[PATCH] docs/memory-hotplug: adjust the explanation of valid_zones sysfs

2017-06-21 Thread Wei Yang
After commit "mm, memory_hotplug: do not associate hotadded memory to zones until online", the meaning of valid_zones is changed. 1. When the memory block is online, it returns the onlined zone name 2. We won't have "Movable Normal" case, because default_zone couldn't be MOVABLE This patch adjust

[PATCH 5/6] ARM: sun8i: a83t: Add device node for AXP813 PMIC

2017-06-21 Thread Chen-Yu Tsai
The AXP813/AXP818 PMICs used with the A83T/H8 SoCs are actually 2 dies in one package sharing the serial bus (I2C/RSB) pins. One die is the actual PMIC. The other is an AC100 codec / RTC combo chip. This patch adds a device node for the PMIC die. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dt

[PATCH 0/6] mfd: axp20x: Add basic support for AXP813

2017-06-21 Thread Chen-Yu Tsai
Hi everyone, This series adds basic device tree bindings and driver support for the AXP813/818 PMICs. The two models are identical when comparing their datasheets. These PMICs are actually two dies in one package: one being the actual PMIC, the other being an AC100 codec/RTC combo chip. The latter

[PATCH 4/6] ARM: sun8i: a83t: Add device node and pinmux setting for RSB controller

2017-06-21 Thread Chen-Yu Tsai
The A83T has an RSB controller for talking to the PMIC and audio codec. Add a device node for it. Since there is only one usable pinmux setting, for it, add that as well. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t.dtsi | 22 ++ 1 file changed, 22 insertions(

[PATCH 2/6] dt-bindings: mfd: axp20x: Introduce bindings for AXP813

2017-06-21 Thread Chen-Yu Tsai
The X-Powers AXP813 is a PMIC designed to be paired with Allwinner's A83T SoC. There is also an AXP818, which is paired with the H8 SoC. The two models seem to be identical, apart from the external markings. This patch introduces the basic mfd and regulator bindings for the AXP813. Signed-off-by

[PATCH 3/6] mfd: axp20x: Add support for AXP813 PMIC

2017-06-21 Thread Chen-Yu Tsai
The X-Powers AXP813 PMIC is normally used with Allwinner's A83T SoC. It has the same range of functions as other X-Powers PMICs, such as DC-DC buck converter and linear regulator outputs, AC-IN and VBUS power supplies, power button trigger, GPIOs, ADCs, and a battery charger. Note that the IRQ tab

[PATCH 6/6] ARM: sun8i: a83t: Enable AC100 codec / RTC combo chip in AXP813 PMIC

2017-06-21 Thread Chen-Yu Tsai
The AXP813/AXP818 PMICs used with the A83T/H8 SoCs are actually 2 dies in one package sharing the serial bus (I2C/RSB) pins. One die is the actual PMIC. The other is an AC100 codec / RTC combo chip. This patch enables the RSB controller and adds the device nodes for the AC100 chip under it. Signe

[PATCH 1/6] dt-bindings: mfd: axp20x: Add AXP806 to supported list of chips

2017-06-21 Thread Chen-Yu Tsai
The binding already lists compatibles and regulators for the AXP806, but it is missing from the list of supported chips at the beginning. Add it. Fixes: 204ae2963e10 ("mfd: axp20x: Add bindings for AXP806 PMIC") Signed-off-by: Chen-Yu Tsai --- Documentation/devicetree/bindings/mfd/axp20x.txt |

Re: [RFC PATCH 2/2] mm, fs: daxfile, an interface for byte-addressable updates to pmem

2017-06-21 Thread Andy Lutomirski
On Wed, Jun 21, 2017 at 5:02 PM, Dave Chinner wrote: > > You seem to be calling the "fdatasync on every page fault" the It's the opposite of fdatasync(). It needs to sync whatever metadata is needed to find the data. The data doesn't need to be synced. > "lightweight" option. That's the brute-

Re: [PATCH 2/6] drivers base/arch_topology: frequency-invariant load-tracking support

2017-06-21 Thread Viresh Kumar
On 21-06-17, 17:57, Morten Rasmussen wrote: > It is true that this patch relies on the notifiers, but I don't see how > that prevents us from adding a non-notifier based solution for > fast-switch enabled platforms later? No it doesn't, but I thought it would be better to have a single solution (i

[PATCH] radio: wl1273: add check on core->write() return value

2017-06-21 Thread Gustavo A. R. Silva
Check return value from call to core->write(), so in case of error print error message, jump to goto label fail and eventually return. Addresses-Coverity-ID: 1226943 Signed-off-by: Gustavo A. R. Silva --- drivers/media/radio/radio-wl1273.c | 15 +-- 1 file changed, 13 insertions(+),

Re: linux-next: Tree for Jun 7 (arch/x86/mm/tlb.c: events)

2017-06-21 Thread Randy Dunlap
6/mm/tlb.c: In function 'flush_tlb_all': >> ../arch/x86/mm/tlb.c:334:21: error: 'NR_TLB_REMOTE_FLUSH' undeclared (first >> use in this function) >> count_vm_tlb_event(NR_TLB_REMOTE_FLUSH); >> ^ >> ../include/linux/vmstat.h:90:49: note: in definition of macro >> 'count_vm_tlb_event' >> #define count_vm_tlb_event(x)count_vm_event(x) > > Do you know if this has been fixed? > I cannot repro it on linux-next of 20170621. -- ~Randy

Re: [PATCH 2/6] drivers base/arch_topology: frequency-invariant load-tracking support

2017-06-21 Thread Viresh Kumar
On 21-06-17, 17:38, Dietmar Eggemann wrote: > On 20/06/17 07:17, Viresh Kumar wrote: > > Any specific reason on why are we doing this from PRECHANGE and > > not POSTCHANGE ? i.e. we are doing this before the frequency is > > really updated. > > Not really. In case I get a CPUFREQ_POSTCHANGE all t

Re: [PATCH 1/1] futex: remove duplicated code and fix UB

2017-06-21 Thread Darren Hart
On Wed, Jun 21, 2017 at 01:53:18PM +0200, Jiri Slaby wrote: > There is code duplicated over all architecture's headers for > futex_atomic_op_inuser. Namely op decoding, access_ok check for uaddr, > and comparison of the result. > > Remove this duplication and leave up to the arches only the needed

Re: [PATCH NET] net/hns:bugfix of ethtool -t phy self_test

2017-06-21 Thread l00371289
Hi, Andrew On 2017/6/22 11:35, Andrew Lunn wrote: >> I don't think returning to user space is an option, because it mean >> ethtool phy self test would fail because if availability of some software >> resoure, which is not some application would expect. here is what I can >> think of: >> >> driver

[Patch v2 3/3] arm64: dts: register Hi3660's thermal sensor

2017-06-21 Thread Tao Wang
Bind thermal sensor driver for Hi3660. Signed-off-by: Tao Wang Signed-off-by: Leo Yan --- Changes in v2: - rebase changes on linux next arch/arm64/boot/dts/hisilicon/hi3660.dtsi |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64

[Patch v2 1/3] dt-bindings: Document the hi3660 thermal sensor bindings

2017-06-21 Thread Tao Wang
This adds documentation of device tree bindings for the thermal sensor controller of hi3660 SoC. Signed-off-by: Tao Wang --- Changes in v2: - remove redundant property .../devicetree/bindings/thermal/hi3660-thermal.txt | 16 1 file changed, 16 insertions(+) create mode 10064

[Patch v2 2/3] thermal: hisilicon: add thermal sensor driver for Hi3660

2017-06-21 Thread Tao Wang
This patch adds the support for thermal sensor of Hi3660 SoC. this will register sensors for thermal framework and use device tree to bind cooling device. Signed-off-by: Tao Wang Signed-off-by: Leo Yan --- Changes in v2: - correct alphabet order - correct compatible name drivers/thermal/Kconfi

[PATCH V5 Resend] PM / OPP: Use - instead of @ for DT entries

2017-06-21 Thread Viresh Kumar
Compiling the DT file with W=1, DTC warns like follows: Warning (unit_address_vs_reg): Node /opp_table0/opp@10 has a unit name, but no reg property Fix this by replacing '@' with '-' as the OPP nodes will never have a "reg" property. Reported-by: Krzysztof Kozlowski Reported-by: Masahir

Re: [RFC][PATCH 0/2] x86/boot/KASLR: Restrict kernel to be randomized in mirror regions if existed

2017-06-21 Thread Chao Fan
On Thu, Jun 22, 2017 at 11:20:32AM +0800, Baoquan He wrote: >On 06/22/17 at 11:10am, Chao Fan wrote: >> Hi all, >> >> After testing this issue for 100 times in total, I think this patchset >> works well. > >Thanks for your effort, Chao! No problem, and many thanks for your patch, Bao! > >Then I

Re: [PATCH NET] net/hns:bugfix of ethtool -t phy self_test

2017-06-21 Thread Andrew Lunn
> I don't think returning to user space is an option, because it mean > ethtool phy self test would fail because if availability of some software > resoure, which is not some application would expect. here is what I can > think of: > > driver/net/ethernet/hisilicon/hns/hns_ethtool.c > int phy_loop

Re: [PATCH 01/12] coresight replicator: Cleanup programmable replicator naming

2017-06-21 Thread Rob Herring
On Tue, Jun 20, 2017 at 11:44 AM, Mathieu Poirier wrote: > On 18 June 2017 at 08:04, Rob Herring wrote: >> On Tue, Jun 13, 2017 at 10:55:28AM -0600, Mathieu Poirier wrote: >>> On Mon, Jun 12, 2017 at 03:36:40PM +0100, Suzuki K Poulose wrote: >>> > The Linux coresight drivers define the programmab

[PATCH] tuners: mxl5005s: remove useless variable assignments

2017-06-21 Thread Gustavo A. R. Silva
Values assigned to variables Fmax and Fmin at lines 2740 and 2741 are overwritten at lines 2754 and 2755 before they can be used. This makes such variable assignments useless. Addresses-Coverity-ID: 1226952 Addresses-Coverity-ID: 1226953 Signed-off-by: Gustavo A. R. Silva --- drivers/media/tuner

Re: [RFC][PATCH 0/2] x86/boot/KASLR: Restrict kernel to be randomized in mirror regions if existed

2017-06-21 Thread Baoquan He
On 06/22/17 at 11:10am, Chao Fan wrote: > Hi all, > > After testing this issue for 100 times in total, I think this patchset > works well. Thanks for your effort, Chao! Then I will repost with some modification according to the kbuild test report and your comment, and thanks again for that. Mayb

[PATCH] iio: adc: Add support for DLN2 ADC

2017-06-21 Thread Jack Andersen
This patch adds support for Diolan DLN2 ADC via IIO's ADC interface. ADC is the fourth and final component of the DLN2 for the kernel. Signed-off-by: Jack Andersen --- drivers/iio/adc/Kconfig| 9 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/dln2-adc.c | 648 +++

[PATCH] DLN2 module for ADC interface

2017-06-21 Thread Jack Andersen
Hello, I've been having to blacklist the dln2 module in order to use Diolan's iffy libusb-based "driver". I'd much rather use dln2, but the lack of ADC support has been an issue for my robotics application. I've extended the dln2 module with an additional platform driver to expose the ADC using t

Re: [PATCH v1 1/2] dt-binding: ptp: add bindings document for dte based ptp clock

2017-06-21 Thread Rob Herring
On Tue, Jun 20, 2017 at 3:48 PM, Scott Branden wrote: > Hi Rob, > > > On 17-06-18 07:04 AM, Rob Herring wrote: >> >> On Mon, Jun 12, 2017 at 01:26:00PM -0700, Arun Parameswaran wrote: >>> >>> Add device tree binding documentation for the Broadcom DTE >>> PTP clock driver. >>> >>> Signed-off-by: Ar

RE: [systemd-devel] [WIP PATCH 0/4] Rework the unreliable LID switch exported by ACPI

2017-06-21 Thread Zheng, Lv
Hi, > From: Bastien Nocera [mailto:had...@hadess.net] > Subject: Re: [systemd-devel] [WIP PATCH 0/4] Rework the unreliable LID switch > exported by ACPI > > On Tue, 2017-06-20 at 02:45 +, Zheng, Lv wrote: > > Hi, > > > > > From: Bastien Nocera [mailto:had...@hadess.net] > > > Subject: Re: [s

[PATCH 2/2] x86/apic: Make arch_init_msi/htirq_domain __init

2017-06-21 Thread Dou Liyang
These two functions are only called by arch_early_irq_init() which is an `initialization' function, So mark them __init as well. Signed-off-by: Dou Liyang --- arch/x86/kernel/apic/htirq.c | 2 +- arch/x86/kernel/apic/msi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/

Re: [RFC][PATCH 0/2] x86/boot/KASLR: Restrict kernel to be randomized in mirror regions if existed

2017-06-21 Thread Chao Fan
Hi all, After testing this issue for 100 times in total, I think this patchset works well. The size of physical memory in my test machine is 229G, the size of mirror region is 26G. In the 100 times, 50 times are with this patchset, 50 times are without it. Here is my test result: --

Re: [PATCH 1/7] platform/x86: fujitsu-laptop: do not use kfifo for storing hotkey scancodes

2017-06-21 Thread Jonathan Woithe
Hi Darren On Wed, Jun 21, 2017 at 07:44:13PM -0700, Darren Hart wrote: > > I think the buffer size could probably be reduced a little without impacting > > on functionality. I suspect the value was chosen so as to be well above the > > number of events which could be generated ahead of a button r

linux-next: manual merge of the kvms390 tree with the s390 tree

2017-06-21 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvms390 tree got a conflict in: arch/s390/kvm/gaccess.c between commit: a75259825401 ("s390: rename struct psw_bits members") from the s390 tree and commit: 8993df124642 ("KVM: s390: implement instruction execution protection for emulated") from

Re: [PATCH v3 11/11] x86/mm: Try to preserve old TLB entries using PCID

2017-06-21 Thread Andy Lutomirski
On Wed, Jun 21, 2017 at 6:38 AM, Thomas Gleixner wrote: > On Tue, 20 Jun 2017, Andy Lutomirski wrote: >> This patch uses PCID differently. We use a PCID to identify a >> recently-used mm on a per-cpu basis. An mm has no fixed PCID >> binding at all; instead, we give it a fresh PCID each time it'

Re: [PATCH v3 05/11] x86/mm: Track the TLB's tlb_gen and update the flushing algorithm

2017-06-21 Thread Andy Lutomirski
On Wed, Jun 21, 2017 at 11:44 AM, Borislav Petkov wrote: > On Tue, Jun 20, 2017 at 10:22:11PM -0700, Andy Lutomirski wrote: >> + this_cpu_write(cpu_tlbstate.ctxs[0].ctx_id, next->context.ctx_id); >> + this_cpu_write(cpu_tlbstate.ctxs[0].tlb_gen, >> +atomic64_read(&next-

  1   2   3   4   5   6   7   8   9   10   >