[PATCH v2 7/7] arm64: dts: exynos: configure TV path clocks for Ultra HD modes

2017-01-22 Thread Andrzej Hajda
Ultra HD modes requires clock ticking at increased rate. Signed-off-by: Andrzej Hajda --- arch/arm64/boot/dts/exynos/exynos5433.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/exynos5433.dtsi b/arch/arm64/boot/dts/exynos/exynos5433.dtsi index f12

Re: [PATCH 10/21] MIPS memblock: Discard bootmem allocator initialization

2017-01-22 Thread Marcin Nowakowski
Hi Serge, On 19.12.2016 03:07, Serge Semin wrote: Bootmem allocator initialization needs to be discarded. PFN limit constants are still in use by some subsystems, so they need to be properly initialized. The initialization is moved into a separate method and performed with help of commonly used

Re: [PATCH 00/21] MIPS memblock: Remove bootmem code and switch to NO_BOOTMEM

2017-01-22 Thread Marcin Nowakowski
Hi Serge, Thanks for this patch series, it's really useful. I've tested it on Malta and Ci40 and it seems to work well (I've posted a few small comments separately). On 19.12.2016 03:07, Serge Semin wrote: Most of the modern platforms supported by linux kernel have already been cleaned up o

Re: [PATCH 04/21] MIPS memblock: Alter user-defined memory parameter parser

2017-01-22 Thread Marcin Nowakowski
Hi Serge, On 19.12.2016 03:07, Serge Semin wrote: Both new memblock and boot_mem_map subsystems need to be fully cleared before a new memory region is added. So the early parser is correspondingly modified. Signed-off-by: Serge Semin --- arch/mips/kernel/setup.c | 67 +

Re: [Intel-gfx] [RESEND PATCH v14 2/2] drm/i915: Put "cooked" vlank counters in frame CRC lines

2017-01-22 Thread Daniel Vetter
On Mon, Jan 16, 2017 at 10:12:36AM +0100, Tomeu Vizoso wrote: > On 10 January 2017 at 17:31, Daniel Vetter wrote: > > On Tue, Jan 10, 2017 at 05:54:57PM +0200, Ville Syrjälä wrote: > >> On Tue, Jan 10, 2017 at 02:43:05PM +0100, Tomeu Vizoso wrote: > >> > Use drm_accurate_vblank_count so we have th

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

2017-01-22 Thread Chris Packham
On 21/01/17 13:48, Stephen Boyd wrote: > On 01/13, Chris Packham wrote: >> @@ -158,6 +170,14 @@ static const struct coreclk_soc_desc axp_coreclks = { >> .num_ratios = ARRAY_SIZE(axp_coreclk_ratios), >> }; >> >> +static const struct coreclk_soc_desc mv98dx3236_coreclks = { >> +.get_tclk_fr

Nuevo Etiquetado Frontal Nutrimental

2017-01-22 Thread Ojeda Mauricio
Últimos Lugares, confirme su asistencia ahora! Distinguido(a) Cliente, tenemos el gusto de invitarle al evento: Etiquetado Nutrimental de Alimentos y Bebidas que se impartirá en: 27 Enero México, D.F. La etiqueta representa un valioso instrumento de información para el consumidor y su primer co

Re: [PATCH v3] zram: extend zero pages to same element pages

2017-01-22 Thread Minchan Kim
On Mon, Jan 23, 2017 at 02:17:23PM +0800, zhouxianrong wrote: > i am not sure as well about reverse hurting cache. > > On 2017/1/23 14:13, Joonsoo Kim wrote: > >On Mon, Jan 23, 2017 at 01:47:20PM +0900, Minchan Kim wrote: > >>Hello, > >> > >>When I look at first patch, I wanted to use increment lo

[PATCH] ARM: tegra: paz00: fix __initdata placement

2017-01-22 Thread Dmitry Torokhov
To have expected effect the __initdata attribute should go after variable name and before initializer.` Signed-off-by: Dmitry Torokhov --- arch/arm/mach-tegra/board-paz00.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-tegra/board-paz00.c b/arch/arm/mach-tegr

Re: [PATCH] mm: extend zero pages to same element pages for zram

2017-01-22 Thread Minchan Kim
On Mon, Jan 23, 2017 at 04:13:39PM +0900, Sergey Senozhatsky wrote: > On (01/23/17 15:27), Joonsoo Kim wrote: > > Hello, > > > > Think about following case in 64 bits kernel. > > > > If value pattern in the page is like as following, we cannot detect > > the same page with 'unsigned int' element.

[PATCH 2/2] device property: allow constify properties

2017-01-22 Thread Dmitry Torokhov
There is no reason why statically defined properties should be modifiable, so let's make device_add_properties() and the rest of pset_*() functions to take const pointers to properties. This will allow us to mark properties as const/__initconst at definition sites. Signed-off-by: Dmitry Torokhov

[PATCH 1/2] device property: export code duplicating array of property entries

2017-01-22 Thread Dmitry Torokhov
When augmenting ACPI-enumerated devices with additional property data based on DMI info, a module has often several potential property sets, with only one being active on a given box. In order to save memory it should be possible to mark everything and __initdata or __initconst, execute DMI match e

Re: [PATCH v1] sound: pci: ymfpci: ymfpci_main:- Handle return NULL error from ioremap_nocache

2017-01-22 Thread Arvind Yadav
I will take care your comments. Thanks -Arvind On Monday 23 January 2017 12:54 PM, Julia Lawall wrote: or general cleanup patches like this one, you can use the following options, that will just send the patch to the maintainers, and not to everyone who has ever touched the

Re: [PATCH] ARM: dts: vf610-zii-dev: add EEPROM entry to Rev C

2017-01-22 Thread Shawn Guo
On Thu, Jan 12, 2017 at 06:06:20PM -0500, Vivien Didelot wrote: > The ZII Dev Rev C board has EEPROMs hanging the 88E6390 Ethernet switch > chips. Add an "eeprom-length" property to allow access from ethtool. > > Signed-off-by: Vivien Didelot Applied, thanks.

Re: [PATCH] seccomp: dump core when using SECCOMP_RET_KILL

2017-01-22 Thread Mike Frysinger
On Sun, Jan 22, 2017 at 4:10 PM, James Morris wrote: > On Fri, 20 Jan 2017, Kees Cook wrote: > > Yup, I think this is fine. The additional kernel code executed before > > the do_exit() is relatively limited, and is equivalent to leaving > > kill(self, SIGSEGV) exposed in a seccomp filter. Setting a

Re: [PATCH linux-next 1/1] usb: gadget: udc: atmel: Update endpoint allocation scheme

2017-01-22 Thread Ludovic Desroches
Hi Cristian, Minor comments about syntax otherwise Reviewed-by: Ludovic Desroches On Fri, Jan 20, 2017 at 05:40:59PM +0200, cristian.bir...@microchip.com wrote: > From: Cristian Birsan > > Update atmel udc driver with a new enpoint allocation scheme. The data > sheet requires that all endpoint

[PATCH v2] ALSA: ymfpci: Handle return NULL error from ioremap_nocache

2017-01-22 Thread Arvind Yadav
Here, If ioremap_nocache will fail. It will return NULL. Kernel can run into a NULL-pointer dereference. This error check will avoid NULL pointer dereference. Signed-off-by: Arvind Yadav --- sound/pci/ymfpci/ymfpci_main.c | 4 1 file changed, 4 insertions(+) diff --git a/sound/pci/ymfpci/y

[PATCH v9 2/2] tpm: add securityfs support for TPM 2.0 firmware event log

2017-01-22 Thread Nayna Jain
Unlike the device driver support for TPM 1.2, the TPM 2.0 does not support the securityfs pseudo files for displaying the firmware event log. This patch enables support for providing the TPM 2.0 event log in binary form. TPM 2.0 event log supports a crypto agile format that records multiple digest

[PATCH v9 0/2] securityfs support for TPM 2.0 firmware event log

2017-01-22 Thread Nayna Jain
The TPM device driver defines ascii and binary methods for displaying the TPM 1.2 event log via securityfs files, which are needed for validating a TPM quote. The device driver for TPM 2.0 does not have similar support for displaying the TPM 2.0 event log. This patch set adds the support for displa

[PATCH v9 1/2] tpm: enhance read_log_of() to support Physical TPM event log

2017-01-22 Thread Nayna Jain
Physical TPMs use Open Firmware Device Tree bindings that are similar to the IBM Power virtual TPM to support event log. However, these properties store the values in different endianness for Physical and Virtual TPM. This patch fixes the endianness issue by doing appropriate conversion based on P

Re: [PATCH v1] sound: pci: ymfpci: ymfpci_main:- Handle return NULL error from ioremap_nocache

2017-01-22 Thread Julia Lawall
Some comments on the patch header: * No need to put v1 on a patch. If you are asked to revise it, then you can start with v2. * sound: pci: ymfpci: ymfpci_main is not the proper subject line for this file. Do git log --oneline and see what others have done. * There should not be a - after the

[PATCH] pinctrl: berlin-bg4ct: fix the value for "sd1a" of pin SCRD0_CRD_PRES

2017-01-22 Thread Jisheng Zhang
This should be a typo. Signed-off-by: Jisheng Zhang --- drivers/pinctrl/berlin/berlin-bg4ct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/berlin/berlin-bg4ct.c b/drivers/pinctrl/berlin/berlin-bg4ct.c index 09172043d589..c617ec49e9ed 100644 --- a/drivers/p

Re: [PATCH 1/2] hwmon: (lm70) Utilize dev_warn instead of pr_warn

2017-01-22 Thread Julia Lawall
On Sun, 22 Jan 2017, Guenter Roeck wrote: > On 01/22/2017 10:43 PM, Joe Perches wrote: > > On Sat, 2017-01-21 at 11:20 -0800, Florian Fainelli wrote: > > > We have a device reference, utilize it instead of pr_warn(). > > > > There is at least one more hwmon to convert in applesmc.c > > > > Perha

[RESEND PATCH] usb: chipidea: usb2: delete the redundant setting default DMA mask code

2017-01-22 Thread Jisheng Zhang
Similar as commit 2b2fe36def08 ("usb: chipidea: imx: delete the redundant setting default DMA mask code"), the ci_hdrc_usb2 platform device is also created by device tree, the default DMA mask should be already set by of_dma_configure when the device are created. So delete the redundant code at dri

Re: [PATCH] mm: extend zero pages to same element pages for zram

2017-01-22 Thread Sergey Senozhatsky
On (01/23/17 15:27), Joonsoo Kim wrote: > Hello, > > Think about following case in 64 bits kernel. > > If value pattern in the page is like as following, we cannot detect > the same page with 'unsigned int' element. > > ... > > 4 bytes is 0x and next 4 by

Re: [PATCH v2 22/26] drm/rockchip: vop: test for P{H,V}SYNC

2017-01-22 Thread Mark yao
On 2017年01月22日 00:31, John Keeping wrote: When connected to the MIPI DSI output, we need to use N{H,V}SYNC for the internal connection but these flags are meaningless for DSI panels. Switch the test so that we do not set the P{H,V}SYNC bits unless the mode requires it. Signed-off-by: John Keepin

[RESEND PATCH] usb: chipidea: delete an useless header include

2017-01-22 Thread Jisheng Zhang
is for net phy drivers, we don't need it. Signed-off-by: Jisheng Zhang --- drivers/usb/chipidea/core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 3dbb4a21ab44..77078083e9fb 100644 --- a/drivers/usb/chipidea/core.c +++ b/dri

[PATCH v1] sound: pci: ymfpci: ymfpci_main:- Handle return NULL error from ioremap_nocache

2017-01-22 Thread Arvind Yadav
Here, If ioremap_nocache will fail. It will return NULL. Kernel can run into a NULL-pointer dereference. This error check will avoid NULL pointer dereference. Signed-off-by: Arvind Yadav --- sound/pci/ymfpci/ymfpci_main.c | 4 1 file changed, 4 insertions(+) diff --git a/sound/pci/ymfpci/y

Re: [PATCH 00/13] dax, pmem: move cpu cache maintenance to libnvdimm

2017-01-22 Thread Dan Williams
On Sun, Jan 22, 2017 at 10:37 PM, Matthew Wilcox wrote: > From: Christoph Hellwig [mailto:h...@lst.de] >> On Sun, Jan 22, 2017 at 06:39:28PM +, Matthew Wilcox wrote: >> > Two guests on the same physical machine (or a guest and a host) have access >> > to the same set of physical addresses. Th

Re: [PATCH v2 1/1] ARM: dts: add Armadeus Systems OPOS6UL and OPOS6ULDEV support

2017-01-22 Thread Shawn Guo
On Tue, Jan 10, 2017 at 02:32:53PM +0100, Sébastien Szymanski wrote: > 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-d

Re: [PATCH 1/2] hwmon: (lm70) Utilize dev_warn instead of pr_warn

2017-01-22 Thread Guenter Roeck
On 01/22/2017 10:43 PM, Joe Perches wrote: On Sat, 2017-01-21 at 11:20 -0800, Florian Fainelli wrote: We have a device reference, utilize it instead of pr_warn(). There is at least one more hwmon to convert in applesmc.c Perhaps a coccinelle script? Two questions for Julia Lawall: o is ther

Re: [PATCH 2/2] gpio: aspeed: Add banks Y, Z, AA, AB and AC

2017-01-22 Thread kbuild test robot
Hi Andrew, [auto build test ERROR on gpio/for-next] [also build test ERROR on v4.10-rc5 next-20170123] [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/Andrew-Jeffery/gpio-aspeed-Implement-banks-Y

[PATCH v4 net-next] net: mvneta: implement .set_wol and .get_wol

2017-01-22 Thread Jisheng Zhang
From: Jingju Hou From: Jingju Hou The mvneta itself does not support WOL, but the PHY might. So pass the calls to the PHY Signed-off-by: Jingju Hou Signed-off-by: Jisheng Zhang --- since v3: - really fix the build error since v2,v1: - using phy_dev member in struct net_device - add commi

Re: [PATCH] ARM: imx: hide unused variable in #ifdef

2017-01-22 Thread Shawn Guo
On Tue, Jan 10, 2017 at 01:19:05PM +0100, Arnd Bergmann wrote: > A bugfix added a new local variable that is only used inside of an #ifdef > section, and unused if CONFIG_PERF_EVENTS is disabled: > > arch/arm/mach-imx/mmdc.c:63:25: warning: 'cpuhp_mmdc_state' defined but not > used [-Wunused-vari

Re: [PATCH 1/2] hwmon: (lm70) Utilize dev_warn instead of pr_warn

2017-01-22 Thread Joe Perches
On Sun, 2017-01-22 at 22:43 -0800, Joe Perches wrote: > Two questions for Julia Lawall: > > o is there a better way to do this than repeat the blocks > one for each replacement > o can struct device * dev be made an arbitrary identifier > > $ cat dev_printk.cocci > @@ > identifier fn; > type T;

Re: [PATCH 2/2] gpio: aspeed: Add banks Y, Z, AA, AB and AC

2017-01-22 Thread kbuild test robot
Hi Andrew, [auto build test ERROR on gpio/for-next] [also build test ERROR on v4.10-rc5 next-20170123] [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/Andrew-Jeffery/gpio-aspeed-Implement-banks-Y

[PATCH v2] x86/crash: Update the stale comment in reserve_crashkernel()

2017-01-22 Thread Xunlei Pang
CRASH_KERNEL_ADDR_MAX has been missing for a long time, update it with more detailed explanation. Cc: Robert LeBlanc Cc: Baoquan He Signed-off-by: Xunlei Pang --- arch/x86/kernel/setup.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/setup.c b/arch/x86/k

答复: [PATCH] mm: extend zero pages to same element pages for zram

2017-01-22 Thread zhouxianrong
Yes, memset's prototype is int but the implement of arch is unsigned char; for example, in arm64 .weak memset ENTRY(__memset) ENTRY(memset) mov dst, dstin /* Preserve return value. */ and A_lw, val, #255 orr A_lw, A_lw, A_lw, lsl #8 orr

Re: [PATCH 1/2] hwmon: (lm70) Utilize dev_warn instead of pr_warn

2017-01-22 Thread Joe Perches
On Sat, 2017-01-21 at 11:20 -0800, Florian Fainelli wrote: > We have a device reference, utilize it instead of pr_warn(). There is at least one more hwmon to convert in applesmc.c Perhaps a coccinelle script? Two questions for Julia Lawall: o is there a better way to do this than repeat the blo

RE: [PATCH 00/13] dax, pmem: move cpu cache maintenance to libnvdimm

2017-01-22 Thread Matthew Wilcox
From: Christoph Hellwig [mailto:h...@lst.de] > On Sun, Jan 22, 2017 at 06:39:28PM +, Matthew Wilcox wrote: > > Two guests on the same physical machine (or a guest and a host) have access > > to the same set of physical addresses. This might be an NV-DIMM, or it > > might > > just be DRAM (for

Re: [PATCH] mm: extend zero pages to same element pages for zram

2017-01-22 Thread Matthew Wilcox
On Sun, Jan 22, 2017 at 10:58:38AM +0800, zhouxianrong wrote: > 1. memset is just set a int value but i want to set a long value. memset doesn't set an int value. DESCRIPTION The memset() function fills the first n bytes of the memory area pointed to by s with the constant by

Re: [PATCH v2] tags: honor COMPILED_SOURCE with apart output directory

2017-01-22 Thread Robert Jarzmik
Robert Jarzmik writes: > When the kernel is compiled with an "O=" argument, the object files are > not necessarily in the source tree, and more probably in another tree. > > In this situation, the current used check doesn't work, and > COMPILED_SOURCE tags is broken with O= builds. > > This patch

Re: [PATCH] mm: extend zero pages to same element pages for zram

2017-01-22 Thread Joonsoo Kim
On Mon, Jan 23, 2017 at 01:03:47PM +0900, Sergey Senozhatsky wrote: > On (01/23/17 11:58), Joonsoo Kim wrote: > > Hello, > > > > On Sun, Jan 22, 2017 at 10:58:38AM +0800, zhouxianrong wrote: > > > 1. memset is just set a int value but i want to set a long value. > > > > Sorry for late review. > >

Re: [PATCH] zram: remove obsolete sysfs attrs

2017-01-22 Thread Sergey Senozhatsky
On (01/23/17 15:04), Minchan Kim wrote: > On Wed, Jan 18, 2017 at 12:58:38PM +0900, Sergey Senozhatsky wrote: > > We had a deprecated_attr_warn() warning for 2 years and now the > > time has come and we finally can do the cleanup. > > > > The plan was as follows: > > > > : per-stat sysfs attribut

[PATCH net] r8152: don't execute runtime suspend if the tx is not empty

2017-01-22 Thread Hayes Wang
Runtime suspend shouldn't be executed if the tx queue is not empty, because the device is not idle. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 0e99af0..e1466b

Re: [PATCH v3] zram: extend zero pages to same element pages

2017-01-22 Thread zhouxianrong
i am not sure as well about reverse hurting cache. On 2017/1/23 14:13, Joonsoo Kim wrote: On Mon, Jan 23, 2017 at 01:47:20PM +0900, Minchan Kim wrote: Hello, When I look at first patch, I wanted to use increment loop but didn't tell to you because that small piece of code is no harmful for rea

Re: [PATCH -next] staging: greybus: audio_gb.c: Change uint32_t to u32

2017-01-22 Thread Vaibhav Agarwal
On Sun, Jan 22, 2017 at 11:19 PM, Marcos Paulo de Souza wrote: > Change uint32_t to u32, solved the issue reported by checkpatch.pl: > > CHECK: Prefer kernel type 'u32' over 'uint32_t' > + uint32_t *format, uint32_t *rate, u8 *channels, > > CHECK: Prefer kernel type 'u32' ove

Re: [PATCH v2 25/26] drm/rockchip: dw-mipi-dsi: add reset control

2017-01-22 Thread Chris Zhong
Reviewed-by: Chris Zhong On 01/22/2017 12:31 AM, John Keeping wrote: In order to fully reset the state of the MIPI controller we must assert this reset. This is slightly more complicated than it could be in order to maintain compatibility with device trees that do not specify the reset propert

Re: [PATCH v2 24/26] drm/rockchip: dw-mipi-dsi: support non-burst modes

2017-01-22 Thread Chris Zhong
Reviewed-by: Chris Zhong On 01/22/2017 12:31 AM, John Keeping wrote: Signed-off-by: John Keeping --- Unchanged in v2 --- drivers/gpu/drm/rockchip/dw-mipi-dsi.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c b/driv

Re: [PATCH v3] zram: extend zero pages to same element pages

2017-01-22 Thread Joonsoo Kim
On Mon, Jan 23, 2017 at 01:47:20PM +0900, Minchan Kim wrote: > Hello, > > When I look at first patch, I wanted to use increment loop but didn't > tell to you because that small piece of code is no harmful for readbility > to me so I want to keep author's code rather than pointing the trivial > whi

Re: [PATCH] zram: remove obsolete sysfs attrs

2017-01-22 Thread Minchan Kim
On Wed, Jan 18, 2017 at 12:58:38PM +0900, Sergey Senozhatsky wrote: > We had a deprecated_attr_warn() warning for 2 years and now the > time has come and we finally can do the cleanup. > > The plan was as follows: > > : per-stat sysfs attributes are considered to be deprecated. > : The basic stra

Re: [PATCH -next] init/main: Init jump_labels before they are used to build zonelists

2017-01-22 Thread Michael Ellerman
Peter Zijlstra writes: > On Tue, Jan 17, 2017 at 02:07:36PM +0100, Vlastimil Babka wrote: > >> Anyway I'm not sure if this patch is safe. Hopefully Peter can judge >> this better... >> >> > Cc: Vlastimil Babka >> > Signed-off-by: Stafford Horne >> > --- >> > init/main.c | 3 +-- >> > 1 file c

[PATCH] aspeed: dts: g5: Update GPIO pin range to mux extra banks

2017-01-22 Thread Andrew Jeffery
The Aspeed GPIO driver recently gained support for banks Y, Z, AA, AB and AC. Update the devicetree so GPIO requests for these pins are routed via pinmux, else the export succeeds but the GPIOs are non-functional. Signed-off-by: Andrew Jeffery --- arch/arm/boot/dts/aspeed-g5.dtsi | 2 +- 1 file

[PATCH] pinctrl: aspeed: g4: Fix mux configuration for GPIOs AA[4-7], AB[0-7]

2017-01-22 Thread Andrew Jeffery
Incorrect video output configuration bits were being tested on pins in GPIO banks AA and AB for the ROM{8,16} mux functions. The ROM{8,16} functions are the highest priority for the relevant pins and also the default function, so we require the relevant video output configuration be disabled to mux

[PATCH 0/2] gpio: aspeed: Implement banks Y, Z, AA, AB and AC

2017-01-22 Thread Andrew Jeffery
Hi Linus, This short series resolves a TODO comment in the Aspeed GPIO driver regarding banks Y, Z, AA, AB and AC by implementing their support. It's a little involved given some of the characteristics of these banks, but hopefully nothing too controversial. Cheers, Andrew Andrew Jeffery (1):

[PATCH 2/2] gpio: aspeed: Add banks Y, Z, AA, AB and AC

2017-01-22 Thread Andrew Jeffery
This is less straight-forward than one would hope, as some banks only have 4 pins rather than 8, others are output only, yet more (W and X, already supported) are input-only, and in the case of the g4 SoC bank AC doesn't exist. Add some structs to describe the varying properties of different banks

[PATCH 1/2] gpio: aspeed: Make bank names strings

2017-01-22 Thread Andrew Jeffery
From: Joel Stanley The Aspeed SoCs have more GPIOs than can be represented with A-Z. The documentation uses two letter names such as AA and AB, so make the names a three-character array in the bank struct to accommodate this. Signed-off-by: Joel Stanley Signed-off-by: Andrew Jeffery --- drive

Re: [btrfs/rt] lockdep false positive

2017-01-22 Thread Mike Galbraith
On Sun, 2017-01-22 at 18:45 +0100, Mike Galbraith wrote: > On Sun, 2017-01-22 at 09:46 +0100, Mike Galbraith wrote: > > Greetings btrfs/lockdep wizards, > > > > RT trees have trouble with the BTRFS lockdep positive avoidance lock > > class dance (see disk-io.c). Seems the trouble is due to RT not

Re: drivers/base/power/opp/cpu.c:48:5: error: redefinition of 'dev_pm_opp_init_cpufreq_table'

2017-01-22 Thread Viresh Kumar
On 23-01-17, 04:20, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: c497f8d17246720afe680ea1a8fa6e48e75af852 > commit: 33692dc381f9b89ddfc408631bf670ac2fd08ffc PM / OPP: Move opp core to > its own directory > date: 1 year,

[PATCH v2 1/4] phy: qcom-ufs: Don't kfree devres resource

2017-01-22 Thread Bjorn Andersson
Upon failing to acquire regulator supplies the qcom-ufs driver calls kfree() on the devm allocated memory used to store the name of the regulator, leading to devres corruption. Rather than switching to using the appropriate free function the patch acknowledge the fact that "name" is always a const

[PATCH v2 3/4] phy: qcom-ufs: Remove -always-on property

2017-01-22 Thread Bjorn Andersson
The fact that a regulator is always-on is a property of the regulator, not a specific consumer. Implementing this in the driver leads to a system behaviour that is dependent on if the Qualcomm UFS PHY was ever (partially) probed. If the specific regulator should be always on in a particular device

[PATCH v2 2/4] phy: qcom-ufs: Correct usage of regulator_get()

2017-01-22 Thread Bjorn Andersson
When regulator_get() tries to resolve a regulator supply but fail to find a matching property in DeviceTree it returns a dummy regulator, if a matching supply is specified but unavailable the regulator core will return an error. Based on this we should not ignore errors upon failing to acquire the

[PATCH v2 4/4] phy: qcom-ufs: Suppress extraneous logging

2017-01-22 Thread Bjorn Andersson
The error paths of the common qcom-ufs functions for registering the phy, acquiring clocks and acquiring regulators all print specific error messages before returning an error, so there is no value in printing yet another - more generic - message when this occur. Reviewed-by: Vivek Gautam Reviewe

Re: [RFC v2] HWPOISON: soft offlining for non-lru movable page

2017-01-22 Thread Minchan Kim
Hello, On Thu, Jan 19, 2017 at 10:59:03PM +0800, ys...@foxmail.com wrote: > From: Yisheng Xie > > This patch is to extends soft offlining framework to support > non-lru page, which already support migration after > commit bda807d44454 ("mm: migrate: support non-lru movable page > migration") >

linux-next: Tree for Jan 23

2017-01-22 Thread Stephen Rothwell
Hi all, Changes since 20170120: The vfs tree gained a conflict against Linus' tree. Non-merge commits (relative to Linus' tree): 4596 5281 files changed, 169240 insertions(+), 99700 deletions(-) I have created today'

[PATCH v2 3/3] i2c: zx2967: add i2c controller driver for ZTE's zx2967 family

2017-01-22 Thread Baoyou Xie
This patch adds i2c controller driver for ZTE's zx2967 family. Signed-off-by: Baoyou Xie --- drivers/i2c/busses/Kconfig | 9 + drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-zx2967.c | 690 3 files changed, 700 insertions(+) creat

[PATCH v2 1/3] dt: bindings: add documentation for zx2967 family i2c controller

2017-01-22 Thread Baoyou Xie
This patch adds dt-binding documentation for zx2967 family i2c controller. Signed-off-by: Baoyou Xie --- .../devicetree/bindings/i2c/i2c-zx2967.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-zx2967.txt diff

[PATCH v2 2/3] MAINTAINERS: add zx2967 i2c controller driver to ARM ZTE architecture

2017-01-22 Thread Baoyou Xie
Add the zx2967 i2c controller driver as maintained by ARM ZTE architecture maintainers, as they're parts of the core IP. Signed-off-by: Baoyou Xie --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 275c434..757c098 100644 --- a/MAINTAINERS +++ b

Re: [PATCH v3] zram: extend zero pages to same element pages

2017-01-22 Thread Minchan Kim
Hello, When I look at first patch, I wanted to use increment loop but didn't tell to you because that small piece of code is no harmful for readbility to me so I want to keep author's code rather than pointing the trivial which is just matter of preference out. Rather than readiblity, I suspect i

Re: [RFC v2] HWPOISON: soft offlining for non-lru movable page

2017-01-22 Thread Naoya Horiguchi
On Thu, Jan 19, 2017 at 10:59:03PM +0800, ys...@foxmail.com wrote: > From: Yisheng Xie > > This patch is to extends soft offlining framework to support > non-lru page, which already support migration after > commit bda807d44454 ("mm: migrate: support non-lru movable page > migration") > > When m

Re: [RFC] HWPOISON: soft offlining for non-lru movable page

2017-01-22 Thread Naoya Horiguchi
On Fri, Jan 20, 2017 at 05:52:13PM +0800, Yisheng Xie wrote: > Hi Naoya, > > On 2017/1/18 17:45, Naoya Horiguchi wrote: > > On Wed, Jan 18, 2017 at 12:00:54PM +0800, Yisheng Xie wrote: > >> This patch is to extends soft offlining framework to support > >> non-lru page, which already support migrat

[PATCH V2 01/12] PM / OPP: Add per OPP table mutex

2017-01-22 Thread Viresh Kumar
Add per OPP table lock to protect opp_table->opp_list. Note that at few places opp_list is used under the rcu_read_lock() and so a mutex can't be added there for now. This will be fixed by a later patch. Signed-off-by: Viresh Kumar Reviewed-by: Stephen Boyd --- drivers/base/power/opp/core.c |

[PATCH V2 11/12] PM / OPP: Simplify dev_pm_opp_get_max_volt_latency()

2017-01-22 Thread Viresh Kumar
dev_pm_opp_get_max_volt_latency() calls _find_opp_table() two times effectively. Merge _get_regulator_count() into dev_pm_opp_get_max_volt_latency() to avoid that. Signed-off-by: Viresh Kumar Reviewed-by: Stephen Boyd --- drivers/base/power/opp/core.c | 34 +- 1

[PATCH V2 07/12] PM / OPP: Update OPP users to put reference

2017-01-22 Thread Viresh Kumar
This patch updates dev_pm_opp_find_freq_*() routines to get a reference to the OPPs returned by them. Also updates the users of dev_pm_opp_find_freq_*() routines to call dev_pm_opp_put() after they are done using the OPPs. As it is guaranteed the that OPPs wouldn't get freed while being used, the

[PATCH V2 10/12] PM / OPP: Simplify _opp_set_availability()

2017-01-22 Thread Viresh Kumar
As we don't use RCU locking anymore, there is no need to replace an earlier OPP node with a new one. Just update the existing one. Signed-off-by: Viresh Kumar Reviewed-by: Stephen Boyd --- drivers/base/power/opp/core.c | 27 +-- 1 file changed, 5 insertions(+), 22 deleti

[PATCH V2 06/12] PM / OPP: Add 'struct kref' to struct dev_pm_opp

2017-01-22 Thread Viresh Kumar
Add kref to struct dev_pm_opp for easier accounting of the OPPs. Note that the OPPs are freed under the opp_table->lock mutex only. Signed-off-by: Viresh Kumar Reviewed-by: Stephen Boyd --- drivers/base/power/opp/core.c | 27 --- drivers/base/power/opp/opp.h | 3 +++

[PATCH V2 02/12] PM / OPP: Add 'struct kref' to OPP table

2017-01-22 Thread Viresh Kumar
Add kref to struct opp_table for easier accounting of the OPP table. Note that the new routine dev_pm_opp_get_opp_table() takes the reference from under the opp_table_lock, which guarantees that the OPP table doesn't get freed unless dev_pm_opp_put_opp_table() is called for the OPP table. Two sep

[PATCH V2 12/12] PM / OPP: Update Documentation to remove RCU specific bits

2017-01-22 Thread Viresh Kumar
Update OPP documentation to remove the RCU specific bits. Signed-off-by: Viresh Kumar Reviewed-by: Stephen Boyd --- Documentation/power/opp.txt | 52 ++--- 1 file changed, 16 insertions(+), 36 deletions(-) diff --git a/Documentation/power/opp.txt b/Docum

[PATCH V2 08/12] PM / OPP: Take kref from _find_opp_table()

2017-01-22 Thread Viresh Kumar
Take reference of the OPP table from within _find_opp_table(). Also update the callers of _find_opp_table() to call dev_pm_opp_put_opp_table() after they have used the OPP table. Note that _find_opp_table() increments the reference under the opp_table_lock. Now that the OPP table wouldn't get fre

[PATCH V2 09/12] PM / OPP: Move away from RCU locking

2017-01-22 Thread Viresh Kumar
The RCU locking isn't well suited for the OPP core. The RCU locking fits better for reader heavy stuff, while the OPP core have at max one or two readers only at a time. Over that, it was getting very confusing the way RCU locking was used with the OPP core. The individual OPPs are mostly well han

[PATCH V2 00/12] PM / OPP: Use kref and move away from RCU locking

2017-01-22 Thread Viresh Kumar
Hi Rafael, This series is based over the other OPP series [1] which is ready to be merged and is fully reviewed. In this series, 11 out of 12 patches have Reviewed-by from Stephen. Only the 7th patch hasn't got any of those. @Stephen: Can you see if you can do a generic review of it as well? Tha

[PATCH V2 04/12] PM / OPP: Take reference of the OPP table while adding/removing OPPs

2017-01-22 Thread Viresh Kumar
Take reference of the OPP table while adding and removing OPPs, that helps us remove special checks in _remove_opp_table(). Signed-off-by: Viresh Kumar Reviewed-by: Stephen Boyd --- drivers/base/power/opp/core.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/driver

[PATCH V2 03/12] PM / OPP: Return opp_table from dev_pm_opp_set_*() routines

2017-01-22 Thread Viresh Kumar
Now that we have proper kernel reference infrastructure in place for OPP tables, use it to guarantee that the OPP table isn't freed while being used by the callers of dev_pm_opp_set_*() APIs. Make them all return the pointer to the OPP table after taking its reference and put the reference back wi

[PATCH V2 05/12] PM / OPP: Use dev_pm_opp_get_opp_table() instead of _add_opp_table()

2017-01-22 Thread Viresh Kumar
Migrate all users of _add_opp_table() to use dev_pm_opp_get_opp_table() to guarantee that the OPP table doesn't get freed while being used. Also update _managed_opp() to get the reference to the OPP table. Now that the OPP table wouldn't get freed while these routines are executing after dev_pm_o

Re: Potential issues (security and otherwise) with the current cgroup-bpf API

2017-01-22 Thread Alexei Starovoitov
On Thu, Jan 19, 2017 at 08:04:59PM -0800, Andy Lutomirski wrote: > On Thu, Jan 19, 2017 at 6:39 PM, Alexei Starovoitov > wrote: > > On Wed, Jan 18, 2017 at 06:29:22PM -0800, Andy Lutomirski wrote: > >> I think it could work by making a single socket cgroup controller that > >> handles all cgroup t

[PATCH v2] clk: qcom: gdsc: Fix handling of hw control enable/disable

2017-01-22 Thread Rajendra Nayak
Once a gdsc is brought in and out of HW control, there is a power down and up cycle which can take upto 1us. Polling on the gdsc status immediately after the hw control enable/disable can mislead software/firmware to belive the gdsc is already either on or off, while its yet to complete the power c

[PATCH v2 3/3] btmrvl: use dt's irqflags for wakeup pin

2017-01-22 Thread Jeffy Chen
Use irqflags parsed from dt. Signed-off-by: Jeffy Chen Reviewed-by: Brian Norris --- Changes in v2: None drivers/bluetooth/btmrvl_sdio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c index 796f719..23711

[PATCH v2 2/3] btmrvl: set irq_bt to -1 when failed to parse it

2017-01-22 Thread Jeffy Chen
The irq_of_parse_and_map will return 0 as a invalid irq. Set irq_bt to -1 in this case, so that the btmrvl resume/suspend code would not try to enable/disable it. Signed-off-by: Jeffy Chen Reviewed-by: Brian Norris --- Changes in v2: Update commit message. drivers/bluetooth/btmrvl_sdio.c | 1

[PATCH v2 1/3] btmrvl: avoid double-disable_irq() race

2017-01-22 Thread Jeffy Chen
It's much the same as what we did for mwifiex in: b9da4d2 mwifiex: avoid double-disable_irq() race "We have a race where the wakeup IRQ might be in flight while we're calling mwifiex_disable_wake() from resume(). This can leave us disabling the IRQ twice. Let's disable the IRQ and enable it in ca

[PATCH] zram: remove waitqueue for IO done

2017-01-22 Thread Minchan Kim
zram_reset_device waits ongoing writepage pages completed by zram->refcount logic. However, it's pointless because before the reset, we prevent further opening of zram by zram->claim and flush all of pending IO by fsync_bdev so there should be no pending IO at the zram_reset_device. So let's remov

Re: [PATCH 20/20] module.h: remove extable.h include now users have migrated

2017-01-22 Thread Paul Gortmaker
[Re: [PATCH 20/20] module.h: remove extable.h include now users have migrated] On 23/01/2017 (Mon 06:52) kbuild test robot wrote: > Hi Paul, > > [auto build test ERROR on linus/master] > [also build test ERROR on v4.10-rc5 next-20170120] > [if your patch is applied to the wrong git tree, please

Re: [PATCH] clk: qcom: gdsc: Fix handling of hw control enable/disable

2017-01-22 Thread Rajendra Nayak
[].. >> --- >> >> Stan, >> If there was a specific issue you saw with venus because of the missing >> delay and poll, can you check if this fixes any of that. >> >> drivers/clk/qcom/gdsc.c | 58 >> ++--- >> 1 file changed, 45 insertions(+), 13 deletio

Re: [PATCH] mm: extend zero pages to same element pages for zram

2017-01-22 Thread Sergey Senozhatsky
On (01/23/17 11:58), Joonsoo Kim wrote: > Hello, > > On Sun, Jan 22, 2017 at 10:58:38AM +0800, zhouxianrong wrote: > > 1. memset is just set a int value but i want to set a long value. > > Sorry for late review. > > Do we really need to set a long value? I cannot believe that > long value is rep

Re: [PATCH] clk: qcom: gdsc: Fix handling of hw control enable/disable

2017-01-22 Thread Rajendra Nayak
On 01/21/2017 04:50 AM, Stephen Boyd wrote: > On 01/10, Stanimir Varbanov wrote: >> >>> + udelay(1); >>> + >>> + reg = sc->gds_hw_ctrl ? sc->gds_hw_ctrl : sc->gdscr; >>> + ret = gdsc_poll_status(sc, reg, 0); >> >> This should be gdsc_poll_status(sc, reg, true) becaus

[PATCH 2/4] Documentation: devicetree: Add LED subnode binding for MT6323 PMIC

2017-01-22 Thread sean.wang
From: Sean Wang This patch adds documentation for devicetree bindings for LED support as the subnode of MT6323 PMIC Signed-off-by: Sean Wang --- Documentation/devicetree/bindings/mfd/mt6397.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/mt6397

[PATCH 0/4] leds: add leds-mt6323 support on MT7623 SoC

2017-01-22 Thread sean.wang
From: Sean Wang MT7623 SoC uses MT6323 PMIC as the default power supply which has LED function insides. The patchset introduces the LED support for MT6323 with on, off and hardware dimmed and blinked and it should work on other similar SoCs if also using MT6323. Sean Wang (4): Documentation: d

[PATCH 4/4] mfd: mt6397: Add MT6323 LED support into MT6397 driver

2017-01-22 Thread sean.wang
From: Sean Wang Add compatible string as "mt6323-led" that will make the OF core spawn child devices for the LED subnode of that MT6323 MFD device. Signed-off-by: Sean Wang --- drivers/mfd/mt6397-core.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mfd/mt6397-core.c b/drivers

[PATCH 1/4] Documentation: devicetree: Add document bindings for leds-mt6323

2017-01-22 Thread sean.wang
From: Sean Wang This patch adds documentation for devicetree bindings for LED support on MT6323 PMIC Signed-off-by: Sean Wang --- .../devicetree/bindings/leds/leds-mt6323.txt | 60 ++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindin

[PATCH 3/4] leds: Add LED support for MT6323 PMIC

2017-01-22 Thread sean.wang
From: Sean Wang MT6323 PMIC is a multi-function device that includes LED function. It allows attaching upto 4 LEDs which can either be on, off or dimmed and/or blinked with the the controller. Signed-off-by: Sean Wang --- drivers/leds/Kconfig | 8 + drivers/leds/Makefile | 1 +

Re: [PATCH v3] zram: extend zero pages to same element pages

2017-01-22 Thread zhouxianrong
the purpose for reverse iteration is that i want compiler compose decreasing instruction and compared instruction with zero into one instruction which change cpu condition state. yes, this maybe cause cache problem so need to be reviewed. thanks On 2017/1/23 11:02, Joonsoo Kim wrote: On Mon, Ja

  1   2   3   4   5   >