Re: [PATCH 00/19] irqchip: atmel-aic: make unified AIC driver

2016-01-05 Thread Milo Kim
Hi Nicolas, On 01/04/2016 06:37 PM, Nicolas Ferre wrote: Le 04/01/2016 10:02, Boris Brezillon a écrit : Hi Milo, On Mon, 4 Jan 2016 13:28:24 +0900 Milo Kim wrote: This patch-set provides unified Atmel AIC (Advanced Interrupt Controller) driver. Currently, there are two AIC drivers, AIC and

Re: [PATCH v2 12/13] arm64: add support for relocatable kernel

2016-01-05 Thread Ard Biesheuvel
On 5 January 2016 at 20:51, Kees Cook wrote: > On Wed, Dec 30, 2015 at 7:26 AM, Ard Biesheuvel > wrote: >> This adds support for runtime relocation of the kernel Image, by >> building it as a PIE (ET_DYN) executable and applying the dynamic >> relocations in the early boot code. >> >> Signed-off-

Re: [PATCH v2 13/13] arm64: efi: invoke EFI_RNG_PROTOCOL to supply KASLR randomness

2016-01-05 Thread Ard Biesheuvel
On 5 January 2016 at 20:53, Kees Cook wrote: > On Wed, Dec 30, 2015 at 7:26 AM, Ard Biesheuvel > wrote: >> Since arm64 does not use a decompressor that supplies an execution >> environment where it is feasible to some extent to provide a source of >> randomness, the arm64 KASLR kernel depends on

Re: [RFC] spi: dw: support setting tmode dynamically

2016-01-05 Thread Jisheng Zhang
+ linux arm kernel Dear Khoa, On Wed, 6 Jan 2016 14:36:08 +0700 Khoa Dang Pham wrote: > Hi Jisheng, > > For me, I use the "EEPROM Read" mode as well, but I am not sure if any > other solution. We may need some feedbacks from other experienced > developers. Indeed, this is a common issue for s

Re: [PATCH 00/19] irqchip: atmel-aic: make unified AIC driver

2016-01-05 Thread Milo Kim
Hi Boris, Thanks a lot for your comments. On 01/04/2016 06:02 PM, Boris Brezillon wrote: Hi Milo, On Mon, 4 Jan 2016 13:28:24 +0900 Milo Kim wrote: This patch-set provides unified Atmel AIC (Advanced Interrupt Controller) driver. Currently, there are two AIC drivers, AIC and AIC5. Each driv

Re: [PATCH 0/5] Threaded MSI interrupt for VFIO PCI device

2016-01-05 Thread Yunhong Jiang
On Wed, Dec 16, 2015 at 10:55:12PM +0100, Paolo Bonzini wrote: > > > On 16/12/2015 20:15, Alex Williamson wrote: > > The consumers would be, for instance, Intel PI + the threaded handler > > added in this series. These run independently, the PI bypass simply > > makes the interrupt disappear fro

Re: [PATCH 0/5] Threaded MSI interrupt for VFIO PCI device

2016-01-05 Thread Yunhong Jiang
On Wed, Dec 16, 2015 at 12:15:23PM -0700, Alex Williamson wrote: > On Wed, 2015-12-16 at 18:56 +0100, Paolo Bonzini wrote: > > Alex, > > > > can you take a look at the extension to the irq bypass interface in > > patch 2?  I'm not sure I understand what is the case where you have > > multiple cons

Re: [PATCH 1/3] ARM: dts: omap5-board-common: enable rtc and charging of backup battery

2016-01-05 Thread H. Nikolaus Schaller
Hi, Am 06.01.2016 um 00:40 schrieb Nishanth Menon : > On 01/05/2016 06:01 AM, H. Nikolaus Schaller wrote: >> tested on OMP5432 EVM >> >> Signed-off-by: H. Nikolaus Schaller >> --- >> arch/arm/boot/dts/omap5-board-common.dtsi | 8 >> 1 file changed, 8 insertions(+) >> >> diff --git a/ar

Re: [PATCH 3.12 00/91] 3.12.52-stable review

2016-01-05 Thread Nikolay Borisov
Hello Jiry, On 01/05/2016 07:46 PM, Jiri Slaby wrote: > This is the start of the stable review cycle for the 3.12.52 release. > There are 91 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. Can you pl

Re: [RFC] spi: dw: support setting tmode dynamically

2016-01-05 Thread Khoa Dang Pham
Hi Jisheng, For me, I use the "EEPROM Read" mode as well, but I am not sure if any other solution. We may need some feedbacks from other experienced developers. Could you please provide your solution? Any suggestion would be appreciated. Regards, Khoa Pham On Wed, Jan 6, 2016 at 2:22 PM, Jisheng

Re: [Intel-gfx] [PATCH v2] drm/i915: intel_hpd_init(): Fix suspend/resume reprobing

2016-01-05 Thread Daniel Vetter
On Tue, Jan 05, 2016 at 04:15:30PM -0500, Lyude wrote: > This fixes reprobing of display connectors on resume. After some talking > with danvet on IRC, I learned that calling drm_helper_hpd_irq_event() does > actually trigger a full reprobe of each connector's status. It turns out > this is the act

Re: [RFC] spi: dw: support setting tmode dynamically

2016-01-05 Thread Jisheng Zhang
Dear Khoa, On Wed, 6 Jan 2016 14:04:30 +0700 Khoa Dang Pham wrote: > Hi Jisheng, > > On Wed, Jan 6, 2016 at 1:23 PM, Jisheng Zhang wrote: > > Dear Khoa, Mark, > > > > On Wed, 6 Jan 2016 08:45:38 +0700 Khoa Dang Pham wrote: > > > >> Hi Mark, > >> > >> May I provide a bit more info about the "EE

Re: drm/i915/intel_drv.h - RPM wakelock ref not held during HW access

2016-01-05 Thread Daniel Vetter
On Tue, Jan 05, 2016 at 04:03:38PM +0100, Andrea Gelmini wrote: > Hi everybody, >on my laptop I'm using 4.4.0-rc8 + drm-intel-nightly from > git://anongit.freedesktop.org/drm-intel >(commit 0417da5e6f56078d87d366d5f959f8290ae9d16d). > >Found this after few hours (dunno if it's a false

Re: [PATCH] avr32: wire up accept4 syscall

2016-01-05 Thread Hans-Christian Noren Egtvedt
Around Tue 05 Jan 2016 21:21:45 + or thereabout, Mans Rullgard wrote: > The accept4 syscall is missing on AVR32. Fix this. > > Signed-off-by: Mans Rullgard Thank you. Acked-by: Hans-Christian Noren Egtvedt I'll add it to my for-linus branch and push for next merge window. > --- > arch/

Re: [PATCH v2 0/9] Support TI LMU devices

2016-01-05 Thread Milo Kim
Hi Lee, On 11/26/2015 03:56 PM, Milo Kim wrote: TI Lighting Management Unit drivers support lighting devices below. Enable pin Backlight HW fault monitoring LEDs Regulators -- - --- LM3532 o o

[PATCH v7.1 3/5] drm: rockchip: Support Synopsys DW MIPI DSI

2016-01-05 Thread Chris Zhong
Add support for Synopsys DesignWare MIPI DSI controller which is embedded in the rk3288 SoCs. Signed-off-by: Chris Zhong Acked-by: Mark Yao --- Changes in v7.1: - make sure disable clk when drm_panel_prepare err (Mark Yao) Changes in v7: - modify the config to tristate for modules build (Mark

Re: [PATCH v7 3/3] x86, mce: Add __mcsafe_copy()

2016-01-05 Thread Dan Williams
On Tue, Jan 5, 2016 at 11:06 PM, Luck, Tony wrote: > You were heading towards: > > ld: undefined __mcsafe_copy True, we'd also need a dummy mcsafe_copy() definition to compile it out in the disabled case. > since that is also inside the #ifdef. > > Weren't you going to "select" this? > I do sel

[PATCH 1/1] usb: cdc-acm: send zero packet for intel 7260 modem

2016-01-05 Thread Lu Baolu
For Intel 7260 modem, it is needed for host side to send zero packet if the BULK OUT size is equal to USB endpoint max packet length. Otherwise, modem side may still wait for more data and cannot give response to host side. Signed-off-by: Konrad Leszczynski Signed-off-by: Lu Baolu Cc: sta...@vge

Re: [PATCH v7 3/3] x86, mce: Add __mcsafe_copy()

2016-01-05 Thread Luck, Tony
You were heading towards: ld: undefined __mcsafe_copy since that is also inside the #ifdef. Weren't you going to "select" this? I'm seriously wondering whether the ifdef still makes sense. Now I don't have an extra exception table and routines to sort/search/fixup, it doesn't seem as useful

[PATCHv2 1/1] staging/ion: Add support to get ion handle from dma buf

2016-01-05 Thread Rohit kumar
Currently we can only import dma buf fd's to get ion_handle. Adding support to import dma buf handles to support kernel specific use cases. An example use case is in linux platforms such as Tizen, in which DRM-GEM is used for buffer management for graphics. It has gem_handle corresponding to a buf

Re: [RFC] spi: dw: support setting tmode dynamically

2016-01-05 Thread Khoa Dang Pham
Hi Jisheng, On Wed, Jan 6, 2016 at 1:23 PM, Jisheng Zhang wrote: > Dear Khoa, Mark, > > On Wed, 6 Jan 2016 08:45:38 +0700 Khoa Dang Pham wrote: > >> Hi Mark, >> >> May I provide a bit more info about the "EEPROM read" on this controller? >> >> According to the "DesignWare DW_apb_ssi Databook" (ve

Re: [PATCH] net/rfkill: Create "airplane mode" LED trigger

2016-01-05 Thread Marcel Holtmann
Hi Joao, > For platform drivers to be able to correctly drive the "Airplane Mode" > indicative LED there needs to be a RFKill LED trigger tied to the global > state of RFKILL_TYPE_ALL (instead of to a specific RFKill) and that > works in an inverted manner of regular RFKill LED triggers, that is,

linux-next: manual merge of the akpm-current tree with the kbuild tree

2016-01-05 Thread Stephen Rothwell
Hi Andrew, Today's linux-next merge of the akpm-current tree got a conflict in: scripts/tags.sh between commit: 93209d65c1d3 ("tags: Unify emacs and exuberant rules") from the kbuild tree and commit: ef0e95208c33 ("page-flags: drop __TestClearPage*() helpers") from the akpm-current tre

Re: [PATCH v3 0/2] cpufreq: powernv: Redesign the presentation of throttle notification

2016-01-05 Thread Stewart Smith
Shilpasri G Bhat writes: > In POWER8, OCC(On-Chip-Controller) can throttle the frequency of the > CPU when the chip crosses its thermal and power limits. Currently, > powernv-cpufreq driver detects and reports this event as a console > message. Some boxes may not sustain the max turbo frequency in

Re: [PATCH v2 0/2] Introduce the bulk IV mode for improving the crypto engine efficiency

2016-01-05 Thread Baolin Wang
On 5 January 2016 at 04:13, Mark Brown wrote: > On Sat, Jan 02, 2016 at 11:46:08PM +0100, Milan Broz wrote: > >> Anyway, I think that you should optimize driver, not add strange hw-dependent >> crypto modes to dmcrypt. This is not the first crypto accelerator that is >> just not >> suited for thi

Re: [PATCH] Add support for usbfs zerocopy.

2016-01-05 Thread Christoph Hellwig
This is a completely broken usage of the mmap interface. if you use mmap on a device file you must use the actual mmap for the data transfer. Our interface for zero copy reads/writes is O_DIRECT, and that requires not special memory allocation, just proper alignment. -- To unsubscribe from this l

Re: [PATCH] rfcomm: fix information leak in rfcomm_sock_bind

2016-01-05 Thread Marcel Holtmann
Hi Insu, > if addr_len < sizeof(sa), sa.rc_bdaddr(4bytes) can be leaked > by using rfcomm_sock_getname() > > Signed-off-by: Insu Yun > --- > net/bluetooth/rfcomm/sock.c | 9 + > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/net/bluetooth/rfcomm/sock.c b/net/bluetooth/

Re: [PATCH 1/7] printk: Hand over printing to console if printing too long

2016-01-05 Thread Sergey Senozhatsky
On (01/05/16 15:37), Jan Kara wrote: > > How about setting 'sync_print' to 'true' in... > > bust_spinlocks() /* only set to true */ > > or > > console_verbose() /* um... may be... */ > > or > > having a separate one-liner for that > > > > void console_panic_mode(void) > > { > > sync_prin

RE: [PATCH 3/6] ACPI: add 2 parameters to function acpi dma controller register

2016-01-05 Thread Wang, Annie
Hi Mika, >-Original Message- >From: Mika Westerberg [mailto:mika.westerb...@linux.intel.com] >Sent: Monday, January 04, 2016 10:46 PM >To: Wang, Annie >Cc: Andy Shevchenko; Vinod Koul; Greg Kroah-Hartman; Rafael J. Wysocki; linux- >a...@vger.kernel.org; linux-kernel@vger.kernel.org; >linu

[PATCH] arm64: dts: qcom: apq8016-sbc: leds: bt and wlan

2016-01-05 Thread Vinay Simha BN
BT LED - PMIC - MPP_03 WLAN LED - PMIC - MPP_02 Signed-off-by: Vinay Simha BN --- arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi index 7bb0a

Re: [PATCH v7 3/5] drm: rockchip: Support Synopsys DW MIPI DSI

2016-01-05 Thread Mark yao
Hi Chris Looks good for me except some tiny issues. On 2016年01月06日 12:03, Chris Zhong wrote: +struct dw_mipi_dsi { + struct drm_encoder encoder; + struct drm_connector connector; + struct mipi_dsi_host dsi_host; + struct drm_panel *panel; + struct device *dev; +

Re: [RFC] spi: dw: support setting tmode dynamically

2016-01-05 Thread Jisheng Zhang
Dear Khoa, Mark, On Wed, 6 Jan 2016 08:45:38 +0700 Khoa Dang Pham wrote: > Hi Mark, > > May I provide a bit more info about the "EEPROM read" on this controller? > > According to the "DesignWare DW_apb_ssi Databook" (version 3.21b) provided > by Synopsys, the EEPROM read is: > > "When TMOD = 2

[PATCH 1/1] regulator: max8973: add support for junction thermal warning

2016-01-05 Thread Laxman Dewangan
The driver MAX8973 supports the driver for Maxim PMIC MAX77621. MAX77621 supports the junction temp warning at 120 degC and 140 degC which is configurable. It generates alert signal when junction temperature crosses these threshold. MAX77621 does not support the continuous temp monitoring of junc

Re: [PATCH net-next] ethernet/atheros/alx: sanitize buffer sizing and padding

2016-01-05 Thread David Miller
From: Jarod Wilson Date: Tue, 5 Jan 2016 18:12:34 -0500 > - if ((raw_mtu + 8) < ALX_TXQ1_JUMBO_TSO_TH) > - val = (raw_mtu + 8 + 7) >> 3; > + if ((raw_mtu) < ALX_TXQ1_JUMBO_TSO_TH) > + val = (raw_mtu + 7) >> 3; The parenthesis around 'raw_mtu' is superfluous, plea

Re: d_path() and overlay fs

2016-01-05 Thread sangeetha Busangari
Hi, I am new to Linux kernel programming. i am trying to print current working directory of process which are running under containers. i have written code in kernel as below to get pwd * struct path pwd; char *buf,*cwd;

Re: [PATCH 2/2] regmap: irq: add support to have callback pre/post irq handling

2016-01-05 Thread Laxman Dewangan
Resending as previous response was denied by linux-kernel due to html format. On Tuesday 05 January 2016 11:13 PM, Mark Brown wrote: * PGP Signed by an unknown key On Tue, Dec 22, 2015 at 06:25:27PM +0530, Laxman Dewangan wrote: Some of devices like MAXIM MAX77620 required to have the chip sp

Re: [PATCH v2 2/3] drm/rockchip: vop: add rk3229 vop support

2016-01-05 Thread Yakir Yang
Hi Mark, On 01/06/2016 08:56 AM, Mark yao wrote: On 2016年01月05日 11:58, Yakir Yang wrote: RK3229 registers layout is simalar to RK3288 layout, only the interruput registers is different to RK3288. RK3229 support two overlay plane and one hwc plane, max output resolution is 4K. it support IOMMU,

Re: [PATCH 1/2] regmap: irq: add support for configuration of trigger type

2016-01-05 Thread Laxman Dewangan
On Tuesday 05 January 2016 11:11 PM, Mark Brown wrote: * PGP Signed by an unknown key On Tue, Dec 22, 2015 at 06:25:26PM +0530, Laxman Dewangan wrote: + d->type_reg_stride = chip->type_reg_stride ? : 1; + Please don't abuse the ternery operator, especially not the GCC extension - that'

Re: [PATCH] net: filter: make JITs zero A for SKF_AD_ALU_XOR_X

2016-01-05 Thread David Miller
From: Rabin Vincent Date: Tue, 5 Jan 2016 16:23:07 +0100 > The SKF_AD_ALU_XOR_X ancillary is not like the other ancillary data > instructions since it XORs A with X while all the others replace A with > some loaded value. All the BPF JITs fail to clear A if this is used as > the first instructi

[PATCH] poll: plug an unused argument to do_poll

2016-01-05 Thread Mateusz Guzik
Number of fds is already known based on passed list. No functional changes. Signed-off-by: Mateusz Guzik --- fs/select.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/select.c b/fs/select.c index 0155473..79d0d49 100644 --- a/fs/select.c +++ b/fs/select.c @@ -778,

RE: [PATCH V5 9/9] hvsock: introduce Hyper-V VM Sockets feature

2016-01-05 Thread Dexuan Cui
> From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Tuesday, January 5, 2016 17:52 > > Just some minor nitpicks below -- I have to admit I didn't test the feature. > > [..skip..] > > > + > > + if (sk->sk_err) { > > + ret = -sk->sk_err; > > + goto out_wait_error; >

RE: [f2fs-dev] [PATCH 1/3 v2] f2fs: check the page status filled from disk

2016-01-05 Thread Chao Yu
Hi Jaegeuk, > -Original Message- > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > Sent: Wednesday, January 06, 2016 12:11 PM > To: linux-kernel@vger.kernel.org; linux-fsde...@vger.kernel.org; > linux-f2fs-de...@lists.sourceforge.net > Subject: Re: [f2fs-dev] [PATCH 1/3 v2] f2fs: check the

Re: [PATCH] staging/ion: Add support to get ion handle from dma buf

2016-01-05 Thread Rohit
Sorry to resend the patch without [RESEND] tag. Actually I had missed to add de...@driverdev.osuosl.org, linux-kernel@vger.kernel.org in mail last time. I will update the commit message with the explanation and send the PATCHv2 soon. Thanks, Rohit On Tue, 05 Jan 2016 10:12:39 -0800 Laura Abbott

[PATCH 1/2] prctl: take mmap sem for writing to protect against others

2016-01-05 Thread Mateusz Guzik
The code was taking the semaphore for reading, which does not protect against readers nor concurrent modifications. The problem could cause a sanity checks to fail in procfs's cmdline reader, resulting in an OOPS. Note that some functions perform an unlocked read of various mm fields, but they se

[PATCH 2/2] proc read mm's {arg,env}_{start,end} with mmap semaphore taken.

2016-01-05 Thread Mateusz Guzik
Only functions doing more than one read are modified. Consumeres happened to deal with possibly changing data, but it does not seem like a good thing to rely on. Signed-off-by: Mateusz Guzik --- fs/proc/base.c | 13 ++--- mm/util.c | 16 2 files changed, 22 insertio

[PATCH 0/2] fix up {arg,env}_{start,end} vs prctl

2016-01-05 Thread Mateusz Guzik
An unprivileged user can trigger an oops on a kernel with CONFIG_CHECKPOINT_RESTORE. proc_pid_cmdline_read takes mmap_sem for reading and obtains args + env start/end values. These get sanity checked as follows: BUG_ON(arg_start > arg_end); BUG_ON(env_start > env_end); These can b

RE: [PATCH] ipr: fix out-of-bounds null overwrite

2016-01-05 Thread Seymour, Shane M
> len = snprintf(fname, 99, "%s", buf); > - fname[len-1] = '\0'; Since it appears that's the only time len is actually used in that function can you please remove the variable len completely as part of the patch? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"

Re: [PATCH] net: hns: avoid uninitialized variable warning:

2016-01-05 Thread David Miller
From: Arnd Bergmann Date: Fri, 01 Jan 2016 23:27:57 +0100 > gcc fails to see that the use of the 'last_offset' variable > in hns_nic_reuse_page() is used correctly and issues a bogus > warning: > > drivers/net/ethernet/hisilicon/hns/hns_enet.c: In function > 'hns_nic_reuse_page': > drivers/net/

Re: [PATCH RFC] vhost: basic device IOTLB support

2016-01-05 Thread Jason Wang
On 01/05/2016 11:18 AM, Yang Zhang wrote: > On 2016/1/4 14:22, Jason Wang wrote: >> >> >> On 01/04/2016 09:39 AM, Yang Zhang wrote: >>> On 2015/12/31 15:13, Jason Wang wrote: This patch tries to implement an device IOTLB for vhost. This could be used with for co-operation with userspace

Re: [PATCH v7 3/3] x86, mce: Add __mcsafe_copy()

2016-01-05 Thread Dan Williams
On Thu, Dec 31, 2015 at 11:43 AM, Tony Luck wrote: > Make use of the EXTABLE_FAULT exception table entries. This routine > returns a structure to indicate the result of the copy: > > struct mcsafe_ret { > u64 trapnr; > u64 remain; > }; > > If the copy is successful, then both 'trap

[PATCH] rfcomm: fix information leak in rfcomm_sock_bind

2016-01-05 Thread Insu Yun
if addr_len < sizeof(sa), sa.rc_bdaddr(4bytes) can be leaked by using rfcomm_sock_getname() Signed-off-by: Insu Yun --- net/bluetooth/rfcomm/sock.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/net/bluetooth/rfcomm/sock.c b/net/bluetooth/rfcomm/sock.c index 7511df

[PATCH 0/2] clk: add unregister function for fixed factor clock and fixed rate clock

2016-01-05 Thread Masahiro Yamada
clk-mux and clk-gate have an unregister function, but clk-fixed-rate and clk-fixed-factor do not. I want to register/unregister clk-fixed-factor and clk-fixed-rate from my SoC clock provider. Masahiro Yamada (2): clk: add clk_unregister_fixed_factor() clk: add clk_unregister_fixed_rate()

Re: [LKP] [lkp] [rcu] b8084f70e0: No primary result change, 1414.7% unixbench.time.involuntary_context_switches

2016-01-05 Thread Huang, Ying
kstats: >> nfsstat: >> cpuidle: >> cpufreq-stats: >> turbostat: >> pmeter: >> sched_debug: >> interval: 60 >> cpufreq_governor: performance >> default-watchdogs: >> oom-killer: >> watchdog: >> commit: b8084f70e028697b342d6388b244d

[PATCH 1/2] clk: add clk_unregister_fixed_factor()

2016-01-05 Thread Masahiro Yamada
Allow to unregister fixed factor clock. Signed-off-by: Masahiro Yamada --- drivers/clk/clk-fixed-factor.c | 13 + include/linux/clk-provider.h | 1 + 2 files changed, 14 insertions(+) diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c index 83de57a..f9c

[PATCH 2/2] clk: add clk_unregister_fixed_rate()

2016-01-05 Thread Masahiro Yamada
Allow to unregister fixed rate clock. Signed-off-by: Masahiro Yamada --- drivers/clk/clk-fixed-rate.c | 13 + include/linux/clk-provider.h | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/clk/clk-fixed-rate.c b/drivers/clk/clk-fixed-rate.c index f85ec8

[PATCH] ipr: fix out-of-bounds null overwrite

2016-01-05 Thread Insu Yun
Return value of snprintf is not bound by size value, 2nd argument. (https://www.kernel.org/doc/htmldocs/kernel-api/API-snprintf.html). Return value is number of printed chars, can be larger than 2nd argument. Therefore, it can write null byte out of bounds ofbuffer. Since snprintf puts null, it do

Re: [PATCH 1/3 v2] f2fs: check the page status filled from disk

2016-01-05 Thread Jaegeuk Kim
Change log from v1: - use get_lock_data_page and return error, suggested by Chao >From 4882f227e71b482c53e55a5c3ad559d33f620a20 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Fri, 1 Jan 2016 22:03:47 -0800 Subject: [PATCH] f2fs: check the page status filled from disk After reading a page, we

[PATCH v7 0/5] Add mipi dsi support for rk3288

2016-01-05 Thread Chris Zhong
The rk3288 MIPI DSI is a Synopsys DesignWare MIPI DSI host controller IP. This series adds support for a Synopsys DesignWare MIPI DSI host controller DRM driver. The MIPI DSI feature is tested on rk3288 evb board, backport them to chrome os kernel chrome_v3.14, and it can display normally. This

[PATCH v7 1/5] drm/rockchip: return a true clock rate to adjusted_mode

2016-01-05 Thread Chris Zhong
Since the mipi dsi driver need to use the clock of vop to make the calculation of Blanking. But sometimes the clock driver can not set a accurate clock_rate for vop, get it by clk_round_rate before mode_set, so we can get the true value. Signed-off-by: Chris Zhong Acked-by: Mark Yao --- Change

[PATCH v7 5/5] ARM: dts: rockchip: add support mipi panel tv080wum-nl0

2016-01-05 Thread Chris Zhong
This tv080wum-nl0 panel is a mipi panel, it can use in MIPI_TX socket of rk3288 evb board. Signed-off-by: Chris Zhong --- Changes in v7: - Move the lcd_en control to act8846 dts Changes in v6: None Changes in v5: - add a blank line befor lcd_en Changes in v4: None Changes in v3: None arch/a

[PATCH v7 2/5] Documentation: dt-bindings: Add bindings for rk3288 DW MIPI DSI driver

2016-01-05 Thread Chris Zhong
add device tree bindings for rk3288 specific Synopsys DW MIPI DSI driver Signed-off-by: Chris Zhong Acked-by: Rob Herring --- Changes in v7: None Changes in v6: - update the document, since the bridge device has been deleted. Changes in v5: None Changes in v4: None Changes in v3: - move dw_mi

[PATCH v7 4/5] ARM: dts: rockchip: add rk3288 mipi_dsi nodes

2016-01-05 Thread Chris Zhong
Add a mipi_dsi node, and also add mipi_dsi endpoints to vopb and vopl output port nodes. Signed-off-by: Chris Zhong --- Changes in v7: None Changes in v6: None Changes in v5: - modify the clk name to SCLK_MIPIDSI_24M Changes in v4: None Changes in v3: None arch/arm/boot/dts/rk3288.dtsi | 39

[PATCH v7 3/5] drm: rockchip: Support Synopsys DW MIPI DSI

2016-01-05 Thread Chris Zhong
Add support for Synopsys DesignWare MIPI DSI controller which is embedded in the rk3288 SoCs. Signed-off-by: Chris Zhong Acked-by: Mark Yao --- Changes in v7: - modify the config to tristate for modules build (Mark Yao) - Pass NULL 'name' to drm_encoder_init() to fix compile err (Mark Yao) Cha

[PATCH v2 03/12] mmc: sdhci-msm: factorise sdhci_msm_pdata outisde of sdhci_msm_host

2016-01-05 Thread Jisheng Zhang
There's no need to allocate one sdhci_msm_pdata for each sdhci_msm_host. This patch removes the sdhci_msm_pdata member from sdhci_msm_host and uses one static global sdhci_msm_pdata for all sdhci msm hosts. It also marks sdhci_msm_ops as const. Signed-off-by: Jisheng Zhang --- drivers/mmc/host/s

[PATCH v2 01/12] mmc: sdhci-bcm2835: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-bcm2835 to this allocation. Signed-off-by: Jisheng Zhang Acked-by: Arnd Bergmann --- driver

[PATCH v2 04/12] mmc: sdhci-msm: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-msm to this allocation. Signed-off-by: Jisheng Zhang Acked-by: Arnd Bergmann --- drivers/mm

[PATCH v2 00/12] mmc: use sdhci_pltfm_init for private allocation and clean up

2016-01-05 Thread Jisheng Zhang
These patches are to complete the TODOs in Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register"), I.E: - todo: migrate clients to using allocation this way - todo: remove priv variable once migration is complete Since v1: - add new patch03 to factorise sdhci_msm_pdata outisde

[PATCH v2 05/12] mmc: sdhci-of-arasan: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates the sdhci-of-arasan driver to this allocation. Signed-off-by: Jisheng Zhang Acked-by: Arnd Bergmann

[PATCH v2 09/12] mmc: sdhci-st: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-st to this allocation. Signed-off-by: Jisheng Zhang Acked-by: Arnd Bergmann --- drivers/mmc

Re: [f2fs-dev] [PATCH 1/3] f2fs: check the page status filled from disk

2016-01-05 Thread Jaegeuk Kim
On Wed, Jan 06, 2016 at 11:14:22AM +0800, Chao Yu wrote: > Hi Jaegeuk, > > > -Original Message- > > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > > Sent: Wednesday, January 06, 2016 10:30 AM > > To: Chao Yu > > Cc: linux-kernel@vger.kernel.org; linux-fsde...@vger.kernel.org; > > linux-f2

[PATCH v2 11/12] mmc: sdhci-pxav2: remove unnecessary assignment of pltfm_host->priv

2016-01-05 Thread Jisheng Zhang
The sdhci_pltfm_init() function has initialized the priv member as NULL, so there's no need to do it again. Signed-off-by: Jisheng Zhang Acked-by: Arnd Bergmann --- drivers/mmc/host/sdhci-pxav2.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-pxav2.c b/drivers/mmc/hos

[PATCH v2 10/12] mmc: sdhci-tegra: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-tegra to this allocation. Signed-off-by: Jisheng Zhang Acked-by: Arnd Bergmann --- drivers/

[PATCH v2 08/12] mmc: sdhci-pxav3: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates sdhci-pxav3 to this allocation. Signed-off-by: Jisheng Zhang Acked-by: Arnd Bergmann --- drivers/

[PATCH v2 12/12] mmc: sdhci-pltfm: remove priv variable from sdhci_pltfm_host

2016-01-05 Thread Jisheng Zhang
Now all clients migration to use sdhci_pltfm_init for private allocation is done and there's no users of the priv variable, so we can remove it from the sdhci_pltfm_host structure. Signed-off-by: Jisheng Zhang Acked-by: Arnd Bergmann --- drivers/mmc/host/sdhci-pltfm.h | 1 - 1 file changed, 1 d

[PATCH v2 06/12] mmc: sdhci-of-at91: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates the sdhci-of-at91 driver to this allocation. Signed-off-by: Jisheng Zhang Acked-by: Arnd Bergmann

[PATCH v2 07/12] mmc: sdhci-of-esdhc: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates the sdhci-of-esdhc driver to this allocation. Signed-off-by: Jisheng Zhang Acked-by: Arnd Bergmann

[PATCH v2 02/12] mmc: sdhci-esdhc-imx: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
Commit 0e748234293f ("mmc: sdhci: Add size for caller in init+register") allows users of sdhci_pltfm to allocate private space in calls to sdhci_pltfm_init+sdhci_pltfm_register. This patch migrates the sdhci esdhc-imx driver to this allocation. Signed-off-by: Jisheng Zhang Acked-by: Arnd Bergmann

RE: [f2fs-dev] [PATCH 2/3] f2fs: cover more area with nat_tree_lock

2016-01-05 Thread Chao Yu
Hi Jaegeuk, > -Original Message- > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > Sent: Wednesday, January 06, 2016 1:58 AM > To: Chao Yu > Cc: linux-kernel@vger.kernel.org; linux-fsde...@vger.kernel.org; > linux-f2fs-de...@lists.sourceforge.net > Subject: Re: [f2fs-dev] [PATCH 2/3] f2fs:

linux-next: manual merge of the tip tree with the h8300 tree

2016-01-05 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: arch/h8300/Kconfig between commit: ff2b670fcb7b ("h8300: KGDB support") from the h8300 tree and commit: 97a23beb8db9 ("clocksource/drivers/h8300_timer8: Separate the Kconfig option from the arch") from the tip tree.

[PATCH] perf tools: Fix mmap2 event allocation in synthesize code

2016-01-05 Thread Wang Nan
perf_event__synthesize_mmap_events() issues mmap2 events, but the memory of that event is allocated using: mmap_event = malloc(sizeof(mmap_event->mmap) + machine->id_hdr_size); If path of mmap source file is long (near PATH_MAX), random crash would happen. Should use sizeof(mmap_event->mmap2).

Re: [PATCH 1/7] printk: Hand over printing to console if printing too long

2016-01-05 Thread Sergey Senozhatsky
Hello, On (01/05/16 15:48), Jan Kara wrote: > > [..] > > > cond_resched() does its job there, of course. well, a user process still > > > can > > > do a lot of call_console_drivers() calls. may be we can check who is > > > calling > > > console_unlock() and if we have "!printk_sync && !oops_in_p

linux-next: build failure after merge of the spi tree

2016-01-05 Thread Stephen Rothwell
tion) if (!check_rx_buf && (spi->master->mode_bits & SPI_LOOP)) { ^ Caused by commit b0632bfe5ec4 ("spi: loopback-test: added support for HW-loopback mode") I have used the spi tree from next-20160105 for today. -- Cheers, Stephen Rothwell

Re: [lkp] [rcu] b8084f70e0: No primary result change, 1414.7% unixbench.time.involuntary_context_switches

2016-01-05 Thread Paul E. McKenney
DM003-1CH162_Z1DBQSB0-part3" > rootfs_partition: "/dev/disk/by-id/ata-ST1000DM003-1CH162_Z1DBQSB0-part4" > netconsole_port: 66723 > category: benchmark > nr_task: 1 > unixbench: > test: fsdisk > queue: bisect > testbox: lkp-ivb-d02 > tbox_group: lkp-

Re: [PATCH v4 5/5] misc: eeprom_93xx46: Add support for a GPIO 'select' line.

2016-01-05 Thread Cory Tusar
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/21/2015 07:30 PM, Vladimir Zapolskiy wrote: > Hi Cory, > > On 10.12.2015 06:00, Cory Tusar wrote: >> This commit adds support to the eeprom_93x46 driver allowing a GPIO line >> to function as a 'select' or 'enable' signal prior to accessing the

Re: [PATCH v4 4/5] misc: eeprom_93xx46: Add quirks to support Atmel AT93C46D device.

2016-01-05 Thread Cory Tusar
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/21/2015 07:19 PM, Vladimir Zapolskiy wrote: > > > With best wishes, > Vladimir > > On 10.12.2015 06:00, Cory Tusar wrote: >> Atmel devices in this family have some quirks not found in other similar >> chips - they do not support a sequential r

[lkp] [mm/vmstat] 6cdb18ad98: -8.5% will-it-scale.per_thread_ops

2016-01-05 Thread kernel test robot
64-rhel/gcc-4.9/6cdb18ad98a49f7e9b95d538a0614cde827404b8/0" job_file: "/lkp/scheduled/ivb42/bisect_will-it-scale-performance-pread1-debian-x86_64-2015-02-07.cgz-x86_64-rhel-6cdb18ad98a49f7e9b95d538a0614cde827404b8-20160105-44334-2cdw3i-0.yaml" max_uptime: 1500 initrd: "/osimage/debian/debian-x86_6

Re: [PATCH v4 3/5] misc: eeprom_93xx46: Implement eeprom_93xx46 DT bindings.

2016-01-05 Thread Cory Tusar
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/21/2015 07:12 PM, Vladimir Zapolskiy wrote: > Hi Cory, > > On 10.12.2015 06:00, Cory Tusar wrote: >> This commit implements bindings in the eeprom_93xx46 driver allowing >> device word size and read-only attributes to be specified via >> devicet

RE: [f2fs-dev] [PATCH 1/3] f2fs: check the page status filled from disk

2016-01-05 Thread Chao Yu
Hi Jaegeuk, > -Original Message- > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > Sent: Wednesday, January 06, 2016 10:30 AM > To: Chao Yu > Cc: linux-kernel@vger.kernel.org; linux-fsde...@vger.kernel.org; > linux-f2fs-de...@lists.sourceforge.net > Subject: Re: [f2fs-dev] [PATCH 1/3] f2fs

Re: [RFC][PATCH 0/7] Sanitization of slabs based on grsecurity/PaX

2016-01-05 Thread Laura Abbott
On 1/5/16 4:09 PM, Kees Cook wrote: On Tue, Dec 22, 2015 at 12:04 PM, Laura Abbott wrote: On 12/22/15 8:08 AM, Christoph Lameter wrote: On Mon, 21 Dec 2015, Laura Abbott wrote: The biggest change from PAX_MEMORY_SANTIIZE is that this feature sanitizes the SL[AOU]B allocators only. My plan i

Re: [RFC][PATCH 7/7] lkdtm: Add READ_AFTER_FREE test

2016-01-05 Thread Laura Abbott
On 1/5/16 4:15 PM, Kees Cook wrote: On Mon, Dec 21, 2015 at 7:40 PM, Laura Abbott wrote: In a similar manner to WRITE_AFTER_FREE, add a READ_AFTER_FREE test to test free poisoning features. Sample output when no poison is present: [ 20.222501] lkdtm: Performing direct entry READ_AFTER_FREE

Re: [kernel-hardening] [RFC][PATCH 6/7] mm: Add Kconfig option for slab sanitization

2016-01-05 Thread Laura Abbott
On 1/5/16 4:29 PM, Kees Cook wrote: On Tue, Dec 22, 2015 at 11:13 AM, Laura Abbott wrote: On 12/22/15 10:19 AM, Dave Hansen wrote: On 12/22/2015 10:08 AM, Christoph Lameter wrote: On Tue, 22 Dec 2015, Dave Hansen wrote: Why would you use zeros? The point is just to clear the information r

Re: [PATCH 03/11] mmc: sdhci-msm: use sdhci_pltfm_init for private allocation

2016-01-05 Thread Jisheng Zhang
On Tue, 5 Jan 2016 20:47:37 +0800 kbuild test robot wrote: > Hi Jisheng, > > [auto build test WARNING on v4.4-rc8] > [also build test WARNING on next-20160105] > [cannot apply to ulf.hansson-mmc/next] > [if your patch is applied to the wrong git tree, please drop us a note to

Re: [PATCH v4 2/5] Documentation: devicetree: Add DT bindings to eeprom_93xx46 driver.

2016-01-05 Thread Cory Tusar
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/21/2015 07:01 PM, Vladimir Zapolskiy wrote: > Hi Cory, > > On 10.12.2015 06:00, Cory Tusar wrote: >> This commit documents bindings to be added to the eeprom_93xx46 driver >> which will allow: >> >> - Device word size and read-only attributes

Re: [PATCH] soc: mediatek: PMIC wrap: Enable STAUPD_PRD before WDT_SRC_EN enabled.

2016-01-05 Thread Daniel Kurtz
On Mon, Jan 4, 2016 at 11:05 AM, Henry Chen wrote: > On Thu, 2015-12-31 at 22:19 +0800, Daniel Kurtz wrote: >> On Wed, Dec 30, 2015 at 8:36 PM, Henry Chen wrote: >> > >> > The STAUPD_TRIG will be enable when WDT_INT enable on probe function, if >> > doesn't enable STAUPD_PRD together, interrupt w

Re: [f2fs-dev] [PATCH 1/3] f2fs: check the page status filled from disk

2016-01-05 Thread Jaegeuk Kim
Hi, On Wed, Jan 06, 2016 at 09:21:29AM +0800, Chao Yu wrote: > Hi Jaegeuk, > > > -Original Message- > > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > > Sent: Wednesday, January 06, 2016 1:49 AM > > To: Chao Yu > > Cc: linux-kernel@vger.kernel.org; linux-fsde...@vger.kernel.org; > > linu

[PATCH 1/2] asus-wireless: Toggle airplane mode LED

2016-01-05 Thread João Paulo Rechi Vita
In the ASHS device we have the HSWC method, which basically calls either OWGD or OWGS, depending on its parameter: Device (ASHS) { Name (_HID, "ATK4002") // _HID: Hardware ID Method (HSWC, 1, Serialized) { If

Re: [PATCH] net/rfkill: Create "airplane mode" LED trigger

2016-01-05 Thread João Paulo Rechi Vita
Hello Johannes, On 26 December 2015 at 10:05, João Paulo Rechi Vita wrote: > For platform drivers to be able to correctly drive the "Airplane Mode" > indicative LED there needs to be a RFKill LED trigger tied to the global > state of RFKILL_TYPE_ALL (instead of to a specific RFKill) and that > wo

[PATCH 1/2] asus-wireless: Toggle airplane mode LED

2016-01-05 Thread João Paulo Rechi Vita
In the ASHS device we have the HSWC method, which basically calls either OWGD or OWGS, depending on its parameter: Device (ASHS) { Name (_HID, "ATK4002") // _HID: Hardware ID Method (HSWC, 1, Serialized) { If

[PATCH 2/2] asus-wmi: Create quirk for airplane_mode LED

2016-01-05 Thread João Paulo Rechi Vita
Some Asus laptops have a "airplane mode" indicator LED, have the WMI WLAN user bit set, and also have the following bits in their DSDT: Scope (_SB) { (...) Device (ATKD) { (...) Method (WMNB, 3, Serialized) { (...) If (LEqual (IIA0, 0x00010002)) { OWGD (

[PATCH 0/2] asus-wireless: Drive airplane mode LED

2016-01-05 Thread João Paulo Rechi Vita
This series adds code to drive the airplane mode indicator LED present in some of the Asus laptops that have an airplane mode hotkey. It depends on a new LED trigger created in the RFKill subsystem, which is currently pending review on linux-wireless. It also creates a new DMI quirk on asus-wmi be

  1   2   3   4   5   6   7   8   9   10   >