[PATCH net-next v7 00/10] dpaa_eth: Add the QorIQ DPAA Ethernet driver

2016-11-11 Thread Madalin Bucur
This patch series adds the Ethernet driver for the Freescale QorIQ Data Path Acceleration Architecture (DPAA). This version includes changes following the feedback received on previous versions from Eric Dumazet, Bob Cochran, Joe Perches, Paul Bolle, Joakim Tjernlund, Scott Wood, David Miller - th

[PATCH net-next v7 01/10] devres: add devm_alloc_percpu()

2016-11-11 Thread Madalin Bucur
Introduce managed counterparts for alloc_percpu() and free_percpu(). Add devm_alloc_percpu() and devm_free_percpu() into the managed interfaces list. Signed-off-by: Madalin Bucur --- Documentation/driver-model/devres.txt | 4 +++ drivers/base/devres.c | 66 ++

[PATCH net-next v7 03/10] dpaa_eth: add option to use one buffer pool set

2016-11-11 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Kconfig| 9 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 23 +++ 2 files changed, 32 insertions(+) diff --git a/drivers/net/ethernet/freescale/dpaa/Kconfig b/drivers/net/ethernet/freescal

[PATCH net-next v7 10/10] arch/powerpc: Enable dpaa_eth

2016-11-11 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- arch/powerpc/configs/dpaa.config | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/configs/dpaa.config b/arch/powerpc/configs/dpaa.config index 9ad9bc0..2fe76f5 100644 --- a/arch/powerpc/configs/dpaa.config +++ b/arch/powerpc/configs/dpaa.config @@

[PATCH net-next v7 08/10] arch/powerpc: Enable FSL_PAMU

2016-11-11 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- arch/powerpc/configs/dpaa.config | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/configs/dpaa.config b/arch/powerpc/configs/dpaa.config index efa99c0..f124ee1 100644 --- a/arch/powerpc/configs/dpaa.config +++ b/arch/powerpc/configs/dpaa.config @@

Re: [RFC PATCH] scsi: libsas: fix WARN on device removal

2016-11-11 Thread wangyijing
> > They're not the same. I don't see how your solution properly deals with > remote sas_port deletion. > > When we unplug a device connected to an expander, can't the sas_port be > deleted twice, in sas_unregister_devs_sas_addr() from domain revalidation and > also now in sas_destruct_devices

[PATCH net-next v7 05/10] dpaa_eth: add ethtool statistics

2016-11-11 Thread Madalin Bucur
Add a series of counters to be exported through ethtool: - add detailed counters for reception errors; - add detailed counters for QMan enqueue reject events; - count the number of fragmented skbs received from the stack; - count all frames received on the Tx confirmation path; - add congestion gro

[PATCH net-next v7 09/10] arch/powerpc: Enable FSL_FMAN

2016-11-11 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- arch/powerpc/configs/dpaa.config | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/configs/dpaa.config b/arch/powerpc/configs/dpaa.config index f124ee1..9ad9bc0 100644 --- a/arch/powerpc/configs/dpaa.config +++ b/arch/powerpc/configs/dpaa.config @@

Re: [RFC PATCH] scsi: libsas: fix WARN on device removal

2016-11-11 Thread John Garry
On 11/11/2016 08:12, wangyijing wrote: They're not the same. I don't see how your solution properly deals with remote sas_port deletion. When we unplug a device connected to an expander, can't the sas_port be deleted twice, in sas_unregister_devs_sas_addr() from domain revalidation and also n

Re: PM regression with LED changes in next-20161109

2016-11-11 Thread Hans de Goede
Hi, On 10-11-16 21:48, Pavel Machek wrote: Hi! It seems that we should get back to your initial approach. i.e. only brightness changes caused by hardware should be reported. I don't think enabling poll() here is good idea. Some hardware won't be able to tell you that it changed the state. Re

Re: [patch] usb: xhci-mem: use passed in GFP flags instead of GFP_KERNEL

2016-11-11 Thread Sebastian Andrzej Siewior
On 2016-11-10 22:33:17 [+0300], Dan Carpenter wrote: > We normally use the passed in gfp flags for allocations, it's just these > two which were missed. You seem to be right. xhci_mem_init() has only one caller with GFP_KERNEL as argument. You could unwind it. Acked-by: Sebastian Andrzej Siewior

Re: [RFC][PATCH v2 0/2] Improve libsas hotplug

2016-11-11 Thread wangyijing
Hi James, sorry to bother you, these two patches try to fix several issues in libsas, Dan Williams and John Garry also found similar issue, and post some patches before. Dan Williams's solution fix the sysfs warning calltrace, but may introduce new flutter issue. In these two patches, we introduce

Re: [PATCH] pinctrl: sunxi: Free configs in pinctrl_map only if it is a config map

2016-11-11 Thread Maxime Ripard
On Fri, Nov 11, 2016 at 10:35:10AM +0800, Chen-Yu Tsai wrote: > In the recently refactored sunxi pinctrl library, we are only allocating > one set of pin configs for each pinmux setting node. When the pinctrl_map > structure is freed, the pin configs should also be freed. However the > code assumed

Re: [PATCH v2 1/3] pinctrl: sunxi: Fix PIN_CONFIG_BIAS_PULL_{DOWN,UP} argument

2016-11-11 Thread Maxime Ripard
On Fri, Nov 11, 2016 at 10:44:53AM +0800, Chen-Yu Tsai wrote: > According to pinconf-generic.h, the argument for > PIN_CONFIG_BIAS_PULL_{DOWN,UP} is non-zero if the bias is enabled > with a pull up/down resistor, zero if it is directly connected > to VDD or ground. > > Since Allwinner hardware use

[PATCH net-next v7 06/10] dpaa_eth: add sysfs exports

2016-11-11 Thread Madalin Bucur
Export Frame Queue and Buffer Pool IDs through sysfs. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Makefile | 2 +- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 4 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 4 + .../net/ethernet/freescale/d

[PATCH net-next v7 04/10] dpaa_eth: add ethtool functionality

2016-11-11 Thread Madalin Bucur
Add support for basic ethtool operations. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/Makefile | 2 +- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 2 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 3 + drivers/net/ethernet/freescale/dpaa/dpaa

Re: [PATCH v2 2/3] pinctrl: sunxi: Add support for fetching pinconf settings from hardware

2016-11-11 Thread Maxime Ripard
On Fri, Nov 11, 2016 at 10:44:54AM +0800, Chen-Yu Tsai wrote: > The sunxi pinctrl driver only caches whatever pinconf setting was last > set on a given pingroup. This is not particularly helpful, nor is it > correct. > > Fix this by actually reading the hardware registers and returning > the corre

[PATCH net-next v7 02/10] dpaa_eth: add support for DPAA Ethernet

2016-11-11 Thread Madalin Bucur
This introduces the Freescale Data Path Acceleration Architecture (DPAA) Ethernet driver (dpaa_eth) that builds upon the DPAA QMan, BMan, PAMU and FMan drivers to deliver Ethernet connectivity on the Freescale DPAA QorIQ platforms. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/

[PATCH net-next v7 07/10] dpaa_eth: add trace points

2016-11-11 Thread Madalin Bucur
Add trace points on the hot processing path. Signed-off-by: Ruxandra Ioana Radulescu --- drivers/net/ethernet/freescale/dpaa/Makefile | 1 + drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 15 +++ drivers/net/ethernet/freescale/dpaa/dpaa_eth.h | 1 + .../net/ethernet/freescal

Re: [PATCH v2 3/3] pinctrl: sunxi: Make sunxi_pconf_group_set use sunxi_pconf_reg helper

2016-11-11 Thread Maxime Ripard
On Fri, Nov 11, 2016 at 10:44:55AM +0800, Chen-Yu Tsai wrote: > The sunxi_pconf_reg helper introduced in the last patch gives us the > chance to rework sunxi_pconf_group_set to have it match the structure > of sunxi_pconf_(group_)get and make it easier to understand. > > For each config to set, it

Re: [PATCH v2 2/3] pinctrl: sunxi: Add support for fetching pinconf settings from hardware

2016-11-11 Thread Chen-Yu Tsai
On Fri, Nov 11, 2016 at 4:36 PM, Maxime Ripard wrote: > On Fri, Nov 11, 2016 at 10:44:54AM +0800, Chen-Yu Tsai wrote: >> The sunxi pinctrl driver only caches whatever pinconf setting was last >> set on a given pingroup. This is not particularly helpful, nor is it >> correct. >> >> Fix this by actu

Re: [PATCH v2 2/6] mfd: stm32-adc: Add support for stm32 ADC

2016-11-11 Thread Lee Jones
; > url: > https://github.com/0day-ci/linux/commits/Fabrice-Gasnier/Add-support-for-STM32-ADC/2016-011922 > base: https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git > for-mfd-next > config: s390-allmodconfig (attached as .config) > compiler: s390x-linux-

Re: [PATCH 2/2] backlight: arcxcnn: devicetree bindings for ArticSand devices

2016-11-11 Thread Lee Jones
On Thu, 10 Nov 2016, Olimpiu Dejeu wrote: > Resubmition of arcxcnn backlight driver addressing the naming convention > concerns raised by Rob H. Note that all the device tree properties are > determined by the board design or IC EPROM settings and are not intended > to be user adjustable. > >

Re: commit d7afaec0b564f0609e116f5: fuse: add FUSE_NO_OPEN_SUPPORT flag to INIT

2016-11-11 Thread Miklos Szeredi
On Fri, Nov 11, 2016 at 5:57 AM, Nikolaus Rath wrote: > On Nov 11 2016, Miklos Szeredi wrote: >> On Thu, Nov 10, 2016 at 11:31 PM, Nikolaus Rath wrote: >>> Hi Andrew, >>> >>> In commit d7afaec0b564f0609e116f5 you added a new FUSE_NO_OPEN_SUPPORT >>> flag. But as far as I can tell, the flag is si

Re: [PATCH v2 3/3] pinctrl: sunxi: Make sunxi_pconf_group_set use sunxi_pconf_reg helper

2016-11-11 Thread Chen-Yu Tsai
On Fri, Nov 11, 2016 at 4:38 PM, Maxime Ripard wrote: > On Fri, Nov 11, 2016 at 10:44:55AM +0800, Chen-Yu Tsai wrote: >> The sunxi_pconf_reg helper introduced in the last patch gives us the >> chance to rework sunxi_pconf_group_set to have it match the structure >> of sunxi_pconf_(group_)get and m

[PATCH] Gpu: drm: arm: - Fix possible dereference of NULL

2016-11-11 Thread Shailendra Verma
From: "Shailendra Verma" There is possible dereference of NULL pointer if kmalloc fails. So return NULL if kmalloc fails. Signed-off-by: Shailendra Verma --- drivers/gpu/drm/arm/malidp_planes.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/arm/malidp_planes.c b/dri

[PATCH 3/4] lib/scatterlist: Introduce and export __sg_alloc_table_from_pages

2016-11-11 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Drivers like i915 benefit from being able to control the maxium size of the sg coallesced segment while building the scatter- gather list. Introduce and export the __sg_alloc_table_from_pages function which will allow it that control. Signed-off-by: Tvrtko Ursulin Cc: Masa

[PATCH 0/4] Compact userptr object backing store allocation

2016-11-11 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Userptr backing store with SWIOTBL active is currently allocated in the same inefficient manner, with one sg entry per object page, as what the commit 871dfbd67d4e ("drm/i915: Allow compaction upto SWIOTLB max segment size") fixed for regular GEM objects. We can fix that by

Re: [RFC PATCH] scsi: libsas: fix WARN on device removal

2016-11-11 Thread wangyijing
>>> I have not seen the flutter issue. I am just trying to solve the horrible >>> WARN dump. >>> However I do understand that there may be a issue related to how we queue >>> the events; there was a recent attempt to fix this, but it came to nothing: >>> https://www.spinics.net/lists/linux-scsi/m

[PATCH 2/4] lib/scatterlist: Avoid potential scatterlist entry overflow

2016-11-11 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Since the scatterlist length field is an unsigned int, make sure that sg_alloc_table_from_pages does not overflow it while coallescing pages to a single entry. v2: Drop reference to future use. Use UINT_MAX. Signed-off-by: Tvrtko Ursulin Cc: Masahiro Yamada Cc: linux-kern

[PATCH] Security: selinux - Improvement in code readability when

2016-11-11 Thread Shailendra Verma
From: "Shailendra Verma" There is no need to call kfree() if memdup_user() fails, as no memory was allocated and the error in the error-valued pointer should be returned. Signed-off-by: Shailendra Verma --- security/selinux/selinuxfs.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions

[PATCH 1/4] lib/scatterlist: Fix offset type in sg_alloc_table_from_pages

2016-11-11 Thread Tvrtko Ursulin
From: Tvrtko Ursulin Scatterlist entries have an unsigned int for the offset so correct the sg_alloc_table_from_pages function accordingly. Since these are offsets withing a page, unsigned int is wide enough. Also converts callers which were using unsigned long locally with the lower_32_bits an

[PATCH 4/4] drm/i915: Use __sg_alloc_table_from_pages for userptr allocations

2016-11-11 Thread Tvrtko Ursulin
From: Tvrtko Ursulin With the addition of __sg_alloc_table_from_pages we can control the maximum coallescing size and eliminate a separate path for allocating backing store here. Similar to 871dfbd67d4e ("drm/i915: Allow compaction upto SWIOTLB max segment size") this enables more compact sg lis

[PATCH] Staging: media: davinci_vpfe: - Fix for memory leak if

2016-11-11 Thread Shailendra Verma
From: "Shailendra Verma" Fix to avoid possible memory leak if the decoder initialization got failed.Free the allocated memory for file handle object before return in case decoder initialization fails. Signed-off-by: Shailendra Verma --- drivers/staging/media/davinci_vpfe/vpfe_video.c |1 +

Re: [PATCH] mfd: si476x-i2c: Fix spelling mistakes "Failet" and "gett"

2016-11-11 Thread Lee Jones
On Fri, 28 Oct 2016, Colin King wrote: > From: Colin Ian King > > Trivial spelling mistake fixes in dev_err message. > > Signed-off-by: Colin Ian King > --- > drivers/mfd/si476x-i2c.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mfd/si476x-i2c.c b/drivers/

[PATCH v3 4/4] drm/i915: Use __sg_alloc_table_from_pages for userptr allocations

2016-11-11 Thread Tvrtko Ursulin
From: Tvrtko Ursulin With the addition of __sg_alloc_table_from_pages we can control the maximum coallescing size and eliminate a separate path for allocating backing store here. Similar to 871dfbd67d4e ("drm/i915: Allow compaction upto SWIOTLB max segment size") this enables more compact sg lis

[PATCH] Fs: Improvement in code readability when memdup_user()fails.

2016-11-11 Thread Sachin Shukla
From: "Sachin Shukla" There is no need to call kfree() if memdup_user() fails, as no memory was allocated and the error in the error-valued pointer should be returned. Signed-off-by: Sachin Shukla --- fs/ioctl.c |7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/fs/io

[PATCH] Block: mtip32xx: Improvement in code readability when memdup_user() fails.

2016-11-11 Thread Sachin Shukla
From: "Sachin Shukla" There is no need to call kfree() if memdup_user() fails, as no memory was allocated and the error in the error-valued pointer should be returned. Signed-off-by: Sachin Shukla --- drivers/block/mtip32xx/mtip32xx.c | 14 +- 1 file changed, 5 insertions(+), 9 d

Re: [PATCH v3 8/9] media: venus: add Makefiles and Kconfig files

2016-11-11 Thread Stanimir Varbanov
Hi Vivek, On 11/11/2016 08:12 AM, Vivek Gautam wrote: > On Mon, Nov 7, 2016 at 11:04 PM, Stanimir Varbanov > wrote: >> Makefile and Kconfig files to build the Venus video codec driver. >> >> Signed-off-by: Stanimir Varbanov >> --- >> drivers/media/platform/qcom/Kconfig| 7 +++ >> d

[PATCH] Kernel: Improvement in code readability when memdup_user_nul() fails.

2016-11-11 Thread Sachin Shukla
From: "Sachin Shukla" There is no need to call kfree() if memdup_user_nul() fails, as no memory was allocated and the error in the error-valued pointer should be returned. Signed-off-by: Sachin Shukla --- kernel/user_namespace.c | 25 ++--- 1 file changed, 14 insertions(+

Re: [PATCHv2 0/2] THREAD_INFO_IN_TASK prep work for arm64+s390

2016-11-11 Thread Heiko Carstens
Hi Mark, > On Wed, Nov 02, 2016 at 03:56:26PM +, Mark Rutland wrote: > > On Wed, Oct 26, 2016 at 06:43:05PM +0100, Mark Rutland wrote: > > > Heiko and I have been working on THREAD_INFO_IN_TASK for s390 and arm64 > > > respectively, and we're both targetting v4.10. > > > > > > These are the c

Re: [PATCH] LightNVM fix for 4.9-rc5

2016-11-11 Thread Matias Bjørling
On 11/10/2016 04:03 PM, Jens Axboe wrote: On 11/10/2016 04:26 AM, Matias Bjørling wrote: Hi Jens, A small calculation bug sneaked into 4.9, which led to data loss using the rrpc FTL. Can the fix be picked up for next -rc, or should I mark it for stable after the 4.9 release? We can put it in

Re: [PATCH 5/5] drm/sun4i: Add support for the overscan profiles

2016-11-11 Thread Daniel Vetter
On Thu, Nov 10, 2016 at 03:56:30PM +0100, Maxime Ripard wrote: > Hi Daniel, > > On Tue, Nov 08, 2016 at 09:59:27AM +0100, Daniel Vetter wrote: > > On Tue, Oct 18, 2016 at 10:29:38AM +0200, Maxime Ripard wrote: > > > Create overscan profiles reducing the displayed zone. > > > > > > For each TV sta

[PATCH v6 0/3] x86/kvm: Support AVX512_4VNNIW and AVX512_4FMAPS for KVM guest

2016-11-11 Thread He Chen
This patch series is going to add two new AVX512 features to KVM guest. Since these two features are defined as scattered features in kernel, some extra modification in kernel is included. BTW. sorry for sending patch so frequently, and really appreciate your kindly review. --- Changes in v6: * r

Re: [Intel-gfx] [PATCH v3] drm: move allocation out of drm_get_format_name()

2016-11-11 Thread Daniel Vetter
On Wed, Nov 09, 2016 at 04:59:31PM +, Eric Engestrom wrote: > On Wednesday, 2016-11-09 14:13:40 +0100, Daniel Vetter wrote: > > On Wed, Nov 9, 2016 at 12:42 PM, Eric Engestrom > > wrote: > > >> Well, had to drop it again since it didn't compile: > > >> > > >> > > >> CC [M] drivers/gpu/drm/d

[PATCH v6 2/3] x86/cpuid: Add a helper in scattered.c to return cpuid

2016-11-11 Thread He Chen
Some sparse CPUID leafs are gathered in a fake leaf to save size of x86_capability array in current code, but sometimes, kernel or other modules (e.g. KVM CPUID enumeration) may need actual hardware leaf information. This patch adds a helper get_scattered_cpuid_leaf() to rebuild actual CPUID leaf,

[PATCH v6 3/3] x86/kvm: Add AVX512_4VNNIW and AVX512_4FMAPS support

2016-11-11 Thread He Chen
Add two new AVX512 subfeatures support for KVM guest. AVX512_4VNNIW: Vector instructions for deep learning enhanced word variable precision. AVX512_4FMAPS: Vector instructions for deep learning floating-point single precision. Reviewed-by: Borislav Petkov Signed-off-by: Luwei Kang Signed-off-b

[PATCH v6 1/3] x86/cpuid: Cleanup cpuid_regs definitions

2016-11-11 Thread He Chen
make cpuid_regs more clear and avoid potential name clash. Signed-off-by: He Chen --- arch/x86/events/intel/pt.c | 45 +--- arch/x86/include/asm/processor.h | 11 ++ arch/x86/kernel/cpu/scattered.c | 28 ++--- arch/x86/kernel

Re: [PATCH 3/3] thermal/intel_powerclamp: Convert to CPU hotplug state

2016-11-11 Thread Petr Mladek
On Thu 2016-10-27 13:27:36, Jacob Pan wrote: > On Thu, 27 Oct 2016 17:17:26 +0200 > Sebastian Andrzej Siewior wrote: > > > On 2016-10-27 16:53:48 [+0200], Petr Mladek wrote: > > > > > > In each case, I wonder if the problem is caused by the conversion > > > to the kthread worker or by the CPU ho

Re: [PATCH 3/3] ovl: redirect on rename-dir

2016-11-11 Thread Konstantin Khlebnikov
On Fri, Nov 11, 2016 at 1:39 AM, Miklos Szeredi wrote: > New version is at: > > git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git #redirect > > News: > - it actually should work in all cases > - when rename is not cross directory, just store the new name instead > of a full path, as s

Re: [PATCH v16 0/5] Mediatek MT8173 CMDQ support

2016-11-11 Thread Horng-Shyang Liao
On Fri, 2016-11-11 at 11:15 +0530, Jassi Brar wrote: > On Thu, Nov 10, 2016 at 4:45 PM, Horng-Shyang Liao > wrote: > > On Tue, 2016-11-01 at 19:28 +0800, HS Liao wrote: > >> Hi, > >> > >> This is Mediatek MT8173 Command Queue(CMDQ) driver. The CMDQ is used > >> to help write registers with critic

Re: [Ksummit-discuss] Including images on Sphinx documents

2016-11-11 Thread Mauro Carvalho Chehab
Em Wed, 09 Nov 2016 13:58:12 +0200 Jani Nikula escreveu: > On Wed, 09 Nov 2016, Markus Heiser wrote: > > Am 09.11.2016 um 12:16 schrieb Jani Nikula : > >>> So I vote for : > >>> > 1) copy (or symlink) all rst files to Documentation/output (or to the > build dir specified via O= di

Re: [PATCH v3 05/46] perf/x86/intel/cmt: add per-package locks

2016-11-11 Thread Thomas Gleixner
On Fri, 11 Nov 2016, Peter Zijlstra wrote: > Well, its very hard to suggest alternatives, because there simply isn't > anything of content here. This patch just adds locks, and the next few > patches don't describe much either. > > Why can't this be RCU? AFAICT from looking at later patches the c

Re: [PATCH v3 8/9] media: venus: add Makefiles and Kconfig files

2016-11-11 Thread Vivek Gautam
Hi Stan, On Fri, Nov 11, 2016 at 2:37 PM, Stanimir Varbanov wrote: > Hi Vivek, > > On 11/11/2016 08:12 AM, Vivek Gautam wrote: >> On Mon, Nov 7, 2016 at 11:04 PM, Stanimir Varbanov >> wrote: >>> Makefile and Kconfig files to build the Venus video codec driver. >>> >>> Signed-off-by: Stanimir Var

Re: [PATCH 3/3] ovl: redirect on rename-dir

2016-11-11 Thread Konstantin Khlebnikov
On Fri, Nov 11, 2016 at 1:56 AM, Amir Goldstein wrote: > On Mon, Nov 7, 2016 at 3:38 PM, Amir Goldstein wrote: >> On Mon, Nov 7, 2016 at 12:08 PM, Konstantin Khlebnikov >> wrote: >>> On Mon, Nov 7, 2016 at 1:04 PM, Miklos Szeredi wrote: On Mon, Nov 7, 2016 at 10:58 AM, Konstantin Khlebnik

[PATCH v3 1/3] pinctrl: sunxi: Fix PIN_CONFIG_BIAS_PULL_{DOWN,UP} argument

2016-11-11 Thread Chen-Yu Tsai
According to pinconf-generic.h, the argument for PIN_CONFIG_BIAS_PULL_{DOWN,UP} is non-zero if the bias is enabled with a pull up/down resistor, zero if it is directly connected to VDD or ground. Since Allwinner hardware uses a weak pull resistor internally, the argument should be 1. Signed-off-b

[PATCH v3 0/3] pinctrl: sunxi: Support generic pinconf functions

2016-11-11 Thread Chen-Yu Tsai
Hi everyone, This series fixes up generic pinconf support for the sunxi pinctrl driver library. The driver was doing some bits wrong, like a) storing the pinconf config value in its struct, and not actually reading the hardware to get the current config, and b) not using the right arguments for th

[PATCH v3 3/3] pinctrl: sunxi: Make sunxi_pconf_group_set use sunxi_pconf_reg helper

2016-11-11 Thread Chen-Yu Tsai
The sunxi_pconf_reg helper introduced in the last patch gives us the chance to rework sunxi_pconf_group_set to have it match the structure of sunxi_pconf_(group_)get and make it easier to understand. For each config to set, it: 1. checks if the parameter is supported. 2. checks if the arg

Re: [PATCH 0/3] perf tools: Plug jvmti compilation into perf build

2016-11-11 Thread Jiri Olsa
On Wed, Nov 02, 2016 at 02:35:46PM +0100, Jiri Olsa wrote: > hi, > adding jvmti compilation under perf build, so it's easy > to put it under rpm. > > I plan on updating fedora/rhel perf rpm, to have the jvmti > placed in like: > > $ rpm -qpl build/x86_64/perf-4.8.5-300.fc24.x86_64.rpm | grep jv

[PATCH v3 2/3] pinctrl: sunxi: Add support for fetching pinconf settings from hardware

2016-11-11 Thread Chen-Yu Tsai
The sunxi pinctrl driver only caches whatever pinconf setting was last set on a given pingroup. This is not particularly helpful, nor is it correct. Fix this by actually reading the hardware registers and returning the correct results or error codes. Also filter out unsupported pinconf settings. S

Re: [PATCH] [RFC] drivers: dma-coherent: use MEMREMAP_WB instead of MEMREMAP_WC

2016-11-11 Thread Jaewon Kim
Hi On 2016년 11월 10일 18:51, Brian Starkey wrote: > Hi Jaewon, > > On Thu, Nov 10, 2016 at 10:41:43AM +0900, Jaewon Kim wrote: >> Hi >> >> On 2016년 11월 09일 19:23, Brian Starkey wrote: >>> Hi, >>> >>> On Wed, Nov 09, 2016 at 06:47:26PM +0900, Jaewon Kim wrote: On 2016년 11월 09일 18:27, B

Re: [PATCH V3 8/9] thermal: da9062/61: Thermal junction temperature monitoring driver

2016-11-11 Thread Lukasz Luba
Hi Steve, On 09/11/16 18:20, Steve Twiss wrote: On 02 November 2016 13:29, Lukasz Luba wrote: [...] Apart from these 2 comments, 10sec is not to long (waiting for the temperature change)? Hi Lukasz, Are you saying the maximum polling time is too long or too short if it is fixed in the drive

[PATCH] Staging: i4l: act2000: capi: Removing necessary variable

2016-11-11 Thread Nadim Almas
Removing struct sk_buff *skb from capi.c The Coccinelle semantic patch used to make this change is as follows: @@ type T; identifier D; @@ - T D; ...when != D Signed-off-by: Nadim Almas --- drivers/staging/i4l/act2000/capi.c | 13 - 1 file changed, 13 deletions(-) diff --git a/driv

Re: [PATCH] Kernel: Improvement in code readability when memdup_user_nul() fails.

2016-11-11 Thread Vivek Gautam
On Fri, Nov 11, 2016 at 2:37 PM, Sachin Shukla wrote: > From: "Sachin Shukla" > > There is no need to call kfree() if memdup_user_nul() fails, as no memory > was allocated and the error in the error-valued pointer should be returned. > > Signed-off-by: Sachin Shukla > --- > kernel/user_namespac

[PATCH] clk: sunxi-ng: sun8i-a23: Set CLK_SET_RATE_PARENT for audio module clocks

2016-11-11 Thread Chen-Yu Tsai
The audio module clocks are supposed to be set according to the sample rate of the audio stream. The audio PLL provides the clock signal for thees module clocks, and only it is freely tunable. Set CLK_SET_RATE_PARENT for the audio module clocks so their users can properly tune the clock rate. Fix

Re: [PATCH 3/3] ovl: redirect on rename-dir

2016-11-11 Thread Miklos Szeredi
On Fri, Nov 11, 2016 at 10:46 AM, Konstantin Khlebnikov wrote: > On Fri, Nov 11, 2016 at 1:56 AM, Amir Goldstein wrote: >> On Mon, Nov 7, 2016 at 3:38 PM, Amir Goldstein wrote: >>> On Mon, Nov 7, 2016 at 12:08 PM, Konstantin Khlebnikov >>> wrote: On Mon, Nov 7, 2016 at 1:04 PM, Miklos Sze

Re: [PATCH V2] mm: move vma_is_anonymous check within pmd_move_must_withdraw

2016-11-11 Thread Kirill A. Shutemov
On Mon, Nov 07, 2016 at 08:16:39PM +0530, Aneesh Kumar K.V wrote: > Architectures like ppc64 want to use page table deposit/withraw > even with huge pmd dax entries. Allow arch to override the > vma_is_anonymous check by moving that to pmd_move_must_withdraw > function > > Signed-off-by: Aneesh Ku

[PATCH] clk: sunxi-ng: sun8i-h3: Set CLK_SET_RATE_PARENT for audio module clocks

2016-11-11 Thread Chen-Yu Tsai
The audio module clocks are supposed to be set according to the sample rate of the audio stream. The audio PLL provides the clock signal for thees module clocks, and only it is freely tunable. Set CLK_SET_RATE_PARENT for the audio module clocks so their users can properly tune the clock rate. Fix

Re: [PATCH V5 1/3] ARM64 LPC: Indirect ISA port IO introduced

2016-11-11 Thread zhichang.yuan
Hi, Ben, Mark, Thanks for your comments! These are helpful! On 2016/11/11 3:32, Benjamin Herrenschmidt wrote: > On Thu, 2016-11-10 at 11:22 +, Mark Rutland wrote: >> On POWER8, our PCIe doesn't do IO at all, but we have an LPC bus behind >>> firmware calls ;-) We use that infrastructure to p

Re: [PATCH 3/3] thermal/intel_powerclamp: Convert to CPU hotplug state

2016-11-11 Thread Petr Mladek
On Fri 2016-11-11 10:33:30, Petr Mladek wrote: > Then I tried to revert the conversion to the kthread worker > API (2nd patch from this patchset), see below. And it still > hangs during the suspend inside > > powerclamp_cpu_predown() > kthread_stop(*percpu_thread); > > > Note that

Re: [patch v5+1 repost] i2c: mux: mellanox: add driver

2016-11-11 Thread Peter Rosin
On 2016-11-10 22:26, vad...@mellanox.com wrote: > From: Vadim Pasternak > > This driver allows I2C routing controlled through CPLD select registers on > a wide range of Mellanox systems (CPLD Lattice device). > MUX selection is provided by digital and analog HW. Analog part is not > under SW cont

Re: [PATCH V5 3/3] ARM64 LPC: LPC driver implementation on Hip06

2016-11-11 Thread zhichang.yuan
Hi, Arnd, On 2016/11/11 0:07, Arnd Bergmann wrote: > On Thursday, November 10, 2016 3:36:49 PM CET Gabriele Paoloni wrote: >> >> Where should we get the range from? For LPC we know that it is going >> Work on anything that is not used by PCI I/O space, and this is >> why we use [0, PCIBIOS_MIN_IO

Re: [linux-sunxi] [PATCH] clk: sunxi-ng: sun8i-h3: Set CLK_SET_RATE_PARENT for audio module clocks

2016-11-11 Thread Code Kipper
On 11 November 2016 at 11:05, Chen-Yu Tsai wrote: > The audio module clocks are supposed to be set according to the sample > rate of the audio stream. The audio PLL provides the clock signal for > thees module clocks, and only it is freely tunable. nick! these CK > > Set CLK_SET_RATE_PARENT for th

[PATCH] KVM: x86: do not go through vcpu in __get_kvmclock_ns

2016-11-11 Thread Paolo Bonzini
Going through the first VCPU is wrong if you follow a KVM_SET_CLOCK with a KVM_GET_CLOCK immediately after, without letting the VCPU run and call kvm_guest_time_update. This is easily fixed however, because kvm_get_time_and_clockread provides the information we want. Reported-by: Marcelo Tosatti

Re: [PATCH 2/2] mm: THP page cache support for ppc64

2016-11-11 Thread Kirill A. Shutemov
On Mon, Nov 07, 2016 at 02:04:41PM +0530, Aneesh Kumar K.V wrote: > @@ -2953,6 +2966,13 @@ static int do_set_pmd(struct fault_env *fe, struct > page *page) > ret = VM_FAULT_FALLBACK; > page = compound_head(page); > > + /* > + * Archs like ppc64 need additonal space to store

Re: [Intel-gfx] [PATCH 2/4] lib/scatterlist: Avoid potential scatterlist entry overflow

2016-11-11 Thread Chris Wilson
On Fri, Nov 11, 2016 at 08:50:18AM +, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > Since the scatterlist length field is an unsigned int, make > sure that sg_alloc_table_from_pages does not overflow it while > coallescing pages to a single entry. > > v2: Drop reference to future use. Use

[RFC PATCH] x86/debug: Dump more detailed segfault info

2016-11-11 Thread Borislav Petkov
From: Borislav Petkov I found out recently that this is very helpful when trying to look at opcodes around the rIP when the segfault happens, and also poke at architectural registers. When enabled, it looks something like this: strsep[3702]: segfault at 40066b ip 77abe22b sp 7f

[PATCH 0/3] cpufreq: schedutil: move slow path from workqueue to SCHED_FIFO task

2016-11-11 Thread Viresh Kumar
Hi, If slow path frequency changes are conducted in a SCHED_OTHER context then they may be delayed for some amount of time, including indefinitely, when real time or deadline activity is taking place. Move the slow path to a real time kernel thread using the kthread worker infrastructure. In the

[PATCH 3/3] cpufreq: schedutil: irq-work is used only in slow path

2016-11-11 Thread Viresh Kumar
Execute the irq-work specific initialization/exit code only when fast path isn't available. Signed-off-by: Viresh Kumar --- kernel/sched/cpufreq_schedutil.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_

[PATCH 2/3] cpufreq: schedutil: move slow path from workqueue to SCHED_FIFO task

2016-11-11 Thread Viresh Kumar
If slow path frequency changes are conducted in a SCHED_OTHER context then they may be delayed for some amount of time, including indefinitely, when real time or deadline activity is taking place. Move the slow path to a real time kernel thread. In the future the thread should be made SCHED_DEADLI

Re: [PATCH 1/4] x86/cpufeature: Add User-Mode Instruction Prevention definitions

2016-11-11 Thread Borislav Petkov
On Thu, Nov 10, 2016 at 08:08:07PM -0800, Ricardo Neri wrote: > UMIP is enabled by setting a bit in CR4. If that bit is not supposed > to be set, that could cause a #GP fault. Yeah, you do check CPUID first, AFAICT, so you should be ok... -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix

Re: [PATCH v1 03/11] drivers: soc: hisi: Add support for Hisilicon Djtag driver

2016-11-11 Thread Anurup M
On Thursday 10 November 2016 03:10 AM, Arnd Bergmann wrote: On Wednesday, November 9, 2016 9:58:38 AM CET Anurup M wrote: I also see that the compatible strings have the version included in them, and you can probably drop them by requiring them only in the fallback: compatible = "hisil

Re: [PATCH 4/4] drm/i915: Use __sg_alloc_table_from_pages for userptr allocations

2016-11-11 Thread Chris Wilson
On Fri, Nov 11, 2016 at 08:50:20AM +, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > With the addition of __sg_alloc_table_from_pages we can control > the maximum coallescing size and eliminate a separate path for > allocating backing store here. > > Similar to 871dfbd67d4e ("drm/i915: All

[PATCH 1/3] cpufreq: schedutil: enable fast switch earlier

2016-11-11 Thread Viresh Kumar
The fast_switch_enabled flag will be used a bit earlier while converting the schedutil governor to use kthread worker. Prepare for that by moving the call to enable it to the beginning of sugov_init(). Signed-off-by: Viresh Kumar --- kernel/sched/cpufreq_schedutil.c | 17 +++-- 1 fi

Re: [Intel-gfx] [PATCH 3/4] lib/scatterlist: Introduce and export __sg_alloc_table_from_pages

2016-11-11 Thread Chris Wilson
On Fri, Nov 11, 2016 at 08:50:19AM +, Tvrtko Ursulin wrote: > From: Tvrtko Ursulin > > Drivers like i915 benefit from being able to control the maxium > size of the sg coallesced segment while building the scatter- > gather list. > > Introduce and export the __sg_alloc_table_from_pages funct

Re: [PATCH] binfmt_misc: allow selecting the interpreter based on xattr keywords

2016-11-11 Thread Alex Bennée
Carlos O'Donell writes: > On 08/26/2016 10:55 AM, Florian Weimer wrote: >> On 08/25/2016 06:15 PM, James Bottomley wrote: >>> On Sun, 2016-08-21 at 21:01 -0700, Josh Max wrote: > > This ignores the fact that the alternate loader also needs to have > it's own ldconfig cache, implementation-depen

Re: [patch] mm, slab: faster active and free stats

2016-11-11 Thread David Rientjes
On Fri, 11 Nov 2016, Joonsoo Kim wrote: > Hello, David. > > Maintaining acitve/free_slab counters looks so complex. And, I think > that we don't need to maintain these counters for faster slabinfo. > Key point is to remove iterating n->slabs_partial list. > > We can calculate active slab/object

Re: [PATCH V2 05/10] mfd: da9061: MFD core support

2016-11-11 Thread Lee Jones
On Wed, 26 Oct 2016, Steve Twiss wrote: > From: Steve Twiss > > MFD support for DA9061 is provided as part of the DA9062 device driver. > > The registers header file adds two new chip variant IDs defined in DA9061 > and DA9062 hardware. The core header file adds new software enumerations > for

Re: [PATCH v1 03/11] drivers: soc: hisi: Add support for Hisilicon Djtag driver

2016-11-11 Thread Anurup M
On Wednesday 09 November 2016 02:36 PM, John Garry wrote: I'd suggest requiring #address-cells=<1> and #size-cells=<0> in the master node, and listing the children by reg property. If the address is not easily expressed as a single integer, use a larger #address-cells value. We already have

Re: [PATCH 0/6] mfd: audit and demodule drivers/mfd/ab* drivers

2016-11-11 Thread Lee Jones
On Sat, 29 Oct 2016, Paul Gortmaker wrote: > Nothing new here ; just another instance where we had modular remove > and exit functions -- but the Makefile/Kconfig limited the use case to > being always built-in; hence the code is useless and needs removing. > > So we remove the dead code and the

Re: [PATCH] um: Fix compile failure due to current_text_address() definition

2016-11-11 Thread Richard Weinberger
Keno, On 10.11.2016 02:53, Keno Fischer wrote: > Fixes the following link error: > ``` > /usr/bin/ld: net/built-in.o: relocation R_X86_64_32S against `.text' > can not be used when making a shared object; recompile with -fPIC > ``` How and where do you trigger this? I had a chat with Sebastian an

Re: [PATCH v6 05/07] iommu/ipmmu-vmsa: Add new IOMMU_DOMAIN_DMA ops

2016-11-11 Thread Joerg Roedel
On Fri, Nov 11, 2016 at 03:13:32AM +0200, Laurent Pinchart wrote: > Joerg, as I've sent a few comments about the other patches (sorry for the > late > review, I got delayed by KS and LPC), the follow-up patch should probably be > squashed into this one when Magnus addresses my comments. Could yo

Re: [PATCH V5 2/3] ARM64 LPC: Add missing range exception for special ISA

2016-11-11 Thread liviu.du...@arm.com
On Thu, Nov 10, 2016 at 04:06:40PM +, Gabriele Paoloni wrote: > Hi Liviu > > > -Original Message- > > From: liviu.du...@arm.com [mailto:liviu.du...@arm.com] > > Sent: 09 November 2016 16:51 > > To: Gabriele Paoloni > > Cc: Yuanzhichang; catalin.mari...@arm.com; will.dea...@arm.com; > >

Re: [PATCH v4 1/5] arm64: perf: Basic uncore counter support for Cavium ThunderX SOC

2016-11-11 Thread Jan Glauber
Hi Mark, thanks for reviewing. One question below, for most of your other comments I think we need to come to a conclusion about the aggregation first. On Thu, Nov 10, 2016 at 04:54:06PM +, Mark Rutland wrote: > Hi Jan, > > Apologies for the delay in getting to this. > > On Sat, Oct 29, 201

RE: [PATCH v3 5/6] usb: dwc3: use bus->sysdev for DMA configuration

2016-11-11 Thread Sriram Dash
>From: Felipe Balbi [mailto:felipe.ba...@linux.intel.com] > > >Hi, Hello Felipe, > >Sriram Dash writes: >> From: Arnd Bergmann >> >> The dma ops for dwc3 devices are not set properly. So, use a physical >> device sysdev, which will be inherited from parent, to set the >> hardware / firmware par

Re: [PATCH v4 1/5] arm64: perf: Basic uncore counter support for Cavium ThunderX SOC

2016-11-11 Thread Jan Glauber
Hi Will, thanks for the review! On Tue, Nov 08, 2016 at 11:50:10PM +, Will Deacon wrote: > Hi Jan, > > Thanks for posting an updated series. I have a few minor comments, which > we can hopefully address in time for 4.10. > > Also, have you run the perf fuzzer with this series applied? No,

Re: [PATCH v8 1/3] drm/fence: add in-fences support

2016-11-11 Thread Brian Starkey
Hi Gustavo, On Fri, Nov 11, 2016 at 02:16:07PM +0900, Gustavo Padovan wrote: From: Gustavo Padovan There is now a new property called IN_FENCE_FD attached to every plane state that receives sync_file fds from userspace via the atomic commit IOCTL. The fd is then translated to a fence (that ma

Re: [PATCH V5 3/3] ARM64 LPC: LPC driver implementation on Hip06

2016-11-11 Thread liviu.du...@arm.com
Hi Arnd, On Thu, Nov 10, 2016 at 05:07:21PM +0100, Arnd Bergmann wrote: > On Thursday, November 10, 2016 3:36:49 PM CET Gabriele Paoloni wrote: > > > > Where should we get the range from? For LPC we know that it is going > > Work on anything that is not used by PCI I/O space, and this is > > why

question about xt_find_table_lock

2016-11-11 Thread Julia Lawall
The function xt_find_table_lock defined in net/netfilter/x_tables.c is preceeded by a comment that says that it returns ERR_PTR() on error. But looking at the definition, I only see occurrences of return NULL and returns of pointers that have previously been dereferenced. Is it the code or the do

Re: [PATCH] [media] mtk-mdp: allocate video_device dynamically

2016-11-11 Thread Hans Verkuil
Almost correct: On 11/07/2016 01:42 PM, Minghsiu Tsai wrote: > It can fix known problems with embedded video_device structs. > > Signed-off-by: Minghsiu Tsai > --- > drivers/media/platform/mtk-mdp/mtk_mdp_core.h | 2 +- > drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c | 33 > --

  1   2   3   4   5   6   7   >