Re: [RFC] mm/migrate: Add new migration reason MR_HUGETLB

2018-01-29 Thread Anshuman Khandual
On 01/30/2018 08:37 AM, Anshuman Khandual wrote: > @@ -7621,8 +7622,13 @@ static int __alloc_contig_migrate_range(struct > compact_control *cc, > &cc->migratepages); > cc->nr_migratepages -= nr_reclaimed; > > + if (m

linux-next: Tree for Jan 30

2018-01-29 Thread Stephen Rothwell
Hi all, Please do not add any v4.17 material to your linux-next included branches until after v4.16-rc1 has been released. Changes since 20180129: The userns tree still had its build failure for which I added a patch. Non-merge commits (relative to Linus' tree): 10187 10050 files ch

Re: [Qemu-devel] [RFC PATCH 0/3] vfio: ccw: basic channel path event handling

2018-01-29 Thread Dong Jia Shi
Halil Pasic writes: --text follows this line-- Hi Halil, --text follows this line-- AS you may noticed, Conny replied to this thread on my mail. Some of her comments there could answer your questions. If that applies, I will just say "See Conny's mail" in the following, and you can reply to that m

[PATCH 0/2] perf trace: Two trivial fixes

2018-01-29 Thread Ravi Bangoria
Two independent fixes: First adds 'generated' directory into .gitignore Second fixes call-graph output with perf trace Ravi Bangoria (2): perf tools: Add trace/beauty/generated/ into .gitignore perf trace: Fix call-graph output tools/perf/.gitignore | 1 + tools/perf/builtin-trace.c | 5

[PATCH 1/2] perf tools: Add trace/beauty/generated/ into .gitignore

2018-01-29 Thread Ravi Bangoria
No functionality changes. Signed-off-by: Ravi Bangoria --- tools/perf/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/.gitignore b/tools/perf/.gitignore index 643cc4ba..3e5135d 100644 --- a/tools/perf/.gitignore +++ b/tools/perf/.gitignore @@ -31,5 +31,6 @@ config.mak.a

[PATCH 2/2] perf trace: Fix call-graph output

2018-01-29 Thread Ravi Bangoria
Recently, Arnaldo fixed global vs event specific --max-stack usage with commit bd3dda9ab0fb ("perf trace: Allow overriding global --max-stack per event"). This commit is having a regression when we don't use --max-stack at all with perf trace. Ex, $ ./perf trace record -g ls $ ./perf trace -i

Re: [PATCH] macintosh: Add module license to ans-lcd

2018-01-29 Thread Daniel Axtens
Hi, That matches the SPDX identifier from the top of the file, so: Reviewed-by: Daniel Axtens Regards, Daniel Larry Finger writes: > In kernel 4.15, the modprobe step on my PowerBook G5 started complaining that > there was no module license for ans-lcd. > > Signed-off-by: Larry Finger > ---

RE: [PATCH RFC 01/16] prcu: Add PRCU implementation

2018-01-29 Thread zhangheng (AC)
-Original Message- >From: Boqun Feng [mailto:boqun.f...@gmail.com] >Sent: 2018年1月25日 15:31 >To: Paul E. McKenney >Cc: liangli...@huawei.com; Guohanjun (Hanjun Guo) ; >zhangheng (AC) ; Chenhaibo (Haibo, OS Lab) >; lihao.li...@gmail.com; linux-kernel@vger.kernel.org >Subject: Re: [PATCH R

Re: [perf] perf probe fails sometimes on 4.9

2018-01-29 Thread Masami Hiramatsu
On Mon, 29 Jan 2018 22:00:52 +0530 Pintu Kumar wrote: > Dear Masami, > > Thank you so much for your reply. > Please find some of my answers inline. > > > On Mon, Jan 29, 2018 at 7:47 PM, Masami Hiramatsu wrote: > > On Mon, 29 Jan 2018 13:40:34 +0530 > > Pintu Kumar wrote: > > > >> Hi All, >

[PATCH 0/2] fsi: add property to avoid scanning at boot

2018-01-29 Thread Joel Stanley
These two patches from Chris add an optional property that says the FSI attached hardware cannot cope with being probed unless the state of that hardware is known. This allows the driver to eg. defer to userspace which can make this decision. I am collecting patches for a FSI tree to send to Greg

[PATCH 1/2] dt-bindings: fsi: Add optional property no-scan-on-init

2018-01-29 Thread Joel Stanley
From: Christopher Bostic Add an optional FSI master property 'no-scan-on-init. This can be specified to indicate that a master should not be automatically scanned at init time. This is required in cases where a scan could interfere with another FSI master on the same bus. Signed-off-by: Christ

[PATCH 2/2] fsi: core: Add check for master property no-scan-on-init

2018-01-29 Thread Joel Stanley
From: Christopher Bostic Prior to scanning a master check if the optional property no-scan-on-init is present. If it is then avoid scanning. This is necessary in cases where a master scan could interfere with another FSI master on the same bus. Signed-off-by: Christopher Bostic Acked-by: Jere

Re: [PATCH 1/1] scsi: ufs-qcom: remove broken hci version quirk

2018-01-29 Thread Vivek Gautam
Hi Asutosh, On 1/30/2018 10:11 AM, Asutosh Das wrote: From: Subhash Jadavani UFSHCD_QUIRK_BROKEN_UFS_HCI_VERSION is only applicable for QCOM UFS host controller version 2.x.y and this has been fixed from version 3.x.y onwards, hence this change removes this quirk for version 3.x.y onwards. S

[PATCH] ACPI: Parse entire table as a term_list for Dell XPS 9570 and Precision M5530

2018-01-29 Thread Kai-Heng Feng
The i2c touchpad on Dell XPS 9570 and Precision M5530 doesn't work out of box. The touchpad relies on its _INI method to update its _HID value from to SYNA2393. Also, the _STA relies on value of I2CN to report correct status. Set acpi_gbl_parse_table_as_term_list so the value of I2CN can

Re: Question about dmesg/sysfs output when retpoline config is disabled

2018-01-29 Thread Dou Liyang
Hi Misono-san, At 01/30/2018 12:52 PM, Misono, Tomohiro wrote: Hello, I think dmesg/sysfs output messages are not suitable if retpoline config is off: I intentionally compiled the kernel 4.15.0 with CONFIG_RETPOLINE=n for test and boot it with the following kernel command line option to check

RE: [PATCH RFC 01/16] prcu: Add PRCU implementation

2018-01-29 Thread zhangheng (AC)
>-Original Message- >From: jiangshan...@gmail.com [mailto:jiangshan...@gmail.com] On Behalf Of Lai >Jiangshan >Sent: 2018年1月29日 17:11 >To: liangli...@huawei.com >Cc: Paul E. McKenney ; Guohanjun (Hanjun Guo) >; zhangheng (AC) ; Chenhaibo (Haibo, >OS Lab) ; lihao.li...@gmail.com; LKML >

Re: [PATCH v5 02/12] array_idx: sanitize speculative array de-references

2018-01-29 Thread Dan Williams
On Sun, Jan 28, 2018 at 10:36 AM, Thomas Gleixner wrote: > On Sun, 28 Jan 2018, Dan Williams wrote: >> On Sun, Jan 28, 2018 at 12:55 AM, Ingo Molnar wrote: >> >> + */ >> >> +#define array_idx(idx, sz) \ >> >> +({

Re: [GIT pull] Timer core updates for 4.16

2018-01-29 Thread Ingo Molnar
* Linus Torvalds wrote: > On Mon, Jan 29, 2018 at 12:48 AM, Thomas Gleixner wrote: > > > > - A rather large rework of the hrtimer infrastructure which introduces > > softirq based hrtimers to replace the spread of hrtimer/tasklet combos > > which force the actual callback execution in

Re: [RFC PATCH 0/8] [media] Request API, take three

2018-01-29 Thread Alexandre Courbot
Hi Hans, On Mon, Jan 29, 2018 at 8:21 PM, Hans Verkuil wrote: > On 01/26/2018 07:02 AM, Alexandre Courbot wrote: >> Howdy. Here is your bi-weekly request API redesign! ;) >> >> Again, this is a simple version that only implements the flow of requests, >> without applying controls. The intent is t

Re: [RFC PATCH 6/8] v4l2: document the request API interface

2018-01-29 Thread Alexandre Courbot
On Tue, Jan 30, 2018 at 1:03 AM, Hans Verkuil wrote: > On 01/26/2018 07:02 AM, Alexandre Courbot wrote: >> Document how the request API can be used along with the existing V4L2 >> interface. >> >> Signed-off-by: Alexandre Courbot >> --- >> Documentation/media/uapi/v4l/buffer.rst | 10 +- >>

Re: [RFC PATCH 5/8] media: Document the media request API

2018-01-29 Thread Alexandre Courbot
On Tue, Jan 30, 2018 at 1:04 AM, Hans Verkuil wrote: > On 01/26/2018 07:02 AM, Alexandre Courbot wrote: >> From: Laurent Pinchart >> >> The media request API is made of a new ioctl to implement request >> management. Document it. >> >> Signed-off-by: Laurent Pinchart >> [acour...@chromium.org: a

Re: [PATCH RFC 01/16] prcu: Add PRCU implementation

2018-01-29 Thread Boqun Feng
On Tue, Jan 30, 2018 at 05:34:03AM +, zhangheng (AC) wrote: [...] > >> > +static void prcu_handler(void *info) { > >> > +struct prcu_local_struct *local; > >> > + > >> > +local = this_cpu_ptr(&prcu_local); > >> > +if (!local->locked) > > > >And I think a smp_mb() is need

[PATCH 2/2] x86/mm/64: Add vsyscall page to /proc/kcore conditionally

2018-01-29 Thread Jia Zhang
The vsyscall page should be visible only if vsyscall=emulate/native when dumping /proc/kcore. Signed-off-by: Jia Zhang --- arch/x86/mm/init_64.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index dab78f6..3d4cf33 100644 --

[PATCH 1/2] /proc/kcore: Fix SMAP violation when dumping vsyscall user page

2018-01-29 Thread Jia Zhang
The commit df04abfd181a ("fs/proc/kcore.c: Add bounce buffer for ktext data") introduces a bounce buffer to work around CONFIG_HARDENED_USERCOPY=y. However, accessing vsyscall user page will cause SMAP violation in this way. In order to fix this issue, simply replace memcpy() with copy_from_user()

Re: [PATCH v2] dmaengine: dmatest: fix container_of member in dmatest_callback

2018-01-29 Thread Vinod Koul
On Mon, Jan 29, 2018 at 02:40:11PM +0800, Yang Shunyong wrote: > The type of arg passed to dmatest_callback is struct dmatest_done. > It refers to test_done in struct dmatest_thread, not done_wait. Applied, thanks -- ~Vinod

Re: [PATCH 1/1] scsi: ufs-qcom: remove broken hci version quirk

2018-01-29 Thread Asutosh Das (asd)
On 1/30/2018 11:33 AM, Vivek Gautam wrote: Hi Asutosh, On 1/30/2018 10:11 AM, Asutosh Das wrote: From: Subhash Jadavani UFSHCD_QUIRK_BROKEN_UFS_HCI_VERSION is only applicable for QCOM UFS host controller version 2.x.y and this has been fixed from version 3.x.y onwards, hence this change remo

Re: [PATCH net-next] ptr_ring: fix integer overflow

2018-01-29 Thread Jason Wang
On 2018年01月30日 01:01, David Miller wrote: From: Jason Wang Date: Thu, 25 Jan 2018 15:31:42 +0800 We try to allocate one more entry for lockless peeking. The adding operation may overflow which causes zero to be passed to kmalloc(). In this case, it returns ZERO_SIZE_PTR without any notice by

Re: [PATCH v5 04/12] x86: introduce __uaccess_begin_nospec and ifence

2018-01-29 Thread Ingo Molnar
* Dan Williams wrote: > > The flip side is that if the MFENCE stalls the STAC that is ahead of it > > could be > > processed for 'free' - while it's always post barrier with my suggestion. > > This 'for free' aspect is what I aiming for. Ok. > > > > But in any case it would be nice to see a

Re: [PATCH] PCI: Add SPDX GPL-2.0+ to replace implicit GPL v2 or later statement

2018-01-29 Thread Greg Kroah-Hartman
On Mon, Jan 29, 2018 at 06:40:52PM -0600, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > 7441b0627e22 ("s390/pci: PCI hotplug support via SCLP") added > s390_pci_hpc.c, which included this license information: > > +MODULE_LICENSE("GPL"); > > Based on "git show 7441b0627e22:include/linux/modul

Re: [PATCH 8/8] platform: vivid-cec: fix potential integer overflow in vivid_cec_pin_adap_events

2018-01-29 Thread Hans Verkuil
Hi Gustavo, On 01/30/2018 01:33 AM, Gustavo A. R. Silva wrote: > Cast len to const u64 in order to avoid a potential integer > overflow. This variable is being used in a context that expects > an expression of type const u64. > > Addresses-Coverity-ID: 1454996 ("Unintentional integer overflow") >

Re: [PATCH 4.4 00/74] 4.4.114-stable review

2018-01-29 Thread Greg Kroah-Hartman
On Mon, Jan 29, 2018 at 02:30:53PM -0700, Nathan Chancellor wrote: > On Mon, Jan 29, 2018 at 01:56:05PM +0100, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.4.114 release. > > There are 74 patches in this series, all will be posted as a response > > to this on

Re: [PATCH 3.18 00/52] 3.18.93-stable review

2018-01-29 Thread Greg Kroah-Hartman
On Mon, Jan 29, 2018 at 04:58:05PM -0700, Shuah Khan wrote: > On 01/29/2018 05:56 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 3.18.93 release. > > There are 52 patches in this series, all will be posted as a response > > to this one. If anyone has any iss

Re: [PATCH 3.18 00/52] 3.18.93-stable review

2018-01-29 Thread Greg Kroah-Hartman
On Tue, Jan 30, 2018 at 05:09:07AM +, Harsh Shandilya wrote: > On Tue 30 Jan, 2018, 2:20 AM Greg Kroah-Hartman, > wrote: > > > This is the start of the stable review cycle for the 3.18.93 release. > > There are 52 patches in this series, all will be posted as a response > > to this one. If a

Re: [PATCHv1] Add Intel Stratix10 service layer driver

2018-01-29 Thread Greg KH
On Mon, Jan 29, 2018 at 08:08:11PM -0600, Richard Gong wrote: > Hi Greg, > > Many thanks for your reviews. > > > On 01/25/2018 10:53 AM, Greg KH wrote: > > On Thu, Jan 25, 2018 at 10:39:03AM -0600, richard.g...@linux.intel.com > > wrote: > > > From: Richard Gong > > > > > > Intel Stratix10 So

[PATCH] RISC-V: Enable IRQ during exception handling

2018-01-29 Thread Zong Li
Interrupt is allowed during exception handling. There are warning messages if the kernel enables the configuration 'CONFIG_DEBUG_ATOMIC_SLEEP=y'. BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:23 in_atomic(): 0, irqs_disabled(): 1, pid: 43, name: ash CPU: 0 PID: 43 Co

Re: [netfilter-core] kernel panic: Out of memory and no killable processes... (2)

2018-01-29 Thread Michal Hocko
On Mon 29-01-18 23:35:22, Florian Westphal wrote: > Kirill A. Shutemov wrote: [...] > > I hate what I'm saying, but I guess we need some tunable here. > > Not sure what exactly. > > Would memcg help? That really depends. I would have to check whether vmalloc path obeys __GFP_ACCOUNT (I suspect i

Re: [PATCH v6 2/2] media: V3s: Add support for Allwinner CSI.

2018-01-29 Thread Maxime Ripard
Hi, On Mon, Jan 29, 2018 at 03:34:02PM +0100, Arnd Bergmann wrote: > On Mon, Jan 29, 2018 at 10:25 AM, Linus Walleij > wrote: > > On Mon, Jan 29, 2018 at 9:25 AM, Maxime Ripard > > wrote: > >> On Sat, Jan 27, 2018 at 05:14:26PM +0100, Linus Walleij wrote: > >> However, in DT systems, that > >> f

Re: [PATCH] mm/swap: add function get_total_swap_pages to expose total_swap_pages

2018-01-29 Thread Michal Hocko
On Tue 30-01-18 02:56:51, He, Roger wrote: > Hi Michal: > > We need a API to tell TTM module the system totally has how many swap > cache. Then TTM module can use it to restrict how many the swap cache > it can use to prevent triggering OOM. For Now we set the threshold of > swap size TTM used a

Re: [perf] perf probe fails sometimes on 4.9

2018-01-29 Thread Pintu Kumar
Hi All, 'perf probe' is failing sometimes on 4.9.20 with AMD-64. # perf probe --add schedule schedule is out of .text, skip it. Error: Failed to add events. If any one have come across this problem please let me know the cause. Note: I don't have CONFIG_DEBUG_INFO enabled in kernel. Is this th

Re: [PATCH 1/2] of: change overlay apply input data from EDT to FDT

2018-01-29 Thread Frank Rowand
On 01/28/18 19:21, Masahiro Yamada wrote: > Hi Frank, > > 2018-01-29 11:53 GMT+09:00 : >> From: Frank Rowand >> diff --git a/drivers/of/unittest-data/Makefile >> b/drivers/of/unittest-data/Makefile >> index df697976740a..2b7ee68c908e 100644 >> --- a/drivers/of/unittest-data/Makefile >> +++ b/dr

Re: [PATCH] f2fs: fix heap mode to reset it back

2018-01-29 Thread Chao Yu
Hi Yunlong, On 2018/1/29 11:37, Yunlong Song wrote: > Commit 7a20b8a61eff81bdb7097a578752a74860e9d142 ("f2fs: allocate node > and hot data in the beginning of partition") introduces another mount > option, heap, to reset it back. But it does not do anything for heap > mode, so fix it. I think Jae

Re: [PATCH 1/2] arm64: dts: sdm845: Add minimal dts/dtsi files for sdm845 SoC and MTP

2018-01-29 Thread Rajendra Nayak
On 01/27/2018 03:45 AM, Stephen Boyd wrote: > On 01/25, Rajendra Nayak wrote: >> create mode 100644 arch/arm64/boot/dts/qcom/sdm845-mtp.dts >> create mode 100644 arch/arm64/boot/dts/qcom/sdm845-mtp.dtsi > > Do we really need two files? Maybe collapse the two? will do. Not sure why, but this i

Re: [PATCH] nvme-pci: use NOWAIT flag for nvme_set_host_mem

2018-01-29 Thread jianchao.wang
On 01/29/2018 11:07 AM, Jianchao Wang wrote: > nvme_set_host_mem will invoke nvme_alloc_request without NOWAIT > flag, it is unsafe for nvme_dev_disable. The adminq driver tags > may have been used up when the previous outstanding adminq requests > cannot be completed due to some hardware error.

Re: [linux-sunxi] Re: [PATCH v6 2/2] media: V3s: Add support for Allwinner CSI.

2018-01-29 Thread Maxime Ripard
Hi, On Sun, Jan 28, 2018 at 10:19:03AM +0800, Yong wrote: > Hi Maxime, > > On Fri, 26 Jan 2018 09:10:00 +0100 > Maxime Ripard wrote: > > > On Fri, Jan 26, 2018 at 11:00:41AM +0800, Yong wrote: > > > Hi Maxime, > > > > > > On Fri, 26 Jan 2018 09:46:58 +0800 > > > Yong wrote: > > > > > > > Hi

Re: [PATCH v2 2/4] x86: vmx: Allow direct access to MSR_IA32_SPEC_CTRL

2018-01-29 Thread David Woodhouse
On Mon, 2018-01-29 at 01:58 +0100, KarimAllah Ahmed wrote: > Add direct access to MSR_IA32_SPEC_CTRL for guests. This is needed for > guests that will only mitigate Spectre V2 through IBRS+IBPB and will not > be using a retpoline+IBPB based approach. > > To avoid the overhead of atomically saving

Re: [PATCH 2/2] arm64: dts: sdm845: Add serial console support

2018-01-29 Thread Rajendra Nayak
On 01/27/2018 03:48 AM, Stephen Boyd wrote: > On 01/25, Rajendra Nayak wrote: >> diff --git a/arch/arm64/boot/dts/qcom/sdm845-pins.dtsi >> b/arch/arm64/boot/dts/qcom/sdm845-pins.dtsi >> new file mode 100644 >> index ..b97f99e6f4b4 >> --- /dev/null >> +++ b/arch/arm64/boot/dts/qcom/sd

Re: [PATCH] hrtimer: Reset hrtimer cpu base proper on CPU hotplug

2018-01-29 Thread Sebastian Sewior
On 2018-01-26 14:09:17 [-0800], Paul E. McKenney wrote: > find this one. ;-) But it did pass rcutorture testing for a great many > years, didn't it? :-/ It started to trigger better (or at all) on our test box with modprobe kvm_intel preemption_timer=n on the host kernel so maybe a com

Re: [PATCH] ARM: dts: imx6ul: remove unnecessary clocks for cpu-freq

2018-01-29 Thread Shawn Guo
On Wed, Jan 03, 2018 at 07:22:14PM +0800, Anson Huang wrote: > Remove unnecessary clocks for cpu-freq driver to > avoid confusion. > > Signed-off-by: Anson Huang Applied, thanks.

Re: [PATCH 2/2] usb: chipidea: imx: Fix ULPI on imx53

2018-01-29 Thread Peter Chen
On Wed, Jan 24, 2018 at 06:14:39PM +0100, Sebastian Reichel wrote: > Traditionally, PORTSC should be set before initializing ULPI phys. But > setting PORTSC before powering on the phy results in a kernel freeze > on imx53 based GE PPD. As a workaround this initializes the phy early > in the imx pla

Re: [PATCH v6 2/2] media: V3s: Add support for Allwinner CSI.

2018-01-29 Thread Maxime Ripard
Hi Linus, On Sat, Jan 27, 2018 at 05:14:26PM +0100, Linus Walleij wrote: > > +void sun6i_csi_update_buf_addr(struct sun6i_csi *csi, dma_addr_t addr) > > +{ > > + struct sun6i_csi_dev *sdev = sun6i_csi_to_dev(csi); > > + /* transform physical address to bus address */ > > + dma_ad

Re: [PATCH v3] ARM: dts: imx6: RDU2: disable internal watchdog

2018-01-29 Thread Shawn Guo
On Wed, Jan 03, 2018 at 11:32:37AM -0800, Andrey Smirnov wrote: > From: Lucas Stach > > The system has an external watchdog in the environment processor > so the internal watchdog is of no use. > > Cc: Sascha Hauer > Cc: Fabio Estevam > Cc: Rob Herring > Cc: Mark Rutland > Cc: linux-arm-ker.

Re: [netfilter-core] kernel panic: Out of memory and no killable processes... (2)

2018-01-29 Thread Kirill A. Shutemov
On Mon, Jan 29, 2018 at 08:23:57AM +0100, Florian Westphal wrote: > > vmalloc() once became killable by commit 5d17a73a2ebeb8d1 ("vmalloc: back > > off when the current task is killed") but then became unkillable by commit > > b8c8a338f75e052d ("Revert "vmalloc: back off when the current task is >

[PATCH] mm/swap: add function get_total_swap_pages to expose total_swap_pages

2018-01-29 Thread Roger He
ttm module needs it to determine its internal parameter setting. Signed-off-by: Roger He --- include/linux/swap.h | 6 ++ mm/swapfile.c| 15 +++ 2 files changed, 21 insertions(+) diff --git a/include/linux/swap.h b/include/linux/swap.h index c2b8128..708d66f 100644 ---

Re: [ANNOUNCE] v4.14.15-rt12

2018-01-29 Thread Sebastian Andrzej Siewior
On 2018-01-28 16:10:51 [+0100], Salvatore Bonaccorso wrote: > Hi Hi, > Just a small heads-up: Whilst ping-sysrq.patch was dropped the > included series file still contains: > > # NETWORK DEBUGGING AID > ping-sysrq.patch so 'quilt push -a' aborts once it gets to it while 'git quiltimport' conti

[PATCH] f2fs: add sanity check for quota sysfile ino

2018-01-29 Thread Chao Yu
Add missing sanity check for quota sysfile ino. Signed-off-by: Chao Yu --- fs/f2fs/super.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 368f63d7bad2..6011071688ca 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -2116,6 +21

[PATCH 0/3] perf trace powerpc: Remove libaudit dependency for syscalls

2018-01-29 Thread Ravi Bangoria
This is almost identical set of patches recently done for s390. With this, user can run perf trace without libaudit on powerpc as well. Ex, $ make ... libaudit: [ OFF ] $ ./perf trace ls 0.221 ( 0.005 ms): ls/43330 open(filename: 0xac1e2778, flags: CLOEXEC ) = 3 0.227 ( 0.

[PATCH 2/3] perf powerpc: Generate system call table from asm/unistd.h

2018-01-29 Thread Ravi Bangoria
This should speed up accessing new system calls introduced with the kernel rather than waiting for libaudit updates to include them. Signed-off-by: Ravi Bangoria --- tools/perf/arch/powerpc/Makefile | 21 + .../perf/arch/powerpc/entry/syscalls/mksyscalltbl | 35 +++

[PATCH 1/3] tools include powerpc: Grab a copy of arch/powerpc/include/uapi/asm/unistd.h

2018-01-29 Thread Ravi Bangoria
Will be used for generating the syscall id/string translation table. Signed-off-by: Ravi Bangoria --- tools/arch/powerpc/include/uapi/asm/unistd.h | 399 +++ tools/perf/check-headers.sh | 1 + 2 files changed, 400 insertions(+) create mode 100644 tools

[PATCH 3/3] perf trace powerpc: Use generated syscall table

2018-01-29 Thread Ravi Bangoria
This should speed up accessing new system calls introduced with the kernel rather than waiting for libaudit updates to include them. It also enables users to specify wildcards, for example, perf trace -e 'open*', just like was already possible on x86 and s390. Signed-off-by: Ravi Bangoria --- t

[GIT pull] Generic interrupt subsystem updates for 4.16

2018-01-29 Thread Thomas Gleixner
Linus, please pull the latest irq-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-core-for-linus A rather small set of irq updates this time: - Removal of the old and now obsolete irq domain debugging code - The new Goldfish PIC driver - Th

Re: [PATCH] f2fs: fix heap mode to reset it back

2018-01-29 Thread Yunlong Song
The old commit allocates hot data & nodes in the beginning of partition both for heap and noheap mode. But from the commit message, the heap mode should be like before, i.e., allocate hot data & nodes from curseg to left. On 2018/1/29 16:12, Chao Yu wrote: Hi Yunlong, On 2018/1/29 11:37, Yunl

Re: [PATCH] power: reset: Add Spreadtrum SC27xx PMIC power off support

2018-01-29 Thread Baolin Wang
Hi Sebastian, On 15 January 2018 at 15:58, Baolin Wang wrote: > On Spreadtrum platform, we need power off system through external SC27xx > series PMICs including the SC2720, SC2721, SC2723, SC2730 and SC2731 chips. > Thus this patch adds SC27xx series PMICs power-off support. > > Signed-off-by: B

Re: [linux-sunxi] [PATCH 1/3] ASoC: sun4i-i2s: Add set_tdm_slot functionality

2018-01-29 Thread Maxime Ripard
On Mon, Jan 29, 2018 at 03:38:40PM +0800, Chen-Yu Tsai wrote: > On Mon, Jan 29, 2018 at 3:34 PM, Code Kipper wrote: > > On 29 January 2018 at 02:50, Chen-Yu Tsai wrote: > >> On Wed, Jan 24, 2018 at 10:10 PM, wrote: > >>> From: Marcus Cooper > >>> > >>> Some codecs require a different amount of

Re: [PATCH 2/3] tpm: separate cmd_ready/go_idle from runtime_pm

2018-01-29 Thread Jarkko Sakkinen
On Tue, Jan 23, 2018 at 08:33:22AM -0700, Jason Gunthorpe wrote: > On Tue, Jan 23, 2018 at 03:08:41PM +0200, Jarkko Sakkinen wrote: > > On Tue, Jan 23, 2018 at 01:27:30PM +0200, Tomas Winkler wrote: > > > We cannot use go_idle cmd_ready commands via runtime_pm handles > > > as with the introduction

Re: [PATCH 1/3] tpm: cmd_ready command can be issued only after granting locality

2018-01-29 Thread Jarkko Sakkinen
On Wed, Jan 24, 2018 at 06:33:53PM +, Winkler, Tomas wrote: > > > - pm_runtime_put(dev); > > > + pm_runtime_put_sync(dev); > > > > Change to put_sync is needed so that the idle handshake gets completed? > > Right. Since we seem to agree that your change to get rid of the use of PM runtime sh

Re: linux-next: Tree for Jan 26 (gpu/drm/i915/)

2018-01-29 Thread Jani Nikula
On Fri, 26 Jan 2018, Randy Dunlap wrote: > On 01/25/2018 06:58 PM, Stephen Rothwell wrote: >> Hi all, >> >> Changes since 20180119: >> > > on x86_64: > drivers/gpu/drm/i915/intel_panel.o: In function > `intel_backlight_device_register': > intel_panel.c:(.text+0x28d4): undefined reference to >

Re: [PATCH] x86: vmx: Allow direct access to MSR_IA32_SPEC_CTRL

2018-01-29 Thread David Woodhouse
On Sun, 2018-01-28 at 16:39 -0800, Liran Alon wrote: > > Windows use IBRS and Microsoft don't have any plans to switch to retpoline. > Running a Windows guest should be a pretty common use-case no? > > In addition, your handle of the first WRMSR intercept could be different. > It could signal you

Re: [4/4] hwmon: (dell-smm) Measure time duration of SMM call around inlined asm

2018-01-29 Thread Pali Rohár
On Saturday 27 January 2018 09:51:45 Guenter Roeck wrote: > On Sat, Jan 27, 2018 at 05:23:51PM +0100, Pali Rohár wrote: > > Measure only inlined asm code, not other functions to have as precise as > > possible measured time. > > > > Signed-off-by: Pali Rohár > > --- > > drivers/hwmon/dell-smm-hw

[GIT pull] Timer core updates for 4.16

2018-01-29 Thread Thomas Gleixner
Linus, please pull the latest timers-core-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-core-for-linus The timer departement presents: - A rather large rework of the hrtimer infrastructure which introduces softirq based hrtimers to replace t

[GIT pull] x86/cache updates for 4.16

2018-01-29 Thread Thomas Gleixner
Linus, please pull the latest x86-cache-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-cache-for-linus A set of patches which add support for L2 cache partitioning to the Intel RDT facility. Thanks, tglx --> Fenghua Yu (6):

Re: [PATCH] m68k/mac: Enable PDMA support for PowerBook 190

2018-01-29 Thread Geert Uytterhoeven
Hi Finn, On Sun, Jan 28, 2018 at 12:51 AM, Finn Thain wrote: > Stan's tests showed that PDMA improves sequential read performance by > a factor of 5 on a PowerBook 190. Last time I tried this on a > PowerBook 520 it didn't work, so let's not enable it there until > it can be tested with the prese

[GIT pull] x86/platform updates for 4.16

2018-01-29 Thread Thomas Gleixner
Linus, please pull the latest x86-platform-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-platform-for-linus The platform support for x86 contains the following updates: - A set of updates for the UV platform to support new CPUs and to fix some

linux-next: Tree for Jan 29

2018-01-29 Thread Stephen Rothwell
Hi all, Please do not add any v4.17 material to your linux-next included branches until after v4.16-rc1 has been released. Changes since 20180126: The f2fs tree still had its build failure due to an interaction with the btrfs tree for which I reverted a commit. The pci tree lost its build failu

[GIT pull] x86/timer updates for 4.16

2018-01-29 Thread Thomas Gleixner
Linus, please pull the latest x86-timers-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-timers-for-linus A small set of updates for x86 specific timers: - Mark TSC invariant on a subset of Centaur CPUs - Allow TSC calibration without PIT on mobil

Re: [PATCH v3 4/5] powerpc/mm: Allow up to 64 low slices

2018-01-29 Thread Christophe LEROY
Le 29/01/2018 à 07:29, Aneesh Kumar K.V a écrit : Christophe Leroy writes: While the implementation of the "slices" address space allows a significant amount of high slices, it limits the number of low slices to 16 due to the use of a single u64 low_slices_psize element in struct mm_context_

Re: [PATCH] f2fs: fix heap mode to reset it back

2018-01-29 Thread Chao Yu
On 2018/1/29 16:31, Yunlong Song wrote: > The old commit allocates hot data & nodes in the beginning of partition > both for heap and > noheap mode. But from the commit message, the heap mode should be like > before, i.e., > allocate hot data & nodes from curseg to left. Let's ping Jaegeuk to ch

Re: [PATCH] tracing: Block comments should align the * on each line

2018-01-29 Thread Steven Rostedt
Yes but still Cc me. -- Steve On January 29, 2018 6:55:26 AM GMT+01:00, Rohit Visavalia wrote: >Hi Steve, > >Thanks for the review. > >Do you want me to resend the patch with v2 version to >triv...@kernel.org ? > >Thanks, >Rohit > >> > >> From: Rohit Visavalia >

Re: [PATCH v19 03/10] video: backlight: Add of_find_backlight helper in backlight.c

2018-01-29 Thread Lee Jones
On Fri, 26 Jan 2018, Randy Dunlap wrote: > On 01/26/2018 01:48 AM, Lee Jones wrote: > > On Wed, 24 Jan 2018, Meghana Madhyastha wrote: > > > >> Add of_find_backlight, a helper function which is a generic version > >> of tinydrm_of_find_backlight that can be used by other drivers to avoid > >> rep

Re: [PATCH RFC 01/16] prcu: Add PRCU implementation

2018-01-29 Thread Lai Jiangshan
On Tue, Jan 23, 2018 at 3:59 PM, wrote: > From: Heng Zhang > > This RCU implementation (PRCU) is based on a fast consensus protocol > published in the following paper: > > Fast Consensus Using Bounded Staleness for Scalable Read-mostly > Synchronization. > Haibo Chen, Heng Zhang, Ran Liu, Binyu

[PATCH v7 0/2] Initial Allwinner V3s CSI Support

2018-01-29 Thread Yong Deng
This patchset add initial support for Allwinner V3s CSI. Allwinner V3s SoC features two CSI module. CSI0 is used for MIPI CSI-2 interface and CSI1 is used for parallel interface. This is not documented in datasheet but by test and guess. This patchset implement a v4l2 framework driver and add a b

Re: selftests/x86/fsgsbase_64 test problem

2018-01-29 Thread H. Peter Anvin
On 01/28/18 11:21, Andy Lutomirski wrote: >> >> I think the bug is here. I think that, when writing a NULL selector >> to DS, ES, FS, or GS, Intel CPUs incorrectly set DPL == RPL, whereas >> they should set DPL to 3. > > As an experiment, I did this: > > DEFINE_PER_CPU_PAGE_ALIGNED(struct gdt_p

[PATCH v7 1/2] dt-bindings: media: Add Allwinner V3s Camera Sensor Interface (CSI)

2018-01-29 Thread Yong Deng
Add binding documentation for Allwinner V3s CSI. Reviewed-by: Rob Herring Signed-off-by: Yong Deng --- .../devicetree/bindings/media/sun6i-csi.txt| 59 ++ 1 file changed, 59 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/sun6i-csi.txt diff

Re: [PATCH v2 01/16] dt-bindings: update the Allwinner GPADC device tree binding for H3 & A83T

2018-01-29 Thread Maxime Ripard
Hi Philipp, On Mon, Jan 29, 2018 at 12:29:04AM +0100, Philipp Rossak wrote: > Allwinner H3 features a thermal sensor like the one in A33, but has its > register re-arranged, the clock divider moved to CCU (originally the > clock divider is in ADC) and added a pair of bus clock and reset. > > Allw

Re: [PATCH v2 02/16] arm: config: sunxi_defconfig: enable SUN4I_GPADC

2018-01-29 Thread Maxime Ripard
Hi, On Mon, Jan 29, 2018 at 12:29:05AM +0100, Philipp Rossak wrote: > This commit enables the SUN4I_GPADC config option and > sets the value to yes. This is needed to enable the ths sensors. > > Signed-off-by: Philipp Rossak > --- > arch/arm/configs/sunxi_defconfig | 1 + > 1 file changed, 1 in

[PATCH v7 2/2] media: V3s: Add support for Allwinner CSI.

2018-01-29 Thread Yong Deng
Allwinner V3s SoC features two CSI module. CSI0 is used for MIPI CSI-2 interface and CSI1 is used for parallel interface. This is not documented in datasheet but by test and guess. This patch implement a v4l2 framework driver for it. Currently, the driver only support the parallel interface. MIPI

Re: [PATCH v5 00/10] clk: implement clock rate protection mechanism

2018-01-29 Thread Jerome Brunet
On Thu, 2017-12-21 at 18:15 -0800, Stephen Boyd wrote: > On 12/19, Michael Turquette wrote: > > Quoting Jerome Brunet (2017-12-01 13:51:50) > > > This Patchset is related the RFC [0] and the discussion around > > > CLK_SET_RATE_GATE available here [1] > > > > > > This patchset introduce clock prot

[PATCH v4 0/2] perf stat: Add interval-count and time support

2018-01-29 Thread ufo19890607
From: yuzhoujian Introduce two new options for perf stat and update perf-stat documentation accordingly. The interval-count option can be used to print counts for fixed number of times, and it should be used specifically with "-I" option. Show below is the output of the interval-count option fo

Re: [PATCH v6 2/2] media: V3s: Add support for Allwinner CSI.

2018-01-29 Thread Linus Walleij
On Mon, Jan 29, 2018 at 9:25 AM, Maxime Ripard wrote: > On Sat, Jan 27, 2018 at 05:14:26PM +0100, Linus Walleij wrote: >> > +void sun6i_csi_update_buf_addr(struct sun6i_csi *csi, dma_addr_t addr) >> > +{ >> > + struct sun6i_csi_dev *sdev = sun6i_csi_to_dev(csi); >> > + /* transform phy

[PATCH v4 2/2] perf stat: Add support to print counts after a period of time

2018-01-29 Thread ufo19890607
From: yuzhoujian Introduce a new option to print counts after N milliseconds and update perf-stat documentation accordingly. Show below is the output of the new option for perf stat. $ perf stat --time 2000 -e cycles -a Performance counter stats for 'system wide':

[PATCH v4 1/2] perf stat: Add support to print counts for fixed times

2018-01-29 Thread ufo19890607
From: yuzhoujian Introduce a new option to print counts for fixed number of times and update perf-stat documentation accordingly. Show below is the output of the new option for perf stat. $ perf stat -I 1000 --interval-count 2 -e cycles -a # time counts uni

Re: [PATCH v2 04/16] iio: adc: sun4i-gpadc-iio: rework: sampling start/end code readout reg

2018-01-29 Thread Maxime Ripard
Hi, On Mon, Jan 29, 2018 at 12:29:07AM +0100, Philipp Rossak wrote: > For adding newer sensor some basic rework of the code is necessary. > > This commit reworks the code and allows the sampling start/end code and > the position of value readout register to be altered. Later the start/end > funct

Re: [PATCH v2 05/16] iio: adc: sun4i-gpadc-iio: rework: support clocks and reset

2018-01-29 Thread Maxime Ripard
On Mon, Jan 29, 2018 at 12:29:08AM +0100, Philipp Rossak wrote: > For adding newer sensor some basic rework of the code is necessary. > > The SoCs after H3 has newer thermal sensor ADCs, which have two clock > inputs (bus clock and sampling clock) and a reset. The registers are > also re-arranged.

Re: [0/2] RDMA/bnxt_re: Adjustments for bnxt_qplib_alloc_dpi_tbl()

2018-01-29 Thread SF Markus Elfring
> You don't need 2 patches when changing same lines of code. Are these really the same? > Could you squash both and send your changes in a single patch. I prefer to keep the deletion of questionable error messages separate from the refactoring for a bit of exception handling. > The patches lo

Re: mfd: Patch management?

2018-01-29 Thread Lee Jones
On Fri, 26 Jan 2018, SF Markus Elfring wrote: > >> I am curious if more positive feedback could evolve till then. > >> I would appreciate if a potentially needed resend for my selection > >> of update suggestions could become smaller (when reviewed steps > >> could be already integrated for exampl

[GIT PULL] mtd: Changes for 4.16

2018-01-29 Thread Boris Brezillon
Hi Linus, Here is the MTD PR for 4.16. Regards, Boris The following changes since commit 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323: Linux 4.15-rc1 (2017-11-26 16:01:47 -0800) are available in the git repository at: git://git.infradead.org/linux-mtd.git tags/mtd/for-4.16 for you to fetch

Re: [PATCH 14/14] arm64: Add ARM_SMCCC_ARCH_WORKAROUND_1 BP hardening support

2018-01-29 Thread Marc Zyngier
On 28/01/18 23:08, Ard Biesheuvel wrote: > On 26 January 2018 at 14:28, Marc Zyngier wrote: >> Add the detection and runtime code for ARM_SMCCC_ARCH_WORKAROUND_1. >> It is lovely. Really. >> >> Signed-off-by: Marc Zyngier >> --- >> arch/arm64/kernel/bpi.S| 20 >> arch/arm64/

Re: [PATCH v2 06/16] iio: adc: sun4i-gpadc-iio: rework: support multiple sensors

2018-01-29 Thread Maxime Ripard
Hi, On Mon, Jan 29, 2018 at 12:29:09AM +0100, Philipp Rossak wrote: > For adding newer sensor some basic rework of the code is necessary. > > This patch reworks the driver to be able to handle more than one > thermal sensor. Newer SoC like the A80 have 4 thermal sensors. > Because of this the max

Re: [PATCH v2 07/16] iio: adc: sun4i-gpadc-iio: rework: support nvmem calibration data

2018-01-29 Thread Maxime Ripard
On Mon, Jan 29, 2018 at 12:29:10AM +0100, Philipp Rossak wrote: > This patch reworks the driver to support nvmem calibration cells. > The driver checks if the nvmem calibration is supported and reads out > the nvmem. > > Signed-off-by: Philipp Rossak > --- > drivers/iio/adc/sun4i-gpadc-iio.c | 4

Re: [PATCH 14/14] arm64: Add ARM_SMCCC_ARCH_WORKAROUND_1 BP hardening support

2018-01-29 Thread Ard Biesheuvel
On 29 January 2018 at 09:36, Marc Zyngier wrote: > On 28/01/18 23:08, Ard Biesheuvel wrote: >> On 26 January 2018 at 14:28, Marc Zyngier wrote: >>> Add the detection and runtime code for ARM_SMCCC_ARCH_WORKAROUND_1. >>> It is lovely. Really. >>> >>> Signed-off-by: Marc Zyngier >>> --- >>> arch/

Re: [PATCH] x86: vmx: Allow direct access to MSR_IA32_SPEC_CTRL

2018-01-29 Thread KarimAllah Ahmed
On 01/29/2018 09:46 AM, David Woodhouse wrote: On Sun, 2018-01-28 at 16:39 -0800, Liran Alon wrote: Windows use IBRS and Microsoft don't have any plans to switch to retpoline. Running a Windows guest should be a pretty common use-case no? In addition, your handle of the first WRMSR intercept c

  1   2   3   4   5   6   7   8   9   10   >