[PATCH v3 2/4] Documentation: bindings: add phy_config for Rockchip USB Type-C PHY

2018-05-14 Thread Lin Huang
If want to do training outside DP Firmware, need phy voltage swing and pre_emphasis value. Signed-off-by: Lin Huang --- Changes in v2: - rebase Changes in v3: - modify property description and add this property to example .../devicetree/bindings/phy/phy-rockchip-typec.txt | 29 +

[PATCH v3 4/4] drm/rockchip: support dp training outside dp firmware

2018-05-14 Thread Lin Huang
DP firmware uses fixed phy config values to do training, but some boards need to adjust these values to fit for their unique hardware design. So if the phy is using custom config values, do software link training instead of relying on firmware, if software training fail, keep firmware training as a

[PATCH v3 3/4] phy: rockchip-typec: support variable phy config value

2018-05-14 Thread Lin Huang
the phy config values used to fix in dp firmware, but some boards need change these values to do training and get the better eye diagram result. So support that in phy driver. Signed-off-by: Chris Zhong Signed-off-by: Lin Huang --- Changes in v2: - update patch following Enric suggest Changes in

Re: [PATCH] MAINTAINERS: add entry for LEGO MINDSTORMS EV3

2018-05-14 Thread Sekhar Nori
On Sunday 13 May 2018 03:35 AM, David Lechner wrote: > This adds an entry to MAINTAINERS for LEGO MINDSTORMS EV3 (an ARM-based > robotics platform). The files listed are exclusive to this device. Add > me as reviewer so that I will be cc'ed for any changes to these files. > > Signed-off-by: David

Re: [PATCH 01/18] arm64: consistently use unsigned long for thread flags

2018-05-14 Thread Dave Martin
On Mon, May 14, 2018 at 10:46:23AM +0100, Mark Rutland wrote: > In do_notify_resume, we manipulate thread_flags as a 32-bit unsigned > int, whereas thread_info::flags is a 64-bit unsigned long, and elsewhere > (e.g. in the entry assembly) we manipulate the flags as a 64-bit > quantity. > > For con

Re: [PATCH v3 5/5] drm/arm/malidp: Added the late system pm functions

2018-05-14 Thread Ayan Halder
On Wed, Apr 25, 2018 at 01:49:35PM +0200, Daniel Vetter wrote: Hi Daniel, > On Wed, Apr 25, 2018 at 1:26 PM, Liviu Dudau wrote: > > On Wed, Apr 25, 2018 at 09:17:22AM +0200, Daniel Vetter wrote: > >> On Tue, Apr 24, 2018 at 07:12:47PM +0100, Ayan Kumar Halder wrote: > >> > malidp_pm_suspend_late c

Re: [PATCH 02/18] arm64: move SCTLR_EL{1,2} assertions to

2018-05-14 Thread Dave Martin
On Mon, May 14, 2018 at 10:46:24AM +0100, Mark Rutland wrote: > Currently we assert that the SCTLR_EL{1,2}_{SET,CLEAR} bits are > self-consistent with an assertion in config_sctlr_el1(). This is a bit > unusual, since config_sctlr_el1() doesn't make use of these definitions, > and is far away from

Re: [PATCH 03/18] arm64: introduce sysreg_clear_set()

2018-05-14 Thread Dave Martin
On Mon, May 14, 2018 at 10:46:25AM +0100, Mark Rutland wrote: > Currently we have a couple of helpers to manipulate bits in particular > sysregs: > > * config_sctlr_el1(u32 clear, u32 set) > > * change_cpacr(u64 val, u64 mask) > > The parameters of these differ in naming convention, order, and

Re: [PATCH 04/18] arm64: kill config_sctlr_el1()

2018-05-14 Thread Dave Martin
On Mon, May 14, 2018 at 10:46:26AM +0100, Mark Rutland wrote: > Now that we have sysreg_clear_set(), we can consistently use this > instead of config_sctlr_el1(). > > Signed-off-by: Mark Rutland > Cc: Catalin Marinas > Cc: James Morse > Cc: Will Deacon Reviewed-by: Dave Martin > --- > arch

Re: [PATCH] ARM: dts: da850-lego-ev3: remove unnecessary gpio-keys properties

2018-05-14 Thread Sekhar Nori
On Sunday 13 May 2018 03:11 AM, David Lechner wrote: > This removes the #address-cells and #size-cells properties from the > gpio-keys node in the da850-lego-ev3 device tree. These properties are > not needed since the child nodes don't have a reg property. > > Signed-off-by: David Lechner Appli

Re: [PATCH] KVM: arm/arm64: fix unaligned hva start and end in handle_hva_to_gpa

2018-05-14 Thread Suzuki K Poulose
On 14/05/18 03:30, Jia He wrote: On 5/11/2018 9:39 PM, Suzuki K Poulose Wrote: Marc Thanks for looping me in. Comments below. On 03/05/18 03:02, Jia He wrote: Hi Marc Thanks for the review On 5/2/2018 10:26 PM, Marc Zyngier Wrote: [+ Suzuki] On 02/05/18 08:08, Jia He wrote: From: Jia

[PATCH 1/1] ARM: dts: stm32: Add HASH support on stm32mp157c

2018-05-14 Thread Lionel Debieve
This patch add HASH instance of the stm32mp157c SoC Signed-off-by: Lionel Debieve --- arch/arm/boot/dts/stm32mp157c.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi index b66f673b5038..cb39fb6d9960 100

Re: [PATCH 05/18] arm64: kill change_cpacr()

2018-05-14 Thread Dave Martin
On Mon, May 14, 2018 at 10:46:27AM +0100, Mark Rutland wrote: > Now that we have sysreg_clear_set(), we can use this instead of > change_cpacr(). > > Note that the order of the set and clear arguments differs between > change_cpacr() and sysreg_clear_set(), so these are flipped as part of > the co

Re: [PATCH 2/2] arm64: Clear the stack

2018-05-14 Thread Mark Rutland
On Mon, May 14, 2018 at 12:35:25PM +0300, Alexander Popov wrote: > On 14.05.2018 08:15, Mark Rutland wrote: > > On Sun, May 13, 2018 at 11:40:07AM +0300, Alexander Popov wrote: > >> So what would you think if I do the following in check_alloca(): > >> > >>if (size >= stack_left) { > >> #if !def

Re: [PATCH 02/18] arm64: move SCTLR_EL{1,2} assertions to

2018-05-14 Thread Mark Rutland
On Mon, May 14, 2018 at 11:00:53AM +0100, Dave Martin wrote: > On Mon, May 14, 2018 at 10:46:24AM +0100, Mark Rutland wrote: > > -/* Check all the bits are accounted for */ > > -#define SCTLR_EL2_BUILD_BUG_ON_MISSING_BITS > > BUILD_BUG_ON((SCTLR_EL2_SET ^ SCTLR_EL2_CLEAR) != ~0) > > - > > +

Re: [PATCH 3/3] arm64: dts: renesas: draak: Describe HDMI input

2018-05-14 Thread Niklas Söderlund
Hi again, On 2018-05-14 11:49:00 +0200, Niklas Söderlund wrote: > Hi Laurent, > > On 2018-05-14 05:49:41 +0300, Laurent Pinchart wrote: > > [snip] > > > > > +&vin4 { > > > > + pinctrl-0 = <&vin4_pins>; > > > > + pinctrl-names = "default"; > > > > + > > > > + status = "okay"; >

Re: [PATCH v6 3/6] kernel/reboot.c: export pm_power_off_prepare

2018-05-14 Thread Oleksij Rempel
On 14.05.2018 07:10, Oleksij Rempel wrote: > > > On 14.05.2018 06:33, Oleksij Rempel wrote: >> >> >> On 12.05.2018 13:13, Rafael J. Wysocki wrote: >>> On Friday, May 4, 2018 8:50:52 PM CEST Oleksij Rempel wrote: Hallo Andrew, I need your ACK or NACK for this patch. This func

[FAIL bisect] Sound card probe error

2018-05-14 Thread Krzysztof Kozlowski
Hi All, I experienced an issue on today's next 20180514. Found on Odroid XU3 board (Exynos5422, ARMv7, octa-core) with exynos_defconfig. 1. No sound card is probed: [6.717698] ALSA device list: [6.719303] No soundcards found. (expected: #0: Odroid-XU3) 2. Oops happens:

[PATCH] memstick: ms_block: fix unused variable warning

2018-05-14 Thread Anders Roxell
When building a warning pops up unused variable 'host' drivers/memstick/core/ms_block.c: In function ‘msb_init_disk’: drivers/memstick/core/ms_block.c:2097:24: warning: unused variable ‘host’ [-Wunused-variable] struct memstick_host *host = card->host; ^~~~ Removing the

[PATCH] memstick: mspro_block: fix unused variable warning

2018-05-14 Thread Anders Roxell
When building mspro_block a warning pops up unused variable 'host', drivers/memstick/core/mspro_block.c: In function ‘mspro_block_init_disk’: drivers/memstick/core/mspro_block.c:1173:24: warning: unused variable ‘host’ [-Wunused-variable] struct memstick_host *host = card->host;

[PATCH v2 2/4] dt-bindings: mtk-sysirq: Add compatible for Mediatek MT8183

2018-05-14 Thread Erin Lo
This adds dt-binding documentation of SYSIRQ for Mediatek MT8183 SoC Platform. Signed-off-by: Erin Lo --- .../devicetree/bindings/interrupt-controller/mediatek,sysirq.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/mediatek,

Re: [PATCH v8 01/12] perf/x86/intel/pt: Move Intel-PT MSRs bit definitions to a public header

2018-05-14 Thread Alexander Shishkin
On Mon, May 14, 2018 at 06:57:01PM +0800, Luwei Kang wrote: > From: Chao Peng > > Intel Processor Trace virtualization enabling in KVM guest > need to access these MSRs bit definitions, so move them to > public header file msr-index.h. > @@ -115,6 +148,7 @@ > #define MSR_IA32_RTIT_ADDR2_B

Re: [PATCH 3/3] arm64: dts: renesas: draak: Describe HDMI input

2018-05-14 Thread Niklas Söderlund
Hi Jacopo, On 2018-05-14 09:39:34 +0200, Jacopo Mondi wrote: > Hi Niklas, > > On Sun, May 13, 2018 at 02:57:55PM +0200, Niklas Söderlund wrote: > > Hi Jacopo, > > > > Thanks for your patch. > > > > On 2018-05-11 12:00:02 +0200, Jacopo Mondi wrote: > > > Describe HDMI input connected to VIN4 inter

[PATCH v2 4/4] arm64: dts: Add Mediatek SoC MT8183 and evaluation board dts and Makefile

2018-05-14 Thread Erin Lo
From: Ben Ho Add basic chip support for Mediatek 8183 Signed-off-by: Ben Ho Signed-off-by: Erin Lo --- arch/arm64/boot/dts/mediatek/Makefile | 1 + arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 31 + arch/arm64/boot/dts/mediatek/mt8183.dtsi| 178

[PATCH v2 3/4] dt-bindings: serial: Add compatible for Mediatek MT8183

2018-05-14 Thread Erin Lo
This adds dt-binding documentation of uart for Mediatek MT8183 SoC Platform. Signed-off-by: Erin Lo --- Documentation/devicetree/bindings/serial/mtk-uart.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/serial/mtk-uart.txt b/Documentation/devicetree/bind

[PATCH v2 1/4] dt-bindings: arm: Add bindings for Mediatek MT8183 SoC Platform

2018-05-14 Thread Erin Lo
This adds dt-binding documentation of cpu for Mediatek MT8183. Signed-off-by: Erin Lo --- Documentation/devicetree/bindings/arm/mediatek.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mediatek.txt b/Documentation/devicetree/bindings/arm/mediate

RE: [PATCH v4 6/6] devfreq: rk3399_dmc: fix spelling mistakes.

2018-05-14 Thread MyungJoo Ham
>Fix some spelling mistakes in error and debug messages. > >Signed-off-by: Enric Balletbo i Serra >--- > >Changes in v4: >- [6/6] Introduce this new patch that fixes some spelling. > >Changes in v3: None >Changes in v2: None > > drivers/devfreq/rk3399_dmc.c | 12 ++-- > 1 file changed, 6 in

[PATCH v2 0/4] Add basic support for Mediatek MT8183 SoC

2018-05-14 Thread Erin Lo
MT8183 is a SoC based on 64bit ARMv8 architecture. It contains 4 CA53 and 4 CA73 cores. MT8183 share many HW IP with MT65xx series. This patchset was tested on MT8183 evaluation board, and boot to shell ok. This series contains document bindings, device tree including interrupt, uart. Change in v

RE: [PATCH v4 3/6] devfreq: rk3399_dmc: remove wait for dcf irq event.

2018-05-14 Thread MyungJoo Ham
>We have already wait dcf done in ATF, so don't need wait dcf irq >in kernel, besides, clear dcf irq in kernel will import competiton >between kernel and ATF, only handle dcf irq in ATF is a better way. > >Signed-off-by: Lin Huang >Signed-off-by: Enric Balletbo i Serra >Reviewed-by: Chanwoo Choi

Re: [PATCH] tpm_tis: verify locality released before returning from release_locality

2018-05-14 Thread Jarkko Sakkinen
On Sat, May 05, 2018 at 12:54:53PM -0700, Jerry Snitselaar wrote: > For certain tpm chips releasing locality can take long enough that a > subsequent call to request_locality will see the locality as being > active when the access register is read in check_locality. So check > that the locality has

Re: [PATCH] x86-64/Xen: fix stack switching

2018-05-14 Thread Jan Beulich
>>> On 08.05.18 at 04:38, wrote: > On Mon, May 7, 2018 at 5:16 AM Jan Beulich wrote: > >> While on native entry into the kernel happens on the trampoline stack, >> PV Xen kernels are being entered with the current thread stack right >> away. Hence source and destination stacks are identical in t

Re: [PATCH] clk: davinci: psc-dm355: fix ASP0/1 clkdev lookups

2018-05-14 Thread Sekhar Nori
On Sunday 13 May 2018 02:19 AM, David Lechner wrote: > The clkdev lookups for the ASP0/1 devices on TI DM355 were declared, but > not assigned to any LPSC. This assigns the clkdev lookups to the > correct LPSCs. > > Reported-by: Sekhar Nori > Signed-off-by: David Lechner Reviewed-by: Sekhar Nor

Re: [bisected] 051f3ca02e46 "Introduce NUMA identity node sched domain" breaks fake NUMA on s390

2018-05-14 Thread Heiko Carstens
On Mon, May 14, 2018 at 11:39:09AM +0200, Peter Zijlstra wrote: > On Sat, May 12, 2018 at 12:02:33PM +0200, Heiko Carstens wrote: > > Hello, > > > > Andre Wild reported that fake NUMA doesn't work on s390 anymore. Doesn't > > work means it crashed for Andre, or it is in an endless loop within > >

Re: [PATCH 09/21] arm64: dts: allwinner: a64: Add HDMI support

2018-05-14 Thread Jagan Teki
On Mon, May 14, 2018 at 2:10 PM, Maxime Ripard wrote: > On Mon, May 14, 2018 at 02:03:36PM +0530, Jagan Teki wrote: >> On Wed, May 2, 2018 at 5:04 PM, Maxime Ripard >> wrote: >> > Hi, >> > >> > On Mon, Apr 30, 2018 at 05:10:46PM +0530, Jagan Teki wrote: >> >> + hdmi_phy: hdmi-phy@1ef

RE: [PATCH v4 0/6] devfreq: rk3399_dmc: improve rk3399_dmc driver and it's documentation

2018-05-14 Thread MyungJoo Ham
>Dear all, > >These patches is an attempt to improve a little bit the rk3399_dmc >driver and it's documentation in order to have all in a better shape for >a future work I am doing. My final intention is add ddrfreq support for >rockchip drm driver, but the patches for this are still >work-in-progr

Re: [PATCH v2 2/2] drm/bridge: sii902x: add optional power supplies

2018-05-14 Thread Andrzej Hajda
On 14.05.2018 11:38, Philippe CORNU wrote: > Hi Laurent, Archit, Andrzej & Yannick, > > Do you have any comments on this v2 driver part? > (more details regarding v1/v2 differences in the cover letter > https://www.spinics.net/lists/dri-devel/msg174137.html) > > Thank you, > Philippe :-) > > > On

Re: Are media drivers abusing of GFP_DMA? - was: Re: [LSF/MM TOPIC NOTES] x86 ZONE_DMA love

2018-05-14 Thread Mauro Carvalho Chehab
Hi Fabien, Em Mon, 14 May 2018 08:00:37 + Fabien DESSENNE escreveu: > On 07/05/18 17:19, Mauro Carvalho Chehab wrote: > > Em Mon, 07 May 2018 16:26:08 +0300 > > Laurent Pinchart escreveu: > > > >> Hi Mauro, > >> > >> On Saturday, 5 May 2018 19:08:15 EEST Mauro Carvalho Chehab wrote: > >

Re: [PATCH 2/3] hwmon: (ibmpowernv): Add support to read 64 bit sensors

2018-05-14 Thread Guenter Roeck
On 05/14/2018 12:11 AM, Michael Ellerman wrote: Guenter Roeck writes: On Mon, May 07, 2018 at 03:55:37PM +0530, Shilpasri G Bhat wrote: The firmware has supported for reading sensor values of size u32. This patch adds support to use newer firmware functions which allows to read the sensors of

Re: [PATCH] i2c: synquacer: fix fence-post error in retry loop

2018-05-14 Thread Ard Biesheuvel
On 9 May 2018 at 21:47, Peter Rosin wrote: > There is a difference between attempts and retries. > > Signed-off-by: Peter Rosin Acked-by: Ard Biesheuvel > --- > drivers/i2c/busses/i2c-synquacer.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/i2c/busses/i2c-s

Re: [PATCH v2 4/4] arm64: dts: Add Mediatek SoC MT8183 and evaluation board dts and Makefile

2018-05-14 Thread Marc Zyngier
On 14/05/18 11:22, Erin Lo wrote: > From: Ben Ho > > Add basic chip support for Mediatek 8183 > > Signed-off-by: Ben Ho > Signed-off-by: Erin Lo > --- > arch/arm64/boot/dts/mediatek/Makefile | 1 + > arch/arm64/boot/dts/mediatek/mt8183-evb.dts | 31 + > arch/arm64/boot/dts/mediat

Re: Are media drivers abusing of GFP_DMA? - was: Re: [LSF/MM TOPIC NOTES] x86 ZONE_DMA love

2018-05-14 Thread Mauro Carvalho Chehab
Em Mon, 14 May 2018 07:35:03 -0300 Mauro Carvalho Chehab escreveu: > Hi Fabien, > > Em Mon, 14 May 2018 08:00:37 + > Fabien DESSENNE escreveu: > > > On 07/05/18 17:19, Mauro Carvalho Chehab wrote: > > > Em Mon, 07 May 2018 16:26:08 +0300 > > > Laurent Pinchart escreveu: > > > > > >> Hi

Re: [RFC PATCH v3 5/5] usb: typec: tcpm: Support for Alternate Modes

2018-05-14 Thread Heikki Krogerus
On Sun, May 13, 2018 at 12:30:51AM +0300, Andy Shevchenko wrote: > On Fri, May 11, 2018 at 4:18 PM, Heikki Krogerus > wrote: > > This adds more complete handling of VDMs and registration of > > partner alternate modes, and introduces callbacks for > > alternate mode operations. > > > > Only DFP ro

Re: [PATCH v3 1/2] tpm: reduce poll sleep time in tpm_transmit()

2018-05-14 Thread Nayna Jain
On 05/10/2018 06:11 PM, Nayna Jain wrote: On 05/08/2018 10:04 PM, J Freyensee wrote:   do { -    tpm_msleep(TPM_POLL_SLEEP); +    tpm_msleep(TPM_TIMEOUT_POLL); I'm just curious why it was decided to still use tpm_msleep() here instead of usleep_range() which was u

Re: [PATCH v2] tpm: check selftest status before retrying full selftest

2018-05-14 Thread Jarkko Sakkinen
On Mon, May 07, 2018 at 09:09:41PM +0530, Nayna Jain wrote: > As per the TCG Specification[1][2], RC_COMMAND_CODE indicates that the TPM > command is not implemented or not supported. When RC_COMMAND_CODE is > returned in response to the partial selftest, this is not the case. TPM 2.0 > supports TP

Re: [RFC PATCH v3 3/5] usb: typec: Bus type for alternate modes

2018-05-14 Thread Heikki Krogerus
On Sat, May 12, 2018 at 06:25:09PM -0700, Randy Dunlap wrote: > On 05/11/2018 06:18 AM, Heikki Krogerus wrote: > > Introducing a simple bus for the alternate modes. Bus allows > > binding drivers to the discovered alternate modes the > > partners support. > > > > Signed-off-by: Heikki Krogerus >

Re: [PATCH v3 1/2] tpm: reduce poll sleep time in tpm_transmit()

2018-05-14 Thread Jarkko Sakkinen
On Mon, May 07, 2018 at 12:07:32PM -0400, Nayna Jain wrote: > tpm_try_transmit currently checks TPM status every 5 msecs between > send and recv. It does so in a loop for the maximum timeout as defined > in the TPM Interface Specification. However, the TPM may return before > 5 msecs. Thus the poll

Re: Difference between IOVA and bus address when SMMU is enabled

2018-05-14 Thread Jean-Philippe Brucker
Hi Valmiki, On 12/05/18 13:55, valmiki wrote: > Hi All, > > What is the difference between IOVA address and bus address > when SMMU is enabled ? They are the same. You'll use one term or the other depending on what system component you're talking about. "IOVA" only means something when talking a

[PATCH V6 0/5] Add support for Hexagon q6v5-wcss integrated core

2018-05-14 Thread Sricharan R
IPQ8074 has an integrated Hexagon dsp core Q6v5 and a wireless lan (Lithium) IP. This series adds the remoteproc driver to reset, load and boot Q6 firmware. The first patch is to make the mdt_loader authenticate the firmware only if required, so that the code can be reused for self-authenticating

Re: [PATCH v3 1/2] tpm: reduce poll sleep time in tpm_transmit()

2018-05-14 Thread Jarkko Sakkinen
On Mon, May 14, 2018 at 01:46:00PM +0300, Jarkko Sakkinen wrote: > On Mon, May 07, 2018 at 12:07:32PM -0400, Nayna Jain wrote: > > tpm_try_transmit currently checks TPM status every 5 msecs between > > send and recv. It does so in a loop for the maximum timeout as defined > > in the TPM Interface S

[PATCH V6 1/5] remoteproc: qcom: mdt_loader: Make the firmware authentication optional

2018-05-14 Thread Sricharan R
qcom_mdt_load function loads the mdt type firmware and initialises the secure memory as well. Make the initialisation only when requested by the caller, so that the function can be used by self-authenticating remoteproc as well. Acked-by: Bjorn Andersson Signed-off-by: Sricharan R --- drivers/s

[PATCH V6 2/5] remoteproc: qcom: Push reset ops, rproc ops in to of_match data

2018-05-14 Thread Sricharan R
Instead of directly assigning reset and rproc ops, put them in to of_match data and get from that. Currently same ops are used for all compatibles, but that will change when we add q6v5-wcss support. Signed-off-by: Sricharan R --- drivers/remoteproc/qcom_q6v5_pil.c | 38 -

[PATCH V6 5/5] remoteproc: qcom: Add q6v5-wcss rproc ops

2018-05-14 Thread Sricharan R
q6v5-wcss core's start function is mostly common with the q6v5 of msm8996. So reuse that and add the stop function. Signed-off-by: Sricharan R --- drivers/remoteproc/qcom_q6v5_pil.c | 227 + 1 file changed, 227 insertions(+) diff --git a/drivers/remoteproc/qc

[PATCH V6 3/5] remoteproc: qcom: Split the head and tail of the q5v5-pil rproc reset function

2018-05-14 Thread Sricharan R
Most of the q6v5-wcss reset function is same as MSM8996 reset sequence that will be added later. So split and move out the common pieces so that the same code can be reused. Signed-off-by: Sricharan R --- drivers/remoteproc/qcom_q6v5_pil.c | 169 - 1 file chan

[PATCH V6 4/5] remoteproc: qcom: Add support for q6v5-wcss pil

2018-05-14 Thread Sricharan R
IPQ8074 has an integrated Hexagon dsp core q6v5 and a wireless lan (Lithium) IP. An mdt type single image format is used for the firmware. So the mdt_load function can be directly used to load the firmware. Also add the relevant resets required for this core. Acked-by: Rob Herring Signed-off-by:

Re: linux-next: Signed-off-by missing for commit in the mediatek tree

2018-05-14 Thread Matthias Brugger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Stephen, On 05/13/2018 11:57 PM, Stephen Rothwell wrote: > Hi Matthias, > > Commit > > f039c4193c93 ("iregmap: include from > include/linux/regmap.h") > > is missing a Signed-off-by from its committer. > My tree was broken and the merge com

[PATCH] mtd: nand: Fix return type of __DIVIDE() when called with 32-bit

2018-05-14 Thread Geert Uytterhoeven
The __DIVIDE() macro checks whether it is called with a 32-bit or 64-bit dividend, to select the appropriate divide-and-round-up routine. As the check uses the ternary operator, the result will always be promoted to a type that can hold both results, i.e. unsigned long long. When using this result

Re: [PATCH] m68k: Implement ndelay() as an inline function to force type checking/casting

2018-05-14 Thread Geert Uytterhoeven
Hi Boris, On Mon, May 14, 2018 at 11:29 AM, Geert Uytterhoeven wrote: > On Sun, May 13, 2018 at 4:02 PM, Boris Brezillon > wrote: >> ndelay() is supposed to take an unsigned long, but if you define >> ndelay() as a macro and the caller pass an unsigned long long instead >> of an unsigned long, t

[PATCH v2] memstick: mspro_block: fix unused variable warning

2018-05-14 Thread Anders Roxell
When building mspro_block a warning pops up unused variable 'host', drivers/memstick/core/mspro_block.c: In function ‘mspro_block_init_disk’: drivers/memstick/core/mspro_block.c:1173:24: warning: unused variable ‘host’ [-Wunused-variable] struct memstick_host *host = card->host;

Re: Difference between IOVA and bus address when SMMU is enabled

2018-05-14 Thread Russell King - ARM Linux
On Sat, May 12, 2018 at 06:25:13PM +0530, valmiki wrote: > Hi All, > > What is the difference between IOVA address and bus address > when SMMU is enabled ? > > Is IOVA address term used only when hypervisor is present ? IOVA = IO virtual address. IOVA is the term normally used to describe the a

Re: [PATCH v3 2/2] tpm: reduce polling time to usecs for even finer granularity

2018-05-14 Thread Jarkko Sakkinen
On Mon, May 07, 2018 at 12:07:33PM -0400, Nayna Jain wrote: > The TPM burstcount and status commands are supposed to return very > quickly [2][3]. This patch further reduces the TPM poll sleep time to usecs > in get_burstcount() and wait_for_tpm_stat() by calling usleep_range() > directly. > > Aft

Re: [PATCH 4.16 41/72] mtd: rawnand: Make sure we wait tWB before polling the STATUS reg

2018-05-14 Thread Geert Uytterhoeven
On Mon, May 14, 2018 at 11:09 AM, Boris Brezillon wrote: > On Mon, 14 May 2018 11:04:22 +0200 > Greg Kroah-Hartman wrote: > >> On Mon, May 14, 2018 at 09:32:51AM +0200, Geert Uytterhoeven wrote: >> > On Mon, May 14, 2018 at 8:48 AM, Greg Kroah-Hartman >> > wrote: >> > > 4.16-stable review patch.

[PATCH] staging: video: fix warning unused variable

2018-05-14 Thread Anders Roxell
When building video warnings pops up unused variable 'mdev', drivers/staging/most/video/video.c: In function ‘vidioc_enum_fmt_vid_cap’: drivers/staging/most/video/video.c:265:25: warning: unused variable ‘mdev’ [-Wunused-variable] struct most_video_dev *mdev = fh->mdev;

Re: [RFC PATCH v3 0/5] usb: typec: Support for Alternate Modes

2018-05-14 Thread Heikki Krogerus
On Sat, May 12, 2018 at 02:42:47PM -0700, Guenter Roeck wrote: > On 05/11/2018 06:18 AM, Heikki Krogerus wrote: > > Hi, > > > > This is the third version of my proposal for more complete alternate > > mode support. In this version I'm including a proposal for the mux > > handling. Basically, I'm p

Re: [PATCH 1/2] tpm: replace kmalloc() + memcpy() with kmemdup()

2018-05-14 Thread Jarkko Sakkinen
On Wed, May 09, 2018 at 09:12:36AM +0900, Ji-Hun Kim wrote: > Use kmemdup rather than duplicating its implementation. > > Signed-off-by: Ji-Hun Kim Reviewed-by: Jarkko Sakkinen /Jarkko

Re: [PATCH 2/2] tpm: replace kmalloc() + memcpy() with kmemdup()

2018-05-14 Thread Jarkko Sakkinen
On Wed, May 09, 2018 at 09:12:37AM +0900, Ji-Hun Kim wrote: > Use kmemdup rather than duplicating its implementation. > > Signed-off-by: Ji-Hun Kim Reviewed-by: Jarkko Sakkinen /Jarkko

[PATCH 2/2] [stable 4.4] arm64: Add work around for Arm Cortex-A55 Erratum 1024718

2018-05-14 Thread Suzuki K Poulose
commit ece1397cbc89c51914fae1aec729539cfd8bd62b upstream Some variants of the Arm Cortex-55 cores (r0p0, r0p1, r1p0) suffer from an erratum 1024718, which causes incorrect updates when DBM/AP bits in a page table entry is modified without a break-before-make sequence. The work around is to disable

Re: [RFC PATCH 1/2] scripts/kernel-doc: Auto-detect common code-blocks

2018-05-14 Thread Jani Nikula
On Thu, 10 May 2018, Jonathan Corbet wrote: > On Thu, 10 May 2018 09:34:56 -0700 > Matthew Wilcox wrote: > >> I think this is a bit fragile. Why not just search for ':\n'? Is >> there ever a case where we want to write: >> >> /** >> * foo is a bar: >> * wibble >> */ >> and have wibble not b

[PATCH 1/2][stable-4.4] arm64: introduce mov_q macro to move a constant into a 64-bit register

2018-05-14 Thread Suzuki K Poulose
commit 30b5ba5cf333cc650e474eaf2cc1ae91bc7cf89f upstream Implement a macro mov_q that can be used to move an immediate constant into a 64-bit register, using between 2 and 4 movz/movk instructions (depending on the operand) Cc: sta...@vger.kernel.org # v4.4 Acked-by: Catalin Marinas Signed-off-b

Re: [PATCH] staging: video: fix warning unused variable

2018-05-14 Thread Greg KH
On Mon, May 14, 2018 at 12:54:42PM +0200, Anders Roxell wrote: > When building video warnings pops up unused variable 'mdev', > drivers/staging/most/video/video.c: In function ‘vidioc_enum_fmt_vid_cap’: > drivers/staging/most/video/video.c:265:25: warning: unused variable ‘mdev’ > [-Wunused-variab

Re: [PATCH 01/19 v3] regulator: fixed: Convert to use GPIO descriptor only

2018-05-14 Thread Andy Shevchenko
On Mon, 2018-05-14 at 10:06 +0200, Linus Walleij wrote: > As we augmented the regulator core to accept a GPIO descriptor instead > of a GPIO number, we can augment the fixed GPIO regulator to look up > and pass that descriptor directly from device tree or board GPIO > descriptor look up tables. >

[RESEND PATCH v4 4/4] ALSA: usb-audio: UAC3: Parse Input Terminal number of channels.

2018-05-14 Thread Jorge Sanjuan
Obtain the number of channels for the Input Terminal from the Logical Cluster Descriptor. This achieves a useful minimal parsing of this unit so it can be used in other units in the topology. Signed-off-by: Jorge Sanjuan --- sound/usb/mixer.c | 8 ++-- 1 file changed, 6 insertions(+), 2 dele

Re: [PATCH v2] x86/io: Define readq()/writeq() to use 64-bit type

2018-05-14 Thread Andy Shevchenko
On Mon, 2018-05-14 at 09:12 +0200, Thomas Gleixner wrote: > On Sun, 13 May 2018, Andy Shevchenko wrote: > > On Sun, May 13, 2018 at 9:09 PM, Thomas Gleixner > > wrote: > > > On Thu, 3 May 2018, Andy Shevchenko wrote: > > > > #ifdef CONFIG_X86_64 > > > > > > > > -build_mmio_read(readq, "q", unsig

Re: [PATCH] sched: refill quota for current period when refilling timer activates

2018-05-14 Thread Konstantin Khlebnikov
On 14.05.2018 13:58, Konstantin Khlebnikov wrote: Period timer deactivates if task group has no activity during past period, i.e. if were no throttle and runtime from global pool weren't consumed. When timer activates back global pool contains unpredictable amount of expired runtime allocated lon

Re: [PATCH v3 6/6] tty/serial: atmel: changed the driver to work under at91-usart mfd

2018-05-14 Thread Richard Genoud
Hi, On 11/05/2018 12:38, Radu Pirea wrote: > This patch modifies the place where resources and device tree properties > are searched. > > Signed-off-by: Radu Pirea > --- > drivers/tty/serial/Kconfig| 1 + > drivers/tty/serial/atmel_serial.c | 29 +++-- > 2 files

Re: [PATCH] perf/ring_buffer: ensure atomicity and order of updates

2018-05-14 Thread Mark Rutland
On Fri, May 11, 2018 at 06:22:29PM +0200, Peter Zijlstra wrote: > On Fri, May 11, 2018 at 11:59:32AM +0100, Mark Rutland wrote: > > READ_ONCE() and WRITE_ONCE() "helpfully" make a silent fallback to a > > memcpy in this case, so we're broken today, regardless of this change. > > > > I suspect that

RE: [PATCH] x86: pad assembly functions with INT3

2018-05-14 Thread hpa
On May 14, 2018 2:04:38 AM PDT, David Laight wrote: >From: H. Peter Anvin >> Sent: 11 May 2018 19:54 >> >> On 05/10/18 09:39, David Laight wrote: >> > From: Alexey Dobriyan >> >> Sent: 07 May 2018 22:38 >> >> >> >> Use INT3 instead of NOP. All that padding between functions is >> >> an illegal ar

Re: [PATCH 06/18] arm64: move sve_user_{enable, disable} to

2018-05-14 Thread Dave Martin
On Mon, May 14, 2018 at 10:46:28AM +0100, Mark Rutland wrote: > In subsequent patches, we'll want to make use of sve_user_enable() and > sve_user_disable() outside of kernel/fpsimd.c. Let's move these to > where we can make use of them. > > To avoid ifdeffery in sequences like: > > if (system_su

Re: [PATCH 10/18] arm64: convert native/compat syscall entry to C

2018-05-14 Thread Dave Martin
On Mon, May 14, 2018 at 10:46:32AM +0100, Mark Rutland wrote: > Now that the syscall invocation logic is in C, we can migrate the rest > of the syscall entry logic over, so that the entry assembly needn't look > at the register values at all. > > Signed-off-by: Mark Rutland > Cc: Catalin Marinas

Re: [PATCH 07/18] arm64: remove sigreturn wrappers

2018-05-14 Thread Dave Martin
On Mon, May 14, 2018 at 10:46:29AM +0100, Mark Rutland wrote: > The arm64 sigreturn* syscall handlers are non-standard. Rather than > taking a number of user parameters in registers as per the AAPCS, > they expect the pt_regs as their sole argument. > > To make this work, we override the syscall d

Re: [PATCH 08/18] arm64: convert raw syscall invocation to C

2018-05-14 Thread Dave Martin
On Mon, May 14, 2018 at 10:46:30AM +0100, Mark Rutland wrote: > As a first step towards invoking syscalls with a pt_regs argument, > convert the raw syscall invocation logic to C. We end up with a bit more > register shuffling, but the unified invocation logic means we can unify > the tracing paths

Re: [PATCH 12/18] kernel: add ksys_personality()

2018-05-14 Thread Dave Martin
On Mon, May 14, 2018 at 10:46:34AM +0100, Mark Rutland wrote: > Using this helper allows us to avoid the in-kernel call to the > sys_personality() syscall. The ksys_ prefix denotes that this function > is meant as a drop-in replacement for the syscall. In particular, it > uses the same calling conv

[PATCH] sched: refill quota for current period when refilling timer activates

2018-05-14 Thread Konstantin Khlebnikov
Period timer deactivates if task group has no activity during past period, i.e. if were no throttle and runtime from global pool weren't consumed. When timer activates back global pool contains unpredictable amount of expired runtime allocated long ago. In some cases this works fine and task could

Re: [PATCH 11/18] arm64: zero GPRs upon entry from EL0

2018-05-14 Thread Dave Martin
On Mon, May 14, 2018 at 10:46:33AM +0100, Mark Rutland wrote: > We can zero GPRs x0 - x29 upon entry from EL0 to make it harder for > userspace to control values consumed by speculative gadgets. > > We don't blat x30, since this is stashed much later, and we'll blat it > before invoking C code. >

Re: [PATCH 1/2] x86/stacktrace: do not fail when regs on stack for ORC

2018-05-14 Thread Jiri Slaby
On 05/11/2018, 05:12 PM, Josh Poimboeuf wrote: > I assume you're going to carry this as > part of your patches to enable HAVE_RELIABLE_STACKTRACE? Sure. > --- a/tools/objtool/orc_dump.c > +++ b/tools/objtool/orc_dump.c > @@ -203,7 +203,8 @@ int orc_dump(const char *_objname) > > p

Re: Allwinner A64: Issue on external rtc clock to wifi chip

2018-05-14 Thread Maxime Ripard
On Mon, May 14, 2018 at 03:12:49PM +0530, Jagan Teki wrote: > On Mon, May 14, 2018 at 2:36 PM, Maxime Ripard > wrote: > > On Mon, May 14, 2018 at 02:34:22PM +0530, Jagan Teki wrote: > >> On Mon, May 14, 2018 at 1:57 PM, Maxime Ripard > >> wrote: > >> > On Mon, May 14, 2018 at 01:34:56PM +0530, Ja

Re: [PATCH 1/2] crypto: vmx - Remove overly verbose printk from AES init routines

2018-05-14 Thread Michael Ellerman
Herbert Xu writes: > On Thu, May 03, 2018 at 10:29:29PM +1000, Michael Ellerman wrote: >> In the vmx AES init routines we do a printk(KERN_INFO ...) to report >> the fallback implementation we're using. >> >> However with a slow console this can significantly affect the speed of >> crypto operat

Re: [PATCH 02/18] arm64: move SCTLR_EL{1,2} assertions to

2018-05-14 Thread Dave Martin
On Mon, May 14, 2018 at 11:08:59AM +0100, Mark Rutland wrote: > On Mon, May 14, 2018 at 11:00:53AM +0100, Dave Martin wrote: > > On Mon, May 14, 2018 at 10:46:24AM +0100, Mark Rutland wrote: > > > -/* Check all the bits are accounted for */ > > > -#define SCTLR_EL2_BUILD_BUG_ON_MISSING_BITS >

Re: [PATCH] mtd: nand: Fix return type of __DIVIDE() when called with 32-bit

2018-05-14 Thread Boris Brezillon
On Mon, 14 May 2018 12:49:37 +0200 Geert Uytterhoeven wrote: > The __DIVIDE() macro checks whether it is called with a 32-bit or 64-bit > dividend, to select the appropriate divide-and-round-up routine. > As the check uses the ternary operator, the result will always be > promoted to a type that

Re: [PATCH 2/5] media: docs: clarify relationship between crop and selection APIs

2018-05-14 Thread Luca Ceresoli
Hi Hans, thanks for the review. On 13/05/2018 11:12, Hans Verkuil wrote: > On 04/03/2018 11:15 PM, Luca Ceresoli wrote: >> Having two somewhat similar and largely overlapping APIs is confusing, >> especially since the older one appears in the docs before the newer >> and most featureful counterpa

[PATCH 0/8] ubi: fastmap: Support for preseeded fastmap

2018-05-14 Thread Richard Weinberger
This series implements support for preseeded fastmaps. A preseeded fastmap is a fastmap created by tools such as ubinize. That way fastmap deployment is less painful. I will send a v2 series for sure since I'm still testing the approach, so far none of my tests explodes. Richard Weinberger (8):

[PATCH 4/8] ubi: fastmap: Handle bad block count for preseeded fastmap case

2018-05-14 Thread Richard Weinberger
If the fastmap is preseeded the bad block count is created while scanning for bad blocks in the PEB fixup code. Signed-off-by: Richard Weinberger --- drivers/mtd/ubi/fastmap.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/ubi/fastmap.c b/drivers/mtd/

[PATCH 8/8] ubi: Fix assert in ubi_wl_init

2018-05-14 Thread Richard Weinberger
When multiple PEBs are used for a fastmap, found_pebs can be wrong and the assert triggers. The current approach is broken in two ways: 1. The "continue" in list_for_each_entry() over all fastmap PEBs misses the counter at all. 2. When the fastmap changes in size, growing due to a preseeded fas

Re: [PATCH 1/5] media: docs: selection: fix typos

2018-05-14 Thread Luca Ceresoli
Hi Hans, On 13/05/2018 11:19, Hans Verkuil wrote: > Hi Luca, > > My apologies for the long delay in reviewing this. > > It all looks very good and if you can post a v2 with these small issues > fixed, then I'll merge it for 4.18. On its way! Thanks, -- Luca

[PATCH 6/8] ubi: fastmap: Scan empty space if fastmap is preseeded

2018-05-14 Thread Richard Weinberger
The creation tool does not know the real size of the MTD, therefore the preseeded fastmap references only used PEBs. Free PEBs need to be discovered during the initial attach of the preseeded fastmap. Signed-off-by: Richard Weinberger --- drivers/mtd/ubi/fastmap.c | 109 +

[PATCH 4/5] libubigen: Maintain a eraseblock association table

2018-05-14 Thread Richard Weinberger
The EBA is needed later for preseeded fastmap support. Signed-off-by: Richard Weinberger --- include/libubigen.h | 1 + lib/libubigen.c | 14 ++ ubi-utils/ubinize.c | 2 ++ 3 files changed, 17 insertions(+) diff --git a/include/libubigen.h b/include/libubigen.h index 8084d0ecd

Re: [PATCH v4 5/6] bus: fsl-mc: supoprt dma configure for devices on fsl-mc bus

2018-05-14 Thread Greg KH
On Mon, Apr 30, 2018 at 11:57:20AM +0530, Nipun Gupta wrote: > Signed-off-by: Nipun Gupta > --- I can't take patches without any changelog text at all, sorry. Please fix up and resend. greg k-h

[PATCH 7/8] ubi: fastmap: Relax size check

2018-05-14 Thread Richard Weinberger
While attaching via fastmap we verify whether the found fastmap is as large as we have computed. With preseeded Fastmaps this assumtion can fail since ubinize cannot know the total size of the MTD and uses the number if used PEBs for the calculation. Therefore the found fastmap might be smaller tha

[PATCH 3/5] libubigen: Carry image path and size in volume info

2018-05-14 Thread Richard Weinberger
...instead of passing them a extra parameters. Signed-off-by: Richard Weinberger --- include/libubigen.h | 7 +-- lib/libubigen.c | 3 ++- ubi-utils/ubinize.c | 41 - 3 files changed, 27 insertions(+), 24 deletions(-) diff --git a/include/libubi

[PATCH 0/5] mtd-utils: Add fastmap support to ubinize

2018-05-14 Thread Richard Weinberger
This is the userspace side of my preseeded fastmap series. ubinize can now created images with a preloaded fastmap on it. Richard Weinberger (5): Sync ubi-media.h with Linux ubinize: Don't stat image file twice libubigen: Carry image path and size in volume info libubigen: Maintain a erase

[PATCH 5/5] ubinize: Add fastmap support

2018-05-14 Thread Richard Weinberger
Using the "-F" parameter, ubinize can now create ubinized images with a preseeded fastmap on it. You need a recent kernel with UBI_FM_SB_PRESEEDED_FLG support to attach from such a fastmap. Signed-off-by: Richard Weinberger --- include/libubigen.h | 17 +++- lib/libubigen.c | 224 ++

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