RE: [PATCH] net: tipc: Fix a sleep-in-atomic bug in tipc_msg_reverse

2017-06-10 Thread Jon Maloy
Acked. ///jon > -Original Message- > From: Jia-Ju Bai [mailto:baijiaju1...@163.com] > Sent: Saturday, June 10, 2017 05:04 > To: Jon Maloy ; Ying Xue > ; da...@davemloft.net > Cc: net...@vger.kernel.org;

Re: [PATCH v2 1/2] cpufreq: Make iowait boost a policy option

2017-06-10 Thread Peter Zijlstra
On Sat, Jun 10, 2017 at 01:08:18AM -0700, Joel Fernandes wrote: > Adding Juri and Patrick as well to share any thoughts. Replied to > Peter in the end of this email. Oh sorry, I completely missed your earlier reply :-( > On Wed, May 24, 2017 at 1:17 PM, Joel Fernandes wrote:

[PATCH 07/10] cgroup: implement cgroup v2 thread support

2017-06-10 Thread Tejun Heo
This patch implements cgroup v2 thread support. The goal of the thread mode is supporting hierarchical accounting and control at thread granularity while staying inside the resource domain model which allows coordination across different resource controllers and handling of anonymous resource

[PATCH 10/10] sched: Make cpu/cpuacct threaded controllers

2017-06-10 Thread Tejun Heo
From: Waiman Long Make cpu and cpuacct cgroup controllers usable within a threaded cgroup. Signed-off-by: Waiman Long --- kernel/sched/core.c| 1 + kernel/sched/cpuacct.c | 1 + 2 files changed, 2 insertions(+) diff --git a/kernel/sched/core.c

[PATCH 08/10] sched: Misc preps for cgroup unified hierarchy interface

2017-06-10 Thread Tejun Heo
Make the following changes in preparation for the cpu controller interface implementation for the unified hierarchy. This patch doesn't cause any functional differences. * s/cpu_stats_show()/cpu_cfs_stats_show()/ * s/cpu_files/cpu_legacy_files/ * Separate out cpuacct_stats_read() from

[PATCH 06/10] cgroup: implement CSS_TASK_ITER_THREADED

2017-06-10 Thread Tejun Heo
cgroup v2 is in the process of growing thread granularity support. Once thread mode is enabled, the root cgroup of the subtree serves as the proc_cgrp to which the processes of the subtree conceptually belong and domain-level resource consumptions not tied to any specific task are charged. In the

[PATCH 09/10] sched: Implement interface for cgroup unified hierarchy

2017-06-10 Thread Tejun Heo
While the cpu controller doesn't have any functional problems, there are a couple interface issues which can be addressed in the v2 interface. * cpuacct being a separate controller. This separation is artificial and rather pointless as demonstrated by most use cases co-mounting the two

[PATCH 02/10] cgroup: reorganize cgroup.procs / task write path

2017-06-10 Thread Tejun Heo
Currently, writes "cgroup.procs" and "cgroup.tasks" files are all handled by __cgroup_procs_write() on both v1 and v2. This patch reoragnizes the write path so that there are common helper functions that different write paths use. While this somewhat increases LOC, the different paths are no

[PATCHSET for-4.13] cgroup: implement cgroup2 thread mode, v2

2017-06-10 Thread Tejun Heo
Hello, This is v2 of cgroup2 thread mode patchset. The changes from the last take[L] are * Support for mixed thread mode for the root cgroup added. This allows the root cgroup to serve as both a thread root and a parent to domain cgroups. This allows users to use thread mode without any

[PATCH 04/10] cgroup: add @flags to css_task_iter_start() and implement CSS_TASK_ITER_PROCS

2017-06-10 Thread Tejun Heo
css_task_iter currently always walks all tasks. With the scheduled cgroup v2 thread support, the iterator would need to handle multiple types of iteration. As a preparation, add @flags to css_task_iter_start() and implement CSS_TASK_ITER_PROCS. If the flag is not specified, it walks all tasks

[PATCH 05/10] cgroup: introduce cgroup->proc_cgrp and threaded css_set handling

2017-06-10 Thread Tejun Heo
cgroup v2 is in the process of growing thread granularity support. Once thread mode is enabled, the root cgroup of the subtree serves as the proc_cgrp to which the processes of the subtree conceptually belong and domain-level resource consumptions not tied to any specific task are charged. In the

[PATCH 01/10] cgroup: separate out cgroup_has_tasks()

2017-06-10 Thread Tejun Heo
Separate out cgroup_has_tasks() test from cgroup_subtree_control_write(). This will be used by the following changes. This patch doesn't cause any behavior changes. Signed-off-by: Tejun Heo --- kernel/cgroup/cgroup.c | 49 +++-- 1

Re: [PATCH 06/10] fpga manager: Add altera-ps-spi driver for Altera FPGAs

2017-06-10 Thread Alan Tull
On Fri, Jun 9, 2017 at 4:51 AM, Greg Kroah-Hartman wrote: > On Mon, Jun 05, 2017 at 02:07:37PM -0500, Alan Tull wrote: >> From: Joshua Clayton >> >> altera-ps-spi loads FPGA firmware over SPI, using the "passive serial" >> interface on Altera

Re: [PATCH 04/14] mm, memory_hotplug: get rid of is_zone_device_section

2017-06-10 Thread Wei Yang
On Sat, Jun 10, 2017 at 5:56 PM, Wei Yang wrote: > On Mon, May 15, 2017 at 4:58 PM, Michal Hocko wrote: >> From: Michal Hocko >> >> device memory hotplug hooks into regular memory hotplug only half way. >> It needs memory sections

[GIT PULL] Btrfs

2017-06-10 Thread Chris Mason
Hi Linus, My for-linus-4.12 branch has some fixes that Dave Sterba collected: git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs.git for-linus-4.12 We've been hitting an early enospc problem on production machines that Omar tracked down to an old int->u64 mistake. I waited a bit

Re: [PATCH v2 03/11] drm: sun4i: ignore swapped mixer<->tcon connection for DE2

2017-06-10 Thread icenowy
在 2017-06-09 22:46,Maxime Ripard 写道: On Thu, Jun 08, 2017 at 01:01:53PM +0800, icen...@aosc.io wrote: 在 2017-06-07 22:38,Maxime Ripard 写道: > On Wed, Jun 07, 2017 at 06:01:02PM +0800, Icenowy Zheng wrote: > > >I have no idea what this is supposed to be doing either. > > > > > >I might be wrong,

Re: [PATCH v6 13/34] x86/mm: Add support for early encrypt/decrypt of memory

2017-06-10 Thread Borislav Petkov
On Wed, Jun 07, 2017 at 02:15:27PM -0500, Tom Lendacky wrote: > Add support to be able to either encrypt or decrypt data in place during > the early stages of booting the kernel. This does not change the memory > encryption attribute - it is used for ensuring that data present in either > an

Re: [PATCH 4/4] ARM: multi_v7_defconfig: Switch AXP20x driver from module to built-in

2017-06-10 Thread Maxime Ripard
On Tue, Jun 06, 2017 at 12:45:17PM -0700, Kevin Hilman wrote: > On Mon, May 22, 2017 at 12:44 AM, Maxime Ripard > wrote: > > Hi Kevin, > > > > On Thu, May 18, 2017 at 11:59:50AM -0700, Kevin Hilman wrote: > >> On Fri, Mar 17, 2017 at 10:39 AM, Kevin Hilman

Re: [PATCH net-next 8/9] net: hns3: Add support of debugfs interface to HNS3 driver

2017-06-10 Thread Andrew Lunn
On Sat, Jun 10, 2017 at 12:51:57PM +, Mintz, Yuval wrote: > > This adds the support of the debugfs interface to the driver for debugging > > purposes. > > > +const struct hclge_support_cmd support_cmd[] = { > > + {"send cmd", 8, hclge_dbg_send, > > + "opcode flag data0 data1

RE: [PATCH v4] tpm: Enable CLKRUN protocol for Braswell systems

2017-06-10 Thread Shaikh, Azhar
> -Original Message- > From: Jarkko Sakkinen [mailto:jarkko.sakki...@linux.intel.com] > Sent: Saturday, June 10, 2017 4:14 AM > To: Shaikh, Azhar > Cc: jguntho...@obsidianresearch.com; tpmdd-de...@lists.sourceforge.net; > linux-kernel@vger.kernel.org;

Re: [PATCH 20/35] openrisc: defconfig: Cleanup from old Kconfig options

2017-06-10 Thread Krzysztof Kozlowski
On Sat, Jun 10, 2017 at 05:13:54PM +0900, Stafford Horne wrote: > On Thu, Jun 08, 2017 at 06:10:31PM +0200, Krzysztof Kozlowski wrote: > > Remove old, dead Kconfig option INET_LRO. It is gone since > > commit 7bbf3cae65b6 ("ipv4: Remove inet_lro library"). > > > > Signed-off-by: Krzysztof

Re: [git pull] first batch of ufs fixes

2017-06-10 Thread Richard Narron
On Fri, 9 Jun 2017, Al Viro wrote: That's just the obvious backport fodder; I'm pretty sure that there will be more - definitely so wrt performance and quite possibly correctness as well. These fixes improve the ufs code and they are a good start. Here are a couple of bugs that still

[PATCH] scsi: aacraid: Fix some error code

2017-06-10 Thread Christophe JAILLET
If 'scsi_host_alloc', 'kzalloc' or '(*aac_drivers[index].init)' fail, the function will return 0, because 'error' is known to be 0 at this point. Return -ENOMEM in the 2 first cases and -ENODEV in the third one. This patch also removes a useless 'error = -ENODEV'. Signed-off-by: Christophe

[PATCH 03/10] cgroup: Fix reference counting bug in cgroup_procs_write()

2017-06-10 Thread Tejun Heo
From: Waiman Long The cgroup_procs_write_start() took a reference to the task structure which was not properly released within cgroup_procs_write() and so on. So a put_task_struct() call is added to cgroup_procs_write_finish() to match the get_task_struct() in

Re: [PATCH 2/2] include: warn for inconsistent endian config definition

2017-06-10 Thread kbuild test robot
-for-inconsistencies/20170610-200424 config: microblaze-mmu_defconfig (attached as .config) compiler: microblaze-linux-gcc (GCC) 6.2.0 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save

Re: [PATCH] drm: Use vsnprintf extension %ph

2017-06-10 Thread Andy Shevchenko
On Wed, May 31, 2017 at 2:35 AM, Joe Perches wrote: > Using the extension saves a bit of code. > + seq_printf(m, "faux/mst: %*ph\n", 2, buf); > + seq_printf(m, "mst ctrl: %*ph\n", 1, buf); > + seq_printf(m, "branch oui: %*phN devid:

Re: [PATCH v2 1/2] cpufreq: Make iowait boost a policy option

2017-06-10 Thread Joel Fernandes
Adding Juri and Patrick as well to share any thoughts. Replied to Peter in the end of this email. On Wed, May 24, 2017 at 1:17 PM, Joel Fernandes wrote: > Hi Peter, > > On Mon, May 22, 2017 at 1:21 AM, Peter Zijlstra wrote: > [..] >>> On Fri, May 19,

Re: Sleeping BUG in khugepaged for i586

2017-06-10 Thread Michal Hocko
On Fri 09-06-17 15:38:44, David Rientjes wrote: > On Thu, 8 Jun 2017, Michal Hocko wrote: > > > I would just pull the cond_resched out of __collapse_huge_page_copy > > right after pte_unmap. But I am not really sure why this cond_resched is > > really needed because the changelog of the patch

[GIT PULL] RCU fixes

2017-06-10 Thread Ingo Molnar
Linus, Please pull the latest rcu-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git rcu-urgent-for-linus # HEAD: 8affb06737ae565722764c2b309eb0e892538344 Merge branch 'rcu/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu

[PATCH] net: tipc: Fix a sleep-in-atomic bug in tipc_msg_reverse

2017-06-10 Thread Jia-Ju Bai
The kernel may sleep under a rcu read lock in tipc_msg_reverse, and the function call path is: tipc_l2_rcv_msg (acquire the lock by rcu_read_lock) tipc_rcv tipc_sk_rcv tipc_msg_reverse pskb_expand_head(GFP_KERNEL) --> may sleep tipc_node_broadcast tipc_node_xmit_skb

Re: [PATCH v4] tpm: Enable CLKRUN protocol for Braswell systems

2017-06-10 Thread Jarkko Sakkinen
On Thu, Jun 08, 2017 at 04:46:33PM -0700, Azhar Shaikh wrote: > To overcome a hardware limitation on Intel Braswell systems, > disable CLKRUN protocol during TPM transactions and re-enable > once the transaction is completed. > > Signed-off-by: Azhar Shaikh > --- >

Re: [PATCH 11/16] powerpc: vio_cmo: use dev_groups and not dev_attrs for bus_type

2017-06-10 Thread Greg Kroah-Hartman
On Fri, Jun 09, 2017 at 09:23:10PM +1000, Michael Ellerman wrote: > Greg Kroah-Hartman writes: > > > On Fri, Jun 09, 2017 at 08:53:22AM +1000, Michael Ellerman wrote: > >> Greg Kroah-Hartman writes: > >> > >> > On Thu, Jun 08, 2017 at

RE: [PATCH] cxgb4: Remove some dead code

2017-06-10 Thread Steve Wise
Acked-by: Steve Wise

[PATCH v2] arm64: allwinner: h5: Add initial Orangepi Zero Plus 2 support

2017-06-10 Thread Jagan Teki
From: Jagan Teki Orangepi Zero Plus 2 is an open-source single-board computer using the Allwinner h5 SOC. H5 Orangepi Zero Plus 2 has - Quad-core Cortex-A53 - 512MB DDR3 - micrSD slot and 8GB eMMC - Debug TTL UART - HDMI - Wifi + BT - OTG+power supply Signed-off-by:

Re: [PATCH 5/6] bluetooth/smp: use constant time memory comparison for secret values

2017-06-10 Thread Marcel Holtmann
Hi Jason, > This file is filled with complex cryptography. Thus, the comparisons of > MACs and secret keys and curve points and so forth should not add timing > attacks, which could either result in a direct forgery, or, given the > complexity, some other type of attack. > > Signed-off-by: Jason

Re: [PATCH] rt_mutex: correctly initialize lockdep in rt_mutex_init_proxy_locked

2017-06-10 Thread Peter Zijlstra
On Sat, Jun 10, 2017 at 02:48:04AM +, Levin, Alexander (Sasha Levin) wrote: > lockdep can't deal with NULL name or key, and doesn't do anything > with the lock when that happens. Not doing anything is 'right', the proxy stuff won't be lockdep tracked anyway. But yeah, the first thing is a wee

Re: [PATCH] mm, memory_hotplug: support movable_node for hotplugable nodes

2017-06-10 Thread Wei Yang
On Thu, Jun 08, 2017 at 02:23:18PM +0200, Michal Hocko wrote: >From: Michal Hocko > >movable_node kernel parameter allows to make hotplugable NUMA >nodes to put all the hotplugable memory into movable zone which >allows more or less reliable memory hotremove. At least this >is

Re: [PATCH tip/core/rcu 20/88] atomics: Add header comment so spin_unlock_wait()

2017-06-10 Thread Andrea Parri
On Thu, May 25, 2017 at 02:58:53PM -0700, Paul E. McKenney wrote: > There is material describing the ordering guarantees provided by > spin_unlock_wait(), but it is not necessarily easy to find. This commit > therefore adds a docbook header comment to this function informally > describing its

Re: [PATCH v2 03/11] drm: sun4i: ignore swapped mixer<->tcon connection for DE2

2017-06-10 Thread icenowy
在 2017-06-10 22:57,icen...@aosc.io 写道: 在 2017-06-09 22:46,Maxime Ripard 写道: On Thu, Jun 08, 2017 at 01:01:53PM +0800, icen...@aosc.io wrote: 在 2017-06-07 22:38,Maxime Ripard 写道: > On Wed, Jun 07, 2017 at 06:01:02PM +0800, Icenowy Zheng wrote: > > >I have no idea what this is supposed to be

Re: [PATCH] VFS: Differentiate mount flags (MS_*) from internal superblock flags

2017-06-10 Thread kbuild test robot
Hi David, [auto build test ERROR on linus/master] [also build test ERROR on v4.12-rc4] [cannot apply to next-20170609] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

[PATCH] crypto: crypto4xx - fix an error code

2017-06-10 Thread Christophe JAILLET
If 'kzalloc' fails, we return 0 which means success. return -ENOMEM instead as already done a few lines above. Signed-off-by: Christophe JAILLET --- drivers/crypto/amcc/crypto4xx_core.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH] nvme: use uuid_t in nvme_ns

2017-06-10 Thread Johannes Thumshirn
struct nvme_ns still uses u u8 uuid[16], change it to using uuid_t. Signed-off-by: Johannes Thumshirn --- drivers/nvme/host/core.c | 8 drivers/nvme/host/nvme.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/nvme/host/core.c

Re: [linux-sunxi] Re: [PATCH v2 01/11] dt-bindings: update the binding for Allwinner H3 TVE support

2017-06-10 Thread icenowy
在 2017-06-10 05:24,Jernej Škrabec 写道: Hi! Dne petek, 09. junij 2017 ob 18:51:02 CEST je Icenowy Zheng napisal(a): 于 2017年6月10日 GMT+08:00 上午12:49:15, Maxime Ripard 写到: >On Wed, Jun 07, 2017 at 04:48:50PM +0800, Icenowy Zheng wrote: >> >> @@ -189,6 +211,8 @@

Re: [PATCH] nvme: use uuid_t in nvme_ns

2017-06-10 Thread Andy Shevchenko
On Sat, Jun 10, 2017 at 4:03 PM, Johannes Thumshirn wrote: > struct nvme_ns still uses u u8 uuid[16], change it to using uuid_t. ...and we can convert to use UUID API. > - memcpy(ns->uuid, data + pos + sizeof(*cur), len); > +

Re: [PATCH v6 14/34] x86/mm: Insure that boot memory areas are mapped properly

2017-06-10 Thread Borislav Petkov
On Wed, Jun 07, 2017 at 02:15:39PM -0500, Tom Lendacky wrote: > The boot data and command line data are present in memory in a decrypted > state and are copied early in the boot process. The early page fault > support will map these areas as encrypted, so before attempting to copy > them, add

Re: [git pull] first batch of ufs fixes

2017-06-10 Thread Al Viro
On Sat, Jun 10, 2017 at 06:03:24AM -0700, Richard Narron wrote: > 2) After creating a new filesystem on FreeBSD, then on Linux copying a > larger than 2GB file and creating a directory, the fsck back on FreeBSD > looks ok. > > But after going back to Linux and removing the large file and

Re: [PATCH v6] mtd: handle partitioning on devices with 0 erasesize

2017-06-10 Thread Boris Brezillon
On Fri, 9 Jun 2017 15:58:31 +1200 Chris Packham wrote: > erasesize is meaningful for flash devices but for SRAM there is no > concept of an erase block so erasesize is set to 0. When partitioning > these devices instead of ensuring partitions fall on erasesize

Re: [PATCH] x86/build: Specify stack alignment for clang

2017-06-10 Thread Ingo Molnar
* Matthias Kaehlcke wrote: > For gcc stack alignment is configured with -mpreferred-stack-boundary=N, > clang has the option -mstack-alignment=N for that purpose. Use the same > alignment as for gcc. > > If the alignment is not specified clang assumes an alignment of 16

Re: [PATCH v1] misc: apds990x: Use sysfs_match_string() helper

2017-06-10 Thread kbuild test robot
-Use-sysfs_match_string-helper/20170610-131929 config: x86_64-rhel (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): In file included from i

[GIT PULL] CPU hotplug fix

2017-06-10 Thread Ingo Molnar
Linus, Please pull the latest smp-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git smp-urgent-for-linus # HEAD: 40da1b11f01e43aad1aa6cea64681b6125e8a2a7 cpu/hotplug: Drop the device lock on error An error handling corner case fix. Thanks,

Re: [RFC PATCH 2/2] mm, oom: do not trigger out_of_memory from the #PF

2017-06-10 Thread Michal Hocko
On Fri 09-06-17 16:46:42, Michal Hocko wrote: > On Fri 09-06-17 10:08:53, Johannes Weiner wrote: > > On Thu, Jun 08, 2017 at 04:36:07PM +0200, Michal Hocko wrote: > > > Does anybody see any problem with the patch or I can send it for the > > > inclusion? > > > > > > On Fri 19-05-17 13:26:04,

dw-hdmi.c:undefined reference to `__devm_regmap_init_mmio_clk'

2017-06-10 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: eb4125dfdb1f64a5e41da8315bff48f67e5d1712 commit: 40d0fa7095d06c73c33da4fa7e381350141682f5 drm: rcar-du: Add Gen3 HDMI encoder support date: 10 weeks ago config: x86_64-randconfig-u0-06101124 (attached as

[PATCH] net: caif: Fix a sleep-in-atomic bug in cfpkt_create_pfx

2017-06-10 Thread Jia-Ju Bai
The kernel may sleep under a rcu read lock in cfpkt_create_pfx, and the function call path is: cfcnfg_linkup_rsp (acquire the lock by rcu_read_lock) cfctrl_linkdown_req cfpkt_create cfpkt_create_pfx alloc_skb(GFP_KERNEL) --> may sleep cfserl_receive (acquire the lock by

Re: [PATCH] drm: omapdrm: remove unused variable

2017-06-10 Thread Laurent Pinchart
Hi Arnd, Thank you for the patch. On Friday 09 Jun 2017 12:31:03 Arnd Bergmann wrote: > Removing the default display name left a harmless warning: > > fbdev/omap2/omapfb/dss/core.c: In function 'omap_dss_probe': > fbdev/omap2/omapfb/dss/core.c:196:30: error: unused variable 'pdata' >

Re: [PATCH v2 01/11] crypto: introduce crypto wait for async op

2017-06-10 Thread Herbert Xu
On Sat, Jun 10, 2017 at 11:05:39AM +0300, Gilad Ben-Yossef wrote: > > I guess there is a question if it really is important to know that > your request ended up > on the backlog, rather than being handled.I can imagine it can be used > as back pressure > indication but I wonder if someone is using

[GIT PULL] x86 fixes

2017-06-10 Thread Ingo Molnar
Linus, Please pull the latest x86-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus # HEAD: 5b0bc9ac2ce4881ee318a21f31140584ce4dbdad x86/microcode/intel: Clear patch pointer before jettisoning the initrd Misc fixes: a Geode

Re: [PATCH 2/3] cpufreq: schedutil: Fix selection algorithm while reducing frequency

2017-06-10 Thread Joel Fernandes
On Fri, Jun 9, 2017 at 3:15 AM, Viresh Kumar wrote: > While reducing frequency if there are no frequencies available between > "current" and "next" calculated frequency, then the core will never > select the "next" frequency. > > For example, consider the possible range

Re: [PATCH] arm:lpae: build TTB control register value from scratch in v7_ttb_setup

2017-06-10 Thread Russell King - ARM Linux
On Sat, Jun 10, 2017 at 01:43:24PM +0900, Hoeun Ryu wrote: > Hello, Russell and Robin. > > Would you please review this patch ? I think it's fine, thanks. > > Than you > > > On Jun 7, 2017, at 11:39 AM, Hoeun Ryu wrote: > > > > Reading TTBCR in early boot stage might

Re: [PATCH v6 09/34] x86/mm: Simplify p[gum]d_page() macros

2017-06-10 Thread Borislav Petkov
On Wed, Jun 07, 2017 at 02:14:45PM -0500, Tom Lendacky wrote: > Create a pgd_pfn() macro similar to the p[um]d_pfn() macros and then > use the p[gum]d_pfn() macros in the p[gum]d_page() macros instead of > duplicating the code. > > Signed-off-by: Tom Lendacky > --- >

Re: [PATCH v1] misc: apds990x: Use sysfs_match_string() helper

2017-06-10 Thread kbuild test robot
-apds990x-Use-sysfs_match_string-helper/20170610-131929 config: m68k-allyesconfig (attached as .config) compiler: m68k-linux-gcc (GCC) 4.9.0 reproduce: wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross

Re: [PATCH 3/6] ccree: use constant time memory comparison for macs and tags

2017-06-10 Thread Gilad Ben-Yossef
Thank you Jason, I think what you are doing is very important. On Sat, Jun 10, 2017 at 5:59 AM, Jason A. Donenfeld wrote: > Otherwise, we enable several different forgeries via timing attack. > > While the C inside this file is nearly incomprehensible, I did notice a > high

[GIT PULL] perf fixes

2017-06-10 Thread Ingo Molnar
Linus, Please pull the latest perf-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-for-linus # HEAD: 47c1ded7fef108c730b803cd386241beffcdd15c Merge tag 'perf-urgent-for-mingo-4.12-20170608' of

[PATCH 3/7] [media] media: document the use of MEDIA_REVISION instead of KERNEL_VERSION

2017-06-10 Thread Johannes Thumshirn
Update the documentation to introduce the use of MEDIA_REVISON instead of KERNEL_VERSION for the verison triplets of a media drivers hardware revision or driver version. Signed-off-by: Johannes Thumshirn --- Documentation/media/uapi/cec/cec-ioc-adap-g-caps.rst| 2 +-

[PATCH 4/7] [media] cx25821: use MEDIA_REVISION instead of KERNEL_VERSION

2017-06-10 Thread Johannes Thumshirn
Use MEDIA_REVISION instead of KERNEL_VERSION to encode the CX25821_VERSION_CODE. Signed-off-by: Johannes Thumshirn --- drivers/media/pci/cx25821/cx25821.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/cx25821/cx25821.h

[PATCH 1/7] [media] media: introduce MEDIA_REVISION macro

2017-06-10 Thread Johannes Thumshirn
Currently the media code abuses the KERNEL_VERSION macro to encode a version triplet. Introduce a MEDIA_REVISION macro to get rid of the confusing and creative KERNEL_VERSION usage in the media subsystem. Signed-off-by: Johannes Thumshirn --- include/uapi/linux/media.h | 4

Re: [PATCH] ARM: sun8i: h3: Enable EMAC with external PHY on Orange Pi Plus 2E

2017-06-10 Thread Maxime Ripard
On Fri, Jun 09, 2017 at 11:34:36PM +0800, Chen-Yu Tsai wrote: > The Orange Pi Plus 2E, unlike the Orange Pi PC and PC Plus which its > schematics are based on, uses an external Realtek RTL8211E PHY in > RGMII mode, with a GPIO enabling the regulator for I/O signalling > power supplies. The PHY's

Re: [PATCH 3/3] cpufreq: intel_pstate: Provide resolve_freq() to fix regression

2017-06-10 Thread Joel Fernandes
On Fri, Jun 9, 2017 at 3:15 AM, Viresh Kumar wrote: > When the schedutil governor calls cpufreq_driver_resolve_freq() for the > intel_pstate (in passive mode) driver, it simply returns the requested > frequency as there is no ->resolve_freq() callback provided. > > The

Re: [PATCH 1/3] USB: add API for interface driver to vote for autosuspend

2017-06-10 Thread kbuild test robot
-driver-to-vote-for-autosuspend/20170610-172143 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing reproduce: make htmldocs All warnings (new ones prefixed by >>): WARNING: convert(1) not found, for SVG to PDF conversion install ImageMagick

Re: [PATCH] ARM: dts: omap3-overo: Remove "vqmmc-supply" property from MMC dt node

2017-06-10 Thread Tony Lindgren
* Kishon Vijay Abraham I [170609 04:05]: > Hi, > > On Friday 09 June 2017 04:07 PM, Ulf Hansson wrote: > > On 9 June 2017 at 10:41, Kishon Vijay Abraham I wrote: > >> commit 94647a30124e2c7 ("ARM: dts: omap3-overo: Enable WiFi/BT combo") > >> while enabling WiFi/BT

Re: [PATCH] clocksource: fix read and iounmap of incorrect variable

2017-06-10 Thread Marc Zyngier
On Fri, Jun 09 2017 at 5:26:32 pm BST, frowand.l...@gmail.com wrote: > From: Frank Rowand > > Fix boot warning 'Trying to vfree() nonexistent vm area' > from arch_timer_mem_of_init(). > > Refactored code attempts to read and iounmap using address frame > instead of address

[PATCH] Drivers: rtl8192u: style fix

2017-06-10 Thread Derek Robson
Fixed checkpatch.pl warnings of "function definition argument FOO should also have an identifier name" Found using checkpatch Signed-off-by: Derek Robson --- drivers/staging/rtl8192u/ieee80211/ieee80211.h | 2 +- drivers/staging/rtl8192u/ieee80211/ieee80211_crypt.h | 4

Re: [PATCH] loop: fix error handling regression

2017-06-10 Thread Hannes Reinecke
On 06/09/2017 12:19 PM, Arnd Bergmann wrote: > gcc points out an unusual indentation: > > drivers/block/loop.c: In function 'loop_set_status': > drivers/block/loop.c:1149:3: error: this 'if' clause does not guard... > [-Werror=misleading-indentation] >if (figure_loop_size(lo,

Re: [PATCH v2 01/11] crypto: introduce crypto wait for async op

2017-06-10 Thread Gilad Ben-Yossef
On Sat, Jun 10, 2017 at 6:43 AM, Herbert Xu wrote: > On Mon, May 29, 2017 at 11:22:48AM +0300, Gilad Ben-Yossef wrote: >> >> +static inline int crypto_wait_req(int err, struct crypto_wait *wait) >> +{ >> + switch (err) { >> + case -EINPROGRESS: >> + case

Re: [PATCH 3/6] ccree: use constant time memory comparison for macs and tags

2017-06-10 Thread Jason A. Donenfeld
Hey Gilad, That's fine. As I mentioned, I really have no clue what this code's trying to do. If this is just part of some test that doesn't deal with actual messages that could be forged, then of course there's nothing that needs to be done and this can be NAKd. Jason

Re: [PATCH] Drivers: unisys: visorhba - style fix

2017-06-10 Thread Dan Carpenter
Drivers is never a valid subsystem. Do a `git log --oneline ` to look at what other people are doing. The style varies by subsystem so you should always run that command. regards, dan carpenter

RE: [PATCH net-next 1/9] net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC

2017-06-10 Thread Mintz, Yuval
> +static void hns3_nic_net_down(struct net_device *ndev) { > + struct hns3_nic_priv *priv = netdev_priv(ndev); > + struct hnae3_ae_ops *ops; > + int i; > + > + netif_tx_stop_all_queues(ndev); > + netif_carrier_off(ndev); > + netif_tx_disable(ndev); > + > + ops =

Re: [PATCH v3 1/1] w1: Add subsystem kernel public interface

2017-06-10 Thread Greg Kroah-Hartman
On Mon, Jun 05, 2017 at 08:52:08AM -0500, Andrew F. Davis wrote: > Like other subsystems we should be able to define slave devices outside > of the w1 directory. To do this we move public facing interface > definitions to include/linux/w1.h and rename the internal definition > file to

RE: [PATCH net-next 8/9] net: hns3: Add support of debugfs interface to HNS3 driver

2017-06-10 Thread Mintz, Yuval
> This adds the support of the debugfs interface to the driver for debugging > purposes. > +const struct hclge_support_cmd support_cmd[] = { > + {"send cmd", 8, hclge_dbg_send, > + "opcode flag data0 data1 data2 data3 data4 data5"}, > + {"help", 4, hclge_dbg_usage, "no

Re: [PATCH v8 00/34] i.MX Media Driver

2017-06-10 Thread Pavel Machek
Hi! > >> Other than that everything is ready AFAICT. > >> > > > > But as Pavel pointed out, in fact we are missing many > > Acks still, for all of the dts source changes (patches > > 4-14), as well as really everything else (imx-media staging > > driver patches). > > No Acks needed for the

Re: [PATCH v2 1/2] arch: Define CPU_BIG_ENDIAN for all fixed big endian archs

2017-06-10 Thread Stafford Horne
On Fri, Jun 09, 2017 at 12:48:06PM -0700, Babu Moger wrote: > While working on enabling queued rwlock on SPARC, found > this following code in include/asm-generic/qrwlock.h > which uses CONFIG_CPU_BIG_ENDIAN to clear a byte. > > static inline u8 *__qrwlock_write_byte(struct qrwlock *lock) > { >

Re: WMI and Kernel:User interface

2017-06-10 Thread Pali Rohár
On Saturday 10 June 2017 02:46:41 Darren Hart wrote: > On Fri, Jun 09, 2017 at 08:41:51AM +0200, Greg Kroah-Hartman wrote: > > On Sat, Jun 03, 2017 at 12:50:58PM -0700, Darren Hart wrote: > > > On Wed, May 10, 2017 at 07:13:41AM +0200, Greg Kroah-Hartman > > > wrote: > > > > On Tue, May 09, 2017

Re: [PATCH] usb: mtu3: Handle return value of clk_prepare_enable

2017-06-10 Thread Matthias Brugger
On 09/06/17 14:03, Arvind Yadav wrote: clk_prepare_enable() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- drivers/usb/mtu3/mtu3_plat.c | 23 --- 1 file changed, 20 insertions(+), 3 deletions(-)

Re: [PATCH v3] tpm: Enable CLKRUN protocol for Braswell systems

2017-06-10 Thread Jarkko Sakkinen
On Thu, Jun 08, 2017 at 12:39:20PM -0600, Jason Gunthorpe wrote: > On Thu, Jun 08, 2017 at 07:22:59PM +0100, Alan Cox wrote: > > > > > + outb(0x80, 0xCC); > > > > > + > > > > > + /* Make sure the above write is completed */ > > > > > + wmb(); > > > > > > > > Why the wmb(). It

Re: [PATCH v2] platform/x86: wmi: Fix printing info about WDG structure

2017-06-10 Thread Andy Shevchenko
On Sat, Jun 10, 2017 at 1:57 PM, Pali Rohár wrote: > object_id and notify_id are in one union structure and their meaning is > defined by flags. Therefore do not print notify_id for non-event block and > do not print object_id for event block. Remove also reserved member as

Re: [PATCH 20/35] openrisc: defconfig: Cleanup from old Kconfig options

2017-06-10 Thread Stafford Horne
On Thu, Jun 08, 2017 at 06:10:31PM +0200, Krzysztof Kozlowski wrote: > Remove old, dead Kconfig option INET_LRO. It is gone since > commit 7bbf3cae65b6 ("ipv4: Remove inet_lro library"). > > Signed-off-by: Krzysztof Kozlowski > --- > arch/openrisc/configs/or1ksim_defconfig | 1

[PATCH 7/7] staging/atomisp: use MEDIA_VERSION instead of KERNEL_VERSION

2017-06-10 Thread Johannes Thumshirn
Use MEDIA_VERSION instead of KERNEL_VERSION to encode the driver version of the Atom ISP driver. Signed-off-by: Johannes Thumshirn --- drivers/staging/media/atomisp/include/linux/atomisp.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 6/7] [media] media: bcm2048: use MEDIA_REVISION isntead of KERNEL_VERSION

2017-06-10 Thread Johannes Thumshirn
Use MEDIA_REVISION isntead of KERNEL_VERSION to encode the bcm2048 driver version. Signed-off-by: Johannes Thumshirn --- drivers/staging/media/bcm2048/radio-bcm2048.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 2/7] video: fbdev: don't use KERNEL_VERSION macro for MEDIA_REVISION

2017-06-10 Thread Johannes Thumshirn
Don't use the KERNEL_VERSION() macro for the v4l2 capabilities, use MEDIA_REVISION instead. Signed-off-by: Johannes Thumshirn --- drivers/video/fbdev/matrox/matroxfb_base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH 5/7] [media] media: s3c-camif: Use MEDIA_REVISON instead of KERNEL_VERSION

2017-06-10 Thread Johannes Thumshirn
Use MEDIA_REVISON instead of KERNEL_VERSION to encode the driver version. Signed-off-by: Johannes Thumshirn --- drivers/media/platform/s3c-camif/camif-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/s3c-camif/camif-core.c

[PATCH 0/7] Introduce MEDIA_VERSION to end KENREL_VERSION abuse in media

2017-06-10 Thread Johannes Thumshirn
Currently the media subsystem has a very creative abuse of the KERNEL_VERSION macro to encode an arbitrary version triplet for media drivers and device hardware revisions. This series introduces a new macro called MEDIA_REVISION which encodes a version triplet like KERNEL_VERSION does, but

Re: [PATCH 1/2] arm:omap2+: put omap_uart_phys/virt/lsr in .text section when ZIMAGE is true

2017-06-10 Thread Russell King - ARM Linux
On Sat, Jun 10, 2017 at 01:44:00PM +0900, Hoeun Ryu wrote: > Hello, Russell. > > Would you please review this patch ? It's really up to Tony Lindgren, who is the OMAP maintainer. > > Than you > > > On Jun 8, 2017, at 11:16 AM, Hoeun Ryu wrote: > > > > omap_uart_phys,

[PATCH v2] platform/x86: wmi: Fix printing info about WDG structure

2017-06-10 Thread Pali Rohár
object_id and notify_id are in one union structure and their meaning is defined by flags. Therefore do not print notify_id for non-event block and do not print object_id for event block. Remove also reserved member as it does not have any defined meaning or type yet. As object_id and notify_id

Re: [PATCH] i40evf: remove redundant null check on key

2017-06-10 Thread Dan Carpenter
This patch isn't right... On Wed, Jun 07, 2017 at 12:54:07AM +0100, Colin King wrote: > From: Colin Ian King > > key has previously been null checked so the subsequent null check > is redundant as key can never be null at that point, so remove it. > Actually, it's

Re: 4.12 REGRESSION, 4.12 does not boot as VirtualBox guest

2017-06-10 Thread Linus Torvalds
Oh, and Hans - please don't add closed mailing lists when you cc other people who aren't on the mailing list. If the vbox-dev mailing list isn't interested in my emails, I'm not interested in seeing them added to the thread either. Just say no to closed mailing lists. Linus

Re: [git pull] first batch of ufs fixes

2017-06-10 Thread Linus Torvalds
On Sat, Jun 10, 2017 at 11:08 AM, Al Viro wrote: > > BTW, should I send an updated pull request in such situation? It's better if you do, although in this case it was obvious that you'd just added a single line and I could see the diffstat still match with that addition.

[PATCH v9 02/34] [media] dt-bindings: Add bindings for i.MX media driver

2017-06-10 Thread Steve Longerbeam
Add bindings documentation for the i.MX media driver. Signed-off-by: Steve Longerbeam Acked-by: Rob Herring --- Changes since v8 [1]: - expand on description of the MIPI CSI-2 IP core in i.MX6, and drop "snps,dw-mipi-csi2" compatibility for now.

[PATCH v9 19/34] media: Add i.MX media core driver

2017-06-10 Thread Steve Longerbeam
Add the core media driver for i.MX SOC. Signed-off-by: Steve Longerbeam Switch from the v4l2_of_ APIs to the v4l2_fwnode_ APIs. Signed-off-by: Philipp Zabel Add the bayer formats to imx-media's list of supported pixel and bus formats.

[GIT PULL] libnvdimm fix for 4.12-rc5

2017-06-10 Thread Williams, Dan J
Hi Linus, please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm libnvdimm-fixes ...to receive a fix for an oversight spotted by Sasha. We expanded the device-dax fs type in 4.12 to be a generic provider of a struct dax_device with an embedded inode. However, Sasha

Re: [PATCH v2] brcmfmac: Fix glom_skb leak in brcmf_sdiod_recv_chain

2017-06-10 Thread Arend van Spriel
On 03-06-17 17:36, Andy Shevchenko wrote: > On Sat, Jun 3, 2017 at 1:29 AM, Peter S. Housel wrote: >> An earlier change to this function (3bdae810721b) fixed a leak in the >> case of an unsuccessful call to brcmf_sdiod_buffrw(). However, the >> glom_skb buffer, used for emulating

[PATCH] arm64/dma-mapping: Fix null-pointer check

2017-06-10 Thread Olav Haugan
The current null-pointer check in __dma_alloc_coherent and __dma_free_coherent is pretty much useless since we are dereferencing the pointer before checking for null. Check for null-pointer before the actual dereferencing of the pointer. Signed-off-by: Olav Haugan ---

  1   2   3   4   >