Re: [PATCH 1/2] acpi: Fix the mapping handle in case of declaring processors using the Device operator

2017-02-16 Thread Dou Liyang
At 02/16/2017 09:06 PM, Hanjun Guo wrote: On 2017/2/16 18:38, Dou Liyang wrote: In ACPI spec, we can declare processors using both Processor and Device operator. But now, we just handle the mapping of processors which are declared by Processor operator. It misses the processors declared by De

linux-next: manual merge of the tip tree with the powerpc tree

2017-02-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: arch/powerpc/kernel/asm-offsets.c between commit: 454656155110 ("powerpc/asm: Use OFFSET macro in asm-offsets.c") from the powerpc tree and commit: 8c8b73c4811f ("sched/cputime, powerpc: Prepare accounting structure for

Re: [PATCH] x86/mce: Keep quiet in case of broadcasted mce after system panic

2017-02-16 Thread Xunlei Pang
On 02/16/2017 at 08:22 PM, Borislav Petkov wrote: > On Thu, Feb 16, 2017 at 07:52:09PM +0800, Xunlei Pang wrote: >> then mce will be broadcast to the other cpus which are still running >> in the first kernel(i.e. looping in crash_nmi_callback). > Simple: the crash code should really mark CP

linux-next: manual merge of the tip tree with the kspp tree

2017-02-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: arch/x86/Kconfig.debug between commit: ad21fc4faa2a ("arch: Move CONFIG_DEBUG_RODATA and CONFIG_SET_MODULE_RONX to be common") from the kspp tree and commit: 3ad38ceb2769 ("x86/mm: Remove CONFIG_DEBUG_NX_TEST") from t

linux-next: manual merge of the tip tree with the drm tree

2017-02-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: include/linux/kref.h between commit: 56e3d1cd05cc ("kref: prefer atomic_inc_not_zero to atomic_add_unless") from the drm tree and commit: 10383aea2f44 ("kref: Implement 'struct kref' using refcount_t") from the tip tre

[PATCH] printk: use rcuidle console tracepoint

2017-02-16 Thread Sergey Senozhatsky
Use rcuidle console tracepoint because, apparently, it may be issued from an idle CPU: [2.581939] hw-breakpoint: Failed to enable monitor mode on CPU 0. [2.591613] hw-breakpoint: CPU 0 failed to disable vector catch [2.597686] [2.597717] === [2.59771

Re: [PATCH] building libtraceevent with clang

2017-02-16 Thread Steven Rostedt
On Mon, 13 Feb 2017 14:20:20 -0300 Arnaldo Carvalho de Melo wrote: > Cc: Adrian Hunter > Cc: David Ahern > Cc: Jiri Olsa > Cc: Namhyung Kim > Cc: Wang Nan > Link: http://lkml.kernel.org/n/tip-b5wyjocel55gorl2jq2cb...@git.kernel.org > Signed-off-by: Arnaldo Carv

Re: [RFC 1/1] shiftfs: uid/gid shifting bind mount

2017-02-16 Thread Eric W. Biederman
James Bottomley writes: > On Thu, 2017-02-16 at 11:42 -0500, Vivek Goyal wrote: >> On Thu, Feb 16, 2017 at 07:51:58AM -0800, James Bottomley wrote: >> >> [..] >> > > Two levels of checks will simplify this a bit. Top level inode >> > > will belong to the user namespace of caller and checks shou

Re: swap_cluster_info lockdep splat

2017-02-16 Thread Huang, Ying
Hi, Hugh, Hugh Dickins writes: > On Thu, 16 Feb 2017, Tim Chen wrote: >> >> > I do not understand your zest for putting wrappers around every little >> > thing, making it all harder to follow than it need be.  Here's the patch >> > I've been running with (but you have a leak somewhere, and I do

[RFC 4/5] iwlwifi: move opmode loading to shared routine

2017-02-16 Thread Luis R. Rodriguez
This helps us compartmentalize all last required opmode work and declutter the async firmware callback. Signed-off-by: Luis R. Rodriguez --- drivers/net/wireless/intel/iwlwifi/iwl-drv.c | 33 +++- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/drivers/net

[RFC 0/5] iwlwifi: enhance final opmode work

2017-02-16 Thread Luis R. Rodriguez
Although these are iwlwifi patches, there are some core module, async, firmware questions I'd appreciate a bit more review from folks on -- tx! Firmware folks / async folks / module folks: I started to look to generalize the way the iwlwifi driver uses the firmware API to request for firmware thr

[RFC 5/5] iwlwifi: convert final opmode work into a workqueue

2017-02-16 Thread Luis R. Rodriguez
This lets us offload and share all the final opmode related work necessary for either an opmode driver or new device. This has the most impact for opmode drivers as this now offloads opmode start for each device onto the workqueue. Signed-off-by: Luis R. Rodriguez --- drivers/net/wireless/intel/

[RFC 3/5] iwlwifi: share opmode start work code

2017-02-16 Thread Luis R. Rodriguez
The firmware async callback and the opmode registration share some functionality -- to start the drv's opmode. Move this work into a helper which is shared. This should help us share fixes should these diverging code paths change. Signed-off-by: Luis R. Rodriguez --- drivers/net/wireless/intel/i

[RFC 2/5] iwlwifi: fix request_module() use

2017-02-16 Thread Luis R. Rodriguez
The return value of request_module() being 0 does not mean that the driver which was requested has loaded. To properly check that the driver was loaded each driver can use internal mechanisms to vet the driver is now present. The helper try_then_request_module() was added to help with this, allowin

[RFC 1/5] iwlwifi: fix drv cleanup on opmode registration failure

2017-02-16 Thread Luis R. Rodriguez
The firmware async callback handles the device's opmode start call, but optionally also allows opmode registration to take care of its opmode start. If the firmware callback handles it its error path in case of opmode start failure has a few pieces of code missing from the opmode registration. The

Re: [PATCH] printk: use rcuidle console tracepoint

2017-02-16 Thread Steven Rostedt
On Fri, 17 Feb 2017 10:59:32 +0900 Sergey Senozhatsky wrote: file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c > index 7180088cbb23..34da86e73d00 100644 > --- a/kernel/printk/printk.c > +++ b/kernel/printk/printk.c > @@ -1563,7 +1563,7

Re: [RFC 1/1] shiftfs: uid/gid shifting bind mount

2017-02-16 Thread Al Viro
On Sat, Feb 04, 2017 at 11:19:32AM -0800, James Bottomley wrote: > +static const struct dentry_operations shiftfs_dentry_ops = { > + .d_release = shiftfs_d_release, > + .d_real = shiftfs_d_real, > +}; In other words, those dentries are *never* revalidated. Nevermind that und

Re: [Suggestion/Problems] perf annoate: Some problems related to the source code view and Improvement of it with line numbers

2017-02-16 Thread Taeung Song
Hi, Arnaldo :) Regarding perf annotate: 1) Problem : wrong line numbers on perf-annotate (both stdio and TUI) 2) Problem : wrong sum of overhead(percent) matching source lines 3) Suggestion : new option showing only source code per function with overhead info (to be more readable

Re: swap_cluster_info lockdep splat

2017-02-16 Thread Huang, Ying
"Huang, Ying" writes: > Hi, Hugh, > > Hugh Dickins writes: > >> On Thu, 16 Feb 2017, Tim Chen wrote: >>> >>> > I do not understand your zest for putting wrappers around every little >>> > thing, making it all harder to follow than it need be.  Here's the patch >>> > I've been running with (but

Re: [PATCH v5] drivers/misc: Add Aspeed LPC control driver

2017-02-16 Thread Joel Stanley
On Tue, Feb 14, 2017 at 5:00 PM, Cyril Bur wrote: > diff --git a/drivers/misc/aspeed-lpc-ctrl.c b/drivers/misc/aspeed-lpc-ctrl.c > new file mode 100644 > index ..9b51548e9d81 > --- /dev/null > +++ b/drivers/misc/aspeed-lpc-ctrl.c > +static long aspeed_lpc_ctrl_ioctl(struct file *file,

[git pull] drm fixes for v4.10-final

2017-02-16 Thread Dave Airlie
Hi Linus, Just two last minute fixes, one for DP MST oopses and one for a radeon regression. Dave. The following changes since commit 7089db84e356562f8ba737c29e472cc42d530dbc: Linux 4.10-rc8 (2017-02-12 13:03:20 -0800) are available in the git repository at: git://people.freedesktop.org/~

[PATCH 1/2] Support Pegasus 3 product

2017-02-16 Thread Charles Chiou
From: Charles Pegasus series is a RAID support product by using Thunderbolt technology. The newest product, Pegasus 3(P3) is support Thunderbolt 3 technology with another chip. 1.Change driver version. 2.Add P3 VID, DID and define it's device address. 3.P3 use msi interrupt, so stex_request_irq

[PATCH 2/2] Add S6 support

2017-02-16 Thread Charles Chiou
From: Charles 1.Add reboot notifier and register it in stex_probe for all supported device. 2.For all supported device in restart flow, we get a callback from notifier and set S6flag for stex_shutdown & stex_hba_stop to send restart command to FW. Signed-off-by: Charles.Chiou Signed-off-by: Pa

Re: [RFC 1/1] shiftfs: uid/gid shifting bind mount

2017-02-16 Thread Al Viro
On Thu, Feb 16, 2017 at 07:56:30AM -0800, James Bottomley wrote: > > Hi James, > > > > Should it be "return d_splice_alias()" so that if we find an alias it > > is returned back to caller and passed in dentry can be freed. Though > > I don't know in what cases alias can be found. And if alias i

Re: [PATCH 00/10] fujitsu-laptop: renames and cleanups

2017-02-16 Thread Darren Hart
On Fri, Feb 10, 2017 at 02:42:00AM +0200, Andy Shevchenko wrote: > On Fri, Feb 10, 2017 at 2:16 AM, Jonathan Woithe wrote: > > On Wed, Feb 08, 2017 at 02:46:23PM +0100, Micha?? K??pie?? wrote: > > > In summary, I see no issues with this patch series which provides a much > > needed clean up of th

Re: [PATCH 00/10] fujitsu-laptop: renames and cleanups

2017-02-16 Thread Jonathan Woithe
On Thu, Feb 16, 2017 at 06:57:08PM -0800, Darren Hart wrote: > On Fri, Feb 10, 2017 at 02:42:00AM +0200, Andy Shevchenko wrote: > > On Fri, Feb 10, 2017 at 2:16 AM, Jonathan Woithe wrote: > > > On Wed, Feb 08, 2017 at 02:46:23PM +0100, Micha?? K??pie?? wrote: > > > > > In summary, I see no issues

[PATCH] input/joystick/analog: Use get_cycles() on PPC

2017-02-16 Thread Michael Ellerman
The analog joystick driver spits a warning at us: drivers/input/joystick/analog.c:176:2: warning: #warning Precise timer not defined for this architecture. PPC has get_cycles() so use that. Signed-off-by: Michael Ellerman --- drivers/input/joystick/analog.c | 2 +- 1 file changed, 1 insert

Re: AXP808 vs. AXP806 debugged, no difference? (Was: [PATCH v6 5/5] ARM: dts: sun9i: Initial support for the Sunchip CX-A99 board)

2017-02-16 Thread Chen-Yu Tsai
On Fri, Feb 17, 2017 at 5:16 AM, Rask Ingemann Lambertsen wrote: > In summary: I'll propose a new property "extended-address" or so to the > existing "x-powers,axp806" compatible, because the axp808 does seem to have > the register at 0xff after all, it just needs a value of 0 instead of the 16 >

[PATCH 4/7] drm/sun4i: Fix kcalloc element size in sun4i_layers_init

2017-02-16 Thread Chen-Yu Tsai
In sun4i_layers_init we are allocating an array of pointers to struct sun4i_layer: layers = devm_kcalloc(drm->dev, ARRAY_SIZE(sun4i_backend_planes), sizeof(**layers), GFP_KERNEL); The element size should be the size of an individual element of the array. Chan

[PATCH 1/7] drm/sun4i: Move drm_mode_config_cleanup call to main driver

2017-02-16 Thread Chen-Yu Tsai
drm_mode_config_cleanup is the complement of drm_mode_config_init, which is called in the bind function of sun4i_drv. drm_mode_config_cleanup should be put in the unbind function to match. Signed-off-by: Chen-Yu Tsai --- drivers/gpu/drm/sun4i/sun4i_drv.c | 1 + drivers/gpu/drm/sun4i/sun4

[PATCH 0/7] drm/sun4i: Various fixes and cleanups part 1

2017-02-16 Thread Chen-Yu Tsai
Hi Maxime, This is the first bunch of fixes for the sun4i drm driver. This is part of the cleanup I am doing towards making the driver support multiple display pipelines. Patch 1 moves the drm_mode_config_cleanup call from sun4i_framebuffer_free to be called directly in sun4i_drv_unbind. This is

[PATCH 3/7] drm/sun4i: Check return value of drm_vblank_init

2017-02-16 Thread Chen-Yu Tsai
drm_vblank_init can fail due to insufficient memory. Ignoring the error and proceeding may cause the kernel to dereference an invalid pointer when vblank is enabled. Signed-off-by: Chen-Yu Tsai --- drivers/gpu/drm/sun4i/sun4i_drv.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff

[PATCH 7/7] drm/sun4i: Make sun4i_crtc_init return ERR_PTR style error codes

2017-02-16 Thread Chen-Yu Tsai
sun4i_crtc_init can fail for a number of reasons. Instead of returning a NULL pointer when it fails, pass back the encountered error using ERR_PTR. Signed-off-by: Chen-Yu Tsai --- drivers/gpu/drm/sun4i/sun4i_crtc.c | 4 ++-- drivers/gpu/drm/sun4i/sun4i_drv.c | 4 ++-- 2 files changed, 4 inserti

[PATCH 6/7] drm/sun4i: Save newly created layer in layers array in sun4i_layers_init

2017-02-16 Thread Chen-Yu Tsai
sun4i_layers_init allocates an array to store pointers to newly created layers returned by sun4i_layer_init_one(), but fails to actually store them. But it actually returns the empty array to unsuspecting users. Save the pointers in the array, so that they may be used later. Signed-off-by: Chen-Y

[PATCH 5/7] drm/sun4i: Drop useless assignment in sun4i_layers_init

2017-02-16 Thread Chen-Yu Tsai
The assignment found in the main loop in sun4i_layers_init: struct sun4i_layer *layer = layers[i]; is useless as it gets overwritten by the next line: layer = sun4i_layer_init_one(drm, plane); Drop the assignment. Signed-off-by: Chen-Yu Tsai --- drivers/gpu/drm/sun4i/sun4i_la

[PATCH 2/7] drm/sun4i: Fix up error path cleanup for master bind function

2017-02-16 Thread Chen-Yu Tsai
The master bind function calls numerous drm functions which initialize underlying structures. It also tries to bind the various components of the display pipeline, some of which may add additional drm objects. This patch adds proper cleanup functions in the error path of the master bind function.

Re: [PATCH] nohz: Fix possible missing clock reprog after tick soft restart

2017-02-16 Thread kbuild test robot
Hi Frederic, [auto build test ERROR on tip/timers/core] [cannot apply to v4.10-rc8 next-20170216] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Frederic-Weisbecker/nohz-Fix-possible-missing

[PATCH net-next 3/6] net: dsa: mv88e6xxx: add support for 6390 ATU Move

2017-02-16 Thread Vivien Didelot
The 6390 family of Marvell chips uses 5 bits to describe the ToPort and FromPort values of PortVec in the ATU Move operation, while older switches use 0xf. Add an atu_move_port_mask member in the info structure to describe that. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.c

[PATCH net-next 5/6] net: dsa: mv88e6xxx: add VTU ops

2017-02-16 Thread Vivien Didelot
Because there are several variant of the VTU operations and because checking for the presence of an STU is not enough, add new ops to the info structure to describe the VTU operations that a chip supports. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.c | 54 +

[PATCH net-next 0/6] net: dsa: mv88e6xxx: 88E6390 ATU/VTU

2017-02-16 Thread Vivien Didelot
This series adds support to 88E6390 for the ATU (MAC address databases) and VTU (VLAN databases), as well as providing a cleaner API for both. The 6390 family of Marvell switch chip handles the ATU Move operation differently and has a different usage of the VTU Data registers. Vivien Didelot (6):

[PATCH v6] drivers/misc: Add Aspeed LPC control driver

2017-02-16 Thread Cyril Bur
In order to manage server systems, there is typically another processor known as a BMC (Baseboard Management Controller) which is responsible for powering the server and other various elements, sometimes fans, often the system flash. The Aspeed BMC family which is what is used on OpenPOWER machine

[PATCH net-next 2/6] net: dsa: mv88e6xxx: move ATU code in its own file

2017-02-16 Thread Vivien Didelot
Move the Global (1) ATU related code in its own file, and export the necessary primitives. Use that opportunity to provide a cleaner API for the ATU, by renaming a few underscore prefixed functions, and members of the mv88e6xxx_atu_entry structures. Signed-off-by: Vivien Didelot --- drivers/net

[PATCH net-next 4/6] net: dsa: mv88e6xxx: move VTU code to its own file

2017-02-16 Thread Vivien Didelot
Move the Global (1) VTU related code to its own file. Use this opportunity to provide a cleaner API for the VTU, by renaming a few underscore prefixed functions, split the data member of the mv88e6xxx_vtu_entry structure into membership (for 802.1q) and port state (for 802.1s) members, and add a m

[PATCH net-next 1/6] net: dsa: mv88e6xxx: add port mask helper

2017-02-16 Thread Vivien Didelot
Add a mv88e6xxx_port_mask() helper to get the bitmask of ports in a switch chip, that will be used in several features. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/mv88e6xxx.h | 5 + drivers/net/dsa/mv88e6xxx/port.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-)

[PATCH net-next 6/6] net: dsa: mv88e6xxx: add support for 6390 VTU

2017-02-16 Thread Vivien Didelot
The 6390 family of chips use only 2 of the 3 VTU Data registers to pack the MemberTag and PortState VLAN data. This means that they must be written or read before or after each VTU/STU operations. Implement this variant to add support for VTU with such chips. Signed-off-by: Vivien Didelot --- d

[PATCH net-next] virtio-net: batch stats updating

2017-02-16 Thread Jason Wang
We already have counters for sent/recv packets and sent/recv bytes. Doing a batched update to reduce the number of u64_stats_update_begin/end(). Take care not to bother with stats update when called speculatively. Cc: Willem de Bruijn Signed-off-by: Jason Wang Signed-off-by: Michael S. Tsirkin

Re: [PATCH] platform/x86: ideapad-laptop: Add sysfs interface for touchpad state

2017-02-16 Thread Darren Hart
On Tue, Feb 14, 2017 at 07:46:12PM +0530, Ritesh Raj Sarraf wrote: > Lenovo Yoga (many variants: Yoga, Yoga2 Pro, Yoga2 13, Yoga3 Pro, Yoga 3 > 14 etc) has multiple modles that are a hybrid laptop, working in laptop > mode as well as tablet mode. > > Currently, there is no easy interface to determ

Re: [PATCH] platform: intel_turbo_max_3: make it explicitly non-modular

2017-02-16 Thread Darren Hart
On Mon, Feb 13, 2017 at 07:37:00PM -0500, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > drivers/platform/x86/Kconfig:config INTEL_TURBO_MAX_3 > drivers/platform/x86/Kconfig: bool "Intel Turbo Boost Max Technology 3.0 > enumeration driver" > > ...mea

Re: [PATCH v6] drivers/misc: Add Aspeed LPC control driver

2017-02-16 Thread Joel Stanley
On Fri, Feb 17, 2017 at 1:58 PM, Cyril Bur wrote: > In order to manage server systems, there is typically another processor > known as a BMC (Baseboard Management Controller) which is responsible > for powering the server and other various elements, sometimes fans, > often the system flash. > > Th

Re: [PATCH] printk: use rcuidle console tracepoint

2017-02-16 Thread Paul E. McKenney
On Fri, Feb 17, 2017 at 10:59:32AM +0900, Sergey Senozhatsky wrote: > Use rcuidle console tracepoint because, apparently, it may be issued > from an idle CPU: > > [2.581939] hw-breakpoint: Failed to enable monitor mode on CPU 0. > [2.591613] hw-breakpoint: CPU 0 failed to disable vector ca

Re: [PATCH 03/13] x86, dax, pmem: introduce 'copy_from_iter' dax operation

2017-02-16 Thread Ross Zwisler
On Thu, Jan 19, 2017 at 07:50:29PM -0800, Dan Williams wrote: > The direct-I/O write path for a pmem device must ensure that data is flushed > to a power-fail safe zone when the operation is complete. However, other > dax capable block devices, like brd, do not have this requirement. > Introduce a

Re: [PATCH 00/10] fujitsu-laptop: renames and cleanups

2017-02-16 Thread Darren Hart
On Fri, Feb 17, 2017 at 01:38:04PM +1030, Jonathan Woithe wrote: > On Thu, Feb 16, 2017 at 06:57:08PM -0800, Darren Hart wrote: > > On Fri, Feb 10, 2017 at 02:42:00AM +0200, Andy Shevchenko wrote: > > > On Fri, Feb 10, 2017 at 2:16 AM, Jonathan Woithe > > > wrote: > > > > On Wed, Feb 08, 2017 at

Re: [PATCH 03/13] x86, dax, pmem: introduce 'copy_from_iter' dax operation

2017-02-16 Thread Dan Williams
On Thu, Feb 16, 2017 at 7:52 PM, Ross Zwisler wrote: > On Thu, Jan 19, 2017 at 07:50:29PM -0800, Dan Williams wrote: >> The direct-I/O write path for a pmem device must ensure that data is flushed >> to a power-fail safe zone when the operation is complete. However, other >> dax capable block devi

[PATCH] trace: Remove outdated ring buffer comment

2017-02-16 Thread Joel Fernandes
The comment about ring buffer's organization is outdated and the code sits elsewhere, remove the comment. Cc: Steven Rostedt Signed-off-by: Joel Fernandes --- kernel/trace/trace.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/kernel/trace/trace.c b/kernel/tra

Re: [PATCH 00/17] md: cleanup on direct access to bvec table

2017-02-16 Thread Shaohua Li
On Fri, Feb 17, 2017 at 09:25:27AM +0800, Ming Lei wrote: > Hi Shaohua, > > On Fri, Feb 17, 2017 at 6:16 AM, Shaohua Li wrote: > > On Thu, Feb 16, 2017 at 07:45:30PM +0800, Ming Lei wrote: > >> In MD's resync I/O path, there are lots of direct access to bio's > >> bvec table. This patchset kills

Re: [PATCH 00/10] fujitsu-laptop: renames and cleanups

2017-02-16 Thread Jonathan Woithe
On Thu, Feb 16, 2017 at 07:53:19PM -0800, Darren Hart wrote: > On Fri, Feb 17, 2017 at 01:38:04PM +1030, Jonathan Woithe wrote: > > Do you want me to continue to use Acked-by, or should I switch to > > Reviewed-by? > > These tags do have different meanings, and have come up at Kernel Summit the >

Re: [BUG] 4.10-rc8 - ping spinning?

2017-02-16 Thread Soheil Hassas Yeganeh
On Thu, Feb 16, 2017 at 11:08 AM, wrote: > On Thu, Feb 16, 2017 at 10:52:19AM -0500, Soheil Hassas Yeganeh wrote: >> On Thu, Feb 16, 2017 at 10:50 AM, Soheil Hassas Yeganeh >> wrote: >> > Thank you Vito for the report. >> > >> > The patch you cited actually resolves a similar backward compatibil

Re: [PATCH v3 5/6] ARM: mvebu: Add driver for mv98dx3236-soc-id

2017-02-16 Thread Chris Packham
Hi Arnd, On 17/02/17 02:28, Arnd Bergmann wrote: > On Thursday, February 16, 2017 9:50:39 PM CET Chris Packham wrote: >> The DFX server on the 98dx3236 and compatible SoCs has an ID register >> that provides revision information that the PCI based ID register >> doesn't have. Use this if it's avail

[GIT PULL] NTB bug fixes for vv4.10

2017-02-16 Thread Jon Mason
Hello Linus, Here are a few last minute NTB bug fixes for v4.10. They are fairly critical, and would appreicate them getting pulled in (though I understand this is extremely late in the cycle). Thanks, Jon The following changes since commit 7089db84e356562f8ba737c29e472cc42d530dbc: Linux 4.

Re: [PATCH 3.16 043/306] xfs: change mailing list address

2017-02-16 Thread Dave Chinner
On Wed, Feb 15, 2017 at 10:41:40PM +, Ben Hutchings wrote: > 3.16.40-rc1 review patch. If anyone has any objections, please let me know. > > -- > > From: Dave Chinner > > commit 541d48f05fa1c19a4a968d38df685529e728a20a upstream. > > oss.sgi.com is going away, move contact

[4.9.10] ip_route_me_harder() reading off-slab

2017-02-16 Thread Daniel J Blueman
When booting a VM in libvirt/KVM attached to a local bridge and KASAN enabled on 4.9.10, we see a stream of KASAN warnings about off-slab access [1]. Let me know if you'd like more debug. Thanks, Daniel -- [1] [ 473.579567] BUG: KASAN: slab-out-of-bounds in ip_route_me_harder+0xbd5/0xf20 at

linux-next: manual merge of the akpm-current tree with the tip tree

2017-02-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got conflicts in: arch/cris/include/asm/Kbuild arch/m32r/include/asm/Kbuild arch/parisc/include/asm/Kbuild arch/score/include/asm/Kbuild between commit: b672592f0221 ("sched/cputime: Remove generic asm headers") from the tip t

Re: [PATCH V2 1/2] exec: don't wait for zombie threads with cred_guard_mutex held

2017-02-16 Thread Eric W. Biederman
Oleg Nesterov writes: > de_thread() waits for other threads with ->cred_guard_mutex held and this > is really bad because the time is not bounded, debugger can delay the exit > and this lock has a lot of users (mostly abusers imo) in fs/proc and more. > And this leads to deadlock if debugger trie

[PATCH] backport commit bb98e72adaf9d19719aba35f802d4836f5d5176c to 4.4.49 fixed i915 dsi init bug passed test on my Lenovo Miix 2 8 (Bay Trail Z3740)

2017-02-16 Thread River Zhou
commit bb98e72adaf9d19719aba35f802d4836f5d5176c Author: Hans de Goede Date: Fri Dec 2 15:29:04 2016 +0100 drm/i915/dsi: Do not clear DPOUNIT_CLOCK_GATE_DISABLE from vlv_init_display_clock_gating On my Cherrytrail CUBE iwork8 Air tablet PIPE-A would get stuck on loading i915 at boo

linux-next: manual merge of the akpm-current tree with the kspp tree

2017-02-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the akpm-current tree got conflicts in: arch/x86/Kconfig.debug arch/x86/kernel/Makefile between commits: ad21fc4faa2a ("arch: Move CONFIG_DEBUG_RODATA and CONFIG_SET_MODULE_RONX to be common") 3ad38ceb2769 ("x86/mm: Remove CONFIG_DEBUG_NX_TEST") fro

Re: [PATCH net-next] virito-net: set queues after reset during xdp_set

2017-02-16 Thread John Fastabend
On 17-02-15 01:08 AM, Jason Wang wrote: > We set queues before reset which will cause a crash[1]. This is > because is_xdp_raw_buffer_queue() depends on the old xdp queue pairs > number to do the correct detection. So fix this by: > > - set queues after reset, to keep the old vi->curr_queue_pairs.

Re: [RFC PATCH] x86/boot: make ELF kernel multiboot-able

2017-02-16 Thread H. Peter Anvin
On 02/16/17 15:27, Daniel Kiper wrote: > > That is obvious. Do you think that Multiboot/Multiboot2 protocols are > substantially suboptimal? > Yes. They push a lot of things into the bootloader for no good reason, thus tying the kernel's hands and making the whole boot process more fragile. It

Re: [PATCH 2/5] tpm_tis_spi: Abort transfer when too many wait states are signaled

2017-02-16 Thread Christophe Ricard
Nitpick: Are you sure this patch is necessary having #3 on top of it ? On 16/02/2017 08:08, Peter Huewe wrote: Abort the transfer with ETIMEDOUT when the TPM signals more than TPM_RETRY wait states. Continuing with the transfer in this state will only lead to arbitrary failures in other parts of

[PATCHv2 0/2] Checkpatch fixes for speakup

2017-02-16 Thread Olav Haugan
v2: -Split fixes into separate patches Olav Haugan (2): staging: speakup: (coding style) Simplify comparisons to NULL staging: speakup: (coding style) Limit line to 80 chars drivers/staging/speakup/synth.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) -- Qual

[PATCHv2 1/2] staging: speakup: (coding style) Simplify comparisons to NULL

2017-02-16 Thread Olav Haugan
Fix checkpatch check notices by simplifying comparisons to NULL. Signed-off-by: Olav Haugan --- drivers/staging/speakup/synth.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/speakup/synth.c b/drivers/staging/speakup/synth.c index a61c02ba06d

Re: [PATCH 3/5] tpm_tis_spi: Check correct byte for wait state indicator

2017-02-16 Thread Christophe Ricard
That's is correct, this is a mistake on my side and never saw it :-(. I guess it was possibly leading to "waste" at least 1 wait state on some TPMs. Wouldn't it be better to merge that with #1 and update the comment consequently? On 16/02/2017 08:08, Peter Huewe wrote: Wait states are sig

Re: [PATCH 5/5] tpm_tis_spi: Add small delay after last transfer

2017-02-16 Thread Christophe Ricard
Are you sure it is not better to introduce this delay directly in the rpi spi driver ? Other than that i don't see any issue with it. On 16/02/2017 08:09, Peter Huewe wrote: Testing the implementation with a Raspberry Pi 2 showed that under some circumstances its SPI master erroneously releas

Re: [PATCH net-next] virito-net: set queues after reset during xdp_set

2017-02-16 Thread Jason Wang
On 2017年02月17日 12:53, John Fastabend wrote: On 17-02-15 01:08 AM, Jason Wang wrote: We set queues before reset which will cause a crash[1]. This is because is_xdp_raw_buffer_queue() depends on the old xdp queue pairs number to do the correct detection. So fix this by: - set queues after reset

[PATCHv2 2/2] staging: speakup: (coding style) Limit line to 80 chars

2017-02-16 Thread Olav Haugan
Fix checkpatch warning about line being over 80 characters. Signed-off-by: Olav Haugan --- drivers/staging/speakup/synth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/speakup/synth.c b/drivers/staging/speakup/synth.c index b57315110e67..8340748ae9cb 10

Re: [PATCH 4/5] tpm_tis_spi: Remove limitation of transfers to MAX_SPI_FRAMESIZE bytes

2017-02-16 Thread Christophe Ricard
I am not sure i understand here, are you considering there could be burstcount > 64 with "TCG" TPM ? Or is this because of TIS vs PTP differences ? To be honest, this is a little behind me now :-) On 16/02/2017 08:08, Peter Huewe wrote: Limiting transfers to MAX_SPI_FRAMESIZE was not expecte

Re: [PATCH 00/10] fujitsu-laptop: renames and cleanups

2017-02-16 Thread Darren Hart
On Fri, Feb 17, 2017 at 02:47:56PM +1030, Jonathan Woithe wrote: > On Thu, Feb 16, 2017 at 07:53:19PM -0800, Darren Hart wrote: > > On Fri, Feb 17, 2017 at 01:38:04PM +1030, Jonathan Woithe wrote: > > > Do you want me to continue to use Acked-by, or should I switch to > > > Reviewed-by? > > > > Th

Re: [PATCH] nohz: Fix possible missing clock reprog after tick soft restart

2017-02-16 Thread kbuild test robot
Hi Frederic, [auto build test ERROR on tip/timers/core] [cannot apply to v4.10-rc8 next-20170216] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Frederic-Weisbecker/nohz-Fix-possible-missing

Re: [4.9.10] ip_route_me_harder() reading off-slab

2017-02-16 Thread Eric Dumazet
On Fri, 2017-02-17 at 12:36 +0800, Daniel J Blueman wrote: > When booting a VM in libvirt/KVM attached to a local bridge and KASAN > enabled on 4.9.10, we see a stream of KASAN warnings about off-slab > access [1]. > > Let me know if you'd like more debug. Could you try the following patch ? Tha

Re: [PATCH V2 0/6] PM / Domains: Implement domain performance states

2017-02-16 Thread Viresh Kumar
On 09-02-17, 09:11, Viresh Kumar wrote: > The first 5 patches update the PM domain and QoS frameworks to support > that and the last one presents the front end interface to it. @Kevin and Ulf, Is there something wrong with this series? Its been 7 weeks since this series is getting posted and I ha

Re: [PATCH] usb: dwc3: ep0: Fix the possible missed request for handling delay STATUS phase

2017-02-16 Thread Baolin Wang
On 23 January 2017 at 19:57, Felipe Balbi wrote: > > Hi, > > Alan Stern writes: >> On Mon, 16 Jan 2017, Felipe Balbi wrote: >> >>> > The gadget driver never calls usb_ep_queue in order to receive the next >>> > SETUP packet; the UDC driver takes care of SETUP handling >>> > automatically. >>> >>>

Re: [PATCH V3 3/7] mm: reclaim MADV_FREE pages

2017-02-16 Thread Minchan Kim
Hi Johannes, On Thu, Feb 16, 2017 at 01:40:18PM -0500, Johannes Weiner wrote: > On Tue, Feb 14, 2017 at 11:36:09AM -0800, Shaohua Li wrote: > > @@ -1419,11 +1419,18 @@ static int try_to_unmap_one(struct page *page, > > struct vm_area_struct *vma, > > VM_BUG_ON_PAGE(!PageSwapCa

Re: [PATCH V3 3/7] mm: reclaim MADV_FREE pages

2017-02-16 Thread Minchan Kim
Hi Shaohua, On Thu, Feb 16, 2017 at 04:27:18PM -0800, Shaohua Li wrote: > On Thu, Feb 16, 2017 at 01:40:18PM -0500, Johannes Weiner wrote: > > On Tue, Feb 14, 2017 at 11:36:09AM -0800, Shaohua Li wrote: > > > @@ -1419,11 +1419,18 @@ static int try_to_unmap_one(struct page *page, > > > struct vm_a

linux-next: Tree for Feb 17

2017-02-16 Thread Stephen Rothwell
Hi all, Changes since 20170216: The powerpc tree gained a conflict against Linus' tree. The tip tree gained conflicts against the drm, kspp, openrisc and powerpc trees. The akpm-current tree gained conflicts against the kspp and tip trees. I dropped 3 patches from the akpm tree that turn

[PATCH v3 1/4] Documentation: devicetree: Add document bindings for leds-mt6323

2017-02-16 Thread sean.wang
From: Sean Wang This patch adds documentation for devicetree bindings for LED support on MT6323 PMIC Signed-off-by: Sean Wang --- .../devicetree/bindings/leds/leds-mt6323.txt | 60 ++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindin

[PATCH v3 2/4] Documentation: devicetree: Add LED subnode binding for MT6323 PMIC

2017-02-16 Thread sean.wang
From: Sean Wang This patch adds documentation for devicetree bindings for LED support as the subnode of MT6323 PMIC Signed-off-by: Sean Wang --- Documentation/devicetree/bindings/mfd/mt6397.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/mt6397

[PATCH v3 0/4] leds: add leds-mt6323 support on MT7623 SoC

2017-02-16 Thread sean.wang
From: Sean Wang MT7623 SoC uses MT6323 PMIC as the default power supply which has LED function insides. The patchset introduces the LED support for MT6323 with on, off and hardware dimmed and blinked and it should work on other similar SoCs if also using MT6323. Changes since v1: - fixed typo in

Re: [PATCH] powerpc/xmon: Fix an unexpected xmon onoff state change

2017-02-16 Thread Michael Ellerman
Pan Xinhui writes: > diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c > index 9c0e17c..f6e5c3d 100644 > --- a/arch/powerpc/xmon/xmon.c > +++ b/arch/powerpc/xmon/xmon.c > @@ -76,6 +76,7 @@ static int xmon_gate; > #endif /* CONFIG_SMP */ > > static unsigned long in_xmon __read

[PATCH v3 3/4] leds: Add LED support for MT6323 PMIC

2017-02-16 Thread sean.wang
From: Sean Wang MT6323 PMIC is a multi-function device that includes LED function. It allows attaching up to 4 LEDs which can either be on, off or dimmed and/or blinked with the controller. Signed-off-by: Sean Wang --- drivers/leds/Kconfig | 8 + drivers/leds/Makefile | 1 + dri

[PATCH v3 4/4] mfd: mt6397: Add MT6323 LED support into MT6397 driver

2017-02-16 Thread sean.wang
From: Sean Wang Add compatible string as "mt6323-led" that will make the OF core spawn child devices for the LED subnode of that MT6323 MFD device. Signed-off-by: Sean Wang --- drivers/mfd/mt6397-core.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/mfd/mt6397-core.c b/drivers

[PATCH v3] omapfb: dss: Handle return error in dss_init_ports.

2017-02-16 Thread Arvind Yadav
Here, dss_init_ports is not handling return error form dpi_init_port and sdi_init_port. Now dss_init_ports is returning always 0. And it's making below code as a dead code. static int dss_bind(struct device *dev) { . . r = dss_init_ports(pdev); //dss_init_ports will return always 0 if (r)/

[PATCH] PCI,pciehp: Don't handle PDC for cards with attention button

2017-02-16 Thread Yinghai Lu
On one system during power off slot, find card get power on right away. # echo 0 > /sys/bus/pci/slots/1/power pci_hotplug: power_write_file: power = 0 pciehp :16:00.0:pcie004: pciehp_get_power_status: SLOTCTRL a8 value read 11f1 pciehp :16:00.0:pcie004: pciehp_unconfigure_device: domai

Re: [RFC PATCH 07/33] irqchip/gic-v3-its: Macro-ize its_send_single_command

2017-02-16 Thread Auger Eric
On 17/01/2017 11:20, Marc Zyngier wrote: > Most ITS commands do operate on a collection object, and require > a SYNC command to be performed on that collection in order to > guarantee the execution of the first command. > > With GICv4 ITS, another set of commands perform similar operations > on

Re: [RFC PATCH 08/33] irqchip/gic-v3-its: Implement irq_set_irqchip_state for pending state

2017-02-16 Thread Auger Eric
On 17/01/2017 11:20, Marc Zyngier wrote: > Allow the pending state of an LPI to be set or cleared via > irq_set_irqchip_state. > > Signed-off-by: Marc Zyngier Reviewed-by: Eric Auger Eric > --- > drivers/irqchip/irq-gic-v3-its.c | 78 > > 1 file ch

Re: [RFC PATCH 10/33] irqchip/gic-v4-its: Allow use of indirect VCPU tables

2017-02-16 Thread Auger Eric
Hi Marc, On 17/01/2017 11:20, Marc Zyngier wrote: > The VCPU tables can be quite sparse as well, and it makes sense > to use indirect tables as well if possible. > > Signed-off-by: Marc Zyngier > --- > drivers/irqchip/irq-gic-v3-its.c | 20 +--- > 1 file changed, 13 insertions(+

Re: [RFC PATCH 09/33] irqchip/gic-v3-its: Split out property table allocation

2017-02-16 Thread Auger Eric
Hi Marc, On 17/01/2017 11:20, Marc Zyngier wrote: > Move the LPI property table allocation into its own function, as > this is going to be required for those associated with VMs in > the future. > > Signed-off-by: Marc Zyngier > --- > drivers/irqchip/irq-gic-v3-its.c | 28 ++-

Re: [PATCH v6] drivers/misc: Add Aspeed LPC control driver

2017-02-16 Thread Benjamin Herrenschmidt
On Fri, 2017-02-17 at 14:28 +1100, Cyril Bur wrote: > In order to manage server systems, there is typically another > processor > known as a BMC (Baseboard Management Controller) which is responsible > for powering the server and other various elements, sometimes fans, > often the system flash. .

[PATCH 05/35] ia64: Convert remaining use of pr_warning to pr_warn

2017-02-16 Thread Joe Perches
To enable eventual removal of pr_warning This makes pr_warn use consistent for arch/ia64 Prior to this patch, there was 1 use of pr_warning and 1 use of pr_warn in arch/ia64 Signed-off-by: Joe Perches --- arch/ia64/kernel/setup.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) dif

[PATCH 02/35] ARM: ep93xx: Convert remaining uses of pr_warning to pr_warn

2017-02-16 Thread Joe Perches
To enable eventual removal of pr_warning. This makes pr_warn use consistent for arch/arm Prior to this patch, there were 2 uses of pr_warning and 405 uses of pr_warn in arch/arm Signed-off-by: Joe Perches --- arch/arm/mach-ep93xx/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH 03/35] arm64: Convert remaining uses of pr_warning to pr_warn

2017-02-16 Thread Joe Perches
To enable eventual removal of pr_warning This makes pr_warn use consistent for arch/arm64 Prior to this patch, there were 7 uses of pr_warning and 27 uses of pr_warn in arch/arm64 Signed-off-by: Joe Perches --- arch/arm64/include/asm/syscall.h | 8 arch/arm64/kernel/hw_breakpoint.c |

[PATCH 20/35] drivers/isdn: Convert remaining uses of pr_warning to pr_warn

2017-02-16 Thread Joe Perches
To enable eventual removal of pr_warning This makes pr_warn use consistent for drivers/isdn Prior to this patch, there were 20 uses of pr_warning and 3 uses of pr_warn in drivers/isdn Signed-off-by: Joe Perches --- drivers/isdn/gigaset/interface.c| 2 +- drivers/isdn/hardware/mISDN/av

<    3   4   5   6   7   8   9   >