Re: [PATCH v22 02/24] x86/cpufeatures: x86/msr: Intel SGX Launch Control hardware bits

2019-09-24 Thread Borislav Petkov
On Tue, Sep 03, 2019 at 05:26:33PM +0300, Jarkko Sakkinen wrote: > From: Kai Huang > > Add X86_FEATURE_SGX_LC, which informs whether or not the CPU supports SGX > Launch Control. > > Add MSR_IA32_SGXLEPUBKEYHASH{0, 1, 2, 3}, which when combined contain a > SHA256 hash of a 3072-bit RSA public ke

RE: [v3,3/3] Documentation: dt: binding: fsl: Add 'fsl,ippdexpcr-alt-addr' property

2019-09-24 Thread Leo Li
> -Original Message- > From: Biwen Li > Sent: Monday, September 23, 2019 9:46 PM > To: Leo Li ; shawn...@kernel.org; > robh...@kernel.org; mark.rutl...@arm.com; Ran Wang > > Cc: linuxppc-...@lists.ozlabs.org; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; devicet

Re: [PATCH 1/2] x86,sched: Add support for frequency invariance

2019-09-24 Thread Peter Zijlstra
On Tue, Sep 24, 2019 at 04:03:32PM +0200, Peter Zijlstra wrote: > > I'll check what's the cost of static_cpu_has() and if it's non-negligible > > I'll > > do what you suggest (x86-specific version of arch_scale_freq_invariant(). > > static_cpu_has() is an alternative and ends up being a static b

Re: [PATCH 0/2] Add support for frequency invariance for (some) x86

2019-09-24 Thread Peter Zijlstra
On Mon, Sep 09, 2019 at 04:42:14AM +0200, Giovanni Gherdovich wrote: > This is a resend with of Peter Zijlstra's patch to support frequency > scale-invariance on x86 from May 2018 [see 1]. I've added some modifications > and included performance test results. If Peter doesn't mind, I'm slapping my

Re: [PATCH v22 03/24] x86/mm: x86/sgx: Signal SIGSEGV with PF_SGX

2019-09-24 Thread Borislav Petkov
On Tue, Sep 03, 2019 at 05:26:34PM +0300, Jarkko Sakkinen wrote: > From: Sean Christopherson > > Include SGX bit to the PF error codes and throw SIGSEGV with PF_SGX when > a #PF with SGX set happens. > > CPU throws a #PF with the SGX bit in the event of Enclave Page Cache Map > (EPCM) conflict.

Re: [PATCH 1/2] x86,sched: Add support for frequency invariance

2019-09-24 Thread Peter Zijlstra
On Mon, Sep 09, 2019 at 04:42:15AM +0200, Giovanni Gherdovich wrote: > +static void intel_set_cpu_max_freq(void) > +{ > + /* > + * TODO: add support for: > + * > + * - Xeon Phi (KNM, KNL) > + * - Xeon Gold/Platinum, Atom Goldmont/Goldmont Plus > + * - Atom Silvermont

Re: [PATCH 1/3] perf, evlist: Fix access of freed id arrays

2019-09-24 Thread Andi Kleen
> id/sample_id arrays are not created when evsel is open but > we free it at close > > for now this fix seems correct to me.. we are moving id/sample_id > arrays under libperf, I'll make a note to check on close and reopen > of evsel and add some tests for that > > Acked-by: Jiri Olsa It looks

Re: [PATCH RT v3 3/5] sched: migrate_dis/enable: Use rt_invol_sleep

2019-09-24 Thread Sebastian Andrzej Siewior
On 2019-09-24 10:47:36 [-0500], Scott Wood wrote: > When the stop machine finishes it will do a wake_up_process() via > complete(). Since this does not pass WF_LOCK_SLEEPER, saved_state will be > cleared, and you'll have TASK_RUNNING when you get to other_func() and > schedule(), regardless of whe

Re: [PATCH v22 01/24] x86/cpufeatures: x86/msr: Add Intel SGX hardware bits

2019-09-24 Thread Sean Christopherson
On Tue, Sep 24, 2019 at 05:28:48PM +0200, Borislav Petkov wrote: > On Tue, Sep 03, 2019 at 05:26:32PM +0300, Jarkko Sakkinen wrote: > > diff --git a/arch/x86/include/asm/cpufeatures.h > > b/arch/x86/include/asm/cpufeatures.h > > index 998c2cc08363..c5582e766121 100644 > > --- a/arch/x86/include/as

Re: [PATCH] sched: fix migration to invalid cpu in __set_cpus_allowed_ptr

2019-09-24 Thread Valentin Schneider
On 24/09/2019 15:09, Dietmar Eggemann wrote: > On 9/23/19 6:06 PM, Valentin Schneider wrote: >> On 23/09/2019 16:43, Dietmar Eggemann wrote: >>> I'm not sure that CONFIG_DEBUG_PER_CPU_MAPS=y will help you here. >>> >>> __set_cpus_allowed_ptr(...) >>> { >>> ... >>> dest_cpu = cpumask_any_and

Re: [PATCH v22 04/24] x86/cpu/intel: Detect SGX supprt

2019-09-24 Thread Borislav Petkov
On Tue, Sep 03, 2019 at 05:26:35PM +0300, Jarkko Sakkinen wrote: > From: Sean Christopherson > > When the CPU supports SGX, check that the BIOS has enabled SGX and SGX1 > opcodes are available. Otherwise, all the SGX related capabilities. > > In addition, clear X86_FEATURE_SGX_LC also in the cas

[PATCH 0/4] irqchip: Add Aspeed SCU Interrupt Controller

2019-09-24 Thread Eddie James
The Aspeed SOCs provide some interrupts through the System Control Unit registers. Add an interrupt controller that provides these interrupts to the system. Add the interrupt controller to the AST25XX and AST26XX devicetrees. Eddie James (4): dt-bindings: interrupt-controller: Add Aspeed SCU int

[PATCH 2/4] irqchip: Add Aspeed SCU interrupt controller

2019-09-24 Thread Eddie James
The Aspeed SOCs provide some interrupts through the System Control Unit registers. Add an interrupt controller that provides these interrupts to the system. Signed-off-by: Eddie James --- MAINTAINERS | 1 + drivers/irqchip/Makefile| 2 +- drivers/irqchip/i

[PATCH 3/4] ARM: dts: aspeed: ast2500: Add SCU interrupt controller

2019-09-24 Thread Eddie James
Add a node for the interrupt controller provided by the SCU. Signed-off-by: Eddie James --- arch/arm/boot/dts/aspeed-g5.dtsi | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/aspeed-g5.dtsi b/arch/arm/boot/dts/aspeed-g5.dtsi index e8feb8b..450c2d2

[PATCH 1/4] dt-bindings: interrupt-controller: Add Aspeed SCU interrupt controller

2019-09-24 Thread Eddie James
Document the Aspeed SCU interrupt controller and add an include file for the interrupts it provides. Signed-off-by: Eddie James --- .../interrupt-controller/aspeed,ast2xxx-scu-ic.txt | 26 ++ MAINTAINERS| 7 ++ .../interrupt-contro

[PATCH 4/4] ARM: dts: aspeed: ast2600: Add SCU interrupt controllers

2019-09-24 Thread Eddie James
Add nodes for the interrupt controllers provided by the SCU. Signed-off-by: Eddie James --- arch/arm/boot/dts/aspeed-g6.dtsi | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-g6.dtsi b/arch/arm/boot/dts/aspeed-g6.dtsi index 3a1422f..d89f1e6 100644 -

Re: [PATCH 2/3] clk: let init callback return an error code

2019-09-24 Thread Andrew Lunn
On Tue, Sep 24, 2019 at 02:39:53PM +0200, Jerome Brunet wrote: > If the init callback is allowed to request resources, it needs a return > value to report the outcome of such a request. > > Signed-off-by: Jerome Brunet > --- > > Sorry about the spam. > This patch change quite a few files so I

[PATCHv6 2/2] ARM: dts: Add support for i.MX6 UltraLite DART Variscite Customboard

2019-09-24 Thread Oliver Graute
This patch adds DeviceTree Source for the i.MX6 UltraLite DART NAND/WIFI Signed-off-by: Oliver Graute Cc: Shawn Guo Cc: Neil Armstrong Cc: Marco Felsch --- Changelog: v6: - added some muxing - added codec in sound node - added adc1 node arch/arm/boot/dts/Makefile |

[PATCHv6 1/2] ARM: dts: imx6ul: Add Variscite DART-6UL SoM support

2019-09-24 Thread Oliver Graute
This patch adds support for the i.MX6UL variant of the Variscite DART-6UL SoM Carrier-Board Signed-off-by: Oliver Graute Cc: Shawn Guo Cc: Neil Armstrong Cc: Marco Felsch --- Changelog: v6: - renamed touch regulator - renamed rmii clock - moved some muxing to baseboard - added pinctrl for

[PATCHv6 0/2] Variscite DART-6UL SoM support

2019-09-24 Thread Oliver Graute
Need feedback to the following patches which adds support for a DART-6UL Board Need feedback if the division between customboard and SoM is done right Need some feedback why ethernet RX is not working the right way. RX is deaf. Need feedback howto document propertys and compatible the right way

Re: [PATCH 1/5] linux/kernel.h: Add sizeof_member macro

2019-09-24 Thread Kees Cook
On Tue, Sep 24, 2019 at 04:28:35PM +0530, Pankaj Bharadiya wrote: > At present we have 3 different macros to calculate the size of a > member of a struct: > - SIZEOF_FIELD > - FIELD_SIZEOF > - sizeof_field > > To bring uniformity in entire kernel source tree let's add > sizeof_member macro.

[PATCH v2] serdev: Add ACPI devices by ResourceSource field

2019-09-24 Thread Maximilian Luz
When registering a serdev controller, ACPI needs to be checked for devices attached to it. Currently, all immediate children of the ACPI node of the controller are assumed to be UART client devices for this controller. Furthermore, these devices are not searched elsewhere. This is incorrect: Simil

Re: [PATCH] serdev: Add ACPI devices by ResourceSource field

2019-09-24 Thread Maximilian Luz
Hi, I have just submitted v2 of this patch. Regards, Maximilian

Re: [PATCH v22 01/24] x86/cpufeatures: x86/msr: Add Intel SGX hardware bits

2019-09-24 Thread Borislav Petkov
On Tue, Sep 24, 2019 at 09:11:50AM -0700, Sean Christopherson wrote: > With respect to more SGX feature flags, the original changelog even > stated "with more expected in the not-too-distant future". That means nothing, you know that, right? :) There's a big difference between expectation and it

Re: + mm-thp-extract-split_queue_-into-a-struct.patch added to -mm tree

2019-09-24 Thread Yang Shi
On 9/24/19 6:56 AM, Michal Hocko wrote: Do we really need this if deferred list is going to be shrunk more pro-actively as discussed already - I am sorry I do not have a link handy but in short the deferred list would be drained from a kworker context more pro-actively rather than wait for the

Re: [PATCH 0/5] Add and use sizeof_member macro to bring uniformity

2019-09-24 Thread Kees Cook
Hi Linus, Is a cleanup like this something you'd be willing to include before you cut -rc1, or should this wait for a later time? (This is likely very close to the final version -- I had some minor feedback, but I wanted to figure out timing for the series and how you best wanted to handle it.) If

Re: [RESEND][PATCH v8 0/5] DMA-BUF Heaps (destaging ION)

2019-09-24 Thread John Stultz
On Tue, Sep 24, 2019 at 9:22 AM Ayan Halder wrote: > I tested these patches using our internal test suite with Arm,komeda > driver and the following node in dts > > reserved-memory { > #address-cells = <0x2>; > #size-cells = <0x2>; > ranges;

Re: [PATCH v2] media: vimc: Enable set resolution at the scaler src pad

2019-09-24 Thread Dafna Hirschfeld
Hi, On Sun, 2019-09-15 at 18:35 -0300, Pedro Terra wrote: > Modify the scaler subdevice to accept setting the resolution of the source > pad (previously the source resolution would always be 3 times the sink for > both dimensions). Now any resolution can be set at src (even smaller ones) > and the

Re: [PATCH 1/2] x86,sched: Add support for frequency invariance

2019-09-24 Thread Peter Zijlstra
On Mon, Sep 09, 2019 at 04:42:15AM +0200, Giovanni Gherdovich wrote: > +static const struct x86_cpu_id has_turbo_ratio_group_limits[] = { > + ICPU(INTEL_FAM6_ATOM_GOLDMONT), > + ICPU(INTEL_FAM6_ATOM_GOLDMONT_X), That's GOLDMONT_D in recent tip kernels. > + ICPU(INTEL_FAM6_ATOM_GOLDMON

Re: [PATCH v2 1/2] x86/boot/64: Make level2_kernel_pgt pages invalid outside kernel area.

2019-09-24 Thread Steve Wahl
On Mon, Sep 23, 2019 at 11:49:44AM -0700, h...@zytor.com wrote: > On September 23, 2019 11:15:20 AM PDT, Steve Wahl wrote: > >Our hardware (UV aka Superdome Flex) has address ranges marked > >reserved by the BIOS. Access to these ranges is caught as an error, > >causing the BIOS to halt the system

Re: [PATCH RT v3 3/5] sched: migrate_dis/enable: Use rt_invol_sleep

2019-09-24 Thread Scott Wood
On Tue, 2019-09-24 at 18:05 +0200, Sebastian Andrzej Siewior wrote: > On 2019-09-24 10:47:36 [-0500], Scott Wood wrote: > > When the stop machine finishes it will do a wake_up_process() via > > complete(). Since this does not pass WF_LOCK_SLEEPER, saved_state will > > be > > cleared, and you'll ha

Re: [PATCH v8 3/3] mm: fix double page fault on arm64 if PTE_AF is cleared

2019-09-24 Thread Catalin Marinas
On Tue, Sep 24, 2019 at 11:29:07PM +0800, Jia He wrote: > On 2019/9/24 18:33, Catalin Marinas wrote: > > On Tue, Sep 24, 2019 at 06:43:06AM +, Justin He (Arm Technology China) > > wrote: > > > Catalin Marinas wrote: > > > > On Sat, Sep 21, 2019 at 09:50:54PM +0800, Jia He wrote: > > > > >

Re: [PATCH 0/4] *** AMD PTDMA driver ***

2019-09-24 Thread Vinod Koul
On 24-09-19, 07:31, Mehta, Sanju wrote: > From: Sanjay R Mehta > > *** This patch series adds support for AMD PTDMA engine *** What lots of stars! Can you describe the controller a bit more to help people set the context for the review! And also helps to make the email subject as "Add AMD PTDM

Re: [PATCH 3/6] PCI: mobiveil: Add PCIe Gen4 EP driver for NXP Layerscape SoCs

2019-09-24 Thread Russell King - ARM Linux admin
On Mon, Sep 16, 2019 at 10:17:39AM +0800, Xiaowei Bao wrote: > This PCIe controller is based on the Mobiveil GPEX IP, it work in EP > mode if select this config opteration. > > Signed-off-by: Xiaowei Bao > --- > MAINTAINERS| 2 + > drivers/pci/controller

[Patch v3 4/8] media: i2c: ov2659: fix s_stream return value

2019-09-24 Thread Benoit Parrot
In ov2659_s_stream() return value for invoked function should be checked and propagated. Signed-off-by: Benoit Parrot --- drivers/media/i2c/ov2659.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/media/i2c/ov2659.c b/drivers/media/i2c/ov2659.c index f7732

[PATCH AUTOSEL 5.3 10/87] drm/amd/display: fix not calling ppsmu to trigger PME

2019-09-24 Thread Sasha Levin
From: Su Sung Chung [ Upstream commit 18b401874aee10c80b5745c9b93280dae5a59809 ] [why] dcn20_clk_mgr_construct was not initializing pp_smu, and PME call gets filtered out by the null check [how] initialize pp_smu dcn20_clk_mgr_construct Signed-off-by: Su Sung Chung Reviewed-by: Eric Yang Ack

[PATCH AUTOSEL 5.3 01/87] drm/vkms: Fix crc worker races

2019-09-24 Thread Sasha Levin
From: Daniel Vetter [ Upstream commit 18d0952a838ba559655b0cd9cf85097ad63d9bca ] The issue we have is that the crc worker might fall behind. We've tried to handle this by tracking both the earliest frame for which it still needs to compute a crc, and the last one. Plus when the crtc_state change

[PATCH AUTOSEL 5.3 12/87] drm/amd/display: Copy GSL groups when committing a new context

2019-09-24 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit 21ffcc94d5b3dc024fedac700f1e7f9dacf4ab4f ] [Why] DC configures the GSL group for the pipe when pipe_split is enabled and we're switching flip types (buffered <-> immediate flip) on DCN2. In order to record what GSL group the pipe is using DC stores it

[PATCH AUTOSEL 5.3 06/87] drm/vkms: Avoid assigning 0 for possible_crtc

2019-09-24 Thread Sasha Levin
From: Rodrigo Siqueira [ Upstream commit e9d85f731de06a35d2ae6cdcf7d0e037c98ef41a ] When vkms invoke drm_universal_plane_init(), it sets 0 for possible_crtcs parameter which means that planes can't be attached to any CRTC. It currently works due to some safeguard in the drm_crtc file; however, i

[Patch v3 7/8] media: i2c: ov2659: Fix missing 720p register config

2019-09-24 Thread Benoit Parrot
The initial registers sequence is only loaded at probe time. Afterward only the resolution and format specific register are modified. Care must be taken to make sure registers modified by one resolution setting are reverted back when another resolution is programmed. This was not done properly for

[Patch v3 2/8] media: i2c: ov2659: Fix sensor detection to actually fail when device is not present

2019-09-24 Thread Benoit Parrot
Make sure that if the expected sensor device id register is not recognized properly the failure is propagated up so devices are not left partially initialized. Signed-off-by: Benoit Parrot Signed-off-by: Jyri Sarha --- drivers/media/i2c/ov2659.c | 5 +++-- 1 file changed, 3 insertions(+), 2 del

[PATCH AUTOSEL 5.3 07/87] drm/panel: simple: fix AUO g185han01 horizontal blanking

2019-09-24 Thread Sasha Levin
From: Lucas Stach [ Upstream commit f8c6bfc612b56f02e1b8fae699dff12738aaf889 ] The horizontal blanking periods are too short, as the values are specified for a single LVDS channel. Since this panel is dual LVDS they need to be doubled. With this change the panel reaches its nominal vrefresh rate

[PATCH AUTOSEL 5.3 08/87] drm/amd/display: add monitor patch to add T7 delay

2019-09-24 Thread Sasha Levin
From: Anthony Koo [ Upstream commit 88eac241a1fc500ce5274a09ddc4bd5fc2b5adb6 ] [Why] Specifically to one panel, TCON is able to accept active video signal quickly, but the Source Driver requires 2-3 frames of extra time. It is a Panel issue since TCON needs to take care of all Sink requirements

[Patch v3 0/8] media: i2c: ov2659: maintenance series

2019-09-24 Thread Benoit Parrot
This patch series is a collection of patches we have been carrying for a while. It includes a few sensor register fixes which would cause visual artifacts at lower resolution and also at 720p. Also on some board the 'powerdown' and /or 'reset' pins are not tied so we need to add support for optio

[PATCH AUTOSEL 5.3 09/87] drm/amd/display: Power-gate all DSCs at driver init time

2019-09-24 Thread Sasha Levin
From: Nikola Cornij [ Upstream commit 75c35000235f3662f2810e9a59b0c8eed045432e ] [why] DSC should be powered-on only on as-needed basis, i.e. if the mode requires it [how] Loop over all the DSCs at driver init time and power-gate each Signed-off-by: Nikola Cornij Reviewed-by: Nevenko Stupar

[PATCH AUTOSEL 5.3 05/87] drm/kms: Catch mode_object lifetime errors

2019-09-24 Thread Sasha Levin
From: Daniel Vetter [ Upstream commit 4f5368b5541a902f6596558b05f5c21a9770dd32 ] Only dynamic mode objects, i.e. those which are refcounted and have a free callback, can be added while the overall drm_device is visible to userspace. All others must be added before drm_dev_register and removed af

[Patch v3 5/8] media: dt-bindings: ov2659: add powerdown/reset-gpios optional property

2019-09-24 Thread Benoit Parrot
Add powerdown-gpios and reset-gpios to the list of optional properties for the OV2659 camera sensor. Signed-off-by: Benoit Parrot --- Documentation/devicetree/bindings/media/i2c/ov2659.txt | 9 + 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/ov

[PATCH AUTOSEL 5.3 27/87] clk: qoriq: Fix -Wunused-const-variable

2019-09-24 Thread Sasha Levin
From: Nathan Huckleberry [ Upstream commit a95fb581b144b5e73da382eaedb2e32027610597 ] drivers/clk/clk-qoriq.c:138:38: warning: unused variable 'p5020_cmux_grp1' [-Wunused-const-variable] static const struct clockgen_muxinfo p5020_cmux_grp1 drivers/clk/clk-qoriq.c:146:38: warning: unused variabl

[PATCH AUTOSEL 5.3 22/87] gpu: drm: radeon: Fix a possible null-pointer dereference in radeon_connector_set_property()

2019-09-24 Thread Sasha Levin
From: Jia-Ju Bai [ Upstream commit f3eb9b8f67bc28783eddc142ad805ebdc53d6339 ] In radeon_connector_set_property(), there is an if statement on line 743 to check whether connector->encoder is NULL: if (connector->encoder) When connector->encoder is NULL, it is used on line 755: if (connec

[PATCH AUTOSEL 5.3 28/87] clk: ingenic/jz4740: Fix "pll half" divider not read/written properly

2019-09-24 Thread Sasha Levin
From: Paul Cercueil [ Upstream commit 568b9de48d80bcf1a92e2c4fa67651abbb8ebfe2 ] The code was setting the bit 21 of the CPCCR register to use a divider of 2 for the "pll half" clock, and clearing the bit to use a divider of 1. This is the opposite of how this register field works: a cleared bit

[PATCH AUTOSEL 5.3 18/87] drm/rockchip: Check for fast link training before enabling psr

2019-09-24 Thread Sasha Levin
From: Sean Paul [ Upstream commit ad309284a52be47c8b3126c9376358bf381861bc ] Once we start shutting off the link during PSR, we're going to want fast training to work. If the display doesn't support fast training, don't enable psr. Changes in v2: - None Changes in v3: - None Changes in v4: - No

[PATCH AUTOSEL 5.3 16/87] drm/bridge: sii902x: fix missing reference to mclk clock

2019-09-24 Thread Sasha Levin
From: Olivier Moysan [ Upstream commit 365d28c92f8cd3d3860f8dd057a8c136e24b3698 ] Add devm_clk_get call to retrieve reference to master clock. Fixes: ff5781634c41 ("drm/bridge: sii902x: Implement HDMI audio support") Signed-off-by: Olivier Moysan Reviewed-by: Jyri Sarha Acked-by: Andrzej Haj

[PATCH AUTOSEL 5.3 19/87] drm/amdgpu: Fix hard hang for S/G display BOs.

2019-09-24 Thread Sasha Levin
From: Andrey Grodzovsky [ Upstream commit e4c4073b0139d055d43a9568690fc560aab4fa5c ] HW requires for caching to be unset for scanout BO mappings when the BO placement is in GTT memory. Usually the flag to unset is passed from user mode but for FB mode this was missing. v2: Keep all BO placement

[PATCH AUTOSEL 5.3 15/87] drm/stm: attach gem fence to atomic state

2019-09-24 Thread Sasha Levin
From: Ahmad Fatoum [ Upstream commit 8fabc9c3109a71b3577959a05408153ae69ccd8d ] To properly synchronize with other devices the fence from the GEM object backing the framebuffer needs to be attached to the atomic state, so the commit work can wait on fence signaling. Signed-off-by: Ahmad Fatoum

[PATCH AUTOSEL 5.3 37/87] clk: sirf: Don't reference clk_init_data after registration

2019-09-24 Thread Sasha Levin
From: Stephen Boyd [ Upstream commit af55dadfbce35b4f4c6247244ce3e44b2e242b84 ] A future patch is going to change semantics of clk_register() so that clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid referencing this member here so that we don't run into NULL pointer excepti

[PATCH AUTOSEL 5.3 34/87] powerpc/powernv/ioda2: Allocate TCE table levels on demand for default DMA window

2019-09-24 Thread Sasha Levin
From: Alexey Kardashevskiy [ Upstream commit c37c792dec0929dbb6360a609fb00fa20bb16fc2 ] We allocate only the first level of multilevel TCE tables for KVM already (alloc_userspace_copy==true), and the rest is allocated on demand. This is not enabled though for bare metal. This removes the KVM li

[PATCH AUTOSEL 5.3 44/87] powerpc/ptdump: fix walk_pagetables() address mismatch

2019-09-24 Thread Sasha Levin
From: Christophe Leroy [ Upstream commit e033829d2aaad85cb7cf46986c3be0bcc72f791e ] walk_pagetables() always walk the entire pgdir from address 0 but considers PAGE_OFFSET or KERN_VIRT_START as the starting address of the walk, resulting in a possible mismatch in the displayed addresses. Ex: on

[PATCH AUTOSEL 5.3 52/87] vfio_pci: Restore original state on release

2019-09-24 Thread Sasha Levin
From: hexin [ Upstream commit 92c8026854c25093946e0d7fe536fd9eac440f06 ] vfio_pci_enable() saves the device's initial configuration information with the intent that it is restored in vfio_pci_disable(). However, the commit referenced in Fixes: below replaced the call to __pci_reset_function_loc

[PATCH AUTOSEL 5.3 46/87] powerpc/64s/radix: Remove redundant pfn_pte bitop, add VM_BUG_ON

2019-09-24 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 6bb25170d7a44ef0ed9677814600f0785e7421d1 ] pfn_pte is never given a pte above the addressable physical memory limit, so the masking is redundant. In case of a software bug, it is not obviously better to silently truncate the pfn than to corrupt the pte (ei

[PATCH AUTOSEL 5.3 49/87] powerpc/perf: fix imc allocation failure handling

2019-09-24 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 10c4bd7cd28e77aeb8cfa65b23cb3c632ede2a49 ] The alloc_pages_node return value should be tested for failure before being passed to page_address. Tested-by: Anju T Sudhakar Signed-off-by: Nicholas Piggin Reviewed-by: Aneesh Kumar K.V Signed-off-by: Michae

[PATCH AUTOSEL 5.3 47/87] powerpc/64s/radix: Fix memory hotplug section page table creation

2019-09-24 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 8f51e3929470942e6a8744061254fdeef646cd36 ] create_physical_mapping expects physical addresses, but creating and splitting these mappings after boot is supplying virtual (effective) addresses. This can be irritated by booting with mem= to limit memory then

[PATCH AUTOSEL 5.3 54/87] drm/nouveau/kms/tu102-: disable input lut when input is already FP16

2019-09-24 Thread Sasha Levin
From: Ben Skeggs [ Upstream commit 1e339ab2ac3c769c1b06b9fb7d532f8495ebc56d ] On Turing, an input LUT is required to transform inputs in fixed-point formats to FP16 for the internal display pipe. We provide an identity mapping whenever a window is enabled for this reason. HW has error checks t

[PATCH AUTOSEL 5.3 51/87] powerpc/eeh: Clear stale EEH_DEV_NO_HANDLER flag

2019-09-24 Thread Sasha Levin
From: Sam Bobroff [ Upstream commit aa06e3d60e245284d1e55497eb3108828092818d ] The EEH_DEV_NO_HANDLER flag is used by the EEH system to prevent the use of driver callbacks in drivers that have been bound part way through the recovery process. This is necessary to prevent later stage handlers fro

[PATCH AUTOSEL 5.3 43/87] powerpc/rtas: use device model APIs and serialization during LPM

2019-09-24 Thread Sasha Levin
From: Nathan Lynch [ Upstream commit a6717c01ddc259f6f73364779df058e2c67309f8 ] The LPAR migration implementation and userspace-initiated cpu hotplug can interleave their executions like so: 1. Set cpu 7 offline via sysfs. 2. Begin a partition migration, whose implementation requires the OS

[PATCH AUTOSEL 5.3 45/87] powerpc/futex: Fix warning: 'oldval' may be used uninitialized in this function

2019-09-24 Thread Sasha Levin
From: Christophe Leroy [ Upstream commit 38a0d0cdb46d3f91534e5b9839ec2d67be14c59d ] We see warnings such as: kernel/futex.c: In function 'do_futex': kernel/futex.c:1676:17: warning: 'oldval' may be used uninitialized in this function [-Wmaybe-uninitialized] return oldval == cmparg;

[PATCH AUTOSEL 5.3 55/87] drm/nouveau/volt: Fix for some cards having 0 maximum voltage

2019-09-24 Thread Sasha Levin
From: Mark Menzynski [ Upstream commit a1af2afbd244089560794c260b2d4326a86e39b6 ] Some, mostly Fermi, vbioses appear to have zero max voltage. That causes Nouveau to not parse voltage entries, thus users not being able to set higher clocks. When changing this value Nvidia driver still appeare

Re: [PATCH v2] docs: Use make invocation's -j argument for parallelism

2019-09-24 Thread Mauro Carvalho Chehab
Em Mon, 23 Sep 2019 15:40:41 -0700 Kees Cook escreveu: > On Sun, Sep 22, 2019 at 02:03:31PM -0600, Jonathan Corbet wrote: > > On Thu, 19 Sep 2019 14:44:37 -0700 > > Kees Cook wrote: > > > > > While sphinx 1.7 and later supports "-jauto" for parallelism, this > > > effectively ignores the "-j"

[PATCH AUTOSEL 5.3 56/87] pinctrl: amd: disable spurious-firing GPIO IRQs

2019-09-24 Thread Sasha Levin
From: Daniel Drake [ Upstream commit d21b8adbd475dba19ac2086d3306327b4a297418 ] When cold-booting Asus X434DA, GPIO 7 is found to be already configured as an interrupt, and the GPIO level is found to be in a state that causes the interrupt to fire. As soon as pinctrl-amd probes, this interrupt

[PATCH AUTOSEL 5.3 58/87] clk: renesas: cpg-mssr: Set GENPD_FLAG_ALWAYS_ON for clock domain

2019-09-24 Thread Sasha Levin
From: Geert Uytterhoeven [ Upstream commit f787216f33ce5b5a2567766398f44ab62157114c ] The CPG/MSSR Clock Domain driver does not implement the generic_pm_domain.power_{on,off}() callbacks, as the domain itself cannot be powered down. Hence the domain should be marked as always-on by setting the

[PATCH AUTOSEL 5.3 48/87] powerpc/pseries/mobility: use cond_resched when updating device tree

2019-09-24 Thread Sasha Levin
From: Nathan Lynch [ Upstream commit ccfb5bd71d3d1228090a8633800ae7cdf42a94ac ] After a partition migration, pseries_devicetree_update() processes changes to the device tree communicated from the platform to Linux. This is a relatively heavyweight operation, with multiple device tree searches, m

[PATCH AUTOSEL 5.3 42/87] powerpc/xmon: Check for HV mode when dumping XIVE info from OPAL

2019-09-24 Thread Sasha Levin
From: Cédric Le Goater [ Upstream commit c3e0dbd7f780a58c4695f1cd8fc8afde80376737 ] Currently, the xmon 'dx' command calls OPAL to dump the XIVE state in the OPAL logs and also outputs some of the fields of the internal XIVE structures in Linux. The OPAL calls can only be done on baremetal (Powe

[PATCH AUTOSEL 5.3 39/87] clk: sprd: Don't reference clk_init_data after registration

2019-09-24 Thread Sasha Levin
From: Stephen Boyd [ Upstream commit f6c90df8e7e33c3dc33d4d7471bc42c232b0510e ] A future patch is going to change semantics of clk_register() so that clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid referencing this member here so that we don't run into NULL pointer excepti

[PATCH AUTOSEL 5.3 64/87] kbuild: Do not enable -Wimplicit-fallthrough for clang for now

2019-09-24 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit e2079e93f562c7f7a030eb7642017ee5eabaaa10 ] This functionally reverts commit bfd77145f35c ("Makefile: Convert -Wimplicit-fallthrough=3 to just -Wimplicit-fallthrough for clang"). clang enabled support for -Wimplicit-fallthrough in C in r369414 [1], which

[PATCH AUTOSEL 5.3 62/87] drm/amd/display: fix trigger not generated for freesync

2019-09-24 Thread Sasha Levin
From: Yogesh Mohan Marimuthu [ Upstream commit 1e7f100ce8c0640634b794604880d9204480c9f1 ] [Why] In newer hardware MANUAL_FLOW_CONTROL is not a trigger bit. Due to this front porch is fixed and in these hardware freesync does not work. [How] Change the programming to generate a pulse so that the

[PATCH AUTOSEL 5.3 69/87] powerpc/imc: Dont create debugfs files for cpu-less nodes

2019-09-24 Thread Sasha Levin
From: Madhavan Srinivasan [ Upstream commit 41ba17f20ea835c489e77bd54e2da73184e22060 ] Commit <684d984038aa> ('powerpc/powernv: Add debugfs interface for imc-mode and imc') added debugfs interface for the nest imc pmu devices to support changing of different ucode modes. Primarily adding this ca

[PATCH AUTOSEL 5.3 72/87] pinctrl: meson-gxbb: Fix wrong pinning definition for uart_c

2019-09-24 Thread Sasha Levin
From: Otto Meier [ Upstream commit cb0438e4436085d89706b5ccfce4d5da531253de ] Hi i tried to use the uart_C of the the odroid-c2. I enabled it in the dts file. During boot it crashed when the the sdcard slot is addressed. After long search in the net i found this: https://forum.odroid.com/view

[PATCH AUTOSEL 5.3 68/87] powerpc/eeh: Clean up EEH PEs after recovery finishes

2019-09-24 Thread Sasha Levin
From: Oliver O'Halloran [ Upstream commit 799abe283e5103d48e079149579b4f167c95ea0e ] When the last device in an eeh_pe is removed the eeh_pe structure itself (and any empty parents) are freed since they are no longer needed. This results in a crash when a hotplug driver is involved since the fol

[PATCH AUTOSEL 5.3 61/87] drm/amd/display: fix MPO HUBP underflow with Scatter Gather

2019-09-24 Thread Sasha Levin
From: Zi Yu Liao [ Upstream commit 89cb5614736b9b5d3b833ca2237d10da6b4b0395 ] [why] With Scatter Gather enabled, HUBP underflows during MPO enabled video playback. hubp_init has a register write that fixes this problem, but the register is cleared when HUBP gets power gated. [how] Make a call t

[PATCH AUTOSEL 5.3 65/87] drm/amdgpu/si: fix ASIC tests

2019-09-24 Thread Sasha Levin
From: Jean Delvare [ Upstream commit 77efe48a729588527afb4d5811b9e0acb29f5e51 ] Comparing adev->family with CHIP constants is not correct. adev->family can only be compared with AMDGPU_FAMILY constants and adev->asic_type is the struct member to compare with CHIP constants. They are separate ide

[PATCH AUTOSEL 5.3 77/87] clk: imx: pll14xx: avoid glitch when set rate

2019-09-24 Thread Sasha Levin
From: Peng Fan [ Upstream commit dee1bc9c23cd41fe32549c0adbe6cb57cab02282 ] According to PLL1443XA and PLL1416X spec, "When BYPASS is 0 and RESETB is changed from 0 to 1, FOUT starts to output unstable clock until lock time passes. PLL1416X/PLL1443XA may generate a glitch at FOUT." So set BYPAS

[PATCH AUTOSEL 5.3 74/87] ARM: dts: dir685: Drop spi-cpol from the display

2019-09-24 Thread Sasha Levin
From: Linus Walleij [ Upstream commit 2a7326caab479ca257c4b9bd67db42d1d49079bf ] The D-Link DIR-685 had its clock polarity set as active low using the special SPI "spi-cpol" property. This is not correct: the datasheet clearly states: "Fix SCL to GND level when not in use" which is indicative t

[PATCH AUTOSEL 5.3 73/87] mailbox: mediatek: cmdq: clear the event in cmdq initial flow

2019-09-24 Thread Sasha Levin
From: Bibby Hsieh [ Upstream commit 6058f11870b8e6d4f5cc7b591097c00bf69a000d ] GCE hardware stored event information in own internal sysram, if the initial value in those sysram is not zero value it will cause a situation that gce can wait the event immediately after client ask gce to wait event

[PATCH AUTOSEL 5.3 76/87] clk: at91: select parent if main oscillator or bypass is enabled

2019-09-24 Thread Sasha Levin
From: Eugen Hristev [ Upstream commit 69a6bcde7fd3fe6f3268ce26f31d9d9378384c98 ] Selecting the right parent for the main clock is done using only main oscillator enabled bit. In case we have this oscillator bypassed by an external signal (no driving on the XOUT line), we still use external clock

[PATCH AUTOSEL 5.3 75/87] arm64: fix unreachable code issue with cmpxchg

2019-09-24 Thread Sasha Levin
From: Arnd Bergmann [ Upstream commit 920fdab7b3ce98c14c840261e364f490f3679a62 ] On arm64 build with clang, sometimes the __cmpxchg_mb is not inlined when CONFIG_OPTIMIZE_INLINING is set. Clang then fails a compile-time assertion, because it cannot tell at compile time what the size of the argum

[PATCH AUTOSEL 5.3 80/87] powerpc: dump kernel log before carrying out fadump or kdump

2019-09-24 Thread Sasha Levin
From: Ganesh Goudar [ Upstream commit e7ca44ed3ba77fc26cf32650bb71584896662474 ] Since commit 4388c9b3a6ee ("powerpc: Do not send system reset request through the oops path"), pstore dmesg file is not updated when dump is triggered from HMC. This commit modified system reset (sreset) handler to

[PATCH AUTOSEL 5.2 05/70] drm/vkms: Avoid assigning 0 for possible_crtc

2019-09-24 Thread Sasha Levin
From: Rodrigo Siqueira [ Upstream commit e9d85f731de06a35d2ae6cdcf7d0e037c98ef41a ] When vkms invoke drm_universal_plane_init(), it sets 0 for possible_crtcs parameter which means that planes can't be attached to any CRTC. It currently works due to some safeguard in the drm_crtc file; however, i

[PATCH AUTOSEL 5.2 06/70] drm/panel: simple: fix AUO g185han01 horizontal blanking

2019-09-24 Thread Sasha Levin
From: Lucas Stach [ Upstream commit f8c6bfc612b56f02e1b8fae699dff12738aaf889 ] The horizontal blanking periods are too short, as the values are specified for a single LVDS channel. Since this panel is dual LVDS they need to be doubled. With this change the panel reaches its nominal vrefresh rate

[PATCH AUTOSEL 5.3 82/87] clk: sprd: add missing kfree

2019-09-24 Thread Sasha Levin
From: Chunyan Zhang [ Upstream commit 5e75ea9c67433a065b0e8595ad3c91c7c0ca0d2d ] The number of config registers for different pll clocks probably are not same, so we have to use malloc, and should free the memory before return. Fixes: 3e37b005580b ("clk: sprd: add adjustable pll support") Signe

[PATCH AUTOSEL 5.3 79/87] clk: Make clk_bulk_get_all() return a valid "id"

2019-09-24 Thread Sasha Levin
From: Bjorn Andersson [ Upstream commit 7f81c2426587b34bf73e643c1a6d080dfa14cf8a ] The adreno driver expects the "id" field of the returned clk_bulk_data to be filled in with strings from the clock-names property. But due to the use of kmalloc_array() in of_clk_bulk_get_all() it receives a list

[PATCH AUTOSEL 5.2 11/70] drm/panel: check failure cases in the probe func

2019-09-24 Thread Sasha Levin
From: Navid Emamdoost [ Upstream commit afd6d4f5a52c16e1483328ac074abb1cde92c29f ] The following function calls may fail and return NULL, so the null check is added. of_graph_get_next_endpoint of_graph_get_remote_port_parent of_graph_get_remote_port Update: Thanks to Sam Ravnborg, for suggessio

[PATCH AUTOSEL 5.3 81/87] mbox: qcom: add APCS child device for QCS404

2019-09-24 Thread Sasha Levin
From: Jorge Ramirez-Ortiz [ Upstream commit 78c86458a440ff356073c21b568cb58ddb67b82b ] There is clock controller functionality in the APCS hardware block of qcs404 devices similar to msm8916. Co-developed-by: Niklas Cassel Signed-off-by: Niklas Cassel Signed-off-by: Jorge Ramirez-Ortiz Revie

[PATCH AUTOSEL 5.2 22/70] drm/amd/display: fix issue where 252-255 values are clipped

2019-09-24 Thread Sasha Levin
From: Anthony Koo [ Upstream commit 1cbcfc975164f397b449efb17f59d81a703090db ] [Why] When endpoint is at the boundary of a region, such as at 2^0=1 we find that the last segment has a sharp slope and some points are clipped at the top. [How] If end point is 1, which is exactly at the 2^0 region

[PATCH AUTOSEL 5.3 87/87] ext4: fix potential use after free after remounting with noblock_validity

2019-09-24 Thread Sasha Levin
From: "zhangyi (F)" [ Upstream commit 7727ae52975d4f4ef7ff69ed8e6e25f6a4168158 ] Remount process will release system zone which was allocated before if "noblock_validity" is specified. If we mount an ext4 file system to two mountpoints with default mount options, and then remount one of them wit

[PATCH AUTOSEL 5.2 19/70] ipmi_si: Only schedule continuously in the thread in maintenance mode

2019-09-24 Thread Sasha Levin
From: Corey Minyard [ Upstream commit 340ff31ab00bca5c15915e70ad9ada3030c98cf8 ] ipmi_thread() uses back-to-back schedule() to poll for command completion which, on some machines, can push up CPU consumption and heavily tax the scheduler locks leading to noticeable overall performance degradatio

[PATCH AUTOSEL 5.2 07/70] drm/amd/display: add monitor patch to add T7 delay

2019-09-24 Thread Sasha Levin
From: Anthony Koo [ Upstream commit 88eac241a1fc500ce5274a09ddc4bd5fc2b5adb6 ] [Why] Specifically to one panel, TCON is able to accept active video signal quickly, but the Source Driver requires 2-3 frames of extra time. It is a Panel issue since TCON needs to take care of all Sink requirements

[PATCH AUTOSEL 5.2 03/70] drm/bridge: adv7511: Attach to DSI host at probe time

2019-09-24 Thread Sasha Levin
From: Matt Redfearn [ Upstream commit 83f35bc3a852f1c3892c7474998c5cec707c7ba3 ] In contrast to all of the DSI panel drivers in drivers/gpu/drm/panel which attach to the DSI host via mipi_dsi_attach() at probe time, the ADV7533 bridge device does not. Instead it defers this to the point that the

[PATCH AUTOSEL 5.2 02/70] drm/bridge: tc358767: Increase AUX transfer length limit

2019-09-24 Thread Sasha Levin
From: Andrey Smirnov [ Upstream commit e0655feaec62d5139b6b13a7b1bbb1ab8f1c2d83 ] According to the datasheet tc358767 can transfer up to 16 bytes via its AUX channel, so the artificial limit of 8 appears to be too low. However only up to 15-bytes seem to be actually supported and trying to use 1

[PATCH AUTOSEL 5.2 28/70] clk: sirf: Don't reference clk_init_data after registration

2019-09-24 Thread Sasha Levin
From: Stephen Boyd [ Upstream commit af55dadfbce35b4f4c6247244ce3e44b2e242b84 ] A future patch is going to change semantics of clk_register() so that clk_hw::init is guaranteed to be NULL after a clk is registered. Avoid referencing this member here so that we don't run into NULL pointer excepti

[PATCH AUTOSEL 5.2 24/70] drm/amd/display: reprogram VM config when system resume

2019-09-24 Thread Sasha Levin
From: Lewis Huang [ Upstream commit e5382701c3520b3ed66169a6e4aa6ce5df8c56e0 ] [Why] The vm config will be clear to 0 when system enter S4. It will cause hubbub didn't know how to fetch data when system resume. The flip always pending because earliest_inuse_address and request_address are differ

[PATCH AUTOSEL 5.2 26/70] drm/amd/powerplay/smu7: enforce minimal VBITimeout (v2)

2019-09-24 Thread Sasha Levin
From: Ahzo [ Upstream commit f659bb6dae58c113805f92822e4c16ddd3156b79 ] This fixes screen corruption/flickering on 75 Hz displays. v2: make print statement debug only (Alex) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102646 Reviewed-by: Evan Quan Signed-off-by: Ahzo Signed-off-by

<    1   2   3   4   5   6   7   8   9   >