Re: [PATCH] i2c: mux: mlxcpld: fix i2c mux selection caching

2016-12-17 Thread Wolfram Sang
On Sat, Dec 17, 2016 at 09:29:11PM +0100, Peter Rosin wrote: > smbus functions return -ve on error, 0 on success. However, > __i2c_transfer() have a different return signature - -ve on error, or > number of buffers transferred (which may be zero or greater.) > > The upshot of this is that the sen

Re: [PATCH] fix code alignment with open parenthesis in drivers/staging/fbtft/fb_agm1264k-fl.c

2016-12-17 Thread Greg KH
On Sat, Dec 17, 2016 at 08:42:53PM -0600, Scott Matheina wrote: > Signed-off-by: Scott Matheina I can't take patches without any changelog text :( > --- > drivers/staging/fbtft/fb_agm1264k-fl.c | 17 ++--- > 1 file changed, 10 insertions(+), 7 deletions(-) > > diff --git a/drivers/

Re: [PATCH] spi: rockchip: support "sleep" pin configuration

2016-12-17 Thread Caesar Wang
在 2016年12月17日 08:59, Brian Norris 写道: In the pattern of many other devices, support a system-sleep pin configuration. Signed-off-by: Brian Norris Tested-by: Caesar Wang --- Documentation/devicetree/bindings/spi/spi-rockchip.txt | 7 +++ drivers/spi/spi-rockchip.c

Re: [PATCH] Input: mouse: synaptics - change msleep to usleep_range for small msecs

2016-12-17 Thread Igor Grinberg
Hi Aniroop Mathur, On 12/04/16 15:05, Aniroop Mathur wrote: > Hello Mr. Igor Grinberg > > On Sun, Dec 4, 2016 at 1:32 PM, Igor Grinberg wrote: >> Hi Aniroop Mathur, >> >> On 11/29/16 23:02, Aniroop Mathur wrote: >>> Dear Mike Rapoport, Igor Grinberg, >>> Greetings! >>> >>> I am Aniroop Mathur f

Re: [RFC3 nowrap: PATCH v7 00/18] ILP32 for ARM64

2016-12-17 Thread Yury Norov
On Fri, Oct 21, 2016 at 11:32:59PM +0300, Yury Norov wrote: > This series enables aarch64 with ilp32 mode, and as supporting work, > introduces ARCH_32BIT_OFF_T configuration option that is enabled for > existing 32-bit architectures but disabled for new arches (so 64-bit > off_t is is used by new

[PATCH] staging: rtl8712: changed struct members to __le32

2016-12-17 Thread Jannik Becher
Fixed sparse warning "cast to restricted __le32". struct recv_stat and struct phy_stat have always little endian members. Signed-off-by: Jannik Becher --- drivers/staging/rtl8712/rtl8712_recv.h | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/dri

Re: [PATCH v9 2/4] vcodec: mediatek: Add Mediatek JPEG Decoder Driver

2016-12-17 Thread Ricky Liang
On Wed, Dec 14, 2016 at 4:04 PM, Rick Chang wrote: > Add v4l2 driver for Mediatek JPEG Decoder > > Signed-off-by: Rick Chang > Signed-off-by: Minghsiu Tsai > --- > drivers/media/platform/Kconfig | 15 + > drivers/media/platform/Makefile |2 + > drivers/m

RE: [PATCH] qed: fix memory leak of a qed_spq_entry on error failure paths

2016-12-17 Thread Mintz, Yuval
> From: Colin Ian King > > A qed_spq_entry entry is allocated by qed_sp_init_request but is not kfree'd > if an error occurs, causing a memory leak. Fix this by kfree'ing it and also > setting *pp_ent to NULL to be safe. > > Found with static analysis by CoverityScan, CIDs 1389468-1389470 > > S

[PATCH] serial: pic32_uart: Fix 'request_irq' and 'free_irq' inconsistancy

2016-12-17 Thread Christophe JAILLET
'request_irq' and 'free_irq' should have the same 'dev_id'. Here one uses 'port', and the other one uses 'sport'. Signed-off-by: Christophe JAILLET --- drivers/tty/serial/pic32_uart.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/pic32_uart.c b/driv

[PATCH] staging: vc04_services: Fix bracing on single statement blocks

2016-12-17 Thread Aaron Moore
Fix coding style issue caught by checkpatch.pl relating to braces on single statement blocks. This issue was corrected in 3 locations. Signed-off-by: Aaron Moore --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_util.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) dif

[PATCH v10 2/3] Documentation: Add binding document for Lattice iCE40 FPGA manager

2016-12-17 Thread Joel Holdsworth
This adds documentation of the device tree bindings of the Lattice iCE40 FPGA driver for the FPGA manager framework. Signed-off-by: Joel Holdsworth Acked-by: Rob Herring Acked-by: Alan Tull Acked-by: Moritz Fischer Acked-by: Marek Vasut --- .../bindings/fpga/lattice-ice40-fpga-mgr.txt

[PATCH v10 3/3] fpga: Add support for Lattice iCE40 FPGAs

2016-12-17 Thread Joel Holdsworth
This patch adds support to the FPGA manager for configuring the SRAM of iCE40LM, iCE40LP, iCE40HX, iCE40 Ultra, iCE40 UltraLite and iCE40 UltraPlus devices, through slave SPI. Signed-off-by: Joel Holdsworth Reviewed-by: Marek Vasut Reviewed-by: Moritz Fischer Acked-by: Alan Tull --- drivers/f

[PATCH v10 1/3] of: Add vendor prefix for Lattice Semiconductor

2016-12-17 Thread Joel Holdsworth
Lattice Semiconductor Corporation is a manufacturer of integrated circuits and IP products, including low-power FPGAs, video connectivity devices and millimeter wave wireless products. Website: http://latticesemi.com Signed-off-by: Joel Holdsworth Acked-by: Rob Herring Acked-by: Alan Tull Acke

Re: OOM: Better, but still there on

2016-12-17 Thread Tetsuo Handa
Nils Holland wrote: > On Sat, Dec 17, 2016 at 11:44:45PM +0900, Tetsuo Handa wrote: > > On 2016/12/17 21:59, Nils Holland wrote: > > > On Sat, Dec 17, 2016 at 01:02:03AM +0100, Michal Hocko wrote: > > >> mount -t tracefs none /debug/trace > > >> echo 1 > /debug/trace/events/vmscan/enable > > >> cat

Re: [git pull] vfs.git pile 2

2016-12-17 Thread Al Viro
On Sat, Dec 17, 2016 at 07:34:45PM -0800, Linus Torvalds wrote: > > What else am I missing there? > > I absolutely *abhor* this part: > > *len = isize - pos_in; > > because the whole code then depends on the overflow checking a few > lines down, and it's not at all obvious. We ha

Re: [PATCH 5/5] firmware: add DECLARE_FW_CUSTOM_FALLBACK() annotation

2016-12-17 Thread Milo Kim
Hi Luis, On 12/17/2016 01:14 AM, Luis R. Rodriguez wrote: Milo if sysfs is used can't the old userspace be mapped to use the new sysfs interface through a wrapper of some sort ? What exactly would be needed to ensure old userspace will not break? LP5521 and LP5523 have two ways to load hex cod

STRICTLY CONFIDENTIAL

2016-12-17 Thread Acct. Dept.
I have important transaction for you as next of kin to claim US$18.37m Mail me on my private email: chimwia...@gmail.com so I can send you more details Thanks Mr.Chim Wai Kim MOVE TO INBOX=== DISCLAIMER: This email and any files it contains are confidential and

Re: [git pull] vfs.git pile 2

2016-12-17 Thread Linus Torvalds
On Sat, Dec 17, 2016 at 7:26 PM, Al Viro wrote: > > One, AFAICS - pointless *len = 0 in case of is_dedupe. Yup. That part made sense in the original code where len and ret were different. Now it just looks like a five-year old has been eating crayons and paste. > What else am I missing there?

Re: [git pull] vfs.git pile 2

2016-12-17 Thread Al Viro
[Darrick Cc'd] On Sat, Dec 17, 2016 at 06:49:55PM -0800, Linus Torvalds wrote: > On Fri, Dec 16, 2016 at 2:12 PM, Al Viro wrote: > > In this pile: > > * autofs-namespace series > > * dedupe stuff > > * more struct path constification > > When looking at the conflict, I loo

Re: [GIT PULL (resend)] readlink cleanup

2016-12-17 Thread Linus Torvalds
On Sat, Dec 17, 2016 at 7:21 PM, Linus Torvalds wrote: > > I pulled the non-controversial part of this branch, and made myself a > batch of popcorn for the rest of the discussion, Side note: I was pretty close to just pulling it all. Because do think the rest of the patch series looks quite rea

Re: [GIT PULL (resend)] readlink cleanup

2016-12-17 Thread Linus Torvalds
On Fri, Dec 16, 2016 at 2:48 PM, Miklos Szeredi wrote: > > Please consider pulling the following cleanup: > > git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git readlink I pulled the non-controversial part of this branch, and made myself a batch of popcorn for the rest of the discus

Re: [RFC PATCH 04/14] sparc64: load shared id into context register 1

2016-12-17 Thread David Miller
From: Mike Kravetz Date: Fri, 16 Dec 2016 10:35:27 -0800 > In current code, only context ID register 0 is set and used by the MMU. > On sun4v platforms that support MMU shared context, there is an additional > context ID register: specifically context register 1. When searching > the TLB, the MM

Re: [RFC PATCH 05/14] sparc64: Add PAGE_SHR_CTX flag

2016-12-17 Thread David Miller
From: Mike Kravetz Date: Fri, 16 Dec 2016 10:35:28 -0800 > @@ -166,6 +166,7 @@ bool kern_addr_valid(unsigned long addr); > #define _PAGE_EXEC_4V _AC(0x0080,UL) /* Executable Page > */ > #define _PAGE_W_4V _AC(0x0040,UL) /* Writable */ > #d

Re: [RFC PATCH 03/14] sparc64: routines for basic mmu shared context structure management

2016-12-17 Thread David Miller
From: Mike Kravetz Date: Fri, 16 Dec 2016 10:35:26 -0800 > +void smp_flush_shared_tlb_mm(struct mm_struct *mm) > +{ > + u32 ctx = SHARED_CTX_HWBITS(mm->context); > + > + (void)get_cpu();/* prevent preemption */ preempt_disable(); > + > + smp_cross_call(&xcall_flush_t

Re: [PATCH v2 0/8] power: supply: tps65217: Support USB charger feature

2016-12-17 Thread Milo Kim
On 12/18/2016 01:24 AM, Sebastian Reichel wrote: patches look fine, but these two patches must be reordered to fix bisectability. Otherwise after patch 1 the thread is not properly killed during driver removal. Thanks for your guidelines. The v3 patchset has been sent. Best regards, Milo

[PATCH v3 1/7] power: supply: tps65217: Use 'poll_task' on unloading the module

2016-12-17 Thread Milo Kim
Use the task_struct variable for running polling thread. If polling task is activated, then use it to stop running thread. This is a preceding step of supporting two interrupts of TPS65217 charger, so checking single IRQ number is not appropriate when the module is removed. Signed-off-by: Milo Kim

[PATCH v3 5/7] power: supply: tps65217: Use generic name for power supply property

2016-12-17 Thread Milo Kim
Replace 'ac_props' with 'charger_props'. Signed-off-by: Milo Kim --- drivers/power/supply/tps65217_charger.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/tps65217_charger.c b/drivers/power/supply/tps65217_charger.c index 5daf36192b8c..79afecafd9

[GIT] Networking

2016-12-17 Thread David Miller
1) Revert bogus nla_ok() change, from Alexey Dobriyan. 2) Various bpf validator fixes from Daniel Borkmann. 3) Add some necessary SET_NETDEV_DEV() calls to hsis_femac and hip04 drivers, from Dongpo Li. 4) Several ethtool ksettings conversions from Philippe Reynes. 5) Fix bugs in inet port m

[PATCH v3 7/7] power: supply: tps65217: Use generic charger name

2016-12-17 Thread Milo Kim
"tps65217-charger" is more appropriate name because the driver supports not only AC but also USB charger. Signed-off-by: Milo Kim --- drivers/power/supply/tps65217_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/tps65217_charger.c b/drivers/pow

[PATCH v3 6/7] power: supply: tps65217: Use generic name for get_property()

2016-12-17 Thread Milo Kim
Rename it as tps65217_charger_get_property(). Signed-off-by: Milo Kim --- drivers/power/supply/tps65217_charger.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/power/supply/tps65217_charger.c b/drivers/power/supply/tps65217_charger.c index 79afecafd945..63c

[PATCH v3 4/7] power: supply: tps65217: Use generic name for power supply structure

2016-12-17 Thread Milo Kim
Replace 'ac' of tps65217_charger structure with 'psy'. Signed-off-by: Milo Kim --- drivers/power/supply/tps65217_charger.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/power/supply/tps65217_charger.c b/drivers/power/supply/tps65217_charger.c index 4

[PATCH v3 0/7] power: supply: tps65217: Support USB charger feature

2016-12-17 Thread Milo Kim
TPS65217 device supports two charger inputs - AC and USB. Currently, only AC charger is supported. This patch-set adds USB charger feature. Tested on Beaglebone black. Patch 1: Preceding step of the main patch Patch 2: Main patch Patch 3 ~ 7: Naming changes for generic power supply class structur

[PATCH v3 3/7] power: supply: tps65217: Use generic name for charger online

2016-12-17 Thread Milo Kim
This driver supports AC and USB chargers. Generic name is preferred. Replace 'ac_online' with 'online'. Signed-off-by: Milo Kim --- drivers/power/supply/tps65217_charger.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/power/supply/tps65217_charger.c

[PATCH v3 2/7] power: supply: tps65217: Support USB charger interrupt

2016-12-17 Thread Milo Kim
TPS65217 has two charger interrupts - AC and USB power status change. Interrupt number in the TPS65217 driver data: IRQ number is only used on requesting the interrupt, so no need to keep it inside the driver data. Interrupt handler: Check not only AC but also USB charger status. In both

Re: [git pull] vfs.git pile 2

2016-12-17 Thread Linus Torvalds
On Fri, Dec 16, 2016 at 2:12 PM, Al Viro wrote: > In this pile: > * autofs-namespace series > * dedupe stuff > * more struct path constification When looking at the conflict, I looked at that part of vfs_clone_file_prep_inodes(), and reacted to the insanity. WTF?

Re: [PATCH] net: mv643xx_eth: fix build failure

2016-12-17 Thread David Miller
From: Sudip Mukherjee Date: Sat, 17 Dec 2016 00:45:05 + > The build of sparc allmodconfig fails with the error: > "of_irq_to_resource" [drivers/net/ethernet/marvell/mv643xx_eth.ko] > undefined! > > of_irq_to_resource() is defined when CONFIG_OF_IRQ is defined. And also > CONFIG_OF_IRQ

Re: [PATCH] isdn: Constify some function parameters

2016-12-17 Thread David Miller
From: Kees Cook Date: Fri, 16 Dec 2016 13:40:47 -0800 > From: Emese Revfy > > The coming initify gcc plugin expects const pointer types, and caught > some __printf arguments that weren't const yet. This fixes those. > > Signed-off-by: Emese Revfy > [kees: expanded commit message] > Signed-off

[PATCH] fix code alignment with open parenthesis in drivers/staging/fbtft/fb_agm1264k-fl.c

2016-12-17 Thread Scott Matheina
Signed-off-by: Scott Matheina --- drivers/staging/fbtft/fb_agm1264k-fl.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/drivers/staging/fbtft/fb_agm1264k-fl.c b/drivers/staging/fbtft/fb_agm1264k-fl.c index a6e3af7..4e371ed 100644 --- a/drivers/staging/fbtf

RE: [RFC 00/10] implement alternative and much simpler id allocator

2016-12-17 Thread Matthew Wilcox
From: Matthew Wilcox > From: Matthew Wilcox > > Heh, I was thinking about that too. The radix tree supports "exceptional > > entries" which have the bottom bit set. On a 64-bit machine, we could use > 62 > > of the bits in the radix tree root to store the ID bitmap. I'm a little > > wary of > t

Re: [PATCH net] qed: fix old-style function definition

2016-12-17 Thread David Miller
From: Arnd Bergmann Date: Fri, 16 Dec 2016 09:47:41 +0100 > The newly added file causes a harmless warning, with "make W=1": > > drivers/net/ethernet/qlogic/qed/qed_iscsi.c: In function 'qed_get_iscsi_ops': > drivers/net/ethernet/qlogic/qed/qed_iscsi.c:1268:29: warning: old-style > function def

Re: [PATCH] net: ipv6: check route protocol when deleting routes

2016-12-17 Thread David Miller
From: Mantas Mikulėnas Date: Fri, 16 Dec 2016 10:30:59 +0200 > The protocol field is checked when deleting IPv4 routes, but ignored for > IPv6, which causes problems with routing daemons accidentally deleting > externally set routes (observed by multiple bird6 users). > > This can be verified us

Re: [PATCH] net: sfc: use new api ethtool_{get|set}_link_ksettings

2016-12-17 Thread David Miller
From: Philippe Reynes Date: Thu, 15 Dec 2016 00:12:53 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH] net: chelsio: cxgb2: use new api ethtool_{get|set}_link_ksettings

2016-12-17 Thread David Miller
From: Philippe Reynes Date: Sun, 11 Dec 2016 22:47:50 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH] net: chelsio: cxgb3: use new api ethtool_{get|set}_link_ksettings

2016-12-17 Thread David Miller
From: Philippe Reynes Date: Mon, 12 Dec 2016 00:27:49 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

Re: [PATCH] net: cirrus: ep93xx: use new api ethtool_{get|set}_link_ksettings

2016-12-17 Thread David Miller
From: Philippe Reynes Date: Mon, 12 Dec 2016 23:28:33 +0100 > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > Signed-off-by: Philippe Reynes Applied.

[PATCH] ALSA: snd-usb: fix IRQ triggered NULL pointer dereference

2016-12-17 Thread Ioan-Adrian Ratiu
Commit 16200948d835 ("ALSA: usb-audio: Fix race at stopping the stream") fixes a race-codition but it also introduces another really nasty data race regression which makes my usb sound card [1] completely useless, throwing the kernel into a panic if anything from userspace tries to start playback.

Re: OOM: Better, but still there on

2016-12-17 Thread Xin Zhou
Hi, The system supposes to have special memory reservation for coredump and other debug info when encountering panic, the size seems configurable. Thanks, Xin     Sent: Saturday, December 17, 2016 at 6:44 AM From: "Tetsuo Handa" To: "Nils Holland" , "Michal Hocko" Cc: linux-kernel@vger.kernel.o

Re: [PATCH 1/2] net: ethernet: sxgbe: remove private tx queue lock

2016-12-17 Thread Francois Romieu
Pavel Machek : [...] > Won't this up/down the interface, in a way userspace can observe? It won't up/down the interface as it doesn't exactly mimic what the network code does (there's more than rtnl_lock). For the same reason it's broken if it races with the transmit path: it can release driver

Re: [PATCH v3 1/3] siphash: add cryptographically secure hashtable function

2016-12-17 Thread Christian Kujau
On Thu, 15 Dec 2016, Jason A. Donenfeld wrote: > > I'd still drop the "24" unless you really think we're going to have > > multiple variants coming into the kernel. > > Okay. I don't have a problem with this, unless anybody has some reason > to the contrary. What if the 2/4-round version falls an

[PATCH v2] usb: musb: debugfs: allow forcing host mode together with speed in testmode

2016-12-17 Thread Pali Rohár
Based on the musb ug, force_host bit is allowed to be set along with force_hs or force_fs bit. It could help to implement forced host mode via testmode on Nokia N900. Signed-off-by: Pali Rohár --- Changes in v2: * Use == instead of & for comparison of testmode --- drivers/usb/musb/musb_debugfs.

Re: [GIT PULL] kbuild changes for v4.9-rc1

2016-12-17 Thread Linus Torvalds
On Sat, Dec 17, 2016 at 12:57 AM, Jiri Slaby wrote: > > Yes, disk drivers won't load: > [2.141973] virtio_pci: disagrees about version of symbol mcount > [2.144415] virtio_pci: Unknown symbol mcount (err -22) This makes no sense. mcount isn't even one of the symbols that the patch by Ada

[PATCH] net: wireless: marvell: libertas: constify cfg80211_ops structures

2016-12-17 Thread Bhumika Goyal
cfg80211_ops structures are only passed as an argument to the function wiphy_new. This argument is of type const, so cfg80211_ops strutures having this property can be declared as const. Done using Coccinelle @r1 disable optional_qualifier @ identifier i; position p; @@ static struct cfg80211_ops

Re: Documentation/unaligned-memory-access.txt: fix incorrect comparison operator

2016-12-17 Thread Ozgur Karatas
17.12.2016, 19:43, "Cihangir Akturk" : > In the actual implementation ether_addr_equal function tests for equality to 0 > when returning. It seems in commit 0d74c4 it is somehow overlooked to change > this operator to reflect the actual function. why this "return" function need to be ==0? I think,

[PATCH] net: wireless: ath: wil6210: constify cfg80211_ops structures

2016-12-17 Thread Bhumika Goyal
cfg80211_ops structures are only passed as an argument to the function wiphy_new. This argument is of type const, so cfg80211_ops strutures having this property can be declared as const. Done using Coccinelle @r1 disable optional_qualifier @ identifier i; position p; @@ static struct cfg80211_ops

[BUG] kernel freeze, rcu_sched self-detected stall on CPU

2016-12-17 Thread Johanna Abrahamsson
A bug has been introduced in ipc/sem.c by a patch '[PATCH -next 2/2] ipc/sem: avoid idr tree lookup for interrupted semop' (https://marc.info/?l=linux-kernel&m=147870885903619, commit 370b262c896e5565b271a3ea3abee4d0914ba443). The bug results in a kernel freeze and several "INFO: rcu_sched self-

[GIT PULL] kconfig update for v4.10-rc1

2016-12-17 Thread Michal Marek
Hi Linus, please pull these kconfig bits for v4.10-rc1: - make xconfig gui fixes - make nconfig fix for options with long prompts - fix make nconfig warning when pkg-config forces -D_GNU_SOURCE Michal The following changes since commit 1001354ca34179f3db924eb66672442a173147dc: Linux 4.9-rc1 (

[GIT PULL] kbuild updates for v4.10-rc1

2016-12-17 Thread Michal Marek
Hi Linus, please pull these kbuild updates for v4.10-rc1: - Prototypes for x86 asm-exported symbols (Adam Borowski) and a warning about missing CRCs (Nick Piggin) - asm-exports fix for LTO (Nicolas Pitre) - Thin archives improvements (Nick Piggin) - Linker script fix for CONFIG_LD_DEAD_CODE_DATA

[GIT PULL] kbuild misc updates for v4.10-rc1

2016-12-17 Thread Michal Marek
Hi Linus, please pull these non-core kbuild bits for v4.10-rc1: - One new coccinelle check and improvements to irqf_oneshot.cocci - make rpm POSIX compatibility fix - make deb-pkg arm64 cross-compiling fix. I forgot to send this one during the v4.9 rc-phase, therefor the pull request is based on

Re: [PATCH v1 & v6 1/2] PM/devfreq: add suspend frequency support

2016-12-17 Thread Chanwoo Choi
2016-12-18 3:19 GMT+09:00 Tobias Jakobi : > Hey Chanwoo, > > > Chanwoo Choi wrote: >> 2016-12-18 0:13 GMT+09:00 Tobias Jakobi : >>> Hey guys, >>> >>> Chanwoo Choi wrote: Hi Lin, 2016-11-24 18:54 GMT+09:00 Chanwoo Choi : > Hi Lin, > > On 2016년 11월 24일 18:28, Chanwoo Choi w

[PATCH] i2c: mux: mlxcpld: fix i2c mux selection caching

2016-12-17 Thread Peter Rosin
smbus functions return -ve on error, 0 on success. However, __i2c_transfer() have a different return signature - -ve on error, or number of buffers transferred (which may be zero or greater.) The upshot of this is that the sense of the text is reversed when using the mux on a bus supporting the m

[PATCH v2] x86/floppy: use designated initializers

2016-12-17 Thread Kees Cook
Prepare to mark sensitive kernel structures for randomization by making sure they're using designated initializers. These were identified during allyesconfig builds of x86, arm, and arm64, with most initializer fixes extracted from grsecurity. Signed-off-by: Kees Cook --- v2: - aligned rhs of in

Re: [PATCH] net: use designated initializers

2016-12-17 Thread Kees Cook
On Sat, Dec 17, 2016 at 8:57 AM, David Miller wrote: > From: Kees Cook > Date: Fri, 16 Dec 2016 16:58:58 -0800 > >> Prepare to mark sensitive kernel structures for randomization by making >> sure they're using designated initializers. These were identified during >> allyesconfig builds of x86, ar

RE: [PATCH] i2c: mux: mlxcpld: fix i2c mux selection caching

2016-12-17 Thread Vadim Pasternak
> -Original Message- > From: Peter Rosin [mailto:p...@axentia.se] > Sent: Saturday, December 17, 2016 10:29 PM > To: linux-kernel@vger.kernel.org > Cc: Peter Rosin ; Vadim Pasternak > ; Michael Shych ; > Wolfram Sang ; linux-...@vger.kernel.org > Subject: [PATCH] i2c: mux: mlxcpld: fix i2

Re: [PATCH] staging: rtl8712: changed struct members to __le32

2016-12-17 Thread Larry Finger
On 12/17/2016 01:39 PM, Jannik Becher wrote: Fixed sparse warning "cast to restricted __le32". struct recv_stat and struct phy_stat have always little endian members. Signed-off-by: Jannik Becher --- drivers/staging/rtl8712/rtl8712_recv.h | 28 ++-- 1 file changed, 14 i

Re: [PATCH] cgroup: Add new capability to allow a process to migrate other tasks between cgroups

2016-12-17 Thread Mickaël Salaün
Hi, If I understand correctly, this patch is intended to add a delegation feature to cgroup v1, which does not really make sense for the v2 because of the clean cgroup-v2 delegation design. However, this new capability impact both versions. As Michael said, capabilities are a limited numbers of s

Re: OOM: Better, but still there on

2016-12-17 Thread Nils Holland
On Sat, Dec 17, 2016 at 11:44:45PM +0900, Tetsuo Handa wrote: > On 2016/12/17 21:59, Nils Holland wrote: > > On Sat, Dec 17, 2016 at 01:02:03AM +0100, Michal Hocko wrote: > >> mount -t tracefs none /debug/trace > >> echo 1 > /debug/trace/events/vmscan/enable > >> cat /debug/trace/trace_pipe > trace

Re: RFC: capabilities(7): notes for kernel developers

2016-12-17 Thread Michael Kerrisk (man-pages)
On 12/16/2016 09:10 PM, Serge E. Hallyn wrote: > Quoting Michael Kerrisk (man-pages) (mtk.manpa...@gmail.com): >> On 12/16/2016 01:44 AM, Casey Schaufler wrote: >>> On 12/15/2016 4:31 PM, John Stultz wrote: On Thu, Dec 15, 2016 at 12:40 PM, Casey Schaufler wrote: > On 12/15/2016 11:4

Re: [PATCH] i2c: mux: mlxcpld: fix i2c mux selection caching

2016-12-17 Thread Peter Rosin
On 2016-12-17 21:29, Peter Rosin wrote: > smbus functions return -ve on error, 0 on success. However, > __i2c_transfer() have a different return signature - -ve on error, or > number of buffers transferred (which may be zero or greater.) > > The upshot of this is that the sense of the text is rev

Re: [TSN RFC v2 0/9] TSN driver for the kernel

2016-12-17 Thread Richard Cochran
On Sat, Dec 17, 2016 at 10:05:54AM +0100, Henrik Austad wrote: > I'm sending out a new set now because, what I have works _fairly_ well for > testing and a way to see what you can do with AVB. Using spotify to play > music on random machines is quite entertaining. You have missed the point about

Re: Potential issues (security and otherwise) with the current cgroup-bpf API

2016-12-17 Thread Andy Lutomirski
On Sat, Dec 17, 2016 at 11:26 AM, Mickaël Salaün wrote: > > On 17/12/2016 19:18, Andy Lutomirski wrote: >> Hi all- >> >> I apologize for being rather late with this. I didn't realize that >> cgroup-bpf was going to be submitted for Linux 4.10, and I didn't see >> it on the linux-api list, so I mi

Re: What is the function of arch/x86/purgatory/purgatory.c?

2016-12-17 Thread Larry Finger
On 12/17/2016 01:46 PM, Al Viro wrote: On Sat, Dec 17, 2016 at 11:52:05AM -0600, Larry Finger wrote: Upon examination of the routine, I can see that if purgatory() should be static, then none of the code here will ever be accessed by any part of the kernel. Is there some bit of magic that is ab

probably serious conntrack/netfilter panic, 4.8.14, timers and intel turbo

2016-12-17 Thread Denys Fedoryshchenko
Hi, I posted recently several netfilter related crashes, didn't got any answers, one of them started to happen quite often on loaded NAT (17Gbps), so after trying endless ways to make it stable, i found out that in backtrace i can often see timers, and this bug probably appearing on older rel

Re: What is the function of arch/x86/purgatory/purgatory.c?

2016-12-17 Thread Al Viro
On Sat, Dec 17, 2016 at 11:52:05AM -0600, Larry Finger wrote: > Upon examination of the routine, I can see that if purgatory() should be > static, then none of the code here will ever be accessed by any part of the > kernel. Is there some bit of magic that is above my understanding, or is > this a

[PATCH] staging: rtl8712: changed struct members to __le32

2016-12-17 Thread Jannik Becher
Fixed sparse warning "cast to restricted __le32". struct recv_stat and struct phy_stat have always little endian members. Signed-off-by: Jannik Becher --- drivers/staging/rtl8712/rtl8712_recv.h | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/dri

Re: Potential issues (security and otherwise) with the current cgroup-bpf API

2016-12-17 Thread Mickaël Salaün
On 17/12/2016 19:18, Andy Lutomirski wrote: > Hi all- > > I apologize for being rather late with this. I didn't realize that > cgroup-bpf was going to be submitted for Linux 4.10, and I didn't see > it on the linux-api list, so I missed the discussion. > > I think that the inet ingress, egress

[GIT PULL] ARM: exynos: Late mach/soc for v4.10

2016-12-17 Thread Krzysztof Kozlowski
Hi, After our discussions about not-breaking out-of-tree DTB with SCU change in DeviceTree, I prepared an updated pull request without the questioned changes. Ten days ago I prepared a tag, pushed it... and apparently forgot to send pull request. At least, I don't have such email in my outbox. D

Re: [PATCH V5] i2c: designware: fix wrong Tx/Rx FIFO for ACPI

2016-12-17 Thread Wolfram Sang
On Wed, Dec 14, 2016 at 04:23:58PM +0700, Tin Huynh wrote: > ACPI always sets Tx/Rx FIFO to 32. This configuration will > cause problem if the IP core supports a FIFO size of less than 32. > The driver should read the FIFO size from the IP and select the smaller > one of the two. > > Signed-off-by

Re: [PATCH V1] i2c: xgene: Fix missing code of DTB support

2016-12-17 Thread Wolfram Sang
On Wed, Dec 14, 2016 at 02:17:26PM +0700, Tin Huynh wrote: > In DTB case, i2c-core doesn't create slave device which is installed > on i2c-xgene bus because of missing code in this driver. > This patch fixes this issue. > > Signed-off-by: Tin Huynh Applied to for-current, thanks! signature.as

Re: [PATCH v1 & v6 1/2] PM/devfreq: add suspend frequency support

2016-12-17 Thread Tobias Jakobi
Hey Chanwoo, Chanwoo Choi wrote: > 2016-12-18 0:13 GMT+09:00 Tobias Jakobi : >> Hey guys, >> >> Chanwoo Choi wrote: >>> Hi Lin, >>> >>> 2016-11-24 18:54 GMT+09:00 Chanwoo Choi : Hi Lin, On 2016년 11월 24일 18:28, Chanwoo Choi wrote: > Hi Lin, > > On 2016년 11월 24일 17:34, hl

Potential issues (security and otherwise) with the current cgroup-bpf API

2016-12-17 Thread Andy Lutomirski
Hi all- I apologize for being rather late with this. I didn't realize that cgroup-bpf was going to be submitted for Linux 4.10, and I didn't see it on the linux-api list, so I missed the discussion. I think that the inet ingress, egress etc filters are a neat feature, but I think the API has som

What is the function of arch/x86/purgatory/purgatory.c?

2016-12-17 Thread Larry Finger
While checking the rtlwifi family of drivers using Sparse, I got the following warnings: CHECK arch/x86/purgatory/purgatory.c arch/x86/purgatory/purgatory.c:21:15: warning: symbol 'backup_dest' was not declared. Should it be static? arch/x86/purgatory/purgatory.c:22:15: warning: symbol 'bac

[RFC 1/1] MicroSemi Switchtec management interface driver

2016-12-17 Thread Logan Gunthorpe
Microsemi's "Switchtec" line of PCI switch devices is already supported by the kernel with standard PCI switch drivers. However, the Switchtec device advertises a special management endpoint which enables some additional functionality. This includes: * Packet and Byte Counters * Firmware Upgrade

[RFC 0/1] New PCI Switch Management Driver

2016-12-17 Thread Logan Gunthorpe
Hi, [Appologies: this is a resend for some people. Due to a configuration error the original email was rejected by the mailing lists. I hope this one makes it!] We're looking to get some initial feedback on a new driver for a line of PCIe switches produced and produced and sold by Microsemi. The

Documentation/unaligned-memory-access.txt: fix incorrect comparison operator

2016-12-17 Thread Cihangir Akturk
In the actual implementation ether_addr_equal function tests for equality to 0 when returning. It seems in commit 0d74c4 it is somehow overlooked to change this operator to reflect the actual function. Signed-off-by: Cihangir Akturk --- Documentation/unaligned-memory-access.txt | 2 +- 1 file ch

Re: [PATCH v4 2/3] perf tool: add PERF_RECORD_NAMESPACES to include namespaces related info

2016-12-17 Thread Jiri Olsa
On Fri, Dec 16, 2016 at 12:07:20AM +0530, Hari Bathini wrote: SNIP > + > +int thread__set_namespaces(struct thread *thread, u64 timestamp, > +struct namespaces_event *event) > +{ > + struct namespaces *new, *curr = thread__namespaces(thread); > + > + new = namespac

Re: [PATCH 1/2] net: ethernet: sxgbe: remove private tx queue lock

2016-12-17 Thread Pavel Machek
On Thu 2016-12-15 23:33:22, Lino Sanfilippo wrote: > On 15.12.2016 22:32, Lino Sanfilippo wrote: > > > Ah ok. Then maybe priv->hw->dma->stop_tx() does not do the job correctly > > (stop the > > tx path properly) and the HW is still active on the tx path while the tx > > buffers are > > freed. OT

Re: usb/core: warning in usb_create_ep_devs/sysfs_create_dir_ns

2016-12-17 Thread Andrey Konovalov
On Fri, Dec 16, 2016 at 7:01 PM, Alan Stern wrote: > On Mon, 12 Dec 2016, Andrey Konovalov wrote: > >> Hi! >> >> While running the syzkaller fuzzer I've got the following error report. >> >> On commit 3c49de52d5647cda8b42c4255cf8a29d1e22eff5 (Dev 2). >> >> WARNING: CPU: 2 PID: 865 at fs/sysfs/dir.

Re: OOM: Better, but still there on

2016-12-17 Thread Nils Holland
On Sat, Dec 17, 2016 at 11:44:45PM +0900, Tetsuo Handa wrote: > On 2016/12/17 21:59, Nils Holland wrote: > > On Sat, Dec 17, 2016 at 01:02:03AM +0100, Michal Hocko wrote: > >> mount -t tracefs none /debug/trace > >> echo 1 > /debug/trace/events/vmscan/enable > >> cat /debug/trace/trace_pipe > trace

Re: [PATCH] net/x25: use designated initializers

2016-12-17 Thread David Miller
From: Kees Cook Date: Fri, 16 Dec 2016 17:03:39 -0800 > Prepare to mark sensitive kernel structures for randomization by making > sure they're using designated initializers. These were identified during > allyesconfig builds of x86, arm, and arm64, with most initializer fixes > extracted from grs

Re: [PATCH] isdn: use designated initializers

2016-12-17 Thread David Miller
From: Kees Cook Date: Fri, 16 Dec 2016 17:01:42 -0800 > Prepare to mark sensitive kernel structures for randomization by making > sure they're using designated initializers. These were identified during > allyesconfig builds of x86, arm, and arm64, with most initializer fixes > extracted from grs

Re: [PATCH] WAN: use designated initializers

2016-12-17 Thread David Miller
From: Kees Cook Date: Fri, 16 Dec 2016 16:59:18 -0800 > Prepare to mark sensitive kernel structures for randomization by making > sure they're using designated initializers. These were identified during > allyesconfig builds of x86, arm, and arm64, with most initializer fixes > extracted from grs

Re: [PATCH] bna: use designated initializers

2016-12-17 Thread David Miller
From: Kees Cook Date: Fri, 16 Dec 2016 17:00:54 -0800 > Prepare to mark sensitive kernel structures for randomization by making > sure they're using designated initializers. These were identified during > allyesconfig builds of x86, arm, and arm64, with most initializer fixes > extracted from grs

Re: [PATCH] net: use designated initializers

2016-12-17 Thread David Miller
From: Kees Cook Date: Fri, 16 Dec 2016 16:58:58 -0800 > Prepare to mark sensitive kernel structures for randomization by making > sure they're using designated initializers. These were identified during > allyesconfig builds of x86, arm, and arm64, with most initializer fixes > extracted from grs

Re: [PATCH] isdn/gigaset: use designated initializers

2016-12-17 Thread David Miller
From: Kees Cook Date: Fri, 16 Dec 2016 16:58:06 -0800 > Prepare to mark sensitive kernel structures for randomization by making > sure they're using designated initializers. These were identified during > allyesconfig builds of x86, arm, and arm64, with most initializer fixes > extracted from grs

Re: [PATCH] ATM: use designated initializers

2016-12-17 Thread David Miller
From: Kees Cook Date: Fri, 16 Dec 2016 16:58:43 -0800 > Prepare to mark sensitive kernel structures for randomization by making > sure they're using designated initializers. These were identified during > allyesconfig builds of x86, arm, and arm64, with most initializer fixes > extracted from grs

Re: [PATCH] block: loose check on sg gap

2016-12-17 Thread Jens Axboe
On 12/17/2016 03:49 AM, Ming Lei wrote: > If the last bvec of the 1st bio and the 1st bvec of the next > bio are contineous physically, and the latter can be merged > to last segment of the 1st bio, we should think they don't > violate sg gap(or virt boundary) limit. > > Both Vitaly and Dexuan rep

Re: [PATCH v1 & v6 1/2] PM/devfreq: add suspend frequency support

2016-12-17 Thread Chanwoo Choi
2016-12-18 0:13 GMT+09:00 Tobias Jakobi : > Hey guys, > > Chanwoo Choi wrote: >> Hi Lin, >> >> 2016-11-24 18:54 GMT+09:00 Chanwoo Choi : >>> Hi Lin, >>> >>> On 2016년 11월 24일 18:28, Chanwoo Choi wrote: Hi Lin, On 2016년 11월 24일 17:34, hl wrote: > Hi Chanwoo Choi, > > >

Re: [PATCH v3 0/2] power: supply: add sbs-charger driver

2016-12-17 Thread Sebastian Reichel
Hi, On Tue, Dec 13, 2016 at 11:41:01AM +0100, Nicolas Saenz Julienne wrote: > On 24/11/16 13:33, Nicolas Saenz Julienne wrote: > > Hi, > > > > This series adds support for all SBS compatible battery chargers, as defined > > here: http://sbs-forum.org/specs/sbc110.pdf. > > > > The first patch cha

Re: [PATCH v3 2/2] dt-bindings: power: add bindings for sbs-charger

2016-12-17 Thread Sebastian Reichel
Hi, On Thu, Nov 24, 2016 at 01:33:43PM +0100, Nicolas Saenz Julienne wrote: > Adds device tree documentation for SBS charger compilant devices as defined > here: http://sbs-forum.org/specs/sbc110.pdf > > Signed-off-by: Nicolas Saenz Julienne > --- > v2 -> v3: > - add part number as compatible >

Re: [PATCH v2 0/8] power: supply: tps65217: Support USB charger feature

2016-12-17 Thread Sebastian Reichel
Hi, On Fri, Dec 09, 2016 at 04:48:58PM +0900, Milo Kim wrote: > TPS65217 device supports two charger inputs - AC and USB. > Currently, only AC charger is supported. This patch-set adds USB charger > feature. Tested on Beaglebone black. > > Patch 1: Main patch > Patch 2, 3: Clean up for charger d

  1   2   >