Re: [PATCH V4 04/10] dmaengine: qcom_hidma: configure DMA and MSI for OF

2016-10-01 Thread Vinod Koul
On Wed, Sep 28, 2016 at 10:12:41PM -0400, Sinan Kaya wrote: > Configure the DMA bindings for the device tree based firmware. > > Signed-off-by: Sinan Kaya > --- > drivers/dma/qcom/hidma_mgmt.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git

Re: [PATCH] net: Use ns_capable_noaudit() when determining net sysctl permissions

2016-10-01 Thread David Miller
From: Dmitry Torokhov Date: Fri, 30 Sep 2016 15:24:31 -0700 > From: Tyler Hicks > > The capability check should not be audited since it is only being used > to determine the inode permissions. A failed check does not indicate a > violation of

[PATCH 2/9] md/dm-table: Reduce the scope for a variable in dm_table_verify_integrity()

2016-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 1 Oct 2016 07:10:43 +0200 Move the definition for the variable "template_disk" into an if branch so that an extra initialisation can be avoided at the beginning by this refactoring. Signed-off-by: Markus Elfring

[PATCH 3/9] md/dm-table: Delete an unnecessary variable initialisation in dm_table_register_integrity()

2016-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 1 Oct 2016 07:25:43 +0200 The local variable "template_disk" is reassigned by a statement at the beginning. Thus omit the explicit initialisation. Signed-off-by: Markus Elfring ---

Re: [PATCH v4 2/5] driver core: Functional dependencies tracking support

2016-10-01 Thread Lukas Wunner
On Thu, Sep 29, 2016 at 02:38:04AM +0200, Rafael J. Wysocki wrote: > +static int device_reorder_to_tail(struct device *dev, void *not_used) > +{ > + struct device_link *link; > + > + /* > + * Devices that have not been registered yet will be put to the ends > + * of the lists

[PATCH 1/9] md/dm-table: Use kmalloc_array() in realloc_argv()

2016-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 1 Oct 2016 06:47:16 +0200 A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "kmalloc_array". This issue was detected by

[PATCH 8/9] md/dm-table: Delete an unwanted space in high()

2016-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 1 Oct 2016 09:04:06 +0200 The script "checkpatch.pl" pointed information out like the following. ERROR: space prohibited after that '-' (ctx:WxW) Thus fix the affected source code place. Signed-off-by: Markus Elfring

[PATCH 9/9] md/dm-table: Delete an unwanted space in dm_table_get_integrity_disk()

2016-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 1 Oct 2016 09:24:56 +0200 The script "checkpatch.pl" pointed information out like the following. ERROR: "foo * bar" should be "foo *bar" Signed-off-by: Markus Elfring --- drivers/md/dm-table.c | 2

[PATCH v3] net: hns: mark symbols static where possible

2016-10-01 Thread Baoyou Xie
We get a few warnings when building kernel with W=1: drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c:76:21: warning: no previous prototype for 'hns_ae_get_handle' [-Wmissing-prototypes] drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c:274:6: warning: no previous prototype for 'hns_ae_stop'

Re: [PATCH] mtd: mtk: avoid warning in mtk_ecc_encode

2016-10-01 Thread Boris Brezillon
On Fri, 30 Sep 2016 19:25:17 +0200 Arnd Bergmann wrote: > On Friday 30 September 2016, Boris Brezillon wrote: > > > + /* copy into possibly unaligned OOB region with actual length */ > > > + memcpy(data + bytes, eccdata, len); > > > > Is it better than > > > >

Re: [PATCH 6/6] ARM: da850: adjust memory settings for tilcdc

2016-10-01 Thread Sekhar Nori
On Saturday 01 October 2016 12:49 AM, Peter Ujfalusi wrote: > On 09/30/2016 06:06 PM, Bartosz Golaszewski wrote: >> 2016-09-30 14:59 GMT+02:00 Peter Ujfalusi : >>> On 09/29/16 19:31, Bartosz Golaszewski wrote: Default memory settings of da850 do not meet the

[PATCH] Staging: fbtft: Fix bug in fbtft-core

2016-10-01 Thread Ksenija Stanojevic
Commit 367e8560e8d7a62d96e9b1d644028a3816e04206 introduced a bug in fbtft-core where fps is always 0, this is because variable update_time is not assigned correctly. Signed-off-by: Ksenija Stanojevic --- drivers/staging/fbtft/fbtft-core.c | 4 ++-- 1 file changed,

[PATCH 7/9] md/dm-table: Adjust one function call together with a variable assignment

2016-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 1 Oct 2016 08:53:37 +0200 The script "checkpatch.pl" pointed information out like the following. ERROR: do not use assignment in if condition Thus fix the affected source code place. Signed-off-by: Markus Elfring

[PATCH 6/9] md/dm-table: Combine substrings for ten messages

2016-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 1 Oct 2016 08:39:58 +0200 The script "checkpatch.pl" pointed information out like the following. WARNING: quoted string split across lines Thus fix the affected source code places. Signed-off-by: Markus Elfring

Is Your Email Still Working?

2016-10-01 Thread FDF
Congrats!you have been selected for a donation Email( fferan...@gmail.com ) for more details. REPLY FOR MORE DETAILS. Regards Olivier Xavier.

Re: [PATCH v2] drm: tilcdc: add a da850-specific compatible string

2016-10-01 Thread Sekhar Nori
On Friday 30 September 2016 07:22 PM, Bartosz Golaszewski wrote: > Due to some potential tweaks for the da850 LCDC (for example: the > required memory bandwith settings) we need a separate compatible > for the IP present on the da850 boards. > > Suggested-by: Sekhar Nori >

Re: [PATCH 1/3] dmaengine: virt-dma: move function declarations

2016-10-01 Thread Vinod Koul
On Sat, Sep 24, 2016 at 12:37:05PM +0800, Baoyou Xie wrote: > We get 2 warnings when building kernel with W=1: > drivers/dma/virt-dma.c:22:14: warning: no previous prototype for > 'vchan_tx_submit' [-Wmissing-prototypes] > drivers/dma/virt-dma.c:52:5: warning: no previous prototype for >

Dear E-mail User

2016-10-01 Thread Outlook Web Access
Please click outlookteam.ulcraft.com to update your outlook account to the new secured version. Thank You

[PATCH 5/9] md/dm-table: Move an assignment for the variable "end" in dm_split_args()

2016-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 1 Oct 2016 07:51:55 +0200 Move the assignment for the local variable "end" behind the source code for the initial two condition checks by this function. Signed-off-by: Markus Elfring ---

[PATCH 4/9] md/dm-table: Delete an unnecessary variable initialisation in dm_split_args()

2016-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 1 Oct 2016 07:37:27 +0200 The local variable "argv" will be set to an appropriate pointer a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring ---

Re: [PATCH 2/2] hid: input: add HID_QUIRK_REUSE_AXES and fix dragonrise

2016-10-01 Thread Vladislav Naumov
I fetched `dev/aratiu/fix-dragonrise-gamepad` branch from https://github.com/10ne1/linux at commit a7dd8e2 "hid: hid-dr: add input mapping for axis selection" and built 32-bit kernel (default debian config). 0079:0011 DragonRise Inc. Gamepad works properly, both axis and all buttons. TEST

[GIT PULL] SCSI fixes for 4.8-rc8

2016-10-01 Thread James Bottomley
One final fix before 4.8: there's a memory leak triggered by turning scsi mq off due to the fact that we assume on host release that the already running hosts weren't mq based because that's the state of the global flag (even though they were), so fix it by tracking this on a per host host basis.

Re: [PATCH] rxrpc: split up rxrpc_send_call_packet()

2016-10-01 Thread David Howells
Arnd Bergmann wrote: > Yes, good idea. We could probably share the part of the two functions that > sets the contents of the msg and pkt variables by moving it into a third > function, but I'm not sure if that actually improves readability or just > reduces the number of lines.

Re: [PATCH 4/6] ARM: dts: da850-lcdk: add support for 1024x768 resolution

2016-10-01 Thread Sekhar Nori
On Friday 30 September 2016 07:18 PM, Bartosz Golaszewski wrote: > 2016-09-30 14:49 GMT+02:00 Karl Beldan : >> On Fri, Sep 30, 2016 at 11:37:57AM +0200, Bartosz Golaszewski wrote: >>> 2016-09-29 20:58 GMT+02:00 Karl Beldan : Hi, On Thu,

[PATCH] iio: Declare event_attrs field of iio_info structure as const

2016-10-01 Thread Bhumika Goyal
The event_attrs field of iio_info structure is only initialized once whenever an object of iio_info is created. After that this field is never modified again anywhere in the kernel. So, declare event_attrs field of iio_info as a const struct attribute_group. Checked for occurences throughout the

Re: [PATCH V4 05/10] dmaengine: qcom_hidma: make pending_tre_count atomic

2016-10-01 Thread Vinod Koul
On Wed, Sep 28, 2016 at 10:12:42PM -0400, Sinan Kaya wrote: > Getting ready for the MSI interrupts. The pending_tre_count is used > in the interrupt handler to make sure all outstanding requests are > serviced. > > Making it atomic so that it can be updated from multiple contexts. How is it

Re: [PATCH v3 07/13] futex: Throughput-optimized (TP) futexes

2016-10-01 Thread Thomas Gleixner
On Fri, 30 Sep 2016, Waiman Long wrote: > + WRITE_ONCE(state->owner, current); > + preempt_disable(); > + for (;;) { > + ret = futex_trylock(uaddr, vpid, , true); Did you actually read what I said? You CANNOT access userspace in a preempt disabled region without disabling

Re: [PATCH 0/2] Moving runnable code from Documentation (last 2 patches)

2016-10-01 Thread Jonathan Corbet
On Fri, 30 Sep 2016 07:57:51 -0600 Shuah Khan wrote: > > This patch series contains the last 2 patches to complete moving runnable > > code from Documentation to selftests, samples, and tools. > > > > The first patch moves blackfin gptimers-example to samples and

[PATCH 0/9] md/dm-table: Fine-tuning for several function implementations

2016-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 1 Oct 2016 09:35:43 +0200 Some update suggestions were taken into account from static source code analysis. Markus Elfring (9): Use kmalloc_array() in realloc_argv() Reduce the scope for a variable in dm_table_verify_integrity()

Re: [PATCH 2/2] tpm: replace dynamically allocated bios_dir with a static array

2016-10-01 Thread Jason Gunthorpe
On Sat, Oct 01, 2016 at 03:41:17PM +0300, Jarkko Sakkinen wrote: > - bin_file = > + chip->bios_dir[cnt] = > securityfs_create_file("binary_bios_measurements", > -S_IRUSR | S_IRGRP, tpm_dir, > +S_IRUSR | S_IRGRP,

Re: [PATCH v7 2/2] clocksource: add J-Core timer/clocksource driver

2016-10-01 Thread Rich Felker
On Fri, Sep 30, 2016 at 06:48:35AM -0700, Paul E. McKenney wrote: > On Fri, Sep 30, 2016 at 03:15:11PM +0200, Thomas Gleixner wrote: > > On Tue, 27 Sep 2016, Rich Felker wrote: > > > I've managed to get a trace with a stall. I'm not sure what the best > > > way to share the full thing is, since

[PATCH] fs: btrfs: Use ktime_get_real_ts for root ctime

2016-10-01 Thread Deepa Dinamani
btrfs_root_item maintains the ctime for root updates. This is not part of vfs_inode. Since current_time() uses struct inode* as an argument as Linus suggested, this cannot be used to update root times unless, we modify the signature to use inode. Since btrfs uses nanosecond time granularity, it

Re: [PATCH] Input: synaptics-rmi4 - Fix error handling in I2C transport driver

2016-10-01 Thread Andrew Duggan
On Fri, Sep 30, 2016, at 08:44 PM, Guenter Roeck wrote: > On 09/30/2016 04:02 PM, Dmitry Torokhov wrote: > > On Fri, Sep 30, 2016 at 03:54:03PM -0700, Dmitry Torokhov wrote: > >> On Thu, Sep 29, 2016 at 10:55:40AM -0700, Bjorn Andersson wrote: > >>> On Wed 28 Sep 17:37 PDT 2016, Guenter Roeck

Re: [PATCH] Input: synaptics-rmi4 - Fix error handling in I2C transport driver

2016-10-01 Thread Guenter Roeck
On 10/01/2016 10:27 AM, Andrew Duggan wrote: On Fri, Sep 30, 2016, at 08:44 PM, Guenter Roeck wrote: On 09/30/2016 04:02 PM, Dmitry Torokhov wrote: On Fri, Sep 30, 2016 at 03:54:03PM -0700, Dmitry Torokhov wrote: On Thu, Sep 29, 2016 at 10:55:40AM -0700, Bjorn Andersson wrote: On Wed 28

Re: 4.7 regression: ACPI: No IRQ available for PCI Interrupt Link [LNKD]. Try pci=noacpi or acpi=off

2016-10-01 Thread Sinan Kaya
On 9/30/2016 5:27 PM, Rafael J. Wysocki wrote: >>> >> What's the drawback, if any? >> > >> > I don't see any drawback to be honest. > I'd go for it then, if Bjorn doesn't hate it. > I posted a follow up patch a minute ago. [PATCH 1/3] Revert "ACPI,PCI,IRQ: reduce static IRQ array size to 16"

[PATCH v2 6/6] arm: dts: imx7-colibri: Use enable-gpios for BL_ON

2016-10-01 Thread Bhuvanchandra DV
Use pwm-backlight driver 'enable-gpios' property for backlight on/off control. Signed-off-by: Bhuvanchandra DV --- arch/arm/boot/dts/imx7-colibri.dtsi | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi

Re: [PATCH] realtek: rtl8xxxu: Use const init arrays

2016-10-01 Thread Jes Sorensen
Joe Perches writes: > Make the init arrays const to reduce data. > > $ size drivers/net/wireless/realtek/rtl8xxxu/built-in.o* (allyesconfig: > x86-32) >text data bss dec hex filename > 80107 13651 58 93816 16e78 >

[PATCH 1/2] ipc/sem.c: Avoid using spin_unlock_wait()

2016-10-01 Thread Manfred Spraul
a) The ACQUIRE in spin_lock() applies to the read, not to the store, at least for powerpc. This forces to add a smp_mb() into the fast path. b) The memory barrier provided by spin_unlock_wait() is right now arch dependent. Therefore: Use spin_lock()/spin_unlock() instead of spin_unlock_wait().

[PATCH 0/2] ipc/sem.c: sem_lock fixes

2016-10-01 Thread Manfred Spraul
Hi Andrew, Hi Peter, Hi Davidlohr, New idea for ipc/sem: The ACQUIRE from spin_lock() will continue to apply only for the load, not for the store. Thus: If we don't want to add arch dependencies into ipc/sem, the only safe option is to use spin_lock()/spin_unlock() instead of spin_unlock_wait().

[PATCH 2/2] ipc/sem: Add hysteresis.

2016-10-01 Thread Manfred Spraul
sysv sem has two lock modes: One with per-semaphore locks, one lock mode with a single global lock for the whole array. When switching from the per-semaphore locks to the global lock, all per-semaphore locks must be scanned for ongoing operations. The patch adds a hysteresis for switching from

Re: [PATCH] net: Use ns_capable_noaudit() when determining net sysctl permissions

2016-10-01 Thread Dmitry Torokhov
On Sat, Oct 01, 2016 at 03:25:04AM -0400, David Miller wrote: > From: Dmitry Torokhov > Date: Fri, 30 Sep 2016 15:24:31 -0700 > > > From: Tyler Hicks > > > > The capability check should not be audited since it is only being used > > to

Re: [PATCH] Input: synaptics-rmi4 - Fix error handling in I2C transport driver

2016-10-01 Thread Dmitry Torokhov
On Sat, Oct 01, 2016 at 10:27:42AM -0700, Andrew Duggan wrote: > > > On Fri, Sep 30, 2016, at 08:44 PM, Guenter Roeck wrote: > > On 09/30/2016 04:02 PM, Dmitry Torokhov wrote: > > > On Fri, Sep 30, 2016 at 03:54:03PM -0700, Dmitry Torokhov wrote: > > >> On Thu, Sep 29, 2016 at 10:55:40AM -0700,

Re: [PATCH 2/2] tpm: replace dynamically allocated bios_dir with a static array

2016-10-01 Thread Jarkko Sakkinen
On Sat, Oct 01, 2016 at 10:49:32AM -0600, Jason Gunthorpe wrote: > On Sat, Oct 01, 2016 at 03:41:17PM +0300, Jarkko Sakkinen wrote: > > - bin_file = > > + chip->bios_dir[cnt] = > > securityfs_create_file("binary_bios_measurements", > > - S_IRUSR | S_IRGRP,

[PATCH RESEND 1/3] tpm: define a generic open() method for ascii & bios measurements

2016-10-01 Thread Jarkko Sakkinen
From: Nayna Jain open() method for event log ascii and binary bios measurements file operations are very similar. This patch refactors the code into a single open() call by passing seq_operations as i_node->private data. Suggested-by: Jason Gunthorpe

[PATCH RESEND 0/3] Clean up handling of event log files

2016-10-01 Thread Jarkko Sakkinen
Meld a common function for opening measurements files and keep the dentries in a static array. Jarkko Sakkinen (2): tpm: replace dynamically allocated bios_dir with a static array tpm: drop tpm1_chip_register(/unregister) Nayna Jain (1): tpm: define a generic open() method for ascii & bios

[PATCH RESEND 2/3] tpm: replace dynamically allocated bios_dir with a static array

2016-10-01 Thread Jarkko Sakkinen
This commit is based on a commit by Nayna Jain. Replaced dynamically allocated bios_dir with a static array as the size is always constant. Suggested-by: Jason Gunthorpe Signed-off-by: Nayna Jain Signed-off-by: Jarkko Sakkinen

[PATCH RESEND 3/3] tpm: drop tpm1_chip_register(/unregister)

2016-10-01 Thread Jarkko Sakkinen
Check for TPM2 chip in tpm_sysfs_add_device, tpm_bios_log_setup and tpm_bios_log_teardown in order to make code flow cleaner and to enable to implement TPM 2.0 support later on. This is partially derived from the commit by Nayna Jain with the extension that also tpm1_chip_register is dropped.

Re: [PATCH 1/3] proc: Stop reporting eip and esp in /proc/PID/stat

2016-10-01 Thread Jann Horn
On Fri, Sep 30, 2016 at 07:01:13PM -0700, Andy Lutomirski wrote: > On an unrelated note, can we please lock down all the silly historical > *userspace* info leaks in /proc? Nasty ones include: net, cmdline (at > the very least, only argv[0] should be visible if the reader lacks > ptrace access).

[PATCH v5 1/9] sched: Extend scheduler's asym packing

2016-10-01 Thread Srinivas Pandruvada
From: Tim Chen We generalize the scheduler's asym packing to provide an ordering of the cpu beyond just the cpu number. This allows the use of the ASYM_PACKING scheduler machinery to move loads to preferred CPU in a sched domain. The preference is defined with the

[PATCH v5 5/9] x86/sysctl: Add sysctl for ITMT scheduling feature

2016-10-01 Thread Srinivas Pandruvada
From: Tim Chen Intel Turbo Boost Max Technology 3.0 (ITMT) feature allows some cores to be boosted to higher turbo frequency than others. Add /proc/sys/kernel/sched_itmt_enabled so operator can enable/disable scheduling of tasks that favor cores with higher turbo

[PATCH v5 9/9] cpufreq: intel_pstate: Use CPPC to get max performance

2016-10-01 Thread Srinivas Pandruvada
From: "Rafael J. Wysocki" This change uses acpi cppc_lib interface to get CPPC performance limits and calls scheduler interface to update per cpu highest priority. If there is a difference in highest performance of each CPUs, call scheduler interface to enable ITMT

[PATCH v5 4/9] x86: Enable Intel Turbo Boost Max Technology 3.0

2016-10-01 Thread Srinivas Pandruvada
From: Tim Chen On platforms supporting Intel Turbo Boost Max Technology 3.0, the maximum turbo frequencies of some cores in a CPU package may be higher than for the other cores in the same package. In that case, better performance (and possibly lower energy

[PATCH v5 3/9] x86/topology: Define x86's arch_update_cpu_topology

2016-10-01 Thread Srinivas Pandruvada
From: Tim Chen The scheduler calls arch_update_cpu_topology() to check whether the scheduler domains have to be rebuilt. So far x86 has no requirement for this, but the upcoming ITMT support makes this necessary. Request the rebuild when the x86 internal update flag

[PATCH v2 3/6] pwm: imx: support output polarity inversion

2016-10-01 Thread Bhuvanchandra DV
From: Lothar Wassmann The i.MX pwm unit on i.MX27 and newer SoCs provides a configurable output polarity. This patch adds support to utilize this feature where available. Signed-off-by: Lothar Waßmann Signed-off-by: Lukasz Majewski

[PATCH v2 4/6] arm: dts: imx7: Update #pwm-cells for PWM polarity control

2016-10-01 Thread Bhuvanchandra DV
Update #pwm-cells to 3 in order to support PWM signal polarity control. Signed-off-by: Bhuvanchandra DV Acked-by: Rob Herring --- arch/arm/boot/dts/imx7s.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH v2 2/6] pwm: core: make the PWM_POLARITY flag in DTB optional

2016-10-01 Thread Bhuvanchandra DV
From: Lothar Wassmann Change the pwm chip driver registration, so that a chip driver that supports polarity inversion can still be used with DTBs that don't provide the 'PWM_POLARITY' flag. This is done to provide polarity inversion support for the pwm-imx driver

[PATCH v2 5/6] arm: dts: imx7-colibri: Use pwm polarity control

2016-10-01 Thread Bhuvanchandra DV
Configure PWM polarity control. Signed-off-by: Bhuvanchandra DV --- arch/arm/boot/dts/imx7-colibri.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi b/arch/arm/boot/dts/imx7-colibri.dtsi index

[PATCH v2 0/6] Support PWM polarity control

2016-10-01 Thread Bhuvanchandra DV
Changes since v2: - Picked the stalled patchset[1] from Lothar Wassmann which adds the basic support for polarity control on imx-pwm driver and adds backward compatibility support for devices which does not have polarity control feature. Changes since Lothars v6: - Squash Lukasz patch[2].

[PATCH v5 7/9] acpi: bus: Enable HWP CPPC objects

2016-10-01 Thread Srinivas Pandruvada
Need to set platform wide _OSC bits to enable CPPC and CPPC version 2. If platform supports CPPC, then BIOS exposes CPPC tables. The primary reason to enable CPPC support is to get the maximum performance of each CPU to check and enable Intel Turbo Boost Max Technology 3.0 (ITMT). Signed-off-by:

[PATCH v5 8/9] acpi: bus: Set _OSC for diverse core support

2016-10-01 Thread Srinivas Pandruvada
Set the OSC_SB_CPC_DIVERSE_HIGH_SUPPORT (bit 12) to enable diverse core support. This is required to inform BIOS the support of Intel Turbo Boost Max Technology 3.0 feature. Signed-off-by: Srinivas Pandruvada --- drivers/acpi/bus.c | 3 +++

[PATCH v5 6/9] x86/sched: Add SD_ASYM_PACKING flags to x86 ITMT CPU

2016-10-01 Thread Srinivas Pandruvada
From: Tim Chen Some Intel cores in a package can be boosted to a higher turbo frequency with ITMT 3.0 technology. The scheduler can use the asymmetric packing feature to move tasks to the more capable cores. If ITMT is enabled, add SD_ASYM_PACKING flag to the thread

[PATCH v2 1/6] pwm: print error messages with pr_err() instead of pr_debug()

2016-10-01 Thread Bhuvanchandra DV
From: Lothar Wassmann Make the messages that are printed in case of fatal errors actually visible to the user without having to recompile the driver with debugging enabled. Signed-off-by: Lothar Waßmann Signed-off-by: Bhuvanchandra DV

Re: [PATCH 5/6] ARM: davinci: enable the LCDC DRM driver in defconfig

2016-10-01 Thread Sekhar Nori
On Thursday 29 September 2016 10:01 PM, Bartosz Golaszewski wrote: > With the device tree changes for tilcdc in place, we can now enable > the driver by default in the davinci_all defconfig file. > > Signed-off-by: Bartosz Golaszewski Applied to v4.10/defconfig branch

[PATCH 1/2] mm: memcontrol: use special workqueue for creating per-memcg caches

2016-10-01 Thread Vladimir Davydov
Creating a lot of cgroups at the same time might stall all worker threads with kmem cache creation works, because kmem cache creation is done with the slab_mutex held. To prevent that from happening, let's use a special workqueue for kmem cache creation with max in-flight work items equal to 1.

Re: [PATCH v4 0/2] Avoid selftests on some Asus models

2016-10-01 Thread Marcos Paulo de Souza
ping? On Sun, Sep 25, 2016 at 10:25:42AM -0300, Marcos Paulo de Souza wrote: > Hi guys, > > this is my forth iteration in this patch. I hope now this address all problems > and, at least, most Asus models affect by this problem. > > All models affected by this problem: > A455LD > K401LB >

Re: [PATCH] iio: Declare event_attrs field of iio_info structure as const

2016-10-01 Thread Bhumika Goyal
On Sat, Oct 1, 2016 at 4:39 PM, Jonathan Cameron wrote: > On 01/10/16 10:57, Bhumika Goyal wrote: >> The event_attrs field of iio_info structure is only initialized once >> whenever an object of iio_info is created. After that this field >> is never modified again anywhere in

[PATCH 1/2] tpm: define a generic open() method for ascii & bios measurements

2016-10-01 Thread Jarkko Sakkinen
From: Nayna Jain open() method for event log ascii and binary bios measurements file operations are very similar. This patch refactors the code into a single open() call by passing seq_operations as i_node->private data. Suggested-by: Jason Gunthorpe

[PATCH 2/2] tpm: replace dynamically allocated bios_dir with a static array

2016-10-01 Thread Jarkko Sakkinen
This commit is based on a commit by Nayna Jain. Replaced dynamically allocated bios_dir with a static array as the size is always constant. Suggested-by: Jason Gunthorpe Signed-off-by: Nayna Jain Signed-off-by: Jarkko Sakkinen

Re: [PATCH] iio: Declare event_attrs field of iio_info structure as const

2016-10-01 Thread Jonathan Cameron
On 01/10/16 10:57, Bhumika Goyal wrote: > The event_attrs field of iio_info structure is only initialized once > whenever an object of iio_info is created. After that this field > is never modified again anywhere in the kernel. So, declare event_attrs > field of iio_info as a const struct

[PATCH 0/2] Clean up handling of event log files

2016-10-01 Thread Jarkko Sakkinen
Meld a common function for opening measurements files and keep the dentries in a static array. Jarkko Sakkinen (1): tpm: replace dynamically allocated bios_dir with a static array Nayna Jain (1): tpm: define a generic open() method for ascii & bios measurements drivers/char/tpm/tpm-chip.c

Re: [PATCHv4 00/57] perf c2c: Add new tool to analyze cacheline contention on NUMA systems

2016-10-01 Thread Joe Mario
On 09/29/2016 05:19 AM, Peter Zijlstra wrote: What I want is a tool that maps memop events (any PEBS memops) back to a 'type::member' form and sorts on that. That doesn't rely on the PEBS 'Data Linear Address' field, as that is useless for dynamically allocated bits. Instead it would use the

[PATCH] tools lib traceevent: Fix kbuffer_read_at_offset()

2016-10-01 Thread Namhyung Kim
When it's called with an offset less than or equal to the first event, it'll return a garbage value since the data is not initialized. Cc: Steven Rostedt Signed-off-by: Namhyung Kim --- tools/lib/traceevent/kbuffer-parse.c | 1 + 1 file changed, 1

[PATCH v5 0/9] Support Intel® Turbo Boost Max Technology 3.0

2016-10-01 Thread Srinivas Pandruvada
v5: - Simplify intel_pstate for enabling ITMT feature - Put x86_sched_itmt_flags related functions under proper CONFIG_SCHED_MC/SMT flags - Comment to note that rebuild_sched_domain is not needed after updating CPU priorities. - Define sysctl_sched_itmt_enabled to 0 when ITMT is not used in

[PATCH v5 2/9] x86/topology: Provide topology_num_packages()

2016-10-01 Thread Srinivas Pandruvada
From: Tim Chen Returns number of cpu packages discovered. This information is needed to determine the size of the platform and decide if the Intel Turbo Boost Max Technology 3.0 (ITMT) feature should be turned on by default. The ITMT feature is more effective on

Re: [PATCH 0/2] Clean up handling of event log files

2016-10-01 Thread Jarkko Sakkinen
Please ignore this version. I was going to do a '--dry-run'. Sorry :( Doing resend later on once I've tested the changes. /Jarkko On Sat, Oct 01, 2016 at 03:41:15PM +0300, Jarkko Sakkinen wrote: > Meld a common function for opening measurements files and keep the > dentries in a static array. >

[PATCH 2/2] slub: move synchronize_sched out of slab_mutex on shrink

2016-10-01 Thread Vladimir Davydov
synchronize_sched() is a heavy operation and calling it per each cache owned by a memory cgroup being destroyed may take quite some time. What is worse, it's currently called under the slab_mutex, stalling all works doing cache creation/destruction. Actually, there isn't much point in calling

Re: [PATCH RFC 2/5] x86,fpu: delay FPU register loading until switch to userspace

2016-10-01 Thread Rik van Riel
On Sat, 2016-10-01 at 16:44 -0700, Andy Lutomirski wrote: > On Sat, Oct 1, 2016 at 1:31 PM,   wrote: > >  > > > > +static inline void switch_fpu_finish(void) > >  { > > +   set_thread_flag(TIF_LOAD_FPU); > >  } > > I can imagine this causing problems with kernel code that

vgacon.c:undefined reference to `screen_info'

2016-10-01 Thread kbuild test robot
Hi Chen, It's probably a bug fix that unveils the link errors. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f51fdffad5b7709d0ade40736b58a2da2707fa15 commit: f69405ce6c0fc9f4a039011007371b31f80b470d openrisc: include: asm: Kbuild: add default "vga.h"

[PATCH perf/core] perf script: fix a use after free crash.

2016-10-01 Thread Krister Johansen
If dso__load_kcore frees all of the existing maps, but one has already been attached to a callchain cursor node, then we can get a SIGSEGV in any function that happens to try to use this cursor with the invalid map. Use the existing map refcount mechanism to forestall cleanup of a map until the

[PATCH 00/15] md-cluster: Fine-tuning for ten function implementations

2016-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 1 Oct 2016 16:38:17 +0200 Several update suggestions were taken into account from static source code analysis. Markus Elfring (15): Use kcalloc() in lock_all_bitmaps() Improve another size determination in resync_info_update()

[PATCH 02/15] md-cluster: Improve another size determination in resync_info_update()

2016-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 1 Oct 2016 11:37:24 +0200 Replace the specification of a data structure by a variable name as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer. Signed-off-by: Markus Elfring

[PATCH 03/15] md-cluster: Improve another size determination in join()

2016-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 1 Oct 2016 11:42:47 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style

[PATCH 10/15] md-cluster: Delete an unnecessary variable initialisation in lockres_init()

2016-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 1 Oct 2016 13:07:52 +0200 The local variable "res" will be set to an appropriate pointer a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring ---

[PATCH 08/15] md-cluster: Improve determination of sizes in read_resync_info()

2016-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 1 Oct 2016 12:52:58 +0200 Replace the specification of data structures by either a pointer dereference or a variable name as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according

[PATCH 09/15] md-cluster: Improve another size determination in lockres_init()

2016-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 1 Oct 2016 13:02:18 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style

[PATCH 11/15] md-cluster: Delete four error messages for a failed memory allocation

2016-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 1 Oct 2016 13:46:20 +0200 Omit extra messages for a memory allocation failure in three functions. Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf Signed-off-by: Markus Elfring

Re: [PATCH 1/2] net/mlx5e: shut up maybe-uninitialized warning

2016-10-01 Thread Or Gerlitz
On Fri, Sep 30, 2016 at 7:17 PM, Arnd Bergmann wrote: > Build-testing this driver with -Wmaybe-uninitialized gives a new > false-positive > warning that I can't really explain: > > drivers/net/ethernet/mellanox/mlx5/core/en_tc.c: In function > 'mlx5e_configure_flower': >

Re: [PATCH V4 04/10] dmaengine: qcom_hidma: configure DMA and MSI for OF

2016-10-01 Thread Sinan Kaya
On 10/1/2016 2:17 AM, Vinod Koul wrote: > On Wed, Sep 28, 2016 at 10:12:41PM -0400, Sinan Kaya wrote: >> Configure the DMA bindings for the device tree based firmware. >> >> Signed-off-by: Sinan Kaya >> --- >> drivers/dma/qcom/hidma_mgmt.c | 5 - >> 1 file changed, 4

Re: [PATCH v5 1/9] sched: Extend scheduler's asym packing

2016-10-01 Thread Nilay Vaish
On 1 October 2016 at 06:45, Srinivas Pandruvada wrote: > diff --git a/kernel/sched/core.c b/kernel/sched/core.c > index e86c4a5..08135ca 100644 > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -6237,7 +6237,25 @@ static void

[PATCH 05/15] md-cluster: Improve another size determination in recv_daemon()

2016-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 1 Oct 2016 12:28:19 +0200 Replace the specification of a data structure by a variable name as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer. Signed-off-by: Markus Elfring

[PATCH 13/15] md-cluster: Less function calls in join() after error detection

2016-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 1 Oct 2016 15:40:32 +0200 A few resource release functions were called in some cases by the join() function during error handling even if the passed data structure member contained a null pointer. * Adjust jump targets according to

[PATCH 14/15] md-cluster: Less function calls in lockres_init() after error detection

2016-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 1 Oct 2016 16:01:05 +0200 The kfree() function was called in up to three cases by the lockres_init() function during error handling even if the passed data structure member (or variable) contained a null pointer. Adjust jump targets

[PATCH 15/15] md-cluster: Delete unnecessary braces in unlock_all_bitmaps()

2016-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 1 Oct 2016 16:15:55 +0200 Do not use curly brackets at one source code place where a single statement should be sufficient. Signed-off-by: Markus Elfring --- drivers/md/md-cluster.c | 7 +++ 1

Re: [RFC] arm64: Enforce observed order for spinlock and data

2016-10-01 Thread bdegraaf
On 2016-09-30 15:05, Peter Zijlstra wrote: On Fri, Sep 30, 2016 at 01:40:57PM -0400, Brent DeGraaf wrote: Prior spinlock code solely used load-acquire and store-release semantics to ensure ordering of the spinlock lock and the area it protects. However, store-release semantics and ordinary

Re: [RFC] arm64: Enforce observed order for spinlock and data

2016-10-01 Thread bdegraaf
On 2016-09-30 15:32, Mark Rutland wrote: On Fri, Sep 30, 2016 at 01:40:57PM -0400, Brent DeGraaf wrote: Prior spinlock code solely used load-acquire and store-release semantics to ensure ordering of the spinlock lock and the area it protects. However, store-release semantics and ordinary stores

Re: [RFC PATCH v3 2/2] usb: typec: Type-C Port Controller Interface driver (tcpci)

2016-10-01 Thread Guenter Roeck
On Fri, Sep 30, 2016 at 5:12 PM, Jun Li wrote: [ ... ] >> >> >> + err = devm_request_threaded_irq(tcpci->dev, client->irq, NULL, >> >> + tcpci_irq, >> >> + IRQF_TRIGGER_FALLING, >> > >> > IRQF_ONESHOT is required, and do we need the irq

RTC batt_status always okay

2016-10-01 Thread Peter Miller
Hi everybody, can anyone tell me why the batt_status in /proc/drivers/rtc always returns okay? I measured the RTC battery voltage and it is beyond dead (0.0004V). I tested it on an IBM R51 and Lenovo R61 laptop. It even returns okay, when I boot without RTC battery at all. Thanks in advance

[PATCH 01/15] md-cluster: Use kcalloc() in lock_all_bitmaps()

2016-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 1 Oct 2016 11:18:40 +0200 * A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus reuse the corresponding function "kcalloc". This issue was

[PATCH 04/15] md-cluster: Improve another size determination in __sendmsg()

2016-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 1 Oct 2016 12:21:48 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style

[PATCH 06/15] md-cluster: Rename a jump label in recv_daemon()

2016-10-01 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 1 Oct 2016 12:36:30 +0200 Adjust a jump label according to the Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/md/md-cluster.c | 4 ++-- 1 file changed, 2 insertions(+), 2

  1   2   3   4   >