Re: lib: Introduce priority array area manager

2017-02-22 Thread Geert Uytterhoeven
Hi Jiri, On Wed, Feb 22, 2017 at 8:02 PM, Linux Kernel Mailing List wrote: > Web: > https://git.kernel.org/torvalds/c/44091d29f2075972aede47ef17e1e70db3d51190 > Commit: 44091d29f2075972aede47ef17e1e70db3d51190 > Parent: b862815c3ee7b49ec20a9ab25da55a5f0bcbb95e > Refname:refs/h

Re: [PATCHv7 2/8] printk: rename nmi.c and exported api

2017-02-22 Thread Geert Uytterhoeven
Hi Sergey, On Tue, Dec 27, 2016 at 3:16 PM, Sergey Senozhatsky wrote: > A preparation patch for printk_safe work. No functional change. > - rename nmi.c to print_safe.c > - add `printk_safe' prefix to some (which used both by printk-safe > and printk-nmi) of the exported functions. > > Signed-o

RE: [PATCH 1/7] fs, xfs: convert xfs_bui_log_item.bui_refcount from atomic_t to refcount_t

2017-02-22 Thread Reshetova, Elena
> On Wed, Feb 22, 2017 at 11:20:31AM +, Reshetova, Elena wrote: > > > On Tue, Feb 21, 2017 at 05:49:01PM +0200, Elena Reshetova wrote: > > > > refcount_t type and corresponding API should be > > > > used instead of atomic_t when the variable is used as > > > > a reference counter. This allows t

[BUG?] perf: dwarf unwind doesn't work correctly on aarch64

2017-02-22 Thread Masami Hiramatsu
Hello, perf record -g dwarf (and perf report) doesn't show correct callchain on aarch64. Here is how to reproduce it. 1) I've prepared an debian8 aarch64 VM on qemu-system-aarch64, and build/install the latest perftools on it. 2) Build attached program as below # gcc -O0 -ggdb3 -funwind-table

Re: [PATCH 2/7] clk: tegra: fix isp clock modelling

2017-02-22 Thread Mikko Perttunen
The TRM shows a CLK_SOURCE_ISPB register, but after some discussion, it seems like that is a documentation generation bug, so this should be correct. Reviewed-by: Mikko Perttunen On 22.02.2017 17:13, Peter De Schrijver wrote: The 2 isp clocks (ispa and ispb) share a mux/divider control. So m

TEBRIK EDERIZ!!!

2017-02-22 Thread Avustralya Piyangosu Uluslararasi
Tarihli: 20.02.2017 Ref: 435062725 Toplu is: 7050470902/189 Kazanma no: GB8101 / LPRC TEBRIK EDERIZ!!! Sevgili kazanan, Size olan odulunuzu bildirmekten mutluluk duyuyoruz. 20 subat 2017'de yayinlanan Avustralya Uluslararasi piyango, tamamen temelli olarak programlanmis Kazananlarin elektronik b

Re: [PATCH] drm: kselftest: fix spelling mistake: "misalinged" -> "misaligned"

2017-02-22 Thread Chris Wilson
On Thu, Feb 23, 2017 at 12:07:17AM +, Colin King wrote: > From: Colin Ian King > > trivial fix to spelling mistake in pr_err message > > Signed-off-by: Colin Ian King Reviewed-by: Chris Wilson -Chris -- Chris Wilson, Intel Open Source Technology Centre

Re: [lkp-robot] [mm, vmscan] 5e56dfbd83: fsmark.files_per_sec -11.1% regression

2017-02-22 Thread Michal Hocko
On Thu 23-02-17 09:27:34, Ye Xiaolong wrote: > Hi, Michal > > On 02/07, Michal Hocko wrote: > [snip] > >Could you retest with a single NUMA node? I am not familiar with the > >benchmark enough to judge it was set up properly for a NUMA machine. > > I've retested the commit with a single NUMA node

Re: [RFC PATCH] mm/vmscan: fix high cpu usage of kswapd if there

2017-02-22 Thread Michal Hocko
On Wed 22-02-17 15:24:06, Johannes Weiner wrote: > On Wed, Feb 22, 2017 at 03:16:57PM -0500, Johannes Weiner wrote: > > [...] And then it sounds pretty much like what the allocator/direct > > reclaim already does. > > On a side note: Michal, I'm not sure I fully understand why we need > the backof

Re: [PATCH v2] regulator: devres: introduce managed enable and disable operations

2017-02-22 Thread Dmitry Torokhov
On Tue, Feb 21, 2017 at 10:56:34AM -0800, Mark Brown wrote: > On Tue, Feb 21, 2017 at 12:30:03AM -0800, Dmitry Torokhov wrote: > > On Mon, Feb 20, 2017 at 11:02:58AM -0800, Mark Brown wrote: > > > On Mon, Feb 13, 2017 at 10:51:52AM -0800, Dmitry Torokhov wrote: > > > But that is what I meant here a

Re: [PATCH v4 01/17] x86/mpx: Do not use SIB index if index points to R/ESP

2017-02-22 Thread Peter Zijlstra
On Wed, Feb 22, 2017 at 10:36:50PM -0800, Ricardo Neri wrote: > + /* > + * A negative offset generally means a error, except > + * -EDOM, which means that the contents of the register > + * should not be used as inde

Re: [RFC PATCH] mm/vmscan: fix high cpu usage of kswapd if there

2017-02-22 Thread Michal Hocko
On Thu 23-02-17 10:46:01, hejianet wrote: > sorry, resend it due to a delivery-failure: > "Wrong MIME labeling on 8-bit character texts" > I am sorry if anybody received it twice > > Hi Johannes > On 23/02/2017 4:16 AM, Johannes Weiner wrote: > > On Wed, Feb 22, 2017 at 05:04:48PM +080

Re: [Outreachy kernel] Re: [PATCH v2] staging: wilc1000: renames struct tstrRSSI and its members u8Index, u8Full

2017-02-22 Thread Julia Lawall
> Thanks for the feedback Arend, I really appreciate it. I've decided to go with > these changes in my follow-up patch request: > > - rename tstrRSSI to 'rssi_history_buffer' as Aren suggested since it makes > the > purpose of the struct clear > - remove Hungarian notation from all tstrRSSI member

[PATCH] target: Fix NULL dereference during LUN lookup + active I/O shutdown

2017-02-22 Thread Nicholas A. Bellinger
From: Nicholas Bellinger When transport_clear_lun_ref() is shutting down a se_lun via configfs with new I/O in-flight, it's possible to trigger a NULL pointer dereference in transport_lookup_cmd_lun() due to the fact percpu_ref_get() doesn't do any __PERCPU_REF_DEAD checking before incrementing l

[PATCH] ARM: dts: sunxi: Add regulators for Sinovoip BPI-M2

2017-02-22 Thread Emmanuel Vadot
Add the needed node for DFVS on Sinovoip BPI-M2. This add the axp221 under the p2wi node, the regulators and the cpu-supply property for cpu0. Signed-off-by: Emmanuel Vadot --- arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts | 57 1 file changed, 57 insertions(+) diff

Re: [PATCH V3 0/4] Define coherent device memory node

2017-02-22 Thread Anshuman Khandual
On 02/22/2017 03:20 PM, Michal Hocko wrote: > On Tue 21-02-17 19:09:18, Anshuman Khandual wrote: >> On 02/21/2017 04:41 PM, Michal Hocko wrote: >>> On Fri 17-02-17 17:11:57, Anshuman Khandual wrote: >>> [...] * User space using mbind() to get CDM memory is an additional benefit we get b

[PATCH v4 06/17] x86/insn-eval: Add utility function to get segment descriptor

2017-02-22 Thread Ricardo Neri
The segment descriptor contains information that is relevant to how linear address need to be computed. It contains the default size of addresses as well as the base address of the segment. Thus, given a segment selector, we ought look at segment descriptor to correctly calculate the linear address

Re: [PATCH] dma-buf: add support for compat ioctl

2017-02-22 Thread Sumit Semwal
Hi Marek, On 23 February 2017 at 00:37, Daniel Vetter wrote: > On Tue, Feb 21, 2017 at 4:08 PM, Christian König > wrote: >> Am 21.02.2017 um 15:55 schrieb Marek Szyprowski: >>> >>> Dear All, >>> >>> On 2017-02-21 15:37, Marek Szyprowski wrote: Hi Christian, On 2017-02-21 14:5

[PATCH v4 08/17] x86/insn-eval: Add functions to get default operand and address sizes

2017-02-22 Thread Ricardo Neri
These functions read the default values of the address and operand sizes as specified in the segment descriptor. This information is determined from the D and L bits. Hence, it can be used for both IA-32e 64-bit and 32-bit legacy modes. For virtual-8086 mode, the default address and operand sizes a

[PATCH v4 02/17] x86/mpx: Do not use R/EBP as base in the SIB byte with Mod = 0

2017-02-22 Thread Ricardo Neri
Section 2.2.1.2 of the Intel 64 and IA-32 Architectures Software Developer's Manual volume 2A states that when a SIB byte is used and the base of the SIB byte points to R/EBP (i.e., base = 5) and the mod part of the ModRM byte is zero, the value of such register will not be used as part of the addr

[PATCH v4 00/17] x86: Enable User-Mode Instruction Prevention

2017-02-22 Thread Ricardo Neri
This is v4 of this series. Again, it took me a while to complete the updates as support for 16-bit address encodings for protected mode required extra rework. The two previous submissions can be found here [1], here [2] and here [3]. === What is UMIP? User-Mode Instruction Prevention (UMIP) is a

[PATCH v4 07/17] x86/insn-eval: Add utility function to get segment descriptor base address

2017-02-22 Thread Ricardo Neri
With segmentation, the base address of the segment descriptor is needed to compute a linear address. The segment descriptor used in the address computation depends on either any segment override prefixes in the in the instruction or the default segment determined by the registers involved in the ad

[PATCH v4 01/17] x86/mpx: Do not use SIB index if index points to R/ESP

2017-02-22 Thread Ricardo Neri
Section 2.2.1.2 of the Intel 64 and IA-32 Architectures Software Developer's Manual volume 2A states that when memory addressing is used (i.e., mod part of ModR/M is not 3), a SIB byte is used and the index of the SIB byte points to the R/ESP (i.e., index = 4), the index should not be used in the c

[PATCH v4 04/17] x86/insn-eval: Add utility functions to get register offsets

2017-02-22 Thread Ricardo Neri
The function insn_get_reg_offset takes as argument an enumeration that indicates the type of offset that is returned: the R/M part of the ModRM byte, the index of the SIB byte or the base of the SIB byte. Callers of this function would need the definition of such enumeration. This is not needed. In

[PATCH v4 13/17] x86: Add emulation code for UMIP instructions

2017-02-22 Thread Ricardo Neri
The feature User-Mode Instruction Prevention present in recent Intel processor prevents a group of instructions from being executed with CPL > 0. Otherwise, a general protection fault is issued. Rather than relaying this fault to the user space (in the form of a SIGSEGV signal), the instructions p

[PATCH v4 09/17] x86/insn-eval: Do not use R/EBP as base if mod in ModRM is zero

2017-02-22 Thread Ricardo Neri
Section 2.2.1.3 of the Intel 64 and IA-32 Architectures Software Developer's Manual volume 2A states that when the mod part of the ModRM byte is zero and R/EBP is specified in the R/M part of such bit, the value of the aforementioned register should not be used in the address computation. Instead,

[PATCH v4 16/17] x86: Enable User-Mode Instruction Prevention

2017-02-22 Thread Ricardo Neri
User_mode Instruction Prevention (UMIP) is enabled by setting/clearing a bit in %cr4. It makes sense to enable UMIP at some point while booting, before user spaces come up. Like SMAP and SMEP, is not critical to have it enabled very early during boot. This is because UMIP is relevant only when the

[PATCH v4 05/17] x86/insn-eval: Add utility function to get segment selector

2017-02-22 Thread Ricardo Neri
When computing a linear address and segmentation is used, we need to know the base address of the segment involved in the computation. In most of the cases, it will be sufficient to use USER_DS, which has a base of 0. However, it may be possible that a user space program defines its own segments vi

[PATCH v4 03/17] x86/mpx, x86/insn: Relocate insn util functions to a new insn-kernel

2017-02-22 Thread Ricardo Neri
Other kernel submodules can benefit from using the utility functions defined in mpx.c to obtain the addresses and values of operands contained in the general purpose registers. An instance of this is the emulation code used for instructions protected by the Intel User-Mode Instruction Prevention fe

[PATCH v4 15/17] x86/traps: Fixup general protection faults caused by UMIP

2017-02-22 Thread Ricardo Neri
If the User-Mode Instruction Prevention CPU feature is available and enabled, a general protection fault will be issued if the instructions sgdt, sldt, sidt, str or smsw are executed from user-mode context (CPL > 0). If the fault was caused by any of the instructions protected by UMIP, fixup_umip_e

[PATCH v4 11/17] x86/insn-eval: Add support to resolve 16-bit addressing encodings

2017-02-22 Thread Ricardo Neri
Tasks running in virtual-8086 mode or in protected mode with code segment descriptors that specify 16-bit default address sizes via the D bit will use 16-bit addressing form encodings as described in the Intel 64 and IA-32 Architecture Software Developer's Manual Volume 2A Section 2.1.5. 16-bit add

[PATCH v2 4/4] w1: w1_ds2760.h: fix defines indentation

2017-02-22 Thread Mariusz Bialonczyk
Signed-off-by: Mariusz Bialonczyk --- drivers/w1/slaves/w1_ds2760.h | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/w1/slaves/w1_ds2760.h b/drivers/w1/slaves/w1_ds2760.h index 58e774141568..24168c94eeae 100644 --- a/drivers/w1/slaves/w1_ds2760.h +++ b/driver

[PATCH v2 0/4] w1: add DS2438 support, documentation and small fixes

2017-02-22 Thread Mariusz Bialonczyk
This is my second version of my w1 patchset. It mainly adds support for the DS2438. There is also a documentation for it and also a missing one for DS2413. Changes since v1: Cleaned up according to Evgeniy Polyakov suggestions: 1/ changed to have lock/unlock_mutex calls in a single function (it

[PATCH v4 10/17] insn/eval: Incorporate segment base in address computation

2017-02-22 Thread Ricardo Neri
insn_get_addr_ref returns the effective address as defined by the section 3.7.5.1 Vol 1 of the Intel 64 and IA-32 Architectures Software Developer's Manual. In order to truly give the linear address, we must add the effective address to the segment base as described by the segment descriptor. In m

[PATCH v2 1/4] w1: add missing DS2413 documentation

2017-02-22 Thread Mariusz Bialonczyk
Signed-off-by: Mariusz Bialonczyk --- Documentation/w1/slaves/00-INDEX | 2 ++ Documentation/w1/slaves/w1_ds2413 | 50 +++ 2 files changed, 52 insertions(+) create mode 100644 Documentation/w1/slaves/w1_ds2413 diff --git a/Documentation/w1/slaves/00-INDEX b

[PATCH v2 2/4] w1: add support for DS2438 Smart Battery Monitor

2017-02-22 Thread Mariusz Bialonczyk
Detailed information about support and provided sysfs files in my next commit which creates a documentation file: Documentation/w1/slaves/w1_ds2438 Signed-off-by: Mariusz Bialonczyk --- drivers/w1/slaves/Kconfig | 6 + drivers/w1/slaves/Makefile| 1 + drivers/w1/slaves/w1_ds2438.c |

[PATCH v2 3/4] w1: add documentation for w1_ds2438

2017-02-22 Thread Mariusz Bialonczyk
Signed-off-by: Mariusz Bialonczyk --- Documentation/w1/slaves/00-INDEX | 2 ++ Documentation/w1/slaves/w1_ds2438 | 63 +++ 2 files changed, 65 insertions(+) create mode 100644 Documentation/w1/slaves/w1_ds2438 diff --git a/Documentation/w1/slaves/00-INDEX b

[PATCH v4 14/17] x86/umip: Force a page fault when unable to copy emulated result to user

2017-02-22 Thread Ricardo Neri
fixup_umip_exception will be called from do_general_protection. If the former returns false, the latter will issue a SIGSEGV with SEND_SIG_PRIV. However, when emulation is successful but the emulated result cannot be copied to user space memory, it is more accurate to issue a SIGSEGV with SEGV_MAPE

[PATCH v4 12/17] x86/cpufeature: Add User-Mode Instruction Prevention definitions

2017-02-22 Thread Ricardo Neri
User-Mode Instruction Prevention is a security feature present in new Intel processors that, when set, prevents the execution of a subset of instructions if such instructions are executed in user mode (CPL > 0). Attempting to execute such instructions causes a general protection exception. The sub

[PATCH v4 17/17] selftests/x86: Add tests for User-Mode Instruction Prevention

2017-02-22 Thread Ricardo Neri
Certain user space programs that run on virtual-8086 mode may utilize instructions protected by the User-Mode Instruction Prevention (UMIP) security feature present in new Intel processors: SGDT, SIDT and SMSW. In such a case, a general protection fault is issued if UMIP is enabled. When such a fau

Re: [PATCH v2] staging: wilc1000: renames struct tstrRSSI and its members u8Index, u8Full

2017-02-22 Thread Joe Perches
On Wed, 2017-02-22 at 20:50 +0100, Arend Van Spriel wrote: > On 22-2-2017 18:14, Tahia Khan wrote: > > Fixes multiple camel case checks on struct tstrRSSI from checkpatch.pl: [] > Just a generic remark that may help you with other changes you will be > making in the linux kernel. Warnings from chec

Re: [PATCH V2 1/3] arm64: dts: Add basic DT to support Spreadtrum's SP9860G

2017-02-22 Thread Chunyan Zhang
[...] >>> > + >>> > + soc { >>> > + soc_funnel: funnel@10001000 { >>> >>> There is no need for a label ("soc_funnel) before the device name if that >>> device is not referenced elsewhere in the DTS. The same comment applies to >>> most >>> of the component listed below. >>> >> >> OK,

Re: git email From: parsing (was Re: [GIT PULL] Staging/IIO driver patches for 4.11-rc1)

2017-02-22 Thread Jeff King
On Thu, Feb 23, 2017 at 07:04:44AM +0100, Greg KH wrote: > > Poor Simon Sandström. > > > > Funnily enough, this only exists for one commit. You've got several > > other commits from Simon that get his name right. > > > > What happened? > > I don't know what happened, I used git for this, I don'

Re: Problem on SCTP

2017-02-22 Thread Xin Long
On Thu, Feb 23, 2017 at 1:30 PM, Sun Paul wrote: > does this fixed in RHEL7? yes, I think so. > > On Wed, Feb 22, 2017 at 11:03 AM, Xin Long wrote: >> On Wed, Feb 22, 2017 at 10:29 AM, Sun Paul wrote: >>> Hi Xin >>> >>> do you mean we need to patch the kernel? >> Yups, pls comment on that bz if

min_vruntime update when a task is sleeping/migrating

2017-02-22 Thread Pavan Kondeti
Hi Peter, The comment and the code around 2nd update_min_vruntime() call in dequeue_entity() are not matching. If I understand commit b60205c7c558 ("sched/fair: Fix min_vruntime tracking") correctly, the check is inverted there. We want to update min_vruntime when a task is sleeping/migrating. is

[PATCH v3] sched/deadline: Change the time to replenish runtime for sleep tasks

2017-02-22 Thread Byungchul Park
Let's consider the following example. timeline : o...o.o...o..o ^ ^ ^ ^ ^ | | | | | start | | | | original runtime |

Re: [PATCH v2 2/2] sched/deadline: Change the way to replenish runtime for sleep tasks

2017-02-22 Thread Byungchul Park
On Thu, Feb 23, 2017 at 12:18:48PM +0900, byungchul.park wrote: > > Current code handles this by replenishing a runtime in hrtimer callback > > for deadline. But this approach has room for improvement in two ways: > > > >1. No need to keep the hrtimer for a sleep task because it can be > >

Re: [f2fs-dev] [PATCH 2/5] f2fs: check last page index in cached bio to decide submission

2017-02-22 Thread Chao Yu
On 2017/2/4 7:48, Jaegeuk Kim wrote: > If the cached bio has the last page's index, then we need to submit it. > Otherwise, we don't need to submit it and can wait for further IO merges. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu

git email From: parsing (was Re: [GIT PULL] Staging/IIO driver patches for 4.11-rc1)

2017-02-22 Thread Greg KH
On Wed, Feb 22, 2017 at 11:59:01AM -0800, Linus Torvalds wrote: > On Wed, Feb 22, 2017 at 6:56 AM, Greg KH wrote: > > > > =?UTF-8?q?Simon=20Sandstr=C3=B6m?= (1): > > staging: vt6656: Add missing identifier names > > Wow, your scripts really screwed up that name. > > I'm assuming this is qu

Re: [PATCH v3] x86/mce: Don't participate in rendezvous process once nmi_shootdown_cpus() was made

2017-02-22 Thread Xunlei Pang
On 02/23/2017 at 02:50 AM, Luck, Tony wrote: > On Wed, Feb 22, 2017 at 12:11:14PM +0800, Xunlei Pang wrote: >> +/* >> + * Cases to bail out to avoid rendezvous process timeout: >> + * 1)If this CPU is offline. >> + * 2)If crashing_cpu was set, e.g. entering kdump, >> + * we ne

Re: [PATCH 1/1] drivers/misc: Add Intel System ID driver

2017-02-22 Thread Loh, Tien Hock
Sorry for the late reply.  This driver can currently be used by ARM and Nios II, so moving it into drivers/soc might not be the best idea. Thanks Tien Hock On Rab, 2017-02-15 at 20:51 +0100, Arnd Bergmann wrote: > On Wed, Feb 15, 2017 at 6:17 PM, Greg KH > wrote: > > > > On Wed, Feb 15, 2017 at

[PATCH 2/2] staging: fbtft: Make some s16 arrays const

2017-02-22 Thread Joe Perches
Using const reduces data size. $ size drivers/staging/fbtft/built-in.o* textdata bss dec hex filename 89909 415842928 134421 20d15 drivers/staging/fbtft/built-in.o.new 88053 433922928 134373 20ce5 drivers/staging/fbtft/built-in.o.old Signed-off-by: Joe Per

[PATCH 1/2] staging: fbtft: Make the pointers to s16 init arrays const

2017-02-22 Thread Joe Perches
This allows making some of the actual arrays const. Signed-off-by: Joe Perches --- drivers/staging/fbtft/fbtft-core.c | 2 +- drivers/staging/fbtft/fbtft.h | 4 ++-- drivers/staging/fbtft/flexfb.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/f

[PATCH 0/2] staging: fbtft: Make s16 arrays const

2017-02-22 Thread Joe Perches
Joe Perches (2): staging: fbtft: Make the pointers to s16 init arrays const staging: fbtft: Make some s16 arrays const drivers/staging/fbtft/fb_ili9481.c | 2 +- drivers/staging/fbtft/fb_ili9486.c | 2 +- drivers/staging/fbtft/fb_s6d02a1.c | 2 +- drivers/staging/fbtft/fb_st7735r.c

[PATCH] perf/core: Fix to check perf_cpu_time_max_percent

2017-02-22 Thread Tan Xiaojun
Use "proc_dointvec_minmax" instead of "proc_dointvec" to check the input value from userspace. If not, we can set a big value and some vars will overflow like "sysctl_perf_event_sample_rate". And it will cause a lot of unexpected problems. When I found this problem, I was doing the perf_fuzzer te

Re: [PATCH 1/1] drivers/misc: Add Intel System ID driver

2017-02-22 Thread Loh, Tien Hock
Sorry for the late reply. I'll add the Documentation/ABI description, use DEVICE_ATTR_RO and update ATTRIBUTE_GROUP.  Thanks Tien Hock On Rab, 2017-02-15 at 09:17 -0800, Greg KH wrote: > On Wed, Feb 15, 2017 at 07:09:41PM +0800, thloh wrote: > > > > From: "Loh, Tien Hock" > > > > This patch is

Re: [PATCH] MAINTAINERS: update firmware loader entry

2017-02-22 Thread Greg Kroah-Hartman
On Thu, Feb 23, 2017 at 09:29:26AM +0800, Ming Lei wrote: > This email of 'ming@canonical.com' isn't valid any more, > please remove the entry. > > Signed-off-by: Ming Lei > --- > MAINTAINERS | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/MAINTAINERS b/MAINTAINERS > index b9af886ab

Re: Problem on SCTP

2017-02-22 Thread Sun Paul
does this fixed in RHEL7? On Wed, Feb 22, 2017 at 11:03 AM, Xin Long wrote: > On Wed, Feb 22, 2017 at 10:29 AM, Sun Paul wrote: >> Hi Xin >> >> do you mean we need to patch the kernel? > Yups, pls comment on that bz if it's really needed for your env. > A z-stream kernel may be available for tha

linux-next: Tree for Feb 23

2017-02-22 Thread Stephen Rothwell
Hi all, Please do not add any material intended for v4.12 to your linux-next included branches until after v4.11-rc1 has been released. Changes since 20170222: Removed tree: extable (all finished with) The md tree gained a conflict against Linus' tree. The scsi tree inherited the

Re: cpufreq: get cpufreq_frequency_table from clk driver

2017-02-22 Thread Viresh Kumar
On 21-02-17, 11:13, Vlad Zakharov wrote: > Hello, > > I am trying to implement a cpufreq driver for ARCHS cpu. You mean ARC architecture here ? > And I faced with one question I am not able to answer myself. cpufreq > framework allows us using cpufreq frequency tables > that store available for

Re: [PATCH] f2fs: clean up codes in f2fs_gc related with write_checkpoint

2017-02-22 Thread Jaegeuk Kim
On 02/23, Yunlong Song wrote: > Ping... > > Since has_not_enough_free_secs(sbi, 0, 0) must be true if > has_not_enough_free_secs(sbi, sec_freed, 0) is true, > write_checkpoint is sure to execute in both conditions, and segno is > NULL_SEGNO in both conditions. Looks good to me, but applied like

Re: [PATCH] EDAC, xgene: fix spelling mistake: "procesing" -> "processing"

2017-02-22 Thread Loc Ho
Hi, > > trivial fix to spelling mistake in dev_err message > > Signed-off-by: Colin Ian King Reviewed-by: Loc Ho > --- > drivers/edac/xgene_edac.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/edac/xgene_edac.c b/drivers/edac/xgene_edac.c > index 6c270d9..66

[PATCH 4/4] f2fs: check discard alignment only for SEQWRITE zones

2017-02-22 Thread Jaegeuk Kim
For converntional zones, we don't need to align discard commands to exact zone size. Signed-off-by: Jaegeuk Kim --- fs/f2fs/segment.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index d76e49c3d1b4..6fff1c58b

[PATCH 2/4] f2fs: much larger batched trim_fs job

2017-02-22 Thread Jaegeuk Kim
We have a kernel thread to issue discard commands, so we can increase the number of batched discard sections. By default, now it becomes 4GB range. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h in

[PATCH 3/4] f2fs: wait for discard completion after submission

2017-02-22 Thread Jaegeuk Kim
We don't need to wait for each discard commands when unmounting the image. Signed-off-by: Jaegeuk Kim --- fs/f2fs/segment.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 567019940e9b..d76e49c3d1b4 100644 --- a/fs

[PATCH 1/4] f2fs: avoid very large discard command

2017-02-22 Thread Jaegeuk Kim
This patch adds MAX_DISCARD_BLOCKS() to avoid issuing too much large single discard command. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h| 3 ++- fs/f2fs/segment.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index d076b94530bc..5f3

Re: [f2fs-dev] [PATCH 3/6] f2fs: remove batched discard in f2fs_trim_fs

2017-02-22 Thread Jaegeuk Kim
On 02/23, Chao Yu wrote: > On 2017/2/23 5:55, Jaegeuk Kim wrote: > > On 02/22, Chao Yu wrote: > >> On 2017/1/13 6:44, Jaegeuk Kim wrote: > >>> We don't need to do multiple checkpoints, since we don't actually wait for > >>> completion of discard commands during checkpoint. > >>> Instead, we still n

[PATCH] sched: deadline: Fix confusing comments about selection of top pi-waiter

2017-02-22 Thread Joel Fernandes
This comment in the code is incomplete, and I believe it begs a definition of dl_boosted to make sense of the condition that follows. Rewrite the comment and also rearrange the condition that follows to reflect the first condition "we have a top pi-waiter which is a SCHED_DEADLINE task" in that ord

Re: [PATCH v20 2/4] mailbox: mediatek: Add Mediatek CMDQ driver

2017-02-22 Thread Jassi Brar
On Wed, Feb 22, 2017 at 8:42 AM, Horng-Shyang Liao wrote: > On Thu, 2017-02-16 at 21:02 +0530, Jassi Brar wrote: >> On Mon, Feb 6, 2017 at 11:07 AM, Horng-Shyang Liao >> wrote: >> > Hi Jassi, >> > >> > On Wed, 2017-02-01 at 10:52 +0530, Jassi Brar wrote: >> >> On Thu, Jan 26, 2017 at 2:07 PM, Ho

Re: [PATCH v2] staging: wilc1000: renames struct tstrRSSI and its members u8Index, u8Full

2017-02-22 Thread Tahia Khan
On Wed, Feb 22, 2017 at 08:50:31PM +0100, Arend Van Spriel wrote: > On 22-2-2017 18:14, Tahia Khan wrote: > > Fixes multiple camel case checks on struct tstrRSSI from checkpatch.pl: > > > > Avoid CamelCase: > > Avoid CamelCase: > > Avoid CamelCase: > > Just a generic remark that may help you w

Re: [PATCH] powerpc: Remove leftover cputime_to_nsecs call causing build error

2017-02-22 Thread Frederic Weisbecker
On Thu, Feb 23, 2017 at 08:34:15AM +1100, Michael Ellerman wrote: > Frederic Weisbecker writes: > > > This type conversion is a leftover that got ignored during the kcpustat > > conversion to nanosecs, resulting in build breakage with config having > > CONFIG_NO_HZ_FULL=y. > > > > arch/powerp

Re: [PATCH v2 2/2] mfd: axp20x: Add support for dts property "xpowers,master-mode"

2017-02-22 Thread Chen-Yu Tsai
On Thu, Feb 23, 2017 at 3:42 AM, Rask Ingemann Lambertsen wrote: > commit b101829a029a ("mfd: axp20x: Fix AXP806 access errors on cold boot") > was intended to fix the case where a board uses an AXP806 in slave mode, > but the boot loader leaves it in master mode for lack of AXP806 support. > But

[PATCH v2 1/2] sched/deadline: Factor out the actual work replenishing runtime

2017-02-22 Thread Byungchul Park
The actual work replenishing runtime can also be used by other than replenish_dl_entiry(). So factor this out into a separate function so that others can use it. Signed-off-by: Byungchul Park --- kernel/sched/deadline.c | 59 - 1 file changed, 34 i

[PATCH v2 2/2] sched/deadline: Change the way to replenish runtime for sleep tasks

2017-02-22 Thread Byungchul Park
Let's consider the following example. timeline : o...o.o...o..o ^ ^ ^ ^ ^ | | | | | start | | | | original runtime |

Re: [PATCH 1/5] f2fs: show # of APPEND and UPDATE inodes

2017-02-22 Thread Chao Yu
On 2017/2/4 7:48, Jaegeuk Kim wrote: > This patch shows cached # of APPEND and UPDATE inode entries. > > Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu

[PATCH] arm64: Fix the kernel panic() on QDF2400 platform

2017-02-22 Thread Shanker Donthineni
The commit 38fd94b0 'arm64: Work around Falkor erratum 1003' has been added to fix the hardware bug but causing a system crash. The value of the register x1 which contains 'struct mm_struct *' should be preserved inside macro pre_ttbr0_update_workaround. Macro pre_ttbr0_update_workaround expects 2

linux-next: build failure after merge of the scsi-mkp tree

2017-02-22 Thread Stephen Rothwell
Hi Martin, After merging the scsi-mkp tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/scsi/qedf/qedf_io.c: In function 'qedf_trace_io': drivers/scsi/qedf/qedf_io.c:1001:33: error: passing argument 1 of 'atomic_read' from incompatible pointer type [-Werror=incompati

RE: [PATCH v2 2/2] sched/deadline: Change the way to replenish runtime for sleep tasks

2017-02-22 Thread byungchul.park
> -Original Message- > From: Byungchul Park [mailto:byungchul.p...@lge.com] > Sent: Thursday, February 23, 2017 12:11 PM > To: pet...@infradead.org; mi...@kernel.org > Cc: linux-kernel@vger.kernel.org; juri.le...@gmail.com; > rost...@goodmis.org; kernel-t...@lge.com > Subject: [PATCH v2 2/2

Fwd: Re: [RFC PATCH] mm/vmscan: fix high cpu usage of kswapd if there

2017-02-22 Thread hejianet
resend it to lkml only. Forwarded Message Subject: Re: [RFC PATCH] mm/vmscan: fix high cpu usage of kswapd if there Date: Thu, 23 Feb 2017 10:46:01 +0800 From: hejianet To: Johannes Weiner CC: linux...@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Mel Gorman , Vla

[PATCH v2] dt-bindings: net: generalize moxart-mac to support all faraday based ftmac IP

2017-02-22 Thread Greentime Hu
Andestech and moxa use the same faraday mac IP, so we use faraday,ftmac.txt to describe it. Signed-off-by: Greentime Hu --- Changes in v2: - Wrap the commit messages and remove the hunk that are already applied. --- .../net/{moxa,moxart-mac.txt => faraday,ftmac.txt} |7 +-- 1 file chang

[PATCH] staging: olpc_dcon: add whitespace around binary operators

2017-02-22 Thread Kenneth Hsu
This fixes a coding style issue where whitespace characters were missing around some binary OR operators. Signed-off-by: Kenneth Hsu --- drivers/staging/olpc_dcon/olpc_dcon_xo_1_5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/olpc_dcon/olpc_dcon_xo_1_5

Re: [GIT PULL] namespaces related fixes for v4.11-rc1

2017-02-22 Thread Andy Lutomirski
On Wed, Feb 22, 2017 at 5:29 PM, Eric W. Biederman wrote: > Aleksa Sarai writes: > >>> The only known user of this prctl systemd >>> forks all children after the prctl. So no userspace regressions will >>> occur. >> >> Note that runC and containerd (and thus Docker) as well as cri-o use the >>

Re: [PATCH v2 00/01] KVM: x86: never specify a sample period for virtualized in_tx_cp counters

2017-02-22 Thread Robert O'Callahan
Ping? Is there something else I need to do to get someone to look at this? Thanks, Rob -- lbir ye,ea yer.tnietoehr rdn rdsme,anea lurpr edna e hnysnenh hhe uresyf toD selthor stor edna siewaoeodm or v sstvr esBa kbvted,t rdsme,aoreseoouoto o l euetiuruewFa kbn e hnystoivateweh uresyf tul

Re: [PATCH] f2fs: clean up codes in f2fs_gc related with write_checkpoint

2017-02-22 Thread Yunlong Song
Ping... Since has_not_enough_free_secs(sbi, 0, 0) must be true if has_not_enough_free_secs(sbi, sec_freed, 0) is true, write_checkpoint is sure to execute in both conditions, and segno is NULL_SEGNO in both conditions. On 2017/2/21 20:43, Yunlong Song wrote: > Signed-off-by: Yunlong Song > ---

[PATCH V2] f2fs: introduce free nid bitmap

2017-02-22 Thread Chao Yu
In scenario of intensively node allocation, free nids will be ran out soon, then it needs to stop to load free nids by traversing NAT blocks, in worse case, if NAT blocks does not be cached in memory, it generates IOs which slows down our foreground operations. In order to speed up node allocation

[PATCH] uapi: stop including linux/sysctl.h in uapi/linux/netfilter.h

2017-02-22 Thread Dmitry V. Levin
linux/netfilter.h is the last uapi header file that includes linux/sysctl.h but it does not depend on definitions provided by this essentially dead header file. Suggested-by: Eric W. Biederman Signed-off-by: Dmitry V. Levin --- include/uapi/linux/netfilter.h | 1 - 1 file changed, 1 deletion(-)

Re: [f2fs-dev] [PATCH 10/10] f2fs: return fs_trim if there is no candidate

2017-02-22 Thread Jaegeuk Kim
On 02/23, Chao Yu wrote: > Hi Jaegeuk, > > On 2017/2/23 5:26, Jaegeuk Kim wrote: ... > >>> + __u64 trim_start = cpc->trim_start; > >> > >> bool has_candidate = false; > >> > >>> + > >>> + mutex_lock(&SIT_I(sbi)->sentry_lock); > >>> + for (; trim_start <= cpc->trim_end; trim_start++) > >>> +

Re: [PATCH net-next] virtio-net: switch to use build_skb() for small buffer

2017-02-22 Thread Jason Wang
On 2017年02月23日 01:17, John Fastabend wrote: On 17-02-21 12:46 AM, Jason Wang wrote: This patch switch to use build_skb() for small buffer which can have better performance for both TCP and XDP (since we can work at page before skb creation). It also remove lots of XDP codes since both mergeabl

Re: [f2fs-dev] [PATCH 08/10] f2fs: relax async discard commands more

2017-02-22 Thread Jaegeuk Kim
On 02/23, Chao Yu wrote: > On 2017/2/23 5:15, Jaegeuk Kim wrote: > > On 02/22, Chao Yu wrote: > >> On 2017/1/6 10:42, Jaegeuk Kim wrote: > >>> Hi Chao, > >>> > >>> On 01/06, Chao Yu wrote: > On 2017/1/6 3:46, Jaegeuk Kim wrote: > > On 01/05, Chao Yu wrote: > >> On 2017/1/4 17:29, Chao

Re: [PATCH 3/3] f2fs: provide more chance for node and data to get ssr segment

2017-02-22 Thread Yunlong Song
Hi Jay, I miss some codes from your mail, now I check all your patch codes and make clear with question 2 and 3, it's fine. But still, how about question 1? On 2017/2/23 10:13, Yunlong Song wrote: > Hi Jay, > But there are some differences: > 1 Why not take "neighboring temperature"

Re: [RFC PATCH] mm/vmscan: fix high cpu usage of kswapd if there

2017-02-22 Thread hejianet
Hi Michal On 22/02/2017 11:48 PM, Michal Hocko wrote: On Wed 22-02-17 22:31:50, hejianet wrote: Hi Michal On 22/02/2017 7:41 PM, Michal Hocko wrote: On Wed 22-02-17 17:04:48, Jia He wrote: When I try to dynamically allocate the hugepages more than system total free memory: e.g. echo 4000 >/p

Re: [f2fs-dev] [PATCH 3/6] f2fs: remove batched discard in f2fs_trim_fs

2017-02-22 Thread Chao Yu
On 2017/2/23 5:55, Jaegeuk Kim wrote: > On 02/22, Chao Yu wrote: >> On 2017/1/13 6:44, Jaegeuk Kim wrote: >>> We don't need to do multiple checkpoints, since we don't actually wait for >>> completion of discard commands during checkpoint. >>> Instead, we still need to avoid very big discard command

Re: [f2fs-dev] [PATCH] f2fs: introduce free nid bitmap

2017-02-22 Thread Chao Yu
Hi Jaegeuk, Thanks for all your comments, let me fix these and send v2 patch. :) Thanks, On 2017/2/23 7:26, Jaegeuk Kim wrote: > Hi Chao, > > On 02/21, Chao Yu wrote: >> In scenario of intensively node allocation, free nids will be ran out >> soon, then it needs to stop to load free nids by tra

Re: [GIT PULL] namespaces related fixes for v4.11-rc1

2017-02-22 Thread Aleksa Sarai
The only known user of this prctl systemd forks all children after the prctl. So no userspace regressions will occur. Note that runC and containerd (and thus Docker) as well as cri-o use the prctl as well -- to be able to collect exit codes from a non-child process (namely to collect the exit c

Re: [PATCH] uapi: fix linux/kexec.h userspace compilation errors

2017-02-22 Thread Dmitry V. Levin
On Thu, Feb 23, 2017 at 02:37:46PM +1300, Eric W. Biederman wrote: > "Dmitry V. Levin" writes: > > > Include (guarded by #ifndef __KERNEL__) to fix the following > > linux/kexec.h userspace compilation errors: > > > > /usr/include/linux/kexec.h:53:2: error: unknown type name 'size_t' > > size_

Re: [PATCH 3/3] f2fs: provide more chance for node and data to get ssr segment

2017-02-22 Thread Yunlong Song
Hi Jay, But there are some differences: 1 Why not take "neighboring temperature" for ssr? For example, if type == CURSEG_COLD_DATA, your new patch selects CURSEG_HOT_DATA first, how about select CURSEG_WARM_DATA first? The patch I sent ensure this "neighboring temperature" for ssr. 2

Re: [f2fs-dev] [PATCH 10/10] f2fs: return fs_trim if there is no candidate

2017-02-22 Thread Chao Yu
Hi Jaegeuk, On 2017/2/23 5:26, Jaegeuk Kim wrote: > Hi Chao, > > On 02/22, Chao Yu wrote: >> On 2016/12/31 2:51, Jaegeuk Kim wrote: >>> If there is no candidate to submit discard command during f2sf_trim_fs, >>> let's >>> return without checkpoint. >>> >>> Signed-off-by: Jaegeuk Kim >> >> Revie

Re: [f2fs-dev] [PATCH 08/10] f2fs: relax async discard commands more

2017-02-22 Thread Chao Yu
On 2017/2/23 5:15, Jaegeuk Kim wrote: > On 02/22, Chao Yu wrote: >> On 2017/1/6 10:42, Jaegeuk Kim wrote: >>> Hi Chao, >>> >>> On 01/06, Chao Yu wrote: On 2017/1/6 3:46, Jaegeuk Kim wrote: > On 01/05, Chao Yu wrote: >> On 2017/1/4 17:29, Chao Yu wrote: >>> On 2016/12/31 2:51, Jaege

Re: [PATCH v3] staging: xgifb: function prototype argument should also have an identifier name

2017-02-22 Thread Tobin C. Harding
Please use the imperative mood in the subject line i.e the short form of git commit log. A couple of example Subjects:: Subject: [PATCH 2/5] ext2: improve scalability of bitmap searching Subject: [PATCH v2 01/27] x86: fix eflags tracking Awesome work on you patches! thanks, Tobin.

[PATCH v1 2/2] coresight: add support for debug module

2017-02-22 Thread Leo Yan
Coresight includes debug module and usually the module connects with CPU debug logic. ARMv8 architecture reference manual (ARM DDI 0487A.k) has description for related info in "Part H: External Debug". Chapter H7 "The Sample-based Profiling Extension" introduces several sampling registers, e.g. we

  1   2   3   4   5   6   7   8   >