Re: [PATCH] fat: Replaced 11 magic to MSDOS_NAME for volume label

2018-11-25 Thread Johannes Thumshirn
Looks good, Reviewed-by: Johannes Thumshirn -- Johannes ThumshirnSUSE Labs jthumsh...@suse.de+49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG

Re: [PATCH] printk: deduplicate print_prefix() calls

2018-11-25 Thread Sergey Senozhatsky
On (11/24/18 23:28), Tetsuo Handa wrote: > Since /sys/module/printk/parameters/time can change from N to Y between > "msg_print_text() called print_prefix() with buf == NULL" and > "msg_print_text() again calls print_prefix() with buf != NULL", it is not > safe for print_time() to unconditionally

Re: [PATCH v2 0/2] driver: thermal: Move some drivers into subdirs

2018-11-25 Thread Zhang Rui
On 五, 2018-11-23 at 00:17 +0530, Amit Kucheria wrote: > On Fri, Oct 26, 2018 at 2:21 PM Amit Kucheria rg> wrote: > > > > > > Hi Rui, > > > > On Thu, Oct 4, 2018 at 1:22 PM Amit Kucheria > org> wrote: > > > > > > > > > Move the various drivers for Intel platforms into their own > > > subdir.

Re: linux-next: build warning after merge of the btrfs-kdave tree

2018-11-25 Thread Christoph Hellwig
On Mon, Nov 26, 2018 at 11:06:29AM +1100, Stephen Rothwell wrote: > Introduced by commit > > cf8cddd38bab3 ("btrfs: don't abuse REQ_OP_* flags for btrfs_map_block") > > exposed by my new use of -Wimplicit-fallthrough > > I am not sure why this has only turned up now (as opposed to earlier >

Re: [patch V2 26/28] x86/speculation: Enable prctl mode for spectre_v2_user

2018-11-25 Thread Dominik Brodowski
On Sun, Nov 25, 2018 at 07:33:54PM +0100, Thomas Gleixner wrote: > + prctl - Indirect branch speculation is enabled, > + but mitigation can be enabled via prctl s/can be/is only/ or "must be". Thanks, Dominik

[PATCH 16/16] remoteproc/pru: Add support for INTC Interrupt map resource

2018-11-25 Thread Roger Quadros
Use the vendor specific resource mechanism to get the INTC mapping details from firmware. pru-software-support-package [1] has been historically using version 0 for this. However, the data structure is not scaleable and is not self sufficient. 1) it hard codes number of channel to host mappings

[PATCH 04/16] remoteproc/pru: Add PRU remoteproc driver

2018-11-25 Thread Roger Quadros
From: Suman Anna The Programmable Real-Time Unit Subsystem (PRUSS) consists of dual 32-bit RISC cores (Programmable Real-Time Units, or PRUs) for program execution. This patch adds a remoteproc platform driver for managing the individual PRU RISC cores life cycle. The PRU remoteproc driver uses

[PATCH 15/16] remoteproc/pru: add support for parsing pru interrupt mapping from DT

2018-11-25 Thread Roger Quadros
From: Tero Kristo PRU interrupt mapping can now be parsed from devicetree also, from ti,pru-interrupt-map property. This is an alternative configuration method in addition to the legacy resource table config. If both are provided, the config in DT takes precedence. Signed-off-by: Tero Kristo

[PATCH 12/16] dt-bindings: remoteproc: ti-pruss: Document application node bindings

2018-11-25 Thread Roger Quadros
From: Tero Kristo Add documentation for the Texas Instruments PRU application nodes. These are used to configure specific user applications for PRU instances. Signed-off-by: Tero Kristo [s-a...@ti.com: some binding updates] Signed-off-by: Suman Anna Signed-off-by: Roger Quadros ---

[PATCH 09/16] remoteproc/pru: add APIs to get and put the PRU cores

2018-11-25 Thread Roger Quadros
From: Tero Kristo Add two new APIs, pru_rproc_get() and pru_rproc_put(), to the PRU driver to allow client drivers to acquire and release the remoteproc device associated with a PRU core. The PRU cores are treated as resources with only one client owning it at a time. The pru_rproc_get()

[PATCH 03/16] remoteproc: Add support to handle device specific resource types

2018-11-25 Thread Roger Quadros
From: Suman Anna The remoteproc framework handles a fixed set of resource table entries today. To make it scalable across multiple platforms, it makes sense for the framework to provide a way for the device specific implementation to define and handle vendor specific resource types. These

[PATCH 11/16] soc: ti: pruss: add helper functions to set GPI mode, MII_RT_event and XFR

2018-11-25 Thread Roger Quadros
From: Suman Anna The PRUSS CFG module is represented as a syscon node and is currently managed by the PRUSS platform driver. Add easy accessor functions to set GPI mode, MII_RT event enable/disable and XFR (XIN XOUT) enable/disable to enable the PRUSS Ethernet usecase. These functions reuse the

[PATCH 07/16] remoteproc/pru: Add support for virtio rpmsg stack

2018-11-25 Thread Roger Quadros
From: Suman Anna The PRU remoteproc driver has been enhanced to support the optional rpmsg stack using the virtio-ring based communication transport between MPU and a PRU core. This provides support to any firmware images supporting the virtio devices. The virtio-ring signalling support is

[PATCH 14/16] remoteproc/pru: configure firmware based on client setup

2018-11-25 Thread Roger Quadros
From: Tero Kristo Client device node property firmware-name is now used to configure firmware for the PRU instances. The default firmware is also restored once releasing the PRU resource. Signed-off-by: Tero Kristo Reviewed-by: Roger Quadros Signed-off-by: Suman Anna ---

[PATCH 13/16] remoteproc/pru: add support for configuring GPMUX based on client setup

2018-11-25 Thread Roger Quadros
From: Tero Kristo Client device node property ti,pruss-gp-mux-sel can now be used to configure the GPMUX config value for PRU. Signed-off-by: Tero Kristo [s-a...@ti.com: simplify the pru id usage] Signed-off-by: Suman Anna --- drivers/remoteproc/pru_rproc.c | 28

[PATCH 06/16] dt-bindings: remoteproc: ti-pruss: Update bindings for supporting rpmsg

2018-11-25 Thread Roger Quadros
From: Suman Anna Update the PRUSS DT bindings to add the properties required to support the optional virtio rpmsg stack using the virtio-ring based communication transport between MPU and a PRU core. Signed-off-by: Suman Anna --- .../devicetree/bindings/soc/ti/ti,pruss.txt| 39

[PATCH 08/16] remoteproc/pru: Add pru_rproc_set_ctable() function

2018-11-25 Thread Roger Quadros
Some firmwares expect the OS drivers to configure the CTABLE entries publishing dynamically allocated memory regions. For example, the PRU Ethernet firmwares use the C28 and C30 entries for retrieving the Shared RAM and System SRAM (OCMC) areas allocated by the PRU Ethernet client driver. Provide

[PATCH 05/16] remoteproc/pru: Add pru-specific debugfs support

2018-11-25 Thread Roger Quadros
From: Suman Anna The remoteproc core creates certain standard debugfs entries, that does not give a whole lot of useful information for the PRUs. The PRU remoteproc driver is enhanced to add additional debugfs entries for PRU. These will be auto-cleaned up when the parent rproc debug directory

[PATCH 10/16] remoteproc/pru: add pru_rproc_get_id() API to retrieve the PRU id

2018-11-25 Thread Roger Quadros
From: Suman Anna Export an API pru_rproc_get_id() to allow other PRUSS platform drivers to clients to retrieve the PRU id from a remoteproc handle associated with a PRU. The new function takes in a struct rproc pointer as argument. Signed-off-by: Suman Anna --- drivers/remoteproc/pru_rproc.c

[PATCH 00/16] remoteproc: Add support for TI PRU

2018-11-25 Thread Roger Quadros
Hi, This is the second part of the series [1] and depends on it. It adds remoteproc support for the PRU processor cores present in the PRU-ICSS subsystem on TI SoCs. The PRU remoteproc driver uses the standard remoteproc core ELF loader. However, the PRUs do not have a unified address space,

[PATCH 02/16] remoteproc: Add a rproc_set_firmware() API

2018-11-25 Thread Roger Quadros
From: Suman Anna A new API, rproc_set_firmware() is added to allow the remoteproc platform drivers and remoteproc client drivers to be able to configure a custom firmware name that is different from the default name used during remoteproc registration. This function is being introduced to

[PATCH 01/16] remoteproc: Extend rproc_da_to_va() API with a flags parameter

2018-11-25 Thread Roger Quadros
From: Suman Anna The rproc_da_to_va() API is currently used to perform any device to kernel address translations to meet the different needs of the remoteproc core/platform drivers (eg: loading). The function also invokes the da_to_va ops, if present, to allow the remoteproc platform drivers to

Re: [PATCH 01/17] dt-bindings: remoteproc: Add TI PRUSS bindings

2018-11-25 Thread Roger Quadros
Hi, On 23/11/18 18:24, Tony Lindgren wrote: > Hi, > > * Roger Quadros [181122 11:39]: >> From: Suman Anna >> +Example: >> + >> +1. /* AM33xx PRU-ICSS */ >> +pruss_soc_bus: pruss_soc_bus@4a326004 { >> +compatible = "ti,am3356-pruss-soc-bus"; >> +ti,hwmods =

Re: [PATCH 1/3] clk: samsung: exynos5420: add VPLL rate table for g3d clock

2018-11-25 Thread Chanwoo Choi
Hi, On 2018년 11월 23일 18:44, Anand Moon wrote: > From: Marian Mihailescu > > A specific clock rate table is added for VPLL so it is possible > to set frequency of the VPLL output clock that used by the g3d clock. > > Cc: Andrzej Hajda > Cc: Chanwoo Choi > Signed-off-by: Marian Mihailescu >

[PATCH] nios2: remove unneeded HAS_DMA define

2018-11-25 Thread Masahiro Yamada
kernel/dma/Kconfig globally defines HAS_DMA as follows: config HAS_DMA bool depends on !NO_DMA default y Signed-off-by: Masahiro Yamada --- arch/nios2/Kconfig | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/nios2/Kconfig b/arch/nios2/Kconfig index

Re: [PATCH] mm: do not consider SWAP to calculate available when not necessary

2018-11-25 Thread Vlastimil Babka
On 11/26/18 3:01 AM, Matthew Wilcox wrote: > On Mon, Nov 26, 2018 at 07:58:23AM +0800, Yang Yang wrote: >> When si_mem_available() calculates 'available', it takes SWAP >> into account. But if CONFIG_SWAP is N or SWAP is off(some embedded system >> would like to do that), there is no need to

Re: [RFC][PATCH 08/14] function_graph: Remove unused task_curr_ret_stack()

2018-11-25 Thread Masami Hiramatsu
On Wed, 21 Nov 2018 20:27:16 -0500 Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > The static inline function task_curr_ret_stack() is unused, remove it. This looks able to be applied without this series. I think we should apply this to for-next branch? Reviewed-by: Masami

Re: [PATCH 3/3] ARM: dts: Add g3d bus nodes using VDD_INT for Exynos542x SoC

2018-11-25 Thread Chanwoo Choi
Hi Anand, CLK_DOUT_ACLK_G3D is the clock for GPU h/w and it requires the buck4_reg("vdd_g3d"). bus_wcore uses the buck3_reg("vdd_int"). bus_wcore and bus_g3d don't share the same voltage line. It is wrong to make 'bus_g3d' as the child of 'bus_wcore' because of using the different regulator.

Re: [PATCH v3 7/7] staging:iio:ad2s90: Move out of staging

2018-11-25 Thread Ardelean, Alexandru
On Fri, 2018-11-23 at 22:23 -0200, Matheus Tavares wrote: > Move ad2s90 resolver driver out of staging to the main tree. > Acked-by: Alexandru Ardelean > Signed-off-by: Matheus Tavares > Signed-off-by: Victor Colombo > --- > Changes in v3: > - none > > Changes in v2: > - Disabled git move

Re: [RFC][PATCH 06/14] fgraph: Move function graph specific code into fgraph.c

2018-11-25 Thread Masami Hiramatsu
On Thu, 22 Nov 2018 22:11:33 -0800 Joel Fernandes wrote: > On Wed, Nov 21, 2018 at 08:27:14PM -0500, Steven Rostedt wrote: > > From: "Steven Rostedt (VMware)" > > > > To make the function graph infrastructure more managable, the code needs to > > be in its own file (fgraph.c). Move the code

[PATCH 1/2] kconfig: fix reverse dependency with tristate if-conditional

2018-11-25 Thread Masahiro Yamada
A Kconfig property can have an optional if-expression, which describes its visibility. The property is visible when the if-expression part is evaluated to 'y' or 'm'. The 'select' and 'imply' properties are internally converted to reverse dependencies, but they are wrongly converted if they have

[PATCH 2/2] kconfig: tests: test reverse dependency with tristate if-conditional

2018-11-25 Thread Masahiro Yamada
Add a test-case for the fixed reverse dependency handling. Signed-off-by: Masahiro Yamada --- .../kconfig/tests/revdep_with_tristate_if/Kconfig | 21 + .../tests/revdep_with_tristate_if/__init__.py | 14 ++

Re: [patch V2 21/28] x86/speculation: Prepare for conditional IBPB in switch_mm()

2018-11-25 Thread Thomas Gleixner
On Sun, 25 Nov 2018, Andy Lutomirski wrote: > > On Nov 25, 2018, at 2:20 PM, Thomas Gleixner wrote: > > On Sun, 25 Nov 2018, Andi Kleen wrote: > > > >>> The current check whether two tasks belong to the same context is using > >>> the > >>> tasks context id. While correct, it's simpler to use

Re: [GIT PULL] PHY: for 4.20 -rc

2018-11-25 Thread Greg Kroah-Hartman
On Fri, Nov 23, 2018 at 04:00:08PM +0530, Kishon Vijay Abraham I wrote: > Hi Greg, > > Please find the pull request for 4.20 -rc below. > > It includes tuning parameter fix in qcom-qusb2 PHY driver, dt-bindings fix > for phy-qcom-qmp and a fix for randconfig error in uniphier-pcie. > > Consider

[PATCH v2 4/4] net: macb: Add support for suspend/resume with full power down

2018-11-25 Thread Harini Katakam
When macb device is suspended and system is powered down, the clocks are removed and hence macb should be closed gracefully and restored upon resume. This patch does the same by switching off the net device, suspending phy and performing necessary cleanup of interrupts and BDs. Upon resume, all

Re: [GIT PULL] FSI fixes for 4.20

2018-11-25 Thread Greg Kroah-Hartman
On Mon, Nov 26, 2018 at 10:37:08AM +1100, Benjamin Herrenschmidt wrote: > Hi Greg ! > > Here are two very minor fixes for FSI. One from Arnd is a Kconfig fixup > and has been rusting away in my tree for a while (I had forgotten about > it). The other one just removes a duplicate #include,

Re: [PATCH] Fonts: New Terminus large console font

2018-11-25 Thread Greg KH
On Sun, Nov 25, 2018 at 10:47:34PM -0500, nimrud wrote: > This patch adds an option to compile-in a high resolution and large > Terminus (ter16x32) bitmap console font for use with HiDPI and Retina screens. > > The font was convereted from standard Terminus ter-i32b.psf (size 16x32) > with the

Re: [PATCH] Fonts: New Terminus large console font

2018-11-25 Thread Greg KH
On Sun, Nov 25, 2018 at 10:47:34PM -0500, nimrud wrote: > This patch adds an option to compile-in a high resolution and large > Terminus (ter16x32) bitmap console font for use with HiDPI and Retina screens. > > The font was convereted from standard Terminus ter-i32b.psf (size 16x32) > with the

Re: linux-next: build warnings after merge of the cifs tree

2018-11-25 Thread Stephen Rothwell
Hi Kees, On Sun, 25 Nov 2018 21:48:10 -0800 Kees Cook wrote: > > On Sun, Nov 25, 2018 at 4:52 PM Stephen Rothwell > wrote: > > > > On Sun, 25 Nov 2018 18:31:40 -0600 Steve French wrote: > > > > > > > > Both of those cases are intentional fallthroughs and there are > > > existing comments

Re: [patch V2 21/28] x86/speculation: Prepare for conditional IBPB in switch_mm()

2018-11-25 Thread Thomas Gleixner
On Sun, 25 Nov 2018, Andi Kleen wrote: > On Sun, Nov 25, 2018 at 11:20:50PM +0100, Thomas Gleixner wrote: > > On Sun, 25 Nov 2018, Andi Kleen wrote: > > > > > > The current check whether two tasks belong to the same context is using > > > > the > > > > tasks context id. While correct, it's

Re: [RESEND PATCH 0/7] Add some fixes and new feature for SPRD DMA

2018-11-25 Thread Baolin Wang
Hi Vinod, On Tue, 6 Nov 2018 at 13:01, Baolin Wang wrote: > > This patchset removes the direction usage from struct dma_slave_config, > and add one new field to save the direction. It also fixes some issues > for link-list transfer. Moreover this patchset adds new 2-stage transfer > support for

Re: [PATCH v2] PCI: assign bus numbers present in EA capability for bridges

2018-11-25 Thread sundeep subbaraya
Hi Bjorn / Sean, Any comments? Thanks, Sundeep On Mon, Nov 19, 2018 at 6:44 PM wrote: > > From: Subbaraya Sundeep > > As per the spec, bridges with EA capability work > with fixed secondary and subordinate bus numbers. > Hence assign bus numbers to bridges from EA if the > capability exists.

Re: [PATCH v7 0/2] mtd: rawnand: meson: add Amlogic NAND driver support

2018-11-25 Thread Liang Yang
Hi Boris and Miquel, How about the v7 patch? On 2018/11/17 0:40, Jianxin Pan wrote: These two patches try to add initial NAND driver support for Amlogic Meson SoCs, current it has been tested on GXL(p212) and AXG(s400) platform. Changes since V6 at [7] - use timings->tBERS_max as the

Re: [PATCH 5/5] power: supply: sc27xx: Save last battery capacity

2018-11-25 Thread Baolin Wang
Hi Pavel, On Mon, 26 Nov 2018 at 05:48, Pavel Machek wrote: > > Hi! > > > Our charger manager can optimize the battery capacity periodically, so > > we can save last battery capacity into registers. Then next system > > power-on, we can read the last saved battery capacity as the initial > >

Re: [PATCH 3/5] power: supply: sc27xx: Add fuel gauge low voltage alarm

2018-11-25 Thread Baolin Wang
Hi Pavel, On Mon, 26 Nov 2018 at 05:45, Pavel Machek wrote: > > On Wed 2018-11-14 17:07:06, Baolin Wang wrote: > > From: Yuanjiang Yu > > > > Add low voltage alarm support to make sure the battery capacity > > more accurate in lower voltage stage. > > > > Signed-off-by: Yuanjiang Yu > >

[PATCH] RISC-V: Make BSS section as the last section in vmlinux.lds.S

2018-11-25 Thread Anup Patel
The objcopy only emits loadable sections when creating flat kernel Image. To have minimal possible size of flat kernel Image, we should have all non-loadable sections after loadable sections. Currently, execption table section (loadable section) is after BSS section (non-loadable section) in the

Re: RFC: script to convert vsprintf uses of %pf to %ps and %pF to %pS

2018-11-25 Thread Sergey Senozhatsky
And I forgot to actually Cc Petr and Steven... Top-posting. --- Hi, Cc-ing Petr and Steven On (11/25/18 01:13), Joe Perches wrote: > commit 04b8eb7a4ccd ("symbol lookup: introduce > dereference_symbol_descriptor()}" > > deprecated vsprintf extension %pf and %pF. > > There are

Re: [PATCH 2/2] cpufreq: imx6q: save one condition block for normal case of nvmem read

2018-11-25 Thread Viresh Kumar
On 26-11-18, 02:59, Anson Huang wrote: > Put return value checks of calling imx6ul_opp_check_speed_grading() > into one block to save one condition block for normal case. > > Signed-off-by: Anson Huang > --- > drivers/cpufreq/imx6q-cpufreq.c | 5 +++-- > 1 file changed, 3 insertions(+), 2

Re: [PATCH 1/2] cpufreq: imx6q: remove unused code

2018-11-25 Thread Viresh Kumar
On 26-11-18, 02:59, Anson Huang wrote: > In voltage scale down path, the return value is NOT > used at all, remove them to simplify the code. > > Signed-off-by: Anson Huang > --- > drivers/cpufreq/imx6q-cpufreq.c | 12 +++- > 1 file changed, 3 insertions(+), 9 deletions(-) > > diff

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

2018-11-25 Thread Viresh Kumar
On 23-11-18, 11:32, Daniel Lezcano wrote: > On 23/11/2018 11:04, Viresh Kumar wrote: > > On 22-11-18, 13:36, Daniel Lezcano wrote: > >> In the case of asymmetric SoC with the same micro-architecture, we > >> have a group of CPUs with smaller OPPs than the other group. One > >> example is the

Re: [PATCH 08/13] ARM: dts: rv1108: Fix the PMU interrupt number

2018-11-25 Thread Heiko Stuebner
Hi Otavio, Am Sonntag, 25. November 2018, 22:19:02 CET schrieb Otavio Salvador: > According to the Rockchip vendor tree the PMU interrupt number is > 76, so fix it accordingly. > > Signed-off-by: Otavio Salvador > Signed-off-by: Fabio Berton looks ok, especially as the TRM I have doesn't list

linux-next: build warning after merge of the slave-dma tree

2018-11-25 Thread Stephen Rothwell
Hi Vinod, After merging the slave-dma tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/dma/coh901318.c: In function 'coh901318_config': drivers/dma/coh901318.c:1805:16: warning: unused variable 'flags' [-Wunused-variable] unsigned long flags;

Re: linux-next: build warnings after merge of the cifs tree

2018-11-25 Thread Kees Cook
On Sun, Nov 25, 2018 at 4:52 PM Stephen Rothwell wrote: > > Hi Steve, > > On Sun, 25 Nov 2018 18:31:40 -0600 Steve French wrote: > > > > Both of those cases are intentional fallthroughs and there are > > existing comments in the code noting the reasons for them to > > fallthrough > > > > (also

Re: [PATCH 2/9] arch/arm/mm/dma-mapping.c: Convert to use vm_insert_range

2018-11-25 Thread Souptick Joarder
Hi Russell, On Thu, Nov 15, 2018 at 9:13 PM Souptick Joarder wrote: > > Convert to use vm_insert_range() to map range of kernel > memory to user vma. > > Signed-off-by: Souptick Joarder Any comment on this patch ? > --- > arch/arm/mm/dma-mapping.c | 21 +++-- > 1 file

[PATCH] ALSA: pcm: Fix starvation on down_write_nonblock()

2018-11-25 Thread Chanho Min
Commit 67ec1072b053 ("ALSA: pcm: Fix rwsem deadlock for non-atomic PCM stream") fixes deadlock for non-atomic PCM stream. But, This patch causes antother stuck. If writer is RT thread and reader is a normal thread, the reader thread will be difficult to get scheduled. It may not give chance to

Re: RFC: script to convert vsprintf uses of %pf to %ps and %pF to %pS

2018-11-25 Thread Sergey Senozhatsky
Hi, Cc-ing Petr and Steven On (11/25/18 01:13), Joe Perches wrote: > commit 04b8eb7a4ccd ("symbol lookup: introduce > dereference_symbol_descriptor()}" > > deprecated vsprintf extension %pf and %pF. > > There are approximately these total uses of the symbolic > lookup vsprintf extensions

Fwd: UBSAN: Undefined behaviour in drivers/input/mousedev.c

2018-11-25 Thread Kyungtae Kim
-- Forwarded message - From: Kyungtae Kim Date: Mon, Nov 26, 2018 at 12:26 AM Subject: UBSAN: Undefined behaviour in drivers/input/mousedev.c To: Cc: Byoungyoung Lee , DaeRyong Jeong , , , We report a crash found in v4.20-rc2: kernel config:

Re: [PATCH 07/13] ARM: dts: rv1108: Fix the timer mask

2018-11-25 Thread Heiko Stuebner
Am Sonntag, 25. November 2018, 22:19:01 CET schrieb Otavio Salvador: > As done in the Rockchip vendor tree and also on other > "arm,armv7-timer" instances, the correct GIC_CPU_MASK_SIMPLE mask > is 4 instead of 1. Nope. That value represents the number of cores in the system. As the rv1108 only

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

2018-11-25 Thread Sasha Levin
On Mon, Nov 26, 2018 at 02:29:57AM +, k...@linuxonhyperv.com wrote: From: Dexuan Cui vmbus_process_offer() mustn't call channel->sc_creation_callback() directly for sub-channels, because sc_creation_callback() -> vmbus_open() may never get the host's response to the OPEN_CHANNEL message

Re: [for-next][PATCH 00/18] function_graph: Add separate depth counter to prevent trace corruption

2018-11-25 Thread Masami Hiramatsu
Hi Steve, This series looks good to me. Reviewed-by: Masami Hiramatsu for this series. Thank you! # Now I know why sometimes func-graph depth looks broken... On Wed, 21 Nov 2018 19:28:01 -0500 Steven Rostedt wrote: > While working on rewriting function graph tracer, I found a design >

Re: [PATCH] fat: Replaced 11 magic to MSDOS_NAME for volume label

2018-11-25 Thread Sergey Senozhatsky
On (11/24/18 17:01), Carmeli Tamir wrote: > The FAT file system volume label file stored in the root directory should > match the volume label field in the FAT boot sector. As consequence, the > max length of these fields ought to be the same. This patch replaces the > magic '11' usef in the

Re: [PATCH v4] debugobjects: scale the static pool size

2018-11-25 Thread Qian Cai
On 11/25/18 8:31 PM, Waiman Long wrote: On 11/25/2018 03:42 PM, Qian Cai wrote: On 11/23/18 10:01 PM, Qian Cai wrote: On Nov 22, 2018, at 4:56 PM, Thomas Gleixner wrote: On Tue, 20 Nov 2018, Qian Cai wrote: Looking deeper at that. diff --git a/lib/debugobjects.c

Re: [RFC][PATCH 02/14] fgraph: Have set_graph_notrace only affect function_graph tracer

2018-11-25 Thread Namhyung Kim
On Sat, Nov 24, 2018 at 01:41:31PM -0500, Steven Rostedt wrote: > On Sat, 24 Nov 2018 14:49:34 +0900 > Namhyung Kim wrote: > > > On Sat, Nov 24, 2018 at 2:37 AM Steven Rostedt wrote: > > > > > > On Fri, 23 Nov 2018 09:01:18 +0900 > > > Namhyung Kim wrote: > > > > > > > Acked-by: Namhyung Kim

linux-next: manual merge of the tip tree with the vfs tree

2018-11-25 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tip tree got a conflict in: arch/x86/kernel/cpu/resctrl/rdtgroup.c between commit: 16ec1a5d58ea ("kernfs, sysfs, cgroup, intel_rdt: Support fs_context") (where the file is arch/x86/kernel/cpu/intel_rdt_rdtgroup.c) from the vfs tree and commit:

Re: [PATCH] printk: Make printk_emit() local function.

2018-11-25 Thread Sergey Senozhatsky
On (11/24/18 13:10), Tetsuo Handa wrote: > Subject: [PATCH v2] printk: Make printk_emit() local function. > > printk_emit() is called from only devkmsg_write() in the same file. > Save object size by making it a local function. > > Signed-off-by: Tetsuo Handa Looks good to me, Reviewed-by:

Re: [PATCH 3/3] lockdep: Use line-buffered printk() for lockdep messages.

2018-11-25 Thread Sergey Senozhatsky
On (11/24/18 09:24), Tetsuo Handa wrote: > >> Steven told me on Plumbers conference that even few initial > >> characters saved him a day few times. > > > > Yes, and that has happened more than once. I would reboot and retest > > code that is crashing, and due to a triple fault, the machine would

Re: [PATCH 3/3] iio: chemical: sps30: add device tree support

2018-11-25 Thread kbuild test robot
/linux/commits/Tomasz-Duszynski/add-support-for-Sensirion-SPS30-PM-sensor/20181125-172634 base: https://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg config: x86_64-allmodconfig (attached as .config) compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 reproduce: # save the attached

Re: [PATCH v1 3/3] arm64: dts: mt7622: Drop the general purpose timer node

2018-11-25 Thread Ryder Lee
On Fri, 2018-11-23 at 18:07 +0100, Matthias Brugger wrote: > > On 12/11/2018 02:28, Ryder Lee wrote: > > The crash http://termbin.com/zitb is caused by the timer register > > into system in early pahse during kernel boot, but the clock > > sources didn't get ready at that time. > > > > A better

[PATCH] Fonts: New Terminus large console font

2018-11-25 Thread nimrud
This patch adds an option to compile-in a high resolution and large Terminus (ter16x32) bitmap console font for use with HiDPI and Retina screens. The font was convereted from standard Terminus ter-i32b.psf (size 16x32) with the help of psftools and minor hand editing deleting useless characters.

Re: [PATCH v3 1/2] x86/fpu: track AVX-512 usage of tasks

2018-11-25 Thread Li, Aubrey
On 2018/11/18 22:03, Samuel Neves wrote: > On 11/17/18 12:36 AM, Li, Aubrey wrote: >> On 2018/11/17 7:10, Dave Hansen wrote: >>> Just to be clear: there are 3 AVX-512 XSAVE states: >>> >>> XFEATURE_OPMASK, >>> XFEATURE_ZMM_Hi256, >>> XFEATURE_Hi16_ZMM, >>> >>> I honestly

Re: [PATCH] mm: put_and_wait_on_page_locked() while page is migrated

2018-11-25 Thread Hugh Dickins
On Sun, 25 Nov 2018, Linus Torvalds wrote: > On Sat, Nov 24, 2018 at 7:21 PM Hugh Dickins wrote: > > > > Linus, I'm addressing this patch to you because I see from Tim Chen's > > thread that it would interest you, and you were disappointed not to > > root cause the issue back then. I'm not

[PATCH] ext4: fix possible use after free in ext4_quota_enable

2018-11-25 Thread Pan Bian
The function frees qf_inode via iput but then pass qf_inode to lockdep_set_quota_inode on the failure path. This may result in a use-after-free bug. The patch frees df_inode only when it is never used. Signed-off-by: Pan Bian Fixes: daf647d2dd5("ext4: add lockdep annotations for i_data_sem") ---

Re: [PATCH rdma-next 3/3] RDMA/hns: Modify hns RoCE device's name

2018-11-25 Thread Jason Gunthorpe
On Sat, Nov 24, 2018 at 09:01:19PM +0800, Wei Hu (Xavier) wrote: > > > On 2018/11/24 4:39, Jason Gunthorpe wrote: > > On Fri, Nov 23, 2018 at 11:14:25PM +0800, Wei Hu (Xavier) wrote: > >> This patch modifies the name of hns RoCE device's name in order > >> to ensure that the name is consistent

[PATCH] nilfs2: fix potential use after free

2018-11-25 Thread Pan Bian
brelse(bh) is called to drop the reference count of bh when the call to nilfs_dat_translate fails. If the reference count hits 0, bh may be freed. However, bh->b_page is unlocked and put after that, which may result in a use-after-free bug. This patch moves the release operation after unlocking

Re: [patch V2 21/28] x86/speculation: Prepare for conditional IBPB in switch_mm()

2018-11-25 Thread Andi Kleen
On Sun, Nov 25, 2018 at 11:20:50PM +0100, Thomas Gleixner wrote: > On Sun, 25 Nov 2018, Andi Kleen wrote: > > > > The current check whether two tasks belong to the same context is using > > > the > > > tasks context id. While correct, it's simpler to use the mm pointer > > > because > > > it

[PATCH 2/2] cpufreq: imx6q: save one condition block for normal case of nvmem read

2018-11-25 Thread Anson Huang
Put return value checks of calling imx6ul_opp_check_speed_grading() into one block to save one condition block for normal case. Signed-off-by: Anson Huang --- drivers/cpufreq/imx6q-cpufreq.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/imx6q-cpufreq.c

[PATCH 1/2] cpufreq: imx6q: remove unused code

2018-11-25 Thread Anson Huang
In voltage scale down path, the return value is NOT used at all, remove them to simplify the code. Signed-off-by: Anson Huang --- drivers/cpufreq/imx6q-cpufreq.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/cpufreq/imx6q-cpufreq.c

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

2018-11-25 Thread kys
From: Dexuan Cui vmbus_process_offer() mustn't call channel->sc_creation_callback() directly for sub-channels, because sc_creation_callback() -> vmbus_open() may never get the host's response to the OPEN_CHANNEL message (the host may rescind a channel at any time, e.g. in the case of hot

[PATCH 1/2] Drivers: hv: vmbus: check the creation_status in vmbus_establish_gpadl()

2018-11-25 Thread kys
From: Dexuan Cui This is a longstanding issue: if the vmbus upper-layer drivers try to consume too many GPADLs, the host may return with an error 0xC044 (STATUS_QUOTA_EXCEEDED), but currently we forget to check the creation_status, and hence we can pass an invalid GPADL handle into the

Re: [PATCH v4 2/2] phy: qualcomm: Add Synopsys High-Speed USB PHY driver

2018-11-25 Thread Shawn Guo
On Fri, Nov 23, 2018 at 03:25:33PM +0530, Kishon Vijay Abraham I wrote: > > +static int qcom_snps_hsphy_por_reset(struct hsphy_priv *priv) > > +{ > > + int ret; > > + > > + ret = reset_control_assert(priv->por_reset); > > + if (ret) > > + return ret; > > + > > + /* > > +* The

[PATCH 0/2] Drivers: hv: vmbus: Miscellaneous fixes

2018-11-25 Thread kys
From: "K. Y. Srinivasan" Miscellaneous fixes. Dexuan Cui (2): Drivers: hv: vmbus: check the creation_status in vmbus_establish_gpadl() Drivers: hv: vmbus: offload the handling of channels to two workqueues drivers/hv/channel.c | 8 ++ drivers/hv/channel_mgmt.c | 188

[PATCH] fs/qnx6: set and bh1 and bh2 to NULL after dropping references

2018-11-25 Thread Pan Bian
The function qnx6_fill_super drops the reference to bh2 when superblock 1 is activated via brelse, otherwise it drops the reference to bh1 when superblock 2 is activated. If error occurs after that, it will try to drop the references to bh1 and bh2 again. This may result in use-after-free bugs.

[PATCH] Drivers: hv: vmbus: Remove the useless API vmbus_get_outgoing_channel()

2018-11-25 Thread kys
From: Dexuan Cui Commit d86adf482b84 ("scsi: storvsc: Enable multi-queue support") removed the usage of the API in Jan 2017, and the API is not used since then. netvsc and storvsc have their own algorithms to determine the outgoing channel, so this API is useless. And the API is potentially

[PATCH V12 05/20] block: remove bvec_iter_rewind()

2018-11-25 Thread Ming Lei
Commit 7759eb23fd980 ("block: remove bio_rewind_iter()") removes bio_rewind_iter(), then no one uses bvec_iter_rewind() any more, so remove it. Signed-off-by: Ming Lei --- include/linux/bvec.h | 24 1 file changed, 24 deletions(-) diff --git a/include/linux/bvec.h

Dear Urgent Respond,

2018-11-25 Thread David Cooper
Sorry to have contacted you through this medium without a previous notice; I had to use the email because it is the easiest and more confidential way of making contact with people around the world. This communication is to inform you that we have programmed your payment of the $10,000.000.00

Re: [PATCH] mm: do not consider SWAP to calculate available when not necessary

2018-11-25 Thread Matthew Wilcox
On Mon, Nov 26, 2018 at 07:58:23AM +0800, Yang Yang wrote: > When si_mem_available() calculates 'available', it takes SWAP > into account. But if CONFIG_SWAP is N or SWAP is off(some embedded system > would like to do that), there is no need to consider it. I don't understand this patch. The

Re: [PATCH] mm: use this_cpu_cmpxchg_double in put_cpu_partial

2018-11-25 Thread Wei Yang
On Tue, Nov 20, 2018 at 10:58 AM zhong jiang wrote: > > On 2018/11/17 9:33, Wengang Wang wrote: > > The this_cpu_cmpxchg makes the do-while loop pass as long as the > > s->cpu_slab->partial as the same value. It doesn't care what happened to > > that slab. Interrupt is not disabled, and new

[PATCH] autofs: drop dentry reference only when it is never used

2018-11-25 Thread Pan Bian
The function autofs_expire_run calls dput(dentry) to drop the reference count of dentry. However, dentry is read via autofs_dentry_ino(dentry) after that. This may result in a use-free-bug. The patch drops the reference count of dentry only when it is never used. Signed-off-by: Pan Bian ---

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

2018-11-25 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%

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

2018-11-25 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 Overhead Symbol IPC [IPC Coverage] 39.60% [.] __random 2.30 [ 54.8%] 18.02% [.] main

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

2018-11-25 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%)

DEAREST ONE

2018-11-25 Thread Alizata Aron
Greetings My name is Miss Alizata Aron. It give me a great pleasure to write you, it attracts me to write to you so that we can be friends if you will have the desire as me. i will be very happy to be in communication with you so that we can get to know each other better and see what

Re: [RFC PATCH] of: make MAX_RESERVED_REGIONS configurable

2018-11-25 Thread Miles Chen
On Sat, 2018-11-24 at 14:56 -0600, Rob Herring wrote: > On Wed, Nov 21, 2018 at 8:51 PM Miles Chen wrote: > > > > On Wed, 2018-11-21 at 10:39 -0600, Rob Herring wrote: > > > On Wed, Nov 21, 2018 at 2:11 AM wrote: > > > > > > > > From: Miles Chen > > > > > > > > When we use more than 32 entries

Re: [PATCH v4] debugobjects: scale the static pool size

2018-11-25 Thread Waiman Long
On 11/25/2018 03:42 PM, Qian Cai wrote: > > > On 11/23/18 10:01 PM, Qian Cai wrote: >> >> >>> On Nov 22, 2018, at 4:56 PM, Thomas Gleixner >>> wrote: >>> >>> On Tue, 20 Nov 2018, Qian Cai wrote: >>> >>> Looking deeper at that. >>> diff --git a/lib/debugobjects.c b/lib/debugobjects.c

Re: [PATCH v4 2/5] nds32: Support FP emulation

2018-11-25 Thread Vincent Chen
On Fri, Nov 23, 2018 at 06:53:37PM +0800, David Laight wrote: > From: Vincent Chen > > Sent: 22 November 2018 03:15 > > > > The Andes FPU coprocessor does not support denormalized number handling. > > According to the specification, FPU generates a denorm input exception > > that requires the

Re: [PATCH 1/2 v3] powerpc/fsl: Use new clockgen binding

2018-11-25 Thread Scott Wood
On Wed, 2018-10-31 at 14:57 +0800, Yuantian Tang wrote: > From: Scott Wood > > The driver retains compatibility with old device trees, but we don't > want the old nodes lying around to be copied, or used as a reference > (some of the mux options are incorrect), or even just being clutter. > >

RE: [PATCH V6 2/2] can: flexcan: add self wakeup support

2018-11-25 Thread Joakim Zhang
Hi Marc, Firstly, thanks for reviewing the patch. Then, I am confused to do upstream on "linux-can" or "linux-can-next" due to I find "linux-can" is more updated than "linux-can-next". Best Regards, Joakim Zhang > -Original Message- > From: Marc Kleine-Budde > Sent: 2018年11月23日

Re: linux-next: build warnings after merge of the cifs tree

2018-11-25 Thread Stephen Rothwell
Hi Steve, On Sun, 25 Nov 2018 18:31:40 -0600 Steve French wrote: > > Both of those cases are intentional fallthroughs and there are > existing comments in the code noting the reasons for them to > fallthrough > > (also can see the reasoning for these in the commits which introduced > them from

Re: [PATCH v17 18/23] platform/x86: Intel SGX driver

2018-11-25 Thread Andy Lutomirski
Bah, I hit send on a partially written draft. I’ll try again soon. --Andy > On Nov 25, 2018, at 1:59 PM, Andy Lutomirski wrote: > > > >> On Nov 25, 2018, at 10:55 AM, Dr. Greg wrote: >> > >> >> >> The notion of a launch enclave is critical to establishing these >> guarantees. As soon

Re: linux-next: build warnings after merge of the cifs tree

2018-11-25 Thread Steve French
Both of those cases are intentional fallthroughs and there are existing comments in the code noting the reasons for them to fallthrough (also can see the reasoning for these in the commits which introduced them from Sachin c369c9a4a7c82) and dde2356c84662) On Sun, Nov 25, 2018 at 6:14 PM Stephen

  1   2   3   >