Re: [GIT PULL] Driver core patches for 5.1-rc1

2019-03-19 Thread Stephen Rothwell
Hi Linus, On Wed, 6 Mar 2019 15:47:11 -0800 Linus Torvalds wrote: > > This is very funky, but that commit generates a new warning in a > totally unrelated area: > > drivers/iio/adc/qcom-pm8xxx-xoadc.c: In function ‘pm8xxx_xoadc_probe’: > drivers/iio/adc/qcom-pm8xxx-xoadc.c:633:8: warning:

PROBLEM: Linux kernel.core_pattern with pipes does argument splitting after template expansion

2019-03-19 Thread Paul Wise
The Linux kernel.core_pattern support for core dump handlers using the pipe syntax does argument splitting after template expansion. At minimum this bug could cause truncated values for the executable name. This also means that the argument parsing for core dump handlers is slightly more

Re: [PATCH v9 0/2] PWM support for HiFive Unleashed

2019-03-19 Thread Yash Shah
On Mon, Mar 18, 2019 at 10:56 PM Andreas Schwab wrote: > > On Mär 15 2019, Yash Shah wrote: > > > You need to make sure the period setting is passed via the > > conventional way in DT file. > > Example: > > pwmleds { > > compatible = "pwm-leds"; > > heartbeat { > > pwms = < 0

Re: [PATCH 1/8] perf/x86/intel: Fix memory corruption

2019-03-19 Thread Stephane Eranian
On Thu, Mar 14, 2019 at 6:11 AM Peter Zijlstra wrote: > > Through: > > validate_event() > x86_pmu.get_event_constraints(.idx=-1) > tfa_get_event_constraints() > dyn_constraint() > > We use cpuc->constraint_list[-1], which is an obvious out-of-bound > access. > > In this case,

[PATCH v3 0/2] Fixes for commands errors during tuning

2019-03-19 Thread Faiz Abbas
These patches fix the following error message in dra7xx boards: [4.833198] mmc1: Got data interrupt 0x0002 even though no data operation was in progress. Tested with 100 times boot tests on dra71x-evm, dra72x-evm and dra7xx-evm. v3: Removed the command error specific callback and using the

[PATCH v3 2/2] mmc: sdhci-omap: Don't finish_mrq() on a command error during tuning

2019-03-19 Thread Faiz Abbas
commit 5b0d62108b46 ("mmc: sdhci-omap: Add platform specific reset callback") skips data resets during tuning operation. Because of this, a data error or data finish interrupt might still arrive after a command error has been handled and the mrq ended. This ends up with a "mmc0: Got data interrupt

[PATCH v3 1/2] mmc: sdhci: Make sdhci_send_command() public

2019-03-19 Thread Faiz Abbas
Make sdhci_send_command() public so that it can be called from platform drivers. Signed-off-by: Faiz Abbas --- drivers/mmc/host/sdhci.c | 3 ++- drivers/mmc/host/sdhci.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c

[PATCH V6 1/5] dt-bindings: pwm: Add i.MX TPM PWM binding

2019-03-19 Thread Anson Huang
Add i.MX TPM(Low Power Timer/Pulse Width Modulation Module) PWM binding. Signed-off-by: Anson Huang --- Changes since V5: - improve compatible string; - change #pwm-cells to 3; - "pwm" -> "PWM"; --- .../devicetree/bindings/pwm/imx-tpm-pwm.txt| 22

[PATCH V6 2/5] pwm: Add i.MX TPM PWM driver support

2019-03-19 Thread Anson Huang
i.MX7ULP has TPM(Low Power Timer/Pulse Width Modulation Module) inside, it can support multiple PWM channels, all the channels share same counter and period setting, but each channel can configure its duty and polarity independently. There are several TPM modules in i.MX7ULP, the number of

[PATCH V6 3/5] ARM: imx_v6_v7_defconfig: Add TPM PWM support by default

2019-03-19 Thread Anson Huang
Select CONFIG_PWM_IMX_TPM by default to support i.MX7ULP TPM PWM. Signed-off-by: Anson Huang --- No changes. --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index

[PATCH V6 0/5] Add i.MX7ULP EVK PWM backlight support

2019-03-19 Thread Anson Huang
i.MX7ULP EVK board has MIPI-DSI display, its backlight is supplied by TPM PWM module, this patch set enables i.MX7ULP TPM PWM driver support and also add backlight support for MIPI-DSI display. Anson Huang (5): dt-bindings: pwm: Add i.MX TPM PWM binding pwm: Add i.MX TPM PWM driver support

[PATCH V6 5/5] ARM: dts: imx7ulp-evk: Add backlight support

2019-03-19 Thread Anson Huang
This patch adds i.MX7ULP EVK board MIPI-DSI backlight support. Signed-off-by: Anson Huang --- Changes since V5: - change #pwm-cells to 3, add polarity settings. --- arch/arm/boot/dts/imx7ulp-evk.dts | 9 + 1 file changed, 9 insertions(+) diff --git

[PATCH V6 4/5] ARM: dts: imx7ulp: Add pwm0 support

2019-03-19 Thread Anson Huang
Add i.MX7ULP EVK board PWM0 support. Signed-off-by: Anson Huang --- Changes since V5: - change #pwm-cells to 3. --- arch/arm/boot/dts/imx7ulp-evk.dts | 12 arch/arm/boot/dts/imx7ulp.dtsi| 10 ++ 2 files changed, 22 insertions(+) diff --git

Re: [PATCH V6 4/5] ARM: dts: imx7ulp: Add pwm0 support

2019-03-19 Thread Uwe Kleine-König
On Tue, Mar 19, 2019 at 06:50:26AM +, Anson Huang wrote: > Add i.MX7ULP EVK board PWM0 support. > > Signed-off-by: Anson Huang > --- > Changes since V5: > - change #pwm-cells to 3. > --- > arch/arm/boot/dts/imx7ulp-evk.dts | 12 > arch/arm/boot/dts/imx7ulp.dtsi| 10

Re: [PATCH v2] Bluetooth: btmtksdio: fix uninitialized symbol errors in btmtksdio_rx_packet

2019-03-19 Thread Marcel Holtmann
Hi Sean, > Fixed all the below warnings. They would probably cause the following > error handling path would use the uninitialized value and then produce > unexpected behavior. > > drivers/bluetooth/btmtksdio.c:470:2: warning: ‘old_len’ may be used > uninitialized in this function

Re: [PATCH] Bluetooth: mediatek: Fixed incorrect type in assignment

2019-03-19 Thread Marcel Holtmann
Hi Sean, > Fixed warning: incorrect type in assignment reported by kbuild test robot. > The detailed warning is shown as below. > > make ARCH=x86_64 allmodconfig > make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' > > All warnings (new ones prefixed by >>): > > btmtkuart.c:671:18: sparse:

RE: [PATCH V6 4/5] ARM: dts: imx7ulp: Add pwm0 support

2019-03-19 Thread Anson Huang
Best Regards! Anson Huang > -Original Message- > From: Uwe Kleine-König [mailto:u.kleine-koe...@pengutronix.de] > Sent: 2019年3月19日 14:55 > To: Anson Huang > Cc: thierry.red...@gmail.com; robh...@kernel.org; mark.rutl...@arm.com; > shawn...@kernel.org; s.ha...@pengutronix.de;

[PATCH RESEND V6 0/5] Add i.MX7ULP EVK PWM backlight support

2019-03-19 Thread Anson Huang
i.MX7ULP EVK board has MIPI-DSI display, its backlight is supplied by TPM PWM module, this patch set enables i.MX7ULP TPM PWM driver support and also add backlight support for MIPI-DSI display. Anson Huang (5): dt-bindings: pwm: Add i.MX TPM PWM binding pwm: Add i.MX TPM PWM driver support

[PATCH RESEND V6 1/5] dt-bindings: pwm: Add i.MX TPM PWM binding

2019-03-19 Thread Anson Huang
Add i.MX TPM(Low Power Timer/Pulse Width Modulation Module) PWM binding. Signed-off-by: Anson Huang --- Changes since V5: - improve compatible string; - change #pwm-cells to 3; - "pwm" -> "PWM"; --- .../devicetree/bindings/pwm/imx-tpm-pwm.txt| 22

[PATCH RESEND V6 2/5] pwm: Add i.MX TPM PWM driver support

2019-03-19 Thread Anson Huang
i.MX7ULP has TPM(Low Power Timer/Pulse Width Modulation Module) inside, it can support multiple PWM channels, all the channels share same counter and period setting, but each channel can configure its duty and polarity independently. There are several TPM modules in i.MX7ULP, the number of

[PATCH RESEND V6 3/5] ARM: imx_v6_v7_defconfig: Add TPM PWM support by default

2019-03-19 Thread Anson Huang
Select CONFIG_PWM_IMX_TPM by default to support i.MX7ULP TPM PWM. Signed-off-by: Anson Huang --- No changes. --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index

[PATCH RESEND V6 4/5] ARM: dts: imx7ulp: Add pwm0 support

2019-03-19 Thread Anson Huang
Add i.MX7ULP EVK board PWM0 support. Signed-off-by: Anson Huang --- Changes since V5: - change #pwm-cells to 3. --- arch/arm/boot/dts/imx7ulp.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/imx7ulp.dtsi b/arch/arm/boot/dts/imx7ulp.dtsi index

[PATCH RESEND V6 5/5] ARM: dts: imx7ulp-evk: Add backlight support

2019-03-19 Thread Anson Huang
This patch adds i.MX7ULP EVK board MIPI-DSI backlight support. Signed-off-by: Anson Huang --- Changes since V5: - change #pwm-cells to 3, add polarity settings. --- arch/arm/boot/dts/imx7ulp-evk.dts | 21 + 1 file changed, 21 insertions(+) diff --git

Re: [PATCH v2 1/1] userfaultfd/sysctl: add vm.unprivileged_userfaultfd

2019-03-19 Thread Mike Rapoport
Hi Peter, On Tue, Mar 19, 2019 at 11:07:22AM +0800, Peter Xu wrote: > Add a global sysctl knob "vm.unprivileged_userfaultfd" to control > whether userfaultfd is allowed by unprivileged users. When this is > set to zero, only privileged users (root user, or users with the > CAP_SYS_PTRACE

Re: [PATCH] drivers: clk: zynqmp: Allow zero divisor value

2019-03-19 Thread Michal Simek
On 18. 03. 19 20:42, Stephen Boyd wrote: > Quoting Michal Simek (2019-03-18 05:48:52) >> On 05. 03. 19 0:27, Jolly Shah wrote: >>> From: Rajan Vaja >>> >>> Zero divider is valid and default for some of ZynqMP >>> clocks. Allow zero divisor when CLK_DIVIDER_ALLOW_ZERO >>> for the clock is set. >>>

Re: [PATCH v10 2/2] pwm: sifive: Add a driver for SiFive SoC PWM

2019-03-19 Thread Yash Shah
On Tue, Mar 19, 2019 at 3:16 AM Uwe Kleine-König wrote: > > Hello, > > [I put Thierry into To: because some remaining questions depend on his > views] > > On Mon, Mar 18, 2019 at 05:17:14PM +0530, Yash Shah wrote: > > Adds a PWM driver for PWM chip present in SiFive's HiFive Unleashed SoC. > > >

[PATCH] objtool: query pkg-config for libelf location

2019-03-19 Thread Rolf Eike Beer
If it is not in the default location compilation would fail at several points. Signed-off-by: Rolf Eike Beer --- Makefile | 4 +++- tools/objtool/Makefile | 7 +-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index

[PATCH] regulator: 88pm8607: Convert to regulator core's simplified DT parsing code

2019-03-19 Thread Axel Lin
Use regulator core's simplified DT parsing code to simply the driver implementation. Signed-off-by: Axel Lin --- drivers/regulator/88pm8607.c | 43 1 file changed, 9 insertions(+), 34 deletions(-) diff --git a/drivers/regulator/88pm8607.c

[PATCH] clk: hi3660: clk: Mark clk_gate_ufs_subsys as critical

2019-03-19 Thread Leo Yan
clk_gate_ufs_subsys is a system bus clock, turning off it will introduce lockup issue during system suspend flow. Let's mark clk_gate_ufs_subsys as critical clock, thus keeps it on during system suspend and resume. Fixes: d374e6fd5088 ("clk: hisilicon: Add clock driver for hi3660 SoC") Cc:

Re: [PATCH v3 1/2] mmc: sdhci: Make sdhci_send_command() public

2019-03-19 Thread Kishon Vijay Abraham I
Hi Faiz, On 19/03/19 12:05 PM, Faiz Abbas wrote: > Make sdhci_send_command() public so that it can be called from platform > drivers. This should be sdhci_finish_command here and also in subject How about using "mmc: sdhci: Export sdhci_finish_command()"? Thanks Kishon > > Signed-off-by: Faiz

[PATCH v5 03/14] soc: mediatek: Switch to SPDX license identifier

2019-03-19 Thread Weiyi Lu
Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediatek/mtk-scpsys.c index 5b24bb4bfbf6..9f52f501178b 100644 ---

[PATCH v5 00/14] Mediatek MT8183 scpsys support

2019-03-19 Thread Weiyi Lu
Resend scpsys patches from v4[1]. Based on v5.1-rc1 with MT8183 dts v9 patch[2] and MT8183 SMI dt-binding v6 patch[3]. [1] https://patchwork.kernel.org/patch/10792071/ [2] https://patchwork.kernel.org/patch/10856987/ [3] https://patchwork.kernel.org/patch/10816827/ changes since v4: - add

[PATCH v5 13/14] soc: mediatek: Add MT8183 scpsys support

2019-03-19 Thread Weiyi Lu
Add scpsys driver for MT8183 Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 226 ++ 1 file changed, 226 insertions(+) diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediatek/mtk-scpsys.c index 94c10f69655d..f1d82cdb219e 100644 ---

[PATCH v5 12/14] soc: mediatek: Add extra sram control

2019-03-19 Thread Weiyi Lu
For some power domains like vpu_core on MT8183 whose sram need to do clock and internal isolation while power on/off sram. We add a flag "sram_iso_ctrl" in scp_domain_data to judge if we need to do the extra sram isolation control or not. Signed-off-by: Weiyi Lu ---

[PATCH v5 11/14] soc: mediatek: Add subsys clock control for bus protection

2019-03-19 Thread Weiyi Lu
Add subsys CG control flow before/after the bus protect control due to bus protection need SMI bus relative CGs enabled to feedback its ack. Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 72 ++- 1 file changed, 70 insertions(+), 2 deletions(-) diff

[PATCH v5 09/14] soc: mediatek: Add basic_clk_name to scp_power_data

2019-03-19 Thread Weiyi Lu
Try to stop extending the clk_id or clk_names if there are more and more new BASIC clocks. To get its own clocks by the basic_clk_name of each power domain. Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 27 +++ 1 file changed, 19 insertions(+), 8

[PATCH v5 07/14] soc: mediatek: Refactor sram control

2019-03-19 Thread Weiyi Lu
Put sram enable and disable control in separate functions. Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 79 --- 1 file changed, 51 insertions(+), 28 deletions(-) diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediatek/mtk-scpsys.c

[PATCH v5 04/14] soc: mediatek: Refactor polling timeout and documentation

2019-03-19 Thread Weiyi Lu
Use USEC_PER_SEC to indicate the polling timeout directly. And add documentation of scp_domain_data. Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/soc/mediatek/mtk-scpsys.c

[PATCH v5 08/14] soc: mediatek: Refactor bus protection control

2019-03-19 Thread Weiyi Lu
Put bus protection enable and disable control in separate functions. Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 48 ++- 1 file changed, 34 insertions(+), 14 deletions(-) diff --git a/drivers/soc/mediatek/mtk-scpsys.c

[PATCH v5 06/14] soc: mediatek: Refactor clock control

2019-03-19 Thread Weiyi Lu
Put clock enable and disable control in separate function. Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 49 --- 1 file changed, 32 insertions(+), 17 deletions(-) diff --git a/drivers/soc/mediatek/mtk-scpsys.c b/drivers/soc/mediatek/mtk-scpsys.c

[PATCH v5 05/14] soc: mediatek: Refactor regulator control

2019-03-19 Thread Weiyi Lu
Put regulator enable and disable control in separate functions. Signed-off-by: Weiyi Lu --- drivers/soc/mediatek/mtk-scpsys.c | 32 ++- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/drivers/soc/mediatek/mtk-scpsys.c

[PATCH v5 02/14] dt-bindings: soc: Add MT8183 power dt-bindings

2019-03-19 Thread Weiyi Lu
Add power dt-bindings of MT8183 and introduces "BASIC" and "SUBSYS" clock types in binding document. The "BASIC" type is compatible to the original power control with clock name [a-z]+[0-9]*, e.g. mm, vpu1. The "SUBSYS" type is used for bus protection control with clock name [a-z]+-[0-9]+, e.g.

[PATCH v5 01/14] dt-bindings: mediatek: Add property to mt8183 smi-common

2019-03-19 Thread Weiyi Lu
For scpsys driver using regmap based syscon driver API. Signed-off-by: Weiyi Lu --- .../bindings/memory-controllers/mediatek,smi-common.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/memory-controllers/mediatek,smi-common.txt

[PATCH v5 14/14] arm64: dts: Add power controller device node of MT8183

2019-03-19 Thread Weiyi Lu
Add power controller node and smi-common node for MT8183 In scpsys node, it contains clocks and regmapping of infracfg and smi-common for bus protection. Signed-off-by: Weiyi Lu --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 62 1 file changed, 62 insertions(+) diff

[PATCH v5 10/14] soc: mediatek: Add multiple step bus protection control

2019-03-19 Thread Weiyi Lu
Both MT8183 & MT6765 have more control steps of bus protection than previous project. And there add more bus protection registers reside at infracfg & smi-common. Also add new APIs for multiple step bus protection control with more customize arguments. Signed-off-by: Weiyi Lu ---

Re: [PATCH V6 2/5] pwm: Add i.MX TPM PWM driver support

2019-03-19 Thread Uwe Kleine-König
On Tue, Mar 19, 2019 at 06:50:12AM +, Anson Huang wrote: > i.MX7ULP has TPM(Low Power Timer/Pulse Width Modulation Module) > inside, it can support multiple PWM channels, all the channels > share same counter and period setting, but each channel can > configure its duty and polarity

Re: [PATCH v3 1/2] mmc: sdhci: Make sdhci_send_command() public

2019-03-19 Thread Faiz Abbas
Hi Kishon, On 19/03/19 1:28 PM, Kishon Vijay Abraham I wrote: > Hi Faiz, > > On 19/03/19 12:05 PM, Faiz Abbas wrote: >> Make sdhci_send_command() public so that it can be called from platform >> drivers. > > This should be sdhci_finish_command here and also in subject > How about using "mmc:

Re: [PATCH v3 2/2] mmc: sdhci-omap: Don't finish_mrq() on a command error during tuning

2019-03-19 Thread Kishon Vijay Abraham I
Hi Faiz, On 19/03/19 12:05 PM, Faiz Abbas wrote: > commit 5b0d62108b46 ("mmc: sdhci-omap: Add platform specific reset > callback") skips data resets during tuning operation. Because of this, > a data error or data finish interrupt might still arrive after a command > error has been handled and

Re: [PATCH v10 2/2] pwm: sifive: Add a driver for SiFive SoC PWM

2019-03-19 Thread Uwe Kleine-König
On Tue, Mar 19, 2019 at 12:52:12PM +0530, Yash Shah wrote: > On Tue, Mar 19, 2019 at 3:16 AM Uwe Kleine-König > wrote: > > On Mon, Mar 18, 2019 at 05:17:14PM +0530, Yash Shah wrote: > > > + val = PWM_SIFIVE_PWMCFG_EN_ALWAYS | > > > + FIELD_PREP(PWM_SIFIVE_PWMCFG_SCALE, scale); > > >

Re: [syzbot? printk?] no WARN_ON() messages printed before "Kernel panic - not syncing: panic_on_warn set ..."

2019-03-19 Thread Dmitry Vyukov
On Mon, Mar 18, 2019 at 3:09 PM Sergey Senozhatsky wrote: > > On (03/18/19 14:42), Dmitry Vyukov wrote: > > > There is also SYSLOG_ACTION_CONSOLE_OFF, which disables logging. > > > > That one I somehow figured earlier, here is the exact check: > >

[RFC PATCH v4 1/8] KVM:VMX: Define CET VMCS fields and bits

2019-03-19 Thread Yang Weijiang
CET - Control-flow Enforcement Technology, it's used to protect against return/jump oriented programming (ROP) attacks. It provides the following capabilities to defend against ROP/JOP style control-flow subversion attacks: - Shadow Stack (SHSTK): A second stack for the program

[RFC PATCH v4 0/8] This patch-set is to enable Guest CET support

2019-03-19 Thread Yang Weijiang
Control-flow Enforcement Technology (CET) provides protection against return/jump-oriented programming (ROP) attacks. To make kvm Guest OS own the capability, this patch-set is required. It enables CET related CPUID report, xsaves/xrstors, vmx entry configuration etc. for Guest OS. PATCH 1:

[RFC PATCH v4 7/8] KVM:x86: load guest fpu state when accessing MSRs managed by XSAVES

2019-03-19 Thread Yang Weijiang
From: Sean Christopherson A handful of CET MSRs are not context switched through "traditional" methods, e.g. VMCS or manual switching, but rather are passed through to the guest and are saved and restored by XSAVES/XRSTORS, i.e. the guest's FPU state. Load the guest's FPU state if userspace is

[RFC PATCH v4 4/8] KVM:VMX: Pass through host CET related MSRs to Guest.

2019-03-19 Thread Yang Weijiang
The CET runtime settings, i.e., CET state control bits(IA32_U_CET/ IA32_S_CET), CET SSP(IA32_PL3_SSP/IA32_PL0_SSP) and SSP table address (IA32_INTERRUPT_SSP_TABLE_ADDR) are task/thread specific, therefore, OS needs to save/restore the states properly during context switch, e.g., task/thread

[RFC PATCH v4 6/8] KVM:x86: Allow Guest to set supported bits in XSS

2019-03-19 Thread Yang Weijiang
Now that KVM supports setting CET related bits. Previously, KVM did not support setting any bits in XSS and so hardcoded its check to inject a #GP if Guest attempted to write a non-zero value to IA32_XSS. Signed-off-by: Zhang Yi Z Signed-off-by: Yang Weijiang ---

[RFC PATCH v4 3/8] KVM:CPUID: Fix xsaves area size calculation for CPUID.(EAX=0xD,ECX=1).

2019-03-19 Thread Yang Weijiang
According to latest Software Development Manual vol.2/3.2, for CPUID.(EAX=0xD,ECX=1), it should report xsaves area size containing all states enabled by XCR0|IA32_MSR_XSS. Signed-off-by: Zhang Yi Z Signed-off-by: Yang Weijiang --- arch/x86/kvm/cpuid.c | 3 ++- 1 file changed, 2 insertions(+),

[RFC PATCH v4 5/8] KVM:VMX: Load Guest CET via VMCS when CET is enabled in Guest

2019-03-19 Thread Yang Weijiang
"Load Guest CET state" bit controls whether guest CET states will be loaded at Guest entry. Before doing that, KVM needs to check if CPU CET feature is available. Signed-off-by: Zhang Yi Z Signed-off-by: Yang Weijiang --- arch/x86/kvm/vmx.c | 18 ++ 1 file changed, 18

[RFC PATCH v4 8/8] KVM:x86: Add user-space read/write interface for CET MSRs

2019-03-19 Thread Yang Weijiang
When VMExit occurs, the Guest CET MSRs are stored in two different places, U_CET/PL0_SSP/PL1_SSP/PL2_SSP/PL3_SSP are stored in fpu xsave area, they are operated by XSAVES/XRSTORS, so before access these MSRs, kvm_load_guest_fpu is required to restore them to Host MSRs. After finish operation, need

[RFC PATCH v4 2/8] KVM:CPUID: Add CET CPUID support for Guest

2019-03-19 Thread Yang Weijiang
CET SHSTK and IBT capability are reported via CPUID.(EAX=7, ECX=0):ECX[bit 7] and EDX[bit 20] respectively. CR4.CET[bit 23] is CET master enable bit, it controls CET feature enabling. CET user mode and supervisor mode xsaves component size is reported via CPUID.(EAX=0xD, ECX=1):ECX[bit 11] and

Re: [PATCH RESEND V6 0/5] Add i.MX7ULP EVK PWM backlight support

2019-03-19 Thread Uwe Kleine-König
On Tue, Mar 19, 2019 at 07:09:56AM +, Anson Huang wrote: > i.MX7ULP EVK board has MIPI-DSI display, its backlight is supplied by > TPM PWM module, this patch set enables i.MX7ULP TPM PWM driver support > and also add backlight support for MIPI-DSI display. Given that you actually changed

[RESEND PATCH v2 5/5] lib/list_sort: Optimize number of calls to comparison function

2019-03-19 Thread George Spelvin
CONFIG_RETPOLINE has severely degraded indirect function call performance, so it's worth putting some effort into reducing the number of times cmp() is called. This patch avoids badly unbalanced merges on unlucky input sizes. It slightly increases the code size, but saves an average of 0.2*n

[RESEND PATCH v2 2/5] lib/sort: Use more efficient bottom-up heapsort variant

2019-03-19 Thread George Spelvin
This uses fewer comparisons than the previous code (approaching half as many for large random inputs), but produces identical results; it actually performs the exact same series of swap operations. Specifically, it reduces the average number of compares from 2*n*log2(n) - 3*n + o(n) to

[RESEND PATCH v2 4/5] lib/list_sort: Simplify and remove MAX_LIST_LENGTH_BITS

2019-03-19 Thread George Spelvin
Rather than a fixed-size array of pending sorted runs, use the ->prev links to keep track of things. This reduces stack usage, eliminates some ugly overflow handling, and reduces the code size. Also: * merge() no longer needs to handle NULL inputs, so simplify. * The same applies to

[RESEND PATCH v2 1/5] lib/sort: Make swap functions more generic

2019-03-19 Thread George Spelvin
Rather than having special-case swap functions for 4- and 8-byte objects, special-case aligned multiples of 4 or 8 bytes. This speeds up most users of sort() by avoiding fallback to the byte copy loop. Despite what commit ca96ab859ab4 ("lib/sort: Add 64 bit swap function") claims, very few users

[PATCH] clk: meson: g12a: fix VPU clock muxes mask

2019-03-19 Thread Maxime Jourdan
There are 8 parents, use 0x7 Fixes: 085a4ea93d54 ("clk: meson: g12a: add peripheral clock controller") Signed-off-by: Maxime Jourdan --- drivers/clk/meson/g12a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c index

[RESEND PATCH v2 0/5] lib/sort & lib/list_sort: faster and smaller

2019-03-19 Thread George Spelvin
(Resend because earlier send had GIT_AUTHOR_DATE in the e-mail headers and got filed with last month's archives. And probably tripped a few spam filters.) v1->v2: Various spelling, naming and code style cleanups. Generally positive and no negative responses to the goals and

[RESEND PATCH v2 3/5] lib/sort: Avoid indirect calls to built-in swap

2019-03-19 Thread George Spelvin
Similar to what's being done in the net code, this takes advantage of the fact that most invocations use only a few common swap functions, and replaces indirect calls to them with (highly predictable) conditional branches. (The downside, of course, is that if you *do* use a custom swap function,

Re: [PATCH v2] clk: at91: fix programmable clock for sama5d2

2019-03-19 Thread Nicolas.Ferre
Stephen, Thanks for the review On 18/03/2019 at 20:54, Stephen Boyd wrote: > Quoting Nicolas Ferre (2019-03-18 03:50:45) >> From: Matthias Wieloch >> >> The prescaler formula of the programmable clock has changed for sama5d2. >> Update >> the driver accordingly. >> >> Fixes: a2038077de9a

Re: [PATCH v2 06/11] arm64: dts: meson-g12a-x96-max: add regulators

2019-03-19 Thread Neil Armstrong
On 18/03/2019 21:13, Martin Blumenstingl wrote: > Hi Neil, > > On Mon, Mar 18, 2019 at 11:06 AM Neil Armstrong > wrote: >> >> From: Guillaume La Roque >> >> Add system regulators for the X96 Max Set-Top-Box. >> >> Still missing >> * VDD_EE (0.8V - PWM controlled) >> * VDD_CPU (PWM controlled)

Re: [PATCH] clk: meson: g12a: fix VPU clock muxes mask

2019-03-19 Thread Neil Armstrong
On 19/03/2019 09:26, Maxime Jourdan wrote: > There are 8 parents, use 0x7 > > Fixes: 085a4ea93d54 ("clk: meson: g12a: add peripheral clock controller") > Signed-off-by: Maxime Jourdan > --- > drivers/clk/meson/g12a.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git

Re: WARNING: bad usercopy in fanotify_read

2019-03-19 Thread Jan Kara
On Mon 18-03-19 11:27:12, Kees Cook wrote: > On Wed, Mar 13, 2019 at 8:47 AM Jan Kara wrote: > > > > On Wed 13-03-19 08:35:33, Kees Cook wrote: > > > On Wed, Mar 13, 2019 at 7:35 AM Jan Kara wrote: > > > > On Tue 12-03-19 23:26:22, Kees Cook wrote: > > > > > On Mon, Mar 11, 2019 at 1:42 PM

Re: [PATCH] device_cgroup: fix RCU imbalance in error case

2019-03-19 Thread Michal Hocko
On Tue 19-03-19 02:36:59, Jann Horn wrote: > When dev_exception_add() returns an error (due to a failed memory > allocation), make sure that we move the RCU preemption count back to where > it was before we were called. We dropped the RCU read lock inside the loop > body, so we can't just "break".

Re: [PATCH v2] Updated locking documentation for transaction_t

2019-03-19 Thread Jan Kara
On Mon 18-03-19 19:42:37, Alexander Lochmann wrote: > We used LockDoc to derive locking rules for each member > of struct transaction_t. > Based on those results, we extended the existing documentation > by more members of struct inode, and updated the existing > documentation. > > Signed-off-by:

Hello

2019-03-19 Thread Ms Lina Hazem
Hello how are you today? My name is Lina i am 25 years old, i am a girl. I saw your profile and i am really interesting about you and i hope to talk with you of course if you would like too. But I do have the mind that you could be a nice person is my believe and there are respectful people out

Re: [PATCH v2] kbuild: add workaround for Debian make-kpkg

2019-03-19 Thread Andreas Schwab
On Mär 19 2019, Masahiro Yamada wrote: > How about this patch? > https://patchwork.kernel.org/patch/10858809/ Thanks, this makes it work again. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for

Re: [PATCH v2 1/8] arm64: dts: meson: g12a: Add AO Clock + Reset Controller support

2019-03-19 Thread Neil Armstrong
On 18/03/2019 21:02, Martin Blumenstingl wrote: > Hi Neil, > > On Mon, Mar 18, 2019 at 10:59 AM Neil Armstrong > wrote: >> >> Add nodes and properties for the AO Clocks and Resets. >> >> Signed-off-by: Neil Armstrong >> Signed-off-by: Jerome Brunet >> --- >>

Re: ulfh/next boot bisection: v5.1-rc1-22-gb3725d97ba75 on rk3399-gru-kevin【请注意,邮件由linux-mmc-ow...@vger.kernel.org代发】

2019-03-19 Thread Ulf Hansson
On Tue, 19 Mar 2019 at 01:38, Shawn Lin wrote: > > > On 2019/3/19 6:50, kernelci.org bot wrote: > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > > * This automated bisection report was sent to you on the basis * > > * that you may be involved with the breaking commit it

[PATCH 2/2] clk: meson-g12a: add video decoder clocks

2019-03-19 Thread Maxime Jourdan
Mostly like meson-gx, except that the VDEC_HEVC clock is now split in two: HEVC and HEVCF. Signed-off-by: Maxime Jourdan --- drivers/clk/meson/g12a.c | 160 +++ drivers/clk/meson/g12a.h | 8 +- 2 files changed, 167 insertions(+), 1 deletion(-) diff --git

[PATCH 0/2] clk: meson: add video decoder clocks for G12A

2019-03-19 Thread Maxime Jourdan
As to not conflict with the IDs, this patch series is based on Neil's last unmerged patch series: "clk: meson: add support for PCIE PLL" Clocks are mostly the same as meson-gx, except for VDEC_HEVC which is now split in two, HEVC and HEVCF. Maxime Jourdan (2): dt-bindings: clk: g12a-clkc: add

[PATCH 1/2] dt-bindings: clk: g12a-clkc: add VDEC clock IDs

2019-03-19 Thread Maxime Jourdan
Expose the three clocks related to the video decoder. Signed-off-by: Maxime Jourdan --- include/dt-bindings/clock/g12a-clkc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dt-bindings/clock/g12a-clkc.h b/include/dt-bindings/clock/g12a-clkc.h index 30303728fe09..82c9e0c020b2

Re: [PATCH] udf: Fix to check the return value of load_nls

2019-03-19 Thread Jan Kara
On Mon 18-03-19 21:59:49, Aditya Pakki wrote: > load_nls may fail and return an error message. The patch checks > for such a scenario and passes the error upstream. > > Signed-off-by: Aditya Pakki Thanks for the patch! But there's other code handling nls_map in udf_fill_super() which takes care

Re: [PATCH] fs: affs: fix a NULL pointer dereference

2019-03-19 Thread Dan Carpenter
Hi Kangjie, Thank you for the patch! Perhaps something to improve: url: https://github.com/0day-ci/linux/commits/Kangjie-Lu/fs-affs-fix-a-NULL-pointer-dereference/20190314-170334 New smatch warnings: fs/affs/file.c:951 affs_truncate() error: we previously assumed 'ext_bh' could be null

Re: Commit seems to prevent use of GNUmakefile wrappers

2019-03-19 Thread David Howells
Masahiro Yamada wrote: > How about this patch? > https://patchwork.kernel.org/patch/10858809/ > > I hope you will be able to wrap the top Makefile again. That works for me. Tested-by: David Howells

RE: [PATCH V6 2/5] pwm: Add i.MX TPM PWM driver support

2019-03-19 Thread Anson Huang
Hi, Best Regards! Anson Huang > -Original Message- > From: Uwe Kleine-König [mailto:u.kleine-koe...@pengutronix.de] > Sent: 2019年3月19日 16:04 > To: Anson Huang > Cc: thierry.red...@gmail.com; robh...@kernel.org; mark.rutl...@arm.com; > shawn...@kernel.org; s.ha...@pengutronix.de;

Re: [PATCH v3] powerpc/mm: move warning from resize_hpt_for_hotplug()

2019-03-19 Thread Laurent Vivier
Hi Michael, as it seems good now, could you pick up this patch for merging? Thanks, Laurent On 13/03/2019 11:25, Laurent Vivier wrote: > resize_hpt_for_hotplug() reports a warning when it cannot > resize the hash page table ("Unable to resize hash page > table to target order") but in some

Re: [PATCH 2/2] clk: meson-g12a: add video decoder clocks

2019-03-19 Thread Jerome Brunet
On Tue, 2019-03-19 at 09:50 +0100, Maxime Jourdan wrote: A complete sentence would have been nice ;) Add the video decoder clocks which are ... > Mostly like meson-gx, except that the VDEC_HEVC clock is now split in two: > HEVC and HEVCF. > > Signed-off-by: Maxime Jourdan > --- >

Re: [PATCH] clk: meson-g12a: fix VPU clock parents

2019-03-19 Thread Jerome Brunet
On Wed, 2019-03-13 at 14:55 +0100, Neil Armstrong wrote: > First two VPU clock parents are wrong, fix it here. > > Fixes: 085a4ea93d54 ("clk: meson: g12a: add peripheral clock controller") > Signed-off-by: Neil Armstrong > --- > drivers/clk/meson/g12a.c | 2 +- > 1 file changed, 1 insertion(+),

RE: [PATCH RESEND V6 0/5] Add i.MX7ULP EVK PWM backlight support

2019-03-19 Thread Anson Huang
Hi, Best Regards! Anson Huang > -Original Message- > From: Uwe Kleine-König [mailto:u.kleine-koe...@pengutronix.de] > Sent: 2019年3月19日 16:15 > To: Anson Huang > Cc: thierry.red...@gmail.com; robh...@kernel.org; mark.rutl...@arm.com; > shawn...@kernel.org; s.ha...@pengutronix.de;

Verifica tu cuenta

2019-03-19 Thread Administracion de cuentas
Web Admin Notificación de correo electrónico Este mensaje se envía desde nuestro centro de mensajería de Web Admin a todos los propietarios de nuestras cuentas de correo electrónico. Estamos eliminando el acceso a todos nuestros clientes de correo web, su cuenta de correo electrónico se

[PATCH v6 3/3] arm64: dts: Add USB DT nodes for Stingray SoC

2019-03-19 Thread Srinath Mannam
Add DT nodes for - Two xHCI host controllers - Two BDC Broadcom USB device controller - Five USB PHY controllers [xHCI0] [BDC0][xHCI1][BDC1] | | | | --- --- |

[PATCH v6 0/3] Stingray USB PHY driver support

2019-03-19 Thread Srinath Mannam
These patches add Stingray USB PHY driver and its corresponding DT nodes with documentation. This patch set is based on Linux-5.0-rc2. Changes from v5: - Removed redundant address and size cells in DT nodes. Changes from v4: - Addressed Rob Herring review comments - Removed child nodes

Verifica tu cuenta

2019-03-19 Thread Administracion de cuentas
Web Admin Notificación de correo electrónico Este mensaje se envía desde nuestro centro de mensajería de Web Admin a todos los propietarios de nuestras cuentas de correo electrónico. Estamos eliminando el acceso a todos nuestros clientes de correo web, su cuenta de correo electrónico se

[PATCH v6 1/3] dt-bindings: phy: Add Stingray USB PHY binding document

2019-03-19 Thread Srinath Mannam
Add DT binding document for Stingray USB PHY. Signed-off-by: Srinath Mannam Reviewed-by: Rob Herring --- .../bindings/phy/brcm,stingray-usb-phy.txt | 32 ++ 1 file changed, 32 insertions(+) create mode 100644

[PATCH v6 2/3] phy: sr-usb: Add Stingray USB PHY driver

2019-03-19 Thread Srinath Mannam
USB PHY driver supports two types of stingray USB PHYs - Type 1 is a combo PHY contains two PHYs, one SS and one HS. - Type 2 is a single HS PHY. These two PHY versons support both Generic xHCI host controller driver and BDC Broadcom device controller driver. Signed-off-by: Srinath Mannam ---

Re: [PATCH v2] clk: at91: fix programmable clock for sama5d2

2019-03-19 Thread Alexandre Belloni
On 19/03/2019 08:28:40+, Nicolas Ferre wrote: > > Ok. I can apply this clk-fixes. I presume that things are real bad and > > it can't wait until v5.2? > > To be perfectly clear, it's not a regression. > But as we're at the very beginning of the '-rc' phase and as it's a bug, > I was thinking

Re: [PATCH v2 6/8] clk: Allow parents to be specified without string names

2019-03-19 Thread Jerome Brunet
On Fri, 2019-03-15 at 10:16 -0700, Stephen Boyd wrote: > Quoting Jerome Brunet (2019-03-15 03:01:53) > > On Tue, 2019-02-26 at 14:34 -0800, Stephen Boyd wrote: > > > --- > > > drivers/clk/clk.c| 260 ++- > > > include/linux/clk-provider.h | 19 +++ > >

Re: [PATCH v6] Drivers: hv: vmbus: Expose monitor data only when monitor pages are used

2019-03-19 Thread Greg KH
On Tue, Mar 19, 2019 at 12:04:01AM -0400, Kimberly Brown wrote: > There are two methods for signaling the host: the monitor page mechanism > and hypercalls. The monitor page mechanism is used by performance > critical channels (storage, networking, etc.) because it provides > improved throughput.

[RESEND PATCH] clk: hi3660: Mark clk_gate_ufs_subsys as critical

2019-03-19 Thread Leo Yan
clk_gate_ufs_subsys is a system bus clock, turning off it will introduce lockup issue during system suspend flow. Let's mark clk_gate_ufs_subsys as critical clock, thus keeps it on during system suspend and resume. Fixes: d374e6fd5088 ("clk: hisilicon: Add clock driver for hi3660 SoC") Cc:

Re: [PATCH 05/10] staging: rtl8723bs: Remove unreachable Code in core/rtw_cmd.c

2019-03-19 Thread Dan Carpenter
On Sun, Mar 17, 2019 at 07:31:08PM +0100, Emanuel Bennici wrote: > The `case INTEl_WIDI_WK_CID`-Statement in Function `u8 rtw_drvextra_cmd_hdl` > wouldn't be used because of CONFIG_INTEL_WIDI. > > Signed-off-by: Emanuel Bennici > --- > drivers/staging/rtl8723bs/core/rtw_cmd.c | 5 - > 1

Re: [PATCH 2/2] clk: meson-g12a: add video decoder clocks

2019-03-19 Thread Maxime Jourdan
Hi Jerome, On Tue, Mar 19, 2019 at 10:09 AM Jerome Brunet wrote: > > On Tue, 2019-03-19 at 09:50 +0100, Maxime Jourdan wrote: > > A complete sentence would have been nice ;) > > Add the video decoder clocks which are ... > Sorry about that, I'll apply myself in the future. > > Mostly like

  1   2   3   4   5   6   7   8   >