Re: [PATCHv3 1/1] mmc: core: export emmc revision

2017-10-12 Thread Jisheng Zhang
On Thu, 12 Oct 2017 10:46:59 -0700 Jin Qian wrote: > From: Jin Qian > > Expose emmc revision as part of device attributes. > > Signed-off-by: Jin Qian > --- A trivial point: when you send newer version, could you add change log so that it's clearly expressed what's updated/addressed. > Docu

[RESEND PATCH] scsi: shost->async_scan should be protected by mutex_lock

2017-10-12 Thread Ouyangzhaowei (Charles)
shost->async_scan should be protected by mutex_lock, otherwise the check of "called twice" won't work. Signed-off-by: Ouyang Zhaowei --- drivers/scsi/scsi_scan.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c index fd

Re: [PATCH] arm64: dts: update the DPAA QBMan nodes

2017-10-12 Thread Shawn Guo
On Tue, Oct 03, 2017 at 04:04:15PM +0300, Madalin Bucur wrote: > Use constants in the interrupt description. > > Signed-off-by: Madalin Bucur Applied, thanks.

Re: [PATCH] fs, mm: account filp and names caches to kmemcg

2017-10-12 Thread Michal Hocko
On Thu 12-10-17 16:57:22, Greg Thelen wrote: [...] > Overcharging kmem with deferred reconciliation sounds good to me. > > A few comments (not reasons to avoid this): > > 1) If a task is moved between memcg it seems possible to overcharge >multiple oom memcg for different kmem/user allocation

Re: [PATCH] PM / core: Fix kerneldoc comments of three functions

2017-10-12 Thread Ulf Hansson
On 13 October 2017 at 02:33, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Fix kerneldoc comments of __device_suspend_noirq(), > __device_suspend_late() and __device_suspend() where the function > names in kerneldoc don't match the actual names of the functions. > > Signed-off-by: Rafael

Re: [PATCH v3 3/8] PM / devfreq: Show the available min/max frequency through sysfs node

2017-10-12 Thread Chanwoo Choi
Hi, On 2017년 10월 12일 13:08, Chanwoo Choi wrote: > On 2017년 10월 11일 21:57, Chanwoo Choi wrote: >> On Wed, Oct 11, 2017 at 8:15 PM, MyungJoo Ham >> wrote: The existing {min|max}_freq sysfs nodes don't consider whether min/max_freq are available or not. Those sysfs nodes show just the sto

Re: [PATCH v3 5/8] PM / devfreq: Get the available next frequency on update_devfreq()

2017-10-12 Thread Chanwoo Choi
Hi, On 2017년 10월 11일 22:33, Chanwoo Choi wrote: > On Wed, Oct 11, 2017 at 8:30 PM, MyungJoo Ham > wrote: >>> The update_devfreq() considers only user frequency (min_freq/max_freq) >>> and the next target_freq provided by the governor. But, the commit >>> a76caf55e5b35 ("thermal: Add devfreq cool

Re: [PATCH] IB/cma: make config_item_type const

2017-10-12 Thread kbuild test robot
Hi Bhumika, [auto build test WARNING on rdma/master] [also build test WARNING on v4.14-rc4 next-20171009] [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/Bhumika-Goyal/IB-cma-make-config_item_typ

Re: [PATCH] tracing, memcg, vmscan: Hide trace events when not in use

2017-10-12 Thread Michal Hocko
On Thu 12-10-17 18:46:32, Steven Rostedt wrote: > From: Steven Rostedt (VMware) > > When trace events are defined but not used they still create data > structures and functions for their use, even though nothing may be > using them. > > The trace events mm_vmscan_memcg_reclaim_begin, > mm_vmscan

Re: [PATCH] s390/pkey: fix kzalloc-simple.cocci warnings

2017-10-12 Thread Harald Freudenberger
On 10/11/2017 09:52 PM, Vasyl Gomonovych wrote: > drivers/s390/crypto/pkey_api.c:128:11-18: WARNING: kzalloc should be used for > cprbmem, instead of kmalloc/memset > > Use kzalloc rather than kmalloc followed by memset with 0 > > Generated by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci > >

Re: [PATCH] fs, mm: account filp and names caches to kmemcg

2017-10-12 Thread Michal Hocko
On Thu 12-10-17 15:03:12, Johannes Weiner wrote: > On Tue, Oct 10, 2017 at 04:24:34PM +0200, Michal Hocko wrote: [...] > > And we will simply mark the victim MMF_OOM_SKIP and hide it from the oom > > killer if we fail to get the mmap_sem after several attempts. This will > > allow to find a new vic

Re: [PATCH] PM / QoS: Drop PM_QOS_FLAG_REMOTE_WAKEUP

2017-10-12 Thread Ulf Hansson
On 13 October 2017 at 02:35, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The PM QoS flag PM_QOS_FLAG_REMOTE_WAKEUP is not used consistently > and the vast majority of code simply assumes that remote wakeup > should be enabled for devices in runtime suspend if they can > generate wakeup

[PATCH] mm/page_alloc: make sure __rmqueue() etc. always inline

2017-10-12 Thread Aaron Lu
__rmqueue(), __rmqueue_fallback(), __rmqueue_smallest() and __rmqueue_cma_fallback() are all in page allocator's hot path and better be finished as soon as possible. One way to make them faster is by making them inline. But as Andrew Morton and Andi Kleen pointed out: https://lkml.org/lkml/2017/10/

Re: [PATCH v5 1/3] PCI: rockchip: Add support for pcie wake irq

2017-10-12 Thread Brian Norris
On Thu, Oct 12, 2017 at 09:32:47PM -0500, Bjorn Helgaas wrote: > On Thu, Oct 12, 2017 at 06:56:22PM -0700, Brian Norris wrote: > > Bjorn, were you planning to pick this up? > > I had already applied this to pci/host-rockchip, but I must have gotten > interrupted before sending the email. You also

Re: [PATCH 0/3] PCI: rockchip: assert PERST# in S3

2017-10-12 Thread Brian Norris
Hi Bjorn, On Thu, Oct 12, 2017 at 10:15:23PM -0500, Bjorn Helgaas wrote: > On Thu, Oct 12, 2017 at 01:52:17PM -0700, Brian Norris wrote: > > Hi, > > > > This patch series should mostly be self-descriptive, but it's motivated by > > the > > fact that I've found differing requirements from PCIe en

Re: [PATCH] MAINTAINERS: Add git repository to Renesas clock driver section

2017-10-12 Thread Geert Uytterhoeven
Hi Stephen, On Fri, Oct 13, 2017 at 12:29 AM, Stephen Boyd wrote: > On 10/04, Geert Uytterhoeven wrote: >> Signed-off-by: Geert Uytterhoeven >> --- > > Acked-by: Stephen Boyd Thanks! > I take it this will come through some PR? OK, I will queue it for the second pull request for v4.15. Gr{oe

[PATCH V1 2/2] pinctrl: qcom: spmi-gpio: Set is_enabled flag in set_mux()

2017-10-12 Thread fenglinw
From: Fenglin Wu The initial value of is_enabled flag is read out from hardware in pmic_gpio_populate(), and it will be set in pmic_gpio_config_set() if pinconf is defined. For any GPIOs disabled initially in hardware which only have pinmux defined, they won't be enabled in pmic_gpio_set_mux() ca

[PATCH V1 1/2] pinctrl: qcom: spmi-gpio: Read REG_EN_CTL to get initial enable state

2017-10-12 Thread fenglinw
From: Fenglin Wu Get initial value of is_enabled flag by reading REG_EN_CTL register so that it can reflect the correct hardware enable state before setting pin config. Signed-off-by: Fenglin Wu --- drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 9 +++-- 1 file changed, 7 insertions(+), 2 dele

[PATCH V1 0/2] *** Update is_enabled flag to be consistent ***

2017-10-12 Thread fenglinw
From: Fenglin Wu Currently, is_enabled flag is always set to true in pmic_gpio_populate() regardless of the hardware real time status. This is not correct and it gives the wrong information for the GPIOs which are disabled initially in hardware. Add two patches to fix this: One is set the is_enab

Re: [alsa-devel] [PATCH RESEND1 00/12] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-10-12 Thread Oleksandr Andrushchenko
ping On 10/04/2017 09:50 AM, Oleksandr Andrushchenko wrote: gentle reminder On 09/26/2017 02:35 PM, Oleksandr Andrushchenko wrote: Clemens, Sakamoto-san, could you please review the below if you by chance have a minute? Thank you, Oleksandr On 09/19/2017 11:57 AM, Oleksandr Andrushchenko wr

[RESEND PATCH v7 0/1] ZII RAVE platform driver

2017-10-12 Thread Andrey Smirnov
Hi everyone, This patch series is v7 of the driver for supervisory processor found on RAVE series of devices from ZII. Supervisory processor is a PIC microcontroller connected to various electrical subsystems on RAVE devices whose firmware implements protocol to command/qery them. Changes since [

[RESEND PATCH v7 1/1] platform: Add driver for RAVE Supervisory Processor

2017-10-12 Thread Andrey Smirnov
Add a driver for RAVE Supervisory Processor, an MCU implementing varoius bits of housekeeping functionality (watchdoging, backlight control, LED control, etc) on RAVE family of products by Zodiac Inflight Innovations. This driver implementes core MFD/serdev device as well as communication subrouti

[PATCH v4 12/12] [media] cxd2880: Add all Makefile, Kconfig files and Update MAINTAINERS file for the driver

2017-10-12 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi This is the Makefile, Kconfig files of driver and MAINTAINERS file update about the driver for the Sony CXD2880 DVB-T2/T tuner + demodulator. Signed-off-by: Yasunari Takiguchi Signed-off-by: Masayuki Yamamoto Signed-off-by: Hideki Nozawa Signed-off-by: Kota Yonezawa

[PATCH v4 11/12] [media] cxd2880: Add DVB-T2 monitor functions

2017-10-12 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi Provide monitor functions (DVB-T2) for the Sony CXD2880 DVB-T2/T tuner + demodulator driver. Signed-off-by: Yasunari Takiguchi Signed-off-by: Masayuki Yamamoto Signed-off-by: Hideki Nozawa Signed-off-by: Kota Yonezawa Signed-off-by: Toshihiko Matsumoto Signed-off-by

[GIT PULL] xen: fixes for 4.14 rc5

2017-10-12 Thread Juergen Gross
Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-4.14c-rc5-tag xen: fixes for 4.14 rc5 It contains a minor fix correcting the cpu hotplug name for Xen guests. Thanks. Juergen arch/x86/xen/enlighten.c | 4 ++-- 1 file changed, 2

[PATCH v4 10/12] [media] cxd2880: Add DVB-T2 control functions for the driver

2017-10-12 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi Provide definitions, interfaces and functions needed for DVB-T2 of the Sony CXD2880 DVB-T2/T tuner + demodulator driver. Signed-off-by: Yasunari Takiguchi Signed-off-by: Masayuki Yamamoto Signed-off-by: Hideki Nozawa Signed-off-by: Kota Yonezawa Signed-off-by: Toshih

[PATCH v4 09/12] [media] cxd2880: Add DVB-T monitor functions

2017-10-12 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi Provide monitor functions (DVB-T) for the Sony CXD2880 DVB-T2/T tuner + demodulator driver. Signed-off-by: Yasunari Takiguchi Signed-off-by: Masayuki Yamamoto Signed-off-by: Hideki Nozawa Signed-off-by: Kota Yonezawa Signed-off-by: Toshihiko Matsumoto Signed-off-by:

[PATCH v4 08/12] [media] cxd2880: Add DVB-T control functions the driver

2017-10-12 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi Provide definitions, interfaces and functions needed for DVB-T of the Sony CXD2880 DVB-T2/T tuner + demodulator driver. Signed-off-by: Yasunari Takiguchi Signed-off-by: Masayuki Yamamoto Signed-off-by: Hideki Nozawa Signed-off-by: Kota Yonezawa Signed-off-by: Toshihi

[PATCH v4 07/12] [media] cxd2880: Add top level of the driver

2017-10-12 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi This provides the main dvb frontend operation functions for the Sony CXD2880 DVB-T2/T tuner + demodulator driver. Signed-off-by: Yasunari Takiguchi Signed-off-by: Masayuki Yamamoto Signed-off-by: Hideki Nozawa Signed-off-by: Kota Yonezawa Signed-off-by: Toshihiko Mat

[PATCH v4 06/12] [media] cxd2880: Add integration layer for the driver

2017-10-12 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi These functions monitor the driver and watch for task completion. This is part of the Sony CXD2880 DVB-T2/T tuner + demodulator driver. Signed-off-by: Yasunari Takiguchi Signed-off-by: Masayuki Yamamoto Signed-off-by: Hideki Nozawa Signed-off-by: Kota Yonezawa Signed

Gruß

2017-10-12 Thread Meinze Klaus Peter
"In einer kurzen Einführung, Ich bin Rechtsanwalt Meinze Klaus Peter, aus Deutschland, l Lebe zur Zeit in London. Ich habe dir eine E-Mail über deine verstorbene Familienangehörige geschickt. Ich habe keine Antwort von dir bekommen. Der Verstorbene ist ein Bürger in deinem Land mit demselben Nachn

[PATCH v4 05/12] [media] cxd2880: Add tuner part of the driver

2017-10-12 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi This part of the driver has the main routines to handle the tuner and demodulator functionality. The tnrdmd_mon.* files have monitor functions for the driver. This is part of the Sony CXD2880 DVB-T2/T tuner + demodulator driver. Signed-off-by: Yasunari Takiguchi Signed

[PATCH v4 04/12] [media] cxd2880: Add spi device IO routines

2017-10-12 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi Add functions for initializing, reading and writing to the SPI device for the Sony CXD2880 DVB-T2/T tuner + demodulator. Signed-off-by: Yasunari Takiguchi Signed-off-by: Masayuki Yamamoto Signed-off-by: Hideki Nozawa Signed-off-by: Kota Yonezawa Signed-off-by: Toshih

[PATCH V2] powerpc/perf: Fix IMC initialization crash

2017-10-12 Thread Anju T Sudhakar
Call trace observed with latest firmware, and upstream kernel. [ 14.499938] NIP [c00f318c] init_imc_pmu+0x8c/0xcf0 [ 14.499973] LR [c00f33f8] init_imc_pmu+0x2f8/0xcf0 [ 14.57] Call Trace: [ 14.500027] [c03fed18f710] [c00f33c8] init_imc_pmu+0x2c8/0xcf0 (unre

[PATCH v4 03/12] [media] cxd2880: Add common files for the driver

2017-10-12 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi These are common files for the driver for the Sony CXD2880 DVB-T2/T tuner + demodulator. These contains helper functions for the driver. Signed-off-by: Yasunari Takiguchi Signed-off-by: Masayuki Yamamoto Signed-off-by: Hideki Nozawa Signed-off-by: Kota Yonezawa Signe

[PATCH v4 02/12] [media] cxd2880-spi: Add support for CXD2880 SPI interface

2017-10-12 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi This is the SPI adapter part of the driver for the Sony CXD2880 DVB-T2/T tuner + demodulator. Signed-off-by: Yasunari Takiguchi Signed-off-by: Masayuki Yamamoto Signed-off-by: Hideki Nozawa Signed-off-by: Kota Yonezawa Signed-off-by: Toshihiko Matsumoto Signed-off-b

[PATCH v4 01/12] [dt-bindings] [media] Add document file for CXD2880 SPI I/F

2017-10-12 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi This is the document file for Sony CXD2880 DVB-T2/T tuner + demodulator. It contains the description of the SPI adapter binding. Signed-off-by: Yasunari Takiguchi Signed-off-by: Masayuki Yamamoto Signed-off-by: Hideki Nozawa Signed-off-by: Kota Yonezawa Signed-off-by

Re: [Outreachy kernel] [PATCH] drm: Replace kzalloc with kcalloc

2017-10-12 Thread Julia Lawall
On Fri, 13 Oct 2017, Harsha Sharma wrote: > Prefer kcalloc over kzalloc to allocate an array. > This patch fixes checkcpatch issue. > > Signed-off-by: Harsha Sharma > --- > drivers/gpu/drm/drm_crtc_helper.c | 4 ++-- > drivers/gpu/drm/drm_fb_helper.c| 2 +- > drivers/gpu/drm/drm_plane_hel

Re: [PATCH] objtool: Fix memory leak in decode_instructions()

2017-10-12 Thread Kamalesh Babulal
On Friday 13 October 2017 10:36 AM, Josh Poimboeuf wrote: On Fri, Oct 13, 2017 at 10:14:36AM +0530, Kamalesh Babulal wrote: On Thursday 12 October 2017 09:40 PM, Josh Poimboeuf wrote: On Thu, Oct 12, 2017 at 02:32:14PM +0530, Kamalesh Babulal wrote: free the allocated insn before returning, wh

Re: [PATCH v2] bcache: safeguard a dangerous addressing in closure_queue

2017-10-12 Thread Michael Lyle
Hi Liang-- Thanks for the quick turnaround. I've added this to bcache-for-next. On 10/12/2017 10:30 PM, Liang Chen wrote: > The use of the union reduces the size of closure struct by taking advantage > of the current size of its members. The offset of func in work_struct equals > the size of the

[PATCH v4 00/12] [dt-bindings] [media] Add document file and driver for Sony CXD2880 DVB-T2/T tuner + demodulator

2017-10-12 Thread Yasunari.Takiguchi
From: Yasunari Takiguchi Hi, This is the patch series (version 4) of Sony CXD2880 DVB-T2/T tuner + demodulator driver.The driver supports DVB-API and interfaces through SPI. We have tested the driver on Raspberry Pi 3 and got picture and sound from a media player. The change history of this

Re: [PATCH 4.13 0/2] 4.13.7-stable review

2017-10-12 Thread Greg Kroah-Hartman
On Thu, Oct 12, 2017 at 05:45:01PM -0600, Shuah Khan wrote: > On 10/12/2017 03:26 PM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.13.7 release. > > There are 2 patches in this series, all will be posted as a response > > to this one. If anyone has any issue

[PATCH v2] bcache: safeguard a dangerous addressing in closure_queue

2017-10-12 Thread Liang Chen
The use of the union reduces the size of closure struct by taking advantage of the current size of its members. The offset of func in work_struct equals the size of the first three members, so that work.work_func will just reference the forth member - fn. This is smart but dangerous. It can be bro

Re: [PATCH v9 2/5] x86/cpuid: Add generic table for cpuid dependencies

2017-10-12 Thread Ingo Molnar
* Thomas Gleixner wrote: > On Thu, 12 Oct 2017, Ingo Molnar wrote: > > > > * Andi Kleen wrote: > > > > > --- /dev/null > > > +++ b/arch/x86/kernel/cpu/cpuid-deps.c > > > @@ -0,0 +1,109 @@ > > > +/* Declare dependencies between CPUIDs */ > > > +#include > > > +#include > > > +#include > > >

Re: [lkp-robot] [ipv6] 2b760fcf5c: WARNING:suspicious_RCU_usage

2017-10-12 Thread Wei Wang
On Thu, Oct 12, 2017 at 7:03 PM, kernel test robot wrote: > > FYI, we noticed the following commit (built with gcc-6): > > commit: 2b760fcf5cfb34e8610df56d83745b2b74ae1379 ("ipv6: hook up exception > table to store dst cache") > https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git mas

Re: [PATCH] objtool: Fix memory leak in decode_instructions()

2017-10-12 Thread Josh Poimboeuf
On Fri, Oct 13, 2017 at 10:14:36AM +0530, Kamalesh Babulal wrote: > On Thursday 12 October 2017 09:40 PM, Josh Poimboeuf wrote: > > On Thu, Oct 12, 2017 at 02:32:14PM +0530, Kamalesh Babulal wrote: > > > free the allocated insn before returning, when an error occurs > > > before adding insn to file

Re: [PATCH] target: make config_item_type const

2017-10-12 Thread kbuild test robot
Hi Bhumika, [auto build test WARNING on target/master] [also build test WARNING on v4.14-rc4 next-20171009] [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/Bhumika-Goyal/target-make-config_item_t

Re: [PATCH] bcache: safeguard a dangerous addressing in closure_queue

2017-10-12 Thread Liang Chen
On Fri, Oct 13, 2017 at 1:44 AM, Michael Lyle wrote: > On 10/12/2017 07:37 AM, Liang Chen wrote: >> The use of the union reduces the size of closure struct by taking advantage >> of the current size of its members. The offset of func in work_struct equals >> the size of the first three members, so

Re: [lkp-robot] [x86/kconfig] 81d3871900: BUG:unable_to_handle_kernel

2017-10-12 Thread Josh Poimboeuf
On Thu, Oct 12, 2017 at 12:05:04PM -0500, Christopher Lameter wrote: > On Wed, 11 Oct 2017, Josh Poimboeuf wrote: > > > I failed to add the slab maintainers to CC on the last attempt. Trying > > again. > > > Hmmm... Yea. SLOB is rarely used and tested. Good illustration of a simple > allocator

[PATCH v2] selftests/exec: include cwd in long path calculation

2017-10-12 Thread Steve Muckle
When creating a pathname close to PATH_MAX to test execveat, factor in the current working directory path otherwise we end up with an absolute path that is longer than PATH_MAX. While execveat() may succeed, subsequent calls to the kernel from the runtime environment which are required to successfu

Re: [PATCH] objtool: Fix memory leak in decode_instructions()

2017-10-12 Thread Kamalesh Babulal
On Thursday 12 October 2017 09:40 PM, Josh Poimboeuf wrote: On Thu, Oct 12, 2017 at 02:32:14PM +0530, Kamalesh Babulal wrote: free the allocated insn before returning, when an error occurs before adding insn to file->insn_list. Signed-off-by: Kamalesh Babulal Any chance you're working on por

[PATCH v2] cpufreq: powernv: Fix the frequency read by /proc/cpuinfo

2017-10-12 Thread Shriya
The call to /proc/cpuinfo in turn calls cpufreq_quick_get() which returns the last frequency requested by the kernel, but may not reflect the actual frequency the processor is running at. This patch makes a call to cpufreq_get() instead which returns the current frequency reported by the hardware.

[PATCH] KVM: LAPIC: Level-sensitive interrupts are not support for LINT1

2017-10-12 Thread Wanpeng Li
From: Wanpeng Li SDM 10.5.1 mentioned: Software should always set the trigger mode in the LVT LINT1 register to 0 (edge sensitive). Level-sensitive interrupts are not supported from LINT1. I can intercept both Linux/windows 7/windows 2016 guests on my hand will set Level-sensitive trigger mo

Re: [PATCH v2 3/5] mmc: dw_mmc: Add locking to the CTO timer

2017-10-12 Thread Doug Anderson
Shawn, On Thu, Oct 12, 2017 at 6:32 PM, Shawn Lin wrote: > > On 2017/10/13 4:11, Douglas Anderson wrote: >> >> This attempts to instill a bit of paranoia to the code dealing with >> the CTO timer. It's believed that this will make the CTO timer more >> robust in the case that we're having very l

Re: [Part2 PATCH v5.1 12.7/31] crypto: ccp: Implement SEV_PEK_CSR ioctl command

2017-10-12 Thread Brijesh Singh
On 10/12/17 9:24 PM, Brijesh Singh wrote: > > On 10/12/17 2:53 PM, Borislav Petkov wrote: > ... > >> Ok, a couple of things here: >> >> * Move the checks first and the allocations second so that you allocate >> memory only after all checks have been passed and you don't allocate >> pointlessly. >

[PATCH v3] net: ftgmac100: Request clock and set speed

2017-10-12 Thread Joel Stanley
According to the ASPEED datasheet, gigabit speeds require a clock of 100MHz or higher. Other speeds require 25MHz or higher. This patch configures a 100MHz clock if the system has a direct-attached PHY, or 25MHz if the system is running NC-SI which is limited to 100MHz. There appear to be no other

Re: [PATCH V5] clk: qcom: Add spmi_pmic clock divider support

2017-10-12 Thread Tirupathi Reddy T
Hi Stephen, Could you please pick the patch ?  All the comments given on older patch sets were addressed and the patch is Acked-by Rob Herring. Thanks Tirupathi On 9/19/2017 4:04 PM, Tirupathi Reddy wrote: Clkdiv module provides a clock output on the PMIC with CXO as the source. This clock c

Re: [PATCH, RFC] x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G

2017-10-12 Thread Kirill A. Shutemov
On Thu, Oct 12, 2017 at 06:07:36PM -0500, Eric W. Biederman wrote: > "Kirill A. Shutemov" writes: > > > On Mon, Oct 09, 2017 at 09:54:53AM -0700, Dave Hansen wrote: > >> On 10/09/2017 09:09 AM, Kirill A. Shutemov wrote: > >> > Apart from trampoline itself we also need place to store top level pag

Re: [PATCH] cpufreq: speedstep-lib: mark expected switch fall-through

2017-10-12 Thread Viresh Kumar
On 12-10-17, 17:41, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Signed-off-by: Gustavo A. R. Silva > --- > drivers/cpufreq/speedstep-lib.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

[PATCH v2 1/2] block: Treat all read ops as synchronous

2017-10-12 Thread Jeffy Chen
The comment for op_is_sync() says "Reads are always treated as synchronous", but it only checks for REQ_OP_READ. Use op_is_write() to detect read ops and treat them as synchronous. Fixes: aebf526b53ae ("block: fold cmd_type into the REQ_OP_ space") Signed-off-by: Jeffy Chen --- Changes in v2: R

[PATCH v2 2/2] block/cfq: Fix memory leak without CFQ_GROUP_IOSCHED

2017-10-12 Thread Jeffy Chen
Currently we only unref the async cfqqs in cfq_pd_offline, which would never be called without CONFIG_CFQ_GROUP_IOSCHED enabled. Kmemleak reported: unreferenced object 0xffc0cd9fc000 (size 240): comm "kworker/3:1", pid 52, jiffies 4294673527 (age 97.149s) hex dump (first 32 bytes): 01

Re: [PATCH] PCI: dwc: designware: don't sleep in atomic context

2017-10-12 Thread Pankaj Dubey
On 10/12/2017 04:09 PM, David Laight wrote: From: Pankaj Dubey Sent: 12 October 2017 08:55 In pcie-designware.c many places we are calling "usleep_range" which are in atomic context. This patch fixes these potential BUGs and replaces "usleep_range" with mdelay calls. Signed-off-by: Pankaj Dub

[PATCH] of: dynamic: fix memory leak related to properties of __of_node_dup

2017-10-12 Thread Lixin Wang
Hello, Sorry It was my fault that used the wrong sign off name in last email. Here I correct it. Thanks --- It is possible a node was dynamically allocated but without any property. The properies will be got from devices and added to the node when devices got connected. When release this node, al

Re: [PATCH 0/3] PCI: rockchip: assert PERST# in S3

2017-10-12 Thread Bjorn Helgaas
On Thu, Oct 12, 2017 at 01:52:17PM -0700, Brian Norris wrote: > Hi, > > This patch series should mostly be self-descriptive, but it's motivated by the > fact that I've found differing requirements from PCIe endpoint makers > regarding > the state of PERST# when in system suspend (S3). Additionall

[PATCH v2] media: uvcvideo: Fix uvc dev reference management

2017-10-12 Thread Jeffy Chen
Remove the kref_get() in uvc_register_video(), which is not needed as the kref_init() already initializes refcount to 1 for us. Fixes: 9d15cd958c17 ("media: uvcvideo: Convert from using an atomic variable to a reference count") Signed-off-by: Jeffy Chen --- Changes in v2: Rewrite commit message

Re: [PATCH] ARM: dts: imx: ventana: remove container node from iomuxc nodes

2017-10-12 Thread Shawn Guo
On Mon, Sep 18, 2017 at 01:11:01PM -0700, Tim Harvey wrote: > The container node in the iomuxc node is no longer necessary and causes > pinctl errors on the Ventana boards with analog video capture > since aa12693e4156adafdef80a8bd134123a6419621b: > > pinctrl core: initialized pinctrl subsystem >

[PATCH] of: overlay: fix memory leak related to duplicated property

2017-10-12 Thread Lixin Wang
From: alawang Hello, Sorry It was my fault in last email that wrote the wrong subject and sign off name. Correct them this time. Thanks Function of_changeset_add_property or of_changeset_update_property may fails. In this case the property just allocated is never deallocated. Signed-off-by: L

Re: [PATCH v5 1/5] ARM: dts: imx6qdl-icore: Add Sound card support

2017-10-12 Thread Shawn Guo
On Mon, Sep 18, 2017 at 04:58:29PM +0530, Jagan Teki wrote: > From: Jagan Teki > > Linux Sound card now uses generic simple-audio-card, so add > the same along with related audmux and codec(via u2c3) for > i.CoreM6 QDL module boards. > > Cc: Shawn Guo > Cc: Matteo Lisi > Cc: Michael Trimarchi

Re: [PATCH v5 1/3] PCI: rockchip: Add support for pcie wake irq

2017-10-12 Thread Bjorn Helgaas
[+cc Rafael, linux-pm] On Mon, Sep 11, 2017 at 11:10:27PM +0800, Jeffy Chen wrote: > Add support for PCIE_WAKE pin in rockchip pcie driver. > > Signed-off-by: Jeffy Chen > --- > > Changes in v5: > Rebase > > Changes in v3: > Fix error handling > > Changes in v2: > Use dev_pm_set_dedicated_wak

linux-next: Tree for Oct 12th

2017-10-12 Thread Mark Brown
I have created today's linux-next tree at git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git (patches at http://www.kernel.org/pub/linux/kernel/next/ ). If you are tracking the linux-next tree using git, you should not use "git pull" to do so as that will try to merge the new linux-

linux-next: build failure after merge of the akpm-current tree

2017-10-12 Thread Mark Brown
Hi Andrew, After merging the akpm-current tree, today's linux-next build (x86 allmodconfig) failed like this: CC [M] drivers/net/ethernet/netronome/nfp/nfp_app.o In file included from /home/broonie/tmpfs/next/drivers/net/ethernet/netronome/nfp/nfp_asm.c:40:0: /home/broonie/tmpfs/next/drivers/

[PATCH v2] ALSA: hda/ca0132 - use ARRAY_SIZE

2017-10-12 Thread Jérémy Lefaure
Using the ARRAY_SIZE macro improves the readability of the code. Found with Coccinelle with the following semantic patch: @r depends on (org || report)@ type T; T[] E; position p; @@ ( (sizeof(E)@p /sizeof(*E)) | (sizeof(E)@p /sizeof(E[...])) | (sizeof(E)@p /sizeof(T)) ) Signed-off-by: Jérémy

Re: [PATCH v5 1/3] PCI: rockchip: Add support for pcie wake irq

2017-10-12 Thread Bjorn Helgaas
On Thu, Oct 12, 2017 at 06:56:22PM -0700, Brian Norris wrote: > Hi, > > On Mon, Sep 11, 2017 at 11:10:27PM +0800, Jeffy Chen wrote: > > Add support for PCIE_WAKE pin in rockchip pcie driver. > > > > Signed-off-by: Jeffy Chen > > --- > > > > Changes in v5: > > Rebase > > > > Changes in v3: > >

Re: [PATCH] drm/rockchip: add PINCTRL dependency for LVDS

2017-10-12 Thread Mark yao
On 2017年10月05日 20:09, Arnd Bergmann wrote: The new driver fails to build when CONFIG_PINCTRL is disabled: drivers/gpu/drm/rockchip/rockchip_lvds.c: In function 'rockchip_lvds_grf_config': drivers/gpu/drm/rockchip/rockchip_lvds.c:229:39: error: dereferencing pointer to incomplete type 'struct d

Re: [PATCH] f2fs: add bug_on when f2fs_gc even fails to get one victim

2017-10-12 Thread Jaegeuk Kim
On 10/13, Yunlong Song wrote: > Hi, Jay, > I think it should not happen when need_gc == true but total_freed ==0, > so I add it as bug_on to let it panic at once. And even CHECK_FS is closed, > this can also printk WARNING message for notice. Ah, got it. Merged. :) Thanks, > > On 2017/10/13

Re: [Part2 PATCH v5.1 12.7/31] crypto: ccp: Implement SEV_PEK_CSR ioctl command

2017-10-12 Thread Brijesh Singh
On 10/12/17 2:53 PM, Borislav Petkov wrote: ... > Ok, a couple of things here: > > * Move the checks first and the allocations second so that you allocate > memory only after all checks have been passed and you don't allocate > pointlessly. I assume you mean performing the SEV state check befo

Re: [PATCH] mmc:host:sdhci-pci:V2-Addition of Arasan PCI controller with integrated phy.

2017-10-12 Thread Atul Garg
Hi Sekhar, Thanks for comments. On Wed, Oct 11, 2017 at 7:23 AM, Sekhar Nori wrote: > Hi Atul, > > On Tuesday 10 October 2017 11:12 PM, Atul Garg wrote: >> The Arasan controller is based on a FPGA platform and has integrated phy >> with specific phy registers used during the initialization and >>

[PATCH V1 2/2] usb: serial: f81534: Implement break control

2017-10-12 Thread Ji-Ze Hong (Peter Hong)
Implement Fintek f81534 break on/off with LCR register. It's the same with 16550A LCR register layout. Signed-off-by: Ji-Ze Hong (Peter Hong) --- drivers/usb/serial/f81534.c | 46 +++-- 1 file changed, 40 insertions(+), 6 deletions(-) diff --git a/drivers

[PATCH V1 1/2] usb: serial: f81534: fix hang-up on overrun

2017-10-12 Thread Ji-Ze Hong (Peter Hong)
The F81532/534 without this patch will hang-up on data overrun. It's caused by enable LSR interrupt in IER by default and occur data overrun, the chip will busy for process LSR interrupt but not read LSR internally. It will not responed for USB control endpoint0 and we can't read LSR from driver i

[PATCH] f2fs: avoid stale fi->gdirty_list pointer

2017-10-12 Thread Jaegeuk Kim
When doing fault injection test, f2fs_evict_inode() didn't remove gdirty_list which incurs a kernel panic due to wrong pointer access. Signed-off-by: Jaegeuk Kim --- fs/f2fs/inode.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/f2fs/inode.c b/fs/f2fs/inode.c index f6db9d533ca4..1ae539

Re: [PATCH net-next 1/2] mqprio: Add a new hardware offload type in mqprio

2017-10-12 Thread Yunsheng Lin
Hi, Yuval On 2017/10/13 4:10, Yuval Mintz wrote: >> When a driver supports both dcb and hardware offloaded mqprio, and >> user is running mqprio and dcb tool concurrently, the configuration >> set by each tool may be conflicted with each other because the dcb > (for second 'each') s/each/the > W

Re: [PATCH net-next 0/2] Add mqprio hardware offload support in hns3 driver

2017-10-12 Thread Yunsheng Lin
Hi, Yuval On 2017/10/13 4:21, Yuval Mintz wrote: >> This patchset adds a new hardware offload type in mqprio before adding >> mqprio hardware offload support in hns3 driver. > > I think one of the biggest issues in tying this to DCB configuration is the > non-immediate [and possibly non persisten

[lkp-robot] [tools] a45112af2b: stderr.util/symbol.c:#:#:error:implicit_declaration_of_function'rb_erase_init';did_you_mean'rb_erase'?[-Werror=implicit-function-declaration]

2017-10-12 Thread kernel test robot
FYI, we noticed the following commit (built with gcc-6): commit: a45112af2bdfb51c42a89d181147776b0e4a631e ("tools: Update rbtree files") url: https://github.com/0day-ci/linux/commits/David-Ahern/tools-Update-rbtree-files/20171001-202148 in testcase: perf-sanity-tests with following parameters:

[PATCH 3/5] drm: Add drm_object lease infrastructure [v4]

2017-10-12 Thread Keith Packard
This provides new data structures to hold "lease" information about drm mode setting objects, and provides for creating new drm_masters which have access to a subset of the available drm resources. An 'owner' is a drm_master which is not leasing the objects from another drm_master, and hence 'owns

[PATCH 2/5] drm: Add new LEASE debug level

2017-10-12 Thread Keith Packard
Separate out lease debugging from the core. Signed-off-by: Keith Packard --- drivers/gpu/drm/drm_drv.c | 3 ++- include/drm/drmP.h| 4 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index c0292e5d7281..a934fd5e7e55

[PATCH 0/5]: drm: Add drm mode object leases

2017-10-12 Thread Keith Packard
New since last time: * Don't lease encoders * Do lease planes * Automatically lease primary and cursor planes for apps which don't set universal_planes * Restrict leases to only contain objects which are actually leasable (connectors, crtcs and planes) * Drop the patch which changes per

[PATCH 4/5] drm: Check mode object lease status in all master ioctl paths [v3]

2017-10-12 Thread Keith Packard
Attempts to modify un-leased objects are rejected with an error. Information returned about unleased objects is modified to make them appear unusable and/or disconnected. Changes for v2 as suggested by Daniel Vetter : * With the change in the __drm_mode_object_find API to pass the file_priv a

Re: [PATCH v3 00/15] V4L2 Explicit Synchronization support

2017-10-12 Thread Brian Starkey
Hi, On Wed, Oct 04, 2017 at 05:08:55PM -0300, Gustavo Padovan wrote: Hi Brian, On Mon, 2017-10-02 at 14:41 +0100, Brian Starkey wrote: Hi Gustavo, On Thu, Sep 07, 2017 at 03:42:11PM -0300, Gustavo Padovan wrote: > From: Gustavo Padovan > > Hi, > > Refer to the documentation on the first patc

[PATCH 1/5] drm/plane: drop num_overlay_planes (v2)

2017-10-12 Thread Keith Packard
From: Dave Airlie In order to implement plane leasing we need to count things, just make the code consistent with the counting code currently used for counting crtcs/encoders/connectors and drop the need for num_overlay_planes. v2: don't forget to assign plane_ptr. (keithp) Signed-off-by: Dave

Re: [PATCH v5 1/3] PCI: rockchip: Add support for pcie wake irq

2017-10-12 Thread Brian Norris
Hi, On Mon, Sep 11, 2017 at 11:10:27PM +0800, Jeffy Chen wrote: > Add support for PCIE_WAKE pin in rockchip pcie driver. > > Signed-off-by: Jeffy Chen > --- > > Changes in v5: > Rebase > > Changes in v3: > Fix error handling > > Changes in v2: > Use dev_pm_set_dedicated_wake_irq > --

[PATCH 5/5] drm: Add four ioctls for managing drm mode object leases [v6]

2017-10-12 Thread Keith Packard
drm_mode_create_lease Creates a lease for a list of drm mode objects, returning an fd for the new drm_master and a 64-bit identifier for the lessee drm_mode_list_lesees List the identifiers of the lessees for a master file drm_mode_get_lease List the leased obje

Re: [PATCH 1/3] sched/fair: Introduce scaled capacity awareness in find_idlest_cpu code path

2017-10-12 Thread Rohit Jain
Hi Joel, On 10/12/2017 02:47 PM, Joel Fernandes wrote: On Thu, Oct 12, 2017 at 10:03 AM, Rohit Jain wrote: Hi Joel, Atish, Moving off-line discussions to LKML, just so everyone's on the same page, I actually like this version now and it is outperforming my previous code, so I am on board wit

[PATCH 1/2] of: overlay: fix memory leak related to duplicated property

2017-10-12 Thread alawang
Function of_changeset_add_property or of_changeset_update_property may fails. In this case the property just allocated is never deallocated. Signed-off-by: alawang --- drivers/of/overlay.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/drivers/of/overlay.c b

Re: [PATCH] tracing: bpf: Hide bpf trace events when they are not used

2017-10-12 Thread Steven Rostedt
On Thu, 12 Oct 2017 18:38:36 -0700 Alexei Starovoitov wrote: > actually just noticed that xdp tracepoints are not covered by ifdef. > They depend on bpf_syscall too. So probably makes sense to wrap > them together. > bpf tracepoints are not being actively worked on whereas xdp tracepoints > keep

[PATCH] of: dynamic: fix memory leak related to properties of __of_node_dup

2017-10-12 Thread alawang
It is possible a node was dynamically allocated but without any property. The properies will be got from devices and added to the node when devices got connected. When release this node, all properties of which had been moved to deadprops. In this case, the properties in the deadprops list are neve

[PATCH net-next v2 0/4] net: dsa: remove .set_addr

2017-10-12 Thread Vivien Didelot
An Ethernet switch may support having a MAC address, which can be used as the switch's source address in transmitted full-duplex Pause frames. If a DSA switch supports the related .set_addr operation, the DSA core sets the master's MAC address on the switch. This won't make sense anymore in a mul

[PATCH net-next v2 2/4] net: dsa: mv88e6060: setup random mac address

2017-10-12 Thread Vivien Didelot
As for mv88e6xxx, setup the switch from within the mv88e6060 driver with a random MAC address, and remove the .set_addr implementation. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6060.c | 30 +++--- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git

[PATCH net-next v2 3/4] net: dsa: dsa_loop: remove .set_addr

2017-10-12 Thread Vivien Didelot
The .set_addr function does nothing, remove the dsa_loop implementation before getting rid of it completely in DSA. Signed-off-by: Vivien Didelot --- drivers/net/dsa/dsa_loop.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/net/dsa/dsa_loop.c b/drivers/net/dsa/dsa_loop.c inde

[PATCH net-next v2 1/4] net: dsa: mv88e6xxx: setup random mac address

2017-10-12 Thread Vivien Didelot
An Ethernet switch may support having a MAC address, which can be used as the switch's source address in transmitted full-duplex Pause frames. If a DSA switch supports the related .set_addr operation, the DSA core sets the master's MAC address on the switch. This won't make sense anymore in a mult

[PATCH net-next v2 4/4] net: dsa: remove .set_addr

2017-10-12 Thread Vivien Didelot
Now that there is no user for the .set_addr function, remove it from DSA. If a switch supports this feature (like mv88e6xxx), the implementation can be done in the driver setup. Signed-off-by: Vivien Didelot --- include/net/dsa.h | 1 - net/dsa/dsa2.c| 6 -- net/dsa/legacy.c | 6 --

  1   2   3   4   5   6   7   8   9   10   >