[PATCH] libc-compat.h for

2016-05-08 Thread Eric Neblock
Hello everyone, I've done some kernel hacking and needed in some extra flags for open(2). Although the kernel works, I could not access my changes in userland. Adding in caused many redefinition errors, and ignoring causes issues as flibc's contains the prototype for open(2). As such, I've

[PATCH] staging: fsl-mc: bus: make checkpatch coding style problem free

2016-05-08 Thread John Rama
fixed following coding style problems. $checkpatch.pl drivers/staging/fsl-mc/bus/*.c --- drivers/staging/fsl-mc/bus/dprc-driver.c --- CHECK: Alignment should match open parenthesis + if (mc_bus->dprc_att

[PATCH 1/1] usb: gadget: f_tcm: out of bound access in usbg_drop_tpg

2016-05-08 Thread Heinrich Schuchardt
Commit dc8c46a5ae77 ("usb: gadget: f_tcm: convert to new function interface with backward compatibility") introduced a possible out of bounds memory access: If tpg is not found in function usbg_drop_tpg, tpg_instances[TPG_INSTANCES] is accessed. Fixes: dc8c46a5ae77 ("usb: gadget: f_tcm: convert t

Re: [PATCH] clk: rockchip: fix the rk3399 sdmmc sample / drv name

2016-05-08 Thread Heiko Stuebner
Am Mittwoch, 4. Mai 2016, 16:36:25 schrieb Douglas Anderson: > The rk3399 clock table had a simple typo in it, calling the SDMMC sample > and drive clocks by the wrong name. Fix this minor typo. > > Signed-off-by: Douglas Anderson applied to my clk-branch Thanks for catching this Heiko

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

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

Re: [PATCH] fix infoleak in fcntl

2016-05-08 Thread Richard Weinberger
Am 08.05.2016 um 17:40 schrieb Kangjie Lu: > > > On Sun, May 8, 2016 at 8:58 AM, Richard Weinberger > mailto:richard.weinber...@gmail.com>> wrote: > > On Tue, May 3, 2016 at 10:34 PM, Kangjie Lu > wrote: > > The stack object “si” has a total size of 128 byte

[char-misc-next 1/2] mei: don't use wake_up_interruptible for wr_ctrl

2016-05-08 Thread Tomas Winkler
From: Alexander Usyskin wr_ctrl waiters are none interruptible, so should be waken up with call to wake_up and not to wake_up_interruptible. This fixes commit: 7ff4bdd ("mei: fix waiting for wr_ctrl for corner cases.") Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler --- drivers

[char-misc-next 2/2] mei: drop wr_msg from the mei_dev structure

2016-05-08 Thread Tomas Winkler
From: Alexander Usyskin The control messages are usually small, around 8 bytes, and can be allocated on the stack. Using on stack allocation allows us to drop 'wr_msg' a rather large buffer reserved in the mei_dev structure and relax contention of this device global buffer. Signed-off-by: Alexan

[PATCH 1/1] usb: gadget: avoid exposing kernel stack

2016-05-08 Thread Heinrich Schuchardt
Function in_rq_cur copies random bytes from the stack. Zero the memory instead. Fixes: 132fcb460839 ("usb: gadget: Add Audio Class 2.0 Driver") Signed-off-by: Heinrich Schuchardt --- drivers/usb/gadget/function/f_uac2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/funct

Re: [PATCH] ARM: dts: rk3288: add SPI flash node for veyron

2016-05-08 Thread Heiko Stuebner
Am Donnerstag, 5. Mai 2016, 18:02:44 schrieb Brian Norris: > This is a standard binding for describing SPI flash that can be > identified by reading their JEDEC ID. Let's use it. > > Tested on Veyron Jaq. > > Signed-off-by: Brian Norris I've adapted the subject to ARM: dts: rockchip: ad

Re: [PATCH v2 03/23] ata: sata_dwc_460ex: set dma_boundary to 0x1fff

2016-05-08 Thread Måns Rullgård
Tejun Heo writes: > On Tue, Apr 26, 2016 at 12:03:04PM +0300, Andy Shevchenko wrote: >> diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c >> index 7f95389..aee8873 100644 >> --- a/drivers/ata/sata_dwc_460ex.c >> +++ b/drivers/ata/sata_dwc_460ex.c >> @@ -1151,7 +1151,13 @@ s

[PATCH 1/1] usb: gadget: hid: remove redundant breaks

2016-05-08 Thread Heinrich Schuchardt
Code after goto is never reached. Remove redundant breaks. Signed-off-by: Heinrich Schuchardt --- drivers/usb/gadget/function/f_hid.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/usb/gadget/function/f_hid.c b/drivers/usb/gadget/function/f_hid.c index 51980c5..6ee81e5 100644 ---

[PATCH v2 3/3] net: ethernet: fec: use ethtool_op_{get|set}_link_ksettings

2016-05-08 Thread Philippe Reynes
There are two generics functions ethtool_op_{get|set}_link_ksettings, so we can use them instead of defining the same code in the driver. Signed-off-by: Philippe Reynes --- drivers/net/ethernet/freescale/fec_main.c | 26 ++ 1 files changed, 2 insertions(+), 24 deletions

[PATCH v2 0/3] net: ethtool: add ethtool_op_{get|set}_link_ksettings

2016-05-08 Thread Philippe Reynes
Ethtool callbacks {get|set}_link_ksettings may be the same for many drivers. So we add two generics callbacks ethtool_op_{get|set}_link_ksettings. To use those generics callbacks, the ethernet driver must use the pointer phydev contained in struct net_device, and not use a private structure to sto

[PATCH v2 2/3] net: ethernet: fec: use phydev from struct net_device

2016-05-08 Thread Philippe Reynes
The private structure contain a pointer to phydev, but the structure net_device already contain such pointer. So we can remove the pointer phydev in the private structure, and update the driver to use the one contained in struct net_device. Signed-off-by: Philippe Reynes --- drivers/net/ethernet

[PATCH v2 1/3] net: core: ethtool: add ethtool_op_{get|set}_link_ksettings

2016-05-08 Thread Philippe Reynes
Ethtool callbacks {get|set}_link_ksettings are often the same, so we add two generics functions ethtool_op_{get|set}_link_ksettings to avoid writing severals times the same function. Signed-off-by: Philippe Reynes --- include/linux/ethtool.h |5 + net/core/ethtool.c | 24 +

Linux 4.6-rc7

2016-05-08 Thread Linus Torvalds
So here's rc7, because while things were really quiet there for a while, it nefer got *so* quiet that I would decide that there's no point to making the traditional last rc. But this is it, unless something surprising happens.. There's nothing particularly odd in here, and the appended shortlog i

[PATCH 1/1] usb: net2272: avoid shifting 0

2016-05-08 Thread Heinrich Schuchardt
Remove redundant code. Or'ing with a shifted value of zero is a NOP. Signed-off-by: Heinrich Schuchardt --- drivers/usb/gadget/udc/net2272.c | 15 +++ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/usb/gadget/udc/net2272.c b/drivers/usb/gadget/udc/net2272.c in

Re: [PATCH 1/3] md: set MD_CHANGE_PENDING in a atomic region

2016-05-08 Thread Shaohua Li
On Tue, May 03, 2016 at 10:22:13PM -0400, Guoqing Jiang wrote: > Some code waits for a metadata update by: > > 1. flagging that it is needed (MD_CHANGE_DEVS or MD_CHANGE_CLEAN) > 2. setting MD_CHANGE_PENDING and waking the management thread > 3. waiting for MD_CHANGE_PENDING to be cleared > > If

[PATCH 1/1] USB: FHCI: avoid redundant condition

2016-05-08 Thread Heinrich Schuchardt
The right part of the following or expression is only evaluated if td is nonzero. !td || (td && td.status == USB_TD_INPROGRESS) So no need to check td again. Signed-off-by: Heinrich Schuchardt --- drivers/usb/host/fhci-sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d

Re: [PATCH v2 2/3] net: ethernet: fec: use phydev from struct net_device

2016-05-08 Thread Ben Hutchings
On Sun, 2016-05-08 at 23:44 +0200, Philippe Reynes wrote: > The private structure contain a pointer to phydev, but the structure > net_device already contain such pointer. So we can remove the pointer > phydev in the private structure, and update the driver to use the one > contained in struct net_

[PATCH 1/7] libnvdimm: cleanup nvdimm_namespace_common_probe(), kill 'host'

2016-05-08 Thread Dan Williams
The 'host' variable can be killed as it is always the same as the passed in device. Signed-off-by: Dan Williams --- drivers/nvdimm/namespace_devs.c | 19 +++ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/drivers/nvdimm/namespace_devs.c b/drivers/nvdimm/namespac

[PATCH 0/7] "Device DAX" for persistent memory

2016-05-08 Thread Dan Williams
Device DAX is the device-centric analogue of Filesystem DAX (CONFIG_FS_DAX). It allows memory ranges to be allocated and mapped without need of an intervening file system or being bound to block device semantics. Device DAX is strict and predictable. Specifically this interface: 1/ Guarantees f

[PATCH 4/7] libnvdimm, dax: record the specified alignment of a dax-device instance

2016-05-08 Thread Dan Williams
We want to use the alignment as the allocation and mapping unit. Previously this information was only useful for establishing the data offset, but now it is important to remember the granularity for the later use. Signed-off-by: Dan Williams --- drivers/nvdimm/pfn.h |4 +++- drivers/nvd

[PATCH 6/7] /dev/dax, core: file operations and dax-mmap

2016-05-08 Thread Dan Williams
The "Device DAX" core enables dax mappings of performance / feature differentiated memory. An open mapping or file handle keeps the backing struct device live, but new mappings are only possible while the device is enabled. Faults are handled under the device lock to synchronize with the enabled

[PATCH 5/7] /dev/dax, pmem: direct access to persistent memory

2016-05-08 Thread Dan Williams
Device DAX is the device-centric analogue of Filesystem DAX (CONFIG_FS_DAX). It allows memory ranges to be allocated and mapped without need of an intervening file system. Device DAX is strict, precise and predictable. Specifically this interface: 1/ Guarantees fault granularity with respect to

[PATCH 7/7] Revert "block: enable dax for raw block devices"

2016-05-08 Thread Dan Williams
This reverts commit 5a023cdba50c5f5f2bc351783b3131699deb3937. The functionality is superseded by the new "Device DAX" facility. Cc: Jeff Moyer Cc: Christoph Hellwig Cc: Dave Chinner Cc: Andrew Morton Cc: Ross Zwisler Cc: Jan Kara Signed-off-by: Dan Williams --- block/ioctl.c |

[PATCH 2/7] libnvdimm, dax: introduce device-dax infrastructure

2016-05-08 Thread Dan Williams
Device DAX is the device-centric analogue of Filesystem DAX (CONFIG_FS_DAX). It allows persistent memory ranges to be allocated and mapped without need of an intervening file system. This initial infrastructure arranges for a libnvdimm pfn-device to be represented as a different device-type so th

[PATCH 3/7] libnvdimm, dax: reserve space to store labels for device-dax

2016-05-08 Thread Dan Williams
We may want to subdivide a device-dax range into multiple devices so that each can have separate permissions or naming. Reserve 128K of label space by default so we have the capability of making allocation decisions persistent. This reservation is not something we can add later since it would res

[PATCH 1/1] net: thunderx: avoid exposing kernel stack

2016-05-08 Thread Heinrich Schuchardt
Reserved fields should be set to zero to avoid exposing bits from the kernel stack. Signed-off-by: Heinrich Schuchardt --- drivers/net/ethernet/cavium/thunder/nicvf_queues.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/net/ethernet/cavium/thunder/nicvf_queues.c b/drivers/net/

Re: [PATCH v2 2/3] net: ethernet: fec: use phydev from struct net_device

2016-05-08 Thread Philippe Reynes
On 09/05/16 00:22, Ben Hutchings wrote: On Sun, 2016-05-08 at 23:44 +0200, Philippe Reynes wrote: The private structure contain a pointer to phydev, but the structure net_device already contain such pointer. So we can remove the pointer phydev in the private structure, and update the driver to u

Re: [PATCH v2 2/3] net: ethernet: fec: use phydev from struct net_device

2016-05-08 Thread Ben Hutchings
On Mon, 2016-05-09 at 00:47 +0200, Philippe Reynes wrote: > On 09/05/16 00:22, Ben Hutchings wrote: > > > > On Sun, 2016-05-08 at 23:44 +0200, Philippe Reynes wrote: > > > > > > The private structure contain a pointer to phydev, but the structure > > > net_device already contain such pointer. So

Re: [PATCH] md: make the code more readable in the for-loop

2016-05-08 Thread Shaohua Li
On Sun, May 08, 2016 at 08:56:55PM +0800, Tiezhu Yang wrote: > This patch modifies raid1.c, raid10.c and raid5.c > to make the code more readable in the for-loop > and also fixes the scripts/checkpatch.pl error: > ERROR: trailing statements should be on next line. > > Signed-off-by: Tiezhu Yang >

linux-next: manual merge of the f2fs tree with the ext4 tree

2016-05-08 Thread Stephen Rothwell
Hi Jaegeuk, Today's linux-next merge of the f2fs tree got a conflict in: fs/ext4/ext4.h between commit: c8585c6fcaf2 ("ext4: fix races between changing inode journal mode and ext4_writepages") from the ext4 tree and commit: a618a2a1dda4 ("ext4 crypto: migrate into vfs's crypto engine")

[PATCH] arm64: defconfig: Enable Cadence MACB/GEM support

2016-05-08 Thread Chanho Min
This patch enables the cadence MACB/GEM support that is needed by lg1312 SoC. Signed-off-by: Chanho Min --- arch/arm64/configs/defconfig |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 14dbe27..ed11cb6 100644 --- a/arch/arm

linux-next: build failure after merge of the libata tree

2016-05-08 Thread Stephen Rothwell
Hi Tejun, After merging the libata tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/ata/sata_dwc_460ex.c:203:2: error: unknown field 'm_master' specified in initializer .m_master = 1, ^ /home/sfr/next/next/drivers/ata/sata_dwc_460ex.c:204:2: error: unknown field

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

2016-05-08 Thread Ben Hutchings
On Sun, 2016-05-08 at 13:55 -0700, Shrikrishna Khare wrote: > > On Sat, 7 May 2016, Ben Hutchings wrote: > > > On Fri, 2016-05-06 at 16:12 -0700, Shrikrishna Khare wrote: > > [...] > > > +static int > > > +vmxnet3_set_coalesce(struct net_device *netdev, struct ethtool_coalesce > > > *ec) > > > +

Re: usb: dwc2: regression on MyBook Live Duo / Canyonlands since 4.3.0-rc4

2016-05-08 Thread Benjamin Herrenschmidt
On Sun, 2016-05-08 at 13:44 +0200, Christian Lamparter wrote: > On Sunday, May 08, 2016 08:40:55 PM Benjamin Herrenschmidt wrote: > > > > On Sun, 2016-05-08 at 00:54 +0200, Christian Lamparter via Linuxppc-dev  > > wrote: > > > > > > I've been looking in getting the MyBook Live Duo's USB OTG port

linux-next: manual merge of the net-next tree with the wireless-drivers tree

2016-05-08 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: drivers/net/wireless/intel/iwlwifi/mvm/tx.c between commit: 5c08b0f5026f ("iwlwifi: mvm: don't override the rate with the AMSDU len") from the wireless-drivers tree and commit: d8fe484470dd ("iwlwifi: mvm: add supp

linux-next: manual merge of the net-next tree with the net tree

2016-05-08 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: include/linux/netdevice.h between commit: 229740c63169 ("udp_offload: Set encapsulation before inner completes.") from the net tree and commit: 46aa2f30aa7f ("udp: Remove udp_offloads") from the net-next tree. I

Re: [PATCH] compiler-gcc: require gcc 4.8 for powerpc __builtin_bswap16()

2016-05-08 Thread Stephen Rothwell
Hi Josh, On Fri, 6 May 2016 09:22:25 -0500 Josh Poimboeuf wrote: > > I've also seen no problems on powerpc with 4.4 and 4.8. I suspect it's > specific to gcc 4.6. Stephen, can you confirm this patch fixes it? That will obviously fix the problem for us (since it will effectively restore the cod

Re: [PATCH v2 00/23] ata: sata_dwc_460ex: make it working again

2016-05-08 Thread Tejun Heo
On Sun, May 08, 2016 at 04:00:08PM -0400, Tejun Heo wrote: > Hello, Andy. > > On Wed, May 04, 2016 at 03:22:51PM +0300, Andy Shevchenko wrote: > > Tejun, since Vinod applied all necessary patches into his tree, the > > series now has just a dependency to whatever branch / tag he marks for > > it.

Re: [PATCH v2 3/4] perf tools: Support reading from backward ring buffer

2016-05-08 Thread Wangnan (F)
On 2016/5/6 21:40, Wangnan (F) wrote: On 2016/5/6 4:07, Arnaldo Carvalho de Melo wrote: Em Wed, Apr 27, 2016 at 02:19:22AM +, Wang Nan escreveu: perf_evlist__mmap_read_backward() is introduced for reading backward ring buffer. Different from reading forward, before reading, caller needs

Re: [PATCHv3 0/2] target: make location of /var/targets configurable

2016-05-08 Thread Lee Duncan
On 04/14/2016 06:18 PM, Lee Duncan wrote: > These patches make the location of "/var/target" configurable, > though it still defauls to "/var/target". > > This "target database directory" can only be changed > after the target_core_mod loads but before any > fabric drivers are loaded, and must be

Re: [PATCH] Use pid_t instead of int

2016-05-08 Thread Andy Lutomirski
On Sun, May 8, 2016 at 12:38 PM, René Nyffenegger wrote: > Use pid_t instead of int in the declarations of sys_kill, sys_tgkill, > sys_tkill and sys_rt_sigqueueinfo in include/linux/syscalls.h The description is no good. *Why* are you changing it? I checked tgkill and, indeed, tgkill takes pid_

linux-next: manual merge of the drm tree with Linus' tree

2016-05-08 Thread Stephen Rothwell
Hi Dave, Today's linux-next merge of the drm tree got a conflict in: drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c between commit: 562e2689baeb ("amdgpu/uvd: add uvd fw version for amdgpu") from Linus' tree and commit: c036554170fc ("drm/amdgpu: handle more than 10 UVD sessions (v2)") from t

linux-next: manual merge of the drm tree with Linus' tree

2016-05-08 Thread Stephen Rothwell
Hi Dave, Today's linux-next merge of the drm tree got a conflict in: drivers/gpu/drm/ttm/ttm_bo.c between commit: 56fc350224f1 ("drm/ttm: fix kref count mess in ttm_bo_move_to_lru_tail") from Linus' tree and commits: c3ea576e0583 ("drm/ttm: add optional LRU removal callback v2") 98c28

Re: [PATCH 0/6] Intel Secure Guard Extensions

2016-05-08 Thread Andy Lutomirski
On May 8, 2016 2:59 AM, "Dr. Greg Wettstein" wrote: > > > This now means the security of SGX on 'unlocked' platforms, at least > from a trust perspective, will be dependent on using TXT so as to > provide a hardware root of trust on which to base the SGX trust model. Can you explain what you mean

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

2016-05-08 Thread Andy Lutomirski
On May 7, 2016 8:02 AM, "Stas Sergeev" wrote: > > 03.05.2016 20:31, Andy Lutomirski пишет: > >> The handling for old kernels was wrong. Fix it. >> >> Reported-by: Ingo Molnar >> Cc: Stas Sergeev >> Cc: Al Viro >> Cc: Andrew Morton >> Cc: Andy Lutomirski >> Cc: Borislav Petkov >> Cc: Brian G

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

2016-05-08 Thread Andy Lutomirski
On May 7, 2016 7:38 AM, "Stas Sergeev" wrote: > > 03.05.2016 20:31, Andy Lutomirski пишет: > >> If a signal stack is set up with SS_AUTODISARM, then the kernel >> inherently avoids incorrectly resetting the signal stack if signals >> recurse: the signal stack will be reset on the first signal >> d

Re: [PATCH 1/6] statx: Add a system call to make enhanced file info available

2016-05-08 Thread Dave Chinner
[ OT, but I'll reply anyway :P ] On Fri, May 06, 2016 at 02:29:23PM -0400, J. Bruce Fields wrote: > On Thu, May 05, 2016 at 08:56:02AM +1000, Dave Chinner wrote: > > In the latest XFS filesystem format, we randomise the generation > > value during every inode allocation to make it hard to guess th

[PATCH v3 0/2] perf tools: Backward ring buffer support

2016-05-08 Thread Wang Nan
Commit 9ecda41acb97 ("perf/core: Add ::write_backward attribute to perf event") introduces backward ring buffer. This 2 patches add basic support for reading from it, and add a new test case for it. v2 -> v3: Improve commit message, add more comments (patch 1/2). patch 1-2/4 in v2 have been co

[PATCH v3 2/2] perf tests: Add test to check backward ring buffer

2016-05-08 Thread Wang Nan
This test checks reading from backward ring buffer. Test result: # ~/perf test 'ring buffer' 45: Test backward reading from ring buffer : Ok Test case is a while loop which calls prctl(PR_SET_NAME) multiple times. Each prctl should issue 2 events: one PERF_RECORD_SAMPLE, one

[PATCH v3 1/2] perf tools: Support reading from backward ring buffer

2016-05-08 Thread Wang Nan
perf_evlist__mmap_read_backward() is introduced for reading backward ring buffer. Since direction for reading such ring buffer is different from the direction kernel writing to it, and since user need to fetch most recent record from it, a perf_evlist__mmap_read_catchup() is introduced to move the

RE: EXT4 bad block - ext4_xattr_block_get

2016-05-08 Thread Lay, Kuan Loon
Hi, Not getting the bad block message after disable metadata_csum. Best Regards, Lay > -Original Message- > From: Philipp Hahn [mailto:pmh...@pmhahn.de] > Sent: Monday, May 2, 2016 2:43 PM > To: Lay, Kuan Loon ; ty...@mit.edu; > adilger.ker...@dilger.ca; linux-e...@vger.kernel.org; linux

RE: [PATCH v2 0/3] net: ethtool: add ethtool_op_{get|set}_link_ksettings

2016-05-08 Thread Fugang Duan
Fom: Philippe Reynes Sent: Monday, May 09, 2016 5:45 AM > To: Fugang Duan ; da...@davemloft.net; > b...@decadent.org.uk; kan.li...@intel.com; de...@googlers.com; > adu...@mirantis.com; j...@mellanox.com; jacob.e.kel...@intel.com; > t...@herbertland.com; and...@lunn.ch > Cc: net...@vger.kernel.org;

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

2016-05-08 Thread Stas Sergeev
09.05.2016 04:32, Andy Lutomirski пишет: On May 7, 2016 7:38 AM, "Stas Sergeev" wrote: 03.05.2016 20:31, Andy Lutomirski пишет: If a signal stack is set up with SS_AUTODISARM, then the kernel inherently avoids incorrectly resetting the signal stack if signals recurse: the signal stack will be

[PATCH V2 2/2] irqchip/gicv3-its: Implement two-level(indirect) device table support

2016-05-08 Thread Shanker Donthineni
Since device IDs are extremely sparse, the single, a.k.a flat table is not sufficient for the following two reasons. 1) According to ARM-GIC spec, ITS hw can access maximum of 256(pages)* 64K(pageszie) bytes. In the best case, it supports upto DEVid=21 sparse with minimum device table entry

[PATCH V2 1/2] irqchip/gicv3-its: split its_alloc_tables() into two functions

2016-05-08 Thread Shanker Donthineni
The function is getting out of control, it has too many goto statements and would be too complicated for adding a feature two-level device table. So, it is time for us to cleanup and move some of the logic to a separate function without affecting the existing functionality. Signed-off-by: Shanker

[PATCH v5 08/12] zsmalloc: introduce zspage structure

2016-05-08 Thread Minchan Kim
We have squeezed meta data of zspage into first page's descriptor. So, to get meta data from subpage, we should get first page first of all. But it makes trouble to implment page migration feature of zsmalloc because any place where to get first page from subpage can be raced with first page migrat

[PATCH v5 01/12] mm: use put_page to free page instead of putback_lru_page

2016-05-08 Thread Minchan Kim
Procedure of page migration is as follows: First of all, it should isolate a page from LRU and try to migrate the page. If it is successful, it releases the page for freeing. Otherwise, it should put the page back to LRU list. For LRU pages, we have used putback_lru_page for both freeing and putb

[PATCH v5 11/12] zsmalloc: page migration support

2016-05-08 Thread Minchan Kim
This patch introduces run-time migration feature for zspage. For migration, VM uses page.lru field so it would be better to not use page.next field which is unified with page.lru for own purpose. For that, firstly, we can get first object offset of the page via runtime calculation instead of using

[PATCH v5 07/12] zsmalloc: factor page chain functionality out

2016-05-08 Thread Minchan Kim
For page migration, we need to create page chain of zspage dynamically so this patch factors it out from alloc_zspage. Cc: Sergey Senozhatsky Signed-off-by: Minchan Kim --- mm/zsmalloc.c | 59 +++ 1 file changed, 35 insertions(+), 24 delet

[PATCH v5 10/12] zsmalloc: use freeobj for index

2016-05-08 Thread Minchan Kim
Zsmalloc stores first free object's position into freeobj in each zspage. If we change it with index from first_page instead of position, it makes page migration simple because we don't need to correct other entries for linked list if a page is migrated out. Cc: Sergey Senozhatsky Signed-off-by:

[PATCH v5 12/12] zram: use __GFP_MOVABLE for memory allocation

2016-05-08 Thread Minchan Kim
Zsmalloc is ready for page migration so zram can use __GFP_MOVABLE from now on. I did test to see how it helps to make higher order pages. Test scenario is as follows. KVM guest, 1G memory, ext4 formated zram block device, for i in `seq 1 8`; do dd if=/dev/vda1 of=mnt/test$i.txt bs=128M

[PATCH v5 09/12] zsmalloc: separate free_zspage from putback_zspage

2016-05-08 Thread Minchan Kim
Currently, putback_zspage does free zspage under class->lock if fullness become ZS_EMPTY but it makes trouble to implement locking scheme for new zspage migration. So, this patch is to separate free_zspage from putback_zspage and free zspage out of class->lock which is preparation for zspage migrat

[PATCH v5 04/12] zsmalloc: keep max_object in size_class

2016-05-08 Thread Minchan Kim
Every zspage in a size_class has same number of max objects so we could move it to a size_class. Reviewed-by: Sergey Senozhatsky Signed-off-by: Minchan Kim --- mm/zsmalloc.c | 32 +++- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/mm/zsmalloc.c b/mm

[PATCH v5 05/12] zsmalloc: use bit_spin_lock

2016-05-08 Thread Minchan Kim
Use kernel standard bit spin-lock instead of custom mess. Even, it has a bug which doesn't disable preemption. The reason we don't have any problem is that we have used it during preemption disable section by class->lock spinlock. So no need to go to stable. Cc: Sergey Senozhatsky Signed-off-by:

[PATCH v5 03/12] mm: balloon: use general non-lru movable page feature

2016-05-08 Thread Minchan Kim
Now, VM has a feature to migrate non-lru movable pages so balloon doesn't need custom migration hooks in migrate.c and compaction.c. Instead, this patch implements page->mapping->a_ops->{isolate|migrate|putback} functions. With that, we could remove hooks for ballooning in general migration functi

[PATCH v5 06/12] zsmalloc: use accessor

2016-05-08 Thread Minchan Kim
Upcoming patch will change how to encode zspage meta so for easy review, this patch wraps code to access metadata as accessor. Cc: Sergey Senozhatsky Signed-off-by: Minchan Kim --- mm/zsmalloc.c | 82 +++ 1 file changed, 60 insertions(+),

[PATCH v5 00/13] Support non-lru page migration

2016-05-08 Thread Minchan Kim
Recently, I got many reports about perfermance degradation in embedded system(Android mobile phone, webOS TV and so on) and easy fork fail. The problem was fragmentation caused by zram and GPU driver mainly. With memory pressure, their pages were spread out all of pageblock and it cannot be migrat

[PATCH v5 02/12] mm: migrate: support non-lru movable page migration

2016-05-08 Thread Minchan Kim
We have allowed migration for only LRU pages until now and it was enough to make high-order pages. But recently, embedded system(e.g., webOS, android) uses lots of non-movable pages(e.g., zram, GPU memory) so we have seen several reports about troubles of small high-order allocation. For fixing the

Re: sched: tweak select_idle_sibling to look for idle threads

2016-05-08 Thread Yuyang Du
On Sun, May 08, 2016 at 10:08:55AM +0200, Mike Galbraith wrote: > > Maybe give the criteria a bit margin, not just wakees tend to equal > > llc_size, > > but the numbers are so wild to easily break the fragile condition, like: > > Seems lockless traversal and averages just lets multiple CPUs sele

Re: [PATCH 1/6] statx: Add a system call to make enhanced file info available

2016-05-08 Thread J. Bruce Fields
On Mon, May 09, 2016 at 11:45:43AM +1000, Dave Chinner wrote: > [ OT, but I'll reply anyway :P ] > > On Fri, May 06, 2016 at 02:29:23PM -0400, J. Bruce Fields wrote: > > On Thu, May 05, 2016 at 08:56:02AM +1000, Dave Chinner wrote: > > > In the latest XFS filesystem format, we randomise the genera

[PATCH] sched: fix the calculation of __sched_period in sched_slice()

2016-05-08 Thread Zhou Chengming
When we get the sched_slice of a sched_entity, we use cfs_rq->nr_running to calculate the whole __sched_period. But cfs_rq->nr_running is the number of sched_entity in that cfs_rq, rq->nr_running is the number of all the tasks that are not throttled. So we should use the rq->nr_running to calculate

[PATCH 2/3] staging: dgnc: remove redundant condition check

2016-05-08 Thread Daeseok Youn
dgnc_board(brd) was already checked for NULL before calling neo_parse_isr(). And also port doesn't need to check. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_neo.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_n

[PATCH 3/3] staging: dgnc: Need to check for NULL of ch

2016-05-08 Thread Daeseok Youn
the "ch" from brd structure could be NULL, it need to check for NULL. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_neo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_neo.c index 9eae1a6..ba57e95 10064

[PATCH 1/3] staging: dgnc: fix 'line over 80 characters'

2016-05-08 Thread Daeseok Youn
fix checkpatch.pl warning about 'line over 80 characters'. Signed-off-by: Daeseok Youn --- drivers/staging/dgnc/dgnc_sysfs.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/drivers/staging/dgnc/dgnc_sysfs.c b/drivers/staging/dgnc/dgnc_sysfs.c index d825

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

2016-05-08 Thread Du, Changbin
> From: Thomas Gleixner [mailto:t...@linutronix.de] > On Sun, 8 May 2016, Du, Changbin wrote: > > > From: Thomas Gleixner [mailto:t...@linutronix.de] > > > > raw_spin_unlock_irqrestore(&db->lock, flags); > > > > /* > > > > -* Maybe the object is stati

Re: [PATCH] mmc: mmc: do not use CMD13 to get status after speed mode switch

2016-05-08 Thread Shawn Lin
+ linux-rockchip I just hacked my local branch to fix the issues found on rockchip platform. The reaseon is that mmc core fail to get status after switching from hs200 to hs. So I disabled sending status for it just like what Chaotian does here. But I didn't deeply dig out the root cause but I a

Re: sched: tweak select_idle_sibling to look for idle threads

2016-05-08 Thread Mike Galbraith
On Mon, 2016-05-09 at 02:57 +0800, Yuyang Du wrote: > On Sun, May 08, 2016 at 10:08:55AM +0200, Mike Galbraith wrote: > > > Maybe give the criteria a bit margin, not just wakees tend to equal > > > llc_size, > > > but the numbers are so wild to easily break the fragile condition, like: > > > > Se

Re: [PATCH v4 1/2] soc: qcom: smd: Introduce compile stubs

2016-05-08 Thread David Miller
From: Bjorn Andersson Date: Fri, 6 May 2016 07:09:07 -0700 > Introduce compile stubs for the SMD API, allowing consumers to be > compile tested. > > Acked-by: Andy Gross > Signed-off-by: Bjorn Andersson Applied.

Re: [PATCH v4 2/2] net: Add Qualcomm IPC router

2016-05-08 Thread David Miller
From: Bjorn Andersson Date: Fri, 6 May 2016 07:09:08 -0700 > From: Courtney Cavin > > Add an implementation of Qualcomm's IPC router protocol, used to > communicate with service providing remote processors. > > Signed-off-by: Courtney Cavin > Signed-off-by: Bjorn Andersson > [bjorn: Cope wi

Re: [PATCH v2] net: arc/emac: Move arc_emac_tx_clean() into arc_emac_tx() and disable tx interrut

2016-05-08 Thread David Miller
From: Caesar Wang Date: Fri, 6 May 2016 20:19:16 +0800 > Doing tx_clean() inside poll() may scramble the tx ring buffer if > tx() is running. This will cause tx to stop working, which can be > reproduced by simultaneously downloading two large files at high speed. > > Moving tx_clean() into tx(

Re: [PATCH 0/2] Quiet noisy LSM denial when accessing net sysctl

2016-05-08 Thread David Miller
From: Tyler Hicks Date: Fri, 6 May 2016 18:04:12 -0500 > This pair of patches does away with what I believe is a useless denial > audit message when a privileged process initially accesses a net sysctl. The LSM folks can apply this if they agree with you.

Re: [PATCH] tools: bpf_jit_disasm: check for klogctl failure

2016-05-08 Thread David Miller
From: Daniel Borkmann Date: Fri, 06 May 2016 00:46:56 +0200 > On 05/06/2016 12:39 AM, Colin King wrote: >> From: Colin Ian King >> >> klogctl can fail and return -ve len, so check for this and >> return NULL to avoid passing a (size_t)-1 to malloc. >> >> Signed-off-by: Colin Ian King > > [ wou

[PATCH -tip] sched/wake_q: fix typo in wake_q_add

2016-05-08 Thread Davidlohr Bueso
... the comment clearly refers to wake_up_q, and not wake_up_list. Signed-off-by: Davidlohr Bueso --- kernel/sched/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index c82ca6eccfec..c59e4df38591 100644 --- a/kernel/sched/core.

Re: [PATCH V2 2/2] irqchip/gicv3-its: Implement two-level(indirect) device table support

2016-05-08 Thread Shanker Donthineni
On 05/08/2016 09:14 PM, Shanker Donthineni wrote: > Since device IDs are extremely sparse, the single, a.k.a flat table is > not sufficient for the following two reasons. > > 1) According to ARM-GIC spec, ITS hw can access maximum of 256(pages)* >64K(pageszie) bytes. In the best case, it supp

Re: sched: tweak select_idle_sibling to look for idle threads

2016-05-08 Thread Yuyang Du
On Mon, May 09, 2016 at 05:45:40AM +0200, Mike Galbraith wrote: > On Mon, 2016-05-09 at 02:57 +0800, Yuyang Du wrote: > > On Sun, May 08, 2016 at 10:08:55AM +0200, Mike Galbraith wrote: > > > > Maybe give the criteria a bit margin, not just wakees tend to equal > > > > llc_size, > > > > but the nu

[PATCH] sched/rt/deadline: Don't push if task's scheduling class was changed

2016-05-08 Thread Xunlei Pang
We got a warning below: WARNING: CPU: 1 PID: 2468 at kernel/sched/core.c:1161 set_task_cpu+0x1af/0x1c0 CPU: 1 PID: 2468 Comm: bugon Not tainted 4.6.0-rc3+ #16 Hardware name: Intel Corporation Broadwell Client 0086 89618374 8800897a7d50 8133dc8c 0

Re: [RFC PATCH v2 07/10] efi: load SSTDs from EFI variables

2016-05-08 Thread Jon Masters
Hi Octavian, Apologies for missing this earlier, just catching up on this thread... On 04/19/2016 06:39 PM, Octavian Purdila wrote: > This patch allows SSDTs to be loaded from EFI variables. It works by > specifying the EFI variable name containing the SSDT to be loaded. All > variables with the

Re: sched: tweak select_idle_sibling to look for idle threads

2016-05-08 Thread Yuyang Du
On Mon, May 09, 2016 at 05:52:51AM +0200, Mike Galbraith wrote: > On Mon, 2016-05-09 at 02:57 +0800, Yuyang Du wrote: > > > In addition, I would argue maybe beefing up idle balancing is a more > > productive way to spread load, as work-stealing just does what needs > > to be done. And seems it has

Re: [PATCH] Use pid_t instead of int

2016-05-08 Thread René Nyffenegger
Somewhere else, pid_t is a typedef for an int. Rene On 09.05.2016 03:25, Andy Lutomirski wrote: > On Sun, May 8, 2016 at 12:38 PM, René Nyffenegger > wrote: >> Use pid_t instead of int in the declarations of sys_kill, sys_tgkill, >> sys_tkill and sys_rt_sigqueueinfo in include/linux/syscalls.h >

Re: [patch] qede: uninitialized variable in qede_start_xmit()

2016-05-08 Thread David Miller
From: Dan Carpenter Date: Thu, 5 May 2016 16:21:30 +0300 > "data_split" was never set to false. It's just uninitialized. > > Fixes: 2950219d87b0 ('qede: Add basic network device support') > Signed-off-by: Dan Carpenter Applied, thanks Dan.

Re: sched: tweak select_idle_sibling to look for idle threads

2016-05-08 Thread Mike Galbraith
On Mon, 2016-05-09 at 02:57 +0800, Yuyang Du wrote: > In addition, I would argue maybe beefing up idle balancing is a more > productive way to spread load, as work-stealing just does what needs > to be done. And seems it has been (sub-unconsciously) neglected in this > case, :) P.S. Nope, I'm din

RE:Drawstring bags

2016-05-08 Thread Jack
Dear purchasing manager, We have rich experience in manufacturing and exporting all kinds of bags, We have our own production base with advanced machine equipment, and employ professional workforce of technicians and engineers. Our products range from tote bags, drawstring bags, luggage bags,

Re: [PATCH 1/2] kernel: Add noaudit variant of ns_capable()

2016-05-08 Thread Serge Hallyn
Quoting Tyler Hicks (tyhi...@canonical.com): > When checking the current cred for a capability in a specific user > namespace, it isn't always desirable to have the LSMs audit the check. > This patch adds a noaudit variant of ns_capable() for when those > situations arise. > > The common logic bet

Re: [PATCH 2/2] net: Use ns_capable_noaudit() when determining net sysctl permissions

2016-05-08 Thread Serge Hallyn
Quoting Tyler Hicks (tyhi...@canonical.com): > The capability check should not be audited since it is only being used > to determine the inode permissions. A failed check does not indicate a > violation of security policy but, when an LSM is enabled, a denial audit > message was being generated. >

[GIT] Networking

2016-05-08 Thread David Miller
1) Check klogctl failure correctly, from Colin Ian King. 2) Prevent OOM when under memory pressure in flowcache, from Steffen Klassert. 3) Fix info leak in llc and rtnetlink ifmap code, from Kangjie Lu. 4) Memory barrier and multicast handling fixes in bnxt_en, from Michael Chan. 5) Endi

[PATCH -tip 0/4] locking/rwsem (xadd): Reader waiter optimizations

2016-05-08 Thread Davidlohr Bueso
Hi, This is a follow up series while reviewing Waiman's reader-owned state work[1]. While I have based it on -tip instead of that change, I can certainly rebase the series in some future iteration. Changes are mainly around reader-waiter optimizations, in no particular order. Has passed numerous

<    1   2   3   >