Re: [PATCH] mtd: spi-nor: add hisilicon spi-nor flash controller driver

2016-01-04 Thread xuejiancheng
Hi Rob, Happy new year to you! Thank you for your patience. On 2016/1/1 6:26, Rob Herring wrote: > On Wed, Dec 30, 2015 at 10:26:11AM +0800, Jiancheng Xue wrote: >> add hisilicon spi-nor flash controller driver >> >> Signed-off-by: Binquan Peng >> Signed-off-by: Jiancheng Xue >> --- >> .../d

Re: [PATCH v2 15/32] powerpc: define __smp_xxx

2016-01-04 Thread Boqun Feng
Hi Michael, On Thu, Dec 31, 2015 at 09:07:42PM +0200, Michael S. Tsirkin wrote: > This defines __smp_xxx barriers for powerpc > for use by virtualization. > > smp_xxx barriers are removed as they are > defined correctly by asm-generic/barriers.h > > This reduces the amount of arch-specific boile

Re: [PATCH] rt2x00pci: Disable memory-write-invalidate when the driver exits

2016-01-04 Thread Jia-Ju Bai
On 01/05/2016 12:50 AM, Helmut Schaa wrote: On Mon, Jan 4, 2016 at 8:55 AM, Jia-Ju Bai wrote: The driver calls pci_set_mwi to enable memory-write-invalidate when it is initialized, but does not call pci_clear_mwi when it is removed. Many other drivers calls pci_clear_mwi when pci_set_mwi is cal

Re: [PATCH] Staging: speakup: Fix getting port information

2016-01-04 Thread Samuel Thibault
Mmm, sorry. I don't submit patches often enough, so that each time I do it, there are new things to know about it :) Thanks for the comments, Samuel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [PATCH] input: gpio_keys: Fix check for disabling unsupported key

2016-01-04 Thread Dmitry Torokhov
On Sun, Jan 03, 2016 at 11:21:16PM +0200, Ivaylo Dimitrov wrote: > Commit 4ea14a53d8f881034fa9e186653821c4e3d9a8fb ("Input: gpio-keys - > report error when disabling unsupported key") tried to prevent an > unsupported key to disabled. Unfortunately it effectively broke the driver > in a way so no k

[PATCH] Staging: speakup: Fix getting port information

2016-01-04 Thread Samuel Thibault
Patch f79b0d9c223c ("staging: speakup: Fixed warning instead of ") broke the port information in the speakup driver: SERIAL_PORT_DFNS only gets defined if asm/serial.h is included, and no other header includes asm/serial.h. We here make sure serialio.c does get the arch-specific definition of SER

Re: [PATCH 17/17] usb: host: ehci-dbg: refactor fill_periodic_buffer function

2016-01-04 Thread Geyslan G. Bem
2016-01-04 18:01 GMT-03:00 Alan Stern : > On Mon, 4 Jan 2016, Geyslan G. Bem wrote: > >> This patch fixes a coding style issue reported by checkpatch related to >> many leading tabs, removing a 'do while' loop and making use of goto tag >> instead. > > This is highly questionable. It's a big amou

[PATCH v2 2/2] phy: add a driver for the Rockchip SoC internal eMMC PHY

2016-01-04 Thread Shawn Lin
This patch to add a generic PHY driver for ROCKCHIP eMMC PHY. Access the PHY via registers provided by GRF (general register files) module. Signed-off-by: Shawn Lin --- Changes in v2: - remove phy from rockchip_emmc_phy - remove state from rockchip_emmc_phy - remove on/off from init/exit driv

[PATCH v2 1/2] Documentation: bindings: add dt documentation for Rockchip eMMC PHY

2016-01-04 Thread Shawn Lin
This patch adds a binding that describes the Rockchip eMMC PHYs found on Rockchip SoCs eMMC interface. Signed-off-by: Shawn Lin --- Changes in v2: None .../devicetree/bindings/phy/rockchip-emmc-phy.txt | 19 +++ 1 file changed, 19 insertions(+) create mode 100644 Documenta

Re: linux-next: build failure after merge of the i2c tree

2016-01-04 Thread Wolfram Sang
Stephen, > > After merging the i2c tree, today's linux-next build (powerpc > > ppc44x_defconfig) failed like this: Oops, yes. > > /* Bus timings (in ns) for bit-banging */ > > -static struct i2c_timings { > > +static struct ibm_i2c_timings { I changed it to ibm_iic_timings for consistency reas

Re: [PATCH 2/2] Input: elants_i2c: fixed wake-on-touch issue

2016-01-04 Thread Dmitry Torokhov
Hi James, On Mon, Jan 04, 2016 at 02:57:50PM +0800, james.chen wrote: > From: "james.chen" > > Fix function of wake-on-touch on suspend/resume. > The function of device_may_wakeup will return true if > the device supports wake-on-touch (for example, kitty and buddy). > So, modify the code from "

Re: [Patch-V2 1/6] INPUT: xpad: Add minimal support for Logitech G920 Wheel

2016-01-04 Thread Dmitry Torokhov
Hi Simon, On Mon, Jan 04, 2016 at 01:05:35PM -0700, Simon Wood wrote: > > On Mon, 4 Jan 2016 02:55:24 -0700, Benjamin Tissoires wrote: > your next pull request for > > Linus. We might want to drop it before it hits Linus' tree. > > > > We can still keep the HID work in place even if the device i

Re: CGroup Namespaces (v9)

2016-01-04 Thread Serge E. Hallyn
Ok, please hold off on this, there is another locking question i need to look into :( -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the F

Re: [PATCH] Input: xpad - use LED API when identifying wireless controllers

2016-01-04 Thread Dmitry Torokhov
On Thu, Dec 24, 2015 at 07:11:22PM +0100, Pavel Rojtberg wrote: > > for me this one did the trick. The correct LED lights up after resume. > > Integrated it here (master): > https://github.com/paroj/xpad Pavel, I refreshed my xpad branch on kernel.org folding the reset_resume and anchor changes

[lkp] [cgroup] 2f37bb12d3: INFO: suspicious RCU usage. ]

2016-01-04 Thread kernel test robot
FYI, we noticed the below changes on https://git.kernel.org/pub/scm/linux/kernel/git/sergeh/linux-security 2016-01-04/cgroupns commit 2f37bb12d30f69cd692933c4646dee73fc58eb43 ("cgroup: introduce cgroup namespaces") +-+

Re: new cmdline parameter disable_cpu_features= (microcode update?)

2016-01-04 Thread Piotr Dąbrowski
Thank you for your reply. > You cannot change the microcode patches - they're supplied by the CPU > vendors as is and are signed/encrypted. Is the microcode's header encrypted too? I thought there are two Processor Flags fields ('pf') available [1]. Are they what I think they are? Is the header s

Re: [PATCHSET 00/10] perf tools: Support dynamic sort keys for tracepoints (v3)

2016-01-04 Thread Namhyung Kim
Hi Arnaldo, On Mon, Jan 04, 2016 at 06:17:46PM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Dec 21, 2015 at 11:26:43PM +0900, Namhyung Kim escreveu: > > Hello, > > > > This is an attempt to improve perf to deal with tracepoint events > > better. The perf tools can handle tracepoint events bu

Re: [PATCH v3 0/2] Create specific kconfig for kselftest

2016-01-04 Thread Michael Ellerman
On Mon, 2016-01-04 at 18:34 +0800, Bamvor Jian Zhang wrote: > On 01/04/2016 12:57 PM, Michael Ellerman wrote: > [...] > > > > No I meant Makefile, the very top level Makefile. > > > > There is already a kselftest target in there (line 1077), I meant we would > > add > > a kselftest-mergeconfig tar

[PATCH v7 3/3] x86, mce: Add __mcsafe_copy()

2016-01-04 Thread Tony Luck
Make use of the EXTABLE_FAULT exception table entries. This routine returns a structure to indicate the result of the copy: struct mcsafe_ret { u64 trapnr; u64 remain; }; If the copy is successful, then both 'trapnr' and 'remain' are zero. If we faulted during the copy, then 'tra

[PATCH v7 2/3] x86, mce: Check for faults tagged in EXTABLE_CLASS_FAULT exception table entries

2016-01-04 Thread Tony Luck
Extend the severity checking code to add a new context IN_KERN_RECOV which is used to indicate that the machine check was triggered by code in the kernel with a EXTABLE_CLASS_FAULT fixup entry. Major re-work to the tail code in do_machine_check() to make all this readable/maintainable. One functio

Re: [PATCH 0/3] mtd-rfd_ftl: Fine-tuning for two function implementations

2016-01-04 Thread Brian Norris
On Thu, Dec 31, 2015 at 09:21:14PM +0100, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 31 Dec 2015 21:15:15 +0100 > > A few update suggestions were taken into account > from static source code analysis. Are you fixing anything? Have you tested your work? At the moment, I can't f

[PATCH v7 1/3] x86: Add classes to exception tables

2016-01-04 Thread Tony Luck
Starting with a patch from Andy Lutomirski that used linker relocation trickery to free up a couple of bits in the "fixup" field of the exception table (and generalized the uaccess_err hack to use one of the classes). This patch allocates another one of the classes to provide a mechanism to provi

[PATCH v7 0/3] Machine check recovery when kernel accesses poison

2016-01-04 Thread Tony Luck
This series is initially targeted at the folks doing filesystems on top of NVDIMMs. They really want to be able to return -EIO when there is a h/w error (just like spinning rust, and SSD does). I plan to use the same infrastructure to write a machine check aware "copy_from_user()" that will SIGBUS

Re: [PATCH v2 20/32] metag: define __smp_xxx

2016-01-04 Thread James Hogan
Hi Michael, On Thu, Dec 31, 2015 at 09:08:22PM +0200, Michael S. Tsirkin wrote: > This defines __smp_xxx barriers for metag, > for use by virtualization. > > smp_xxx barriers are removed as they are > defined correctly by asm-generic/barriers.h > > Note: as __smp_XX macros should not depend on C

Re: [PATCH v2 1/3] rtc: s5m: Cleanup by removing useless 'rtc' prefix from fields

2016-01-04 Thread Alexandre Belloni
On 05/01/2016 at 09:04:39 +0900, Krzysztof Kozlowski wrote : > > > > Probably that's my fault because I rebased it on linux-next. I will > > rebase the patches on rtc-next and resend. > > Ah, no need for rebasing. I forgot about dependency - the support for > S2MPS15 was added recently through Le

Re: [PATCH v2 1/3] rtc: s5m: Cleanup by removing useless 'rtc' prefix from fields

2016-01-04 Thread Krzysztof Kozlowski
On 05.01.2016 08:53, Krzysztof Kozlowski wrote: > On 05.01.2016 02:08, Alexandre Belloni wrote: >> Hi, >> >> On 30/12/2015 at 13:47:25 +0900, Krzysztof Kozlowski wrote : >>> Remove the 'rtc' prefix from some of the fields in struct >>> s5m_rtc_reg_config because it is obvious - this is a RTC driver

Re: [PATCH v3 0/7] mm, x86/vdso: Special IO mapping improvements

2016-01-04 Thread Kees Cook
On Tue, Dec 29, 2015 at 8:12 PM, Andy Lutomirski wrote: > This applies on top of the earlier vdso pvclock series I sent out. > Once that lands in -tip, this will apply to -tip. > > This series cleans up the hack that is our vvar mapping. We currently > initialize the vvar mapping as a special map

Re: [RESEND PATCH v2 00/16] clk: a collection of various clean-ups and improvements

2016-01-04 Thread Michael Turquette
Quoting Masahiro Yamada (2015-12-28 02:22:54) > Many refactoring, with detection of circular parent looping. Thanks for the set of fixes. I'm looking over them now and will apply after 4.5-rc1 drops if there are no issues. Regards, Mike > > > Changes in v2: > - Fix a bug. Return -EINVAL whe

RE: [PATCH v3] surface pro 4: Add support for Surface Pro 4 Buttons

2016-01-04 Thread Chen, Yu C
Hi Darren, > -Original Message- > From: Darren Hart [mailto:dvh...@infradead.org] > Sent: Tuesday, January 05, 2016 4:36 AM > To: Andy Shevchenko > Cc: Weng Xuetian; Chen, Yu C; linux-kernel@vger.kernel.org; platform- > driver-...@vger.kernel.org > Subject: Re: [PATCH v3] surface pro 4:

Re: rtc-palmas: correct for bcd year

2016-01-04 Thread Alexandre Belloni
On 04/01/2016 at 08:45:54 -0800, Mark Salyzyn wrote : > On 01/04/2016 08:18 AM, Alexandre Belloni wrote: > >Hi, > > > >On 30/12/2015 at 12:51:45 -0800, Mark Salyzyn wrote : > >>Replace bcd2bin and bin2bcd with one that maps years 1970 to 2129 > >>in a pattern that works with the underlying hardware

Re: linux-next: build failure after merge of the i2c tree

2016-01-04 Thread Stephen Rothwell
Hi all, On Wed, 16 Dec 2015 15:48:13 +1100 Stephen Rothwell wrote: > > After merging the i2c tree, today's linux-next build (powerpc > ppc44x_defconfig) failed like this: > > drivers/i2c/busses/i2c-ibm_iic.c:102:15: error: redefinition of 'struct > i2c_timings' > static struct i2c_timings { >

Re: rsi: Delete unnecessary variable initialisations in rsi_send_mgmt_pkt()

2016-01-04 Thread Julian Calaby
Hi Markus, On Mon, Jan 4, 2016 at 11:33 PM, SF Markus Elfring wrote: >>> May I resend a consistent patch series for the source file >>> "drivers/net/wireless/rsi/rsi_91x_pkt.c" in the near future? >> >> If you were sending checkpatch.pl fixes that would be easier to deal with > > Does this feedba

Re: [PATCH v2 1/3] rtc: s5m: Cleanup by removing useless 'rtc' prefix from fields

2016-01-04 Thread Krzysztof Kozlowski
On 05.01.2016 02:08, Alexandre Belloni wrote: > Hi, > > On 30/12/2015 at 13:47:25 +0900, Krzysztof Kozlowski wrote : >> Remove the 'rtc' prefix from some of the fields in struct >> s5m_rtc_reg_config because it is obvious - this is a RTC driver. No >> functional changes. >> >> Signed-off-by: Krzys

[ANNOUNCE] Git v2.7.0

2016-01-04 Thread Junio C Hamano
The latest feature release Git v2.7.0 is now available at the usual places. It is comprised of 539 non-merge commits since v2.6.0, contributed by 81 people, 26 of which are new faces. The tarballs are found at: https://www.kernel.org/pub/software/scm/git/ The following public repositories a

[ANNOUNCE] Git v2.6.5

2016-01-04 Thread Junio C Hamano
The latest maintenance release Git v2.6.5 is now available at the usual places. The tarballs are found at: https://www.kernel.org/pub/software/scm/git/ The following public repositories all have a copy of the 'v2.6.5' tag and the 'maint' branch that the tag points at: url = https://kernel

Re: [PATCH v9 06/13] task_isolation: add debug boot flag

2016-01-04 Thread Chris Metcalf
On 1/4/2016 5:52 PM, Steven Rostedt wrote: On Mon, 4 Jan 2016 14:34:44 -0500 Chris Metcalf wrote: >+#ifdef CONFIG_TASK_ISOLATION >+void task_isolation_debug(int cpu) >+{ >+ struct task_struct *p; >+ >+ if (!task_isolation_possible(cpu)) >+ return; >+ >+ rcu_read_lock(); What'

Re: [PATCH] vfio/iommu_type1: make use of info.flags

2016-01-04 Thread Alex Williamson
On Wed, 2015-12-23 at 13:08 +0100, Pierre Morel wrote: > The flags entry is there to tell the user that some > optional information is available. > > Since we report the iova_pgsizes signal it to the user > by setting the flags to VFIO_IOMMU_INFO_PGSIZES. > > Signed-off-by: Pierre Morel > --- >

Re: Nokia N900 - audio TPA6130A2 problems

2016-01-04 Thread Pali Rohár
On Tuesday 04 August 2015 09:02:39 Peter Ujfalusi wrote: > On 08/03/2015 09:48 PM, Jarkko Nikula wrote: > > It is well possible that some regression got introduced to > > TPA6130A2 I2C communication over the years without nobody than you > > now notices. We used to do QA back in Meego N900 days but

Re: [PATCH 09/17] usb: host: ehci-dbg: fix up function definitions

2016-01-04 Thread Geyslan G. Bem
2016-01-04 18:00 GMT-03:00 Alan Stern : > On Mon, 4 Jan 2016, Geyslan G. Bem wrote: > >> Functions must have the opening brace at the beginning of the next line >> and body conforming indentation. > > This isn't necessary if the function is an empty static inline void > routine. Ok. It's more relat

Re: [PATCH v6 1/4] x86: Clean up extable entry format (and free up a bit)

2016-01-04 Thread Andy Lutomirski
On Mon, Jan 4, 2016 at 3:02 PM, Borislav Petkov wrote: > On Mon, Jan 04, 2016 at 02:29:09PM -0800, Andy Lutomirski wrote: >> Josh will argue with you if he sees that :) > > Except Josh doesn't need allyesconfigs. tinyconfig's __ex_table is 2K. If we do the make-it-bigger approach, we get a really

Re: [PATCH] af_unix: Fix splice-bind deadlock

2016-01-04 Thread Hannes Frederic Sowa
Hello, On Sun, Jan 3, 2016, at 19:03, Rainer Weikusat wrote: > Rainer Weikusat writes: > > > Hannes Frederic Sowa writes: > >> On 27.12.2015 21:13, Rainer Weikusat wrote: > >>> -static int unix_mknod(const char *sun_path, umode_t mode, struct path > >>> *res) > >>> +static int unix_mknod(struc

Re: [PATCH] drivers/bus: make uniphier-system-bus.c explicitly non-modular

2016-01-04 Thread Masahiro Yamada
Hi Olof, Sorry my misunderstanding. 2016-01-05 8:15 GMT+09:00 Masahiro Yamada : > Hi Paul, Olof, > > 2016-01-05 4:22 GMT+09:00 Paul Gortmaker : >> The Kconfig currently controlling compilation of this code is: >> >> drivers/bus/Kconfig:config UNIPHIER_SYSTEM_BUS >> drivers/bus/Kconfig:bool "

Re: [PATCH v2 10/32] metag: reuse asm-generic/barrier.h

2016-01-04 Thread James Hogan
On Thu, Dec 31, 2015 at 09:07:02PM +0200, Michael S. Tsirkin wrote: > On metag dma_rmb, dma_wmb, smp_store_mb, read_barrier_depends, > smp_read_barrier_depends, smp_store_release and smp_load_acquire match > the asm-generic variants exactly. Drop the local definitions and pull in > asm-generic/bar

[4.2.y-ckt stable] Patch "arm64: bpf: fix div-by-zero case" has been added to staging queue

2016-01-04 Thread Kamal Mostafa
This is a note to let you know that I have just added a patch titled arm64: bpf: fix div-by-zero case to the linux-4.2.y-queue branch of the 4.2.y-ckt extended stable tree which can be found at: http://kernel.ubuntu.com/git/ubuntu/linux.git/log/?h=linux-4.2.y-queue This patch is schedu

Re: new cmdline parameter disable_cpu_features= (microcode update?)

2016-01-04 Thread Borislav Petkov
On Mon, Jan 04, 2016 at 11:55:57PM +0100, Piotr Dąbrowski wrote: > Is such thing even possible? And would it be a reasonable thing to do > (maybe the rest of the microcode would break badly without the factory > flags set)? You cannot change the microcode patches - they're supplied by the CPU vend

Re: [PATCH] drivers/bus: make uniphier-system-bus.c explicitly non-modular

2016-01-04 Thread Masahiro Yamada
Hi Paul, Olof, 2016-01-05 4:22 GMT+09:00 Paul Gortmaker : > The Kconfig currently controlling compilation of this code is: > > drivers/bus/Kconfig:config UNIPHIER_SYSTEM_BUS > drivers/bus/Kconfig:bool "UniPhier System Bus driver" > > ...meaning that it currently is not being built as a module

[PATCH] x86/vdso/pvclock: Protect STABLE check with the seqcount

2016-01-04 Thread Andy Lutomirski
If the clock becomes unstable while we're reading it, we need to bail. We can do this by simply moving the check into the seqcount loop. Reported-by: Marcelo Tosatti Signed-off-by: Andy Lutomirski --- Marcelo, how's this? arch/x86/entry/vdso/vclock_gettime.c | 12 ++-- 1 file changed,

Re: [PATCH v4 3/3] serial: amba-pl011: add ACPI support to AMBA probe

2016-01-04 Thread Timur Tabi
On Wed, Dec 23, 2015 at 8:19 AM, Aleksey Makarov wrote: > From: Graeme Gregory > > In ACPI this device is only defined in SBSA mode so > if we are coming from ACPI use this mode. > > Signed-off-by: Graeme Gregory > Signed-off-by: Aleksey Makarov > --- > drivers/tty/serial/amba-pl011.c | 37 +++

Re: [PATCH v6 1/4] x86: Clean up extable entry format (and free up a bit)

2016-01-04 Thread Tony Luck
On Mon, Jan 4, 2016 at 10:08 AM, Andy Lutomirski wrote: > On Mon, Jan 4, 2016 at 9:26 AM, Tony Luck wrote: >> On Mon, Jan 4, 2016 at 4:07 AM, Borislav Petkov wrote: >>> Why not simply: >>> >>> .long (to) - . + (bias) ; >>> >>> and >>> >>> " .long (" #to ") - . + "(" #bias ") "\n

Re: [PATCH v6 1/4] x86: Clean up extable entry format (and free up a bit)

2016-01-04 Thread Borislav Petkov
On Tue, Jan 05, 2016 at 12:02:46AM +0100, Borislav Petkov wrote: > Except Josh doesn't need allyesconfigs. tinyconfig's __ex_table is 2K. Besides I just saved him 1.5K: https://lkml.kernel.org/r/1449481182-27541-1-git-send-email...@alien8.de :-) -- Regards/Gruss, Boris. ECO tip #101: Trim

Re: [PATCH v6 1/4] x86: Clean up extable entry format (and free up a bit)

2016-01-04 Thread Borislav Petkov
On Mon, Jan 04, 2016 at 02:29:09PM -0800, Andy Lutomirski wrote: > Josh will argue with you if he sees that :) Except Josh doesn't need allyesconfigs. tinyconfig's __ex_table is 2K. > We could maybe come up with a way to compress the table and get that > space and more back, but maybe that should

Re: [PATCH v2 1/4] x86, vdso, pvclock: Simplify and speed up the vdso pvclock reader

2016-01-04 Thread Marcelo Tosatti
On Mon, Jan 04, 2016 at 02:33:12PM -0800, Andy Lutomirski wrote: > On Mon, Jan 4, 2016 at 12:26 PM, Marcelo Tosatti wrote: > > On Sun, Dec 20, 2015 at 03:05:41AM -0800, Andy Lutomirski wrote: > >> From: Andy Lutomirski > >> > >> The pvclock vdso code was too abstracted to understand easily and >

new cmdline parameter disable_cpu_features= (microcode update?)

2016-01-04 Thread Piotr Dąbrowski
Hello! I would like to ask about a certain thing closely related to the kernel's Microcode Update Driver. Some new features of CPUs (namely TSX/HLE) have caused many problems in the past (Intel's Haswell) and still continue to be a bleeding edge technology especially when used with not yet well t

Re: [PATCH] Add possibility to set /dev/tty number

2016-01-04 Thread One Thousand Gnomes
> > If the console isn't initialized by userspace, is any of that space > > still really being used? Have you tried that? > I'm pretty certain that most of the space that gets taken up by the > scrollback buffer and screen isn't directly used unless the console is > used, but there are still str

Re: [PATCH v9 06/13] task_isolation: add debug boot flag

2016-01-04 Thread Steven Rostedt
On Mon, 4 Jan 2016 14:34:44 -0500 Chris Metcalf wrote: > +#ifdef CONFIG_TASK_ISOLATION > +void task_isolation_debug(int cpu) > +{ > + struct task_struct *p; > + > + if (!task_isolation_possible(cpu)) > + return; > + > + rcu_read_lock(); What's the rcu_read_lock() for? I

Re: [PATCH] lockd: constify nlmsvc_binding structure

2016-01-04 Thread J. Bruce Fields
On Wed, Dec 23, 2015 at 10:25:13PM +0100, Julia Lawall wrote: > The nlmsvc_binding structure is never modified, so declare it as const. > > Done with the help of Coccinelle. > > Signed-off-by: Julia Lawall > > --- > > This assumes that whoever takes advantage of the EXPORT_SYMBOL will also > n

Re: BUG: Bad rss-counter state mm:ffff8800c5a96000 idx:3 val:3894

2016-01-04 Thread Kirill A. Shutemov
On Mon, Jan 04, 2016 at 01:22:03PM -0800, Andrew Morton wrote: > On Thu, 24 Dec 2015 09:12:53 -0800 Jeremiah Mahler wrote: > > > all, > > > > I have started seeing a "Bad rss-counter" message in the logs with > > the latest linux-next 20151222+. > > > > [ 458.282192] BUG: Bad rss-counter sta

Re: [PATCH 3/3] lockd: use to_delayed_work

2016-01-04 Thread J. Bruce Fields
On Fri, Jan 01, 2016 at 10:06:29PM +0800, Geliang Tang wrote: > Use to_delayed_work() instead of open-coding it. Thanks, applying 2/3 and 3/3 for 4.5.--b. > > Signed-off-by: Geliang Tang > --- > fs/lockd/svc.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/fs/lockd

Re: [lkp] [selinux] 5d226df4ed: -10.1% unixbench.score

2016-01-04 Thread Andreas Grünbacher
2015-12-28 2:59 GMT+01:00 kernel test robot : > FYI, we noticed the below changes on > > git://git.infradead.org/users/pcmoore/selinux stable-4.5 > commit 5d226df4edfa0eb1e689e7ac2741cf261ff7cbf1 ("selinux: Revalidate invalid > inode security labels") I could reproduce the performance regression

Re: [PATCH] dma: Revert "dmaengine: mic_x100: add missing spin_unlock"

2016-01-04 Thread Ashutosh Dixit
On Sun, Jan 03 2016 at 10:35:26 PM, "Koul, Vinod" wrote: > On Tue, Dec 22, 2015 at 07:35:23PM -0800, Ashutosh Dixit wrote: >> This reverts commit e958e079e254 ("dmaengine: mic_x100: add missing >> spin_unlock"). >> >> The above patch is incorrect. There is nothing wrong with the original >> code.

Re: Thoughts about introducing OPTIMIZATION_CFLAG

2016-01-04 Thread Michal Marek
Dne 4.1.2016 v 12:47 Sedat Dilek napsal(a): > But I think you did not get my problem - to have two different > optimization-levels for a compiler in *one* make-line makes no sense > to me. That we sometimes have -O2 ... -Os on the command line is not a problem, since any same unix tool parses its

Re: [PATCH v2 1/4] x86, vdso, pvclock: Simplify and speed up the vdso pvclock reader

2016-01-04 Thread Andy Lutomirski
On Mon, Jan 4, 2016 at 12:26 PM, Marcelo Tosatti wrote: > On Sun, Dec 20, 2015 at 03:05:41AM -0800, Andy Lutomirski wrote: >> From: Andy Lutomirski >> >> The pvclock vdso code was too abstracted to understand easily and >> excessively paranoid. Simplify it for a huge speedup. >> >> This opens th

Re: [PATCH v9 08/13] arch/arm64: adopt prepare_exit_to_usermode() model from x86

2016-01-04 Thread Andy Lutomirski
On Mon, Jan 4, 2016 at 12:33 PM, Mark Rutland wrote: > Hi, > > On Mon, Jan 04, 2016 at 02:34:46PM -0500, Chris Metcalf wrote: >> This change is a prerequisite change for TASK_ISOLATION but also >> stands on its own for readability and maintainability. > > I have also been looking into converting t

Re: [PATCHv5 7/7] pciutils: Allow 32-bit domains

2016-01-04 Thread Keith Busch
Hi, thanks for the feedback. I've a few follow up questions. On Sun, Jan 03, 2016 at 03:11:24PM +0100, Martin Mares wrote: > This is definitely not enough. Try grepping the source for "domain" :-) > > At least the following places need updating, too: > > o struct pci_filter and operations on i

Re: [PATCH v6 1/4] x86: Clean up extable entry format (and free up a bit)

2016-01-04 Thread Andy Lutomirski
On Mon, Jan 4, 2016 at 1:02 PM, Borislav Petkov wrote: > On Mon, Jan 04, 2016 at 10:08:43AM -0800, Andy Lutomirski wrote: >> All of that's correct, including the part where it's confusing. The >> comments aren't the best. >> >> How about adding a comment like: >> >> - begin comment - >> >

Re: timerfd_settime/timerfd_gettime issue ?

2016-01-04 Thread Helge Deller
Hi Thomas, * Thomas Gleixner : > On Tue, 29 Dec 2015, Helge Deller wrote: > > No, the patch below doesn't help. > > > > I still see: > > [ 644.916000] timerfd_settime: interval (sec=0, nsec=1) it_value > > (sec=0, nsec=1) > > [ 645.024000] timerfd_gettime: interval (sec=0, nse

Re: [lkp] [selinux] 5d226df4ed: -10.1% unixbench.score

2016-01-04 Thread Andreas Grünbacher
2015-12-28 2:59 GMT+01:00 kernel test robot : > FYI, we noticed the below changes on > > git://git.infradead.org/users/pcmoore/selinux stable-4.5 > commit 5d226df4edfa0eb1e689e7ac2741cf261ff7cbf1 ("selinux: Revalidate invalid > inode security labels") > > >

Re: [PATCH v6 2/4] x86: Cleanup and add a new exception class

2016-01-04 Thread Andy Lutomirski
On Mon, Jan 4, 2016 at 12:32 PM, Borislav Petkov wrote: > On Mon, Jan 04, 2016 at 05:00:04PM +, Luck, Tony wrote: >> > So you're touching those again in patch 2. Why not add those defines to >> > patch 1 directly and diminish the churn? >> >> To preserve authorship. Andy did patch 1 (the cleve

[PATCH] ACPI / video: driver must be registered before checking for keypresses

2016-01-04 Thread Adrien Schildknecht
acpi_video_handles_brightness_key_presses() may use an uninitialized mutex. The error has been reported by lockdep: DEBUG_LOCKS_WARN_ON(l->magic != l). The function assumes that the video driver has been registered before being called. As explained in the comment of acpi_video_init(), the registrat

Re: [RFC v2 0/3] sparse: Introduce __private to privatize members of structs

2016-01-04 Thread Paul E. McKenney
On Tue, Dec 29, 2015 at 12:18:45PM +0800, Boqun Feng wrote: > Hi all, > > This is v2 of __private. > > Link for v1: http://marc.info/?l=linux-sparse&m=144988906932520&w=2 > > Change since v1: > > * #undef __irqd_to_state after used (Peter Zijlstra) > > > This patchset introduces a __priva

Re: [RFC PATCH v2 3/3] vfio-pci: Allow to mmap MSI-X table if EEH is supported

2016-01-04 Thread Benjamin Herrenschmidt
On Mon, 2016-01-04 at 14:07 -0700, Alex Williamson wrote: > On Thu, 2015-12-31 at 16:50 +0800, Yongji Xie wrote: > > Current vfio-pci implementation disallows to mmap MSI-X > > table in case that user get to touch this directly. > > > > However, EEH mechanism can ensure that a given pci device > >

Re: [PATCH 1/1] include/uapi/linux/sockios.h: mark SIOCRTMSG unused

2016-01-04 Thread David Miller
From: Heinrich Schuchardt Date: Tue, 29 Dec 2015 23:22:02 +0100 > IOCTL SIOCRTMSG does nothing but return EINVAL. > > So comment it as unused. > > Signed-off-by: Heinrich Schuchardt Please enhance your commit log message to include the analysis you provided in your reply to Michael Kerrisk. -

Re: [PATCH] cxgb4: correctly handling failed allocation

2016-01-04 Thread David Miller
From: Insu Yun Date: Tue, 29 Dec 2015 17:20:11 -0500 > Since t4_alloc_mem can be failed in memory pressure, > if not properly handled, NULL dereference could be happened. > > Signed-off-by: Insu Yun Applied. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

Re: [PATCH] ppc64: select HAVE_CONTEXT_TRACKING by default

2016-01-04 Thread Shi, Yang
Hi folks, Any comment on this is appreciated. Thanks, Yang On 12/9/2015 2:43 PM, Yang Shi wrote: The functionality of context tracking has been implemented by PPC64 and HAVE_CONTEXT_TRACKING was selected by pseries by default. Actually, it is applicale to all PPC64 platforms, so select it in

[RFC PATCH 3/4] X.509: Support leap seconds

2016-01-04 Thread David Howells
The format of ASN.1 GeneralizedTime seems to be specified by ISO 8601 [X.680 46.3] and this apparently supports leap seconds (ie. the seconds field is 60). It's not entirely clear that ASN.1 expects it, but we can relax the seconds check slightly for GeneralizedTime. This results in us passing a

[RFC PATCH 1/4] X.509: Fix leap year handling again

2016-01-04 Thread David Howells
There are still a couple of minor issues in the X.509 leap year handling: (1) To avoid doing a modulus-by-400 in addition to a modulus-by-100 when determining whether the year is a leap year or not, I divided the year by 100 after doing the modulus-by-100, thereby letting the compiler d

[RFC PATCH 2/4] Handle ISO 8601 leap seconds and encodings of midnight in mktime64()

2016-01-04 Thread David Howells
Handle the following ISO 8601 features in mktime64(): (1) Leap seconds. Leap seconds are indicated by the seconds parameter being the value 60. Handle this by treating it the same as 00 of the following minute. (2) Alternate encodings of midnight. Two different encodings

[RFC PATCH 4/4] X.509: Handle midnight alternative notation in GeneralizedTime

2016-01-04 Thread David Howells
The ASN.1 GeneralizedTime object carries an ISO 8601 format date and time. The time is permitted to show midnight as 00:00 or 24:00 (the latter being equivalent of 00:00 of the following day). The permitted value is checked in x509_decode_time() but the actual handling is left to mktime64(). With

[PATCH 0/4] X.509: Fix time handling

2016-01-04 Thread David Howells
Here's a set of patches that fix X.509 time handling in three ways: (1) Fix leap year handling. (2) Add leap second handling (where you get a time of 23:59:60). (3) Add end-of-day midnight encoding (where you get a time of 24:00:00). David --- David Howells (4): X.509: Fix leap year h

Re: [PATCH] mISDN: correctly handling failed allocation in fsm

2016-01-04 Thread David Miller
From: Insu Yun Date: Tue, 29 Dec 2015 16:41:33 -0500 > Since kzalloc can be failed in memory pressure, > NULL dereference can be happened. > > Signed-off-by: Insu Yun Similarly to your other mISDN patch you must propagate and handle errors properly. -- To unsubscribe from this list: send the l

Re: [PATCH] mISDN: correctly handling failed allocation

2016-01-04 Thread David Miller
From: Insu Yun Date: Tue, 29 Dec 2015 16:38:46 -0500 > Since kzalloc can be failed in memory pressure, > NULL dereference might be happened. > > Signed-off-by: Insu Yun Sorry, this is not a correct fix. You need to propagate an error back to the callers, and they must act upon that error. --

perf_event_open() ABI compatability

2016-01-04 Thread Vince Weaver
So I think this might be revisiting an issue that has come up before, but we're having backward compatability issues with PAPI and libpfm4 and the perf_event_open() system call. If a user specifies exclude_guest=1 on an older kernel that doesn't support it, we get the awesome EINVAL error return

Re: [PATCH 1/3] checkpatch.pl: add missing memory barriers

2016-01-04 Thread Joe Perches
On Mon, 2016-01-04 at 22:45 +0200, Michael S. Tsirkin wrote: > On Mon, Jan 04, 2016 at 08:07:40AM -0800, Joe Perches wrote: > > On Mon, 2016-01-04 at 13:36 +0200, Michael S. Tsirkin wrote: > > > SMP-only barriers were missing in checkpatch.pl > > > > > > Refactor code slightly to make adding more

Re: [PATCH] qlcnic: correctly handle qlcnic_alloc_mbx_args

2016-01-04 Thread David Miller
From: Insu Yun Date: Tue, 29 Dec 2015 15:02:18 -0500 > Since qlcnic_alloc_mbx_args can be failed, > return value should be checked. > > Signed-off-by: Insu Yun Applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vge

Re: [PATCH 3/3] checkpatch: add virt barriers

2016-01-04 Thread Joe Perches
On Mon, 2016-01-04 at 23:07 +0200, Michael S. Tsirkin wrote: > On Mon, Jan 04, 2016 at 08:47:53AM -0800, Joe Perches wrote: > > On Mon, 2016-01-04 at 13:37 +0200, Michael S. Tsirkin wrote: > > > Add virt_ barriers to list of barriers to check for > > > presence of a comment. > > > > Are these virt

Re: [PATCH v2] ARM: mm: flip priority of CONFIG_DEBUG_RODATA

2016-01-04 Thread Russell King - ARM Linux
On Mon, Jan 04, 2016 at 12:34:28PM -0800, Kees Cook wrote: > On Wed, Dec 23, 2015 at 4:34 PM, Russell King - ARM Linux > wrote: > > On Wed, Dec 23, 2015 at 04:11:22PM -0800, Tony Lindgren wrote: > >> * Nicolas Pitre [151223 13:45]: > >> > We fixed a bunch of similar issues where code was located

Re: [PATCH 08/17] usb: host: ehci-dbg: remove unnecessary space after cast

2016-01-04 Thread Geyslan G. Bem
2016-01-04 18:52 GMT-03:00 Sergei Shtylyov : > Hello. > > On 01/05/2016 12:49 AM, Greg Kroah-Hartman wrote: > > This patch fixes coding style issues reported by checkpatch concerning > to unnecessary space after a cast. This is a case where checkpatch is wrong, IMO. Casts sh

Re: [GIT PULL] parisc huge page support for v4.4

2016-01-04 Thread John David Anglin
On 2016-01-04 4:24 PM, Mikulas Patocka wrote: On Sat, 26 Dec 2015, Helge Deller wrote: On 26.12.2015 13:09, Mikulas Patocka wrote: BTW. I looked at this in arch/parisc/mm/hugetlbpage.c:set_huge_pte_at "*ptep = entry;" and it seems like a bad bug. PA-RISC doesn't have atomic instructions to m

Re: [PATCHv7] EDAC, altera: Add Altera L2 Cache and OCRAM EDAC Support

2016-01-04 Thread Borislav Petkov
On Mon, Jan 04, 2016 at 03:33:23PM -0600, Thor Thayer wrote: > The decision about ECC or non-ECC SDRAM is made before building the Linux > image and must be matched to the appropriate bootloader (ECC or non-ECC). > > If ECC is desired for SDRAM, the bootloader enables SDRAM ECC and then > initiali

Re: [PATCH 7/8] xfs: Support for transparent PUD pages

2016-01-04 Thread Matthew Wilcox
On Mon, Jan 04, 2016 at 10:41:21PM +0200, Kirill A. Shutemov wrote: > On Mon, Jan 04, 2016 at 07:33:56AM +1100, Dave Chinner wrote: > > Then in __dax_fault() you can check vmf->flags and call the > > appropriate __dax_p{te,md,ud}_fault function, all without the > > filesystem having to care about t

Re: [PATCH] [v3]Input: evdev - drop partial events after emptying the buffer

2016-01-04 Thread kbuild test robot
Hi Aniroop, [auto build test ERROR on input/next] [also build test ERROR on v4.4-rc8 next-20160104] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Aniroop-Mathur/Input-evdev-drop-partial

Re: [RFC PATCH] staging: rtl8723au: fix byte order problems

2016-01-04 Thread Julian Calaby
Hi Sven, On Tue, Jan 5, 2016 at 2:29 AM, Sven Dziadek wrote: > diff --git a/drivers/staging/rtl8723au/hal/rtl8723a_cmd.c > b/drivers/staging/rtl8723au/hal/rtl8723a_cmd.c > index 1662c03c..57f5941 100644 > --- a/drivers/staging/rtl8723au/hal/rtl8723a_cmd.c > +++ b/drivers/staging/rtl8723au/hal/rt

Re: [PATCH] [v3]Input: evdev - drop partial events after emptying the buffer

2016-01-04 Thread Aniroop Mathur
Just now sent v4. Please ignore v3. On Tue, Jan 5, 2016 at 3:19 AM, kbuild test robot wrote: > Hi Aniroop, > > [auto build test ERROR on input/next] > [also build test ERROR on v4.4-rc8 next-20160104] > [if your patch is applied to the wrong git tree, please drop us a note to &

[PATCH] [v4]Input: evdev - drop partial events after emptying the buffer

2016-01-04 Thread Aniroop Mathur
This patch introduces concept to drop partial events in evdev handler itself after emptying the buffer which are dropped by all evdev clients in userspace after SYN_DROPPED occurs and this in turn reduces evdev client reading requests plus saves memory space filled by partial events in evdev handle

Re: [PATCH 07/17] usb: host: ehci-dbg: fix unsigned comparison

2016-01-04 Thread Alan Stern
On Mon, 4 Jan 2016, Geyslan G. Bem wrote: > 2016-01-04 17:50 GMT-03:00 Alan Stern : > > On Mon, 4 Jan 2016, Geyslan G. Bem wrote: > > > >> This patch fixes an unsigned comparison to less than 0. > > > > No, it doesn't. It changes an unsigned comparison for less than or > > equal to 0, which is ve

Re: [PATCH 08/17] usb: host: ehci-dbg: remove unnecessary space after cast

2016-01-04 Thread Sergei Shtylyov
Hello. On 01/05/2016 12:49 AM, Greg Kroah-Hartman wrote: This patch fixes coding style issues reported by checkpatch concerning to unnecessary space after a cast. This is a case where checkpatch is wrong, IMO. Casts should always be followed by a space. I will not accept this patch. Ok. I

Re: [PATCH net-next 0/3] Fix some typos in setting hardware parameter

2016-01-04 Thread David Miller
From: Chunhao Lin Date: Tue, 29 Dec 2015 22:13:36 +0800 > The typos are in setting RTL8168DP, RTL8168EP and RTL8168H hardware > parameters. > This series of patch fix these typos. Series applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: [PATCH v2 2/2] memory-hotplug: keep the request_resource() error code

2016-01-04 Thread Rafael J. Wysocki
On Monday, January 04, 2016 05:17:31 PM Vitaly Kuznetsov wrote: > Don't overwrite the request_resource() return value with -EEXIST in > register_memory_resource(), just propagate the return value. As we return > -EBUSY instead of -EEXIST when the desired resource is already occupied > now we need t

Re: [PATCH] [v3]Input: evdev - drop partial events after emptying the buffer

2016-01-04 Thread kbuild test robot
Hi Aniroop, [auto build test ERROR on input/next] [also build test ERROR on v4.4-rc8 next-20160104] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Aniroop-Mathur/Input-evdev-drop-partial

Re: [PATCH 08/17] usb: host: ehci-dbg: remove unnecessary space after cast

2016-01-04 Thread Greg Kroah-Hartman
On Mon, Jan 04, 2016 at 06:40:38PM -0300, Geyslan G. Bem wrote: > 2016-01-04 17:58 GMT-03:00 Alan Stern : > > On Mon, 4 Jan 2016, Geyslan G. Bem wrote: > > > >> This patch fixes coding style issues reported by checkpatch concerning > >> to unnecessary space after a cast. > > > > This is a case wher

<    1   2   3   4   5   6   7   8   9   >