Re: [PATCH] Staging:fwserial Move LINUX_VENDOR_ID to firewire.h

2018-07-09 Thread Greg KH
On Mon, Jul 09, 2018 at 11:52:30AM -0400, Janani Sankara Babu wrote: > This driver uses the same unregistered vendor id that the > firewire core does (0xd00d1e). Hence it is exposed as a > define in firewire.h. > > Signed-off-by:Janani Sankara Babu > --- > drivers/staging/fwserial/fwserial.c | 1

[PATCH] mmc: core: improve rationality of bus width setting for HS400es

2018-07-09 Thread Hongjie Fang
mmc_select_hs400es() calls mmc_select_bus_width() which will try to set 4bit transfer mode if fail to set 8bit mode. The problem is that the bus width should not be set to 4bit in HS400es mode. Signed-off-by: Hongjie Fang --- drivers/mmc/core/mmc.c | 23 +-- 1 file changed, 2

Re: [PATCH v2 1/2] clk: qcom: Add support for RCG to register for DFS

2018-07-09 Thread Stephen Boyd
Quoting Taniya Das (2018-06-28 04:47:30) > Dynamic Frequency switch is a feature of clock controller by which request > from peripherals allows automatic switching frequency of input clock. > There are various performance levels associated to a root clock generator. > Register the root clock genera

Re: [PATCH v3 3/3] clk: qcom: Add display clock controller driver for SDM845

2018-07-09 Thread Taniya Das
On 7/9/2018 11:46 AM, Stephen Boyd wrote: Quoting Taniya Das (2018-07-08 20:38:03) Hello Stephen, Thanks for your review comments. On 7/9/2018 5:24 AM, Stephen Boyd wrote: Quoting Taniya Das (2018-06-23 07:19:27) diff --git a/drivers/clk/qcom/dispcc-sdm845.c b/drivers/clk/qcom/dispcc-sdm8

Re: [RESEND PATCH v2] devres: Really align data field to unsigned long long

2018-07-09 Thread Geert Uytterhoeven
On Mon, Jul 9, 2018 at 7:49 AM Greg KH wrote: > On Mon, Jul 09, 2018 at 07:44:44AM +0300, Alexey Brodkin wrote: > > Depending on ABI "long long" type of a particular 32-bit CPU > > might be aligned by either word (32-bits) or double word (64-bits). Or even 16-bit (on e.g. m68k). > > --- a/driver

RE: [PATCH] clk: clk-fixed-factor: Use new macro CLK_OF_DECLARE_DRIVER

2018-07-09 Thread Stephen Boyd
Quoting Rajan Vaja (2018-06-03 20:41:27) > > > > > > On the other hand, even if registration failed, that node will be > > > > > > marked as OF_POPULATED, so probe of clk-fixed-factor.c will also not > > > > > > be called and that DT fixed-factor clock would never be registered. > > > > > > > > > >

Re: [PATCH v4 1/1] arm64: dts: mediatek: add mt6765 support

2018-07-09 Thread Marc Zyngier
On Mon, 9 Jul 2018 14:05:02 +0800 Mars Cheng wrote: > This adds basic chip support for MT6765 SoC. > > Signed-off-by: Mars Cheng Acked-by: Marc Zyngier M. -- Without deviation from the norm, progress is not possible.

[PATCH v2 2/2] ARM: OMAP2+: sleep33/43xx: Add RTC-Mode support

2018-07-09 Thread Keerthy
Add support for RTC mode to low level suspend code. This includes providing the rtc base address for the assembly code to configuring the PMIC_PWR_EN line late in suspend to enter RTC+DDR mode. Note: This patch also fold in left out space parameter for am33xx_emif_sram_table and am43xx_emif_sram_t

[PATCH v2 1/2] ARM: OMAP2+: sleep33/43xx: Make sleep actions configurable

2018-07-09 Thread Keerthy
From: Dave Gerlach Add an argument to the sleep33xx and sleep43xx code to allow us to set flags to determine which portions of the code get called in order to use the same code for multiple power saving modes. This patch allows us to decide whether or not we flush and disable caches, save EMIF co

Build regressions/improvements in v4.18-rc4

2018-07-09 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v4.18-rc4[1] compared to v4.17[2]. Summarized: - build errors: +24/-1 - build warnings: +197/-46416 JFYI, when comparing v4.18-rc4[1] to v4.18-rc3[3], the summaries are: - build errors: +17/-0 - build warnings: +149/-72

Re: [PATCH v3 3/3] clk: qcom: Add display clock controller driver for SDM845

2018-07-09 Thread Stephen Boyd
Quoting Taniya Das (2018-07-09 00:07:21) > > > On 7/9/2018 11:46 AM, Stephen Boyd wrote: > >> > >> > Why is the nocache flag needed? Applies to all clks in this file. > >> > > >> > >> This flag is required for all RCGs whose PLLs are controlled outside the > >> clock controller. The display c

Re: [PATCH -mm -v4 03/21] mm, THP, swap: Support PMD swap mapping in swap_duplicate()

2018-07-09 Thread Huang, Ying
Dan Williams writes: > On Thu, Jun 21, 2018 at 8:55 PM Huang, Ying wrote: >> >> From: Huang Ying >> >> To support to swapin the THP as a whole, we need to create PMD swap >> mapping during swapout, and maintain PMD swap mapping count. This >> patch implements the support to increase the PMD sw

Re: [PATCH] drm/cirrus: flip default to 32bpp

2018-07-09 Thread Daniel Vetter
On Fri, Jul 06, 2018 at 02:35:07PM -0400, Adam Jackson wrote: > On Fri, 2018-07-06 at 11:12 +0200, Gerd Hoffmann wrote: > > cirrus can handle 1024x768 (and slightly higher) with 24bpp depth. > > cirrus can handle up to 800x600 with 32bpp. > > 16bpp is maybe a better choice? Nobody's using cirrus b

Re: [PATCH] x86/mtrr: don't copy out-of-bounds data in mtrr_write

2018-07-09 Thread Jann Horn
On Mon, Jul 9, 2018 at 8:53 AM Andy Shevchenko wrote: > > On Fri, 2018-07-06 at 23:50 +0200, Jann Horn wrote: > > Don't access the provided buffer out of bounds - this can cause a > > kernel > > out-of-bounds read when invoked through sys_splice() or other things > > that > > use kernel_write()/__

Re: [alsa-devel] [PATCH v3 2/5] ASoC: qcom: Add support to parse common audio device nodes

2018-07-09 Thread Vinod
On 06-07-18, 18:51, Srinivas Kandagatla wrote: > > > On 06/07/18 10:43, Rohit kumar wrote: > > This adds support to parse cpu, platform and codec > > device nodes and add them in dai-links. Also, add > > API to add slave components associated with machine > > driver. > > > > Signed-off-by: Rohit

[PATCH] mm, oom: remove sleep from under oom_lock

2018-07-09 Thread Michal Hocko
From: Michal Hocko Tetsuo has pointed out that since 27ae357fa82b ("mm, oom: fix concurrent munlock and oom reaper unmap, v3") we have a strong synchronization between the oom_killer and victim's exiting because both have to take the oom_lock. Therefore the original heuristic to sleep for a short

Re: [alsa-devel] [PATCH v3 3/5] ASoC: qcom: add sdm845 sound card support

2018-07-09 Thread Vinod
On 06-07-18, 15:13, Rohit kumar wrote: > +static void sdm845_init_supplies(struct device *dev) > +{ > + struct snd_soc_card *card = dev_get_drvdata(dev); > + struct sdm845_snd_data *data = snd_soc_card_get_drvdata(card); > + > + data->vdd_supply = regulator_get(dev, "cdc-vdd"); > +

Re: [PATCH v2] rtc: OMAP: Add support for rtc-only mode

2018-07-09 Thread Johan Hovold
On Mon, Jul 09, 2018 at 11:41:49AM +0530, Keerthy wrote: > Prepare rtc driver for rtc-only with DDR in self-refresh mode. > omap_rtc_power_off now should cater to two features: > > 1) RTC plus DDR in self-refresh is power a saving mode where in the > entire system including the different voltage r

[PATCH] ext4: remove abnormal set for I_DATA_SEM subclass

2018-07-09 Thread Junil Lee
The -EBUSY return value of dquot_enable() function means that just want to update flags. If some users make a duplicate request to update flags, lockdep could catch the false positive casued by needing to allocate a quota block from inside ext4_map_blocks(), while holding i_data_sem for a data inod

Re: [PATCH v2 2/3] clk: tegra: Add sdmmc mux divider clock

2018-07-09 Thread Peter De Schrijver
On Fri, Jul 06, 2018 at 11:18:30AM -0700, Stephen Boyd wrote: > Quoting Aapo Vienamo (2018-07-04 03:17:34) > > diff --git a/drivers/clk/tegra/clk-sdmmc-mux.c > > b/drivers/clk/tegra/clk-sdmmc-mux.c > > new file mode 100644 > > index 000..8e19cb3 > > --- /dev/null > > +++ b/drivers/clk/tegra/cl

[PATCH 1/2] mm: introduce put_user_page(), placeholder version

2018-07-09 Thread john . hubbard
From: John Hubbard Introduces put_user_page(), which simply calls put_page(). This provides a safe way to update all get_user_pages*() callers, so that they call put_user_page(), instead of put_page(). Also adds release_user_pages(), a drop-in replacement for release_pages(). This is intended to

[PATCH 0/2] mm/fs: put_user_page() proposal

2018-07-09 Thread john . hubbard
From: John Hubbard Hi, With respect to tracking get_user_pages*() pages with page->dma_pinned* fields [1], I spent a few days retrofitting most of the get_user_pages*() call sites, by adding calls to a new put_user_page() function, in place of put_page(), where appropriate. This will work, but i

[PATCH 2/2] goldfish_pipe/mm: convert to the new put_user_page() call

2018-07-09 Thread john . hubbard
From: John Hubbard For code that retains pages via get_user_pages*(), release those pages via the new put_user_page(), instead of put_page(). Also: rename release_user_pages(), to avoid a naming conflict with the new external function of the same name. CC: Al Viro Signed-off-by: John Hubbard

Vibrations on Droid 4?

2018-07-09 Thread Pavel Machek
Hi! Do you have vibrations on d4 working? I believe I have required drivers enabled, but no luck: user@devuan:/sys/bus/platform/drivers$ ls pwm-vibrator/ bind uevent unbind user@devuan:/sys/bus/platform/drivers$ ls omap-dmtimer-pwm/ bind uevent unbind Best regards,

Re: [PATCH v2 2/3] dt-bindings: xilinx: Add missing zynq boards and sort entries

2018-07-09 Thread Michal Simek
On 6.7.2018 08:01, Luis Araneda wrote: > The bindings were missing when adding the device-tree files > > Also, improve description of existing boards, sort them > alphabetically by manufacturer, and migrate the contents > of adapteva dt dindigns into Xilinx's > > Signed-off-by: Luis Araneda > --

[GIT PULL] nds32 fixes for 4.18

2018-07-09 Thread Greentime Hu
The following changes since commit ce397d215ccd07b8ae3f71db689aedb85d56ab40: Linux 4.18-rc1 (2018-06-17 08:04:49 +0900) are available in the Git repository at: ssh://g...@gitolite.kernel.org/pub/scm/linux/kernel/git/greentime/linux.git tags/nds32-for-linus-4.18 for you to fetch changes up

Re: [PATCH] x86/mtrr: don't copy out-of-bounds data in mtrr_write

2018-07-09 Thread Andy Shevchenko
On Mon, 2018-07-09 at 09:41 +0200, Jann Horn wrote: > On Mon, Jul 9, 2018 at 8:53 AM Andy Shevchenko > wrote: > > > > On Fri, 2018-07-06 at 23:50 +0200, Jann Horn wrote: > > > Don't access the provided buffer out of bounds - this can cause a > > > kernel > > > out-of-bounds read when invoked thro

[PATCH v3 0/3] serial: 8250_dw: add fractional divisor support

2018-07-09 Thread Jisheng Zhang
For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a valid divisor latch fraction register. The fractional divisor width is 4bits ~ 6bits. patch1 introduces necessary hooks to 8250 core. patch2 exports serial8250_do_set_divisor() patch3 implements the fractional divisor support for

serial: 8250: introduce get_divisor() and set_divisor() hook

2018-07-09 Thread Jisheng Zhang
Add these two hooks so that they can be overridden with driver specific implementations. Signed-off-by: Jisheng Zhang Reviewed-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_core.c | 4 drivers/tty/serial/8250/8250_port.c | 27 +++ include/linux/serial_core.h

[PATCH v3 1/3] serial: 8250: introduce get_divisor() and set_divisor() hook

2018-07-09 Thread Jisheng Zhang
Add these two hooks so that they can be overridden with driver specific implementations. Signed-off-by: Jisheng Zhang Reviewed-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_core.c | 4 drivers/tty/serial/8250/8250_port.c | 27 +++ include/linux/serial_core.h

Re: serial: 8250: introduce get_divisor() and set_divisor() hook

2018-07-09 Thread Jisheng Zhang
oops, sorry, please ignore this patch. On Mon, 9 Jul 2018 16:19:22 +0800 Jisheng Zhang wrote: > Add these two hooks so that they can be overridden with driver specific > implementations. > > Signed-off-by: Jisheng Zhang > Reviewed-by: Andy Shevchenko > --- > drivers/tty/serial/8250/8250_core

[PATCH v3 2/3] serial: 8250: export serial8250_do_set_divisor()

2018-07-09 Thread Jisheng Zhang
Some drivers could call serial8250_do_set_divisor() to complete its own set_divisor routine. Export this symbol for code reusing. Signed-off-by: Jisheng Zhang --- drivers/tty/serial/8250/8250_port.c | 5 +++-- include/linux/serial_8250.h | 3 +++ 2 files changed, 6 insertions(+), 2 delet

Re: [PATCH v2] rtc: OMAP: Add support for rtc-only mode

2018-07-09 Thread Keerthy
On Monday 09 July 2018 01:25 PM, Johan Hovold wrote: > On Mon, Jul 09, 2018 at 11:41:49AM +0530, Keerthy wrote: >> Prepare rtc driver for rtc-only with DDR in self-refresh mode. >> omap_rtc_power_off now should cater to two features: >> >> 1) RTC plus DDR in self-refresh is power a saving mode w

[PATCH v3 3/3] serial: 8250_dw: add fractional divisor support

2018-07-09 Thread Jisheng Zhang
For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a valid divisor latch fraction register. The fractional divisor width is 4bits ~ 6bits. Now the preparation is done, it's easy to add the feature support. This patch firstly tries to get the fractional divisor width during probe, th

Re: [PATCH] locking/lockdep: Report comm/pid/timestamp information

2018-07-09 Thread Peter Zijlstra
On Mon, Jul 09, 2018 at 02:57:25AM +0200, Eugeniu Rosca wrote: > diff --git a/include/linux/lockdep.h b/include/linux/lockdep.h > index 6fc77d4dbdcd..eeed7ea2e198 100644 > --- a/include/linux/lockdep.h > +++ b/include/linux/lockdep.h > @@ -186,6 +186,10 @@ struct lock_list { > struct list_hea

Re: [PATCH v2] x86-64: use 32-bit XOR to zero registers

2018-07-09 Thread Pavel Machek
On Thu 2018-07-05 09:12:16, Ingo Molnar wrote: > > * Pavel Machek wrote: > > > On Mon 2018-07-02 04:31:54, Jan Beulich wrote: > > > Some Intel CPUs don't recognize 64-bit XORs as zeroing idioms. Zeroing > > > idioms don't require execution bandwidth, as they're being taken care > > > of in the f

Re: [PATCH v3 3/3] serial: 8250_dw: add fractional divisor support

2018-07-09 Thread Jisheng Zhang
Hi Andy, On Mon, 9 Jul 2018 16:23:15 +0800 Jisheng Zhang wrote: > For Synopsys DesignWare 8250 uart which version >= 4.00a, there's a > valid divisor latch fraction register. The fractional divisor width is > 4bits ~ 6bits. > > Now the preparation is done, it's easy to add the feature support. >

[PATCH v9 00/17] Improve shrink_slab() scalability (old complexity was O(n^2), new is O(n))

2018-07-09 Thread Kirill Tkhai
[ Vladimir, Shakeel, I didn't removed your signs since changes ] [ are not signigicant. Please, say if they should not be here. ] Hi, this patches solves the problem with slow shrink_slab() occuring on the machines having many shrinkers and memory cgroups (i.e., with many containers). The problem

[PATCH 04/12] cpufreq: use for_each_if

2018-07-09 Thread Daniel Vetter
Avoids the inverted condition compared to the open coded version. Signed-off-by: Daniel Vetter Cc: "Rafael J. Wysocki" Cc: Viresh Kumar Cc: linux...@vger.kernel.org --- include/linux/cpufreq.h | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/include/linux/cpufreq.h b

[PATCH v9 01/17] list_lru: Combine code under the same define

2018-07-09 Thread Kirill Tkhai
These two pairs of blocks of code are under the same #ifdef #else #endif. Signed-off-by: Kirill Tkhai Acked-by: Vladimir Davydov Tested-by: Shakeel Butt --- mm/list_lru.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/mm/list_lru.c b/mm/list_lru.c ind

[PATCH v9 02/17] mm: Introduce CONFIG_MEMCG_KMEM as combination of CONFIG_MEMCG && !CONFIG_SLOB

2018-07-09 Thread Kirill Tkhai
This patch introduces new config option, which is used to replace repeating CONFIG_MEMCG && !CONFIG_SLOB pattern. Next patches add a little more memcg+kmem related code, so let's keep the defines more clearly. Signed-off-by: Kirill Tkhai Acked-by: Vladimir Davydov Tested-by: Shakeel Butt --- i

[PATCH v9 08/17] From: Kirill Tkhai

2018-07-09 Thread Kirill Tkhai
fs: Propagate shrinker::id to list_lru The patch adds list_lru::shrinker_id field, and populates it by registered shrinker id. This will be used to set correct bit in memcg shrinkers map by lru code in next patches, after there appeared the first related to memcg element in list_lru. Signed-off-

[PATCH v9 06/17] mm: Refactoring in workingset_init()

2018-07-09 Thread Kirill Tkhai
Use prealloc_shrinker()/register_shrinker_prepared() instead of register_shrinker(). This will be used in next patch. Signed-off-by: Kirill Tkhai Acked-by: Vladimir Davydov Tested-by: Shakeel Butt --- mm/workingset.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a

[PATCH v9 03/17] mm: Assign id to every memcg-aware shrinker

2018-07-09 Thread Kirill Tkhai
The patch introduces shrinker::id number, which is used to enumerate memcg-aware shrinkers. The number start from 0, and the code tries to maintain it as small as possible. This will be used as to represent a memcg-aware shrinkers in memcg shrinkers map. Since all memcg-aware shrinkers are based

[PATCH v9 04/17] memcg: Move up for_each_mem_cgroup{, _tree} defines

2018-07-09 Thread Kirill Tkhai
Next patch requires these defines are above their current position, so here they are moved to declarations. Signed-off-by: Kirill Tkhai Acked-by: Vladimir Davydov Tested-by: Shakeel Butt --- mm/memcontrol.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-

[PATCH v9 07/17] fs: Refactoring in alloc_super()

2018-07-09 Thread Kirill Tkhai
Do two list_lru_init_memcg() calls after prealloc_super(). destroy_unused_super() in fail path is OK with this. Next patch needs such the order. Signed-off-by: Kirill Tkhai Acked-by: Vladimir Davydov Tested-by: Shakeel Butt --- fs/super.c |8 1 file changed, 4 insertions(+), 4 del

[PATCH v9 05/17] mm: Assign memcg-aware shrinkers bitmap to memcg

2018-07-09 Thread Kirill Tkhai
Imagine a big node with many cpus, memory cgroups and containers. Let we have 200 containers, every container has 10 mounts, and 10 cgroups. All container tasks don't touch foreign containers mounts. If there is intensive pages write, and global reclaim happens, a writing task has to iterate over a

[PATCH v9 09/17] list_lru: Add memcg argument to list_lru_from_kmem()

2018-07-09 Thread Kirill Tkhai
This is just refactoring to allow next patches to have memcg pointer in list_lru_from_kmem(). Signed-off-by: Kirill Tkhai Acked-by: Vladimir Davydov Tested-by: Shakeel Butt --- mm/list_lru.c | 25 + 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/mm/lis

[PATCH v9 11/17] list_lru: Pass lru argument to memcg_drain_list_lru_node()

2018-07-09 Thread Kirill Tkhai
This is just refactoring to allow next patches to have lru pointer in memcg_drain_list_lru_node(). Signed-off-by: Kirill Tkhai Acked-by: Vladimir Davydov Tested-by: Shakeel Butt --- mm/list_lru.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mm/list_lru.c b/mm/lis

[PATCH v9 12/17] mm: Export mem_cgroup_is_root()

2018-07-09 Thread Kirill Tkhai
This will be used in next patch. Signed-off-by: Kirill Tkhai Acked-by: Vladimir Davydov Tested-by: Shakeel Butt --- include/linux/memcontrol.h | 10 ++ mm/memcontrol.c|5 - 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/include/linux/memcontrol.h

[PATCH v9 10/17] From: Kirill Tkhai

2018-07-09 Thread Kirill Tkhai
list_lru: Pass dst_memcg argument to memcg_drain_list_lru_node() This is just refactoring to allow next patches to have dst_memcg pointer in memcg_drain_list_lru_node(). Signed-off-by: Kirill Tkhai Acked-by: Vladimir Davydov Tested-by: Shakeel Butt --- include/linux/list_lru.h |2 +- mm/l

[PATCH v9 14/17] mm: Iterate only over charged shrinkers during memcg shrink_slab()

2018-07-09 Thread Kirill Tkhai
Using the preparations made in previous patches, in case of memcg shrink, we may avoid shrinkers, which are not set in memcg's shrinkers bitmap. To do that, we separate iterations over memcg-aware and !memcg-aware shrinkers, and memcg-aware shrinkers are chosen via for_each_set_bit() from the bitma

[PATCH v9 15/17] mm: Generalize shrink_slab() calls in shrink_node()

2018-07-09 Thread Kirill Tkhai
From: Vladimir Davydov The patch makes shrink_slab() be called for root_mem_cgroup in the same way as it's called for the rest of cgroups. This simplifies the logic and improves the readability. Signed-off-by: Vladimir Davydov ktkhai: Description written. Signed-off-by: Kirill Tkhai Tested-by:

[PATCH v9 13/17] mm: Set bit in memcg shrinker bitmap on first list_lru item apearance

2018-07-09 Thread Kirill Tkhai
Introduce set_shrinker_bit() function to set shrinker-related bit in memcg shrinker bitmap, and set the bit after the first item is added and in case of reparenting destroyed memcg's items. This will allow next patch to make shrinkers be called only, in case of they have charged objects at the mom

[PATCH v9 16/17] From: Kirill Tkhai

2018-07-09 Thread Kirill Tkhai
mm: Add SHRINK_EMPTY shrinker methods return value We need to differ the situations, when shrinker has very small amount of objects (see vfs_pressure_ratio() called from super_cache_count()), and when it has no objects at all. Currently, in the both of these cases, shrinker::count_objects() return

[PATCH v9 17/17] mm: Clear shrinker bit if there are no objects related to memcg

2018-07-09 Thread Kirill Tkhai
To avoid further unneed calls of do_shrink_slab() for shrinkers, which already do not have any charged objects in a memcg, their bits have to be cleared. This patch introduces a lockless mechanism to do that without races without parallel list lru add. After do_shrink_slab() returns SHRINK_EMPTY t

Re: [PATCH v9 00/17] Improve shrink_slab() scalability (old complexity was O(n^2), new is O(n))

2018-07-09 Thread Kirill Tkhai
On 09.07.2018 11:37, Kirill Tkhai wrote: > [ Vladimir, Shakeel, I didn't removed your signs since changes ] > [ are not signigicant. Please, say if they should not be here. ] > > Hi, > > this patches solves the problem with slow shrink_slab() occuring > on the machines having many shrinkers and m

[PATCH 01/12] kernel.h: Add for_each_if()

2018-07-09 Thread Daniel Vetter
To avoid compilers complainig about ambigious else blocks when putting an if condition into a for_each macro one needs to invert the condition and add a dummy else. We have a nice little convenience macro for that in drm headers, let's move it out. Subsequent patches will roll it out to other place

[PATCH] arm64: neon: Add preemption protection for kernel_neon_busy

2018-07-09 Thread Yandong.Zhao
From: Yandong Zhao may_use_simd() can be called in any case and access kernel_neon_busy, for example: BUG_ON(!may_use_simd()). This patch ensures that migration will not occur during program access to kernel_neon_busy. Signed-off-by: Yandong Zhao --- arch/arm64/include/asm/simd.h | 16 ---

[PATCH] microblaze: warn if of_iomap() failed

2018-07-09 Thread Nicholas Mc Guire
Probably this should be a BUG_ON() as this is such a low level fault that continuing operations probably makes little sense. Patch was compiletested with: mmu_defconfig (implies CONFIG_PCI_XILINX=y) Patch is against 4.18-rc3 (localversion-next is next-20180709) arch/microblaze/pci/xilinx_pci.c | 1

Re: [PATCH v2] x86-64: use 32-bit XOR to zero registers

2018-07-09 Thread Jan Beulich
>>> On 09.07.18 at 10:33, wrote: > Anyway, normally assembler is the one who chooses instruction > encoding. There are different possible views here, and I personally think that while it is a compiler's job to chose optimal encodings, assemblers shouldn't by default alter what the programmer (or

Re: [PATCH] x86: Avoid pr_cont() in show_opcodes()

2018-07-09 Thread Peter Zijlstra
On Sat, Jul 07, 2018 at 10:54:28PM +0900, Tetsuo Handa wrote: > >> Since syzbot is confused by concurrent printk() messages [1], > >> this patch changes show_opcodes() to use snprintf(). But how big of a problem is that really? We can't very well remove all pr_cont stuff from the kernel.

Re: [PATCH 0/2] mm/fs: put_user_page() proposal

2018-07-09 Thread Nicholas Piggin
On Mon, 9 Jul 2018 01:05:52 -0700 john.hubb...@gmail.com wrote: > From: John Hubbard > > Hi, > > With respect to tracking get_user_pages*() pages with page->dma_pinned* > fields [1], I spent a few days retrofitting most of the get_user_pages*() > call sites, by adding calls to a new put_user_p

Re: [RESEND PATCH v4 1/2] dt-bindings: at24: Add address-width property

2018-07-09 Thread Bartosz Golaszewski
2018-07-09 5:12 GMT+02:00 Chiang, AlanX : > Hi Robert, > >> -Original Message- >> From: Robert P. J. Day [mailto:rpj...@crashcourse.ca] >> Sent: Friday, July 6, 2018 4:24 AM >> To: Rob Herring >> Cc: Chiang, AlanX ; linux-...@vger.kernel.org; Yeh, >> Andy ; sakari.ai...@linux.intel.com; >>

Re: [RFC] Make need_resched() return true when rcu_urgent_qs requested

2018-07-09 Thread Peter Zijlstra
On Fri, Jul 06, 2018 at 10:11:50AM -0700, Paul E. McKenney wrote: > On Fri, Jul 06, 2018 at 06:29:05PM +0200, Peter Zijlstra wrote: > > On Fri, Jul 06, 2018 at 03:53:30PM +0100, David Woodhouse wrote: > > > diff --git a/include/linux/sched.h b/include/linux/sched.h > > > index e4d4e60..89f5814 1006

Re: [RFC] Make need_resched() return true when rcu_urgent_qs requested

2018-07-09 Thread Peter Zijlstra
On Fri, Jul 06, 2018 at 06:14:44PM +0100, David Woodhouse wrote: > On Fri, 2018-07-06 at 10:11 -0700, Paul E. McKenney wrote: > > > The preempt state is alread a bit complicated and shadowed in the > > > preempt_count (on some architectures) adding additional bits to it like > > > this is just aski

[PATCH] Staging: gdm724x: gdm_tty.c:Fixed Macro argument reuse

2018-07-09 Thread Jaya Durga
From: root CHECK: Macro argument reuse 'gdm' - possible side-effects? convert GDM_TTY_READY to gdm_tty_ready static function to fix checkpath check Signed-off-by: Jaya Durga --- drivers/staging/gdm724x/gdm_tty.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git

Re: [PATCH] sched/core: remove get_cpu() from sched_fork()

2018-07-09 Thread Peter Zijlstra
On Fri, Jul 06, 2018 at 03:32:00PM +0200, Sebastian Andrzej Siewior wrote: > On 2018-07-06 15:18:08 [+0200], Peter Zijlstra wrote: > > On Fri, Jul 06, 2018 at 03:06:15PM +0200, Sebastian Andrzej Siewior wrote: > > > Based on this it is possible to remove get_cpu() and use > > > smp_processor_id() f

[PATCH V2 0/5] KVM/x86/hyper-V: Introduce PV guest address space mapping flush support

2018-07-09 Thread Tianyu Lan
Hyper-V provides a para-virtualization hypercall HvFlushGuestPhysicalAddressSpace to flush nested VM address space mapping in l1 hypervisor and it's to reduce overhead of flushing ept tlb among vcpus. The tradition way is to send IPIs to all affected vcpus and executes INVEPT on each vcpus. It w

[PATCH V2 1/5] X86/Hyper-V: Add flush HvFlushGuestPhysicalAddressSpace hypercall support

2018-07-09 Thread Tianyu Lan
Hyper-V supports a pv hypercall HvFlushGuestPhysicalAddressSpace to flush nested VM address space mapping in l1 hypervisor and it's to reduce overhead of flushing ept tlb among vcpus. This patch is to implement it. Signed-off-by: Lan Tianyu --- arch/x86/hyperv/Makefile | 2 +- arch/x8

[PATCH V2 2/5] KVM: Add tlb remote flush callback in kvm_x86_ops.

2018-07-09 Thread Tianyu Lan
This patch is to provide a way for platforms to register hv tlb remote flush callback and this helps to optimize operation of tlb flush among vcpus for nested virtualization case. Signed-off-by: Lan Tianyu --- Change since v1: Add kvm_arch_hv_flush_remote_tlb() to avoid compilation issue f

[PATCH V2 3/5] KVM/VMX: Add identical ept table pointer check

2018-07-09 Thread Tianyu Lan
This patch is to check ept table pointer of each cpus when set ept tables and store identical ept table pointer if all ept table pointers of single VM are same. This is for support of para-virt ept flush hypercall. Signed-off-by: Lan Tianyu --- Change since v1: Replace identical_ept_pointe

[PATCH V2 5/5] X86/Hyper-V: Add hyperv_nested_flush_guest_mapping ftrace support

2018-07-09 Thread Tianyu Lan
This patch is to add hyperv_nested_flush_guest_mapping support to trace hvFlushGuestPhysicalAddressSpace hypercall. Signed-off-by: Lan Tianyu --- arch/x86/hyperv/nested.c| 3 +++ arch/x86/include/asm/trace/hyperv.h | 14 ++ 2 files changed, 17 insertions(+) diff --git a

[PATCH V2 4/5] KVM/x86: Add tlb_remote_flush callback support for vmx

2018-07-09 Thread Tianyu Lan
Register tlb_remote_flush callback for vmx when hyperv capability of nested guest mapping flush is detected. The interface can help to reduce overhead when flush ept table among vcpus for nested VM. The tradition way is to send IPIs to all affected vcpus and executes INVEPT on each vcpus. It will t

Re: [PATCH v6 21/21] s390: doc: detailed specifications for AP virtualization

2018-07-09 Thread Pierre Morel
On 03/07/2018 10:10, Harald Freudenberger wrote: On 29.06.2018 23:11, Tony Krowiak wrote: ...snip... +The process for reserving an AP queue for use by a KVM guest is: + +* The vfio-ap driver during its initialization will perform the following: + * Create the 'vfio_ap' root device - /sys/devic

Re: [patch 4/7] x86/kvmclock: Cleanup the code

2018-07-09 Thread Peter Zijlstra
On Fri, Jul 06, 2018 at 06:13:11PM +0200, Thomas Gleixner wrote: > - native_write_msr(msr_kvm_wall_clock, low, high); > + wrmsrl(msr_kvm_wall_clock, slow_virt_to_phys(&wall_clock)); Does it matter that you went from an explicit native WRMSR instruction to a potentially paravirt MSR thing?

Re: [PATCH v3 3/5] ASoC: qcom: add sdm845 sound card support

2018-07-09 Thread Srinivas Kandagatla
Minor Nits... On 06/07/18 10:43, Rohit kumar wrote: +struct sdm845_snd_data { + struct snd_soc_card *card; + struct regulator *vdd_supply; + uint32_t pri_mi2s_clk_count; + uint32_t quat_tdm_clk_count; +}; + + Unnecessary extra line.. +static unsigned int tdm_slot_offset

Re: [PATCH v2] tg: show the sum wait time of an task group

2018-07-09 Thread 王贇
On 2018/7/4 上午11:27, 王贇 wrote: Although we can rely on cpuacct to present the cpu usage of task group, it is hard to tell how intense the competition is between these groups on cpu resources. Monitoring the wait time of each process or sched_debug could cost too much, and there is no good way

Re: [PATCH] Staging: gdm724x: gdm_tty.c:Fixed Macro argument reuse

2018-07-09 Thread Greg KH
On Mon, Jul 09, 2018 at 02:14:06PM +0530, Jaya Durga wrote: > From: root That's an odd author name :) > > CHECK: Macro argument reuse 'gdm' - possible side-effects? > > convert GDM_TTY_READY to gdm_tty_ready static function > to fix checkpath check > > Signed-off-by: Jaya Durga It doesn't m

Re: [RFC] Make need_resched() return true when rcu_urgent_qs requested

2018-07-09 Thread David Woodhouse
On Mon, 2018-07-09 at 10:53 +0200, Peter Zijlstra wrote: > On Fri, Jul 06, 2018 at 10:11:50AM -0700, Paul E. McKenney wrote: > > On Fri, Jul 06, 2018 at 06:29:05PM +0200, Peter Zijlstra wrote: > > > On Fri, Jul 06, 2018 at 03:53:30PM +0100, David Woodhouse wrote: > > > > > > > > diff --git a/inc

Re: [PATCH 1/4] i2c: imx: Fix reinit_completion() use

2018-07-09 Thread Esben Haabendal
Uwe Kleine-König writes: > Cc += Yuan Yao who authored DMA support and the NXP team. > > On Wed, May 23, 2018 at 11:56:20AM +0200, Esben Haabendal wrote: >> From: Esben Haabendal >> >> Make sure to call reinit_completion() before dma is started to avoid race >> condition where reinit_compleitio

Re: [PATCH v6 21/21] s390: doc: detailed specifications for AP virtualization

2018-07-09 Thread Pierre Morel
On 03/07/2018 01:10, Halil Pasic wrote: On 06/29/2018 11:11 PM, Tony Krowiak wrote: This patch provides documentation describing the AP architecture and design concepts behind the virtualization of AP devices. It also includes an example of how to configure AP devices for exclusive use of KVM

Re: [PATCH v2] ACPI: bus.c: Let acpi_device_get_match_data() return DT compatibility data

2018-07-09 Thread Rafael J. Wysocki
On Wednesday, July 4, 2018 4:40:34 PM CEST Andy Shevchenko wrote: > On Tue, Jul 3, 2018 at 9:09 AM, Nikolaus Voss wrote: > > When using ACPI with ACPI_DT_NAMESPACE_HID/ PRP0001 HID and referring to > > of_device_id table "compatible" strings in DSD, a pointer to the > > corresponding DT table entr

Re: [PATCH 2/4] i2c: imx: Fix race condition in dma read

2018-07-09 Thread Esben Haabendal
Uwe Kleine-König writes: > On Wed, May 23, 2018 at 11:56:21AM +0200, Esben Haabendal wrote: >> From: Esben Haabendal >> >> This fixes a race condition, where the DMAEN bit ends up being set after >> I2C slave has transmitted a byte following the dummy read. When that >> happens, an interrupt i

[patch 8/7] x86/kvmclock: Avoid TSC recalibration

2018-07-09 Thread Peter Zijlstra
If the host gives us a TSC rate, assume it is good and don't try and recalibrate things against virtual timer hardware. Signed-off-by: Peter Zijlstra (Intel) --- --- a/arch/x86/kernel/kvmclock.c +++ b/arch/x86/kernel/kvmclock.c @@ -140,7 +140,16 @@ static inline void kvm_sched_clock_init( */

[char-misc-next] mei: don't update offset in write

2018-07-09 Thread Tomas Winkler
From: Alexander Usyskin MEI enables writes of complete messages only while read can be performed in parts, hence write should not update the file offset to not break interleaving partial reads with writes. Cc: Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler --- drivers/misc/mei

Re: [RFC][PATCH v2] selftest: timers: Tweak raw_skew to SKIP when ADJ_OFFSET/other clock adjustments are in progress

2018-07-09 Thread Miroslav Lichvar
On Thu, Jul 05, 2018 at 10:50:31AM -0700, John Stultz wrote: > In the past we've warned when ADJ_OFFSET was in progress, usually > caused by ntpd or some other time adjusting daemon running in non > steady sate, which can cause the skew calculations to be incorrect > > Thus, this patch sets a flag

Re: [PATCH v2 2/2] nvmem: Add Spreadtrum SC27XX efuse support

2018-07-09 Thread Baolin Wang
Hi Srinivas, On 25 June 2018 at 14:31, Baolin Wang wrote: > From: Freeman Liu > > This patch add the efuse driver which is embeded in Spreadtrum SC27XX > series PMICs. The sc27xx efuse contains 32 blocks and each block's > data width is 16 bits. > > Signed-off-by: Freeman Liu > Signed-off-by: B

Re: [PATCH] perf script python: Fix dict reference counting

2018-07-09 Thread Janne Huttunen
On Sun, 2018-07-08 at 13:17 +0200, Jiri Olsa wrote: > On Fri, Jul 06, 2018 at 09:53:44AM +0300, Janne Huttunen wrote: > > > > The dictionaries are attached to the parameter tuple that steals the > > references. The code should not decrement the reference counters > > explicitly. Otherwise the obje

[PATCH] ARM: dts: qcom: msm8974-hammerhead: increase load on l20 for sdhci

2018-07-09 Thread Bhushan Shah
The kernel would not boot on the hammerhead hardware due to the following error: mmc0: Timeout waiting for hardware interrupt. mmc0: sdhci: SDHCI REGISTER DUMP === mmc0: sdhci: Sys addr: 0x0200 | Version: 0x3802 mmc0: sdhci: Blk size: 0x0200 | Blk cnt: 0x02

Re: [PATCH 03/12] staging:rtl8192u: Remove blank lines before '}' and after '{' characters

2018-07-09 Thread John Whitmore
On Sun, Jul 08, 2018 at 05:38:11PM +0200, Greg KH wrote: > On Sat, Jul 07, 2018 at 03:55:04PM +0100, John Whitmore wrote: > > Coding style change to simply remove the unrequired spaces before a closing > > brace or before an opening brace. > > That would be good, but that's not what this patch doe

Re: [PATCH v2] rtc: OMAP: Add support for rtc-only mode

2018-07-09 Thread Alexandre Belloni
On 09/07/2018 09:55:53+0200, Johan Hovold wrote: > On Mon, Jul 09, 2018 at 11:41:49AM +0530, Keerthy wrote: > > Prepare rtc driver for rtc-only with DDR in self-refresh mode. > > omap_rtc_power_off now should cater to two features: > > > > 1) RTC plus DDR in self-refresh is power a saving mode whe

Re: [PATCH 03/18] fs_context: fix detecting full log buffer

2018-07-09 Thread David Howells
Eric Biggers wrote: > When 'head' and 'tail' wrap around, 'log->head - log->tail' will be > something like '4 - 252 = -248', and comparing that directly to the > array size is wrong. Fix by casting to 'u8'. I think a better fix is to use CIRC_CNT() or CIRC_SPACE(). David

Re: [PATCH v3 3/3] clk: qcom: Add display clock controller driver for SDM845

2018-07-09 Thread Taniya Das
On 7/9/2018 1:07 PM, Stephen Boyd wrote: Quoting Taniya Das (2018-07-09 00:07:21) On 7/9/2018 11:46 AM, Stephen Boyd wrote: > Why is the nocache flag needed? Applies to all clks in this file. > This flag is required for all RCGs whose PLLs are controlled outside the clock controlle

Re: [PATCH 03/18] fs_context: fix detecting full log buffer

2018-07-09 Thread David Howells
David Howells wrote: > > When 'head' and 'tail' wrap around, 'log->head - log->tail' will be > > something like '4 - 252 = -248', and comparing that directly to the > > array size is wrong. Fix by casting to 'u8'. > > I think a better fix is to use CIRC_CNT() or CIRC_SPACE(). Or it would be -

Re: [PATCH v2] rtc: OMAP: Add support for rtc-only mode

2018-07-09 Thread Keerthy
On Monday 09 July 2018 02:59 PM, Alexandre Belloni wrote: > On 09/07/2018 09:55:53+0200, Johan Hovold wrote: >> On Mon, Jul 09, 2018 at 11:41:49AM +0530, Keerthy wrote: >>> Prepare rtc driver for rtc-only with DDR in self-refresh mode. >>> omap_rtc_power_off now should cater to two features: >>>

Re: [PATCH] EDAC, thunderx: Remove VLA usage

2018-07-09 Thread Borislav Petkov
On Fri, Jul 06, 2018 at 01:42:16PM +0200, Jan Glauber wrote: > On Fri, Jun 29, 2018 at 11:48:50AM -0700, Kees Cook wrote: > > In the quest to remove all stack VLA usage from the kernel[1], this > > switches to using a kmalloc-allocated buffer instead of stack space. > > This should be fine since th

Re: [PATCH v2 2/2] nvmem: Add Spreadtrum SC27XX efuse support

2018-07-09 Thread Srinivas Kandagatla
On 09/07/18 10:26, Baolin Wang wrote: Hi Srinivas, On 25 June 2018 at 14:31, Baolin Wang wrote: From: Freeman Liu This patch add the efuse driver which is embeded in Spreadtrum SC27XX series PMICs. The sc27xx efuse contains 32 blocks and each block's data width is 16 bits. Signed-off-by:

Re: [PATCH] perf script python: Fix dict reference counting

2018-07-09 Thread Jiri Olsa
On Mon, Jul 09, 2018 at 12:25:33PM +0300, Janne Huttunen wrote: > On Sun, 2018-07-08 at 13:17 +0200, Jiri Olsa wrote: > > On Fri, Jul 06, 2018 at 09:53:44AM +0300, Janne Huttunen wrote: > > > > > > The dictionaries are attached to the parameter tuple that steals the > > > references. The code shou

[PATCH v2 2/4] i2c: imx: Fix race condition in dma read

2018-07-09 Thread Esben Haabendal
From: Esben Haabendal This fixes a race condition, where the DMAEN bit ends up being set after I2C slave has transmitted a byte following the dummy read. When that happens, an interrupt is generated instead, and no DMA request is generated to kickstart the DMA read, and a timeout happens after D

  1   2   3   4   5   6   7   8   9   >