[PATCH 0/3] add support for MCP16502 PMIC

2018-11-13 Thread Andrei.Stefanescu
MCP16502 is a Power Management IC from Microchip. It has 4 Buck outputs and 2 LDOs. The buck regulators can be used in two modes: normal(FPWM) and low-power(Auto PFM). This patch series adds support for the MCP16502 PMIC. Andrei Stefanescu (3): regulator: dt-bindings: add MCP16502 regulator bin

Re: [REGRESSION] brcmfmac: NULL pointer deference starting next-20181107

2018-11-13 Thread Jon Hunter
Hi Arend, On 13/11/2018 10:24, Arend van Spriel wrote: ... > I tried building drivers/firmware/efi/vars.c using tegra_defconfig. Had > to enable CONFIG_EFI. So the null pointer access is a 0x0008 so I > looked at the disassembly below: > > int efivar_entry_size(struct efivar_entry *entry, u

[PATCH 1/3] regulator: dt-bindings: add MCP16502 regulator bindings

2018-11-13 Thread Andrei.Stefanescu
This patch describes the compatible and the device tree bindings necessary for the MCP16502 PMIC. Signed-off-by: Andrei Stefanescu --- .../bindings/regulator/mcp16502-regulator.txt | 107 + 1 file changed, 107 insertions(+) create mode 100644 Documentation/devicetree/b

Re: [PATCH 1/2] Makefile: Fix distcc compilation with x86 macros

2018-11-13 Thread Ingo Molnar
* Nadav Amit wrote: > Introducing the use of asm macros in c-code broke distcc, since it only > sends the preprocessed source file. The solution is to break the > compilation into two separate phases of compilation and assembly, and > between the two concatanate the assembly macros and the comp

Re: [PATCH 2/2] x86: set a dependency on macros.S

2018-11-13 Thread Ingo Molnar
* Nadav Amit wrote: > Changes in macros.S should trigger the recompilation of all C files, as > the macros might need to affect their compilation. > > Signed-off-by: Nadav Amit > --- > scripts/Makefile.build | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/script

Re: [RESEND PATCH] mfd: tps6586x: Handle interrupts on suspend

2018-11-13 Thread Lee Jones
On Tue, 13 Nov 2018, Jon Hunter wrote: > From: Jonathan Hunter > > The tps6586x driver creates an irqchip that is used by its various child > devices for managing interrupts. The tps6586x-rtc device is one of its > children that uses the tps6586x irqchip. When using the tps6586x-rtc as > a wake-

Qemu Guest kernel 4.20-rc1 PCIe hotplug issue

2018-11-13 Thread Shameerali Kolothum Thodi
Hi Mika, Since the commit commit 720d6a671a6e("PCI: pciehp: Do not handle events if interrupts are masked"), the hotplug support on Qemu Guest(4.120-rc1) with a vfio passthrough device seems to be broken. This is on an ARM64 platform. I am booting a Guest with below command line options with the

Dear Friend,

2018-11-13 Thread Hassan Kafado
Dear Friend, I am Mr. Hassan kafado, the director of the accounts & auditing dept at the Bank OF Africa Ouagadougou-west Africa. (B O A) With due respect, I have decided to contact you on a business transaction that will be beneficial to both of us. At the bank's last accounts/auditing evalu

Re: [PATCH] x86/irq: Fix -Wmissing-prototypes warning for init_IRQ()

2018-11-13 Thread Borislav Petkov
On Tue, Nov 13, 2018 at 07:31:44PM +0800, wang.y...@zte.com.cn wrote: > I thought this can keep patches dependent and can be reverted easily if one > of them has something wrong. Same thing with per-directory or subsystem - just less granulary. > Thanks for your suggestion, I will do as you advis

RE: [PATCH v5 16/17] tpm: take TPM chip power gating out of tpm_transmit()

2018-11-13 Thread Winkler, Tomas
> -Original Message- > From: Jarkko Sakkinen [mailto:jarkko.sakki...@linux.intel.com] > Sent: Tuesday, November 13, 2018 13:12 > To: Winkler, Tomas > Cc: linux-integr...@vger.kernel.org; linux-security-mod...@vger.kernel.org; > James Bottomley ; Struk, > Tadeusz ; Stefan Berger > ; Nayn

[PATCHv3] ARM: dspi: Provide support for DSPI slave mode operation (Vybryd vf610)

2018-11-13 Thread Lukasz Majewski
The NXP's Vybryd vf610 can work as a SPI slave device (the CS and clock signals are provided by master). It is possible to specify a single device to work in that mode. As we do use DMA for transferring data, the RX channel must be prepared for incoming data. Moreover, in slave mode we just set a

[PATCH] ARM: dts: Provide support for reading ID code from MVB device (BK4)

2018-11-13 Thread Lukasz Majewski
The procedure to read this ID value is as follows: rmmod spi_fsl_dspi insmod spi-gpio.ko echo 504 > /sys/class/gpio/export cat /sys/class/gpio/gpio504/value ... echo 511 > /sys/class/gpio/export cat /sys/class/gpio/gpio511/value rmmod spi-gpio.ko insmod spi_fsl_dspi Signed-off-by: Lukasz Majews

Re: Qemu Guest kernel 4.20-rc1 PCIe hotplug issue

2018-11-13 Thread mika.westerb...@linux.intel.com
+Lukas On Tue, Nov 13, 2018 at 11:45:42AM +, Shameerali Kolothum Thodi wrote: > Hi Mika, Hi, > Since the commit commit 720d6a671a6e("PCI: pciehp: Do not handle events > if interrupts are masked"), the hotplug support on Qemu Guest(4.120-rc1) > with a vfio passthrough device seems to be broke

[PATCH v6 01/17] tpm: use tpm_buf in tpm_transmit_cmd() as the IO parameter

2018-11-13 Thread Jarkko Sakkinen
Since we pass an initialized struct tpm_buf instance in every call site now, it is cleaner to pass that directly to the tpm_transmit_cmd() as the TPM command/response buffer. Fine-tune a little bit tpm_transmit() and tpm_transmit_cmd() comments while doing this. Signed-off-by: Jarkko Sakkinen Re

[PATCH v6 00/17] Removed nested TPM operations

2018-11-13 Thread Jarkko Sakkinen
[was Detach TPM space code out of the tpm_transmit() flow but the scope expanded a bit.] Make the changes necessary to detach TPM space code and TPM activation code out of the tpm_transmit() flow because of both of these can cause nested tpm_transmit() calls. The nesteds calls make the whole flow

[PATCH v6 04/17] tpm: call tpm2_flush_space() on error in tpm_try_transmit()

2018-11-13 Thread Jarkko Sakkinen
Always call tpm2_flush_space() on failure in tpm_try_transmit() so that the volatile memory of the TPM gets cleared. If /dev/tpm0 does not have sufficient permissions (usually it has), this could lead to the leakage of TPM objects. Through /dev/tpmrm0 this issue does not raise any new security conc

[PATCH v6 03/17] tpm: return 0 from pcrs_show() when tpm1_pcr_read() fails

2018-11-13 Thread Jarkko Sakkinen
Do not print partial list of PCRs when tpm1_pcr_read() fails but instead return 0 from pcrs_show(). This is consistent behavior with other sysfs functions. Signed-off-by: Jarkko Sakkinen Reviewed-by: Stefan Berger --- drivers/char/tpm/tpm-sysfs.c | 13 ++--- 1 file changed, 6 insertions

[PATCH v6 02/17] tpm: fix invalid return value in pubek_show()

2018-11-13 Thread Jarkko Sakkinen
Return zero when tpm_buf_init() fails as we do for other functions in tpm-sysfs.c. Fixes: da379f3c1db0c ("tpm: migrate pubek_show to struct tpm_buf") Signed-off-by: Jarkko Sakkinen Reviewed-by: Stefan Berger --- drivers/char/tpm/tpm-sysfs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletion

[PATCH v6 05/17] tpm: print tpm2_commit_space() error inside tpm2_commit_space()

2018-11-13 Thread Jarkko Sakkinen
The error logging for tpm2_commit_space() is in a wrong place. This commit moves it inside that function. Cc: James Bottomley Signed-off-by: Jarkko Sakkinen Reviewed-by: Stefan Berger --- drivers/char/tpm/tpm-interface.c | 8 ++-- drivers/char/tpm/tpm2-space.c| 9 ++--- 2 files cha

[PATCH v6 06/17] tpm: clean up tpm_try_transmit() error handling flow

2018-11-13 Thread Jarkko Sakkinen
Move locking, locality handling and power management to tpm_transmit() in order to simplify the flow. Signed-off-by: Jarkko Sakkinen Reviewed-by: Stefan Berger --- drivers/char/tpm/tpm-interface.c | 71 1 file changed, 35 insertions(+), 36 deletions(-) diff --g

[PATCH v6 07/17] tpm: declare struct tpm_header

2018-11-13 Thread Jarkko Sakkinen
Decleare struct tpm_header that replaces struct tpm_input_header and struct tpm_output_header. Signed-off-by: Jarkko Sakkinen Reviewed-by: Stefan Berger --- drivers/char/tpm/tpm-interface.c | 9 - drivers/char/tpm/tpm.h| 27 --- drivers/char/tpm/tpm

[PATCH v6 09/17] tpm: move tpm_validate_commmand() to tpm2-space.c

2018-11-13 Thread Jarkko Sakkinen
Move tpm_validate_command() to tpm2-space.c and make it part of the tpm2_prepare_space() flow. Make cc resolution as part of the TPM space functionality in order to detach it from rest of the tpm_transmit() flow. Cc: James Bottomley Signed-off-by: Jarkko Sakkinen Reviewed-by: Stefan Berger ---

[PATCH v6 08/17] tpm: access command header through struct in tpm_try_transmit()

2018-11-13 Thread Jarkko Sakkinen
Instead of accessing fields of the command header through offsets to the raw buffer, it is a better idea to use the header struct pointer that is already used elsewhere in the function. Signed-off-by: Jarkko Sakkinen Reviewed-by: Stefan Berger --- drivers/char/tpm/tpm-interface.c | 4 ++-- 1 fi

[PATCH v6 11/17] tpm: move TPM space code out of tpm_transmit()

2018-11-13 Thread Jarkko Sakkinen
Prepare and commit TPM space before and after calling tpm_transmit() instead of doing that inside tpm_transmit(). After this change we can remove TPM_TRANSMIT_NESTED flag from tpm2_prepare_space() and tpm2_commit_space() and replace it with TPM_TRANSMIT_UNLOCKED. Cc: James Bottomley Signed-off-by

[PATCH v6 10/17] tpm: encapsulate tpm_dev_transmit()

2018-11-13 Thread Jarkko Sakkinen
Encapsulate tpm_transmit() call pattern to tpm_dev_transmit() because it is identically used from two places. Use unlocked version of tpm_transmit() so that we are able to move the calls to tpm2_prepare_space() and tpm2_commit_space() later on to this new function. Signed-off-by: Jarkko Sakkinen

[PATCH v6 14/17] tpm: remove TPM_TRANSMIT_UNLOCKED flag

2018-11-13 Thread Jarkko Sakkinen
Added locking as part of tpm_try_get_ops() and tpm_put_ops() as they are anyway used in most of the call sites except in tpmrm_release() where we take the locks manually. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-chip.c | 2 ++ drivers/char/tpm/tpm-dev-common.c | 4 +--- dr

[PATCH v6 12/17] tpm: remove @space from tpm_transmit()

2018-11-13 Thread Jarkko Sakkinen
Remove @space from tpm_transmit() API` in order to completely remove the bound between low-level transmission functionality and TPM spaces. The only real dependency existing is the amount of data saved before trying to send a command to the TPM. It doesn't really matter if we save always a bit mor

Re: [PATCH AUTOSEL 4.18 31/39] clk: sunxi-ng: sun50i: h6: Add 2x fixed post-divider to MMC module clocks

2018-11-13 Thread Icenowy Zheng
于 2018年11月13日 GMT+08:00 下午1:50:45, Sasha Levin 写到: >From: Icenowy Zheng > >[ Upstream commit c2ff8383cc33c2d9c169e4daf1e37a434c3bb420 ] > >On the H6, the MMC module clocks are fixed in the new timing mode, >i.e. they do not have a bit to select the mode. These clocks have >a 2x divider somewhe

[PATCH v6 13/17] tpm: use tpm_try_get_ops() in tpm-sysfs.c.

2018-11-13 Thread Jarkko Sakkinen
Use tpm_try_get_ops() in tpm-sysfs.c so that we can consider moving other decorations (locking, localities, power management for example) inside it. This direction can be of course taken only after other call sites for tpm_transmit() have been treated in the same way. Signed-off-by: Jarkko Sakkine

[PATCH v6 15/17] tpm: introduce tpm_chip_start() and tpm_chip_stop()

2018-11-13 Thread Jarkko Sakkinen
Encapsulate power gating and locality functionality to tpm_chip_start() and tpm_chip_stop() in order to clean up the branching mess in tpm_transmit(). Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-chip.c | 110 +++ drivers/char/tpm/tpm-interface.c | 87

[PATCH v6 16/17] tpm: take TPM chip power gating out of tpm_transmit()

2018-11-13 Thread Jarkko Sakkinen
Call tpm_chip_start() and tpm_chip_stop() in * tpm_try_get_ops() and tpm_put_ops() * tpm_chip_register() * tpm2_del_space() And remove these calls from tpm_transmit(). The core reason for this change is that in tpm_vtpm_proxy a locality change requires a virtual TPM command (a command made up jus

[PATCH v6 17/17] tpm: remove @flags from tpm_transmit()

2018-11-13 Thread Jarkko Sakkinen
Remove @flags from tpm_transmit() API. It is no longer used for anything. Signed-off-by: Jarkko Sakkinen --- drivers/char/tpm/tpm-chip.c | 32 ++--- drivers/char/tpm/tpm-dev-common.c | 2 +- drivers/char/tpm/tpm-interface.c | 18 drivers/char/tpm/tpm-sysfs.c

RE: [PATCH v6 00/17] Removed nested TPM operations

2018-11-13 Thread Winkler, Tomas
> > [was Detach TPM space code out of the tpm_transmit() flow but the scope > expanded a bit.] I believe you making this series artificially large we can merge the first 4 patches and leave the rest for further discussion. Thanks Tomas

Re: [PATCH v4 4/6] tpm: modify tpm_pcr_read() definition to pass a TPM hash algorithm

2018-11-13 Thread Jarkko Sakkinen
On Thu, Nov 08, 2018 at 09:08:35PM +0200, Jarkko Sakkinen wrote: > On Thu, Nov 08, 2018 at 04:19:09PM +0100, Peter Huewe wrote: > > Am 8. November 2018 16:15:04 MEZ schrieb Jarkko Sakkinen > > : > > >On Thu, Nov 08, 2018 at 03:16:03PM +0100, Roberto Sassu wrote: > > >> > > >> Unfortunately, I can

RE: Qemu Guest kernel 4.20-rc1 PCIe hotplug issue

2018-11-13 Thread Shameerali Kolothum Thodi
> -Original Message- > From: mika.westerb...@linux.intel.com > [mailto:mika.westerb...@linux.intel.com] > Sent: 13 November 2018 12:25 > To: Shameerali Kolothum Thodi > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Wangzhou (B) > ; Linuxarm ; Lukas > Wunner > Subject: Re

Re: [PATCH v4 4/6] tpm: modify tpm_pcr_read() definition to pass a TPM hash algorithm

2018-11-13 Thread Roberto Sassu
On 11/13/2018 1:34 PM, Jarkko Sakkinen wrote: On Thu, Nov 08, 2018 at 09:08:35PM +0200, Jarkko Sakkinen wrote: On Thu, Nov 08, 2018 at 04:19:09PM +0100, Peter Huewe wrote: Am 8. November 2018 16:15:04 MEZ schrieb Jarkko Sakkinen : On Thu, Nov 08, 2018 at 03:16:03PM +0100, Roberto Sassu wrote:

[PATCH v2] power: supply: bq24190_charger: add support for bq24196 variant

2018-11-13 Thread Heiko Stuebner
From: Heiko Stuebner The bq24196 is another variant of the bq24190 charger ic. Its register set is identical to the bq24192 and it even reuses the same part number (0x5). Signed-off-by: Heiko Stuebner --- This should go on top of the bq24192 support patches from Brian Masney / Jonathan Marek [0

Re: [PATCH] power: supply: bq24190_charger: add support for bq24196 variant

2018-11-13 Thread Heiko Stuebner
Am Freitag, 9. November 2018, 13:53:35 CET schrieb Heiko Stuebner: > From: Heiko Stuebner > > The bq24196 is another variant of the bq24190 charger ic. > Its register set is identical to the bq24192 and it even reuses > the same part number (0x5). > > Signed-off-by: Heiko Stuebner > --- looks

Re: [PATCH] ideapad-laptop: Add Lenovo Yoga 2 13 to the no_hw_rfkill DMI list

2018-11-13 Thread Andy Shevchenko
+Cc: mailing lists On Tue, Nov 13, 2018 at 5:21 AM Loic Wei-Yu-Neng wrote: > Here you go, > I attached my patch. Thanks, though in a kernel we have not using attachments. Moreover, since you forgot to include mailing lists the patchwork doesn't catch this either. Can you send it in a regular w

Re: [PATCH v2] vmscan: return NODE_RECLAIM_NOSCAN in node_reclaim() when CONFIG_NUMA is n

2018-11-13 Thread Michal Hocko
On Tue 13-11-18 16:04:36, Wei Yang wrote: > Commit fa5e084e43eb ("vmscan: do not unconditionally treat zones that > fail zone_reclaim() as full") changed the return value of node_reclaim(). > The original return value 0 means NODE_RECLAIM_SOME after this commit. > > While the return value of node_

RE: Qemu Guest kernel 4.20-rc1 PCIe hotplug issue

2018-11-13 Thread Shameerali Kolothum Thodi
> -Original Message- > From: Linuxarm [mailto:linuxarm-boun...@huawei.com] On Behalf Of > Shameerali Kolothum Thodi > Sent: 13 November 2018 12:36 > To: mika.westerb...@linux.intel.com > Cc: linux-...@vger.kernel.org; Lukas Wunner ; linux- > ker...@vger.kernel.org; Linuxarm > Subject: R

Re: Qemu Guest kernel 4.20-rc1 PCIe hotplug issue

2018-11-13 Thread mika.westerb...@linux.intel.com
On Tue, Nov 13, 2018 at 12:36:20PM +, Shameerali Kolothum Thodi wrote: > > @@ -156,9 +156,9 @@ static void pcie_do_write_cmd(struct controller *ctrl, > > u16 cmd, > > slot_ctrl |= (cmd & mask); > > ctrl->cmd_busy = 1; > > smp_mb(); > > + ctrl->slot_ctrl = slot_ctrl; > > Actually

Re: [PATCH] mm/hugetl.c: keep the page mapping info when free_huge_page() hit the VM_BUG_ON_PAGE

2018-11-13 Thread Michal Hocko
On Tue 13-11-18 20:38:16, Yongkai Wu wrote: > It is better to keep page mapping info when free_huge_page() hit the > VM_BUG_ON_PAGE, > so we can get more infomation from the coredump for further analysis. The patch seems to be whitespace damaged. Put that aside, have you actually seen a case where

Re: [PATCH v2] vmscan: return NODE_RECLAIM_NOSCAN in node_reclaim() when CONFIG_NUMA is n

2018-11-13 Thread Matthew Wilcox
On Tue, Nov 13, 2018 at 04:04:36PM +0800, Wei Yang wrote: > Commit fa5e084e43eb ("vmscan: do not unconditionally treat zones that > fail zone_reclaim() as full") changed the return value of node_reclaim(). > The original return value 0 means NODE_RECLAIM_SOME after this commit. > > While the retur

Re: [RFC PATCH v2 1/2] x86/fpu: detect AVX task

2018-11-13 Thread Li, Aubrey
On 2018/11/13 18:25, David Laight wrote: > From: Li, Aubrey >> Sent: 12 November 2018 01:41 > ... >> VZEROUPPER instruction resets the init state. If context switch happens >> to occur exactly after VZEROUPPER instruction, XINUSE bitmap is empty(all >> zeros), which indicates the task is not using

Re: [PATCH v4 6/6] tpm: ensure that the output of PCR read contains the correct digest size

2018-11-13 Thread Roberto Sassu
On 11/8/2018 3:08 PM, Jarkko Sakkinen wrote: On Tue, Nov 06, 2018 at 04:01:59PM +0100, Roberto Sassu wrote: This patch protects against data corruption that could happen in the bus, by checking that that the digest size returned by the TPM during a PCR read matches the size of the algorithm pass

Re: [PATCH] net/9p: include trans_common.h to fix missing prototype warning.

2018-11-13 Thread Dominique Martinet
Adeodato Simó wrote on Tue, Nov 13, 2018: > This silences -Wmissing-prototypes when defining p9_release_pages. > > Signed-off-by: Adeodato Simó > --- > net/9p/trans_common.c | 1 + > 1 file changed, 1 insertion(+) > > It was suggested in the kernel-janitors mailing list that silencing > -Wmissi

Re: [PATCH v6 4/4] arm64: defconfig: Enable PWM_SUN4I

2018-11-13 Thread Maxime Ripard
On Tue, Nov 13, 2018 at 05:45:35PM +0530, Jagan Teki wrote: > Allwinner PWM support need for ARM64 Allwinner SoC's > which used pwms, builds it as module. > > Signed-off-by: Jagan Teki Applied all 4 patches, thanks! Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https:/

Re: [PATCH v2] vmscan: return NODE_RECLAIM_NOSCAN in node_reclaim() when CONFIG_NUMA is n

2018-11-13 Thread Wei Yang
On Tue, Nov 13, 2018 at 01:56:11PM +0100, Michal Hocko wrote: >On Tue 13-11-18 16:04:36, Wei Yang wrote: >> Commit fa5e084e43eb ("vmscan: do not unconditionally treat zones that >> fail zone_reclaim() as full") changed the return value of node_reclaim(). >> The original return value 0 means NODE_RE

Re: [PATCH v2] vmscan: return NODE_RECLAIM_NOSCAN in node_reclaim() when CONFIG_NUMA is n

2018-11-13 Thread Wei Yang
On Tue, Nov 13, 2018 at 05:04:20AM -0800, Matthew Wilcox wrote: >On Tue, Nov 13, 2018 at 04:04:36PM +0800, Wei Yang wrote: >> Commit fa5e084e43eb ("vmscan: do not unconditionally treat zones that >> fail zone_reclaim() as full") changed the return value of node_reclaim(). >> The original return val

RE: Qemu Guest kernel 4.20-rc1 PCIe hotplug issue

2018-11-13 Thread Shameerali Kolothum Thodi
> -Original Message- > From: mika.westerb...@linux.intel.com > [mailto:mika.westerb...@linux.intel.com] > Sent: 13 November 2018 12:59 > To: Shameerali Kolothum Thodi > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Wangzhou (B) > ; Linuxarm ; Lukas > Wunner > Subject: Re:

Re: [PATCH v2] vmscan: return NODE_RECLAIM_NOSCAN in node_reclaim() when CONFIG_NUMA is n

2018-11-13 Thread Matthew Wilcox
On Tue, Nov 13, 2018 at 04:04:36PM +0800, Wei Yang wrote: > This patch fix the return value by adjusting to NODE_RECLAIM_NOSCAN. Since > node_reclaim() is only called in page_alloc.c, move it to mm/internal.h. linux/swap.h is included in quite a few places in the kernel, but let's see what's reall

Re: [REGRESSION] brcmfmac: NULL pointer deference starting next-20181107

2018-11-13 Thread Jon Hunter
On 13/11/2018 13:21, Jon Hunter wrote: ... >> IMHO the best fix here would be to modify efivar_entry_size(), >> adding: >> >> if (!ops) >>     return -ENOENT; >> >> Which makes it return the same error as when we do have efivar >> support but the requested variable is not found. > > So

[PATCH] arm64: dts: actions: s700: Add I2C controller nodes

2018-11-13 Thread Parthiban Nallathambi
Add I2C controller nodes for Actions Semiconductor S700 SoC. Signed-off-by: Parthiban Nallathambi --- arch/arm64/boot/dts/actions/s700.dtsi | 40 +++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s700.dtsi b/arch/arm64/boot/dts/actions/s700.d

Re: [PATCH 0/2] drm/meson: Allow using optional canvas provider

2018-11-13 Thread Neil Armstrong
On 05/11/2018 15:02, Maxime Jourdan wrote: > Hi Neil, > > On Mon, Nov 5, 2018 at 1:51 PM Neil Armstrong wrote: >> >> Hi Maxime, >> >> On 05/11/2018 11:45, Maxime Jourdan wrote: >>> The meson DRM driver currently uses constant, static canvas indexes. >>> >>> This is not optimal and could conflict

Re: [PATCH] drm/meson: venc: dmt mode must use encp

2018-11-13 Thread Neil Armstrong
On 13/11/2018 09:35, Neil Armstrong wrote: > On 12/11/2018 19:41, Jorge Ramirez-Ortiz wrote: >> From: Jorge Ramirez-Ortiz >> >> The video mode for DMT is only populated to support encp. >> >> Signed-off-by: Jorge Ramirez-Ortiz >> --- >> drivers/gpu/drm/meson/meson_venc.c | 15 --- >>

Re: BUG: KASAN: slab-out-of-bounds in selinux_sctp_bind_connect+0x60/0x150

2018-11-13 Thread Paul Moore
On Mon, Nov 12, 2018 at 10:11 PM Qian Cai wrote: > > On Nov 12, 2018, at 10:09 PM, Paul Moore wrote: > > > > On Mon, Nov 12, 2018 at 7:59 PM Qian Cai wrote: > >>> On Nov 12, 2018, at 7:41 PM, Paul Moore wrote: > >>> On Mon, Nov 12, 2018 at 2:39 PM Qian Cai wrote: > > Running the trin

Re: [PATCH] pinctrl: meson: fix pull enable register calculation

2018-11-13 Thread Neil Armstrong
On 13/11/2018 11:55, Jerome Brunet wrote: > We just changed the code so we apply bias disable on the correct > register but forgot to align the register calculation. The result > is that we apply the change on the correct register, but possibly > at the incorrect offset/bit > > This went undetecte

Re: [PATCH v4 1/6] tpm: dynamically allocate active_banks array

2018-11-13 Thread Roberto Sassu
On 11/8/2018 2:46 PM, Jarkko Sakkinen wrote: Orrayn Tue, Nov 06, 2018 at 04:01:54PM +0100, Roberto Sassu wrote: This patch removes the hard-coded limit of the active_banks array size. It stores in the tpm_chip structure the number of active PCR banks, determined in tpm2_get_pcr_allocation(), and

[PATCH RFC] ARM64: dts: marvell: Add DTS file for Turris Mox

2018-11-13 Thread Marek Behún
This is a RFC, please do not merge. This adds basic support for the Turris Mox board from CZ.NIC. Turris Mox is as modular router based on the Armada 3720 SOC (same as EspressoBin). The basic module can be extended by different modules. When those modules are connected, U-Boot has to let kernel

[PATCH v5 2/9] arm64: dts: Reflect change of FSL QSPI driver and remove unused properties

2018-11-13 Thread Schrempf Frieder
The FSL QSPI driver will be moved to the SPI framework and it then acts as a SPI controller. Therefore the subnodes need to set spi-[rx/tx]-bus-width = <4>, so quad mode is used just as before. Also the properties 'num-cs' and 'bus-num' were never read by the driver and can be removed. The proper

[PATCH v5 0/9] Port the FSL QSPI driver to the SPI framework

2018-11-13 Thread Schrempf Frieder
Now that the SPI memory interface was introduced by Boris, it is possible to move drivers from mtd/spi-nor to the SPI framework in order to use them for different type of SPI memory chips. Patch 1 and 2 removes some unused properties from the devicetree and fixes the reg properties to correctly re

[PATCH v5 4/9] dt-bindings: spi: Move the bindings for the FSL QSPI driver

2018-11-13 Thread Schrempf Frieder
Move the documentation of the old SPI NOR driver to the place of the new SPI memory interface based driver. Signed-off-by: Frieder Schrempf --- .../bindings/{mtd/fsl-quadspi.txt => spi/spi-fsl-qspi.txt} | 0 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/Documentation/de

[PATCH v5 1/9] ARM: dts: Reflect change of FSL QSPI driver and remove unused properties

2018-11-13 Thread Schrempf Frieder
The FSL QSPI driver will be moved to the SPI framework and it then acts as a SPI controller. Therefore the subnodes need to set spi-[rx/tx]-bus-width = <4>, so quad mode is used just as before. Also the properties 'bus-num', 'fsl,spi-num-chipselects' and 'fsl,spi-flash-chipselects' were never read

[PATCH v5 5/9] dt-bindings: spi: Adjust the bindings for the FSL QSPI driver

2018-11-13 Thread Schrempf Frieder
Adjust the documentation of the new SPI memory interface based driver to reflect the new drivers settings. The "old" driver was using the "fsl,qspi-has-second-chip" property to select one of two dual chip setups (two chips on one bus or two chips on separate buses). And it used the order in which

[PATCH v5 6/9] mtd: fsl-quadspi: Remove the driver as it was replaced by spi-fsl-qspi.c

2018-11-13 Thread Schrempf Frieder
There's a new driver using the SPI memory interface of the SPI framework at spi/spi-fsl-qspi.c, which can be used together with m25p80.c to replace the functionality of this SPI NOR driver. The new driver is already in use and this code is not compiled anymore, so let's remove it. Signed-off-by:

[PATCH v5 7/9] ARM: dts: ls1021a: Remove fsl,qspi-has-second-chip as it is not used

2018-11-13 Thread Schrempf Frieder
After switching to the new FSL QSPI driver the property 'fsl,qspi-has-second-chip' is not needed anymore. The driver now uses the 'reg' property to determine the bus and the chipselect. Signed-off-by: Frieder Schrempf --- arch/arm/boot/dts/ls1021a-moxa-uc-8410a.dts | 1 - 1 file changed, 1 dele

[PATCH v5 8/9] ARM64: dts: ls1046a: Remove fsl,qspi-has-second-chip as it is not used

2018-11-13 Thread Schrempf Frieder
After switching to the new FSL QSPI driver the property 'fsl,qspi-has-second-chip' is not needed anymore. The driver now uses the 'reg' property to determine the bus and the chipselect. Signed-off-by: Frieder Schrempf --- arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 1 - 1 file changed, 1 d

[PATCH v5 9/9] MAINTAINERS: Move the Freescale QSPI driver to the SPI framework

2018-11-13 Thread Schrempf Frieder
The driver was ported to the SPI framework so it can be used as a generic SPI memory driver and not only for SPI NOR. Reflect this transition in the MAINTAINERS file. Signed-off-by: Frieder Schrempf --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINE

[PATCH v5 3/9] spi: Add a driver for the Freescale/NXP QuadSPI controller

2018-11-13 Thread Schrempf Frieder
This driver is derived from the SPI NOR driver at mtd/spi-nor/fsl-quadspi.c. It uses the new SPI memory interface of the SPI framework to issue flash memory operations to up to four connected flash chips (2 buses with 2 CS each). The controller does not support generic SPI messages. This patch al

[PATCH 0/3] ARM: davinci: fix ethernet support on da850-evm

2018-11-13 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Ethernet doesn't work on da850-evm in legacy boot mode since v4.19. This series addresses two problems I've found. I guess with this kind of intrusive changes in the GPIO driver, other boards may be broken at the moment too. Bartosz Golaszewski (3): ARM: davinci: defi

[PATCH 3/3] ARM: davinci: fix da850-evm boot in legacy mode

2018-11-13 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection") broke the network support in legacy boot mode for da850-evm since we can no longer request the MDIO clock GPIO. We now have the option to specify the GPIO base manually for davinc

[PATCH 2/3] gpio: davinci: restore a way to manually specify the GPIO base

2018-11-13 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection") broke the network support in legacy boot mode for da850-evm since we can no longer request the MDIO clock GPIO. Other boards may be broken too, which I haven't tested. The proble

[PATCH 1/3] ARM: davinci: define gpio interrupts as separate resources

2018-11-13 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Since commit eb3744a2dd01 ("gpio: davinci: Do not assume continuous IRQ numbering") the davinci GPIO driver fails to probe if we boot in legacy mode from any of the board files. Since the driver now expects every interrupt to be defined as a separate resource, split the

Re: BUG: KASAN: slab-out-of-bounds in selinux_sctp_bind_connect+0x60/0x150

2018-11-13 Thread Qian Cai
On 11/13/18 at 8:33 AM, Paul Moore wrote: > On Mon, Nov 12, 2018 at 10:11 PM Qian Cai wrote: > > > On Nov 12, 2018, at 10:09 PM, Paul Moore wrote: > > > > > > On Mon, Nov 12, 2018 at 7:59 PM Qian Cai wrote: > > >>> On Nov 12, 2018, at 7:41 PM, Paul Moore wrote: > > >>> On Mon, Nov 12, 2018 at

Re: [PATCH v4 1/6] tpm: dynamically allocate active_banks array

2018-11-13 Thread Roberto Sassu
Adding in CC Monty and Dave. On 11/8/2018 2:46 PM, Jarkko Sakkinen wrote: Orrayn Tue, Nov 06, 2018 at 04:01:54PM +0100, Roberto Sassu wrote: This patch removes the hard-coded limit of the active_banks array size. It stores in the tpm_chip structure the number of active PCR banks, determined in

[PATCH] arm64: dts: marvell: armada_8k: reserve memory for ATF

2018-11-13 Thread Emmanuel Vadot
Like 4436a371 for 37xx, reserve the PSCI area memory region so kernels can call the code there. Region address is taken from the ATF code [1] and is 2MiB aligned. [1] plat/marvell/a8k/common/include/platform_def.h Signed-off-by: Emmanuel Vadot --- arch/arm64/boot/dts/marvell/armada-ap806.dtsi |

[REGRESSION 4.20-rc1] 45975c7d21a1 ("rcu: Define RCU-sched API in terms of RCU for Tree RCU PREEMPT builds")

2018-11-13 Thread Ville Syrjälä
Hi Paul, After 4.20-rc1 some of my 32bit UP machines no longer reboot/shutdown. I bisected this down to commit 45975c7d21a1 ("rcu: Define RCU-sched API in terms of RCU for Tree RCU PREEMPT builds"). I traced the hang into -> cpufreq_suspend() -> cpufreq_stop_governor() -> cpufreq_dbs_governor_

Re: [PATCH v4 01/10] spi: Add a driver for the Freescale/NXP QuadSPI controller

2018-11-13 Thread Schrempf Frieder
Hi Yogesh, On 13.11.18 09:22, Yogesh Narayan Gaur wrote: [...] >> + >> +static void fsl_qspi_read_ahb(struct fsl_qspi *q, const struct >> +spi_mem_op *op) { >> +/* >> + * We want to avoid needing to invalidate the cache by issueing >> + * a reset to the AHB and Serial Flash domain, as

Re: [PATCH v3] ARM: module: Fix function kallsyms on Thumb-2

2018-11-13 Thread Dave Martin
On Tue, Nov 13, 2018 at 12:27:45PM +0100, Vincent Whitchurch wrote: > Thumb-2 functions have the lowest bit set in the symbol value in the > symtab. When kallsyms are generated for the vmlinux, the kallsyms are > generated from the output of nm, and nm clears the lowest bit. > > $ arm-linux-gnue

Re: [PATCH 04/15] Platform: OLPC: Remove an unused include

2018-11-13 Thread Lubomir Rintel
Hi, thank you for the response. On Fri, 2018-10-19 at 16:05 +0300, Andy Shevchenko wrote: > On Wed, Oct 10, 2018 at 8:23 PM Lubomir Rintel > wrote: > > Also, the header is x86 specific, while there are non-x86 OLPC > > machines. > > Same concern. as per patch 2. Which concern? If it's that it

Re: [PATCHv3 2/3] reset: socfpga: add an early reset driver for SoCFPGA

2018-11-13 Thread Philipp Zabel
Hi Dinh, On Mon, 2018-11-05 at 14:05 -0600, Dinh Nguyen wrote: > From: Dinh Nguyen > > Create a separate reset driver that uses the reset operations in > reset-simple. The reset driver for the SoCFPGA platform needs to > register early in order to be able bring online timers that needed > early

[PATCH v2 23/25] ARM: davinci: mityomapl138: use nvmem notifiers

2018-11-13 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Stop using the at24_platform_data setup callback in favor of nvmem notifiers. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/board-mityomapl138.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-davinc

[PATCH v2 24/25] ARM: davinci: mityomapl138: use device properties for at24 eeprom

2018-11-13 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We want to work towards phasing out the at24_platform_data structure. There are few users and its contents can be represented using generic device properties. Using device properties only will allow us to significantly simplify the at24 configuration code. Remove the at

[PATCH] staging: rtl8188eu: core: coding style check

2018-11-13 Thread Kevin Dou
follow the linux coding style, rename the variable shortGIrate to short_gi_rate. Signed-off-by: Kevin Dou --- drivers/staging/rtl8188eu/core/rtw_ap.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ap.c b/drivers/staging/rtl8188eu/c

Compliment of the day to you Dear Friend.

2018-11-13 Thread Mrs Amina.Kadi
Compliment of the day to you Dear Friend. Dear Friend. I am Mrs. Amina Kadi. am sending this brief letter to solicit your partnership to transfer $5.5 million US Dollars. I shall send you more information and procedures when I receive positive response from you. Mrs. Amina Kadi

Re: [PATCH v2 0/4] clk: meson: Add video clocks path

2018-11-13 Thread jbrunet
On Tue, 2018-11-06 at 15:57 +0100, Neil Armstrong wrote: > This patchset is an attempt to handle the Amlogic Meson GX Video clock > in the Common Clock Framework in order to move the video pipeline and > HDMI controller clock management out of the Meson DRM Driver. > > In order : > - Add support t

[tip:x86/cleanups] x86/traps: Complete prototype declarations

2018-11-13 Thread tip-bot for Borislav Petkov
Commit-ID: 95715a3f0e4f0abc4749c6a4fdf2c08c3ff18450 Gitweb: https://git.kernel.org/tip/95715a3f0e4f0abc4749c6a4fdf2c08c3ff18450 Author: Borislav Petkov AuthorDate: Mon, 12 Nov 2018 13:20:36 +0100 Committer: Borislav Petkov CommitDate: Tue, 13 Nov 2018 15:16:50 +0100 x86/traps: Complete

[tip:x86/cleanups] x86/mce: Fix -Wmissing-prototypes warnings

2018-11-13 Thread tip-bot for Borislav Petkov
Commit-ID: 83a204daa40315a38204493f60768910c8604e9c Gitweb: https://git.kernel.org/tip/83a204daa40315a38204493f60768910c8604e9c Author: Borislav Petkov AuthorDate: Fri, 9 Nov 2018 23:13:13 +0100 Committer: Borislav Petkov CommitDate: Tue, 13 Nov 2018 14:55:08 +0100 x86/mce: Fix -Wmissi

Re: [PATCH v9 3/5] clk: imx: add SCCG PLL type

2018-11-13 Thread Shawn Guo
On Sat, Nov 10, 2018 at 04:05:44PM +, A.s. Dong wrote: > Hi Stephen, > > [...] > > > I already sent the 12th version of this current patch series and I > > > would really like to get this in ASAP so that the booting up of imx8mq > > > will > > not be delayed. > > > > > > > Ok. Well we're in

Re: [PATCH trivial] reset: Improve reset controller kernel docs

2018-11-13 Thread Philipp Zabel
Hi Geert, On Mon, 2018-10-08 at 13:15 +0200, Geert Uytterhoeven wrote: > Grammar and indentation fixes. > > Signed-off-by: Geert Uytterhoeven > --- > include/linux/reset.h | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/include/linux/reset.h b/include/linux/res

Re: BUG: KASAN: slab-out-of-bounds in selinux_sctp_bind_connect+0x60/0x150

2018-11-13 Thread Paul Moore
On Tue, Nov 13, 2018 at 8:52 AM Qian Cai wrote: > On 11/13/18 at 8:33 AM, Paul Moore wrote: > > On Mon, Nov 12, 2018 at 10:11 PM Qian Cai wrote: > > > > On Nov 12, 2018, at 10:09 PM, Paul Moore wrote: > > > > > > > > On Mon, Nov 12, 2018 at 7:59 PM Qian Cai wrote: > > > >>> On Nov 12, 2018, at

Re: [GIT PULL] PCI changes for v4.20

2018-11-13 Thread Lendacky, Thomas
On 11/13/2018 04:20 AM, Borislav Petkov wrote: > On Tue, Nov 13, 2018 at 08:17:12AM +0100, Ingo Molnar wrote: >> >> * Bjorn Helgaas wrote: >> >>> PCI changes: >>> >>> - Pay attention to device-specific _PXM node values (Jonathan Cameron) >> >> There's a new boot regression, my AMD ThreadRipper s

Re: [PATCH] ARM: dts: i.MX25: add the clocks for the EPIT blocks

2018-11-13 Thread Shawn Guo
On Mon, Nov 05, 2018 at 10:12:30AM +0100, Martin Kaiser wrote: > Hi, > > Thus wrote Shawn Guo (shawn...@kernel.org): > > > On Thu, Nov 01, 2018 at 06:32:47PM +0100, Martin Kaiser wrote: > > > The i.MX25 contains two EPIT (Enhanced Periodic Interrupt Timer) > > > function blocks. Add their ipg and

Re: [PATCH] vfio/pci: Parallelize device open and release

2018-11-13 Thread Auger Eric
Hi Alex, On 11/9/18 11:09 PM, Alex Williamson wrote: > In commit 61d792562b53 ("vfio-pci: Use mutex around open, release, and > remove") a mutex was added to freeze the refcnt for a device so that > we can handle errors and perform bus resets on final close. However, > bus resets can be rather sl

Re: [PATCH 4/4] thunderbolt: Export IOMMU based DMA protection support to userspace

2018-11-13 Thread Yehezkel Bernat
On Tue, Nov 13, 2018 at 1:40 PM Mika Westerberg wrote: > > On Tue, Nov 13, 2018 at 01:13:31PM +0200, Yehezkel Bernat wrote: > > On Tue, Nov 13, 2018 at 12:56 PM Mika Westerberg > > wrote: > > > > > > > Just one point: > > > > Have you considered the option to add this property per (TBT?) device?

Re: [PATCH v6 00/24] arm64: provide pseudo NMI with GICv3

2018-11-13 Thread Julien Thierry
Hi, This series + the core NMI patches can be fetched from: git clone http://linux-arm.org/linux-jt.gitv4.20-pseudo-nmi Thanks, Julien On 12/11/18 11:56, Julien Thierry wrote: Hi, This series is a continuation of the work started by Daniel [1]. The goal is to use GICv3 interrupt priorit

[PATCH 1/2] regulator: dt-bindings: add regulator-state-standby bindings

2018-11-13 Thread Andrei.Stefanescu
For state-mem and state-disk regulators can have various parameters applied such as enabled/disabled, current mode, voltage etc. This patch adds documentation on how to set these parameters in the device tree for the standby state. Signed-off-by: Andrei Stefanescu --- Documentation/devicetree/b

[PATCH 0/2] set regulator constraints for standby state

2018-11-13 Thread Andrei.Stefanescu
This patch series adds support for setting the regulator constraints when entering standby Linux state. The new bindings are called regulator-state-standby and have the same syntax as regulator-state-mem/disk. Before this patch, if the regulator driver implemented set_suspend_voltage/mode the rde

[PATCH 2/2] regulator: of: add support for parsing regulator-state-standby

2018-11-13 Thread Andrei.Stefanescu
Set the according constraints for PM_SUSPEND_STANDBY case. Previously, only suspend to mem/disk were taken into consideration. Signed-off-by: Andrei Stefanescu --- drivers/regulator/of_regulator.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/of_regula

<    1   2   3   4   5   6   7   >