Re: [UPDATED PATCH 01/10] x86: Add topology_max_smt_threads()

2016-05-07 Thread Thomas Gleixner
On Fri, 6 May 2016, Andi Kleen wrote: > For SMT specific workarounds it is useful to know if SMT is active > on any online CPU in the system. This currently requires a loop > over all online CPUs. > > Add a global variable that is updated with the maximum number > of smt threads on any CPU on

[tip:x86/urgent] x86/topology: Handle CPUID bogosity gracefully

2016-05-07 Thread tip-bot for Thomas Gleixner
Commit-ID: 56402d63eefe22179f7311a51ff2094731420406 Gitweb: http://git.kernel.org/tip/56402d63eefe22179f7311a51ff2094731420406 Author: Thomas Gleixner AuthorDate: Fri, 6 May 2016 20:48:16 +0200 Committer: Thomas Gleixner CommitDate: Sat, 7 May 2016 10:06:55 +0200 x86/topology: Handle C

Re: [PATCH RFC 1/5] net: phy: sun8i-h3-ephy: Add bindings for Allwinner H3 Ethernet PHY

2016-05-07 Thread Hans de Goede
Hi, On 07-05-16 07:30, Chen-Yu Tsai wrote: Hi, On Tue, Apr 12, 2016 at 9:38 AM, Chen-Yu Tsai wrote: On Tue, Apr 12, 2016 at 3:23 AM, Florian Fainelli wrote: On 04/04/16 09:22, Chen-Yu Tsai wrote: The Allwinner H3 SoC incorporates an Ethernet PHY. This is enabled and configured through a me

[PATCH v2] f2fs: fix inode cache leak

2016-05-07 Thread Chao Yu
When testing f2fs with inline_dentry option, generic/342 reports: VFS: Busy inodes after unmount of dm-0. Self-destruct in 5 seconds. Have a nice day... After rmmod f2fs module, kenrel shows following dmesg: = BUG f2fs

[PATCH] f2fs: introduce f2fs_reserve_blocks to speedup fallocate

2016-05-07 Thread Chao Yu
Preallocation operation in ->fallocate seems quite slow, since for all new preallocated blocks, f2fs will update them one by one in direct nodes, This patch introduces f2fs_reserve_blocks to make all preallocated blocks belongs to one direct node updating in batch, so it can save a lot of cpu cycl

[PATCH 1/1] xen/gntdev: kmalloc structure gntdev_copy_batch

2016-05-07 Thread Heinrich Schuchardt
Commit a4cdb556cae0 ("xen/gntdev: add ioctl for grant copy") leads to a warning xen/gntdev.c: In function ‘gntdev_ioctl_grant_copy’: xen/gntdev.c:949:1: warning: the frame size of 1248 bytes is larger than 1024 bytes [-Wframe-larger-than=] This can be avoided by using kmalloc instead of the stack.

Re: [PATCH] debugobjects: insulate non-fixup logic related to static obj from fixup callbacks

2016-05-07 Thread Thomas Gleixner
On Sat, 7 May 2016, changbin...@intel.com wrote: Can you please fix your mail client. Every mail you send has: Cc: . "Du, Changbin" , Du And that stray 'Du' is just broken. > At last, I have a concern about the fixups that can it change the > object which is in incorrect state on fi

Re: [patch V4] lib: GCD: Use binary GCD algorithm instead of Euclidean

2016-05-07 Thread George Spelvin
Nothing critical, but a bit of kibitzing. (That is slang in the Yiddish language for a person who offers annoying and unwanted advice.) > The binary GCD algorithm is based on the following facts: > 1. If a and b are all evens, then gcd(a,b) = 2 * gcd(a/2, b/2) > 2. If a is even and b i

Re: [patch V2 2/7] futex: Hash private futexes per process

2016-05-07 Thread Thomas Gleixner
On Fri, 6 May 2016, Darren Hart wrote: > On Thu, May 05, 2016 at 08:44:04PM -, Thomas Gleixner wrote: > > --- /dev/null > > +++ b/include/linux/futex_types.h > > @@ -0,0 +1,12 @@ > > +#ifndef _LINUX_FUTEX_TYPES_H > > +#define _LINUX_FUTEX_TYPES_H > > + > > +struct futex_hash_bucket; > > + > > +

Re: [patch V2 2/7] futex: Hash private futexes per process

2016-05-07 Thread Thomas Gleixner
On Fri, 6 May 2016, Darren Hart wrote: > It would be good to have a way to detect that the process private hash table > was > > successfully created. Perhaps a /proc/pid/ feature? This would allow us to > > write > > a functional futex test for tools/testing/selftests/futex > > I suppose we co

Re: [patch V2 3/7] futex: Add op for hash preallocation

2016-05-07 Thread Thomas Gleixner
On Fri, 6 May 2016, Darren Hart wrote: > On Thu, May 05, 2016 at 08:44:05PM -, Thomas Gleixner wrote: > > From: Sebastian Siewior > > > > The per process hash is allocated on the fly at the first futex operation > > of a > > process. The size of the hash is determined by a system wide defaul

RE: [PATCH] kasan: improve double-free detection

2016-05-07 Thread Luruo, Kuthonuzo
> >> >> >> I missed that Alexander already landed patches that reduce header > >> >> >> size > >> >> >> to 16 bytes. > >> >> >> It is not OK to increase them again. Please leave state as bitfield > >> >> >> and update it with CAS (if we introduce helper functions for state > >> >> >> manipulation,

Re: sched: tweak select_idle_sibling to look for idle threads

2016-05-07 Thread Yuyang Du
On Sun, May 01, 2016 at 11:20:25AM +0200, Mike Galbraith wrote: > On Sun, 2016-05-01 at 10:53 +0200, Peter Zijlstra wrote: > > On Sun, May 01, 2016 at 09:12:33AM +0200, Mike Galbraith wrote: > > > On Sat, 2016-04-30 at 14:47 +0200, Peter Zijlstra wrote: > > > > > > Can you guys have a play with th

[PATCH 2/2] perf script: fix incorrect python db-export error message

2016-05-07 Thread Chris Phlipot
fix the error message printed when attempting and failing to create the call path root incorrectly references the call return process. this change fixes the message to properly reference the failure to create the call path root. Signed-off-by: Chris Phlipot --- tools/perf/util/scripting-engines

[PATCH 1/2] perf tools: fix handling of zero-length symbols.

2016-05-07 Thread Chris Phlipot
This change introduces a fix to symbols__find, so that it is able to find symbols of length zero (where start==end) The current code has the following problem: -The current implementation of symbols__find is unable to find any symbols of length zero. -The db-export framework explicitly creates ze

Re: [RFC PATCH 05/12] ARM: dts: exynos: Configure Exynos5410 pinctrl for eMMC and SD card

2016-05-07 Thread Krzysztof Kozlowski
On Sat, May 07, 2016 at 10:23:52AM +0530, Alim Akhtar wrote: > Hi Krzysztof, > > On Tue, May 3, 2016 at 11:22 PM, Krzysztof Kozlowski wrote: > > Configure the pinctrl for MMC0 (eMMC) and MMC2 (microSD card). > > > > Signed-off-by: Krzysztof Kozlowski > > > > --- > > > > I am not sure about sd0_r

Re: [PATCH 4/4] drm/panel: Add helper for simple panel connector

2016-05-07 Thread Daniel Vetter
On Fri, May 6, 2016 at 9:45 PM, Noralf Trønnes wrote: > In the discussion following the "no more fbdev drivers" call, someone > pointed me to drm_panel. It had function hooks that I needed, so I built > tinydrm around it. If this is misusing drm_panel, it shouldn't be too > difficult to drop it. >

Re: [tip:x86/boot] x86/KASLR: Build identity mappings on demand

2016-05-07 Thread Borislav Petkov
On Fri, May 06, 2016 at 11:37:22PM -0700, tip-bot for Kees Cook wrote: > Commit-ID: 3a94707d7a7bb1eb82acae5fbc035247dd1ba8a5 > Gitweb: http://git.kernel.org/tip/3a94707d7a7bb1eb82acae5fbc035247dd1ba8a5 > Author: Kees Cook > AuthorDate: Fri, 6 May 2016 15:01:35 -0700 > Committer: Ingo Mol

RE: [PATCH] kasan: improve double-free detection

2016-05-07 Thread Luruo, Kuthonuzo
> >> We can use per-header lock by setting status to KASAN_STATE_LOCKED. A > >> thread can CAS any status to KASAN_STATE_LOCKED which means that it > >> locked the header. If any thread tried to modify/read the status and > >> the status is KASAN_STATE_LOCKED, then the thread waits. > > > > Thanks

Re: [PATCH v2 1/2] mm, kasan: improve double-free detection

2016-05-07 Thread Yury Norov
On Fri, May 06, 2016 at 05:17:27PM +0530, Kuthonuzo Luruo wrote: > Currently, KASAN may fail to detect concurrent deallocations of the same > object due to a race in kasan_slab_free(). This patch makes double-free > detection more reliable by serializing access to KASAN object metadata. > New funct

Re: [patch V4] lib: GCD: Use binary GCD algorithm instead of Euclidean

2016-05-07 Thread Andreas Schwab
"George Spelvin" writes: > Your benchmark code doesn't have to have a separate code path if > __x86_64__; rdtsc works on 32-bit code just as well. Take a look at the CC: list. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276

RE: [PATCH v9 net-next 1/2] hv_sock: introduce Hyper-V Sockets

2016-05-07 Thread Dexuan Cui
> From: David Miller [mailto:da...@davemloft.net] > Sent: Saturday, May 7, 2016 1:04 > To: Dexuan Cui > Cc: gre...@linuxfoundation.org; net...@vger.kernel.org; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; > a...@canonical.com; jasow...@redhat.com; cav...@redhat.co

[GIT PULL] ARM: dts: exynos: Non-critical fixes for v4.7

2016-05-07 Thread Krzysztof Kozlowski
Hi, A bunch of fixes for things probably broken for long time (MFC, regulator debugfs) or for stuff which will be broken in next releases (conversion of max8997 to regmap). Best regards, Krzysztof The following changes since commit a0a966b83873f33778710a4fc59240244b0734a5: ARM: EXYNOS: Prop

Re: perf tools: add support for generating bpf prologue on powerpc

2016-05-07 Thread Naveen N. Rao
On 2016/05/07 02:15PM, Michael Ellerman wrote: > On Thu, 2016-05-05 at 15:23:19 UTC, "Naveen N. Rao" wrote: > > Generalize existing macros to serve the purpose. > > > > Cc: Wang Nan > > Cc: Arnaldo Carvalho de Melo > > Cc: Masami Hiramatsu > > Cc: Ian Munsie > > Cc: Michael Ellerman > > Signe

Re: [patch V4] lib: GCD: Use binary GCD algorithm instead of Euclidean

2016-05-07 Thread Sam Ravnborg
> diff --git a/arch/sparc/Kconfig b/arch/sparc/Kconfig > index 57ffaf2..ca675ed 100644 > --- a/arch/sparc/Kconfig > +++ b/arch/sparc/Kconfig > @@ -42,6 +42,7 @@ config SPARC > select ODD_RT_SIGACTION > select OLD_SIGSUSPEND > select ARCH_HAS_SG_CHAIN > + select CPU_NO_EFFICIEN

Re: [patch V2 3/7] futex: Add op for hash preallocation

2016-05-07 Thread Thomas Gleixner
On Sat, 7 May 2016, Thomas Gleixner wrote: > On Fri, 6 May 2016, Darren Hart wrote: > > > Note, that this call must be issued before the first futex operation in > > > the > > > process because that would automatically allocate the default sized hash. > > > > So this seems like it could be tricky

Re: [PATCH 1/2] dt-bindings: pci: add DT binding for Axis ARTPEC-6 PCIe controller

2016-05-07 Thread Jesper Nilsson
On Thu, May 05, 2016 at 05:03:31PM -0500, Rob Herring wrote: > On Wed, May 04, 2016 at 01:54:17PM +0200, Niklas Cassel wrote: > > From: Niklas Cassel > > > > This commit adds the Device Tree binding documentation that allows to > > describe the PCIe controller found in the Axis ARTPEC-6 SoC. > >

Re: [PATCH 1/2] net: phy: add ethtool_phy_{get|set}_link_ksettings

2016-05-07 Thread Ben Hutchings
On Sat, 2016-05-07 at 01:18 +0200, Philippe Reynes wrote: > The callback {get|set}_link_ksettings are often defined > in a very close way. There are mainly two differences in > those callback: > - the name of the netdev private structure > - the name of the struct phydev in the private structure >

Re: [PATCH net-next 5/7] Driver: Vmxnet3: Add support for get_coalesce, set_coalesce ethtool operations

2016-05-07 Thread Ben Hutchings
On Fri, 2016-05-06 at 16:12 -0700, Shrikrishna Khare wrote: [...] > +static int > +vmxnet3_set_coalesce(struct net_device *netdev, struct ethtool_coalesce *ec) > +{ [...] > + switch (ec->rx_coalesce_usecs) { > + case VMXNET3_COALESCE_DEFAULT: > + case VMXNET3_COALESCE_DISABLED: > +

[GIT PULL for v4.6] media fixes

2016-05-07 Thread Mauro Carvalho Chehab
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media tags/media/v4.6-5 For: - deadlock fixes on driver probe at exynos4-is and s43-camif drivers; - a build breakage if media controller is enabled and USB or PCI is built as module. Thanks! Mauro

Re: [PATCH 4/4] drm/panel: Add helper for simple panel connector

2016-05-07 Thread Noralf Trønnes
Den 07.05.2016 11:59, skrev Daniel Vetter: On Fri, May 6, 2016 at 9:45 PM, Noralf Trønnes wrote: In the discussion following the "no more fbdev drivers" call, someone pointed me to drm_panel. It had function hooks that I needed, so I built tinydrm around it. If this is misusing drm_panel, it s

Re: [PATCH] debugobjects: insulate non-fixup logic related to static obj from fixup callbacks

2016-05-07 Thread Paul E. McKenney
On Sat, May 07, 2016 at 10:26:28AM +0200, Thomas Gleixner wrote: > On Sat, 7 May 2016, changbin...@intel.com wrote: > > Can you please fix your mail client. Every mail you send has: > > Cc: . > "Du, Changbin" , > Du > > And that stray 'Du' is just broken. > > > At last, I have a con

Re: [PATCH v2 2/4] media: v4l2-mc add v4l_change_media_source() to invoke change_source

2016-05-07 Thread Mauro Carvalho Chehab
Em Thu, 10 Mar 2016 11:17:48 -0700 Shuah Khan escreveu: > Add a common routine to invoke media device change_source handler. > > Signed-off-by: Shuah Khan Shuah, I'm marking this series of patches as superseded at patchwork, as I intend that you'll be submitting it somewhere in the future, to

Re: [patch] [media] em28xx-i2c: rt_mutex_trylock() returns zero on failure

2016-05-07 Thread Mauro Carvalho Chehab
Em Fri, 11 Mar 2016 11:13:01 +0300 Dan Carpenter escreveu: > The code is checking for negative returns but it should be checking for > zero. > > Fixes: aab3125c43d8 ('[media] em28xx: add support for registering multiple > i2c buses') > Signed-off-by: Dan Carpenter > --- > Is -EBUSY correct? -

Re: [PATCH] media: dvb_ringbuffer: Add memory barriers

2016-05-07 Thread Mauro Carvalho Chehab
Hi Soeren, Em Sun, 7 Feb 2016 20:22:36 +0100 Soeren Moch escreveu: > On 27.12.2015 21:41, Soeren Moch wrote: > > Implement memory barriers according to Documentation/circular-buffers.txt: > > - use smp_store_release() to update ringbuffer read/write pointers > > - use smp_load_acquire() to load

Re: [PATCH] media: dvb_ringbuffer: Add memory barriers

2016-05-07 Thread Mauro Carvalho Chehab
Em Sat, 7 May 2016 10:22:35 -0300 Mauro Carvalho Chehab escreveu: > Hi Soeren, > > Em Sun, 7 Feb 2016 20:22:36 +0100 > Soeren Moch escreveu: > > > On 27.12.2015 21:41, Soeren Moch wrote: > > > Implement memory barriers according to Documentation/circular-buffers.txt: > > > - use smp_store_rele

Re: [PATCH V2 13/14] dt-bindings: arm-gic: Add documentation for Tegra210 AGIC

2016-05-07 Thread Geert Uytterhoeven
Hi Jon, On Fri, May 6, 2016 at 10:32 AM, Jon Hunter wrote: >> The "nvidia,tegra210-agic" string can be taken as describing any >> Tegra-210 specific integration quirks, though I agree that's also not >> fantastic for extending PM support beyond Tegra 210 and variants >> thereof. >> >> So maybe th

[PATCH v5] mm: Add memory allocation watchdog kernel thread.

2016-05-07 Thread Tetsuo Handa
This patch adds a watchdog which periodically reports number of memory allocating tasks, dying tasks and OOM victim tasks when some task is spending too long time inside __alloc_pages_slowpath(). I worked for three years at support center for troubleshooting RHEL systems. I mainly had charge of tr

Re: [PATCH 1/4] signals/sigaltstack: If SS_AUTODISARM, bypass on_sig_stack

2016-05-07 Thread Stas Sergeev
03.05.2016 20:31, Andy Lutomirski пишет: If a signal stack is set up with SS_AUTODISARM, then the kernel inherently avoids incorrectly resetting the signal stack if signals recurse: the signal stack will be reset on the first signal delivery. This means that we don't need check the stack pointer

Re: [PATCH 2/4] selftests/sigaltstack: Fix the sas test on old kernels

2016-05-07 Thread Stas Sergeev
03.05.2016 20:31, Andy Lutomirski пишет: The handling for old kernels was wrong. Fix it. Reported-by: Ingo Molnar Cc: Stas Sergeev Cc: Al Viro Cc: Andrew Morton Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Brian Gerst Cc: Denys Vlasenko Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Oleg Ne

Re: [PATCH 4/4] signals/sigaltstack: Change SS_AUTODISARM to (1U << 31)

2016-05-07 Thread Stas Sergeev
03.05.2016 20:31, Andy Lutomirski пишет: Using bit 4 divides the space of available bits strangely. Use bit 31 instead so that we have a better chance of keeping flag and mode bits separate in the long run. Cc: Stas Sergeev Cc: Al Viro Cc: Aleksa Sarai Cc: Amanieu d'Antras Cc: Andrea Arcang

RE: [PATCH v2 1/2] mm, kasan: improve double-free detection

2016-05-07 Thread Luruo, Kuthonuzo
Thank you for the review! > > + > > +/* acquire per-object lock for access to KASAN metadata. */ > > I believe there's strong reason not to use standard spin_lock() or > similar. I think it's proper place to explain it. > will do. > > +void kasan_meta_lock(struct kasan_alloc_meta *alloc_info)

[PATCH 3/7] [media] ir-rx51: use PWM framework instead of OMAP dmtimer

2016-05-07 Thread Ivaylo Dimitrov
Convert driver to use PWM framework instead of calling dmtimer functions directly for PWM timer. Remove paragraph about writing to the Free Software Foundation's mailing address while at it. Signed-off-by: Ivaylo Dimitrov --- arch/arm/mach-omap2/board-rx51-peripherals.c | 1 - arch/arm/mach-oma

[PATCH 0/7] ir-rx51 driver fixes

2016-05-07 Thread Ivaylo Dimitrov
ir-rx51 is a driver for Nokia N900 IR transmitter. The current series fixes the remaining problems in the driver: - replace GP timer 9 with PWM framework usage - replace pulse width timer dmtimer usage with hrtimer - add DT support to the driver - add driver to the board DTS Pathes 2 and 5 ar

[PATCH 4/7] [media] ir-rx51: add DT support to driver

2016-05-07 Thread Ivaylo Dimitrov
With the upcoming removal of legacy boot, lets add support to one of the last N900 drivers remaining without it. As the driver still uses omap dmtimer, add auxdata as well. Signed-off-by: Ivaylo Dimitrov --- .../devicetree/bindings/media/nokia,lirc-rx51 | 19 +++ arch/arm

[PATCH 7/7] ARM: dts: n900: enable lirc-rx51 driver

2016-05-07 Thread Ivaylo Dimitrov
Add the needed DT data to enable IR TX driver Signed-off-by: Ivaylo Dimitrov --- arch/arm/boot/dts/omap3-n900.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index b3c26a9..3d1e23e 100644 --- a/arch/arm/boo

[PATCH 2/7] pwm: omap-dmtimer: Allow for setting dmtimer clock source

2016-05-07 Thread Ivaylo Dimitrov
OMAP GP timers can have different input clocks that allow different PWM frequencies. However, there is no other way of setting the clock source but through clocks or clock-names properties of the timer itself. This limits PWM functionality to only the frequencies allowed by the particular clock sou

[PATCH 6/7] [media] ir-rx51: use hrtimer instead of dmtimer

2016-05-07 Thread Ivaylo Dimitrov
Drop dmtimer usage for pulse timer in favor of hrtimer. That allows removing PWM dmitimer platform data usage. Signed-off-by: Ivaylo Dimitrov --- arch/arm/mach-omap2/board-rx51-peripherals.c | 4 - arch/arm/mach-omap2/pdata-quirks.c | 3 - drivers/media/rc/ir-rx51.c

[PATCH 1/7] ir-rx51: Fix build after multiarch changes broke it

2016-05-07 Thread Ivaylo Dimitrov
From: Tony Lindgren The ir-rx51 driver for n900 has been disabled since the multiarch changes as plat include directory no longer is SoC specific. Let's fix it with minimal changes to pass the dmtimer calls in pdata. Then the following changes can be done while things can be tested to be working

[PATCH 5/7] ARM: OMAP: dmtimer: Do not call PM runtime functions when not needed.

2016-05-07 Thread Ivaylo Dimitrov
once omap_dm_timer_start() is called, which calls omap_dm_timer_enable() and thus pm_runtime_get_sync(), it doesn't make sense to call PM runtime functions again before omap_dm_timer_stop is called(). Otherwise PM runtime functions called in omap_dm_timer_enable/disable lead to long and unneeded de

Re: rcu_preempt self-detected stall on CPU from 4.5-rc3, since 3.17

2016-05-07 Thread Paul E. McKenney
On Fri, May 06, 2016 at 04:25:16PM +1000, Ross Green wrote: > On Sun, Apr 3, 2016 at 6:18 PM, Paul E. McKenney > wrote: > > On Thu, Mar 31, 2016 at 08:42:55AM -0700, Paul E. McKenney wrote: > >> On Wed, Mar 30, 2016 at 07:55:47AM -0700, Paul E. McKenney wrote: > >> > On Tue, Mar 29, 2016 at 06:49:

Fwd: VFIO MSIX Query

2016-05-07 Thread Nitin Saxena
Hi, I have specific questions related to the problem I am facing in using VFIO for MSIX interrupt. My userspace program running on x86 talks to NIC connected via PCIe interface. Current program works fine in poll mode with no VF and SRIOV requirement. I am changing my app from poll mode to interr

[PATCH v2 1/2] dell-smbios: Add a helper function for complex SMI requests

2016-05-07 Thread Mario Limonciello
More complex SMI requests can return data that exceeds the 4 32 byte arguments that are traditionally part of a request. To support more complex requests, the first input argument can be a 32 bit physical address with a buffer properly built in advance. This helper function prepares the buffer as

[PATCH v2 2/2] dell-laptop: Expose auxiliary MAC address if available

2016-05-07 Thread Mario Limonciello
System with Type-C ports have a feature to expose an auxiliary persistent MAC address. This address is burned in at the factory. The intention of this address is to update the MAC address on Type-C docks containing an ethernet adapter to match the auxiliary address of the system connected to them

[PATCH] Staging: android: gio: fixes a variable type issue and tabbing issues

2016-05-07 Thread Thimo Braker
Fixes issues with the coding style checks. Signed-off-by: Thimo Braker --- drivers/staging/android/timed_gpio.c | 36 +- drivers/staging/android/timed_gpio.h | 8 drivers/staging/android/timed_output.c | 16 +++ 3 files changed, 30 insert

[PATCH] ubi: Don't read back all data in ubi_eba_copy_leb()

2016-05-07 Thread Richard Weinberger
Drop this paranoia check from the old days. If our MTD driver or the flash is so bad that we even cannot trust it to write data we have bigger problems. If one really does not trust the flash and wants write-verify she can enable UBI io checks using debugfs. Signed-off-by: Richard Weinberger ---

Re: [PATCH] Staging: android: gio: fixes a variable type issue and tabbing issues

2016-05-07 Thread Greg KH
On Sat, May 07, 2016 at 10:56:37AM -0500, Thimo Braker wrote: > Fixes issues with the coding style checks. What issues? Always be specific, and describe what you are doing. Also don't put more than one "thing" in a single patch (hint, "coding style cleanups" are not one thing.) > > Signed-off-

Re: [PATCH v9 net-next 1/2] hv_sock: introduce Hyper-V Sockets

2016-05-07 Thread David Miller
From: Dexuan Cui Date: Sat, 7 May 2016 10:49:25 + > I should be able to make 'send', 'recv' here to pointers and use vmalloc() > to allocate the memory for them. I will do this. That's still unswappable kernel memory. People can open N sockets, where N is something on the order of the FD l

Re: [PATCH net-next 5/7] Driver: Vmxnet3: Add support for get_coalesce, set_coalesce ethtool operations

2016-05-07 Thread David Miller
From: Ben Hutchings Date: Sat, 07 May 2016 13:04:46 +0100 > On Fri, 2016-05-06 at 16:12 -0700, Shrikrishna Khare wrote: > [...] >> +static int >> +vmxnet3_set_coalesce(struct net_device *netdev, struct ethtool_coalesce *ec) >> +{ > [...] >> +switch (ec->rx_coalesce_usecs) { >> +case VMXNE

Re: [PATCH] f2fs: introduce f2fs_reserve_blocks to speedup fallocate

2016-05-07 Thread Jaegeuk Kim
Hi Chao, Good catch, but I've been already testing a patch which uses f2fs_map_blocks(). We don't need to add whole things redundantly. :) >From b150a6e02785ea28a5139bd2d1a1debd8aad84e7 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Fri, 6 May 2016 15:30:38 -0700 Subject: [PATCH] f2fs: falloca

[GIT PULL] USB driver fixes for 4.6-rc7

2016-05-07 Thread Greg KH
The following changes since commit 02da2d72174c61988eb4456b53f405e3ebdebce4: Linux 4.6-rc5 (2016-04-24 16:17:05 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/ tags/usb-4.6-rc7 for you to fetch changes up to 9be427efc764464fbcbc1c

[PATCH 2/2] f2fs: do not preallocate block unaligned to 4KB

2016-05-07 Thread Jaegeuk Kim
Previously f2fs_preallocate_blocks() tries to allocate unaligned blocks. In f2fs_write_begin(), however, prepare_write_begin() does not skip its allocation due to (len != 4KB). So, it needs locking node page twice unexpectedly. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 4 ++-- 1 file chang

[PATCH 1/2] f2fs: read node blocks ahead when truncating blocks

2016-05-07 Thread Jaegeuk Kim
This patch enables reading node blocks in advance when truncating large data blocks. > time rm $MNT/testfile (500GB) after drop_cachees Before : 9.422 s After : 4.821 s Reported-by: Stephen Bates Signed-off-by: Jaegeuk Kim --- fs/f2fs/file.c | 2 +- fs/f2fs/node.c | 52 +

[GIT PULL] char/misc driver fixes for 4.6-rc7

2016-05-07 Thread Greg KH
The following changes since commit c3b46c73264b03000d1e18b22f5caf63332547c9: Linux 4.6-rc4 (2016-04-17 19:13:32 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git/ tags/char-misc-4.6-rc7 for you to fetch changes up to d1306eb67

[GIT PULL] Staging driver fixes for 4.6-rc7

2016-05-07 Thread Greg KH
The following changes since commit bf16200689118d19de1b8d2a3c314fc21f5dc7bb: Linux 4.6-rc3 (2016-04-10 17:58:30 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git/ tags/staging-4.6-rc7 for you to fetch changes up to 2b86c4a84377b

Re: [PATCH 1/8] perf tools: Omit DWARF judgement when recording dwarf callchain

2016-05-07 Thread Jiri Olsa
On Fri, May 06, 2016 at 08:59:07AM +, He Kuang wrote: > There's no need for dwarf support when perf recording with callchain. > > Signed-off-by: He Kuang Acked-by: Jiri Olsa thanks, jirka > --- > tools/perf/util/util.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/tools/perf

Re: [PATCH] Staging: android: gio: fixes a variable type issue and tabbing issues

2016-05-07 Thread Thimo Braker
Thanks for the reply. Will give that a check. :) Got pointed to torvalds/linux-2.6 by some other guy. Will have a look in the other repo. Also, would you rather have me send a patch for every type (eg tabbing fix, capital fix, spelling fix, 80-char fix, etc)? (Just to be sure I properly underst

Re: [PATCH 2/8] perf script: Add options for custom vdso name

2016-05-07 Thread Jiri Olsa
On Fri, May 06, 2016 at 08:59:08AM +, He Kuang wrote: > When unwinding callchain on different machine, vdso info should be > provided so the unwind process won't be interrupted if address fell > into vdso region. > > Signed-off-by: He Kuang > --- > tools/perf/builtin-script.c | 2 ++ > tools

Re: [PATCH 3/8] perf build: Add build-test for libunwind cross-platforms support

2016-05-07 Thread Jiri Olsa
On Fri, May 06, 2016 at 08:59:09AM +, He Kuang wrote: > Currently only test for local libunwind. We should check all supported > platforms so we can use them to parse perf.data with callchain info on > different machines. > > Signed-off-by: He Kuang > --- > tools/build/Makefile.feature

Re: [PATCH 4/8] perf build: Add build-test for debug-frame on arm/arm64

2016-05-07 Thread Jiri Olsa
On Fri, May 06, 2016 at 08:59:10AM +, He Kuang wrote: > Debug-frame for remote platforms is not related to the host platform, > so we should test each platform separately. SNIP > diff --git a/tools/build/feature/test-libunwind-debug-frame.c > b/tools/build/feature/test-libunwind-debug-frame.

Re: [PATCH 5/8] perf tools: Promote proper messages for cross-platform unwind

2016-05-07 Thread Jiri Olsa
On Fri, May 06, 2016 at 08:59:11AM +, He Kuang wrote: > Currently, perf script uses host unwind methods to parse perf.data > callchain info regardless of the target architecture. So we get wrong > result and no promotion when unwinding callchains of x86(32bit) on > x86(64bit) machine. > > This

Re: [PATCH] ext4 crypto: migrate into vfs's crypto engine

2016-05-07 Thread Jaegeuk Kim
Hi Eric, Thank you for the review. On Fri, May 06, 2016 at 09:31:02PM -0500, Eric Biggers wrote: > Hi Jaegeuk, > > On Mon, Apr 25, 2016 at 05:15:36PM -0700, Jaegeuk Kim wrote: > > This patch removes the most parts of internal crypto codes. > > And then, it modifies and adds some ext4-specific cr

Re: [PATCH v2] ext4 crypto: migrate into vfs's crypto engine

2016-05-07 Thread Jaegeuk Kim
Chang log from v1: - allow "ext4:" crypto prefix - fix some parts pointed by Eric This patch is made on top of below patch that I attached. - fscrypto/f2fs: allow fs-specific key prefix for fs encryption Thanks, >From 593e56e680f962c5e9cc57afa19bda4c654bd841 Mon Sep 17 00:00:00 2001 From: Jae

Re: [PATCH] Staging: android: gio: fixes a variable type issue and tabbing issues

2016-05-07 Thread Greg KH
A: No. Q: Should I include quotations after my reply? http://daringfireball.net/2007/07/on_top On Sat, May 07, 2016 at 08:05:22PM +0200, Thimo Braker wrote: > Thanks for the reply. > Will give that a check. :) > Got pointed to torvalds/linux-2.6 by some other guy. > > Will have a look in the ot

Re: [PATCH 06/10] perf, tools, stat: Avoid fractional digits for integer scales

2016-05-07 Thread Jiri Olsa
On Thu, May 05, 2016 at 04:04:03PM -0700, Andi Kleen wrote: > From: Andi Kleen > > When the scaling factor is a full integer don't display fractional > digits. This avoids unnecessary .00 output for topdown metrics > with scale factors. > > v2: Remove redundant check. > Signed-off-by: Andi Kleen

Re: [PATCH 07/10] perf, tools, stat: Scale values by unit before metrics

2016-05-07 Thread Jiri Olsa
On Thu, May 05, 2016 at 04:04:04PM -0700, Andi Kleen wrote: > From: Andi Kleen > > Scale values by unit before passing them to the metrics printing functions. > This is needed for TopDown, because it needs to scale the slots correctly > by pipeline width / SMTness. > > For existing metrics it sh

Re: [patch 1/2] netxen: fix error handling in netxen_get_flash_block()

2016-05-07 Thread David Miller
From: Dan Carpenter Date: Thu, 5 May 2016 16:18:46 +0300 > My static checker complained that "v" can be used unintialized if > netxen_rom_fast_read() returns -EIO. That function never actually > returns -1. > > Signed-off-by: Dan Carpenter Applied.

Re: [patch 2/2] netxen: reversed condition in netxen_nic_set_link_parameters()

2016-05-07 Thread David Miller
From: Dan Carpenter Date: Thu, 5 May 2016 16:19:44 +0300 > My static checker complains that we are using "autoneg" without > initializing it. The problem is the ->phy_read() condition is reversed > so we only set this on error instead of success. > > Signed-off-by: Dan Carpenter Applied.

Re: [patch] netxen: netxen_rom_fast_read() doesn't return -1

2016-05-07 Thread David Miller
From: Dan Carpenter Date: Thu, 5 May 2016 16:20:20 +0300 > The error handling is broken here. netxen_rom_fast_read() returns zero > on success and -EIO on error. It never returns -1. > > Signed-off-by: Dan Carpenter Applied.

Re: [PATCH 06/10] perf, tools, stat: Avoid fractional digits for integer scales

2016-05-07 Thread Andi Kleen
> > if (csv_output) { > > - fmt = sc != 1.0 ? "%.2f%s" : "%.0f%s"; > > + fmt = floor(sc) != sc ? "%.2f%s" : "%.0f%s"; > > } else { > > if (big_num) > > - fmt = sc != 1.0 ? "%'18.2f%s" : "%'18.0f%s"; > > + fmt = floor(sc)

[PATCH 3/3] fs: befs: remove unneeded initializations to NULL

2016-05-07 Thread Salah Triki
iaddr_array is unconditionally initialized to NULL in befs_find_brun_dblindirect(). Signed-off-by: Salah Triki --- fs/befs/datastream.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fs/befs/datastream.c b/fs/befs/datastream.c index 068f7be..4cbd4c2 100644 --- a/fs/befs/d

[PATCH 2/3] fs: befs: remove unneeded initialization to NULL

2016-05-07 Thread Salah Triki
bh is reinitialized by befs_read_datastream() so no need to init it with NULL in the beginning of befs_read_lsymlink(). Signed-off-by: Salah Triki --- fs/befs/datastream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/befs/datastream.c b/fs/befs/datastream.c index aa3568

[PATCH 1/3] fs: befs: remove unneeded initialization to NULL

2016-05-07 Thread Salah Triki
bh is reinitialized by befs_bread_iaddr() so no need to init it with NULL in the beginning of befs_read_datastream(). Signed-off-by: Salah Triki --- fs/befs/datastream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/befs/datastream.c b/fs/befs/datastream.c index ebd5071.

Re: [PATCH] gpio: sch: Fix Oops on module load on Asus Eee PC 1201

2016-05-07 Thread Colin Pitrat
On Fri, May 06, 2016 at 10:49:23PM +0100, Colin Pitrat wrote: > This fixes the issue descirbe in bug 117531. > It's a regression introduced in linux 4.5 that causes a Oops at load of > gpio_sch and prevents powering off the computer. > > The patch consist in reverting commit > 737c8fccf1c5b2aae3

Re: [PATCH 5/8] perf tools: Promote proper messages for cross-platform unwind

2016-05-07 Thread Jiri Olsa
On Fri, May 06, 2016 at 08:59:11AM +, He Kuang wrote: SNIP > + if (machine) > + root_dir = machine->root_dir; > + > + name = malloc(PATH_MAX); > + if (!name) > + return -1; > + > + kmod = dso->symtab_type == DSO_BINARY_TYPE__SYSTEM_PATH_KMODULE || > +

[PATCH v2] gpio: sch: Fix Oops on module load on Asus Eee PC 1201

2016-05-07 Thread Colin Pitrat
This fixes the issue descirbe in bug 117531. It's a regression introduced in linux 4.5 that causes a Oops at load of gpio_sch and prevents powering off the computer. The patch consist in reverting commit 737c8fccf1c5b2aae3c6d9a66dce17e35fc39b71 (a.k.a 'gpio: sch: use gpiochip data pointer') that

[PATCH] Input: rotary-encoder: fix bare use of 'unsigned'

2016-05-07 Thread Clifton Barnes
fix checkpatch.pl warning about 'Prefer 'unsigned int' to bare use of 'unsigned'' Signed-off-by: Clifton Barnes --- drivers/input/misc/rotary_encoder.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/input/misc/rotary_encoder.c b/drivers/input/misc/rotary_enc

Re: [PATCH] Staging: android: gio: fixes a variable type issue and tabbing issues

2016-05-07 Thread Thimo Braker
Q: Should I include quotations after my reply? Sorry about that, will do. Look at the patches sent the driverdevel mailing list for examples of this. Just subscribed to that mailing list, will keep an eye out for proper patch mails. Thanks, Thimo B.

[PATCH 1/2] Staging: android: ion: fixes use of typedef

2016-05-07 Thread Thimo Braker
Fixes a checkpatch.pl warning about 'do not add new typedefs' Signed-off-by: Thimo Braker --- drivers/staging/android/uapi/ion.h | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/staging/android/uapi/ion.h b/drivers/staging/android/uapi/ion.h index 0a8e40f..77a

[PATCH 2/2] Staging: android: ion: fixes indentation

2016-05-07 Thread Thimo Braker
Fixes indentation before variable names. Signed-off-by: Thimo Braker --- drivers/staging/android/uapi/ion.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/android/uapi/ion.h b/drivers/staging/android/uapi/ion.h index 77a46f0..ddb8174 100644 --- a/dri

Re: [PATCH net-next 06/21] net: dsa: mv88e6xxx: factorize MAC address setting

2016-05-07 Thread Vivien Didelot
Hi Andrew, Andrew Lunn writes: >> @@ -378,6 +385,7 @@ enum mv88e6xxx_cap { >> #define MV88E6XXX_FLAG_EEPROM BIT(MV88E6XXX_CAP_EEPROM) >> #define MV88E6XXX_FLAG_PPU BIT(MV88E6XXX_CAP_PPU) >> #define MV88E6XXX_FLAG_SMI_PHY BIT(MV88E6XXX_CAP_SMI_PHY) >> +#defi

Re: [patch V4] lib: GCD: Use binary GCD algorithm instead of Euclidean

2016-05-07 Thread George Spelvin
> Take a look at the Cc: list. Yes, I realized how long it was about half a second after hitting "send". Although I didn't really think it through at the time, even now that I do it's not entirely clear who should have been trimmed, either. In general lkml tradition is to not drop people from th

Re: [PATCH net-next 15/21] net: dsa: mv88e6xxx: factorize VLAN Ethertype

2016-05-07 Thread Vivien Didelot
Hi Andrew, Andrew Lunn writes: > On Fri, May 06, 2016 at 05:57:17PM -0400, Vivien Didelot wrote: >> The 6131 switch models have a Core Tag Type register. Add a >> MV88E6XXX_FLAG_CORE_TAG_TYPE flag and set the VLAN Ethertype to 0x8100 >> in the shared setup code if it is present. > > Do you have

Re: [patch V4] lib: GCD: Use binary GCD algorithm instead of Euclidean

2016-05-07 Thread George Spelvin
Sam Ravnborg wrote: > sparc64 have an efficient ffs implementation. > We use run-time patching to use the proper version > depending on the actual sparc cpu. > > As this is determinded at config time, then let the > sparc cpu that has the efficient ffs benefit from this. > > In other words - sele

Re: [PATCH 1/2] net: phy: add ethtool_phy_{get|set}_link_ksettings

2016-05-07 Thread Philippe Reynes
On 07/05/16 13:59, Ben Hutchings wrote: On Sat, 2016-05-07 at 01:18 +0200, Philippe Reynes wrote: The callback {get|set}_link_ksettings are often defined in a very close way. There are mainly two differences in those callback: - the name of the netdev private structure - the name of the struct p

Re: [PATCH 1/1] simplified security.nscapability xattr

2016-05-07 Thread Jann Horn
On Tue, May 03, 2016 at 12:54:40AM -0500, Eric W. Biederman wrote: > "Serge E. Hallyn" writes: > > > Quoting Andrew G. Morgan (mor...@kernel.org): > >> > >> I guess I'm confused how we have strayed so far that this isn't an obvious > >> requirement. Uid=0 as being the root of privilege was the b

Re: [PATCH 1/2] net: phy: add ethtool_phy_{get|set}_link_ksettings

2016-05-07 Thread Ben Hutchings
On Sun, 2016-05-08 at 00:56 +0200, Philippe Reynes wrote: > On 07/05/16 13:59, Ben Hutchings wrote: > > > > On Sat, 2016-05-07 at 01:18 +0200, Philippe Reynes wrote: > > > > > > The callback {get|set}_link_ksettings are often defined > > > in a very close way. There are mainly two differences in

Re: PROBLEM: Scheduling latency not respected in CFS with HRTICK enabled

2016-05-07 Thread Wanpeng Li
2016-05-06 23:43 GMT+08:00 Tomasz Grabiec : > Hi, > > System details: > > Kernel: 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 > UTC 2016 x86_64 x86_64 x86_64 GNU/Linux > CPU: 2 sockets, 8 cores per socket, 2 threads per core > CPU Model: Intel(R) Xeon(R) CPU E5-2630 v3 @ 2.40G

Re: VFIO MSIX Query

2016-05-07 Thread Alex Williamson
Hi Nitin, On Sat, 7 May 2016 21:09:09 +0530 Nitin Saxena wrote: > Hi Alex, > > I have specific questions related to the problem I am facing in using VFIO > for MSIX interrupt. > > My userspace program running on x86 talks to NIC connected via PCIe > interface. Current program works fine in pol

[PATCH 1/1] Staging: emxx_udc: emxx_udc: fixed coding style issue

2016-05-07 Thread Shyam Saini
fixed checkpatch.pl warning about 'Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Shyam Saini --- drivers/staging/emxx_udc/emxx_udc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c

  1   2   >