[PATCH RESEND] scsi_sysfs: protect against double execution of __scsi_remove_device()

2015-11-06 Thread Vitaly Kuznetsov
On some host errors storvsc module tries to remove sdev by scheduling a job which does the following: sdev = scsi_device_lookup(wrk->host, 0, 0, wrk->lun); if (sdev) { scsi_remove_device(sdev); scsi_device_put(sdev); } While this code seems correct the following crash is ob

[PATCH] goldfish: fix goldfish_pipe driver BUG

2015-11-06 Thread yalin wang
goldfish_pipe_read_write() should pass the buffer's physical address to qemu, so that host can copy access data correctly, currently, the drier write a virtual address into address register, host can not get correct data, then adbd daemon can not work in guest. Also I comment off access_with_param(

Re: [KERNEL] Re: [KERNEL] Re: [KERNEL] Re: [KERNEL] Re: [KERNEL] Re: Kernel 4.3 breaks security in systems using capabilities

2015-11-06 Thread Theodore Ts'o
On Fri, Nov 06, 2015 at 02:58:36PM +0100, Klaus Ethgen wrote: > But that left out completely the, I think more important, usecase of > _removing_ SUID completely and _replacing_ it with very tight capability > setting. And that is what I always talked about. I don't believe this is ever going to b

Re: [PATCH 07/10] pwm: gpio: Add a generic gpio based PWM driver

2015-11-06 Thread Thierry Reding
On Mon, Oct 26, 2015 at 10:32:38PM +0100, Olliver Schinagl wrote: > From: Olliver Schinagl > > This patch adds a bit-banging gpio PWM driver. It makes use of hrtimers, > to allow nano-second resolution, though it obviously strongly depends on > the switching speed of the gpio pins, hrtimer and sy

[PATCH] bq2415x_charger: Delete unnecessary checks before the function call "of_node_put"

2015-11-06 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 6 Nov 2015 16:48:46 +0100 The of_node_put() function tests whether its argument is NULL and then returns immediately. Thus the test around the calls is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drive

[PATCH] arm64: add HAVE_LATENCYTOP_SUPPORT config

2015-11-06 Thread yalin wang
Add HAVE_LATENCYTOP_SUPPORT in Kconfig, so that we can enable this feature on ARM64 Signed-off-by: yalin wang --- arch/arm64/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 851fe11..782b5bd 100644 --- a/arch/arm64/Kconfig +++ b/arch/a

Re: [PATCH] Ext4: Fix extended timestamp encoding and decoding

2015-11-06 Thread Theodore Ts'o
On Thu, Nov 05, 2015 at 10:14:24AM -0800, Darrick J. Wong wrote: > ...but I guess nobody ever developed the e2fsprogs regression tests that Ted > asked for, so none of the patches got merged. Ho hum. I haven't forgotten, and it's been put on my "if you want to do it right, you'll have to do it yo

[PATCH 0/2] mmc: sdhci: potentially bad behavior when using vmmc supply

2015-11-06 Thread Ludovic Desroches
Hi, I would like to have some feedback for these two patches. I have two questions. 1. To suppress the warnings telling me I have no vmmc and vqmmc supplies, I have added them and discovered that adding a vmmc supply involve only writing 1 in the Power Control Register involves enabling the SD B

[PATCH 1/2] mmc: sdhci: set bus voltage before enabling bus power

2015-11-06 Thread Ludovic Desroches
When there is a vmmc regulator, only SD Bus Power is set to 1 in the Power Control Register. It means SD Bus Voltage Select field is set to 0 that is a reserved value. The SD Host Controller specification says: 'SD Bus Power: Before setting this bit, the SD Host Driver shall set SD Bus Voltage Sele

[PATCH 2/2] ARM: at91/dt: sama5d2 Xplained: add regulators for sdhci devices

2015-11-06 Thread Ludovic Desroches
Add vmmc and vqmmc regulators for sdhci devices. The voltage for sdmmc0 vqmmc is selected by a signal from coming from the sdhci device. Signed-off-by: Ludovic Desroches --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/

Re: [RFC 3/3] ARM: e3xx: Add header file for pinctrl constants

2015-11-06 Thread Moritz Fischer
Hi Arnd, On Fri, Nov 6, 2015 at 12:54 AM, Arnd Bergmann wrote: > On Thursday 05 November 2015 15:41:23 Moritz Fischer wrote: >> +/* Pin names for the E31x usecase */ >> +#define E31X_TX_BANDSEL_2 "DB_1" >> +#define E31X_RX1B_BANDSEL_0"DB_3" >> +#define E31X_RX1B_BANDSEL_1"DB_5" >> +#

Re: [PATCH 2/8] mmc: handle add_disk() return value

2015-11-06 Thread Ulf Hansson
On 6 November 2015 at 13:22, Vishnu Pratap Singh wrote: > This patch handles add_disk() return value. > Earlier add_disk() function doesn't handle error > cases, now it is added, so the callers of this function > should also handle it. > > Verfied on X86 based ubuntu machine. > This patch depends

Re: [PATCH 0/2] "big hammer" for DAX msync/fsync correctness

2015-11-06 Thread Dan Williams
On Fri, Nov 6, 2015 at 12:06 AM, Thomas Gleixner wrote: > On Thu, 5 Nov 2015, Dan Williams wrote: >> On Wed, Oct 28, 2015 at 3:51 PM, Ross Zwisler >> wrote: >> > On Wed, Oct 28, 2015 at 06:24:29PM -0400, Jeff Moyer wrote: >> >> Ross Zwisler writes: >> >> >> >> > This series implements the very s

Re: [PATCH] arm64: add HAVE_LATENCYTOP_SUPPORT config

2015-11-06 Thread Will Deacon
On Fri, Nov 06, 2015 at 11:57:58PM +0800, yalin wang wrote: > Add HAVE_LATENCYTOP_SUPPORT in Kconfig, so that > we can enable this feature on ARM64 Do you know what the prerequisites for HAVE_LATENCYTOP_SUPPORT actually are (beyond those explicitly listed as dependencies for CONFIG_LATENCYTOP)? W

Re: [GIT PULL] arm64 updates for 4.4

2015-11-06 Thread Catalin Marinas
On Fri, Nov 06, 2015 at 10:57:58AM +0100, Arnd Bergmann wrote: > On Thursday 05 November 2015 18:27:18 Catalin Marinas wrote: > > On Wed, Nov 04, 2015 at 02:55:01PM -0800, Linus Torvalds wrote: > > > On Wed, Nov 4, 2015 at 10:25 AM, Catalin Marinas > > > wrote: > > > It's good for single-process

Re: [PATCH 08/10] pwm: core: add pulse feature to the PWM framework

2015-11-06 Thread Thierry Reding
On Fri, Nov 06, 2015 at 04:46:54PM +0100, Olliver Schinagl wrote: > Hey Thierry, > > On 06-11-15 16:18, Thierry Reding wrote: > >On Mon, Oct 26, 2015 at 10:32:39PM +0100, Olliver Schinagl wrote: > >>From: Olliver Schinagl > >> > >>Some hardware PWM's have the possibility to only send out one (or

Re: fs: out of bounds on stack in iov_iter_advance

2015-11-06 Thread Jens Axboe
On 11/05/2015 08:38 PM, Linus Torvalds wrote: On Thu, Nov 5, 2015 at 6:19 PM, Al Viro wrote: How are we going to handle that one? I can put it into mainline pull request via vfs.git, with Cc: stable, but if e.g. Jens prefers to take it via the block tree, I'll be glad to leave it for him to d

Re: [PATCH 3/7] drivers:input:tsc2007: add iio interface to read external ADC input, temperature and raw conversion values

2015-11-06 Thread kbuild test robot
Hi Nikolaus, [auto build test ERROR on input/next] [also build test ERROR on v4.3 next-20151106] url: https://github.com/0day-ci/linux/commits/H-Nikolaus-Schaller/drivers-touchscreen-tsc2007-and-ads7846-tsc2046-improvements-use-common-touchscreen-bindings-pre-calibration-spi-fix-and-provide

Re: [PATCH 00/10] merge_config misc reworks and testcases

2015-11-06 Thread Michal Marek
On 2015-10-28 01:46, Olof Johansson wrote: > On Wed, Oct 28, 2015 at 9:42 AM, Olof Johansson wrote: >> Hi, >> >> Somewhat wide distribution list here, since I've added everyone who's >> touched the script, with the presumption that those have been the major >> users of it. Please make sure none of

Re: [PATCH 0/14] init: deps: dependency based (parallelized) init

2015-11-06 Thread Alexander Holler
Hello, in order to "conserve" the patches, I've setup a repository named parallelized_kernel_init at github. I've just put patches for 4.3 into that repository, also I don't know if and how long I will use and maintain this series. Regards, Alexander Holler -- To unsubscribe from this list

Re: [PATCH 02/10] pwm: sunxi: fix whitespace issue

2015-11-06 Thread Thierry Reding
On Mon, Oct 26, 2015 at 10:32:33PM +0100, Olliver Schinagl wrote: > From: Olliver Schinagl > > This patch changes no code, it just fixes the whitespacing > > Signed-off-by: Olliver Schinagl > --- > drivers/pwm/pwm-sun4i.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, with a

Re: [PATCH] arm64: add HAVE_LATENCYTOP_SUPPORT config

2015-11-06 Thread yalin wang
i just enable it on ARM64, and it can work, i don’t see some special requirement to enable this config . > On Nov 7, 2015, at 00:05, Will Deacon wrote: > > On Fri, Nov 06, 2015 at 11:57:58PM +0800, yalin wang wrote: >> Add HAVE_LATENCYTOP_SUPPORT in Kconfig, so that >> we can enable this feature

Re: [PATCH] arm64: remove redundant FRAME_POINTER kconfig option

2015-11-06 Thread Catalin Marinas
On Fri, Nov 06, 2015 at 12:30:09PM +, Will Deacon wrote: > On Wed, Nov 04, 2015 at 09:37:51AM -0800, Yang Shi wrote: > > FRAME_POINTER is defined in lib/Kconfig.debug, it is unnecessary to redefine > > it in arch/arm64/Kconfig.debug. > > It might be worth noting that this adds a dependency on

Re: [PATCH 03/10] pwm: sunxi: Yield some time to the pwm-block to become ready

2015-11-06 Thread Thierry Reding
On Mon, Oct 26, 2015 at 10:32:34PM +0100, Olliver Schinagl wrote: > The pwm-block of some of the sunxi chips feature a 'ready' flag to > indicate the software that it is ready for new commands. > > Right now, when we call pwm_config and set the period, we write the > values to the registers, and t

Re: [PATCH] bq2415x_charger: Delete unnecessary checks before the function call "of_node_put"

2015-11-06 Thread Pali Rohár
On Friday 06 November 2015 16:56:33 SF Markus Elfring wrote: > From: Markus Elfring > Date: Fri, 6 Nov 2015 16:48:46 +0100 > > The of_node_put() function tests whether its argument is NULL and then > returns immediately. Thus the test around the calls is not needed. > > This issue was detected b

Re: [PATCH 1/1 v4] drivers/nvme: default to 4k device page size

2015-11-06 Thread Nishanth Aravamudan
On 05.11.2015 [11:58:39 -0800], Christoph Hellwig wrote: > Looks fine, > > Reviewed-by: Christoph Hellwig > > ... but I doubt we'll ever bother updating it. Most architectures > with arger page sizes also have iommus and would need different settings > for different iommus vs direct mapping for

[PATCH] jbd2: get rid of superfluous __GFP_REPEAT

2015-11-06 Thread mhocko
From: Michal Hocko jbd2_alloc is explicit about its allocation preferences wrt. the allocation size. Sub page allocations go to the slab allocator and larger are using either the page allocator or vmalloc. This is all good but the logic is unnecessarily complex. Requests larger than order-3 are d

Re: [PATCH 08/10] pwm: core: add pulse feature to the PWM framework

2015-11-06 Thread Olliver Schinagl
Hey Thierry, On 06-11-15 17:05, Thierry Reding wrote: On Fri, Nov 06, 2015 at 04:46:54PM +0100, Olliver Schinagl wrote: Hey Thierry, On 06-11-15 16:18, Thierry Reding wrote: On Mon, Oct 26, 2015 at 10:32:39PM +0100, Olliver Schinagl wrote: From: Olliver Schinagl Some hardware PWM's have th

Re: [PATCH] arm64: remove redundant FRAME_POINTER kconfig option

2015-11-06 Thread Will Deacon
On Fri, Nov 06, 2015 at 04:12:14PM +, Catalin Marinas wrote: > On Fri, Nov 06, 2015 at 12:30:09PM +, Will Deacon wrote: > > On Wed, Nov 04, 2015 at 09:37:51AM -0800, Yang Shi wrote: > > > FRAME_POINTER is defined in lib/Kconfig.debug, it is unnecessary to > > > redefine > > > it in arch/ar

Re: [PATCH 5/8] mm: memcontrol: account socket memory on unified hierarchy

2015-11-06 Thread Johannes Weiner
On Fri, Nov 06, 2015 at 11:57:24AM +0100, Michal Hocko wrote: > On Thu 05-11-15 17:52:00, Johannes Weiner wrote: > > On Thu, Nov 05, 2015 at 03:55:22PM -0500, Johannes Weiner wrote: > > > On Thu, Nov 05, 2015 at 03:40:02PM +0100, Michal Hocko wrote: > > > > This would be true if they moved on to th

Re: [PATCH] arm64: remove redundant FRAME_POINTER kconfig option

2015-11-06 Thread Catalin Marinas
On Fri, Nov 06, 2015 at 12:50:02PM +, Mark Rutland wrote: > On Fri, Nov 06, 2015 at 12:30:09PM +, Will Deacon wrote: > > On Wed, Nov 04, 2015 at 09:37:51AM -0800, Yang Shi wrote: > > > FRAME_POINTER is defined in lib/Kconfig.debug, it is unnecessary to > > > redefine > > > it in arch/arm64

Re: [PATCH] arm64: add HAVE_LATENCYTOP_SUPPORT config

2015-11-06 Thread Will Deacon
On Sat, Nov 07, 2015 at 12:11:16AM +0800, yalin wang wrote: > i just enable it on ARM64, > and it can work, > i don’t see some special requirement to enable this config . Right, so why does HAVE_LATENCYTOP_SUPPORT exist? Will -- To unsubscribe from this list: send the line "unsubscribe linux-kern

[GIT PULL] sound updates for 4.4-rc1

2015-11-06 Thread Takashi Iwai
Linus, please pull sound updates for v4.4-rc1 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.4-rc1 The topmost commit is 5cf92c8b3dc5da59e05dc81bdc069cedf6f38313 sound updates for 4.4-rc1 Her

RE: [PATCH v2] acpi: Use kstrtoul() instead of strtoul()/simple_strtoul()

2015-11-06 Thread Moore, Robert
> Subject: Re: [PATCH v2] acpi: Use kstrtoul() instead of > strtoul()/simple_strtoul() So, this would fix the issue(s) (in aclinux.h): #define strtoul kstrtoul strtoul is used frequently in with the ACPICA in-kernel AML Debugger: dbcmds.c(188):Address = strtoul (I

Re: [PATCH 3/7] drivers:input:tsc2007: add iio interface to read external ADC input, temperature and raw conversion values

2015-11-06 Thread H. Nikolaus Schaller
Am 06.11.2015 um 17:08 schrieb kbuild test robot : > Hi Nikolaus, > > [auto build test ERROR on input/next] > [also build test ERROR on v4.3 next-20151106] > > url: > https://github.com/0day-ci/linux/commits/H-Nikolaus-Schaller/drivers-touchscreen-tsc2007-and-ads7846

[GIT PULL] PCI changes for v4.4

2015-11-06 Thread Bjorn Helgaas
Hi Linus, Here are the PCI changes I intend for v4.4. There's one silent conflict because I added the Altera host driver, which uses the pci_msi_create_irq_domain() interface. That interface was changed this cycle by be5436c83ac8 ("irqdomain/msi: Use fwnode instead of of_node"). I included Arnd

Re: [PATCH] arm64: remove redundant FRAME_POINTER kconfig option

2015-11-06 Thread Will Deacon
On Fri, Nov 06, 2015 at 04:21:09PM +, Catalin Marinas wrote: > On Fri, Nov 06, 2015 at 12:50:02PM +, Mark Rutland wrote: > > On Fri, Nov 06, 2015 at 12:30:09PM +, Will Deacon wrote: > > > On Wed, Nov 04, 2015 at 09:37:51AM -0800, Yang Shi wrote: > > > > FRAME_POINTER is defined in lib/K

[GIT PULL] ext4 changes for 4.4

2015-11-06 Thread Theodore Ts'o
The following changes since commit 1f93e4a96c9109378204c147b3eec0d0e8100fde: Linux 4.3-rc2 (2015-09-20 14:32:34 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git tags/ext4_for_linus for you to fetch changes up to be69e1c19f0efb091f2

Re: [GIT PULL] arm64 updates for 4.4

2015-11-06 Thread Arnd Bergmann
On Friday 06 November 2015 16:04:08 Catalin Marinas wrote: > On Fri, Nov 06, 2015 at 10:57:58AM +0100, Arnd Bergmann wrote: > > On Thursday 05 November 2015 18:27:18 Catalin Marinas wrote: > > > On Wed, Nov 04, 2015 at 02:55:01PM -0800, Linus Torvalds wrote: > > > > On Wed, Nov 4, 2015 at 10:25 AM,

[PATCH] iommu/s390: fix sparse warnings

2015-11-06 Thread Sebastian Ott
Fix these warnings: CHECK drivers/iommu/s390-iommu.c drivers/iommu/s390-iommu.c:52:21: warning: symbol 's390_domain_alloc' was not declared. Should it be static? drivers/iommu/s390-iommu.c:76:6: warning: symbol 's390_domain_free' was not declared. Should it be static? Signed-off-by: Sebastia

Re: [PATCH net] net/qlcnic: fix mac address restore in bond mode 5/6

2015-11-06 Thread Jarod Wilson
Jarod Wilson wrote: The bonding driver saves a copy of slaves' original mac address and then assigns whatever mac as needed to the slave, depending on mode. In at least modes 5 and 6 (balance-tlb, balance-alb), it often ends up being the mac address of another slave. On release from the bond, the

[PATCH v3] h8300: cleanup startup and remove module code.

2015-11-06 Thread Yoshinori Sato
h8300's clocksource driver update. Changes for v2 - Diff base on 6ddcedf38a75f94bf662438afd7ed8c7837ab00e Changes for v1 - Drop non-initialize changes. - Private data static allocation. - Avoid magic number. - Use request_irq. Signed-off-by: Yoshinori Sato --- drivers/clocksource/h8300_timer16.

i.MX6: Oops when unplugging a USB key

2015-11-06 Thread Jean-Michel Hautbois
Hi ! I have an issue on my i.MX6 board I don't understand (kernel is a 4.2)... When I connect a USB key, and then disconnect it, it oopses and reboots (as I have panic on oops, and reboot on panic). Seems to be on the umount part... The USB is connected through a smsc95xx but I don't think this is

Re: [PATCH 03/10] pwm: sunxi: Yield some time to the pwm-block to become ready

2015-11-06 Thread Chen-Yu Tsai
On Tue, Oct 27, 2015 at 5:32 AM, Olliver Schinagl wrote: > The pwm-block of some of the sunxi chips feature a 'ready' flag to > indicate the software that it is ready for new commands. > > Right now, when we call pwm_config and set the period, we write the > values to the registers, and turn off t

Re: [PATCH 5/8] mm: memcontrol: account socket memory on unified hierarchy

2015-11-06 Thread Johannes Weiner
On Fri, Nov 06, 2015 at 12:05:55PM +0300, Vladimir Davydov wrote: > On Thu, Nov 05, 2015 at 03:55:22PM -0500, Johannes Weiner wrote: > > On Thu, Nov 05, 2015 at 03:40:02PM +0100, Michal Hocko wrote: > ... > > > 3) keep only some (safe) cache types enabled by default with the current > > >failin

Re: [PATCH v2] arm64: defconfig: Enable samsung MFD and related configs

2015-11-06 Thread Catalin Marinas
On Fri, Nov 06, 2015 at 02:47:12PM +0900, Krzysztof Kozlowski wrote: > 2015-11-06 14:27 GMT+09:00 Alim Akhtar : > > Exynos7 based espresso board uses S2MPS15, a multifunction device. > > This patch enables S2MPS1X regulator, pmic-clk and rtc drivers utilized by > > the same. > > > > Signed-off-by:

Re: i.MX6: Oops when unplugging a USB key

2015-11-06 Thread Arnd Bergmann
On Friday 06 November 2015 17:32:30 Jean-Michel Hautbois wrote: > I have an issue on my i.MX6 board I don't understand (kernel is a 4.2)... > When I connect a USB key, and then disconnect it, it oopses and > reboots (as I have panic on oops, and reboot on panic). > Seems to be on the umount part...

Re: [PATCH v3] h8300: cleanup startup and remove module code.

2015-11-06 Thread Daniel Lezcano
On 11/06/2015 05:31 PM, Yoshinori Sato wrote: h8300's clocksource driver update. Changes for v2 - Diff base on 6ddcedf38a75f94bf662438afd7ed8c7837ab00e Changes for v1 - Drop non-initialize changes. - Private data static allocation. - Avoid magic number. - Use request_irq. Signed-off-by: Yoshino

Re: [RFC 3/3] ARM: e3xx: Add header file for pinctrl constants

2015-11-06 Thread Arnd Bergmann
On Friday 06 November 2015 08:01:25 Moritz Fischer wrote: > Hi Arnd, > > On Fri, Nov 6, 2015 at 12:54 AM, Arnd Bergmann wrote: > > On Thursday 05 November 2015 15:41:23 Moritz Fischer wrote: > >> +/* Pin names for the E31x usecase */ > >> +#define E31X_TX_BANDSEL_2 "DB_1" > >> +#define E31X_

Re: [PATCH 0/2] mmc: sdhci: potentially bad behavior when using vmmc supply

2015-11-06 Thread Ulf Hansson
On 6 November 2015 at 16:59, Ludovic Desroches wrote: > Hi, > > I would like to have some feedback for these two patches. I have two > questions. > > 1. > > To suppress the warnings telling me I have no vmmc and vqmmc supplies, I have > added them and discovered that adding a vmmc supply involve

Re: [PATCH] goldfish: fix goldfish_pipe driver BUG

2015-11-06 Thread kbuild test robot
Hi yalin, [auto build test ERROR on staging/staging-testing] [also build test ERROR on v4.3 next-20151106] url: https://github.com/0day-ci/linux/commits/yalin-wang/goldfish-fix-goldfish_pipe-driver-BUG/20151106-235541 config: i386-allmodconfig (attached as .config) reproduce: # save

Re: [PATCH 5/8] mm: memcontrol: account socket memory on unified hierarchy

2015-11-06 Thread Michal Hocko
On Fri 06-11-15 11:19:53, Johannes Weiner wrote: > On Fri, Nov 06, 2015 at 11:57:24AM +0100, Michal Hocko wrote: > > On Thu 05-11-15 17:52:00, Johannes Weiner wrote: > > > On Thu, Nov 05, 2015 at 03:55:22PM -0500, Johannes Weiner wrote: > > > > On Thu, Nov 05, 2015 at 03:40:02PM +0100, Michal Hocko

[GIT PULL] Mailbox changes for v4.4

2015-11-06 Thread Jassi Brar
Hi Linus, The following changes since commit 049e6dde7e57f0054fdc49102e7ef4830c698b46: Linux 4.3-rc4 (2015-10-04 16:57:17 +0100) are available in the git repository at: git://git.linaro.org/landing-teams/working/fujitsu/integration.git mailbox-for-next for you to fetch changes up to cb1ca0

Re: [PATCH] ARM: keystone_defconfig: Enable SYSTEM V IPC

2015-11-06 Thread santosh shilimkar
On 11/6/2015 6:46 AM, Carlos Hernandez wrote: System V IPC is required by some LTP tests. It is also enabled on omap2plus_defconfig which is the other base config used for TI platforms. Signed-off-by: Carlos Hernandez --- Looks fine. I will pick this up. Regards, Santosh -- To unsubscribe fr

Re: [PATCH 3/3] comedi: driver: Fix - BIT macro used coding style issue

2015-11-06 Thread Greg KH
On Fri, Nov 06, 2015 at 07:24:18PM +0530, Ranjith T wrote: > Is this patch is fine?..Because I didn't get any reply for this patch You sent it 1 day ago, while we are in the middle of the merge window and I can't touch anything for 2 weeks at the earliest. Please be patient. greg k-h -- To unsub

Re: [RFC PATCH 0/3] CFS idle injection

2015-11-06 Thread Punit Agrawal
Peter Zijlstra writes: > People, trim your emails! > > On Wed, Nov 04, 2015 at 08:58:30AM -0800, Jacob Pan wrote: > >> > I also like #2 too. Specially now that it is not limited to a specific >> > platform. One question though, could you still keep the cooling device >> > support of it? In some s

Re: i.MX6: Oops when unplugging a USB key

2015-11-06 Thread Jean-Michel Hautbois
Hi Arnd, 2015-11-06 17:38 GMT+01:00 Arnd Bergmann : > On Friday 06 November 2015 17:32:30 Jean-Michel Hautbois wrote: >> I have an issue on my i.MX6 board I don't understand (kernel is a 4.2)... >> When I connect a USB key, and then disconnect it, it oopses and >> reboots (as I have panic on oops,

[PATCH] Staging: lustre: dir: Remove wrapper function

2015-11-06 Thread Shivani Bhardwaj
Remove the function ll_check_page() and replace all its calls with the function it wrapped. Signed-off-by: Shivani Bhardwaj --- drivers/staging/lustre/lustre/llite/dir.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/staging/lustre/lustre/llite/dir.c b/driv

Re: [PATCH v5 1/5] gadget: Introduce the notifier functions

2015-11-06 Thread Greg KH
On Fri, Nov 06, 2015 at 07:35:10PM +0800, Baolin Wang wrote: > The usb charger framework is based on usb gadget. The usb charger > need to be notified the state changing of usb gadget to confirm the > usb charger state. > > Thus this patch adds a notifier mechanism for usb gadget to report a > eve

[PATCH] [media] hackrf: moving pointer reference before kfree

2015-11-06 Thread Saurabh Sengar
accessing a pointer after free could possible lead to segmentation fault, hence correcting it Signed-off-by: Saurabh Sengar --- drivers/media/usb/hackrf/hackrf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/hackrf/hackrf.c b/drivers/media/usb/hackrf/hack

Re: [PATCH 3/7] drivers:input:tsc2007: add iio interface to read external ADC input, temperature and raw conversion values

2015-11-06 Thread kbuild test robot
Hi Nikolaus, [auto build test ERROR on input/next] [also build test ERROR on v4.3 next-20151106] url: https://github.com/0day-ci/linux/commits/H-Nikolaus-Schaller/drivers-touchscreen-tsc2007-and-ads7846-tsc2046-improvements-use-common-touchscreen-bindings-pre-calibration-spi-fix-and-provide

Re: [PATCH] arm64: bpf: fix mod-by-zero case

2015-11-06 Thread Catalin Marinas
On Wed, Nov 04, 2015 at 08:43:59PM -0800, Zi Shen Lim wrote: > Turns out in the case of modulo by zero in a BPF program: > A = A % X; (X == 0) > the expected behavior is to terminate with return value 0. > > The bug in JIT is exposed by a new test case [1]. > > [1] https://lkml.org/lkml/20

[PATCH] HID: Wacom: Delete an unnecessary check before the function call "kobject_put"

2015-11-06 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 6 Nov 2015 17:55:23 +0100 The kobject_put() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- driver

[GIT PULL] asm-generic cleanups

2015-11-06 Thread Arnd Bergmann
The following changes since commit 049e6dde7e57f0054fdc49102e7ef4830c698b46: Linux 4.3-rc4 (2015-10-04 16:57:17 +0100) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic.git tags/asm-generic-for-linus for you to fetch changes up to 4008cb

Re: [PATCH v2 3/3] livepatch: Cleanup module page permission changes

2015-11-06 Thread Josh Poimboeuf
On Fri, Nov 06, 2015 at 02:42:46PM +0100, Petr Mladek wrote: > On Fri 2015-11-06 06:12:47, Josh Poimboeuf wrote: > > On Fri, Nov 06, 2015 at 11:40:55AM +0100, Petr Mladek wrote: > > > On Thu 2015-11-05 15:18:05, Josh Poimboeuf wrote: > > > > Calling set_memory_rw() and set_memory_ro() for every ite

Re: [KERNEL] Re: [KERNEL] Re: [KERNEL] Re: [KERNEL] Re: [KERNEL] Re: Kernel 4.3 breaks security in systems using capabilities

2015-11-06 Thread Andy Lutomirski
On Fri, Nov 6, 2015 at 7:53 AM, Theodore Ts'o wrote: > On Fri, Nov 06, 2015 at 02:58:36PM +0100, Klaus Ethgen wrote: >> But that left out completely the, I think more important, usecase of >> _removing_ SUID completely and _replacing_ it with very tight capability >> setting. And that is what I al

Improvement of trails and tutorials to become a kernel developer / maintainer

2015-11-06 Thread Patrick Plattes
ello, I'm interested since a very long time in kernel development, but I never saw the right path to become familiar with parts of the kernel. I read a bit of ipc code and ext* code, but since I often don't know any possible next steps I moved back to something else in the user space. I really li

[PATCH 0/3] Remove wrapper function and clean up the code

2015-11-06 Thread Shivani Bhardwaj
This patchset removes a wrapper function, its prototype and replace its calls in different files with a standard function. After applying this patch, code becomes cleaner. Shivani Bhardwaj (3): Staging: lustre: module: Replace function calls Staging: lustre: tracefile: Remove wrapper function

[PATCH] mtd: mtk-nor: fix compare_const_fl.cocci warnings

2015-11-06 Thread kbuild test robot
drivers/mtd/spi-nor/mtk-quadspi.c:223:6-28: Move constant to right. drivers/mtd/spi-nor/mtk-quadspi.c:214:6-10: Move constant to right. Move constants to the right of binary operators. Semantic patch information: Depends on personal taste in some cases. Generated by: scripts/coccinelle/misc/co

Re: [PATCH v6 2/3] mtd: mtk-nor: mtk serial flash controller driver

2015-11-06 Thread kbuild test robot
Hi Bayi, [auto build test ERROR on mtd/master] [also build test ERROR on v4.3 next-20151106] url: https://github.com/0day-ci/linux/commits/Bayi-Cheng/Mediatek-SPI-NOR-flash-driver/20151106-235157 base: git://git.infradead.org/linux-mtd.git master config: i386-allmodconfig (attached as

[PATCH 1/3] Staging: lustre: module: Replace function calls

2015-11-06 Thread Shivani Bhardwaj
Replace the calls of function cfs_trace_free_string_buffer() with kfree() as the former function is not required. Signed-off-by: Shivani Bhardwaj --- drivers/staging/lustre/lustre/libcfs/module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/lustre/lustr

[PATCH 3/3] Staging: lustre: tracefile: Remove function prototype

2015-11-06 Thread Shivani Bhardwaj
Remove the prototype of function cfs_trace_free_string_buffer() as it is no longer needed. Signed-off-by: Shivani Bhardwaj --- drivers/staging/lustre/lustre/libcfs/tracefile.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/libcfs/tracefile.h b/drivers/staging/l

[PATCH 0/5] Initial support for polled IO

2015-11-06 Thread Jens Axboe
Hi, This is a basic framework for supporting polled IO with the block layer stack, and added support for sync O_DIRECT IO and the NVMe driver. There are a few things missing to truly productize this, but it's very useful for testing. For now, it's a per-device opt-in feature. To enable it, you ec

[PATCH 5/5] directio: add block polling support

2015-11-06 Thread Jens Axboe
This adds support for sync O_DIRECT read/write poll support. Signed-off-by: Jens Axboe [hch: split from a larger patch, minor updates] Signed-off-by: Christoph Hellwig --- fs/direct-io.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/fs/direct-io.c b/fs/dire

[PATCH 2/3] Staging: lustre: tracefile: Remove wrapper function

2015-11-06 Thread Shivani Bhardwaj
Remove the function cfs_trace_free_string_buffer() as it can be replaced with the standard function kfree(). Signed-off-by: Shivani Bhardwaj --- drivers/staging/lustre/lustre/libcfs/tracefile.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/staging/lustre/lu

Re: [PATCH 0/4] dm verity: add support for error correction

2015-11-06 Thread Mikulas Patocka
On Thu, 5 Nov 2015, Milan Broz wrote: > On 11/05/2015 03:02 AM, Sami Tolvanen wrote: > > This patch set adds error correction support to dm-verity, which > > makes it possible to recover from data corruption in exchange of > > increased space overhead. > > > > The feature is implemented as part

[PATCH 3/5] block: add block polling support

2015-11-06 Thread Jens Axboe
Add basic support for polling for specific IO to complete. This uses the cookie that blk-mq passes back, which enables the block layer to pass this cookie to the driver to spin for a specific request. This will be combined with request latency tracking, so we can make qualified decisions about whe

[PATCH 4/5] NVMe: add blk polling support

2015-11-06 Thread Jens Axboe
Add nvme_poll(), which will check a specific completion queue for command completions. Wire that up to the new block layer poll mechanism. Later on we'll setup specific sq/cq pairs that don't have interrups enabled, so we can do more efficient polling. As of this patch, an IRQ will still trigger o

[PATCH 2/5] blk-mq: return tag/queue combo in the make_request_fn handlers

2015-11-06 Thread Jens Axboe
Return a cookie, blk_qc_t, from the blk-mq make request functions, that allows a later caller to uniquely identify a specific IO. The cookie doesn't mean anything to the caller, but the caller can use it to later pass back to the block layer. The block layer can then identify the hardware queue and

[PATCH 1/5] block: change ->make_request_fn() and users to return a queue cookie

2015-11-06 Thread Jens Axboe
No functional changes in this patch, but it prepares us for returning a more useful cookie related to the IO that was queued up. Signed-off-by: Jens Axboe --- arch/m68k/emu/nfblock.c | 3 ++- arch/powerpc/sysdev/axonram.c | 5 +++-- arch/xtensa/platforms/iss/s

Re: [PATCH] arm64: remove redundant FRAME_POINTER kconfig option

2015-11-06 Thread Shi, Yang
On 11/6/2015 8:25 AM, Will Deacon wrote: On Fri, Nov 06, 2015 at 04:21:09PM +, Catalin Marinas wrote: On Fri, Nov 06, 2015 at 12:50:02PM +, Mark Rutland wrote: On Fri, Nov 06, 2015 at 12:30:09PM +, Will Deacon wrote: On Wed, Nov 04, 2015 at 09:37:51AM -0800, Yang Shi wrote: FRAME_

[PATCH] md: MD_RAID456 now depends on LIBCRC32C

2015-11-06 Thread Guenter Roeck
Since commit 5cb2fbd6ea0d1 ("raid5-cache: use crc32c checksum"), parisc:generic-32bit_defconfig and probably other builds fail as follows. ERROR: "crc32c" [drivers/md/raid456.ko] undefined! Fixes: 5cb2fbd6ea0d1 ("raid5-cache: use crc32c checksum") Signed-off-by: Guenter Roeck --- drivers/md/Kco

Re: [PATCH] arm64: remove redundant FRAME_POINTER kconfig option

2015-11-06 Thread Catalin Marinas
On Fri, Nov 06, 2015 at 09:23:38AM -0800, Shi, Yang wrote: > On 11/6/2015 8:25 AM, Will Deacon wrote: > >However, the patch would allow one to > >disable FRAME_POINTERS (not sure it has any effect on the aarch64 gcc > >though). > > No, it doesn't. Actually, FRAME_POINTER could be disabled regardle

Re: [PATCH 0/2] "big hammer" for DAX msync/fsync correctness

2015-11-06 Thread Thomas Gleixner
On Fri, 6 Nov 2015, Dan Williams wrote: > On Fri, Nov 6, 2015 at 12:06 AM, Thomas Gleixner wrote: > > Just for the record. Such a flush mechanism with > > > > on_each_cpu() > > wbinvd() > > ... > > > > will make that stuff completely unusable on Real-Time systems. We've > > be

Re: [GIT PULL] platform-drivers-x86 for 4.4-1

2015-11-06 Thread Darren Hart
On Thu, Nov 05, 2015 at 11:43:45PM -0800, Linus Torvalds wrote: > On Thu, Nov 5, 2015 at 10:56 PM, Darren Hart wrote: > > > > Please note the OLPC/MAINTAINERS changes described in the tag message. If > > adding > > this to my maintenance bin is innappropriate, please drop these two patches. > >

Re: [PATCH] arm64: remove redundant FRAME_POINTER kconfig option

2015-11-06 Thread Shi, Yang
On 11/6/2015 9:35 AM, Catalin Marinas wrote: On Fri, Nov 06, 2015 at 09:23:38AM -0800, Shi, Yang wrote: On 11/6/2015 8:25 AM, Will Deacon wrote: However, the patch would allow one to disable FRAME_POINTERS (not sure it has any effect on the aarch64 gcc though). No, it doesn't. Actually, FRAME

[PATCH] iommu/arm-smmu: Delete an unnecessary check before free_io_pgtable_ops()

2015-11-06 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 6 Nov 2015 18:32:41 +0100 The free_io_pgtable_ops() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

Re: Improve spinlock performance by moving work to one core

2015-11-06 Thread Waiman Long
On 11/05/2015 11:28 PM, Ling Ma wrote: Longman Thanks for your suggestion. We will look for real scenario to test, and could you please introduce some benchmarks on spinlock ? Regards Ling The kernel has been well optimized for most common workloads that spinlock contention is usually not

[PATCH 0/3] Remove wrapper functions from ldlm_pool

2015-11-06 Thread Shivani Bhardwaj
This patchset removes different wrapper functions from the file ldlm_pool and replaces their calls with the function they wrapped. After applying this patchset, code becomes cleaner. Shivani Bhardwaj (3): Staging: lustre: ldlm_pool: Remove unneeded wrapper function Staging: lustre: ldlm_pool:

[PATCH 1/3] Staging: lustre: ldlm_pool: Remove unneeded wrapper function

2015-11-06 Thread Shivani Bhardwaj
Remove the function ldlm_pl2ns() and replace its calls with the function it wrapped. Signed-off-by: Shivani Bhardwaj --- drivers/staging/lustre/lustre/ldlm/ldlm_pool.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/staging/lustre/lustre/ld

[PATCH 2/3] Staging: lustre: ldlm_pool: Drop wrapper function

2015-11-06 Thread Shivani Bhardwaj
Remove the function ldlm_pool_get_limit() and replace its calls with the function it wrapped. Signed-off-by: Shivani Bhardwaj --- drivers/staging/lustre/lustre/ldlm/ldlm_pool.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_p

[PATCH 3/3] Staging: lustre: ldlm_pool: Drop unneeded wrapper function

2015-11-06 Thread Shivani Bhardwaj
Remove the function ldlm_pool_set_limit() and replace its calls with the function it wrapped. Signed-off-by: Shivani Bhardwaj --- drivers/staging/lustre/lustre/ldlm/ldlm_pool.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/staging/lustre/lustre/ldlm/ld

Re: [PATCH 5/8] mm: memcontrol: account socket memory on unified hierarchy

2015-11-06 Thread Johannes Weiner
On Fri, Nov 06, 2015 at 05:46:57PM +0100, Michal Hocko wrote: > The basic problem was that the Delegate feature has been backported to > our systemd package without further consideration and that has > invalidated a lot of performance testing because some resource > controllers have measurable effe

Re: [PATCH tip/locking/core v9 5/6] locking/pvqspinlock: Allow 1 lock stealing attempt

2015-11-06 Thread Waiman Long
On 11/06/2015 09:50 AM, Peter Zijlstra wrote: On Fri, Oct 30, 2015 at 07:26:36PM -0400, Waiman Long wrote: @@ -431,35 +432,44 @@ queue: * sequentiality; this is because the set_locked() function below * does not imply a full barrier. * +* The PV pv_wait_head_l

RE: [PATCH RESEND] scsi_sysfs: protect against double execution of __scsi_remove_device()

2015-11-06 Thread KY Srinivasan
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Friday, November 6, 2015 7:49 AM > To: James E.J. Bottomley > Cc: linux-s...@vger.kernel.org; linux-kernel@vger.kernel.org; KY Srinivasan > ; Bart Van Assche > Subject: [PATCH RESEND] scsi_sysfs: protect

Re: [PATCH v2 03/11] staging: fsl-mc: Added generic MSI support for FSL-MC devices

2015-11-06 Thread Marc Zyngier
On 30/10/15 19:43, J. German Rivera wrote: > Created an MSI domain for the fsl-mc bus-- including functions > to create a domain, find a domain, alloc/free domain irqs, and > bus specific overrides for domain and irq_chip ops. > > Signed-off-by: J. German Rivera > --- > Changes in v2: none > >

Re: [KERNEL] Re: [KERNEL] Re: [KERNEL] Re: [KERNEL] Re: [KERNEL] Re: Kernel 4.3 breaks security in systems using capabilities

2015-11-06 Thread Casey Schaufler
On 11/6/2015 7:53 AM, Theodore Ts'o wrote: > On Fri, Nov 06, 2015 at 02:58:36PM +0100, Klaus Ethgen wrote: >> But that left out completely the, I think more important, usecase of >> _removing_ SUID completely and _replacing_ it with very tight capability >> setting. And that is what I always talked

Re: [PATCH] arm64: remove redundant FRAME_POINTER kconfig option

2015-11-06 Thread Catalin Marinas
On Fri, Nov 06, 2015 at 09:39:07AM -0800, Shi, Yang wrote: > On 11/6/2015 9:35 AM, Catalin Marinas wrote: > >On Fri, Nov 06, 2015 at 09:23:38AM -0800, Shi, Yang wrote: > >>On 11/6/2015 8:25 AM, Will Deacon wrote: > >>>However, the patch would allow one to > >>>disable FRAME_POINTERS (not sure it ha

Re: [PATCH tip/locking/core v9 6/6] locking/pvqspinlock: Queue node adaptive spinning

2015-11-06 Thread Waiman Long
On 11/06/2015 10:01 AM, Peter Zijlstra wrote: On Fri, Oct 30, 2015 at 07:26:37PM -0400, Waiman Long wrote: +++ b/kernel/locking/qspinlock_paravirt.h @@ -23,6 +23,19 @@ #define _Q_SLOW_VAL (3U<< _Q_LOCKED_OFFSET) /* + * Queue Node Adaptive Spinning + * + * A queue node vCPU will stop spin

Re: [RFC 3/3] ARM: e3xx: Add header file for pinctrl constants

2015-11-06 Thread Moritz Fischer
On Fri, Nov 6, 2015 at 8:42 AM, Arnd Bergmann wrote: > On Friday 06 November 2015 08:01:25 Moritz Fischer wrote: >> Hi Arnd, >> >> On Fri, Nov 6, 2015 at 12:54 AM, Arnd Bergmann wrote: >> > On Thursday 05 November 2015 15:41:23 Moritz Fischer wrote: >> >> +/* Pin names for the E31x usecase */ >>

<    1   2   3   4   5   6   7   8   9   10   >