Re: [PATCH] misc/pvpanic: resolve compile errors for arch=um

2018-11-26 Thread Greg KH
On Tue, Nov 27, 2018 at 03:47:28PM +0800, peng.h...@zte.com.cn wrote: > >> >On Fri, Nov 16, 2018 at 07:13:26PM +0800, Peng Hao wrote: > >> >> Resolve compile error for arch=um > >> >> pvpanic.c:(.text+0xb6): undefined reference to `devm_ioremap_resource' > >> >> > >> >> Signed-off-by: Peng Hao >

Re: [PATCH] staging: rtl8188eu: Fix off-by-one in core/rtw_mlme_ext.c

2018-11-26 Thread gre...@linuxfoundation.org
On Tue, Nov 27, 2018 at 07:29:07AM +, Yang Xiao wrote: > From: Young_X Please use your "full" name like you did in your from: line of your email > > The error at line 3267 was the result of an off-by-one error in > a for loop in line 3253. > If condition in line 3254 never

Re: [PATCH V2] mm: Replace all open encodings for NUMA_NO_NODE

2018-11-26 Thread Michael Ellerman
Anshuman Khandual writes: > At present there are multiple places where invalid node number is encoded > as -1. Even though implicitly understood it is always better to have macros > in there. Replace these open encodings for an invalid node number with the > global macro NUMA_NO_NODE. This helps

Re: [PATCH anybus v4 1/7] fieldbus_dev: add Fieldbus Device subsystem.

2018-11-26 Thread Greg KH
On Wed, Nov 21, 2018 at 10:07:03AM -0500, thesve...@gmail.com wrote: > +static struct attribute *fieldbus_attrs[] = { > + _attr_enabled.attr, > + _attr_card_name.attr, > + _attr_fieldbus_id.attr, > + _attr_read_area_size.attr, > + _attr_write_area_size.attr, > +

Re: [PATCH 2/2] gpio: mt7621: pass mediatek_gpio_bank_probe() failure up the stack

2018-11-26 Thread Sean Wang
Nicholas Mc Guire 於 2018年11月21日 週三 上午10:13寫道: > > The error cases of mediatek_gpio_bank_probe() would go unnoticed (except > for the dev_err() messages). The probe function should return an error > if one of the banks failed to initialize properly. > > Signed-off-by: Nicholas Mc Guire > Fixes:

Re: [PATCH anybus v4 1/7] fieldbus_dev: add Fieldbus Device subsystem.

2018-11-26 Thread Greg KH
On Wed, Nov 21, 2018 at 10:07:03AM -0500, thesve...@gmail.com wrote: > Fieldbus device (client) adapters allow data exchange with a PLC aka. > "Fieldbus Controller" over a fieldbus (Profinet, FLNet, etc.) > > They are typically used when a Linux device wants to expose itself > as an actuator,

[PATCH V2] can: flexcan: implement can Runtime PM

2018-11-26 Thread Joakim Zhang
From: Aisheng Dong Flexcan will be disabled during suspend if no wakeup function required and enabled after resume accordingly. During this period, we could explicitly disable clocks. Implement Runtime PM which will: 1) Keep device in suspend state (clocks disabled) if it's not openned. 2) Make

Re: [PATCH anybus v4 1/7] fieldbus_dev: add Fieldbus Device subsystem.

2018-11-26 Thread Greg KH
On Wed, Nov 21, 2018 at 10:07:03AM -0500, thesve...@gmail.com wrote: > Fieldbus device (client) adapters allow data exchange with a PLC aka. > "Fieldbus Controller" over a fieldbus (Profinet, FLNet, etc.) > > They are typically used when a Linux device wants to expose itself > as an actuator,

Re: [PATCH] xen/x86: add diagnostic printout to xen_mc_flush() in case of error

2018-11-26 Thread Juergen Gross
On 26/11/2018 21:11, Boris Ostrovsky wrote: > On 11/23/18 11:24 AM, Juergen Gross wrote: >> Failure of an element of a Xen multicall is signalled via a WARN() >> only unless the kernel is compiled with MC_DEBUG. It is impossible to > > s/unless/if > > >> know which element failed and why it did

[PATCH] mtd: nand: Fix memory allocation in nanddev_bbt_init()

2018-11-26 Thread Schrempf Frieder
Fix the size of the buffer allocated to store the in-memory BBT. This bug was previously hidden by a different bug, that was fixed in d098093ba06e. Fixes: 9c3736a3de21 ("mtd: nand: Add core infrastructure to deal with NAND devices") Cc: Signed-off-by: Frieder Schrempf ---

Re: possible deadlock in ovl_write_iter

2018-11-26 Thread Amir Goldstein
On Tue, Nov 27, 2018 at 9:06 AM syzbot wrote: > > syzbot has found a reproducer for the following crash on: > > HEAD commit:6f8b52ba442c Merge tag 'hwmon-for-v4.20-rc5' of git://git... > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=120f390540 >

Re: [PATCH 2/2] misc: hx8837: add a HiMax HX8837 display controller driver

2018-11-26 Thread Greg Kroah-Hartman
On Mon, Nov 12, 2018 at 03:39:29AM +0100, Lubomir Rintel wrote: > HiMax HX8837 is a display controller used on OLPC platforms. It controls > backlight and is able to capture and freeze a frame when the LCD controller > (and the rest of the plaform) is powered off. > > This driver is based on the

Re: [PATCH] s390: Remove obsolete bust_spinlock() implementation

2018-11-26 Thread Martin Schwidefsky
On Fri, 23 Nov 2018 08:02:12 +0100 Heiko Carstens wrote: > On Fri, Nov 23, 2018 at 11:17:48AM +0900, Sergey Senozhatsky wrote: > > On (11/22/18 15:15), Petr Mladek wrote: > > > The commit cefc8be82403cf ("Consolidate bust_spinlocks()") kept > > > the s390-specific implementation because of the

Re: [PATCH 3/3] s390/mm: fix mis-accounting of pgtable_bytes

2018-11-26 Thread Heiko Carstens
On Wed, Oct 31, 2018 at 01:36:23PM +0300, Kirill A. Shutemov wrote: > On Wed, Oct 31, 2018 at 11:09:44AM +0100, Heiko Carstens wrote: > > On Wed, Oct 31, 2018 at 07:31:49AM +0100, Martin Schwidefsky wrote: > > > Thanks for testing. Unfortunately Heiko reported another issue yesterday > > > with

Re: [patch 20/24] x86/speculation: Split out TIF update

2018-11-26 Thread Jiri Kosina
On Tue, 27 Nov 2018, Thomas Gleixner wrote: > That's racy and does not prevent the situation because the TIF flags are > updated befor the UPDATE bit is set. > So __speculation_ctrl_update() might see the new bits, but not > TIF_SPEC_UPDATE. Hm, right, scratch that. We'd need to do that

Re: [PATCH] misc/pvpanic: resolve compile errors for arch=um

2018-11-26 Thread Greg KH
On Tue, Nov 27, 2018 at 08:27:03AM +0800, peng.h...@zte.com.cn wrote: > >On Fri, Nov 16, 2018 at 07:13:26PM +0800, Peng Hao wrote: > >> Resolve compile error for arch=um > >> pvpanic.c:(.text+0xb6): undefined reference to `devm_ioremap_resource' > >> > >> Signed-off-by: Peng Hao > >> --- > >>

Re: [PATCH] iio: st_sensors: Fix the sleep time for sampling

2018-11-26 Thread Jian-Hong Pan
Jonathan Cameron 於 2018年11月25日 週日 下午9:23寫道: > > On Wed, 21 Nov 2018 13:13:40 +0800 > Jian-Hong Pan wrote: > > > Denis CIOCCA 於 2018年11月20日 週二 上午3:05寫道: > > > > > > Hi Jian, > > > > > > Not clear to me why should be + instead of *. > > > > > > ODR is expressed in Hz, so (1/Hz) = period in

Re: [PATCH 1/2] gpio: mt7621: report failure of devm_kasprintf()

2018-11-26 Thread Sean Wang
Nicholas Mc Guire 於 2018年11月21日 週三 上午10:13寫道: > > kasprintf() may return NULL on failure of internal allocation thus the > assigned label is not safe if not explicitly checked. On error > mediatek_gpio_bank_probe() returns negative values so -ENOMEM in the > (unlikely) failure case should be

Re: [PATCH] x86/resctrl: Fix rdt_last_cmd_printf() usage and typos within

2018-11-26 Thread Thomas Gleixner
On Mon, 26 Nov 2018, Reinette Chatre wrote: > Use rdt_last_cmd_puts() instead of rdt_last_cmd_printf() when printing a > simple string. While doing so fix two typos that were recently > introduced into two of these simple strings. You're explaing what the patch is doing, but not why printf() is

Re: [patch 20/24] x86/speculation: Split out TIF update

2018-11-26 Thread Thomas Gleixner
On Tue, 27 Nov 2018, Jiri Kosina wrote: > On Mon, 26 Nov 2018, Thomas Gleixner wrote: > > How about the minimalistic aproach below? (only compile tested so far, > applies on top of your latest WIP.x86/pti branch). The downside of course > is wasting another TIF bit. We need to waste another

[PATCH v2] panic: Add options to print system info when panic happens

2018-11-26 Thread Feng Tang
Kernel panic issues are always painful to debug, partially because it's not easy to get enough information of the context when panic happens. And we have ramoops and kdump for that, while this commit tries to provide a easier way to show the system info by adding a cmdline parameter, referring

[PATCH] cgroup: remove unused member "cgrp_ancestor_id_storage" in struct cgroup_root

2018-11-26 Thread Peng Wang
"cgrp_ancestor_id_storage" is not used, so let's clean it up. Signed-off-by: Peng Wang --- include/linux/cgroup-defs.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/linux/cgroup-defs.h b/include/linux/cgroup-defs.h index 5e1694fe035b..639a96576ef3 100644 ---

Re: possible deadlock in ovl_write_iter

2018-11-26 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:6f8b52ba442c Merge tag 'hwmon-for-v4.20-rc5' of git://git... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=120f390540 kernel config:

Re: [patch 20/24] x86/speculation: Split out TIF update

2018-11-26 Thread Jiri Kosina
On Mon, 26 Nov 2018, Thomas Gleixner wrote: > > Looks like seccomp thread can be running on a remote CPU when its > > TIF_SPEC_IB flag gets updated. > > > > I wonder if this will cause STIBP to be always off in this scenario, when > > two tasks with SPEC_IB flags running on a remote CPU have

Re: [PATCH v2 3/3] Bluetooth: hci_qca: Fix frame reassembly errors for wcn3990

2018-11-26 Thread Balakrishna Godavarthi
Hi Matthias, On 2018-11-27 05:57, Matthias Kaehlcke wrote: On Mon, Nov 26, 2018 at 04:09:50PM -0800, Matthias Kaehlcke wrote: On Thu, Nov 22, 2018 at 05:45:12PM +0530, Balakrishna Godavarthi wrote: > During initalization of wcn3990, we observed UART is reading some > stray bytes on the Rx

Re: [PATCH 2/7] node: Add heterogenous memory performance

2018-11-26 Thread Dan Williams
On Wed, Nov 14, 2018 at 2:53 PM Keith Busch wrote: > > Heterogeneous memory systems provide memory nodes with latency > and bandwidth performance attributes that are different from other > nodes. Create an interface for the kernel to register these attributes > under the node that provides the

Re: [PATCH] arm64: dts: sdm845: Add videocc node

2018-11-26 Thread Stephen Boyd
Quoting Doug Anderson (2018-11-26 16:35:50) > Hi, > > On Mon, Nov 5, 2018 at 2:35 AM Taniya Das wrote: > > > > This adds the video clock controller node to sdm845 based on the examples > > in the bindings. > > > > Signed-off-by: Taniya Das > > --- > > arch/arm64/boot/dts/qcom/sdm845.dtsi | 8

[no subject]

2018-11-26 Thread ulricamica
-- Good day, I am Mrs Ulrica Mica from Hungary but based in the United Kindom, i am hospitalized in London suffering from Acute Cancer.i want to sign a Donation of $6,800,000 Usd on orphans in your area,can you handle it?, because of the confidentiality of the subject, Please contact me back

[PATCH v2] clk: qcom: Move to menuconfig and reduce lines

2018-11-26 Thread Stephen Boyd
We duplicate the 'depends on' in almost every Kconfig here, and it's getting out of hand now that we have tens of options for various SoC drivers here. Let's clean it up a little by making a menuconfig for a submenu and adding an if wrapper around the driver section. Cc: Bjorn Andersson Cc:

Re: [PATCH v2 2/3] Bluetooth: hci_qca: Deassert RTS while baudrate change command

2018-11-26 Thread Balakrishna Godavarthi
Hi Matthias, On 2018-11-27 01:12, Matthias Kaehlcke wrote: On Thu, Nov 22, 2018 at 05:45:11PM +0530, Balakrishna Godavarthi wrote: This patch will help to stop frame reassembly errors while changing the baudrate. This is because host send a change baudrate request command to the chip with

Re: [PATCH] ptrace: take into account saved_sigmask in PTRACE_{GET,SET}SIGMASK

2018-11-26 Thread Andrei Vagin
On Thu, Nov 22, 2018 at 12:47:52PM +0100, Oleg Nesterov wrote: > On 11/19, Andrei Vagin wrote: > > > > case PTRACE_SETSIGMASK: { > > sigset_t new_set; > > @@ -962,6 +971,8 @@ int ptrace_request(struct task_struct *child, long > > request, > > child->blocked = new_set;

RE: [PATCH] ARM64: dts: imx: add i.MX8QXP thermal support

2018-11-26 Thread Anson Huang
Forgot to mentioned: This patch is based on "[V4,3/5] arm64: dts: imx: add imx8qxp support", https://patchwork.kernel.org/patch/10677311/ Best Regards! Anson Huang > -Original Message- > From: Anson Huang > Sent: 2018年11月27日 14:19 > To: robh...@kernel.org; mark.rutl...@arm.com; Aisheng

Re: [PATCH 3/4] Drivers: hv: vmbus: Add hooks for per-CPU IRQ

2018-11-26 Thread Greg KH
On Mon, Nov 26, 2018 at 08:56:50PM +, Michael Kelley wrote: > From: Greg KH Monday, November 26, 2018 11:57 AM > > > > > You created "null" hooks that do nothing, for no one in this patch > > > > series, why? > > > > > > > > > > hv_enable_vmbus_irq() and hv_disable_vmbus_irq() have non-null

[PATCH] ARM64: dts: imx: add i.MX8QXP thermal support

2018-11-26 Thread Anson Huang
Add i.MX8QXP CPU thermal zone support. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 27 +++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi index

[PATCH] defconfig: arm64: add i.MX system controller thermal support

2018-11-26 Thread Anson Huang
This patch enables CONFIG_IMX_SC_THERMAL by default. Signed-off-by: Anson Huang --- This patch is based on https://patchwork.kernel.org/patch/10677315/ arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig

Re: KASAN: use-after-free Read in kvm_write_guest_offset_cached

2018-11-26 Thread Wanpeng Li
On Tue, 27 Nov 2018 at 12:51, syzbot wrote: > > Hello, Is there beauty C codes? Regards, Wanpeng Li > > syzbot found the following crash on: > > HEAD commit:442b8cea2477 Add linux-next specific files for 20181109 > git tree: linux-next > console output:

Re: [PATCH] watchdog: core: suppress "watchdog did not stop" message

2018-11-26 Thread Tao Ren
On 11/26/18, 5:31 PM, "Jerry Hoemann" wrote: > Tao, > > If you're on a system running systemd, the default behavior is to > enable the watchdog during shutdown. This guards against shutdown hanging. > So this message will be routinely printed out during orderly shutdown. Thank you Jerry for

Re: [PATCH v2 11/11] soc: mediatek: Add MT8183 scpsys support

2018-11-26 Thread Nicolas Boichat
On Tue, Nov 27, 2018 at 11:43 AM Weiyi Lu wrote: > > Add scpsys driver for MT8183 > > Signed-off-by: Weiyi Lu > --- > drivers/soc/mediatek/mtk-scpsys.c | 227 +- > 1 file changed, 226 insertions(+), 1 deletion(-) > > diff --git a/drivers/soc/mediatek/mtk-scpsys.c >

[PATCH 2/2] dt-bindings: thermal: add binding doc for i.MX system controller thermal driver

2018-11-26 Thread Anson Huang
NXP i.MX8QXP is an ARMv8 SoC with a Cortex-M4 core inside as system controller, the system controller is in charge of system power, clock and thermal sensors etc. management, Linux kernel has to communicate with system controller via MU (message unit) IPC to get temperature from thermal sensors,

[PATCH 1/2] thermal: imx_sc: add i.MX system controller thermal support

2018-11-26 Thread Anson Huang
i.MX8QXP is an ARMv8 SoC which has a Cortex-M4 system controller inside, the system controller is in charge of controlling power, clock and thermal sensors etc.. This patch adds i.MX system controller thermal driver support, Linux kernel has to communicate with system controller via MU (message

Re: [PATCH v2 04/11] soc: mediatek: add new flow for mtcmos power.

2018-11-26 Thread Nicolas Boichat
On Tue, Nov 27, 2018 at 11:43 AM Weiyi Lu wrote: > > From: Owen Chen > > Both MT8183 & MT6765 add more bus protect node than previous project, > therefore we add two more register for setup bus protect, which reside > at INFRA_CFG & SMI_COMMON. > > With the following change > 1. bus protect need

[PATCH v3 7/7] zram: writeback throttle

2018-11-26 Thread Minchan Kim
On small memory system, there are lots of write IO so if we use flash device as swap, there would be serious flash wearout. To overcome the problem, system developers need to design write limitation strategy to guarantee flash health for entire product life. This patch creates a new konb

[PATCH v3 3/7] zram: refactoring flags and writeback stuff

2018-11-26 Thread Minchan Kim
This patch does renaming some variables and restructuring some codes for better redability in writeback and zs_free_page. Signed-off-by: Minchan Kim --- drivers/block/zram/zram_drv.c | 105 +- drivers/block/zram/zram_drv.h | 8 +-- 2 files changed, 44

[PATCH v3 6/7] zram: add bd_stat statistics

2018-11-26 Thread Minchan Kim
bd_stat represents things happened in backing device. Currently, it supports bd_counts, bd_reads and bd_writes which are helpful to understand wearout of flash and memory saving. Signed-off-by: Minchan Kim --- Documentation/ABI/testing/sysfs-block-zram | 8 ++

[PATCH v3 5/7] zram: support idle/huge page writeback

2018-11-26 Thread Minchan Kim
This patch supports new feature "zram idle/huge page writeback". On zram-swap usecase, zram has usually many idle/huge swap pages. It's pointless to keep in memory(ie, zram). To solve the problem, this feature introduces idle/huge page writeback to backing device so the goal is to save more

[PATCH v3 2/7] zram: fix double free backing device

2018-11-26 Thread Minchan Kim
If blkdev_get fails, we shouldn't do blkdev_put. Otherwise, kernel emits below log. This patch fixes it. [ 31.073006] WARNING: CPU: 0 PID: 1893 at fs/block_dev.c:1828 blkdev_put+0x105/0x120 [ 31.075104] Modules linked in: [ 31.075898] CPU: 0 PID: 1893 Comm: swapoff Not tainted 4.19.0+ #453

[PATCH v3 4/7] zram: introduce ZRAM_IDLE flag

2018-11-26 Thread Minchan Kim
To support idle page writeback with upcoming patches, this patch introduces a new ZRAM_IDLE flag. Userspace can mark zram slots as "idle" via "echo all > /sys/block/zramX/idle" which marks every allocated zram slot as ZRAM_IDLE. User could see it by

[PATCH v3 1/7] zram: fix lockdep warning of free block handling

2018-11-26 Thread Minchan Kim
[ 254.519728] [ 254.520311] WARNING: inconsistent lock state [ 254.520898] 4.19.0+ #390 Not tainted [ 254.521387] [ 254.521732] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 254.521732] zram_verify/2095

[PATCH v3 0/7] zram idle page writeback

2018-11-26 Thread Minchan Kim
Inherently, swap device has many idle pages which are rare touched since it was allocated. It is never problem if we use storage device as swap. However, it's just waste for zram-swap. This patchset supports zram idle page writeback feature. * Admin can define what is idle page "no access since

Re: [snd_hda_intel] snd_hda_intel causes high CPU lockup and system instability if mic disabled in BIOS on Lenovo P50

2018-11-26 Thread Alexander Kappner
On Mon, 26 Nov 2018, Takashi Iwai wrote: On Mon, 26 Nov 2018 00:17:15 +0100, Alexander Kappner wrote: My Lenovo P50 laptop has a BIOS option to disable the microphone. When this option gets chosen, the snd_hda_intel driver causes high CPU load on a single kworker thread, spinning on

Re: [PATCH] fs: Make /proc/sys inodes be owned by global root.

2018-11-26 Thread Eric W. Biederman
Luis Chamberlain writes: > On Mon, Nov 26, 2018 at 06:26:07PM +0100, Radoslaw Burny wrote: >> Due to a recent commit (d151ddc00498 - fs: Update i_[ug]id_(read|write) >> to translate relative to s_user_ns), > > Recent? This is commit is from 2014 and present upstream since v4.8. > And the commit

RE: [PATCH 2/2] Drivers: hv: vmbus: offload the handling of channels to two workqueues

2018-11-26 Thread KY Srinivasan
> -Original Message- > From: Greg KH > Sent: Monday, November 26, 2018 11:35 AM > To: KY Srinivasan > Cc: linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; > o...@aepfle.de; a...@canonical.com; jasow...@redhat.com; Stephen > Hemminger ; Michael Kelley > ; vkuznets ; Haiyang

Re: [PATCH v2 01/11] clk: mediatek: add new clkmux register API

2018-11-26 Thread Nicolas Boichat
On Tue, Nov 27, 2018 at 11:43 AM Weiyi Lu wrote: > > From: Owen Chen > > On both MT8183 & MT6765, there add "set/clr" register for > each clkmux setting, and one update register to trigger value change. > It is designed to prevent read-modify-write racing issue. > The sw design need to add a new

Re: [PATCH 3/3] kvm: introduce manual dirty log reprotect

2018-11-26 Thread Junaid Shahid
On 11/26/2018 08:54 AM, Paolo Bonzini wrote: > There are two problems with KVM_GET_DIRTY_LOG. First, and less important, > it can take kvm->mmu_lock for an extended period of time. Second, its user > can actually see many false positives in some cases. The latter is due > to a benign race like

Re: [RFC PATCH] dt-bindings: opp: Extend qcom-opp bindings with properties needed for CPR

2018-11-26 Thread Rajendra Nayak
On 11/20/2018 9:44 PM, Niklas Cassel wrote: On Tue, Nov 20, 2018 at 09:42:05AM +0530, Rajendra Nayak wrote: On 11/9/2018 10:09 PM, Niklas Cassel wrote: On Mon, Nov 05, 2018 at 05:17:45PM -0600, Rob Herring wrote: On Mon, Oct 15, 2018 at 02:47:49PM +0200, Niklas Cassel wrote: Extend

[PATCH] tty: serial: 8250_mtk: always resume the device in probe.

2018-11-26 Thread Peter Shih
serial8250_register_8250_port calls uart_config_port, which calls config_port on the port before it tries to power on the port. So we need the port to be on before calling serial8250_register_8250_port. Change the code to always do a runtime resume in probe before registering port, and always do a

Re: [PATCH V2 0/5] PM / Domains: Allow performance state propagation

2018-11-26 Thread Rajendra Nayak
On 11/26/2018 1:39 PM, Viresh Kumar wrote: Hi, This series adds performance state propagation support in genpd core. The propagation happens from the sub-domains to their masters. More details can be found in the individual commit logs. This is tested on hikey960 by faking power domains in

Re: [driver-core PATCH v6 7/9] driver core: Attach devices on CPU local to device node

2018-11-26 Thread Dan Williams
On Thu, Nov 8, 2018 at 10:07 AM Alexander Duyck wrote: > > Call the asynchronous probe routines on a CPU local to the device node. By > doing this we should be able to improve our initialization time > significantly as we can avoid having to access the device from a remote > node which may

KASAN: use-after-free Read in kvm_write_guest_offset_cached

2018-11-26 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:442b8cea2477 Add linux-next specific files for 20181109 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=174d326d40 kernel config: https://syzkaller.appspot.com/x/.config?x=2f72bdb11df9fbe8

linux-next: Tree for Nov 27

2018-11-26 Thread Stephen Rothwell
Hi all, Changes since 20181126: The selinux tree gained a conflict against the vfs tree. Non-merge commits (relative to Linus' tree): 4747 4948 files changed, 246866 insertions(+), 147684 deletions(-) I have created

[PATCH v2 2/3] perf annotate: Create a annotate2 flag in struct symbol

2018-11-26 Thread Jin Yao
We often use the symbol__annotate2() to annotate a specified symbol. While annotating may take some time, so in order to avoid annotating the same symbol repeatedly, the patch creates a new flag to indicate the symbol has been annotated. Signed-off-by: Jin Yao --- tools/perf/util/annotate.c | 1

[PATCH v2 0/3] perf report/annotate: Support average IPC and IPC coverage for function

2018-11-26 Thread Jin Yao
Add supporting of displaying the average IPC and IPC coverage percentage per function. For example, $ perf record -g -b ... $ perf report -s symbol,ipc or perf report -s symbol,ipc --stdio Overhead Symbol IPC [IPC Coverage] 39.60% [.] __random

[PATCH v2 1/3] perf annotate: Compute average IPC and IPC coverage per symbol

2018-11-26 Thread Jin Yao
Add support to perf report annotate view or perf annotate --stdio2 to aggregate the IPC derived from timed LBRs per symbol. We compute the average IPC and the IPC coverage percentage. For example, $ perf annotate --stdio2 Percent IPC Cycle (Average IPC: 2.30, IPC Coverage: 54.8%)

[PATCH v2 3/3] perf report: Display average IPC and IPC coverage per symbol

2018-11-26 Thread Jin Yao
Support displaying the average IPC and IPC coverage for symbol in perf report TUI browser. We create a new sort-key 'ipc' for that. For example, $ perf record -g -b ... $ perf report -s symbol,ipc or perf report -s ipc Overhead Symbol IPC [IPC Coverage] 39.60%

Re: [PATCH v9 3/4] dt-bindings: pps: pps-gpio PPS ECHO implementation

2018-11-26 Thread tom burkart
Hi Rob, Quoting Rob Herring : On Thu, Nov 22, 2018 at 3:49 AM Tom Burkart wrote: This patch implements the device tree changes required for the pps echo functionality for pps-gpio, that sysfs claims is available already. This patch was originally written by Lukas Senger as part of a

Re: [PATCH] OPP: remove some duplicated includes

2018-11-26 Thread Viresh Kumar
On 26-11-18, 08:18, Yangtao Li wrote: > Some header files are included twice.It's unnecessary, > so just remove them. > > Signed-off-by: Yangtao Li > --- > drivers/opp/core.c | 2 -- > drivers/opp/cpu.c | 1 - > drivers/opp/debugfs.c | 2 -- > drivers/opp/of.c

Re: [PATCH] initramfs: clean old path before creating a hardlink

2018-11-26 Thread Li Zhijian
On 11/27/2018 07:34 AM, Andrew Morton wrote: On Fri, 16 Nov 2018 15:12:48 +0800 Li Zhijian wrote: Previously, sys_link() will fail due to the new path is already existed. this case ofen appears when we use a concated initrd, below is an sample: 1) prepare a basic rootfs, it contains a

Re: [PATCH V4 2/2] base/drivers/arch_topology: Default dmips-mhz if they are not set in DT

2018-11-26 Thread Viresh Kumar
On 26-11-18, 13:20, Daniel Lezcano wrote: > diff --git a/Documentation/devicetree/bindings/arm/cpu-capacity.txt > b/Documentation/devicetree/bindings/arm/cpu-capacity.txt > index 84262cd..f53a3c9 100644 > --- a/Documentation/devicetree/bindings/arm/cpu-capacity.txt > +++

Re: [PATCH v7 1/4] dt-bindings: pps: descriptor-based gpio, capture-clear addition

2018-11-26 Thread tom burkart
Hi Rob, Quoting Rob Herring : On Sat, Nov 17, 2018 at 6:35 PM tom burkart wrote: Quoting Rob Herring : > On Sat, Nov 17, 2018 at 4:35 AM tom burkart wrote: >> >> Quoting Rob Herring : >> >> > On Wed, Nov 14, 2018 at 11:54:29PM +1100, Tom Burkart wrote: >> >> This patch changes the

Re: [PATCH 2/2] perf report: Display average IPC and IPC coverage per symbol

2018-11-26 Thread Jin, Yao
On 11/26/2018 5:53 PM, Jiri Olsa wrote: On Mon, Nov 26, 2018 at 05:40:54PM +0800, Jin Yao wrote: SNIP diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index f96c005..94f62c8 100644 --- a/tools/perf/util/sort.c +++ b/tools/perf/util/sort.c @@ -13,6 +13,7 @@ #include

Re: [PATCH 2/2] perf report: Display average IPC and IPC coverage per symbol

2018-11-26 Thread Jin, Yao
On 11/26/2018 5:52 PM, Jiri Olsa wrote: On Mon, Nov 26, 2018 at 05:40:54PM +0800, Jin Yao wrote: Support displaying the average IPC and IPC coverage for symbol in perf report TUI browser. We create a new sort-key 'ipc' for that. For example, $ perf record -g -b ... $ perf report -s

Re: [PATCH RESEND v3 1/3] ptrace: pass type of a syscall-stop in ptrace_message

2018-11-26 Thread Dmitry V. Levin
On Tue, Nov 27, 2018 at 03:53:57AM +0100, Elvira Khabirova wrote: > On Mon, 26 Nov 2018 15:56:43 +0100, Oleg Nesterov wrote: > > On 11/25, Elvira Khabirova wrote: > > > > > > + * These values are stored in task->ptrace_message by > > > tracehook_report_syscall_* > > > + * to describe current

[PATCH v2 09/11] dt-bindings: soc: fix typo of MT8173 power dt-bindings

2018-11-26 Thread Weiyi Lu
fix incorrect IC name that will affect the MT8183 power dt-bindings Signed-off-by: Weiyi Lu --- include/dt-bindings/power/mt8173-power.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/dt-bindings/power/mt8173-power.h b/include/dt-bindings/power/mt8173-power.h

[PATCH v2 11/11] soc: mediatek: Add MT8183 scpsys support

2018-11-26 Thread Weiyi Lu
Add scpsys driver for MT8183 Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 227 +- 1 file changed, 226 insertions(+), 1 deletion(-) diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediatek/mtk-scpsys.c index 80be2e05e4e0..aac76c45a681

[PATCH v2 10/11] dt-bindings: soc: Add MT8183 power dt-bindings

2018-11-26 Thread Weiyi Lu
Add power dt-bindings for MT8183. Signed-off-by: Weiyi Lu --- .../bindings/soc/mediatek/scpsys.txt | 14 ++ include/dt-bindings/power/mt8183-power.h | 26 +++ 2 files changed, 40 insertions(+) create mode 100644 include/dt-bindings/power/mt8183-power.h

[PATCH v2 03/11] clk: mediatek: Disable tuner_en before change PLL rate

2018-11-26 Thread Weiyi Lu
From: Owen Chen PLLs with tuner_en bit, such as APLL1, need to disable tuner_en before apply new frequency settings, or the new frequency settings (pcw) will not be applied. The tuner_en bit will be disabled during changing PLL rate and be restored after new settings applied. Signed-off-by:

[PATCH v2 00/11] Mediatek MT8183 clock and scpsys support

2018-11-26 Thread Weiyi Lu
This series is based on v4.20-rc1 and most of changes are extracted from series below (clock/scpsys common changes for both MT8183 & MT6765) https://patchwork.kernel.org/patch/10528495/ (clock support of MT8183) https://patchwork.kernel.org/patch/10549891/ The whole series is composed of clock

[PATCH v2 08/11] clk: mediatek: Add MT8183 clock support

2018-11-26 Thread Weiyi Lu
Add MT8183 clock support, include topckgen, apmixedsys, infracfg, mcucfg and subsystem clocks. Signed-off-by: Weiyi Lu --- drivers/clk/mediatek/Kconfig | 75 ++ drivers/clk/mediatek/Makefile | 12 + drivers/clk/mediatek/clk-gate.h| 14 +

[PATCH v2 02/11] clk: mediatek: add new member to mtk_pll_data

2018-11-26 Thread Weiyi Lu
From: Owen Chen 1. pcwibits: The integer bits of pcw for plls is extend to 8 bits, add a variable to indicate this change and backward-compatible. 2. fmin: The pll freqency lower-bound is vary from 1GMhz to 1.5Ghz, add a variable to indicate platform-dependent. Signed-off-by: Owen Chen

[PATCH v2 05/11] dt-bindings: ARM: Mediatek: Document bindings for MT8183

2018-11-26 Thread Weiyi Lu
This patch adds the binding documentation for apmixedsys, audiosys, camsys, imgsys, infracfg, mcucfg, mfgcfg, mmsys, topckgen, vdecsys, vencsys and ipu for Mediatek MT8183. Signed-off-by: Weiyi Lu Reviewed-by: Rob Herring --- .../arm/mediatek/mediatek,apmixedsys.txt | 1 +

[PATCH v2 06/11] clk: mediatek: Add dt-bindings for MT8183 clocks

2018-11-26 Thread Weiyi Lu
Add MT8183 clock dt-bindings, include topckgen, apmixedsys, infracfg, mcucfg and subsystem clocks. Signed-off-by: Weiyi Lu Reviewed-by: Rob Herring --- include/dt-bindings/clock/mt8183-clk.h | 422 + 1 file changed, 422 insertions(+) create mode 100644

[PATCH v2 01/11] clk: mediatek: add new clkmux register API

2018-11-26 Thread Weiyi Lu
From: Owen Chen On both MT8183 & MT6765, there add "set/clr" register for each clkmux setting, and one update register to trigger value change. It is designed to prevent read-modify-write racing issue. The sw design need to add a new API to handle this hw change with a new mtk_clk_mux/mtk_mux

[PATCH v2 07/11] clk: mediatek: Add flags support for mtk_gate data

2018-11-26 Thread Weiyi Lu
On some Mediatek platforms, there are critical clocks of clock gate type. To register clock gate with flags CLK_IS_CRITICAL, we need to add the flags field in mtk_gate data and register APIs. Signed-off-by: Weiyi Lu --- drivers/clk/mediatek/clk-gate.c | 5 +++-- drivers/clk/mediatek/clk-gate.h

[PATCH v2 00/11] Mediatek MT8183 clock and scpsys support

2018-11-26 Thread Weiyi Lu
This series is based on v4.20-rc1 and most of changes are extracted from series below (clock/scpsys common changes for both MT8183 & MT6765) https://patchwork.kernel.org/patch/10528495/ (clock support of MT8183) https://patchwork.kernel.org/patch/10549891/ The whole series is composed of clock

[PATCH v2 04/11] soc: mediatek: add new flow for mtcmos power.

2018-11-26 Thread Weiyi Lu
From: Owen Chen Both MT8183 & MT6765 add more bus protect node than previous project, therefore we add two more register for setup bus protect, which reside at INFRA_CFG & SMI_COMMON. With the following change 1. bus protect need not only infracfg but smi_common registers involved to setup.

Re: [PATCH 2/2] perf report: Display average IPC and IPC coverage per symbol

2018-11-26 Thread Jin, Yao
On 11/26/2018 5:55 PM, Jiri Olsa wrote: On Mon, Nov 26, 2018 at 05:40:54PM +0800, Jin Yao wrote: SNIP diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index f96c005..94f62c8 100644 --- a/tools/perf/util/sort.c +++ b/tools/perf/util/sort.c @@ -13,6 +13,7 @@ #include

Re: [PATCH 3/3] soc: qcom: Add AOSS QMP genpd provider

2018-11-26 Thread Sai Prakash Ranjan
Hi Bjorn, On 11/12/2018 1:35 PM, Bjorn Andersson wrote: The AOSS QMP genpd provider implements control over power-related resources related to low-power state associated with the remoteprocs in the system as well as control over a set of clocks related to debug hardware in the SoC.

Re: [PATCH v2] panic: Avoid the extra noise dmesg

2018-11-26 Thread Feng Tang
Hi Andrew, On Mon, Nov 26, 2018 at 03:59:52PM -0800, Andrew Morton wrote: > On Thu, 8 Nov 2018 21:05:03 +0800 Feng Tang wrote: > > > Sometimes when debugging kernel panic, we saw many extra noisy error > > messages after the expected end: > > > > [ 35.743249] ---[ end Kernel panic - not

Re: [RFC PATCH RESEND v3 3/3] ptrace: add PTRACE_EVENT_SECCOMP support to PTRACE_GET_SYSCALL_INFO

2018-11-26 Thread Dmitry V. Levin
On Tue, Nov 27, 2018 at 04:07:32AM +0100, Elvira Khabirova wrote: > On Mon, 26 Nov 2018 15:35:24 +0100, Oleg Nesterov wrote: > > On 11/25, Elvira Khabirova wrote: > > > > > > Extend PTRACE_GET_SYSCALL_INFO to support PTRACE_EVENT_SECCOMP stops. > > > The information returned is the same as for

[PATCH 1/2] selftests: firmware: remove use of non-standard diff -Z option

2018-11-26 Thread Dan Rue
diff -Z is used to trim the trailing whitespace when comparing the loaded firmware file with the source firmware file. However, per the comment in the source code, -Z should not be necessary. In testing, the input and output files are identical. Additionally, -Z is not a standard option and is

Re: [PATCH] f2fs: read page index before freeing

2018-11-26 Thread Chao Yu
On 2018/11/27 8:22, PanBian wrote: > On Mon, Nov 26, 2018 at 07:07:08PM +0800, Chao Yu wrote: >> On 2018/11/26 18:28, PanBian wrote: >>> On Mon, Nov 26, 2018 at 05:13:53PM +0800, Chao Yu wrote: Hi Pan, On 2018/11/22 18:58, Pan Bian wrote: > The function truncate_node frees the

[PATCH 0/2] selftests: firmware: fw_filesystem fix for busybox

2018-11-26 Thread Dan Rue
Fix fw_filesystem.sh to run in an automated environment under busybox. After this change, fw_run_tests.sh still fails at some point in fw_fallback.sh, with error "usermode helper disabled so ignoring test". This is coming from fw_lib.sh:verify_reqs() because $HAS_FW_LOADER_USER_HELPER is set to

[PATCH 2/2] selftests: firmware: add CONFIG_FW_LOADER_USER_HELPER_FALLBACK to config

2018-11-26 Thread Dan Rue
CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y is required for fw_fallback.sh. Without it, fw_fallback.sh fails with 'usermode helper disabled so ignoring test'. Enable the config in selftest so that it gets built by default. Signed-off-by: Dan Rue --- tools/testing/selftests/firmware/config | 1 + 1

[PATCH -next] platform/x86: intel-ips: remove unnecessary checks in ips_debugfs_init

2018-11-26 Thread YueHaibing
As Greg KH explained in: https://lkml.org/lkml/2015/8/15/114 There no need to check the return value of debugfs_create_file/ debugfs_create_dir. This also fix static code checker warnings: drivers/platform/x86/intel_ips.c:1314 ips_debugfs_init() warn: passing zero to 'PTR_ERR'

Re: [RFC PATCH RESEND v3 3/3] ptrace: add PTRACE_EVENT_SECCOMP support to PTRACE_GET_SYSCALL_INFO

2018-11-26 Thread Elvira Khabirova
On Mon, 26 Nov 2018 15:35:24 +0100 Oleg Nesterov wrote: > On 11/25, Elvira Khabirova wrote: > > > > Extend PTRACE_GET_SYSCALL_INFO to support PTRACE_EVENT_SECCOMP stops. > > The information returned is the same as for syscall-enter-stops. > > Oh, this is not nice ;) there must be a better

RE: [PATCH 1/4] arm64: hyperv: Add core Hyper-V include files

2018-11-26 Thread KY Srinivasan
> -Original Message- > From: Greg KH > Sent: Monday, November 26, 2018 11:18 AM > To: KY Srinivasan > Cc: will.dea...@arm.com; catalin.mari...@armm.com; > mark.rutl...@arm.com; marc.zyng...@arm.com; linux-arm- > ker...@lists.infradead.org; linux-kernel@vger.kernel.org; >

[PATCH v7 0/3] Huawei laptops

2018-11-26 Thread Ayman Bagabas
This patch set is based on new audio LED triggers in branch topic/leds-trigger from git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git Changes from v6: * Use audio LED triggers patch set * Use KEY_CONFIG (XF86Tools) instead of KEY_PROG1. In Windows, the key is used to launch

[PATCH v7 2/3] x86: add support for Huawei WMI hotkeys.

2018-11-26 Thread Ayman Bagabas
This driver adds support for missing hotkeys on some Huawei laptops. Currently, only Huawei Matebook X and Matebook X Pro is supported. Signed-off-by: Ayman Bagabas --- drivers/platform/x86/Kconfig | 15 ++ drivers/platform/x86/Makefile | 1 + drivers/platform/x86/huawei-wmi.c | 247

[PATCH v7 1/3] ALSA: hda: fix front speakers on Huawei MBXP.

2018-11-26 Thread Ayman Bagabas
This patch solves bug 200501 'Only 2 of 4 speakers playing sound.' https://bugzilla.kernel.org/show_bug.cgi?id=200501 It enables the front speakers on Huawei Matebook X Pro laptops. These laptops come with Dolby Atmos sound system and these pins configuration enables the front speakers.

[PATCH v7 3/3] ALSA: hda: add support for Huawei WMI micmute LED

2018-11-26 Thread Ayman Bagabas
Some of Huawei laptops come with a LED in the micmute key. This patch enables the use of micmute LED for these devices: 1. Matebook X (19e5:3200), (19e5:3201) 2. Matebook X Pro (19e5:3204) Signed-off-by: Ayman Bagabas --- sound/pci/hda/patch_realtek.c | 6 +- 1 file changed, 5

  1   2   3   4   5   6   7   8   9   10   >