Re: [PATCHv6 3/3] mfd: intel_soc_pmic_bxtwc: add support for USB Type-C PHY on WhiskeyCove

2016-08-30 Thread Lee Jones
On Tue, 30 Aug 2016, Lee Jones wrote: > On Mon, 29 Aug 2016, Heikki Krogerus wrote: > > > Intel WhiskeyCove PMIC has also a USB Type-C PHY, so let's > > create a device for it. > > > > Signed-off-by: Heikki Krogerus > > Cc: Lee Jones > > --- > > drivers/mfd/intel_soc_pmic_bxtwc.c | 11 +++

[PATCH] Bpf: allow access into map value arrays

2016-08-30 Thread Josef Bacik
Suppose you have a map array value that is somethihng like this struct foo { unsigned iter; int array[SOME_CONSTANT]; }; You can easily insert this into an array, but you cannot modify the contents of foo->array[] after the fact. This is because we have no way to verify we won't

Re: [PATCH 0/4] Bluetooth: hci_uart: various fixes

2016-08-30 Thread Boris Brezillon
On Fri, 19 Aug 2016 09:38:43 +0200 Boris Brezillon wrote: > Hi, > > We recently faced some problems when using an BT uart chip interfaced > through the H5 proto (rtk_h5). Here are the logs of the 2 different > issues we had when closing the line discipline (actually, restoring > the previous one

Re: [RFC PATCH v2 04/20] x86: Secure Memory Encryption (SME) support

2016-08-30 Thread Tom Lendacky
On 08/25/2016 08:04 AM, Thomas Gleixner wrote: > On Mon, 22 Aug 2016, Tom Lendacky wrote: > >> Provide support for Secure Memory Encryption (SME). This initial support >> defines the memory encryption mask as a variable for quick access and an >> accessor for retrieving the number of physical addr

[PATCH v4] ARM: dts: imx6ul-geam: Add Engicam IMX6UL GEA M6UL initial support

2016-08-30 Thread Jagan Teki
From: Michael Trimarchi IMX6UL GEA M6UL modules are system on module solutions manufactured by Engicam with following characteristics: Processor Freescale i.MX 6UltraLite MCIMX6G2, 528 MHz RAM 128MB, 16-bit DDR3 NAND SLC256MB Power supplySingle 5V MAX LCD RES up

[PATCH V2] sched/fair: Fix that tasks are not constrained by cfs_b->quota on hotplug core, when hotplug core is offline and then online.

2016-08-30 Thread Jeehong Kim
In case that CONFIG_HOTPLUG_CPU and CONFIG_CFS_BANDWIDTH is turned on and tasks in bandwidth controlled task group run on hotplug core, the tasks are not controlled by cfs_b->quota when hotplug core is offline and then online. The remaining tasks in task group consume all of cfs_b->quota on other c

Re: [PATCHv6 1/3] usb: USB Type-C connector class

2016-08-30 Thread Heikki Krogerus
Hi, On Tue, Aug 30, 2016 at 02:49:50PM +0300, Heikki Krogerus wrote: > On Tue, Aug 30, 2016 at 01:16:46PM +0200, Oliver Neukum wrote: > > Error reporting does not require a synchronous operation. Reporting > > it in the next read() or write() and making it pollable is perfectly > > viable. It just

[PATCH V2] sched/fair: Fix that tasks are not constrained by cfs_b->quota on hotplug core, when hotplug core is offline and then online.

2016-08-30 Thread Jeehong Kim
In case that CONFIG_HOTPLUG_CPU and CONFIG_CFS_BANDWIDTH is turned on and tasks in bandwidth controlled task group run on hotplug core, the tasks are not controlled by cfs_b->quota when hotplug core is offline and then online. The remaining tasks in task group consume all of cfs_b->quota on other c

[PATCH V2 3/5] firmware: ti_sci: Add support for Device control

2016-08-30 Thread Nishanth Menon
Texas Instrument's System Control Interface (TI-SCI) Message Protocol is used in Texas Instrument's System on Chip (SoC) such as those in keystone family K2G SoC to communicate between various compute processors with a central system controller entity. TI-SCI message protocol provides support for

Re: [PATCH 1/2] clk: mvebu: set flags in CP110 gate clock

2016-08-30 Thread Thomas Petazzoni
Hello, On Tue, 23 Aug 2016 08:26:48 +0200, Marcin Wojtas wrote: > diff --git a/drivers/clk/mvebu/cp110-system-controller.c > b/drivers/clk/mvebu/cp110-system-controller.c > index 7fa42d6..0835e1d 100644 > --- a/drivers/clk/mvebu/cp110-system-controller.c > +++ b/drivers/clk/mvebu/cp110-system-co

[PATCH V2 4/5] firmware: ti_sci: Add support for Clock control

2016-08-30 Thread Nishanth Menon
Texas Instrument's System Control Interface (TI-SCI) Message Protocol is used in Texas Instrument's System on Chip (SoC) such as those in keystone family K2G SoC to communicate between various compute processors with a central system controller entity. TI-SCI message protocol provides support for

Re: NULL-ptr deref in kvm_arch_vcpu_ioctl under AMD CPUs

2016-08-30 Thread Dmitry Vyukov
On Mon, Aug 29, 2016 at 2:02 PM, Paolo Bonzini wrote: > > On 19/08/2016 02:16, Dmitry Vyukov wrote: >> > > This seems non-exploitable due to mmap_min_addr, so I guess it should >> > > be treated just as a regular bug >> > >> > Probably fixed by commit 4c5ea0a9cd02 ("locking/static_key: Fix >> > co

[PATCH V2 1/5] Documentation: Add support for TI System Control Interface (TI-SCI) protocol

2016-08-30 Thread Nishanth Menon
Texas Instrument's System Control Interface (TI-SCI) Message Protocol is used in Texas Instrument's System on Chip (SoC) such as those in newer SoCs in the keystone processor family starting with K2G. This message protocol is used to communicate between various compute or processing entities (such

[PATCH V2 5/5] firmware: ti_sci: Add support for reboot core service

2016-08-30 Thread Nishanth Menon
Since system controller now has control over SoC power management, it needs to be explicitly requested to reboot the SoC. Add support for it. In some systems however, SoC needs to toggle a GPIO or send event to an external entity (like a PMIC) for a system reboot to take place. To facilitate that,

[PATCH V2 0/5] firmware: Add support for TI System Control Interface (TI-SCI) protocol driver

2016-08-30 Thread Nishanth Menon
Hi, Thanks for the reviews on the patches, here is v2 of the series. Texas Instruments' Keystone generation System on Chips (SoC) starting with 66AK2G02[1], now include a dedicated SoC System Control entity called PMMC(Power Management Micro Controller) in line with ARM architecture recommendatio

[PATCH V2 2/5] firmware: Add basic support for TI System Control Interface (TI-SCI) protocol

2016-08-30 Thread Nishanth Menon
Texas Instrument's System Control Interface (TI-SCI) Message Protocol is used in Texas Instrument's System on Chip (SoC) such as those in keystone family K2G SoC to communicate between various compute processors with a central system controller entity. TI-SCI message protocol provides support for

Re: Kernel Freeze with American Megatrends BIOS

2016-08-30 Thread Bjorn Helgaas
On Tue, Aug 30, 2016 at 12:08:57PM +0200, Roland Singer wrote: > Thanks for pointing it out. > > Yeah that's right. The system will hang randomly a few minutes later, > because some certain actions in the graphical user session will trigger > the freeze. > > I had a look at the function body of p

[PATCH v3] mm/usercopy: get rid of CONFIG_DEBUG_STRICT_USER_COPY_CHECKS

2016-08-30 Thread Josh Poimboeuf
There are three usercopy warnings which are currently being silenced for gcc 4.6 and newer: 1) "copy_from_user() buffer size is too small" compile warning/error This is a static warning which happens when object size and copy size are both const, and copy size > object size. I didn't see a

Re: [RFC][PATCH] Fix a race between rwsem and the scheduler

2016-08-30 Thread Oleg Nesterov
On 08/30, Peter Zijlstra wrote: > > /* >* Ensure we load p->on_rq _after_ p->state, otherwise it would >* be possible to, falsely, observe p->on_rq == 0 and get stuck >* in smp_cond_load_acquire() below. >* >* sched_ttwu_pending() try_to

Re: [RFC][PATCH] Fix a race between rwsem and the scheduler

2016-08-30 Thread Oleg Nesterov
On 08/30, Balbir Singh wrote: > > The origin of the issue I've seen seems to be related to > rwsem spin lock stealing. Basically I see the system deadlock'd in the > following state > > I have a system with multiple threads and > > Most of the threads are stuck doing > > [67272.593915] --- inter

Re: [PATCH] livepatch: add load/unload hooks to objects

2016-08-30 Thread Christopher Arges
On Tue, Aug 30, 2016 at 11:41:28AM +0200, Jiri Kosina wrote: > On Mon, 29 Aug 2016, Christopher Arges wrote: > > > Another example is CVE-2016-2117. Here we need to unset NETIF_F_SG on a > > particular device. If the device is already loaded we need a way to > > fixup hw_features on an already a

Re: [PATCH] drm/sun4i: Clear encoder->bridge if a bridge is not found

2016-08-30 Thread Maxime Ripard
Hi, On Tue, Aug 30, 2016 at 08:22:23PM +0800, Chen-Yu Tsai wrote: > The KMS helpers (drm_atomic_helper_check_modeset/mode_fixup) pass > encoder->bridge directly to drm_bridge_mode_fixup, which expects a > valid pointer, or NULL (in which case it just returns). > > Clear encoder->bridge if a bridg

Re: [PATCH v3] Added perf functionality to mmdc driver

2016-08-30 Thread Mark Rutland
Hi, On Tue, Aug 30, 2016 at 07:43:29PM +0800, Shawn Guo wrote: > On Mon, Aug 29, 2016 at 11:06:44AM -0500, Zhi Li wrote: > > On Wed, Aug 17, 2016 at 2:42 PM, Zhengyu Shen wrote: > > > MMDC is a multi-mode DDR controller that supports DDR3/DDR3L x16/x32/x64 > > > and LPDDR2 two channel x16/x32 mem

Re: [PATCH] drm/sun4i: rgb: add missing calls to drm_panel_{prepare,unprepare}

2016-08-30 Thread Maxime Ripard
Hi, On Tue, Aug 30, 2016 at 04:55:00PM +1000, Jonathan Liu wrote: > If the enable-gpios property of a simple panel in device tree is set, > the GPIO is not toggled on/off because of missing calls to > drm_panel_prepare and drm_panel_unprepare. > > Signed-off-by: Jonathan Liu This was not applyi

Re: [PATCH v2 2/2] vfio: add virtio pci quirk

2016-08-30 Thread Alex Williamson
On Tue, 30 Aug 2016 08:20:38 +0300 "Michael S. Tsirkin" wrote: > On Mon, Aug 29, 2016 at 10:53:04PM -0600, Alex Williamson wrote: > > On Mon, 29 Aug 2016 21:52:20 -0600 > > Alex Williamson wrote: > > > > > On Mon, 29 Aug 2016 21:23:25 -0600 > > > Alex Williamson wrote: > > > > > > > On Tu

Re: [PATCH v5 2/6] mm/cma: introduce new zone, ZONE_CMA

2016-08-30 Thread Aneesh Kumar K.V
"Aneesh Kumar K.V" writes: > > >> static inline void check_highest_zone(enum zone_type k) >> { >> -if (k > policy_zone && k != ZONE_MOVABLE) >> +if (k > policy_zone && k != ZONE_MOVABLE && !is_zone_cma_idx(k)) >> policy_zone = k; >> } >> > > > Should we apply policy t

Re: [PATCH v2] drm/nouveau/gr: mark gm107_grctx_generate_tpcid() static

2016-08-30 Thread Arnd Bergmann
On Tuesday 30 August 2016, Baoyou Xie wrote: > On 30 August 2016 at 00:01, Sean Paul wrote: > > > On Mon, Aug 29, 2016 at 9:02 AM, Baoyou Xie wrote: > > > We get 1 warning when build kernel with W=1: > > > drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxgm107.c:937:1: warning: no > > previous prototyp

Re: [PATCH v8 01/18] remoteproc: st_slim_rproc: add a slimcore rproc driver

2016-08-30 Thread Lee Jones
On Fri, 26 Aug 2016, Peter Griffin wrote: > slim core is used as a basis for many IPs in the STi > chipsets such as fdma and demux. To avoid duplicating > the elf loading code in each device driver a slim > rproc driver has been created. > > This driver is designed to be used by other device driv

[PATCH v5 1/5] VPU: mediatek: Add mdp support

2016-08-30 Thread Minghsiu Tsai
VPU driver add mdp support Signed-off-by: Minghsiu Tsai --- drivers/media/platform/mtk-vpu/mtk_vpu.h |5 + 1 file changed, 5 insertions(+) diff --git a/drivers/media/platform/mtk-vpu/mtk_vpu.h b/drivers/media/platform/mtk-vpu/mtk_vpu.h index f457479..291ae46 100644 --- a/drivers/media/

[PATCH v5 5/5] media: mtk-mdp: support pixelformat V4L2_PIX_FMT_MT21C

2016-08-30 Thread Minghsiu Tsai
Add V4L2_PIX_FMT_MT21C in format list. Signed-off-by: Minghsiu Tsai --- drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c |8 drivers/media/platform/mtk-mdp/mtk_mdp_regs.c |4 2 files changed, 12 insertions(+) diff --git a/drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c b/driver

[PATCH v5 2/5] dt-bindings: Add a binding for Mediatek MDP

2016-08-30 Thread Minghsiu Tsai
Add a DT binding documentation of MDP for the MT8173 SoC from Mediatek Signed-off-by: Minghsiu Tsai Acked-by: Rob Herring --- .../devicetree/bindings/media/mediatek-mdp.txt | 109 1 file changed, 109 insertions(+) create mode 100644 Documentation/devicetree/bindings/m

[PATCH 1/2] ramoops: move spin_lock_init after kmalloc error checking

2016-08-30 Thread Geliang Tang
If cxt->pstore.buf allocated failed, no need to initialize cxt->pstore.buf_lock. So this patch moves spin_lock_init() after the error checking. Signed-off-by: Geliang Tang --- fs/pstore/ram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c in

[PATCH v5 0/5] Add MT8173 MDP Driver

2016-08-30 Thread Minghsiu Tsai
Changes in v5: - Add ack in the comment of dts patch - Fix s/g_selection() - Separate format V4L2_PIX_FMT_MT21C into new patch Changes in v4: - Add "depends on HAS_DMA" in Kconfig. - Fix s/g_selection() - Replace struct v4l2_crop with u32 and struct v4l2_rect - Remove VB2_USERPTR - Move mutex l

[PATCH] iio: adc: at91: Add support for Touchscreen Switches Closure Time

2016-08-30 Thread Nicolas Ferre
On newer components compatible with the at91sam9x5, the Touchscreen Switches Closure Time or TSSCTIM value of the Touchscreen Mode Register is not filled at all. On some hardware, having no time indicated for it may lead to incoherent values and jitter. We fix this time to 10us as it is usually dif

[PATCH v5 3/5] media: Add Mediatek MDP Driver

2016-08-30 Thread Minghsiu Tsai
Add MDP driver for MT8173 Signed-off-by: Minghsiu Tsai --- drivers/media/platform/Kconfig| 17 + drivers/media/platform/Makefile |2 + drivers/media/platform/mtk-mdp/Makefile |9 + drivers/media/platform/mtk-mdp/mtk_mdp_comp.c | 159 drivers/me

[PATCH 2/2] ramoops: use buffer_size() and buffer_start()

2016-08-30 Thread Geliang Tang
Since buffer_size() and buffer_start() have been defined in ram_core.c, use them instead of open-coding. Signed-off-by: Geliang Tang --- fs/pstore/ram_core.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/pstore/ram_core.c b/fs/pstore/ram_core.c index 76c3f80..

[PATCH v5 4/5] arm64: dts: mediatek: Add MDP for MT8173

2016-08-30 Thread Minghsiu Tsai
Add MDP node for MT8173 Signed-off-by: Minghsiu Tsai --- arch/arm64/boot/dts/mediatek/mt8173.dtsi | 84 ++ 1 file changed, 84 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi index 10f638f..cd93228 1006

Re: [PATCH v3] ARM: dts: imx6ul-geam: Add Engicam IMX6UL GEA M6UL initial support

2016-08-30 Thread Shawn Guo
On Tue, Aug 30, 2016 at 02:43:31PM +0530, Jagan Teki wrote: > +&lcdif { > + display = <&display0>; > + status = "okay"; > + > + display0: display { > + bits-per-pixel = <16>; > + bus-width = <18>; > + > + display-timings { > + n

[PATCH] drm/sun4i: Clear encoder->bridge if a bridge is not found

2016-08-30 Thread Chen-Yu Tsai
The KMS helpers (drm_atomic_helper_check_modeset/mode_fixup) pass encoder->bridge directly to drm_bridge_mode_fixup, which expects a valid pointer, or NULL (in which case it just returns). Clear encoder->bridge if a bridge is not found, instead of keeping the ERR_PTR value. Since other drm_bridge

Re: [PATCH v2] arm64: KVM: Save four instructions in __guest_enter/exit()

2016-08-30 Thread Shanker Donthineni
Hi Marc, On 08/30/2016 05:54 AM, Marc Zyngier wrote: On 30/08/16 10:55, Christoffer Dall wrote: On Mon, Aug 29, 2016 at 10:51:14PM -0500, Shanker Donthineni wrote: We are doing an unnecessary stack push/pop operation when restoring the guest registers x0-x18 in __guest_enter(). This patch sav

Re: [RFC][PATCH] Fix a race between rwsem and the scheduler

2016-08-30 Thread Peter Zijlstra
On Tue, Aug 30, 2016 at 06:49:37PM +1000, Balbir Singh wrote: > > > The origin of the issue I've seen seems to be related to > rwsem spin lock stealing. Basically I see the system deadlock'd in the > following state As Nick says (good to see you're back Nick!), this is unrelated to rwsems. This

Re: [PATCH 3/3] PCI: Xilinx NWL PCIe: Fix Error for multi function device for legacy interrupts.

2016-08-30 Thread Marc Zyngier
Hi Bharat, On 30/08/16 11:39, Bharat Kumar Gogada wrote: > PCIe legacy interrupts start at 1, not at 0. > When testing with multi function device "error: hwirq 0x4 is too large for > dummy" error comes. > So adding one addtional interrupt when creating irq domain. > > Signed-off-by: Bharat Kumar

Re: [GIT PULL] extcon next for 4.8

2016-08-30 Thread Chanwoo Choi
Dear Greg, On 2016년 08월 30일 21:08, Greg KH wrote: > On Tue, Jul 05, 2016 at 08:04:08PM +0900, Chanwoo Choi wrote: >> Dear Greg, >> >> This is extcon-next pull request for v4.8. I add detailed description of >> this pull request on below. Please pull extcon with following updates. >> >> Best Regard

Re: [PATCH] microblaze: move xlnx,compound to default bus matching

2016-08-30 Thread Rob Herring
On Tue, Aug 30, 2016 at 7:10 AM, Michal Simek wrote: > Hi Rob, > > On 30.8.2016 01:45, Rob Herring wrote: >> Microblaze bus probing is partially broken because "xlnx,compound" is >> missing from the default bus probe. Add it to the default and remove from >> the Microblaze arch code. > > xlnx,comp

[PATCH 2/3] PCI: Xilinx NWL PCIe: Enabling all MSI interrupts using MSI mask.

2016-08-30 Thread Bharat Kumar Gogada
The current mask enables and allows only one MSI interrupt on each MSI line. This change, enables all MSI interrupts, which will also support End Points with multi MSI support. Signed-off-by: Bharat Kumar Gogada --- drivers/pci/host/pcie-xilinx-nwl.c | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [GIT PULL] phy: for 4.8 -rc

2016-08-30 Thread Greg KH
On Fri, Aug 19, 2016 at 06:51:51PM +0530, Kishon Vijay Abraham I wrote: > Hi Greg, > > Please find the pull request for this -rc cycle below. > It has fixes to get host-only mode working in sun4i, fixes a compilation > error (failed to catch this earlier because of missing COMPILE_TEST) and > othe

Re: [PATCH] microblaze: move xlnx,compound to default bus matching

2016-08-30 Thread Michal Simek
Hi Rob, On 30.8.2016 01:45, Rob Herring wrote: > Microblaze bus probing is partially broken because "xlnx,compound" is > missing from the default bus probe. Add it to the default and remove from > the Microblaze arch code. xlnx,compound is not used for ages. I see see dts files for MB in the tree

Re: [GIT PULL] extcon next for 4.8

2016-08-30 Thread Greg KH
On Tue, Jul 05, 2016 at 08:04:08PM +0900, Chanwoo Choi wrote: > Dear Greg, > > This is extcon-next pull request for v4.8. I add detailed description of > this pull request on below. Please pull extcon with following updates. > > Best Regards, > Chanwoo Choi > > The following changes since commit

Re: [PATCH 07/34] mm, vmscan: make kswapd reclaim in terms of nodes

2016-08-30 Thread Mel Gorman
On Mon, Aug 29, 2016 at 03:08:44PM +0530, Srikar Dronamraju wrote: > > Patch "mm: vmscan: Begin reclaiming pages on a per-node basis" started > > thinking of reclaim in terms of nodes but kswapd is still zone-centric. This > > patch gets rid of many of the node-based versus zone-based decisions. >

Re: [PATCH V4] leds: trigger: Introduce an USB port trigger

2016-08-30 Thread Greg KH
On Fri, Aug 26, 2016 at 05:38:05PM +0200, Rafał Miłecki wrote: > On 25 August 2016 at 14:49, Greg KH wrote: > > On Thu, Aug 25, 2016 at 10:03:52AM +0200, Rafał Miłecki wrote: > >> +static void usbport_trig_activate(struct led_classdev *led_cdev) > >> +{ > >> + struct usbport_trig_data *usbport

Re: [PATCH 1/4] usb: host: xhci: Move the xhci quirks checking to the right place

2016-08-30 Thread Baolin Wang
Hi Mathias, On 18 August 2016 at 15:17, Felipe Balbi wrote: > > Hi, > > Baolin Wang writes: >> It will reset the xhci quirks in xhci_gen_setup() function when xhci try to >> add one hcd, thus we need to move the XHCI_LPM_SUPPORT quirk checking after >> adding hcd. >> >> Signed-off-by: Baolin Wan

Re: [PATCH v4 0/3] *** Latency histograms - IRQSOFF,PREEMPTOFF ***

2016-08-30 Thread Masami Hiramatsu
2016-08-30 20:39 GMT+09:00 Daniel Wagner : > Hi Binoy, > > On 08/30/2016 12:28 PM, Binoy Jayan wrote: >> >> Examples of triggers: >> echo 'hist:key=latency.log2:val=hitcount:sort=latency' > >> /sys/kernel/debug/tracing/events/latency/latency_preempt/trigger >> echo 'hist:key=cpu,latency:val=hitcoun

Re: [PATCH][v8] PM / hibernate: Verify the consistent of e820 memory map by md5 value

2016-08-30 Thread Rafael J. Wysocki
On Monday, August 29, 2016 05:13:34 PM Pavel Machek wrote: > On Mon 2016-08-29 15:41:34, Rafael J. Wysocki wrote: > > On Mon, Aug 29, 2016 at 6:59 AM, Borislav Petkov wrote: > > > On Mon, Aug 29, 2016 at 12:35:40AM +0800, Chen Yu wrote: > > >> On some platforms, there is occasional panic triggered

Re: [RFC][PATCH -v2 4/4] locking/mutex: Add lock handoff to avoid starvation

2016-08-30 Thread Peter Zijlstra
On Mon, Aug 29, 2016 at 05:41:09PM +0200, Peter Zijlstra wrote: > On Fri, Aug 26, 2016 at 07:40:34PM -0400, Waiman Long wrote: > > On 08/26/2016 11:18 AM, Peter Zijlstra wrote: > > > >Still need to look at adding spinning to the handoff case. > > >Also need to look at writing (much) better changel

[PATCH] Subject: [PATCH] SCHEDULER: remove unnecessary code of sched_init()

2016-08-30 Thread cheng chao
init_idle will set current->sched_class = &idle_sched_class Signed-off-by: cheng chao --- kernel/sched/core.c | 5 - 1 file changed, 5 deletions(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 556cb07..2f7c08d 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -75

Re: [PATCH v3] time: alarmtimer: Add the trcepoints for alarmtimer

2016-08-30 Thread Baolin Wang
Hi, On 22 August 2016 at 12:23, Baolin Wang wrote: > For system debugging, we usually want to know who sets one alarm timer, the > time of the timer, when the timer started and fired and so on. Thus adding > tracepoints can help us trace the alarmtimer information. > > For example, when we debug

Re: [PATCHv6 1/3] usb: USB Type-C connector class

2016-08-30 Thread Heikki Krogerus
On Tue, Aug 30, 2016 at 01:16:46PM +0200, Oliver Neukum wrote: > On Tue, 2016-08-30 at 13:04 +0300, Heikki Krogerus wrote: > > On Tue, Aug 30, 2016 at 11:32:01AM +0200, Oliver Neukum wrote: > > Hi, > > > > On Mon, 2016-08-29 at 15:36 +0300, Heikki Krogerus wrote: > > > > +What: /sys/clas

Re: [PATCH v4 2/3] tracing: Add trace_irqsoff tracepoints

2016-08-30 Thread Binoy Jayan
Hi Daniel, On 30 August 2016 at 17:00, Daniel Wagner wrote: > Hi Binoy, > > > As Masami has pointed out, the prefix trace_ should not be used. Also having > trace_latency_ and latency_trace_ is kind of confusing. What about > {start|stop}_latency_timing()? It would match the existing > {start|sto

[PATCH] nfsd: more robust allocation failure handling in nfsd_reply_cache_init

2016-08-30 Thread Jeff Layton
Currently, we try to allocate the cache as a single, large chunk, which can fail if no big chunks of memory are available. We _do_ try to size it according to the amount of memory in the box, but if the server is started well after boot time, then the allocation can fail due to memory fragmentation

Re: [PATCH][v8] PM / hibernate: Verify the consistent of e820 memory map by md5 value

2016-08-30 Thread Rafael J. Wysocki
On Tuesday, August 30, 2016 04:35:05 PM joeyli wrote: > On Mon, Aug 29, 2016 at 03:41:23PM +0200, Borislav Petkov wrote: > > On Mon, Aug 29, 2016 at 09:15:00AM +0200, Pavel Machek wrote: > > > Sounds about as easy as hot unplugging arbitrary memory address. IOW > > > "not easy". > > > > Regardless

Re: [PATCH][v8] PM / hibernate: Verify the consistent of e820 memory map by md5 value

2016-08-30 Thread Rafael J. Wysocki
On Monday, August 29, 2016 03:41:23 PM Borislav Petkov wrote: > On Mon, Aug 29, 2016 at 09:15:00AM +0200, Pavel Machek wrote: > > Sounds about as easy as hot unplugging arbitrary memory address. IOW > > "not easy". > > Regardless, forcibly panicking the system more is still the wrong > approach IM

Re: [PATCH v3] Added perf functionality to mmdc driver

2016-08-30 Thread Shawn Guo
On Mon, Aug 29, 2016 at 11:06:44AM -0500, Zhi Li wrote: > On Wed, Aug 17, 2016 at 2:42 PM, Zhengyu Shen wrote: > > MMDC is a multi-mode DDR controller that supports DDR3/DDR3L x16/x32/x64 > > and LPDDR2 two channel x16/x32 memory types. MMDC is configurable, high > > performance, and optimized. MM

Re: [PATCH v4 0/3] *** Latency histograms - IRQSOFF,PREEMPTOFF ***

2016-08-30 Thread Daniel Wagner
Hi Binoy, On 08/30/2016 12:28 PM, Binoy Jayan wrote: Examples of triggers: echo 'hist:key=latency.log2:val=hitcount:sort=latency' > /sys/kernel/debug/tracing/events/latency/latency_preempt/trigger echo 'hist:key=cpu,latency:val=hitcount:sort=latency if cpu==1' > /sys/kernel/debug/tracing/event

Re: [PATCH 2/4] mm: mlock: avoid increase mm->locked_vm on mlock() when already mlock2(,MLOCK_ONFAULT)

2016-08-30 Thread Kirill A. Shutemov
On Tue, Aug 30, 2016 at 06:59:39PM +0800, wei.guo.si...@gmail.com wrote: > From: Simon Guo > > When one vma was with flag VM_LOCKED|VM_LOCKONFAULT (by invoking > mlock2(,MLOCK_ONFAULT)), it can again be populated with mlock() with > VM_LOCKED flag only. > > There is a hole in mlock_fixup() which

Re: [PATCH 1/4] mm: mlock: check against vma for actual mlock() size

2016-08-30 Thread Kirill A. Shutemov
On Tue, Aug 30, 2016 at 06:59:38PM +0800, wei.guo.si...@gmail.com wrote: > From: Simon Guo > > In do_mlock(), the check against locked memory limitation > has a hole which will fail following cases at step 3): > 1) User has a memory chunk from addressA with 50k, and user > mem lock rlimit is 64k.

Re: [PATCH v4 2/3] tracing: Add trace_irqsoff tracepoints

2016-08-30 Thread Daniel Wagner
Hi Binoy, On 08/30/2016 12:28 PM, Binoy Jayan wrote: +static inline void trace_latency_preempt_mark_ts(enum latency_type ltype) +{ + this_cpu_write(lat_ts[ltype], (cycle_t) trace_clock_local()); +} + +static inline void latency_trace(enum latency_type type) +{ + trace_latency_preempt

Re: [PATCH 2/6] oprofile/x86: add regs->ip to oprofile trace

2016-08-30 Thread Robert Richter
On 24.08.16 11:50:15, Josh Poimboeuf wrote: > dump_trace() doesn't add the interrupted instruction's address to the > trace, so add it manually. This makes the profile more useful, and also > makes it more consistent with what perf profiling does. > > Cc: Robert Richter > Signed-off-by: Josh Poi

Re: [PATCH 2/2] drivers/perf: arm_pmu: Fix NULL pointer dereference during probe

2016-08-30 Thread Will Deacon
On Sat, Aug 27, 2016 at 04:19:50PM +, Stefan Wahren wrote: > Patch 7f1d642fbb5c ("drivers/perf: arm-pmu: Fix handling of SPI lacking > interrupt-affinity property") unintended also fixes perf_event support > for bcm2835 which doesn't have PMU interrupts. Unfortunately this change > introduce a

[PATCH v2] scsi: move function declarations to scsi_priv.h

2016-08-30 Thread Baoyou Xie
We get 2 warnings about global functions without a declaration in the scsi driver when building with W=1: drivers/scsi/scsi_lib.c:467:6: warning: no previous prototype for 'scsi_requeue_run_queue' [-Wmissing-prototypes] drivers/scsi/scsi_lib.c:2609:6: warning: no previous prototype for 'scsi_evt_

Re: [PATCH] generic: Add the exception case checking routine for ppi interrupt

2016-08-30 Thread Mark Rutland
On Tue, Aug 30, 2016 at 12:07:36PM +0100, Marc Zyngier wrote: > +Mark > On 30/08/16 11:35, majun (F) wrote: > > 在 2016/8/30 16:50, Marc Zyngier 写道: > >> On 30/08/16 05:17, MaJun wrote: > >>> From: Ma Jun > >>> > >>> During system booting, if the interrupt which has no action registered > >>> is tr

RE: [PATCH] PCI: Xilinx NWL PCIe: Updating device tree documentation with prefetchable memory space

2016-08-30 Thread Bharat Kumar Gogada
> Subject: Re: [PATCH] PCI: Xilinx NWL PCIe: Updating device tree documentation > with prefetchable memory space > > On Tue, Aug 09, 2016 at 07:30:09PM +0530, Bharat Kumar Gogada wrote: > > Updating device tree documentation with prefetchable memory sapce. > > Configuration space shifted to 64-bit

Re: [PATCH] printk/nmi: avoid direct printk()-s from __printk_nmi_flush()

2016-08-30 Thread Petr Mladek
On Tue 2016-08-30 18:39:18, Sergey Senozhatsky wrote: > On (08/30/16 11:04), Petr Mladek wrote: > > On Tue 2016-08-30 16:58:34, Sergey Senozhatsky wrote: > > > Petr, > > > one more question. Not related to the patch, but still related to NMI. > > > > > > can NMI nest? > > > > AFAIK, they cannot.

Re: [PATCHv6 1/3] usb: USB Type-C connector class

2016-08-30 Thread Oliver Neukum
On Tue, 2016-08-30 at 13:04 +0300, Heikki Krogerus wrote: > On Tue, Aug 30, 2016 at 11:32:01AM +0200, Oliver Neukum wrote: Hi, > > On Mon, 2016-08-29 at 15:36 +0300, Heikki Krogerus wrote: > > > +What: /sys/class/typec//current_data_role > > > +Date: June 2016 > > > +Contact:

Re: [PATCH] oom: warn if we go OOM for higher order and compaction is disabled

2016-08-30 Thread Michal Hocko
Ups, forgot to fold the fix up into the commit. --- >From 32c000ea9beb18555ab368e4dd22bac1ca8370e8 Mon Sep 17 00:00:00 2001 From: Michal Hocko Date: Mon, 29 Aug 2016 17:08:20 +0200 Subject: [PATCH] oom: warn if we go OOM for higher order and compaction is disabled Since the lumpy reclaim is gone

[PATCH] oom: warn if we go OOM for higher order and compaction is disabled

2016-08-30 Thread Michal Hocko
From: Michal Hocko Since the lumpy reclaim is gone there is no source of higher order pages if CONFIG_COMPACTION=n except for the order-0 pages reclaim which is unreliable for that purpose to say the least. Hitting an OOM for !costly higher order requests is therefore all not that hard to imagine

Antw: MBR partitions slow?

2016-08-30 Thread Ulrich Windl
Update: I found out the bad performance was caused by partition alignment, and not by the pertition per se (YaST created the partition next to the MBR). I compared two partitions, number one badly aligned, and number 2 properly aligned. Then I got these results: Disk /dev/disk/by-id/dm-name-Fi

Re: [PATCH] generic: Add the exception case checking routine for ppi interrupt

2016-08-30 Thread Marc Zyngier
+Mark On 30/08/16 11:35, majun (F) wrote: > > > 在 2016/8/30 16:50, Marc Zyngier 写道: >> On 30/08/16 05:17, MaJun wrote: >>> From: Ma Jun >>> >>> During system booting, if the interrupt which has no action registered >>> is triggered, it would cause system panic when try to access the >>> action

Re: [RESEND PATCH v3 1/3] ARM: dts: DRA7: Add "linux,pci-domain" property for pci dt nodes

2016-08-30 Thread Kishon Vijay Abraham I
Hi Tony, On Friday 26 August 2016 09:00 PM, Tony Lindgren wrote: > * Kishon Vijay Abraham I [160810 05:34]: >> Since DRA7 has multiple PCIe Rootcomplex, add "linux,pci-domain" >> property to assign a PCI domain number to each of the host >> bridges. > > Is this patch safe to apply without the ot

[PATCH 2/4] mm: mlock: avoid increase mm->locked_vm on mlock() when already mlock2(,MLOCK_ONFAULT)

2016-08-30 Thread wei . guo . simon
From: Simon Guo When one vma was with flag VM_LOCKED|VM_LOCKONFAULT (by invoking mlock2(,MLOCK_ONFAULT)), it can again be populated with mlock() with VM_LOCKED flag only. There is a hole in mlock_fixup() which increase mm->locked_vm twice even the two operations are on the same vma and both with

[PATCH 4/4] selftests/vm: add test for mlock() when areas are intersected.

2016-08-30 Thread wei . guo . simon
From: Simon Guo This patch adds mlock() test for multiple invocation on the same address area, and verify it doesn't mess the rlimit mlock limitation. Signed-off-by: Simon Guo --- tools/testing/selftests/vm/.gitignore | 1 + tools/testing/selftests/vm/Makefile | 4 +

[PATCH 3/4] selftest: split mlock2_ funcs into separate mlock2.h

2016-08-30 Thread wei . guo . simon
From: Simon Guo To prepare mlock2.h whose functionality will be reused. Signed-off-by: Simon Guo --- tools/testing/selftests/vm/mlock2-tests.c | 21 + tools/testing/selftests/vm/mlock2.h | 20 2 files changed, 21 insertions(+), 20 deletions(-) cr

[PATCH 1/4] mm: mlock: check against vma for actual mlock() size

2016-08-30 Thread wei . guo . simon
From: Simon Guo In do_mlock(), the check against locked memory limitation has a hole which will fail following cases at step 3): 1) User has a memory chunk from addressA with 50k, and user mem lock rlimit is 64k. 2) mlock(addressA, 30k) 3) mlock(addressA, 40k) The 3rd step should have been allow

[PATCH 0/4] mm: mlock: fix some locked_vm counting issues

2016-08-30 Thread wei . guo . simon
From: Simon Guo This patch set fixes some mlock() misbehavior when mlock()/mlock2() is invoked multiple times on intersect or same address regions. And add selftest for this case. Simon Guo (4): mm: mlock: check against vma for actual mlock() size mm: mlock: avoid increase mm->locked_vm on

Re: [Patch v4 9/9] arm64: Update device tree for Layerscape SoCs

2016-08-30 Thread Shawn Guo
On Tue, Aug 09, 2016 at 02:59:39PM -0700, York Sun wrote: > Add DDR memory controller nodes to enable EDAC driver. > > Signed-off-by: York Sun The patch subject is too general. I changed it to "arm64: dts: Add DDR memory controller for Layerscape SoCs", and applied patch. Shawn

Re: [PATCH v2] arm64: KVM: Save four instructions in __guest_enter/exit()

2016-08-30 Thread Marc Zyngier
On 30/08/16 10:55, Christoffer Dall wrote: > On Mon, Aug 29, 2016 at 10:51:14PM -0500, Shanker Donthineni wrote: >> We are doing an unnecessary stack push/pop operation when restoring >> the guest registers x0-x18 in __guest_enter(). This patch saves the >> two instructions by using x18 as a base r

Re: [PATCH ] arm64: cpuinfo: Add "model name" in /proc/cpuinfo for 64bit tasks also

2016-08-30 Thread Mark Rutland
On Tue, Aug 30, 2016 at 10:35:56AM +, Sumit Gupta wrote: > > > On Mon, Aug 29, 2016 at 02:32:25PM +0530, Sumit Gupta wrote: > > > Removed restriction of displaying model name for 32 bit tasks only. > > > Because of this Processor details were not displayed in "System > > > setting -> Details"

Re: [PATCH v4 3/3] tracing: Histogram for missed timer offsets

2016-08-30 Thread Masami Hiramatsu
Hi Binoy, 2016-08-30 19:28 GMT+09:00 Binoy Jayan : > Latencies of missed timer offsets. Generate a histogram of missed > timer offsets in microseconds. This will be a based along with irq > and preemption latencies to calculate the effective process wakeup > latencies. > > The following filter(s)

Re: [PATCH v3 0/3] spi-nor: Add support for Intel SPI serial flash controller

2016-08-30 Thread Lee Jones
On Tue, 30 Aug 2016, Mika Westerberg wrote: > On Tue, Aug 30, 2016 at 10:13:30AM +0100, Lee Jones wrote: > > On Mon, 29 Aug 2016, Mika Westerberg wrote: > > > > > On Mon, Aug 15, 2016 at 10:10:41AM +0300, Mika Westerberg wrote: > > > > Hi, > > > > > > > > This is third version of the series. Pre

[PATCH v2] efi: fix handling error value in fdt_find_uefi_params

2016-08-30 Thread Andrzej Hajda
of_get_flat_dt_subnode_by_name can return negative value in case of error. Assigning the result to unsigned variable and checking if the variable is lesser than zero is incorrect and always false. The patch fixes it by using signed variable to check the result. The problem has been detected using

[PATCH 3/3] PCI: Xilinx NWL PCIe: Fix Error for multi function device for legacy interrupts.

2016-08-30 Thread Bharat Kumar Gogada
PCIe legacy interrupts start at 1, not at 0. When testing with multi function device "error: hwirq 0x4 is too large for dummy" error comes. So adding one addtional interrupt when creating irq domain. Signed-off-by: Bharat Kumar Gogada --- drivers/pci/host/pcie-xilinx-nwl.c | 2 +- 1 file changed

[PATCH 1/3] PCI: Xilinx NWL PCIe: Expanding PCIe core errors and printing event occurred.

2016-08-30 Thread Bharat Kumar Gogada
The current driver prints pcie core error, for all core events. Instead of just printing PCIe core error, now adding prints to show individual core events occurred. Signed-off-by: Bharat Kumar Gogada --- drivers/pci/host/pcie-xilinx-nwl.c | 48 +++--- 1 file chang

Re: [PATCH v5 0/6] Introduce ZONE_CMA

2016-08-30 Thread Aneesh Kumar K.V
Joonsoo Kim writes: > 2016-08-29 18:27 GMT+09:00 Aneesh Kumar K.V : >> js1...@gmail.com writes: >> >>> From: Joonsoo Kim >>> >>> Hello, >>> >>> Changes from v4 >>> o Rebase on next-20160825 >>> o Add general fix patch for lowmem reserve >>> o Fix lowmem reserve ratio >>> o Fix zone span optimiza

Re: [PATCH] generic: Add the exception case checking routine for ppi interrupt

2016-08-30 Thread majun (F)
在 2016/8/30 16:50, Marc Zyngier 写道: > On 30/08/16 05:17, MaJun wrote: >> From: Ma Jun >> >> During system booting, if the interrupt which has no action registered >> is triggered, it would cause system panic when try to access the >> action member. > > And why would that interrupt be enabled? I

RE: [PATCH ] arm64: cpuinfo: Add "model name" in /proc/cpuinfo for 64bit tasks also

2016-08-30 Thread Sumit Gupta
> On Mon, Aug 29, 2016 at 02:32:25PM +0530, Sumit Gupta wrote: > > Removed restriction of displaying model name for 32 bit tasks only. > > Because of this Processor details were not displayed in "System > > setting -> Details" in Ubuntu model name display is generic and can be > > printed for 64

Re: [PATCH v5 2/6] mm/cma: introduce new zone, ZONE_CMA

2016-08-30 Thread Aneesh Kumar K.V
> static inline void check_highest_zone(enum zone_type k) > { > - if (k > policy_zone && k != ZONE_MOVABLE) > + if (k > policy_zone && k != ZONE_MOVABLE && !is_zone_cma_idx(k)) > policy_zone = k; > } > Should we apply policy to allocation from ZONE CMA ?. CMA reser

[PATCH] skd: fix assert typo

2016-08-30 Thread Eric Engestrom
Signed-off-by: Eric Engestrom --- drivers/block/skd_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/block/skd_main.c b/drivers/block/skd_main.c index 3822eae..94a7425 100644 --- a/drivers/block/skd_main.c +++ b/drivers/block/skd_main.c @@ -1905,7 +1905,7 @@

[PATCH v4 3/3] tracing: Histogram for missed timer offsets

2016-08-30 Thread Binoy Jayan
Latencies of missed timer offsets. Generate a histogram of missed timer offsets in microseconds. This will be a based along with irq and preemption latencies to calculate the effective process wakeup latencies. The following filter(s) may be used 'hist:key=common_pid.execname' 'hist:key=common_pi

[RESEND PATCH V1] MAINTAINERS: Input: add Dialog onkey device tree bindings into search terms

2016-08-30 Thread Steve Twiss
From: Steve Twiss Dialog Semiconductor support would like to add to the MAINTAINERS search terms. This update will allow us to follow files for device tree bindings relating to input onkey driver(s). Signed-off-by: Steve Twiss --- Resend with Rob Herring added in the e-mail list. Hi Dmitry &

[PATCH v4 2/3] tracing: Add trace_irqsoff tracepoints

2016-08-30 Thread Binoy Jayan
This work is based on work by Daniel Wagner. A few tracepoints are added at the end of the critical section. With the hist trigger in place, the hist trigger plots may be generated, with per-cpu breakdown of events captured. It is based on linux kernel's event infrastructure. The following filter(

[PATCH v4 0/3] *** Latency histograms - IRQSOFF,PREEMPTOFF ***

2016-08-30 Thread Binoy Jayan
Hi, Thank you Daniel for reviewing v3 throroughly. These set of patches [v4] capture latency events caused by interrupts and premption disabled in kernel. The patches are based on the hist trigger feature developed by Tom Zanussi. v3: https://lkml.org/lkml/2016/8/29/50 v2: https://lkml.org/lkml/2

<    2   3   4   5   6   7   8   9   >