[PATCH 08/18] staging: lustre: hsm: copy start error should set HP_FLAG_COMPLETED

2016-04-04 Thread James Simmons
From: Aurelien Degremont If an error occurs when initializing a HSM request, in ll_ioc_copy_start(), the PROGRESS message, sent to coordinator, should carry the error code but also HP_FLAG_COMPLETED to mark the request as finished (with error). If not, the Coordinator will ignore this message and

Re: [PATCH 3/4] perf: xgene: Add APM X-Gene SoC Performance Monitoring Unit driver

2016-04-04 Thread Mark Rutland
On Mon, Apr 04, 2016 at 04:42:11PM -0700, Tai Tri Nguyen wrote: > On Fri, Apr 1, 2016 at 5:18 AM, Mark Rutland wrote: > >> +static int get_next_avail_cntr(struct xgene_pmu_dev *pmu_dev) > >> +{ > >> + int shift, cntr, retval; > >> + unsigned long flags; > >> + > >> + raw_spin_lock_irqs

[PATCH 12/18] staging: lustre: mdc: document mdc_rpc_lock

2016-04-04 Thread James Simmons
From: Ned Bass As this lock can be a bottleneck, clarifying why it is needed may be helpful to those working on client performance. Signed-off-by: Ned Bass Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3443 Reviewed-on: http://review.whamcloud.com/6593 Reviewed-by: Andreas Dilger Reviewe

Re: [PATCH v6 2/4] perf config: Let show_config() work with perf_config_set

2016-04-04 Thread Taeung Song
On 04/04/2016 09:49 PM, Masami Hiramatsu wrote: On Mon, 4 Apr 2016 18:17:05 +0900 Taeung Song wrote: Current show_config() has a problem when user or system config files have same config variables i.e. # cat ~/.perfconfig [top] children = false when $(sysco

Re: [v14, 01/17] drm: bridge: analogix/dp: split exynos dp driver to bridge directory

2016-04-04 Thread Yakir Yang
Hi Guenter On 03/31/2016 04:32 AM, Guenter Roeck wrote: Hi, On Mon, Feb 15, 2016 at 07:09:36PM +0800, Yakir Yang wrote: Split the dp core driver from exynos directory to bridge directory, and rename the core driver to analogix_dp_*, rename the platform code to exynos_dp. Beside the new analog

Re: [RFC] Create an audit record of USB specific details

2016-04-04 Thread Wade Mealing
That is a good question, maybe I've been lucky in the devices that I have been testing with. Most of them seem to be ascii, my assumption was that shouldn't be a problem. The same encoding function used by the path audit_log_d_path, definitely audits UTF8 named files: # ausearch -i -f /tmp/tes

[PATCH 06/18] staging: lustre: hsm: Fix lu_ref for lease handle

2016-04-04 Thread James Simmons
From: Jinshan Xiong The lu_ref was not being decremented when releasing the lease handle. Signed-off-by: Jinshan Xiong Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3647 Reviewed-on: http://review.whamcloud.com/7243 Reviewed-by: John L. Hammond Reviewed-by: jacques-Charles Lafoucriere R

[PATCH] ARM: specify install, zinstall, and uinstall as PHONY targets

2016-04-04 Thread Masahiro Yamada
Obviously, these are PHONY targets. Signed-off-by: Masahiro Yamada --- KernelVersion: 4.6-rc1 arch/arm/boot/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/Makefile b/arch/arm/boot/Makefile index 48fab15..446705a 100644 --- a/arch/arm/boot/Makefile ++

[PATCH 10/18] staging: lustre: llite: reset writeback index in ll_writepages

2016-04-04 Thread James Simmons
From: Jinshan Xiong Otherwise after one round the writeback index will become beyond the file size and ->writepages() turns into an empty operation. Also, a safety guard is added to limit the wait time for grant to 10 minutes(take recovery into consideration) at maximum in the osc_enter_cache()

[PATCH 06/13] devpts: Use the same default mode for both /dev/ptmx and dev/pts/ptmx

2016-04-04 Thread Eric W. Biederman
The default mode is 0666 on /dev/ptmx so we really don't gain anything except a bunch of hassle by not having the default mode on /dev/pts/ptmx also being 0666. Leave the default of ptmxmode at on the system mount of devpts to avoid the off chance that it would open an security hole on existi

[PATCH] regulator: max8997/max77802: Fix misspelled Samsung address

2016-04-04 Thread Krzysztof Kozlowski
Correct smasung.com into samsung.com. Signed-off-by: Krzysztof Kozlowski --- drivers/regulator/max77802-regulator.c | 2 +- drivers/regulator/max8997-regulator.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/max77802-regulator.c b/drivers/regulator/ma

[PATCH 13/13] devpts: Kill the DEVPTS_MULTIPLE_INSTANCE config option

2016-04-04 Thread Eric W. Biederman
Retain the code that was previously enabled with DEVPTS_MULTIPLE_INSTANCES and remove the config option, and kill the little bit of code that existed only when DEVPTS_MULTIPLE_INSTANCES was not selected. With the recently updated semantics userspace actively depends on having multiple instances of

[PATCH V2 01/30] bitops: add parity functions

2016-04-04 Thread Zeng Zhaoxiu
From: Zhaoxiu Zeng These patches provide generic and architecture-specific odd parity calculations. I did not use GCC's __builtin_parity* functions, based on the following reasons: 1. I don't know where to identify which version of GCC from the beginning supported __builtin_parity fo

[PATCH 11/18] staging: lustre: llite: Delaying creation of client side proc entries.

2016-04-04 Thread James Simmons
From: Gaurav Mahajan In client_common_fill_super() proc entries are created before before cl_sb_init() and therefore lu_site is not allocated resulting in client crash when tried reading lu_site stats. Delaying creation of proc entries after creation of all required data structures fixed the prob

[PATCH 04/13] devpts: Stop rolling devpts_remount by hand in devpts_mount

2016-04-04 Thread Eric W. Biederman
Just use devpts_remount and by doing so ensuring that ptxmode actually get propogated to /dev/pts/ptmx on the initial mount of devpts. Signed-off-by: "Eric W. Biederman" --- fs/devpts/inode.c | 26 -- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/fs/devp

[PATCH] hwrng: exynos - Fix misspelled Samsung address

2016-04-04 Thread Krzysztof Kozlowski
Correct smasung.com into samsung.com. Signed-off-by: Krzysztof Kozlowski --- drivers/char/hw_random/exynos-rng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/hw_random/exynos-rng.c b/drivers/char/hw_random/exynos-rng.c index ada081232528..3443fdda44fa 100644

Re: [PATCH v1 2/2] rockchip: power-domain: support qos save and restore

2016-04-04 Thread Elaine Zhang
hi, Heiko: Thanks for your replay. For your questions, I also have the same concerns. On 04/02/2016 12:19 AM, Heiko Stuebner wrote: Hi Elaine, Am Freitag, 1. April 2016, 10:33:45 schrieb Elaine Zhang: I agree with most of your modifications. Except, the u32 *qos_save_regs below you're right

[PATCH 18/18] staging: lustre: osc: Lustre returns EINTR from writes when SA_RESTART is set

2016-04-04 Thread James Simmons
When Lustre is in a read or write system call and receives a SIGALRM, it will return EINTR if interrupted in osc_enter_cache. This prevents the system call from being restarted if SA_RESTART is set in the handler. This patch changes behavior in this location to return ERESTARTSYS when a signal arr

[PATCH v2] clk: let clk_disable() return immediately if clk is NULL or error

2016-04-04 Thread Masahiro Yamada
The clk_disable() in the common clock framework (drivers/clk/clk.c) returns immediately if a given clk is NULL or an error pointer. It allows clock consumers to call clk_disable() without IS_ERR_OR_NULL checking if drivers are only used with the common clock framework. Unfortunately, NULL/error c

[PATCH 11/13] vfs: Implement mount_super_once

2016-04-04 Thread Eric W. Biederman
The devpts filesystem has a notion of a system or primary instance of devpts. To retain the notion of a primary system instance of devpts the code needs a way to allow userspace to mount the internally mounted instance of devpts when it is not currently mounted by userspace. The new helper mount_

[PATCH 09/18] staging: lustre: lov: Get the correct address of lmm_objects

2016-04-04 Thread James Simmons
From: Swapnil Pimpale The introduction of lmm_layout_gen makes the assumption that lmm_objects is present after lmm_stripe_count incorrect. Fixed this to get the correct address of lmm_objects when lmmk is cast to lov_mds_md_v1. Signed-off-by: Swapnil Pimpale Intel-bug-id: https://jira.hpdd.int

Re: [PATCH 2/4] Documentation: Add documentation for APM X-Gene SoC PMU DTS binding

2016-04-04 Thread Mark Rutland
On Mon, Apr 04, 2016 at 04:40:33PM -0700, Tai Tri Nguyen wrote: > On Fri, Apr 1, 2016 at 5:30 AM, Mark Rutland wrote: > > On Thu, Mar 31, 2016 at 04:37:50PM -0700, Tai Nguyen wrote: > >> +This is APM X-Gene SoC PMU (Performance Monitoring Unit) module. > >> +The following PMU devices are supported

[PATCH 02/13] devpts: More obvious check for the system devpts in pty allocation

2016-04-04 Thread Eric W. Biederman
This makes the logic of the test clearer, and removes a confusing use of opts.newinstance, which allows later changes not to worry if newinstance is set on the primary mount of devpts or not. Signed-off-by: "Eric W. Biederman" --- fs/devpts/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 delet

Re: [PATCH v3 01/16] mm: use put_page to free page instead of putback_lru_page

2016-04-04 Thread Naoya Horiguchi
On Mon, Apr 04, 2016 at 04:46:31PM +0200, Vlastimil Babka wrote: > On 04/04/2016 06:45 AM, Naoya Horiguchi wrote: > > On Mon, Apr 04, 2016 at 10:39:17AM +0900, Minchan Kim wrote: ... > >>> > >>> Also (but not your fault) the put_page() preceding > >>> test_set_page_hwpoison(page)) IMHO deserves a c

[PATCH 09/13] devpts: Move the creation of /dev/pts/ptmx into fill_super

2016-04-04 Thread Eric W. Biederman
The code makes more sense here and things are just clearer. Signed-off-by: "Eric W. Biederman" --- fs/devpts/inode.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c index 266a7b7501a6..5356a68863b8 100644 --- a/fs/

[PATCH 01/13] devpts: Teach /dev/ptmx to find the associated devpts via path lookup

2016-04-04 Thread Eric W. Biederman
This is in preparation for forcing each mount of devpts to be a distinct filesystem. The goal of this change is to have as few user visible changes from the kernel today as possible. On each open of /dev/ptmx look at the relative path pts and see if devpts is mounted there. If the filesystem fou

[PATCH 05/13] devpts: Fail early (if appropriate) on overmount

2016-04-04 Thread Eric W. Biederman
Update the vfs with a may_overmount superblock operation, allowing devpts to fail early if the primary mount of devpts is going to be mounted on top of itself. This change is in preparation for each mount of devpts being distinct from every other mount of devpts. To maintain a backward compatible

Re: [RESEND PATCH] mfd: max77686: Use module_i2c_driver() instead of subsys initcall

2016-04-04 Thread Andi Shyti
Hi Javier, > The driver's init and exit function don't do anything besides adding and > deleting the I2C driver so the module_i2c_driver() macro could be used. > > Currently is not being used because the driver is initialized at subsys > initcall level, claiming that this is done to allow consume

[PATCH 13/18] staging: lustre: hsm: Add CLF_RENAME_LAST flag

2016-04-04 Thread James Simmons
From: JC Lafoucriere Create a special flag for the last rename event. Signed-off-by: JC Lafoucriere Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3718 Reviewed-on: http://review.whamcloud.com/7260 Reviewed-by: Jinshan Xiong Reviewed-by: John L. Hammond Reviewed-by: Oleg Drokin Signed-o

[PATCH 15/18] staging: lustre: llite: cancel open lock before closing file

2016-04-04 Thread James Simmons
From: Jinshan Xiong In error handling path of ll_lease_open(), och has already been freed in ll_close_inode_openhandle() so the sequence of cancel open lock and close open handle need adjusting. Signed-off-by: Jinshan Xiong Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3647 Reviewed-on: h

[PATCH 17/18] staging: lustre: fix 'no effect' errors

2016-04-04 Thread James Simmons
From: Sebastien Buisson Fix 'no effect' issues found by Coverity version 6.5.1: Unsigned compared against 0 (NO_EFFECT) This greater-than-or-equal-to-zero comparison of an unsigned value is always true. Remove useless cast. Signed-off-by: Sebastien Buisson Intel-bug-id: https://jira.hpdd.inte

[PATCH 07/13] devpts: Move parse_mount_options into fill_super

2016-04-04 Thread Eric W. Biederman
Signed-off-by: "Eric W. Biederman" --- fs/devpts/inode.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c index 80c78bb472a9..46d633ab16c7 100644 --- a/fs/devpts/inode.c +++ b/fs/devpts/inode.c @@ -462,6 +462,7 @@ static int

[PATCH 16/18] staging: lustre: hsm: Add support to drop all pages for ll_data_version

2016-04-04 Thread James Simmons
From: Jinshan Xiong This will be used by HSM release to get data version and drop all caching pages from all clients, before sending IT_RELEASE close REQ to MDT. Signed-off-by: Jinshan Xiong Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3647 Reviewed-on: http://review.whamcloud.com/6794 R

Re: [PATCH v4 00/20] x86, boot: kaslr cleanup and 64bit kaslr support

2016-04-04 Thread Baoquan He
Hi Ingo, Ping. Do you have any suggestions or comments for this patchset? As you suggested for Yinghai's earlier post, I re-check the whole patchset and try to understand them all, and try to re-write patch logs with my own understanding. I hope this patch logs can help people who are interested

Re: [PATCH RFC] sched/fair: let cpu's cfs_rq to reflect task migration

2016-04-04 Thread Yuyang Du
On Mon, Apr 04, 2016 at 09:48:23AM +0100, Morten Rasmussen wrote: > On Sat, Apr 02, 2016 at 03:11:54PM +0800, Leo Yan wrote: > > On Fri, Apr 01, 2016 at 03:28:49PM -0700, Steve Muckle wrote: > > > I think I follow - Leo please correct me if I mangle your intentions. > > > It's an issue that Morten

Re: [RESEND PATCH] mfd: max77686: Use module_i2c_driver() instead of subsys initcall

2016-04-04 Thread Krzysztof Kozlowski
On 05.04.2016 07:46, Javier Martinez Canillas wrote: > The driver's init and exit function don't do anything besides adding and > deleting the I2C driver so the module_i2c_driver() macro could be used. > > Currently is not being used because the driver is initialized at subsys > initcall level, cl

[PATCH 14/18] staging: lustre: fix 'NULL pointer dereference' errors

2016-04-04 Thread James Simmons
From: Sebastien Buisson Fix 'NULL pointer dereference' defects found by Coverity version 6.5.0: Dereference after null check (FORWARD_NULL) For instance, Passing null pointer to a function which dereferences it. Dereference before null check (REVERSE_INULL) Null-checking variable suggests that it

[PATCH 05/18] staging: lustre: libcfs: make D_HSM a unique value

2016-04-04 Thread James Simmons
From: Jinshan Xiong Redefine D_HSM. It was defined to D_TRACE. Signed-off-by: Jinshan Xiong Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3647 Reviewed-on: http://review.whamcloud.com/7243 Reviewed-by: John L. Hammond Reviewed-by: jacques-Charles Lafoucriere Reviewed-by: Oleg Drokin Si

[PATCH][RFC v2] cpufreq: governor: Fix overflow when calculating idle time

2016-04-04 Thread Chen Yu
It was reported that after Commit 0df35026c6a5 ("cpufreq: governor: Fix negative idle_time when configured with CONFIG_HZ_PERIODIC"), cpufreq ondemand governor started to act oddly. Without any load, with freshly booted system, it pumped cpu frequency up to maximum at some point of time and stayed

Re: [PATCH] regulator: twl: Provide of_map_mode for twl4030

2016-04-04 Thread Mark Brown
On Mon, Apr 04, 2016 at 09:57:14PM +0300, Ivaylo Dimitrov wrote: > +For twl4030 regulators/LDOs: > + - regulator-initial-mode: > + - 0x00 - Off mode, the output voltage is not maintained and voltage > regulator > + power consumption is 0. This isn't a mode, it's just the regulator bei

Re: [PATCH] ARM: keystone: remove redundant depends on ARM_PATCH_PHYS_VIRT

2016-04-04 Thread Masahiro Yamada
2016-02-06 3:31 GMT+09:00 santosh shilimkar : > On 2/5/2016 10:13 AM, Masahiro Yamada wrote: >> >> 2016-02-06 2:56 GMT+09:00 santosh shilimkar >> : >>> >>> On 2/5/2016 9:40 AM, Masahiro Yamada wrote: KeyStone is Multi-platform. ARM_PATCH_PHYS_VIRT is already select'ed by ARCH_M

Re: [v14, 01/17] drm: bridge: analogix/dp: split exynos dp driver to bridge directory

2016-04-04 Thread Yakir Yang
On 04/01/2016 12:02 AM, Doug Anderson wrote: Hi, On Thu, Mar 31, 2016 at 2:56 AM, Thierry Reding wrote: Ugh... most of these functions shouldn't be there in the first place. We have helpers in the core that already do this. Most of the functionality is duplicated in this driver. I realize th

Re: [RFC PATCH 0/4] Add ACPI support for pinctrl configuration

2016-04-04 Thread Mark Brown
On Thu, Mar 31, 2016 at 02:44:41PM +0300, Irina Tirdea wrote: > This is a proposal for adding ACPI support for pin controller > configuration. > It has been developed to enable the MinnowBoard and IoT community > by providing an easy way to specify pin multiplexing and > pin configuration. So th

[PATCH 1/2] gma500: Add proper use of the variable ret for the function, psb_mmu_inset_pfn_sequence

2016-04-04 Thread Bastien Philbert
This adds proper use of the variable ret by returning it at the end of the function, psb_mmu_inset_pfn_sequence for indicating to callers when an error has occurred. Further more remove the unneeded double setting of ret to the error code, -ENOMEM after checking if a call to the function, Signed-o

Re: [PATCH v14 0/17] Add Analogix Core Display Port Driver

2016-04-04 Thread Yakir Yang
Hi Daniel, On 03/31/2016 06:15 PM, Daniel Vetter wrote: On Mon, Feb 15, 2016 at 07:08:05PM +0800, Yakir Yang wrote: Hi all, The Samsung Exynos eDP controller and Rockchip RK3288 eDP controller share the same IP, so a lot of parts can be re-used. I split the common code into bridge directory

[GIT PULL for v4.6-rc3] media fixes

2016-04-04 Thread Mauro Carvalho Chehab
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media tags/media/v4.6-3 For some bug fixes on au0828 and snd-usb-audio: - The au0828+snd-usb-audio MC patch broke several things and produced some race conditions. Better to revert the patches, and re

[PATCH 2/2] gma500: Add new error checking for the function, psb_driver_load

2016-04-04 Thread Bastien Philbert
This adds new error checking to the function, psb_driver_load for when the function, psb_mmu_inset_pfn_sequence fails to grab memory for the internal function call to psb_pd_addr_end. In addition we now implement this by checking for a error code return value from the internal call to the function

[PATCH] staging: rtl8712: use container_of() instead of LIST_CONTAINOR()

2016-04-04 Thread Geliang Tang
This patch drops the local definition of LIST_CONTAINOR(), and uses container_of() instead of it. Signed-off-by: Geliang Tang --- drivers/staging/rtl8712/osdep_service.h | 3 --- drivers/staging/rtl8712/rtl8712_recv.c| 10 +- drivers/staging/rtl8712/rtl8712_xmit.c|

Re: [PATCHv10 1/3] rdmacg: Added rdma cgroup controller

2016-04-04 Thread Parav Pandit
Hi Tejun, On Mon, Apr 4, 2016 at 6:25 PM, Tejun Heo wrote: > Hello, > > On Mon, Apr 04, 2016 at 03:50:54PM -0700, Parav Pandit wrote: >> 2nd advantage is, it allows avoiding lot of rework, in bundling kernel >> modules with different kernel versions. So it is certainly valuable >> feature with al

[PATCH] cpufreq: mt8173: use list_for_each_entry*()

2016-04-04 Thread Geliang Tang
Use list_for_each_entry*() instead of list_for_each*() to simplify the code. Signed-off-by: Geliang Tang --- drivers/cpufreq/mt8173-cpufreq.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/cpufreq/mt8173-cpufreq.c b/drivers/cpufreq/mt8173-cpufreq.c in

Re: [RFC] Create an audit record of USB specific details

2016-04-04 Thread Greg KH
A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Tue, Apr 05, 2016 at 11:5

[PATCH v2] serial: 8250_dw: fix wrong logic in dw8250_check_lcr()

2016-04-04 Thread Kefeng Wang
Commit cdcea058e510("serial: 8250_dw: Avoid serial_outx code duplicate with new dw8250_check_lcr()") introduce a wrong logic when write val to LCR reg. When CONFIG_64BIT enabled, __raw_writeq is used unconditionally. The __raw_readq/__raw_writeq is introduced by commit bca2092d7897("serial: 8250_d

Re: [RFC] Create an audit record of USB specific details

2016-04-04 Thread Greg KH
On Tue, Apr 05, 2016 at 11:54:07AM +1000, Wade Mealing wrote: > That is a good question, maybe I've been lucky in the devices that I have > been testing with. Most of them seem to be ascii, my assumption was that > shouldn't be a problem. The same encoding function used by the path > audit_log_

[PATCH] kernel-parameters: document earlycon=xenboot

2016-04-04 Thread Chris Patterson
Add earlycon=xenboot option to Documentation/kernel-parameters.txt. Signed-off-by: Chris Patterson --- Documentation/kernel-parameters.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index ecc74fa..e01ec39 10064

[PATCH v2 resend] serial: 8250_dw: fix wrong logic in dw8250_check_lcr()

2016-04-04 Thread Kefeng Wang
Commit cdcea058e510 ("serial: 8250_dw: Avoid serial_outx code duplicate with new dw8250_check_lcr()") introduce a wrong logic when write val to LCR reg. When CONFIG_64BIT enabled, __raw_writeq is used unconditionally. The __raw_readq/__raw_writeq is introduced by commit bca2092d7897 ("serial: 8250

Re: [PATCH] virtio: virtio 1.0 cs04 spec compliance for reset

2016-04-04 Thread Jason Wang
On 04/03/2016 08:26 PM, Michael S. Tsirkin wrote: > The spec says: after writing 0 to device_status, the driver MUST wait > for a read of device_status to return 0 before reinitializing the > device. > > Cc: sta...@vger.kernel.org > Signed-off-by: Michael S. Tsirkin > --- > drivers/virtio/virti

Re: [RFC] Create an audit record of USB specific details

2016-04-04 Thread Paul Moore
On April 4, 2016 6:17:23 PM Greg KH wrote: On Mon, Apr 04, 2016 at 05:37:58PM -0400, Paul Moore wrote: On Monday, April 04, 2016 05:56:26 AM Greg KH wrote: > On Mon, Apr 04, 2016 at 12:02:42AM -0400, wmealing wrote: > > From: Wade Mealing > > > > Gday, > > > > I'm looking to create an audit tr

Re: [PATCH 01/13] devpts: Teach /dev/ptmx to find the associated devpts via path lookup

2016-04-04 Thread Al Viro
On Mon, Apr 04, 2016 at 08:29:17PM -0500, Eric W. Biederman wrote: > +#ifdef CONFIG_DEVPTS_MULTIPLE_INSTANCES > +static int devpts_path_ptmx(struct file *filp) > +{ > + struct pts_fs_info *fsi; > + struct path root, path; > + struct dentry *old; > + int err = -ENOENT; > + int r

Re: [PATCH v2] serial: 8250_dw: fix wrong logic in dw8250_check_lcr()

2016-04-04 Thread kbuild test robot
Hi Kefeng, [auto build test ERROR on tty/tty-testing] [also build test ERROR on v4.6-rc2 next-20160404] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Kefeng-Wang/serial-8250_dw-fix-wrong

Re: [PATCH v2] serial: 8250_dw: fix wrong logic in dw8250_check_lcr()

2016-04-04 Thread Kefeng Wang
Please ignore, sorry for typos, and will resend. On 2016/4/5 10:49, Kefeng Wang wrote: > Commit cdcea058e510("serial: 8250_dw: Avoid serial_outx code duplicate > with new dw8250_check_lcr()") introduce a wrong logic when write val to > LCR reg. When CONFIG_64BIT enabled, __raw_writeq is used uncon

linux-next: manual merge of the staging tree with the staging.current tree

2016-04-04 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the staging tree got a conflict in: drivers/iio/gyro/bmg160_core.c between commit: b475c59b113d ("iio: gyro: bmg160: fix buffer read values") from the staging.current tree and commit: 7e3d1eb123d8 ("iio: accel: bmg160: optimize transfers in trigger h

Re: [PATCH 01/13] devpts: Teach /dev/ptmx to find the associated devpts via path lookup

2016-04-04 Thread Al Viro
On Tue, Apr 05, 2016 at 03:54:25AM +0100, Al Viro wrote: > That, I take it, is a lookup for .. and buggering off if it fails *or* if > we had been in caller's root or something that overmount it? Not that the > latter had been possible - root is a directory and can be overmounted only > by anothe

Re: [PATCH] cpufreq: mt8173: use list_for_each_entry*()

2016-04-04 Thread Viresh Kumar
On 05-04-16, 10:38, Geliang Tang wrote: > Use list_for_each_entry*() instead of list_for_each*() to simplify > the code. > > Signed-off-by: Geliang Tang > --- > drivers/cpufreq/mt8173-cpufreq.c | 14 -- > 1 file changed, 4 insertions(+), 10 deletions(-) Acked-by: Viresh Kumar --

Re: drivers/base/power/opp/cpu.c:120:5: error: redefinition of 'dev_pm_opp_set_sharing_cpus'

2016-04-04 Thread Viresh Kumar
On 05-04-16, 09:34, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: 9735a22799b9214d17d3c231fe377fc852f042e9 > commit: f59d3ee8480d30f41914cb4bed5086237e8507b0 PM / OPP: Move cpu specific > code to opp/cpu.c > date: 7 mont

Re: [PATCH v3 01/16] mm: use put_page to free page instead of putback_lru_page

2016-04-04 Thread Balbir Singh
On 04/04/16 16:01, Minchan Kim wrote: > On Mon, Apr 04, 2016 at 03:53:59PM +1000, Balbir Singh wrote: >> >> On 30/03/16 18:12, Minchan Kim wrote: >>> Procedure of page migration is as follows: >>> >>> First of all, it should isolate a page from LRU and try to >>> migrate the page. If it is succes

RE: [RFC PATCH 10/10] acpi: add support for loading SSDTs via configfs

2016-04-04 Thread Zheng, Lv
Hi, > From: Octavian Purdila [mailto:octavian.purd...@intel.com] > Subject: Re: [RFC PATCH 10/10] acpi: add support for loading SSDTs via > configfs > > On Fri, Apr 1, 2016 at 7:55 AM, Zheng, Lv wrote: > > Hi, > > Hi Lv, > > >> Add support for acpi_user_table configfs items that allows the us

Re: [PATCH] drivers/idle: make intel_idle.c driver more explicitly non-modular

2016-04-04 Thread rcochran
On Mon, Apr 04, 2016 at 03:55:35PM -0400, Paul Gortmaker wrote: > > This was done in commit 6ce9cd8669fa1195fdc21643370e34523c7ac988 > > ("intel_idle: disable module support") since "...the module capability > > is cauing more trouble than it is worth." The reason given in that commit was that "it

RE: [PATCH 1/1] perf tools: Fix format value calculation

2016-04-04 Thread Liang, Kan
> On Mon, Apr 04, 2016 at 06:12:54AM -0700, kan.li...@intel.com wrote: > > From: Kan Liang > > > > The calculation of format value also rely on the continuity of the > > format. However, uncore event format is not continuous. > > E.g. The bit 21 as qpi event is lost. > > > > perf stat -a -e uncor

[PATCH 1/2] clk: bcm2835: Fix compiler warnings on 64-bit builds

2016-04-04 Thread Eric Anholt
Signed-off-by: Eric Anholt --- drivers/clk/bcm/clk-bcm2835.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/bcm/clk-bcm2835.c b/drivers/clk/bcm/clk-bcm2835.c index 4c0f1b5..87616de 100644 --- a/drivers/clk/bcm/clk-bcm2835.c +++ b/drivers/clk/bcm/clk-bcm283

[PATCH 0/2] minor bcm2835 clock fixes

2016-04-04 Thread Eric Anholt
Here are two little fixes for clk-bcm2835 from working on the arm64 port. I'm fine with both of them landing in -next. The PLL poweron is a bugfix even for non-arm64, but I haven't seen it get hit before (I needed to fail to include the pinctrl driver in order for the code path to trigger). Eric

[PATCH 2/2] clk: bcm2835: Fix PLL poweron

2016-04-04 Thread Eric Anholt
In poweroff, we set the reset bit and the power down bit, but only managed to unset the reset bit for poweron. This meant that if HDMI did -EPROBE_DEFER after it had grabbed its clocks, we'd power down the PLLH (that had been on at boot time) and never recover. Signed-off-by: Eric Anholt Cc: sta

[PATCH v3] serial: 8250_dw: fix wrong logic in dw8250_check_lcr()

2016-04-04 Thread Kefeng Wang
Commit cdcea058e510 ("serial: 8250_dw: Avoid serial_outx code duplicate with new dw8250_check_lcr()") introduce a wrong logic when write val to LCR reg. When CONFIG_64BIT enabled, __raw_writeq is used unconditionally. The __raw_readq/__raw_writeq is introduced by commit bca2092d7897 ("serial: 8250

[RFC PATCH v2 3/5] media: uvcvideo change to use Media Device Allocator API

2016-04-04 Thread Shuah Khan
Change uvcvideo to use Media Device Allocator API and new Media Controller media_device_unregister_put() interface. Signed-off-by: Shuah Khan --- drivers/media/usb/uvc/uvc_driver.c | 36 ++-- drivers/media/usb/uvc/uvcvideo.h | 3 ++- 2 files changed, 24 inserti

[RFC PATCH v2 1/5] media: Add Media Device Allocator API

2016-04-04 Thread Shuah Khan
Add Media Device Allocator API to manage Media Device life time problems. There are known problems with media device life time management. When media device is released while an media ioctl is in progress, ioctls fail with use-after-free errors and kernel hangs in some cases. Media Allocator API p

[RFC PATCH v2 2/5] media: Add driver count to keep track of media device registrations

2016-04-04 Thread Shuah Khan
Add driver count to keep track of media device registrations to avoid releasing the media device, when one of the drivers does unregister when media device belongs to more than one driver. Also add a new interfaces to unregister a media device allocated using Media Device Allocator and a increment

[RFC PATCH v2 0/5] Media Device Allocator API

2016-04-04 Thread Shuah Khan
There are known problems with media device life time management. When media device is released while an media ioctl is in progress, ioctls fail with use-after-free errors and kernel hangs in some cases. Media Device can be in any the following states: - Allocated - Registered (could be tied to mo

[RFC PATCH v2 4/5] media: au0828 change to use Media Device Allocator API

2016-04-04 Thread Shuah Khan
Change au0828 to use Media Device Allocator API and new Media Controller media_device_unregister_put() interface. Fix to unregister entity_notify hook. Signed-off-by: Shuah Khan --- drivers/media/usb/au0828/au0828-core.c | 40 -- drivers/media/usb/au0828/au0828.h

[RFC PATCH v2 5/5] sound/usb: Use Media Controller API to share media resources

2016-04-04 Thread Shuah Khan
Change ALSA driver to use Media Controller API to share media resources with DVB and V4L2 drivers on a AU0828 media device. Media Controller API specific initialization is done after sound card is registered. au0828 and snd-usb-audio use Media Device Allocator API to allocate and share the media d

Re: [RFC] Create an audit record of USB specific details

2016-04-04 Thread Greg KH
On Mon, Apr 04, 2016 at 10:54:56PM -0400, Paul Moore wrote: > On April 4, 2016 6:17:23 PM Greg KH wrote: > > On Mon, Apr 04, 2016 at 05:37:58PM -0400, Paul Moore wrote: > > > On Monday, April 04, 2016 05:56:26 AM Greg KH wrote: > > > > On Mon, Apr 04, 2016 at 12:02:42AM -0400, wmealing wrote: > >

Re: [PATCH 1/4] mm/writeback: correct dirty page calculation for highmem

2016-04-04 Thread Aneesh Kumar K.V
Joonsoo Kim writes: > [ text/plain ] > On Fri, Apr 01, 2016 at 11:10:07AM +0900, js1...@gmail.com wrote: >> From: Joonsoo Kim >> >> ZONE_MOVABLE could be treated as highmem so we need to consider it for >> accurate calculation of dirty pages. And, in following patches, ZONE_CMA >> will be intro

[PATCH] selftests: media_device_test fix to close the fd before exit

2016-04-04 Thread Shuah Khan
Fix it to close the fd before exit and in error legs. Signed-off-by: Shuah Khan --- tools/testing/selftests/media_tests/media_device_test.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/media_tests/media_device_test.c b/tools/testing/self

Re: [PATCH v3] Fix OpenSSH pty regression on close

2016-04-04 Thread Peter Hurley
On 03/06/2016 01:16 PM, Brian Bloniarz wrote: > OpenSSH expects the (non-blocking) read() of pty master to return > EAGAIN only if it has received all of the slave-side output after > it has received SIGCHLD. This used to work on pre-3.12 kernels. > > This fix effectively forces non-blocking read(

[PATCH 2/4] irqchip: bcm2836: Drop smp_set_ops on arm64 builds

2016-04-04 Thread Eric Anholt
For arm64, the bootloader will instead be implementing the spin-table enable method. Signed-off-by: Eric Anholt --- drivers/irqchip/irq-bcm2836.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-bcm2836.c b/drivers/irqchip/irq-bcm2836.c index 233ccdd..

[PATCH 3/4] irqchip: bcm2836: Fix compiler warning on 64-bit build

2016-04-04 Thread Eric Anholt
Signed-off-by: Eric Anholt --- drivers/irqchip/irq-bcm2836.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-bcm2836.c b/drivers/irqchip/irq-bcm2836.c index 4ae9f76..ee62413 100644 --- a/drivers/irqchip/irq-bcm2836.c +++ b/drivers/irqchip/irq-bcm2836.c @@ -

[PATCH 1/4] irqchip: bcm2835: Avoid arch/arm-specific handle_IRQ

2016-04-04 Thread Eric Anholt
This is equivalent and works for arm64 as well. Signed-off-by: Eric Anholt --- drivers/irqchip/irq-bcm2835.c | 3 +-- drivers/irqchip/irq-bcm2836.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/irqchip/irq-bcm2835.c b/drivers/irqchip/irq-bcm2835.c index bf9cc5f..

[PATCH 4/4] irqchip: bcm2836: Use a more generic memory barrier call

2016-04-04 Thread Eric Anholt
dsb() requires an argument on arm64, so we needed to add "sy". Instead, take this opportunity to switch to the same smp_wmb() call that gic uses for its IPIs. This is a less strong barrier than we were doing before (dmb(ishst) compared to dsb(sy)), but it seems to be the correct one. Signed-off-b

Re: [RFC PATCH] alispinlock: acceleration from lock integration on multi-core platform

2016-04-04 Thread Ling Ma
Hi Longman, > with some modest increase in performance. That can be hard to justify. Maybe > you should find other use cases that involve less changes, but still have > noticeable performance improvement. That will make it easier to be accepted. The attachment is for other use case with the new l

[PATCH 0/4] irqchip: bcm2835: arm64 port

2016-04-04 Thread Eric Anholt
Here's the series for irqchip-bcm283x on arm64 for the Pi3. Since I'd like to land Makefile changes that would enable building irqchip-bcm283x on arm64, it would be nice if I had either a stable branch to merge from, or an ack to merge them through the arm64 tree. Eric Anholt (4): irqchip: bcm2

linux-next: manual merge of the staging tree with Linus' tree

2016-04-04 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the staging tree got conflicts in: drivers/staging/lustre/lnet/selftest/brw_test.c drivers/staging/lustre/lustre/include/lu_object.h drivers/staging/lustre/lustre/lclient/lcommon_cl.c drivers/staging/lustre/lustre/llite/llite_internal.h drivers/stagi

[PATCH 0/2] spi: Add DMA support for ti-qspi

2016-04-04 Thread Vignesh R
This series adds support for DMA during QSPI flash read via memory mapped mode. Tested on DRA74 EVM on linux-next with patch for mtd support[1] applied. Also tested with series[2] from Boris refractoring spi_map_buf(). [1]http://lists.infradead.org/pipermail/linux-mtd/2016-March/066335.html [2]h

[PATCH 1/2] spi: Add DMA support for spi_flash_read()

2016-04-04 Thread Vignesh R
Few SPI devices provide accelerated read interfaces to read from SPI-NOR flash devices. These hardwares also support DMA to transfer data from flash to memory either via mem-to-mem DMA or dedicated slave DMA channels. Hence, add support for DMA in order to improve throughput and reduce CPU load. Us

[PATCH 2/2] spi: spi-ti-qspi: Add DMA support for QSPI mmap read

2016-04-04 Thread Vignesh R
Use mem-to-mem DMA to read from flash when reading in mmap mode. This gives improved read performance and reduces CPU load. With this patch the raw-read throughput is ~16MB/s on DRA74 EVM. And CPU load is <20%. UBIFS read ~13 MB/s. Signed-off-by: Vignesh R --- drivers/spi/spi-ti-qspi.c | 132 ++

Re: [PATCH v3] serial: 8250_dw: fix wrong logic in dw8250_check_lcr()

2016-04-04 Thread Greg Kroah-Hartman
On Tue, Apr 05, 2016 at 11:32:46AM +0800, Kefeng Wang wrote: > Commit cdcea058e510 ("serial: 8250_dw: Avoid serial_outx code duplicate > with new dw8250_check_lcr()") introduce a wrong logic when write val to > LCR reg. When CONFIG_64BIT enabled, __raw_writeq is used unconditionally. > > The __raw

ATTEN: BENEFICIARY

2016-04-04 Thread mrs . graceegobia

Re: [PATCH] tty: serial: 8250_omap: do not defer termios changes

2016-04-04 Thread Peter Hurley
On 03/31/2016 01:41 AM, John Ogness wrote: > From: Sebastian Andrzej Siewior > > It has been observed that the TX-DMA can stall Does this happen on any other OMAP part besides am335x? I looked back over the LKML history of this and didn't see any other design implicated in this problem. > if te

RE: [PATCH] drivers/idle: make intel_idle.c driver more explicitly non-modular

2016-04-04 Thread Brown, Len
The first idle driver to register with cpuidle wins. intel_idle should always get the opportunity to probe and register before acpi_idle (processor_idle.c) When intel_idle was allowed to be modular, some distros build their kernel and loaded modules such that acpi_idle could probe first. In such

Re: [Xen-devel] [PATCH] xen: Add comment for missing FROZEN notifier transitions

2016-04-04 Thread Juergen Gross
On 04/04/16 18:48, Boris Ostrovsky wrote: > On 04/04/2016 12:30 PM, David Vrabel wrote: >> On 04/04/16 17:21, Julien Grall wrote: >>> (CC Stefano new e-mail address) >>> >>> Hello Anna-Maria, >>> >>> On 04/04/2016 13:32, Anna-Maria Gleixner wrote: Xen guests do not offline/online CPUs during s

[PATCH V2 02/30] Include generic parity.h in some architectures' bitops.h

2016-04-04 Thread Zeng Zhaoxiu
From: Zhaoxiu Zeng Use the generic version --- arch/arc/include/asm/bitops.h | 1 + arch/arm/include/asm/bitops.h | 1 + arch/arm64/include/asm/bitops.h| 1 + arch/avr32/include/asm/bitops.h| 1 + arch/c6x/include/asm/bitops.h | 1 + arch/cris/include/asm/bitops.h | 1

Re: [PATCH] drivers/idle: make intel_idle.c driver more explicitly non-modular

2016-04-04 Thread rcochran
On Tue, Apr 05, 2016 at 04:20:47AM +, Brown, Len wrote: > The first idle driver to register with cpuidle wins. > > intel_idle should always get the opportunity > to probe and register before acpi_idle (processor_idle.c) > > When intel_idle was allowed to be modular, > some distros build their

[PATCH char-misc-linus] misc: mic: Fix randconfig build error

2016-04-04 Thread Sudeep Dutt
Fixes randconfig build error reported at https://lkml.org/lkml/2016/4/3/135 by ensuring that the VOP driver selects VIRTIO. Reported-by: Fengguang Wu Reviewed-by: Ashutosh Dixit Signed-off-by: Sudeep Dutt --- drivers/misc/mic/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/

  1   2   3   4   5   6   7   8   9   >