Re: [PATCH v8 00/20] ILP32 for ARM64

2017-09-15 Thread Yury Norov
Hi all, Linaro has announced the support for ILP32-enabled cross-toolchain: https://lists.linaro.org/pipermail/linaro-toolchain/2017-September/006247.html Files: http://snapshots.linaro.org/components/toolchain/binaries/7.1-2017.08-rc1/aarch64-linux-gnu_ilp32/ Yury On Mon, Jun 19, 2017 at 06:49

Re: [PATCH v2] [DVB][FRONTEND] Added a new ioctl for optimizing frontend property set operation

2017-09-15 Thread Mauro Carvalho Chehab
Em Fri, 15 Sep 2017 06:18:20 -0400 Satendra Singh Thakur escreveu: > Hello Mr Chehab, > Thanks for the comments. > I have modified dtv_property_process_set and > also added documentation. > Please let me know if any further modifications required. That's a way better. Just a few minor things to

Re: [PATCH 1/2] KVM: nVMX: Fix nested #PF intends to break L1's vmlauch/vmresume

2017-09-15 Thread Paolo Bonzini
On 15/09/2017 13:26, Paolo Bonzini wrote: > On 15/09/2017 05:48, Wanpeng Li wrote: >> 2017-09-14 5:45 GMT+08:00 Paolo Bonzini : >>> On 13/09/2017 13:03, Wanpeng Li wrote: From: Wanpeng Li [ cut here ] WARNING: CPU: 4 PID: 5280 at /home/kernel/linux/arch

Re: [PATCH 1/2] KVM: nVMX: Fix nested #PF intends to break L1's vmlauch/vmresume

2017-09-15 Thread Paolo Bonzini
On 15/09/2017 05:48, Wanpeng Li wrote: > 2017-09-14 5:45 GMT+08:00 Paolo Bonzini : >> On 13/09/2017 13:03, Wanpeng Li wrote: >>> From: Wanpeng Li >>> >>> [ cut here ] >>> WARNING: CPU: 4 PID: 5280 at /home/kernel/linux/arch/x86/kvm//vmx.c:11394 >>> nested_vmx_vmexit+0xc2b

Re: [GIT PULL] x86/mm changes for v4.14: PCID support, 5-level paging support, Secure Memory Encryption support

2017-09-15 Thread Pavel Machek
On Thu 2017-09-07 10:07:09, Ingo Molnar wrote: > > * Linus Torvalds wrote: > > > On Tue, Sep 5, 2017 at 2:40 PM, Ingo Molnar wrote: > > > > > > Hm, just as background, there are no regression reports I'm aware of > > > against any of these trees, plus most of the dangerous commits have > > > be

[PATCH] perf ftrace: Add -O option to set trace option

2017-09-15 Thread changbin . du
From: Changbin Du There are some trace options to control what gets printed in the trace output or manipulate the tracers. This patch add a commandline option to set it. Example: perf ftrace -t function -O noprint-parent --trace-funcs "__kmalloc" -a Xorg-1874 [002] 4107.182911

Re: [PATCH for 4.9 39/59] arm: dts: mt2701: Add subsystem clock controller device nodes

2017-09-15 Thread Matthias Brugger
On 09/14/2017 05:51 PM, Levin, Alexander (Sasha Levin) wrote: From: James Liao [ Upstream commit f235c7e7a75325f28a33559a71f25a0eca6112db ] Add MT2701 subsystem clock controllers, inlcude mmsys, imgsys, vdecsys, hifsys, ethsys and bdpsys. Signed-off-by: James Liao Signed-off-by: Matthias B

Query regarding synchronize_sched_expedited and resched_cpu

2017-09-15 Thread Neeraj Upadhyay
Hi, We have one query regarding the behavior of RCU expedited grace period, for scenario where resched_cpu() in sync_sched_exp_handler() fails to acquire the rq lock and returns w/o setting the need_resched. In this case, how do we ensure that the CPU notify rcu about the end of sched grace perio

[mainline][DLPAR][Oops] OF: ERROR: Bad of_node_put() on /cpus

2017-09-15 Thread abdul
Hi, Mainline kernel panics during DLPAR CPU add/remove operation. Machine Type: Power8 PowerVM LPAR kernel 4.13.0 gcc 6.3.1 config: attached trace messaged: - drmgr: -c cpu -d 5 -w 30 -r cpu 8 (hwid 8) Ready to die... cpu 9 (hwid 9) Ready to die... cpu 10 (hwid 10) Ready to die... c

Re: [PATCH 0/2] Fix resume failure due to PCID

2017-09-15 Thread Pavel Machek
On Wed 2017-09-06 19:54:52, Andy Lutomirski wrote: > Patch 1 is the fix. Patch 2 is a comment that would have kept me from > chasing down a false lead. > > I've tested patch 2 using CPU hotplug and suspend/resume. I haven't > tested hibernation or kexec because I don't know how. (If I do > syst

[PATCH v3 07/10] arm64: kexec_file: load initrd, device-tree and purgatory segments

2017-09-15 Thread AKASHI Takahiro
load_other_segments() sets up and adds all the memory segments necessary other than kernel, including initrd, device-tree blob and purgatory. Most of the code was borrowed from kexec-tools' counterpart. arch_kimage_kernel_post_load_cleanup() is meant to free arm64-specific data allocated for loadi

[PATCH v3 09/10] arm64: enable KEXEC_FILE config

2017-09-15 Thread AKASHI Takahiro
Modify arm64/Kconfig and Makefile to enable kexec_file_load support. Signed-off-by: AKASHI Takahiro Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/Kconfig | 22 ++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index dfd908630631.

[PATCH v3 08/10] arm64: kexec_file: set up for crash dump adding elf core header

2017-09-15 Thread AKASHI Takahiro
load_crashdump_segments() creates and loads a memory segment of elf core header for crash dump. "linux,usable-memory-range" and "linux,elfcorehdr" will add to the 2nd kernel's device-tree blob. The logic of this cod is also from kexec-tools. Signed-off-by: AKASHI Takahiro Cc: Catalin Marinas Cc

[PATCH v3 10/10] arm64: kexec_file: add Image format support

2017-09-15 Thread AKASHI Takahiro
The "Image" binary will be loaded at the offset of TEXT_OFFSET from the start of system memory. TEXT_OFFSET is determined from the header of the image. Regarding kernel signature verification, it will be done through verify_pefile_signature() as arm64's "Image" binary can be seen as in PE format.

Re: [v8 0/4] cgroup-aware OOM killer

2017-09-15 Thread Michal Hocko
On Thu 14-09-17 09:05:48, Roman Gushchin wrote: > On Thu, Sep 14, 2017 at 03:40:14PM +0200, Michal Hocko wrote: > > On Wed 13-09-17 14:56:07, Roman Gushchin wrote: > > > On Wed, Sep 13, 2017 at 02:29:14PM +0200, Michal Hocko wrote: > > [...] > > > > I strongly believe that comparing only leaf memcg

[PATCH v3 00/10] arm64: kexec: add kexec_file_load() support

2017-09-15 Thread AKASHI Takahiro
This is the third round of implementing kexec_file_load() support on arm64.[1] Most of the code is based on kexec-tools (along with some kernel code from x86, which also came from kexec-tools). This patch series enables us to * load the kernel, Image, with kexec_file_load system call, and * o

[PATCH v3 02/10] resource: add walk_system_ram_res_rev()

2017-09-15 Thread AKASHI Takahiro
This function, being a variant of walk_system_ram_res() introduced in commit 8c86e70acead ("resource: provide new functions to walk through resources"), walks through a list of all the resources of System RAM in reversed order, i.e., from higher to lower. It will be used in kexec_file implementati

[PATCH v3 06/10] arm64: kexec_file: create purgatory

2017-09-15 Thread AKASHI Takahiro
This is a basic purgatory, or a kind of glue code between the two kernels, for arm64. Since purgatory is assumed to be relocatable (not executable) object by kexec generic code, arch_kexec_apply_relocations_add() is required in general. Arm64's purgatory, however, is a simple asm and all the refer

[PATCH v3 01/10] include: pe.h: remove message[] from mz header definition

2017-09-15 Thread AKASHI Takahiro
message[] field won't be part of the definition of mz header. This change is crucial for enabling kexec_file_load on arm64 because arm64's "Image" binary, as in PE format, doesn't have any data for it and accordingly the following check in pefile_parse_binary() will fail: chkaddr(cursor,

[PATCH v3 04/10] kexec_file: factor out crashdump elf header function from x86

2017-09-15 Thread AKASHI Takahiro
prepare_elf_headers() can also be useful for other architectures, including arm64. So let it factored out. Signed-off-by: AKASHI Takahiro Cc: Dave Young Cc: Vivek Goyal Cc: Baoquan He --- arch/x86/kernel/crash.c | 324 include/linux/kexec.h |

[PATCH v3 05/10] asm-generic: add kexec_file_load system call to unistd.h

2017-09-15 Thread AKASHI Takahiro
The initial user of this system call number is arm64. Signed-off-by: AKASHI Takahiro Acked-by: Arnd Bergmann --- include/uapi/asm-generic/unistd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h index

[PATCH v3 03/10] kexec_file: factor out arch_kexec_kernel_*() from x86, powerpc

2017-09-15 Thread AKASHI Takahiro
arch_kexec_kernel_*() and arch_kimage_file_post_load_cleanup can now be duplicated among some architectures, so let's factor them out. Signed-off-by: AKASHI Takahiro Cc: Dave Young Cc: Vivek Goyal Cc: Baoquan He Cc: Michael Ellerman Cc: Thiago Jung Bauermann --- arch/powerpc/include/asm/kex

Re: [PATCH] doc: coresight: correct usage for '/dev/cpu_dma_latency'

2017-09-15 Thread Leo Yan
Hi Kim, On Wed, Aug 23, 2017 at 11:05:28AM -0500, Kim Phillips wrote: > On Wed, 23 Aug 2017 15:23:18 +0800 > Leo Yan wrote: > > > Cc: Kim Phillips > > Reported-by: Kim Phillips > > Thanks; typically only the latter is needed. > > > Set latency request to /dev/cpu_dma_latency to disable all

[4.14-rc0 regression] Re: x60: warnings on boot and resume, arch/x86/mm/tlb.c:257 initialize_ ... was Re: [PATCH 0/2] Fix resume failure due to PCID

2017-09-15 Thread Pavel Machek
Hi! > > Ok, seems this is still not completely right, I'm now getting WARN_ON > > during boot and on every resume... but machine works. > > > > 4.14-rc0, 32-bit. > > Which SHA1, just to make sure? (Please enable CONFIG_LOCALVERSION_AUTO=y.) > > > [0.004000] Initializing CPU#1 > > [0.004

Re: RFC: Audit Kernel Container IDs

2017-09-15 Thread Richard Guy Briggs
On 2017-09-14 01:30, Richard Guy Briggs wrote: > On 2017-09-13 14:33, Carlos O'Donell wrote: > > On 09/13/2017 12:13 PM, Richard Guy Briggs wrote: > > > Containers are a userspace concept. The kernel knows nothing of them. > > > > I am looking at this RFC from a userspace perspective, particularl

[PATCH v2] [DVB][FRONTEND] Added a new ioctl for optimizing frontend property set operation

2017-09-15 Thread Satendra Singh Thakur
Hello Mr Chehab, Thanks for the comments. I have modified dtv_property_process_set and also added documentation. Please let me know if any further modifications required. Signed-off-by: Satendra Singh Thakur --- .../media/uapi/dvb/fe-set-property-short.rst | 60 + Documentation/m

[PATCH v2] doc: coresight: correct usage for disabling idle states

2017-09-15 Thread Leo Yan
In the coresight CPU debug document it suggests to use 'echo' command to set latency request to /dev/cpu_dma_latency so can disable all CPU idle states, but in fact this doesn't work. This is because when the command 'echo' exits, it releases the device node's file descriptor and the kernel releas

Re: Port the period data column to centos6.7 for perf script

2017-09-15 Thread Arnaldo Carvalho de Melo
Em Thu, Sep 14, 2017 at 09:21:54PM -0700, Andi Kleen escreveu: > On Fri, Sep 15, 2017 at 10:24:15AM +0800, 禹舟键 wrote: > >Hi, all. > >I want to draw off-cpu flamegraph using perf script on centos6.7(kernel > >version, 2.6.32-573), and I found perf script lacks the period data > > column

Re: [PATCH] mtd: spi-nor: stm32-quadspi: Fix uninitialized error return code

2017-09-15 Thread Ludovic BARRE
On 07/17/2017 12:22 PM, Geert Uytterhoeven wrote: Hi Ludovic, On Mon, Jul 17, 2017 at 11:56 AM, Ludovic BARRE wrote: Today only write_reg could be call with len=0 (spi-nor.c: write_enable/disable, set_4byte, erase_chip) But your remark make sense to prevent: gcc warning and framework evolut

[PATCH] tty fix oops when rmmod 8250

2017-09-15 Thread nixiaoming
After rmmod 8250.ko tty_kref_put starts kwork (release_one_tty) to release proc interface oops when accessing driver->driver_name in proc_tty_unregister_driver Use jprobe, found driver->driver_name point to 8250.ko static static struct uart_driver serial8250_reg .driver_name= serial, Use name in

[PATCH] tty fix oops when rmmod 8250

2017-09-15 Thread nixiaoming
After rmmod 8250.ko tty_kref_put starts kwork (release_one_tty) to release proc interface oops when accessing driver->driver_name in proc_tty_unregister_driver Use jprobe, found driver->driver_name point to 8250.ko static static struct uart_driver serial8250_reg .driver_name= serial, Use name in

Re: [PATCH] clk: sunxi-ng: Fix missing CLK_SET_RATE_PARENT in ccu-sun4i-a10.c

2017-09-15 Thread Maxime Ripard
On Thu, Sep 14, 2017 at 08:14:10PM +0800, Chen-Yu Tsai wrote: > On Thu, Sep 14, 2017 at 8:05 PM, Alexander Syring wrote: > > When using cpufreq-dt with default govenor other than "performance" > > system freezes while booting. > > Adding CLK_SET_RATE_PARENT | CLK_IS_CRITICAL to clk_cpu fixes the >

[tip:core/urgent] objtool: Fix object file corruption

2017-09-15 Thread tip-bot for Josh Poimboeuf
Commit-ID: 97dab2ae7e8473a821f72a039ead0f36b12ba22d Gitweb: http://git.kernel.org/tip/97dab2ae7e8473a821f72a039ead0f36b12ba22d Author: Josh Poimboeuf AuthorDate: Fri, 15 Sep 2017 02:17:11 -0500 Committer: Ingo Molnar CommitDate: Fri, 15 Sep 2017 11:31:57 +0200 objtool: Fix object file

[tip:core/urgent] objtool: Do not retrieve data from empty sections

2017-09-15 Thread tip-bot for Petr Vandrovec
Commit-ID: df968c9329f6e5cf3596a0a54adb6f749747a746 Gitweb: http://git.kernel.org/tip/df968c9329f6e5cf3596a0a54adb6f749747a746 Author: Petr Vandrovec AuthorDate: Fri, 15 Sep 2017 02:15:05 -0500 Committer: Ingo Molnar CommitDate: Fri, 15 Sep 2017 11:31:50 +0200 objtool: Do not retrieve

[tip:core/urgent] objtool: Fix memory leak in elf_create_rela_section()

2017-09-15 Thread tip-bot for Martin Kepplinger
Commit-ID: 0998b7a0befdf6e734032895ee639a5e6f88cc3f Gitweb: http://git.kernel.org/tip/0998b7a0befdf6e734032895ee639a5e6f88cc3f Author: Martin Kepplinger AuthorDate: Thu, 14 Sep 2017 08:01:38 +0200 Committer: Ingo Molnar CommitDate: Fri, 15 Sep 2017 11:31:43 +0200 objtool: Fix memory le

[tip:x86/urgent] x86/cpu/AMD: Fix erratum 1076 (CPB bit)

2017-09-15 Thread tip-bot for Borislav Petkov
Commit-ID: f7f3dc00f61261cdc9ccd8b886f21bc4dffd6fd9 Gitweb: http://git.kernel.org/tip/f7f3dc00f61261cdc9ccd8b886f21bc4dffd6fd9 Author: Borislav Petkov AuthorDate: Thu, 7 Sep 2017 19:08:21 +0200 Committer: Ingo Molnar CommitDate: Fri, 15 Sep 2017 11:30:53 +0200 x86/cpu/AMD: Fix erratum

Re: [PATCH] mm/memory_hotplug: fix wrong casting for __remove_section()

2017-09-15 Thread Michal Hocko
On Thu 14-09-17 11:43:10, YASUAKI ISHIMATSU wrote: > Hi Michal, > > On 09/13/2017 01:59 AM, Michal Hocko wrote: > > On Tue 12-09-17 13:05:39, YASUAKI ISHIMATSU wrote: > >> Hi Michal, > >> > >> Thanks you for reviewing my patch. > >> > >> On 09/12/2017 08:49 AM, Michal Hocko wrote: > >>> On Fri 08-

Re: x60: warnings on boot and resume, arch/x86/mm/tlb.c:257 initialize_ ... was Re: [PATCH 0/2] Fix resume failure due to PCID

2017-09-15 Thread Ingo Molnar
* Pavel Machek wrote: > Hi! > > > * Pavel Machek wrote: > > > > > On Wed 2017-09-06 20:25:10, Linus Torvalds wrote: > > > > On Wed, Sep 6, 2017 at 7:54 PM, Andy Lutomirski wrote: > > > > > Patch 1 is the fix. Patch 2 is a comment that would have kept me from > > > > > chasing down a false l

Re: [PATCH] crypto: s5p-sss: Add HASH support for Exynos

2017-09-15 Thread kbuild test robot
Hi Kamil, [auto build test WARNING on cryptodev/master] [also build test WARNING on v4.13 next-20170915] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Kamil-Konieczny/crypto-s5p-sss-Add-HASH

Re: [PATCH] clk: tegra: Use readl_relaxed_poll_timeout_atomic in tegra210_clock_init

2017-09-15 Thread Peter De Schrijver
Apart from the typo in the commit message (preemption rather than preemtion): Acked-By: Peter De Schrijver On Thu, Sep 14, 2017 at 06:36:14PM -0700, Nicolin Chen wrote: > Below is the call trace of tegra210_init_pllu() function: > start_kernel() > -> time_init() > --> of_clk_init() > ---

Re: WARNING: CPU: 1 PID: 0 at arch/x86/mm/tlb.c:237 initialize_tlbstate_and_flush+0x120/0x130

2017-09-15 Thread Paul Menzel
Dear Andy, On 09/10/17 19:42, Andy Lutomirski wrote: On Sat, Sep 9, 2017 at 11:48 PM, Paul Menzel wrote: With Linux built from commit 4dfc2788033d (Merge tag 'iommu-updates-v4.14' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu), I get the warning below on a Lenovo X60t with a 3

[PATCH 2/3] mm: Handle numa statistics distinctively based-on different VM stats modes

2017-09-15 Thread Kemi Wang
Each page allocation updates a set of per-zone statistics with a call to zone_statistics(). As discussed at the 2017 MM Summit, these are a substantial source of overhead in the page allocator and are very rarely consumed. A link to the MM summit slides: http://people.netfilter.org/hawk/presentat

[PATCH 1/3] mm, sysctl: make VM stats configurable

2017-09-15 Thread Kemi Wang
This patch adds a tunable interface that allows VM stats configurable, as suggested by Dave Hansen and Ying Huang. When performance becomes a bottleneck and you can tolerate some possible tool breakage and some decreased counter precision (e.g. numa counter), you can do: echo [C|c]oarse >

[PATCH 3/3] sysctl/vm.txt: Update document

2017-09-15 Thread Kemi Wang
Add a paragraph to introduce the functionality and usage on vmstat_mode in sysctl/vm.txt Reported-by: Jesper Dangaard Brouer Suggested-by: Dave Hansen Suggested-by: Ying Huang Signed-off-by: Kemi Wang --- Documentation/sysctl/vm.txt | 26 ++ 1 file changed, 26 insertio

[PATCH 0/3] Handle zone statistics distinctively based-on

2017-09-15 Thread Kemi Wang
Each page allocation updates a set of per-zone statistics with a call to zone_statistics(). As discussed in 2017 MM summit. A link to the MM summit slides: http://people.netfilter.org/hawk/presentations/MM-summit2017/MM-summit2017 -JesperBrouer.pdf This is the second step for optimizing zone stati

[GIT PULL] Please pull powerpc/linux.git powerpc-4.14-2 tag

2017-09-15 Thread Michael Ellerman
Hi Linus, Please pull one powerpc fix for 4.14: The following changes since commit bac65d9d87b383471d8d29128319508d71b74180: Merge tag 'powerpc-4.14-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux (2017-09-07 10:15:40 -0700) are available in the git repository at: git:/

Re: x60: warnings on boot and resume, arch/x86/mm/tlb.c:257 initialize_ ... was Re: [PATCH 0/2] Fix resume failure due to PCID

2017-09-15 Thread Pavel Machek
Hi! > * Pavel Machek wrote: > > > On Wed 2017-09-06 20:25:10, Linus Torvalds wrote: > > > On Wed, Sep 6, 2017 at 7:54 PM, Andy Lutomirski wrote: > > > > Patch 1 is the fix. Patch 2 is a comment that would have kept me from > > > > chasing down a false lead. > > > > > > Yes, this seems to fix

Re: [PATCH 3/3] ima: use fs method to read integrity data

2017-09-15 Thread Mimi Zohar
On Fri, 2017-09-15 at 05:04 -0400, Mimi Zohar wrote: > On Thu, 2017-09-14 at 22:50 -0700, Linus Torvalds wrote: > > This is still wrong. > > > > (a) there is no explanation for why we need that exclusive lock in the > > first place > > > Why should a read need exclusive access? You'd think shared

Re: [PATCH] remoteproc: qcom: select QCOM_SMP2P for all qcom pils

2017-09-15 Thread Srinivas Kandagatla
On 14/09/17 17:57, Bjorn Andersson wrote: On Wed 13 Sep 09:04 PDT 2017, srinivas.kandaga...@linaro.org wrote: From: Srinivas Kandagatla All Qualcomm PIL drivers require SMP2P module to get a functional PIL, Currently user has to explicitly select SMP2P module, after looking at failure logs.

Re: [PATCH 3/3] ima: use fs method to read integrity data

2017-09-15 Thread Mimi Zohar
On Thu, 2017-09-14 at 22:50 -0700, Linus Torvalds wrote: > This is still wrong. > > (a) there is no explanation for why we need that exclusive lock in the > first place > Why should a read need exclusive access? You'd think shared is sufficient. True, reading a file shouldn't require an exclusiv

Re: [PATCH] usb: dwc3: Fix the USB 3.0 hub detection bug after warm boot

2017-09-15 Thread gustavo panizzo
Hello On Thu, Sep 07, 2017 at 01:51:31PM +0300, Felipe Balbi wrote: Hi, gustavo panizzo writes: --- drivers/usb/dwc3/core.c | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 326b302fc440..f92dfe213d89

Re: [PATCH v1] [DVB][FRONTEND] Added a new ioctl for optimizing frontend property set operation

2017-09-15 Thread Mauro Carvalho Chehab
Em Fri, 15 Sep 2017 01:50:29 -0400 Satendra Singh Thakur escreveu: > Hello Mr Chehab, > Thanks for reviewing the patch. > I have modified the patch as per your comments. > Please check if it looks fine now. Forgot to mention, but, for the patch series to be applied, you'll need to also patch Do

[tip:x86/urgent] x86/cpu/AMD: Fix erratum 1076 (CPB bit)

2017-09-15 Thread tip-bot for Borislav Petkov
Commit-ID: 6a707c0e451cb8d86943b840939e2ed881b8023e Gitweb: http://git.kernel.org/tip/6a707c0e451cb8d86943b840939e2ed881b8023e Author: Borislav Petkov AuthorDate: Thu, 7 Sep 2017 19:08:21 +0200 Committer: Ingo Molnar CommitDate: Fri, 15 Sep 2017 07:44:50 +0200 x86/cpu/AMD: Fix erratum

Re: [PATCH] dma-buf: remove redundant initialization of sg_table

2017-09-15 Thread Chris Wilson
Quoting Colin King (2017-09-15 00:05:16) > From: Colin Ian King > > sg_table is being initialized and is never read before it is updated > again later on, hence making the initialization redundant. Remove > the initialization. > > Detected by clang scan-build: > "warning: Value stored to 'sg_tab

[tip:core/urgent] objtool: Fix object file corruption

2017-09-15 Thread tip-bot for Josh Poimboeuf
Commit-ID: 3eed2fa7cb2118234cdc89fb6b2bef82b0c9ca81 Gitweb: http://git.kernel.org/tip/3eed2fa7cb2118234cdc89fb6b2bef82b0c9ca81 Author: Josh Poimboeuf AuthorDate: Fri, 15 Sep 2017 02:17:11 -0500 Committer: Ingo Molnar CommitDate: Fri, 15 Sep 2017 10:30:31 +0200 objtool: Fix object file

[tip:core/urgent] objtool: Do not retrieve data from empty sections

2017-09-15 Thread tip-bot for Petr Vandrovec
Commit-ID: 7156b7141a037420a3cd99dbc1559e0235f57c07 Gitweb: http://git.kernel.org/tip/7156b7141a037420a3cd99dbc1559e0235f57c07 Author: Petr Vandrovec AuthorDate: Fri, 15 Sep 2017 02:15:05 -0500 Committer: Ingo Molnar CommitDate: Fri, 15 Sep 2017 10:30:31 +0200 objtool: Do not retrieve

[tip:core/urgent] tools/objtool: Fix memory leak in elf_create_rela_section()

2017-09-15 Thread tip-bot for Martin Kepplinger
Commit-ID: 5b1972d74446bed79df5ddc9674bc3f2a0b6c444 Gitweb: http://git.kernel.org/tip/5b1972d74446bed79df5ddc9674bc3f2a0b6c444 Author: Martin Kepplinger AuthorDate: Thu, 14 Sep 2017 08:01:38 +0200 Committer: Ingo Molnar CommitDate: Fri, 15 Sep 2017 10:30:30 +0200 tools/objtool: Fix mem

[crazy hacks] N900 flashlight

2017-09-15 Thread Pavel Machek
Hi! This adds /sys interface to n900 flash. So you can do stuff... /sys/class/leds/led-controller:flash# echo 0 > ../led-controller\:indicator/brightness Needs _way_ more work. Also... contains way too much boilerplate, see leds-flash.c . We'll need to figure out how to share more code between

[RFC] Restrict writes into untrusted FIFOs and regular files

2017-09-15 Thread Salvatore Mesoraca
Disallows writing into FIFOs or regular files not owned by the user in world writable sticky directories, unless the owner is the same as that of the directory or the file is opened without the O_CREAT flag. The purpose is to make data spoofing attacks harder. This protection can be turned on and o

Re: x60: warnings on boot and resume, arch/x86/mm/tlb.c:257 initialize_ ... was Re: [PATCH 0/2] Fix resume failure due to PCID

2017-09-15 Thread Ingo Molnar
* Pavel Machek wrote: > On Wed 2017-09-06 20:25:10, Linus Torvalds wrote: > > On Wed, Sep 6, 2017 at 7:54 PM, Andy Lutomirski wrote: > > > Patch 1 is the fix. Patch 2 is a comment that would have kept me from > > > chasing down a false lead. > > > > Yes, this seems to fix things for me. Thank

Re: [PATCH 0/3] Fix y2038 issues for security/keys subsystem

2017-09-15 Thread Baolin Wang
Hi James, On 21 August 2017 at 20:12, Baolin Wang wrote: > Hi David and James, > > On 9 August 2017 at 16:28, David Howells wrote: >> The rxrpc patch isn't part of the security/keys subsystem. I'll push it >> to the network tree. The other two I'll push to James. > > Could you apply this patch

[PATCH v2] drm/rockchip: Replace dev_* with DRM_DEV_*

2017-09-15 Thread Haneen Mohammed
This patch replace instances of dev_info/err/debug with DRM_DEV_INFO/ERROR/WARN respectively inorder to use a drm-formatted specific log messages. Issue corrected with the help of the following Coccinelle script: @r@ @@ ( -dev_info +DRM_DEV_INFO | -dev_err +DRM_DEV_ERROR | -dev_dbg +DRM_DEV_DEBUG

Re: [PATCH] z3fold: fix stale list handling

2017-09-15 Thread Vitaly Wool
Hi Andrew, 2017-09-14 23:15 GMT+02:00 Andrew Morton : > On Thu, 14 Sep 2017 15:59:36 +0200 Vitaly Wool wrote: > >> Fix the situation when clear_bit() is called for page->private before >> the page pointer is actually assigned. While at it, remove work_busy() >> check because it is costly and does

Re: [PATCH] firmware: cleanup - group and document up private firmware parameters

2017-09-15 Thread Martin Fuzzey
Hi Luis, On 15/09/17 00:54, Luis R. Rodriguez wrote: The firmware API has a slew of private options available, which can sometimes be hard to understand. When new functionality is introduced we also tend to have modify a slew of internal helpers. Just stuff all common private requirements into

Re: [RFC] [DVB][FRONTEND] Added a new ioctl for optimizing frontend property set operation

2017-09-15 Thread Honza Petrouš
2017-09-14 22:50 GMT+02:00 Mauro Carvalho Chehab : > Hi Satendra, > > Em Thu, 14 Sep 2017 05:59:27 -0400 > Satendra Singh Thakur escreveu: > >> -For setting one frontend property , one FE_SET_PROPERTY ioctl is called >> -Since, size of struct dtv_property is 72 bytes, this ioctl requires >> ---all

Re: [RFT PATCH v2] gpiolib: allow gpio irqchip to map irqs dynamically

2017-09-15 Thread Jerome Brunet
On Tue, 2017-08-01 at 13:27 -0500, Grygorii Strashko wrote: > > On 08/01/2017 03:03 AM, Jerome Brunet wrote: > > On Tue, 2017-08-01 at 09:52 +0200, Linus Walleij wrote: > > > On Fri, Jul 21, 2017 at 6:49 PM, Grygorii Strashko > > > wrote: > > > > > > > Now IRQ mappings are always created for all

RE: [PATCH] [media] rcar_drif: fix potential uninitialized variable use

2017-09-15 Thread Ramesh Shanmugasundaram
Hi Arnd, Thank you for the patch. > Subject: [PATCH] [media] rcar_drif: fix potential uninitialized variable > use > > Older compilers like gcc-4.6 may run into a case that returns an > uninitialized variable from rcar_drif_enable_rx() if that function was > ever called with an empty cur_ch_mask

Re: [GIT PULL] overlayfs update for 4.14

2017-09-15 Thread Miklos Szeredi
On Fri, Sep 15, 2017 at 9:32 AM, Miklos Szeredi wrote: > On Thu, Sep 14, 2017 at 01:24:22PM -0700, Linus Torvalds wrote: > >> I just don't see any reason why those two "flags" arguments are separate. > > Fine. Here's a patch reverting the new flags and adding O_UPPER. And, btw. I also hate all t

Re: [PATCH net-next v2 01/10] net: dsa: add debugfs interface

2017-09-15 Thread Egil Hjelmeland
On 15. sep. 2017 07:51, Jiri Pirko wrote: > Thu, Sep 14, 2017 at 11:01:32PM CEST, and...@lunn.ch wrote: >>> Can you clarify what type of registers it is you are wanting to read? >>> We already have ethtool which is meant to allow reading the device >>> registers for a given netdev. As long as the p

Re: [PATCH] crypto: s5p-sss: Add HASH support for Exynos

2017-09-15 Thread Krzysztof Kozlowski
On Fri, Sep 15, 2017 at 8:10 AM, Krzysztof Kozlowski wrote: > On Wed, Sep 13, 2017 at 4:24 PM, Kamil Konieczny > wrote: >> Hi Krzysztof, >> >> On 13.09.2017 15:18, Krzysztof Kozlowski wrote: >>> On Wed, Sep 13, 2017 at 2:44 PM, Kamil Konieczny >>> wrote: Add support for MD5, SHA1, SHA256 ha

[PATCH 9/9] [media] tm6000: Use common error handling code in tm6000_prepare_isoc()

2017-09-15 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 15 Sep 2017 08:02:33 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. Signed-off-by: Markus Elfring --- drivers/media/usb/tm6000/tm6000-video.c | 13 +++-- 1 file changed, 7 insertions(+), 6 de

Re: [PATCH] mtd: spi-nor: stm32-quadspi: avoid unintialized return code

2017-09-15 Thread Ludovic BARRE
On 09/14/2017 11:38 PM, Arnd Bergmann wrote: On Thu, Sep 14, 2017 at 6:55 PM, Ludovic BARRE wrote: On 09/14/2017 05:24 PM, Geert Uytterhoeven wrote: Hi Ludovic, On Thu, Sep 14, 2017 at 5:13 PM, Ludovic BARRE wrote: On 09/14/2017 03:38 PM, Geert Uytterhoeven wrote: hi Arnd, Geert sor

[PATCH 8/9] [media] tm6000: Use common error handling code in tm6000_start_stream()

2017-09-15 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 15 Sep 2017 07:47:41 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. Signed-off-by: Markus Elfring --- drivers/media/usb/tm6000/tm6000-dvb.c | 11 +++ 1 file changed, 7 insertions(+), 4 deleti

[PATCH 7/9] [media] tm6000: Improve a size determination in dvb_init()

2017-09-15 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 15 Sep 2017 07:33:24 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was det

[PATCH 6/9] [media] tm6000: Use common error handling code in tm6000_cards_setup()

2017-09-15 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 14 Sep 2017 16:26:42 +0200 Add a jump target so that a bit of exception handling can be better reused in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/tm6000/tm6000-cards.c | 7 +++--

[PATCH] MAINTAINERS: Marvell berlin is now Synaptics berlin

2017-09-15 Thread Jisheng Zhang
Now that the dts files are moved to the new location, update the berlin entry in the MAINTAINERS. Signed-off-by: Jisheng Zhang --- MAINTAINERS | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 209306019483..d0854bc98f24 100644

[PATCH] arm64: dts: move berlin SoC files from marvell dir to synaptics dir

2017-09-15 Thread Jisheng Zhang
Move and update device tree files as part of transition from Marvell berlin to Synaptics berlin. The changes are to: * rename dts/marvell/berlin4ct.dtsi to synaptics/berlin4ct.dtsi, and update SoC to be "syna,berlin" * rename dts/marvell/berlin4ct-stb.dts to synaptics/berlin4ct-stb.dts an

[PATCH 5/9] [media] tm6000: Delete an unnecessary variable initialisation in tm6000_usb_probe()

2017-09-15 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 14 Sep 2017 16:13:56 +0200 The local variable "rc" will be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/media/usb/tm6000/tm6000-cards.c | 2 +- 1 file changed, 1 insert

[PATCH 4/9] [media] tm6000: One function call less in tm6000_usb_probe() after error detection

2017-09-15 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 14 Sep 2017 16:11:55 +0200 * Adjust jump targets so that the function "kfree" will be always called with a non-null pointer. * Delete an initialisation for the local variable "dev" which became unnecessary with this refactoring. Signed-off-by: Markus Elfring

[PATCH 3/9] [media] tm6000: Use common error handling code in tm6000_usb_probe()

2017-09-15 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 14 Sep 2017 16:00:47 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. Signed-off-by: Markus Elfring --- drivers/media/usb/tm6000/tm6000-cards.c | 11 ++- 1 file changed, 6 insertions(+), 5 dele

[PATCH v5 2/2] media:imx274 V4l2 driver for Sony imx274 CMOS sensor

2017-09-15 Thread Leon Luo
The imx274 is a Sony CMOS image sensor that has 1/2.5 image size. It supports up to 3840x2160 (4K) 60fps, 1080p 120fps. The interface is 4-lane MIPI CSI-2 running at 1.44Gbps each. This driver has been tested on Xilinx ZCU102 platform with a Leopard LI-IMX274MIPI-FMC camera board. Support for the

Re: d57108d4f6 ("watchdog/core: Get rid of the thread .."): BUG: unable to handle kernel NULL pointer dereference at 0000000000000208

2017-09-15 Thread Thomas Gleixner
On Fri, 15 Sep 2017, kernel test robot wrote: > [0.035023] CPU: Intel Common KVM processor (family: 0xf, model: 0x6, > stepping: 0x1) > [0.042302] Performance Events: unsupported Netburst CPU model 6 no PMU > driver, software events only. Cute. So there is no supported PMU, but for some

[PATCH v5 1/2] media:imx274 device tree binding file

2017-09-15 Thread Leon Luo
The binding file for imx274 CMOS sensor V4l2 driver Signed-off-by: Leon Luo --- v5: - add 'port' and 'endpoint' information v4: - no changes v3: - remove redundant properties and references - document 'reg' property v2: - no changes --- .../devicetree/bindings/media/i2c/imx274.txt | 3

Re: [PATCH] net: phy: Fix mask value write on gmii2rgmii converter speed register.

2017-09-15 Thread Michal Simek
On 14.9.2017 16:34, Andrew Lunn wrote: > On Thu, Sep 14, 2017 at 12:46:31PM +0530, Fahad Kunnathadi wrote: >> To clear Speed Selection in MDIO control register(0x10), >> ie, clear bits 6 and 13 to zero while keeping other bits same. >> Before AND operation,The Mask value has to be perform with bitw

[PATCH 2/9] [media] tm6000: Adjust seven checks for null pointers

2017-09-15 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 14 Sep 2017 14:51:15 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written … Thus fix the affected source code pla

[PATCH 1/9] [media] tm6000: Delete seven error messages for a failed memory allocation

2017-09-15 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 14 Sep 2017 14:34:39 +0200 Omit extra messages for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/tm6000/tm6000-cards.c | 1 - drivers/media/usb/tm60

[PATCH 0/9] [media] TM6000: Adjustments for some function implementations

2017-09-15 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 15 Sep 2017 08:24:56 +0200 Some update suggestions were taken into account from static source code analysis. Markus Elfring (9): Delete seven error messages for a failed memory allocation Adjust seven checks for null pointers Use common error handling code i

Re: [PATCH v3] Add driver to force WMI Thunderbolt controller power status

2017-09-15 Thread Lukas Wunner
On Thu, Sep 14, 2017 at 05:59:19PM +0300, Mika Westerberg wrote: > On Thu, Sep 14, 2017 at 02:52:27PM +, mario.limoncie...@dell.com wrote: > > > Looking at drivers/platform/x86/wmi.c:wmi_dev_uevent() it seems that > > > a modalias consisting of "wmi:" followed by the GUID is sent to udevd. > >

Re: [PATCH] gpu: drm: rockchip: Replace dev_* with DRM_DEV_*

2017-09-15 Thread Mark yao
Change the tile to: drm/rockchip: Replace dev_* with DRM_DEV_* Thanks. On 2017年09月15日 14:47, Haneen Mohammed wrote: This patch replace instances of dev_info/err/debug with DRM_DEV_INFO/ERROR/WARN respectively inorder to use a drm-formatted specific log messages. Issue corrected with the help

Re: [PATCH] intel-wmi-thunderbolt: fix some error cases

2017-09-15 Thread Darren Hart
On Thu, Sep 14, 2017 at 01:41:55AM -0500, Mario Limonciello wrote: > These were raised by Lukas Wunner as potential DOS attacks against > the system log by passing bad data to sysfs. > > Signed-off-by: Mario Limonciello Queued for review/testing with a minor subject change. -- Darren Hart VMwa

Re: [GIT PULL] overlayfs update for 4.14

2017-09-15 Thread Miklos Szeredi
On Thu, Sep 14, 2017 at 01:24:22PM -0700, Linus Torvalds wrote: > I just don't see any reason why those two "flags" arguments are separate. Fine. Here's a patch reverting the new flags and adding O_UPPER. Thanks, Miklos --- From: Miklos Szeredi Subject: vfs: d_real: merge flags and open_flags

[PATCH v3 1/2] dt-bindings: spi: Add Spreadtrum ADI controller documentation

2017-09-15 Thread Baolin Wang
This patch adds the binding documentation for Spreadtrum ADI controller device. Signed-off-by: Baolin Wang --- Changes since v2: - Add some documentation to describe how many hardware channels can be configured. - Remove "SPI framework" from binding file and other small optimization. Changes

[PATCH v3 2/2] spi: Add ADI driver for Spreadtrum platform

2017-09-15 Thread Baolin Wang
This patch adds ADI driver based on SPI framework for Spreadtrum SC9860 platform. Signed-off-by: Baolin Wang --- Changes since v2: - Remove the MIT license. Changes since v1: - Add COMPILE_TEST config as dependency. - Remove spi_controller_put() function when removing driver. - Change to mod

Re: [Outreachy kernel] [PATCH] gpu: drm: rockchip: Replace dev_* with DRM_DEV_*

2017-09-15 Thread Joe Perches
On Fri, 2017-09-15 at 08:58 +0200, Julia Lawall wrote: > > On Fri, 15 Sep 2017, Haneen Mohammed wrote: > > > This patch replace instances of dev_info/err/debug with > > DRM_DEV_INFO/ERROR/WARN respectively inorder to use a drm-formatted > > specific log messages. Issue corrected with the help of

[PATCH] dmaengine: edma: Align the memcpy acnt array size with the transfer

2017-09-15 Thread Peter Ujfalusi
Memory to Memory transfers does not have any special alignment needs regarding to acnt array size, but if one of the areas are in memory mapped regions (like PCIe memory), we need to make sure that the acnt array size is aligned with the mem copy parameters. Signed-off-by: Peter Ujfalusi --- dr

[PATCH] Revert "PCI: Avoid race while enabling upstream bridges"

2017-09-15 Thread Bjorn Helgaas
This reverts commit 40f11adc7cd9281227f0a6a627d966dd0a5f0cd9. Jens found that iwlwifi firmware loading failed on a Lenovo X1 Carbon, gen4: iwlwifi :04:00.0: Direct firmware load for iwlwifi-8000C-34.ucode failed with error -2 iwlwifi :04:00.0: Direct firmware load for iwlwifi-8000C-3

[PATCH] block: consider merge of segments when merge bio into rq

2017-09-15 Thread Jianchao Wang
When account the nr_phys_segments during merging bios into rq, only consider segments merging in individual bio but not all the bios in a rq. This leads to the bigger nr_phys_segments of rq than the real one when the segments of bios in rq are contiguous and mergeable. The nr_phys_segments of rq wi

Re: [PATCH] net: phy: Fix mask value write on gmii2rgmii converter speed register.

2017-09-15 Thread Fahad Kunnathadi
Hi Andrew, Thank you for review and comments. I will review this driver code with any review comments before, and update you if I could find any.. Best Regards Fahad K - Original Message - From: "Andrew Lunn" To: "Fahad Kunnathadi" Cc: "f fainelli" , net...@vger.kernel.org, "Michal

Re: [PATCH] nl80211: check for the required netlink attributes presence

2017-09-15 Thread Johannes Berg
On Wed, 2017-09-13 at 00:21 +0200, Vladis Dronov wrote: > nl80211_set_rekey_data() does not check if the required attributes > NL80211_REKEY_DATA_{REPLAY_CTR,KEK,KCK} are present when processing > NL80211_CMD_SET_REKEY_OFFLOAD request. This request can be issued by > users with CAP_NET_ADMIN privil

[PATCH] objtool: Fix object file corruption

2017-09-15 Thread Josh Poimboeuf
Arnd Bergmann reported that a randconfig build was failing with the following link error: built-in.o: member arch/x86/kernel/time.o in archive is not an object It turns out the link failed because the time.o file had been corrupted by objtool: nm: arch/x86/kernel/time.o: File format not reco

<    1   2   3   4   5   6   >