[PATCH v7 14/20] soc/tegra: pmc: Allow to support more tegras wake

2019-07-31 Thread Sowjanya Komatineni
This patch allows to create separate irq_set_wake and irq_set_type implementations for different tegra designs PMC that has different wake models which require difference wake registers and different programming sequence. AOWAKE model support is available for Tegra186 and Tegra194 only and it resi

[PATCH v7 01/20] pinctrl: tegra: Add suspend and resume support

2019-07-31 Thread Sowjanya Komatineni
This patch adds support for Tegra pinctrl driver suspend and resume. During suspend, context of all pinctrl registers are stored and on resume they are all restored to have all the pinmux and pad configuration for normal operation. Acked-by: Thierry Reding Reviewed-by: Dmitry Osipenko Signed-of

[PATCH v7 13/20] clk: tegra210: Add suspend and resume support

2019-07-31 Thread Sowjanya Komatineni
This patch adds support for clk: tegra210: suspend-resume. All the CAR controller settings are lost on suspend when core power goes off. This patch has implementation for saving and restoring all PLLs and clocks context during system suspend and resume to have the clocks back to same state for no

[PATCH v7 05/20] clk: tegra: pll: Save and restore pll context

2019-07-31 Thread Sowjanya Komatineni
This patch implements save and restore of PLL context. During system suspend, core power goes off and looses the settings of the Tegra CAR controller registers. So during suspend entry pll context is stored and on resume it is restored back along with its state. Acked-by: Thierry Reding Signed-

[PATCH v7 07/20] clk: tegra: clk-periph: Add save and restore support

2019-07-31 Thread Sowjanya Komatineni
This patch implements save and restore context for peripheral fixed clock ops, peripheral gate clock ops, sdmmc mux clock ops, and peripheral clock ops. During system suspend, core power goes off and looses the settings of the Tegra CAR controller registers. So during suspend entry clock and rese

[PATCH v7 09/20] clk: tegra: clk-super: Add save and restore support

2019-07-31 Thread Sowjanya Komatineni
This patch implements save and restore context for clk_super_mux and clk_super. During system supend, core power goes off the and context of Tegra CAR registers is lost. So during suspend entry, context of super clock registers are saved through save_context clk_ops and are restored through resto

[PATCH v7 16/20] arm64: tegra: Enable wake from deep sleep on RTC alarm

2019-07-31 Thread Sowjanya Komatineni
This patch updates device tree for RTC and PMC to allow system wake from deep sleep on RTC alarm. Signed-off-by: Sowjanya Komatineni --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/nvidia/tegra210.dtsi b/ar

[PATCH v7 11/20] cpufreq: tegra124: Add suspend and resume support

2019-07-31 Thread Sowjanya Komatineni
This patch adds suspend and resume pm ops for cpufreq driver. PLLP is the safe clock source for CPU during system suspend and resume as PLLP rate is below the CPU Fmax at Vmin. CPUFreq driver suspend switches the CPU clock source to PLLP and disables the DFLL clock. During system resume, warmboo

[PATCH v7 15/20] soc/tegra: pmc: Add pmc wake support for tegra210

2019-07-31 Thread Sowjanya Komatineni
This patch implements PMC wakeup sequence for Tegra210 and defines common used RTC alarm wake event. Signed-off-by: Sowjanya Komatineni --- drivers/soc/tegra/pmc.c | 98 + 1 file changed, 98 insertions(+) diff --git a/drivers/soc/tegra/pmc.c b/dri

[PATCH v7 10/20] clk: tegra: clk-dfll: Add suspend and resume support

2019-07-31 Thread Sowjanya Komatineni
This patch implements DFLL suspend and resume operation. During system suspend entry, CPU clock will switch CPU to safe clock source of PLLP and disables DFLL clock output. DFLL driver suspend confirms DFLL disable state and errors out on being active. DFLL is re-initialized during the DFLL driv

[PATCH v7 19/20] arm64: dts: tegra210-p2180: Jetson TX1 SC7 timings

2019-07-31 Thread Sowjanya Komatineni
This patch has Jetson TX1 platform specific SC7 timing configuration in device tree. Signed-off-by: Sowjanya Komatineni --- arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi b/arch/arm64/boot/

[PATCH v7 18/20] soc/tegra: pmc: Configure deep sleep control settings

2019-07-31 Thread Sowjanya Komatineni
Tegra210 and prior Tegra chips have deep sleep entry and wakeup related timings which are platform specific that should be configured before entering into deep sleep. Below are the timing specific configurations for deep sleep entry and wakeup. - Core rail power-on stabilization timer - OSC clock

Re: [RFC PATCH 1/3] mm, reclaim: make should_continue_reclaim perform dryrun detection

2019-07-31 Thread Mike Kravetz
On 7/31/19 4:08 AM, Vlastimil Babka wrote: > > I agree this is an improvement overall, but perhaps the patch does too > many things at once. The reshuffle is one thing and makes sense. The > change of the last return condition could perhaps be separate. Also > AFAICS the ultimate result is that wh

[PATCH v7 20/20] arm64: dts: tegra210-p3450: Jetson Nano SC7 timings

2019-07-31 Thread Sowjanya Komatineni
This patch adds Jetson Nano platform specific SC7 timing configuration in the device tree. Signed-off-by: Sowjanya Komatineni --- arch/arm64/boot/dts/nvidia/tegra210-p3450-.dts | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p3450-.dts b/ar

[PATCH v7 17/20] soc/tegra: pmc: Configure core power request polarity

2019-07-31 Thread Sowjanya Komatineni
This patch configures polarity of the core power request signal in PMC control register based on the device tree property. PMC asserts and de-asserts power request signal based on it polarity when it need to power-up and power-down the core rail during SC7. Signed-off-by: Sowjanya Komatineni ---

[PATCH v7 06/20] clk: tegra: Support for OSC context save and restore

2019-07-31 Thread Sowjanya Komatineni
This patch adds support for saving OSC clock frequency and the drive-strength during OSC clock init and creates an API to restore OSC control register value from the saved context. This API is invoked by Tegra210 clock driver during system resume to restore the OSC clock settings. Acked-by: Thie

[PATCH v7 12/20] clk: tegra210: Use fence_udelay during PLLU init

2019-07-31 Thread Sowjanya Komatineni
This patch uses fence_udelay rather than udelay during PLLU initialization to ensure writes to clock registers happens before waiting for specified delay. Acked-by: Thierry Reding Signed-off-by: Sowjanya Komatineni --- drivers/clk/tegra/clk-tegra210.c | 8 1 file changed, 4 insertions(

[PATCH v7 04/20] clk: tegra: pllout: Save and restore pllout context

2019-07-31 Thread Sowjanya Komatineni
This patch implements save and restore of pllout context. During system suspend, core power goes off and looses the settings of the Tegra CAR controller registers. So during suspend entry the state of pllout is saved and on resume it is restored back to have pllout in same state as before suspend

[PATCH v7 02/20] pinctrl: tegra210: Add Tegra210 pinctrl pm ops

2019-07-31 Thread Sowjanya Komatineni
This patch adds suspend and resume functionality to Tegra210 pinctrl. Signed-off-by: Sowjanya Komatineni --- drivers/pinctrl/tegra/pinctrl-tegra210.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/tegra/pinctrl-tegra210.c b/drivers/pinctrl/tegra/pinctrl-tegra210.c index 39a

Re: [PATCH v7 16/20] arm64: tegra: Enable wake from deep sleep on RTC alarm

2019-07-31 Thread Sowjanya Komatineni
On 7/31/19 4:04 AM, Dmitry Osipenko wrote: 31.07.2019 3:20, Sowjanya Komatineni пишет: This patch updates device tree for RTC and PMC to allow system wake from deep sleep on RTC alarm. Signed-off-by: Sowjanya Komatineni --- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 5 - 1 file change

Re: [PATCH v7 11/20] cpufreq: tegra124: Add suspend and resume support

2019-07-31 Thread Sowjanya Komatineni
On 7/31/19 4:14 AM, Dmitry Osipenko wrote: 31.07.2019 13:23, Dmitry Osipenko пишет: 31.07.2019 3:20, Sowjanya Komatineni пишет: This patch adds suspend and resume pm ops for cpufreq driver. PLLP is the safe clock source for CPU during system suspend and resume as PLLP rate is below the CPU F

Re: [PATCH v7 06/20] clk: tegra: Support for OSC context save and restore

2019-07-31 Thread Sowjanya Komatineni
On 7/31/19 4:11 AM, Dmitry Osipenko wrote: 31.07.2019 3:20, Sowjanya Komatineni пишет: This patch adds support for saving OSC clock frequency and the drive-strength during OSC clock init and creates an API to restore OSC control register value from the saved context. This API is invoked by Te

[PATCH v5] mm: page cache: store only head pages in i_pages

2019-07-31 Thread Matthew Wilcox
From: "Matthew Wilcox (Oracle)" Transparent Huge Pages are currently stored in i_pages as pointers to consecutive subpages. This patch changes that to storing consecutive pointers to the head page in preparation for storing huge pages more efficiently in i_pages. Large parts of this are "inspir

Re: [PATCH 05/20] utimes: Clamp the timestamps before update

2019-07-31 Thread Darrick J. Wong
On Mon, Jul 29, 2019 at 06:49:09PM -0700, Deepa Dinamani wrote: > POSIX is ambiguous on the behavior of timestamps for > futimens, utimensat and utimes. Whether to return an > error or silently clamp a timestamp beyond the range > supported by the underlying filesystems is not clear. > > POSIX.1 s

Re: [RFC PATCH] compiler_attributes.h: Add 'fallthrough' pseudo keyword for switch/case use

2019-07-31 Thread hpa
On July 31, 2019 11:48:32 AM PDT, Peter Zijlstra wrote: >On Wed, Jul 31, 2019 at 11:24:36AM -0700, h...@zytor.com wrote: >> >> > +/* >> >> > + * Add the pseudo keyword 'fallthrough' so case statement >blocks >> >> > + * must end with any of these keywords: >> >> > + * break; >> >> > + * fallth

Re: [RFC PATCH] compiler_attributes.h: Add 'fallthrough' pseudo keyword for switch/case use

2019-07-31 Thread Miguel Ojeda
On Wed, Jul 31, 2019 at 10:02 PM Kees Cook wrote: > > On Wed, Jul 31, 2019 at 08:48:32PM +0200, Peter Zijlstra wrote: > > On Wed, Jul 31, 2019 at 11:24:36AM -0700, h...@zytor.com wrote: > > > >> > +/* > > > >> > + * Add the pseudo keyword 'fallthrough' so case statement blocks > > > >> > + * must

Re: [PATCH] net: sctp: Rename fallthrough label to unhandled

2019-07-31 Thread Neil Horman
On Wed, Jul 31, 2019 at 09:35:31AM -0700, Joe Perches wrote: > On Wed, 2019-07-31 at 08:16 -0400, Neil Horman wrote: > > On Wed, Jul 31, 2019 at 04:32:43AM -0700, Joe Perches wrote: > > > On Wed, 2019-07-31 at 07:19 -0400, Neil Horman wrote: > > > > On Tue, Jul 30, 2019 at 10:04:37PM -0700, Joe Per

Re: [PATCH v1] drivers/base/memory.c: Don't store end_section_nr in memory blocks

2019-07-31 Thread Andrew Morton
On Wed, 31 Jul 2019 14:22:13 +0200 David Hildenbrand wrote: > Each memory block spans the same amount of sections/pages/bytes. The size > is determined before the first memory block is created. No need to store > what we can easily calculate - and the calculations even look simpler now. > > Whil

[PATCH] mailbox: imx: Fix Tx doorbell shutdown path

2019-07-31 Thread Daniel Baluta
Tx doorbell is handled by txdb_tasklet and doesn't have an associated IRQ. Anyhow, imx_mu_shutdown ignores this and tries to free an IRQ that wasn't requested for Tx DB resulting in the following warning: [1.967644] Trying to free already-free IRQ 26 [1.972108] WARNING: CPU: 2 PID: 157 at

Re: [PATCH] raid1: factor out a common routine to handle the completion of sync write

2019-07-31 Thread Song Liu
On Fri, Jul 26, 2019 at 10:57 PM Hou Tao wrote: > > It's just code clean-up. > > Signed-off-by: Hou Tao Applied to my local branch. Thanks for the clean up. Song

Re: [PATCH v4 6/9] leds: multicolor: Introduce a multicolor class definition

2019-07-31 Thread Jacek Anaszewski
Dan, On 7/31/19 9:06 PM, Dan Murphy wrote: > Jacek > > On 7/29/19 3:50 PM, Jacek Anaszewski wrote: >> Dan, >> >> On 7/25/19 8:28 PM, Dan Murphy wrote: >>> Introduce a multicolor class that groups colored LEDs >>> within a LED node. >>> >>> The framework allows for dynamically setting individual L

[PATCH] arm64/mm: fix variable 'tag' set but not used

2019-07-31 Thread Qian Cai
When CONFIG_KASAN_SW_TAGS=n, set_tag() is compiled away. GCC throws a warning, mm/kasan/common.c: In function '__kasan_kmalloc': mm/kasan/common.c:464:5: warning: variable 'tag' set but not used [-Wunused-but-set-variable] u8 tag = 0xff; ^~~ Fix it by making __tag_set() a static inline fun

Re: Merge branch 'floppy'

2019-07-31 Thread Alex Henrie
> Actual working physical floppy hardware is getting hard to find, and > while Willy was able to test this, I think the driver can be considered > pretty much dead from an actual hardware standpoint. Just for the record: I have an Ubuntu machine, still in daily use, that has a floppy disk connecto

Re: [git pull] vfs.git mount_capable() fix

2019-07-31 Thread pr-tracker-bot
The pull request you sent on Wed, 31 Jul 2019 19:53:27 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/5c6207539aea8b22490f9569db5aa72ddfd0d486 Thank you! -- Deet-doot-dot, I am a bot. https://

Re: [GIT PULL] tracing: Minor fixes for v5.3-rc2

2019-07-31 Thread pr-tracker-bot
The pull request you sent on Wed, 31 Jul 2019 11:05:17 -0400: > git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git > trace-v5.3-rc2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d2eee9fca172d0d010ef3060cdc971e0b079b87f Thank you! -- Deet-doot-do

Re: [PATCH v2] MIPS: Ingenic: Fix bugs when detecting X1000's parameters.

2019-07-31 Thread Paul Burton
Hi Zhou, On Wed, Jul 31, 2019 at 12:39:03PM +0800, Zhou Yanjie wrote: > 1.fix bugs when detecting L2 cache sets value. > 2.fix bugs when detecting L2 cache ways value. > 3.fix bugs when calculate bogoMips and loops_per_jiffy. This should be split into 2 patches - one that fixes the L2 cache detec

Re: [PATCH 4.19 024/113] tty: serial: msm_serial: avoid system lockup condition

2019-07-31 Thread Jorge Ramirez
On 7/31/19 21:05, Pavel Machek wrote: > Hi! hi Pavel, > >> [ Upstream commit ba3684f99f1b25d2a30b6956d02d339d7acb9799 ] >> >> The function msm_wait_for_xmitr can be taken with interrupts >> disabled. In order to avoid a potential system lockup - demonstrated >> under stress testing conditions on

Re: [RFC PATCH 0/7] xfs: add reflink & dedupe support for fsdax.

2019-07-31 Thread Goldwyn Rodrigues
On 19:49 31/07, Shiyang Ruan wrote: > This patchset aims to take care of this issue to make reflink and dedupe > work correctly in XFS. > > It is based on Goldwyn's patchsets: "v4 Btrfs dax support" and "Btrfs > iomap". I picked up some patches related and made a few fix to make it > basically wo

Re: [RFC PATCH 2/3] mm, compaction: use MIN_COMPACT_COSTLY_PRIORITY everywhere for costly orders

2019-07-31 Thread Mike Kravetz
On 7/31/19 5:06 AM, Vlastimil Babka wrote: > On 7/24/19 7:50 PM, Mike Kravetz wrote: >> For PAGE_ALLOC_COSTLY_ORDER allocations, MIN_COMPACT_COSTLY_PRIORITY is >> minimum (highest priority). Other places in the compaction code key off >> of MIN_COMPACT_PRIORITY. Costly order allocations will neve

[PATCH v4 00/13] Support CPU frequency scaling on QCS404

2019-07-31 Thread Jorge Ramirez-Ortiz
The following patchset enables CPU frequency scaling support on the QCS404 (with dynamic voltage scaling). It is important to notice that this functionality will be superseded by Core Power Reduction (CPR), a more accurate form of AVS found on certain Qualcomm SoCs. Some of the changes required t

[PATCH v4 02/13] mbox: qcom: add APCS child device for QCS404

2019-07-31 Thread Jorge Ramirez-Ortiz
There is clock controller functionality in the APCS hardware block of qcs404 devices similar to msm8916. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Bjorn Andersson --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 8 +--- 1 file

[PATCH v4 03/13] mbox: qcom: replace integer with valid macro

2019-07-31 Thread Jorge Ramirez-Ortiz
Use the correct macro when registering the platform device. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Bjorn Andersson --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --g

[PATCH v4 07/13] clk: qcom: hfpll: register as clock provider

2019-07-31 Thread Jorge Ramirez-Ortiz
Make the output of the high frequency pll a clock provider. On the QCS404 this PLL controls cpu frequency scaling. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Bjorn Andersson Acked-by: Stephen Boyd --- drivers/clk/qcom/hfpll.c |

[PATCH v4 04/13] dt-bindings: mailbox: qcom: Add clock-name optional property

2019-07-31 Thread Jorge Ramirez-Ortiz
When the APCS clock is registered (platform dependent), it retrieves its parent names from hardcoded values in the driver. The following commit allows the DT node to provide such clock names to the platform data based clock driver therefore avoiding having to explicitly embed those names in the cl

[PATCH v4 10/13] arm64: dts: qcom: qcs404: Add HFPLL node

2019-07-31 Thread Jorge Ramirez-Ortiz
The high frequency pll functionality is required to enable CPU frequency scaling operation. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 9 + 1 file changed, 9 ins

[PATCH v4 09/13] arm64: dts: qcom: msm8916: Add the clocks for the APCS mux/divider

2019-07-31 Thread Jorge Ramirez-Ortiz
Specify the clocks that feed the APCS mux/divider instead of using default hardcoded values in the source code. The driver still supports the previous bindings; however with this update it we allow the msm8916 to access the parent clock names required by the driver operation using the device tree

[PATCH v4 13/13] arm64: defconfig: Enable HFPLL

2019-07-31 Thread Jorge Ramirez-Ortiz
The high frequency pll is required on compatible Qualcomm SoCs to support the CPU frequency scaling feature. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Bjorn Andersson --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 in

[PATCH v4 12/13] arm64: dts: qcom: qcs404: Add DVFS support

2019-07-31 Thread Jorge Ramirez-Ortiz
Support dynamic voltage and frequency scaling on qcs404. CPUFreq will soon be superseeded by Core Power Reduction (CPR, a form of Adaptive Voltage Scaling found on some Qualcomm SoCs like the qcs404). Due to the CPR upstreaming already being in progress - and some commits already merged - the f

[PATCH v4 11/13] arm64: dts: qcom: qcs404: Add the clocks for APCS mux/divider

2019-07-31 Thread Jorge Ramirez-Ortiz
Specify the clocks that feed the APCS mux/divider instead of using default hardcoded values in the source code. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Bjorn Andersson --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 3 +++ 1 file

[PATCH v4 06/13] clk: qcom: hfpll: get parent clock names from DT

2019-07-31 Thread Jorge Ramirez-Ortiz
Allow accessing the parent clock name required for the driver operation using the device tree node. This permits extending the driver to other platforms without having to modify its source code. For backwards compatibility leave the previous value as default. Co-developed-by: Niklas Cassel Sign

[PATCH v4 05/13] clk: qcom: apcs-msm8916: get parent clock names from DT

2019-07-31 Thread Jorge Ramirez-Ortiz
Allow accessing the parent clock names required for the driver operation by using the device tree node. This permits extending the driver to other platforms without having to modify its source code. For backwards compatibility leave previous values as default. Co-developed-by: Niklas Cassel Sig

[PATCH v4 08/13] clk: qcom: hfpll: CLK_IGNORE_UNUSED

2019-07-31 Thread Jorge Ramirez-Ortiz
When COMMON_CLK_DISABLED_UNUSED is set, in an effort to save power and to keep the software model of the clock in line with reality, the framework transverses the clock tree and disables those clocks that were enabled by the firmware but have not been enabled by any device driver. If CPUFREQ is en

[PATCH v4 01/13] clk: qcom: gcc: limit GPLL0_AO_OUT operating frequency

2019-07-31 Thread Jorge Ramirez-Ortiz
Limit the GPLL0_AO_OUT_MAIN operating frequency as per its hardware specifications. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz Reviewed-by: Bjorn Andersson Acked-by: Stephen Boyd --- drivers/clk/qcom/clk-alpha-pll.c | 8 drivers/cl

Re: [PATCH RFC 3/5] x86: KVM: svm: clear interrupt shadow on all paths in skip_emulated_instruction()

2019-07-31 Thread Jim Mattson
On Wed, Jul 31, 2019 at 9:37 AM Paolo Bonzini wrote: > > On 31/07/19 15:50, Vitaly Kuznetsov wrote: > > Jim Mattson writes: > > > >> On Thu, Jun 20, 2019 at 4:02 AM Vitaly Kuznetsov > >> wrote: > >>> > >>> Regardless of the way how we skip instruction, interrupt shadow needs to > >>> be > >>>

[v6 2/2] gpio: aspeed: Add SGPIO driver

2019-07-31 Thread Hongwei Zhang
Hello Andrew, Thanks so much for your help. > From: Andrew Jeffery > Sent: Tuesday, July 30, 2019 8:19 PM > To: Hongwei Zhang; Linus Walleij; linux-g...@vger.kernel.org > Cc: Joel Stanley; linux-asp...@lists.ozlabs.org; Bartosz Golaszewski; > linux-kernel@vger.kernel.org; > linux-arm-ker...

Re: [PATCH] mm/usercopy: Use memory range to be accessed for wraparound check

2019-07-31 Thread Kees Cook
On Tue, Jul 30, 2019 at 10:54:13AM -0700, Isaac J. Manjarres wrote: > Currently, when checking to see if accessing n bytes starting at > address "ptr" will cause a wraparound in the memory addresses, > the check in check_bogus_address() adds an extra byte, which is > incorrect, as the range of addr

Re: [PATCH] ARM: imx: Drop imx_anatop_init()

2019-07-31 Thread Fabio Estevam
Hi Andrey, On Wed, Jul 31, 2019 at 3:01 PM Andrey Smirnov wrote: > > With commit b5bbe2235361 ("usb: phy: mxs: Disable external charger > detect in mxs_phy_hw_init()") in tree all of the necessary charger > setup is done by the USB PHY driver which covers all of the affected > i.MX6 SoCs. > > NOT

Re: [PATCH 4/5] sched/deadline: Cleanup on_dl_rq() handling

2019-07-31 Thread luca abeni
On Wed, 31 Jul 2019 18:32:47 +0100 Dietmar Eggemann wrote: [...] > static void dequeue_dl_entity(struct sched_dl_entity *dl_se) > { > +if (!on_dl_rq(dl_se)) > +return; > >>> > >>> Why allow double dequeue instead of WARN? > >> > >> As I was saying

[PATCH] arm64/mm: fix variable 'pud' set but not used

2019-07-31 Thread Qian Cai
GCC throws a warning, arch/arm64/mm/mmu.c: In function 'pud_free_pmd_page': arch/arm64/mm/mmu.c:1033:8: warning: variable 'pud' set but not used [-Wunused-but-set-variable] pud_t pud; ^~~ because pud_table() is a macro and compiled away. Fix it by making it a static inline function and

Re: [PATCH] mm: slub: Fix slab walking for init_on_free

2019-07-31 Thread Kees Cook
On Wed, Jul 31, 2019 at 12:35:09PM -0700, Matthew Wilcox wrote: > On Wed, Jul 31, 2019 at 03:32:40PM -0400, Laura Abbott wrote: > > Fix this by ensuring the value we set with set_freepointer is either NULL > > or another value in the chain. > > > > Reported-by: kernel test robot > > Signed-off-by

[PATCH 09/14] serial: lpc32xx: allow compile testing

2019-07-31 Thread Arnd Bergmann
The lpc32xx_loopback_set() function in hte lpc32xx_hs driver is the one thing that relies on platform header files. Move that into the core platform code so we only need a variable declaration for it, and enable COMPILE_TEST building. Signed-off-by: Arnd Bergmann --- arch/arm/mach-lpc32xx/serial

[patch] setxattr.2: Add ERANGE to 'ERRORS' section

2019-07-31 Thread Finn O'Leary
Hi, Both the Ext2 filesystem handler and the Ext4 filesystem handler will return the ERANGE error code. Ext2 will return it if the name or value is too long to be able to be stored, Ext4 will return it if the name is too long. For reference, the relevant files/lines (with excerpts) are: fs/ext

[v7 2/2] gpio: aspeed: Add SGPIO driver

2019-07-31 Thread Hongwei Zhang
Add SGPIO driver support for Aspeed AST2500 SoC. Signed-off-by: Hongwei Zhang Reviewed-by: Andrew Jeffery --- drivers/gpio/sgpio-aspeed.c | 530 1 file changed, 530 insertions(+) create mode 100644 drivers/gpio/sgpio-aspeed.c diff --git a/drivers

[PATCH 08/14] net: lpc-enet: allow compile testing

2019-07-31 Thread Arnd Bergmann
The lpc-enet driver can now be built on all platforms, so allow compile testing as well. Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/nxp/Kconfig | 2 +- drivers/net/ethernet/nxp/lpc_eth.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/nxp/Kc

[v7 1/2] dt-bindings: gpio: aspeed: Add SGPIO support

2019-07-31 Thread Hongwei Zhang
Add bindings to support SGPIO on AST2400 or AST2500. Signed-off-by: Hongwei Zhang Reviewed-by: Andrew Jeffery --- .../devicetree/bindings/gpio/sgpio-aspeed.txt | 55 ++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/sgpio-a

[v7 0/2] gpio: aspeed: Add SGPIO driver

2019-07-31 Thread Hongwei Zhang
Hello, This short series introduce dt-binding document and a driver for the Aspeed AST2500 SGPIO controller. Please review. [v7]: Changes between v6 and v7: - fix missing variable 'reg' assign issue in aspeed_sgpio_set() - v6 feedback updates [v6]: Changes between v5 and v6:

Re: [RFC PATCH] compiler_attributes.h: Add 'fallthrough' pseudo keyword for switch/case use

2019-07-31 Thread Kees Cook
On Wed, Jul 31, 2019 at 08:48:32PM +0200, Peter Zijlstra wrote: > On Wed, Jul 31, 2019 at 11:24:36AM -0700, h...@zytor.com wrote: > > >> > +/* > > >> > + * Add the pseudo keyword 'fallthrough' so case statement blocks > > >> > + * must end with any of these keywords: > > >> > + * break; > > >> >

Re: [PATCH 2/2] randstruct: remove dead code in is_pure_ops_struct()

2019-07-31 Thread Kees Cook
On Thu, Aug 01, 2019 at 03:01:49AM +0900, Joonwon Kang wrote: > Recursive declaration for struct which has member of the same struct > type, for example, > > struct foo { > struct foo f; > ... > }; > > is not allowed. So, it is unnecessary to check if a struct has this > kind of member.

Assist Request From You

2019-07-31 Thread Sgt,Arnett David
-- Accept my greetings to you Assist Request From You I am 28 years old single an orphan my parents died when I am five years old nobody to help me,I send you my business proposal with tears and sorrow,Please let this not be a surprised message to you because I decided to contact you on this ma

[PATCH 02/14] usb: udc: lpc32xx: allow compile-testing

2019-07-31 Thread Arnd Bergmann
The only thing that prevents building this driver on other platforms is the mach/hardware.h include, which is not actually used here at all, so remove the line and allow CONFIG_COMPILE_TEST. Signed-off-by: Arnd Bergmann --- drivers/usb/gadget/udc/Kconfig | 3 ++- drivers/usb/gadget/udc/lpc

Re: [PATCH 1/2] randstruct: fix a bug in is_pure_ops_struct()

2019-07-31 Thread Kees Cook
On Thu, Aug 01, 2019 at 03:01:10AM +0900, Joonwon Kang wrote: > Before this, there were false negatives in the case where a struct > contains other structs which contain only function pointers because > of unreachable code in is_pure_ops_struct(). > > Signed-off-by: Joonwon Kang I've applied thi

Re: [PATCH 6/6] media: i2c: Convert to new i2c device probe()

2019-07-31 Thread Wolfram Sang
On Wed, Jul 10, 2019 at 10:51:49PM +0100, Kieran Bingham wrote: > The I2C core framework provides a simplified probe framework from commit > b8a1a4cd5a98 ("i2c: Provide a temporary .probe_new() call-back type"). > > These drivers do not utilise the i2c_device_id table in the probe, so we > can eas

Re: [PATCH 3/9] clk: meson: axg-audio: Don't reference clk_init_data after registration

2019-07-31 Thread Neil Armstrong
Hi Stephen, Le 31/07/2019 à 21:35, Stephen Boyd a écrit : > A future patch is going to change semantics of clk_register() so that > clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid > referencing this member here so that we don't run into NULL pointer > exceptions. > > Cc: Ne

Re: [PATCH 5/6] media: i2c: et8ek8: Convert to new i2c device probe()

2019-07-31 Thread Wolfram Sang
On Wed, Jul 10, 2019 at 10:51:48PM +0100, Kieran Bingham wrote: > The I2C core framework provides a simplified probe framework from commit > b8a1a4cd5a98 ("i2c: Provide a temporary .probe_new() call-back type"). > > This driver does not utilise the i2c_device_id table in the probe, so we can > eas

Re: [PATCH 4/6] media: i2c: s5c73m3: Convert to new i2c device probe()

2019-07-31 Thread Wolfram Sang
On Wed, Jul 10, 2019 at 10:51:47PM +0100, Kieran Bingham wrote: > The I2C core framework provides a simplified probe framework from commit > b8a1a4cd5a98 ("i2c: Provide a temporary .probe_new() call-back type"). > > This driver does not utilise the i2c_device_id table in the probe, so we can > eas

Re: [PATCH 2/6] media: radio: si470x: Convert to new i2c device probe()

2019-07-31 Thread Wolfram Sang
On Wed, Jul 10, 2019 at 10:51:45PM +0100, Kieran Bingham wrote: > The I2C core framework provides a simplified probe framework from commit > b8a1a4cd5a98 ("i2c: Provide a temporary .probe_new() call-back type"). > > This driver does not utilise the i2c_device_id table in the probe, so we can > eas

Re: [PATCH 3/6] media: i2c: smiapp: Convert to new i2c device probe()

2019-07-31 Thread Wolfram Sang
On Wed, Jul 10, 2019 at 10:51:46PM +0100, Kieran Bingham wrote: > The I2C core framework provides a simplified probe framework from commit > b8a1a4cd5a98 ("i2c: Provide a temporary .probe_new() call-back type"). > > This driver does not utilise the i2c_device_id table in the probe, so we can > eas

Re: [PATCH 1/6] media: radio: si4713: Convert to new i2c device probe()

2019-07-31 Thread Wolfram Sang
On Wed, Jul 10, 2019 at 10:51:44PM +0100, Kieran Bingham wrote: > The I2C core framework provides a simplified probe framework from commit > b8a1a4cd5a98 ("i2c: Provide a temporary .probe_new() call-back type"). > > This driver does not utilise the i2c_device_id table in the probe, so we can > eas

Re: [PATCH v4 9/9] leds: Update the lp55xx to use the multi color framework

2019-07-31 Thread Dan Murphy
Jacek On 7/31/19 2:45 PM, Jacek Anaszewski wrote: Dan, On 7/31/19 8:55 PM, Dan Murphy wrote: Jacek Thanks for looking You're welcome. [...} I don't see any parsing for color here but I suppose that I can add that now I thought about that occurrence in lp5xx_parse_channel_child(). No tha

Re: [PATCH 3/3] ASoC : amd: reduced period size

2019-07-31 Thread Mark Brown
On Mon, Jul 29, 2019 at 05:38:31PM +0530, Ravulapati Vishnu vardhan rao wrote: > Reduced period size and offsets. Why? > #define PLAYBACK_MAX_NUM_PERIODS8 > -#define PLAYBACK_MAX_PERIOD_SIZE16384 > -#define PLAYBACK_MIN_PERIOD_SIZE4096 > +#define PLAYBACK_MAX_PERIOD_SIZE8192 > +#

Re: [PATCH v4 9/9] leds: Update the lp55xx to use the multi color framework

2019-07-31 Thread Jacek Anaszewski
Dan, On 7/31/19 8:55 PM, Dan Murphy wrote: > Jacek > > Thanks for looking You're welcome. > On 7/31/19 1:45 PM, Jacek Anaszewski wrote: >> Hi Dan, >> >> Thank you for the patch. My comments are below. >> >> On 7/25/19 8:28 PM, Dan Murphy wrote: >>> Update the lp5523 to use the multi color frame

Re: [PATCH RFC] modpost: Support I2C Aliases from OF tables

2019-07-31 Thread Wolfram Sang
Hi Javier, thank you for providing the extra information. (And Kieran, thanks for the patch!) > The other option is to remove i2c_of_match_device() and don't make OF match > to fallback to i2c_of_match_device_sysfs(). This is what happens in the ACPI > case, since i2c_device_match() just calls a

Re: [patch 4/4] fs: jbd/jbd2: Substitute BH locks for RT and lock debugging

2019-07-31 Thread Thomas Gleixner
On Wed, 31 Jul 2019, Jan Kara wrote: > On Tue 30-07-19 13:24:56, Thomas Gleixner wrote: > > Bit spinlocks are problematic if PREEMPT_RT is enabled. They disable > > preemption, which is undesired for latency reasons and breaks when regular > > spinlocks are taken within the bit_spinlock locked regi

Re: [PATCH V2 4/9] vhost: reset invalidate_count in vhost_set_vring_num_addr()

2019-07-31 Thread Michael S. Tsirkin
On Wed, Jul 31, 2019 at 04:32:52PM -0300, Jason Gunthorpe wrote: > On Wed, Jul 31, 2019 at 09:29:28PM +0800, Jason Wang wrote: > > > > On 2019/7/31 下午8:41, Jason Gunthorpe wrote: > > > On Wed, Jul 31, 2019 at 04:46:50AM -0400, Jason Wang wrote: > > > > The vhost_set_vring_num_addr() could be calle

Re: [PATCH] riscv: kbuild: add virtual memory system selection

2019-07-31 Thread Paul Walmsley
On Sun, 28 Jul 2019, Bin Meng wrote: > The spec does not mention 40-bit physical addresses, but 56-bit. Thanks, agreed. Updated patch below - Paul From: Paul Walmsley Date: Fri, 26 Jul 2019 10:21:11 -0700 Subject: [PATCH v2] riscv: kbuild: add virtual memory system selection The RISC-V spec

[PATCH 9/9] clk: Overwrite clk_hw::init with NULL during clk_register()

2019-07-31 Thread Stephen Boyd
We don't want clk provider drivers to use the init structure after clk registration time, but we leave a dangling reference to it by means of clk_hw::init. Let's overwrite the member with NULL during clk_register() so that this can't be used anymore after registration time. Cc: Bjorn Andersson Cc

[PATCH 4/9] clk: qcom: Don't reference clk_init_data after registration

2019-07-31 Thread Stephen Boyd
A future patch is going to change semantics of clk_register() so that clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid referencing this member here so that we don't run into NULL pointer exceptions. Cc: Taniya Das Cc: Andy Gross Signed-off-by: Stephen Boyd --- Please ack

[PATCH 1/9] clk: actions: Don't reference clk_init_data after registration

2019-07-31 Thread Stephen Boyd
A future patch is going to change semantics of clk_register() so that clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid referencing this member here so that we don't run into NULL pointer exceptions. Cc: Manivannan Sadhasivam Signed-off-by: Stephen Boyd --- Please ack so I

[PATCH 8/9] phy: ti: am654-serdes: Don't reference clk_init_data after registration

2019-07-31 Thread Stephen Boyd
A future patch is going to change semantics of clk_register() so that clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid referencing this member here so that we don't run into NULL pointer exceptions. Cc: Roger Quadros Cc: Kishon Vijay Abraham I Signed-off-by: Stephen Boyd -

[PATCH 7/9] clk: sprd: Don't reference clk_init_data after registration

2019-07-31 Thread Stephen Boyd
A future patch is going to change semantics of clk_register() so that clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid referencing this member here so that we don't run into NULL pointer exceptions. Cc: Chunyan Zhang Cc: Baolin Wang Signed-off-by: Stephen Boyd --- Please

Re: [PATCH] mm: slub: Fix slab walking for init_on_free

2019-07-31 Thread Matthew Wilcox
On Wed, Jul 31, 2019 at 03:32:40PM -0400, Laura Abbott wrote: > Fix this by ensuring the value we set with set_freepointer is either NULL > or another value in the chain. > > Reported-by: kernel test robot > Signed-off-by: Laura Abbott Fixes: 6471384af2a6 ("mm: security: introduce init_on_alloc

[PATCH 0/9] Make clk_hw::init NULL after clk registration

2019-07-31 Thread Stephen Boyd
We don't want clk provider drivers using the init member of struct clk_hw after the clk is registered. It isn't guaranteed to be a valid pointer and all the necessary information inside the structure is copied over into struct clk_core anyway. This patch series fixes up the handful of users that do

[PATCH 3/9] clk: meson: axg-audio: Don't reference clk_init_data after registration

2019-07-31 Thread Stephen Boyd
A future patch is going to change semantics of clk_register() so that clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid referencing this member here so that we don't run into NULL pointer exceptions. Cc: Neil Armstrong Cc: Jerome Brunet Signed-off-by: Stephen Boyd --- Plea

[PATCH 6/9] clk: socfpga: Don't reference clk_init_data after registration

2019-07-31 Thread Stephen Boyd
A future patch is going to change semantics of clk_register() so that clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid referencing this member here so that we don't run into NULL pointer exceptions. Cc: Dinh Nguyen Signed-off-by: Stephen Boyd --- Please ack so I can take t

[PATCH 5/9] clk: sirf: Don't reference clk_init_data after registration

2019-07-31 Thread Stephen Boyd
A future patch is going to change semantics of clk_register() so that clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid referencing this member here so that we don't run into NULL pointer exceptions. Cc: Guo Zeng Cc: Barry Song Signed-off-by: Stephen Boyd --- Please ack so

[PATCH 2/9] clk: lochnagar: Don't reference clk_init_data after registration

2019-07-31 Thread Stephen Boyd
A future patch is going to change semantics of clk_register() so that clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid referencing this member here so that we don't run into NULL pointer exceptions. Cc: Charles Keepax Cc: Richard Fitzgerald Signed-off-by: Stephen Boyd ---

[PATCH] mm: slub: Fix slab walking for init_on_free

2019-07-31 Thread Laura Abbott
To properly clear the slab on free with slab_want_init_on_free, we walk the list of free objects using get_freepointer/set_freepointer. The value we get from get_freepointer may not be valid. This isn't an issue since an actual value will get written later but this means there's a chance of trigger

Re: [PATCH V2 4/9] vhost: reset invalidate_count in vhost_set_vring_num_addr()

2019-07-31 Thread Jason Gunthorpe
On Wed, Jul 31, 2019 at 09:29:28PM +0800, Jason Wang wrote: > > On 2019/7/31 下午8:41, Jason Gunthorpe wrote: > > On Wed, Jul 31, 2019 at 04:46:50AM -0400, Jason Wang wrote: > > > The vhost_set_vring_num_addr() could be called in the middle of > > > invalidate_range_start() and invalidate_range_end(

Re: [PATCH 4.19 112/113] libnvdimm/bus: Stop holding nvdimm_bus_list_mutex over __nd_ioctl()

2019-07-31 Thread Dan Williams
On Wed, Jul 31, 2019 at 11:15 AM Pavel Machek wrote: > > On Mon 2019-07-29 21:23:19, Greg Kroah-Hartman wrote: > > From: Dan Williams > > > > commit b70d31d054ee3a6fc1034b9d7fc0ae1e481aa018 upstream. > > > > In preparation for fixing a deadlock between wait_for_bus_probe_idle() > > and the nvdimm

Re: [PATCH V2 7/9] vhost: do not use RCU to synchronize MMU notifier with worker

2019-07-31 Thread Jason Gunthorpe
On Wed, Jul 31, 2019 at 09:28:20PM +0800, Jason Wang wrote: > > On 2019/7/31 下午8:39, Jason Gunthorpe wrote: > > On Wed, Jul 31, 2019 at 04:46:53AM -0400, Jason Wang wrote: > > > We used to use RCU to synchronize MMU notifier with worker. This leads > > > calling synchronize_rcu() in invalidate_ran

<    1   2   3   4   5   6   7   8   9   10   >