Re: [PATCH v2 0/5] add PM functionality for act8945a PMIC

2018-12-11 Thread Mark Brown
On Tue, Nov 27, 2018 at 11:57:06AM +, claudiu.bez...@microchip.com wrote: > From: Claudiu Beznea > > This series implements PM functionality for act8945a PMIC and use that support > on SAMA5D2 Xplained board. This doesn't apply against current code, please check and resend. signature.asc D

Re: [RFC v3 11/19] kunit: add Python libraries for handing KUnit config and kernel

2018-12-11 Thread Petr Mladek
On Thu 2018-12-06 07:37:18, Matthew Wilcox wrote: > On Thu, Dec 06, 2018 at 12:32:47PM +, Kieran Bingham wrote: > > On 04/12/2018 20:47, Luis Chamberlain wrote: > > > On Mon, Dec 03, 2018 at 03:48:15PM -0800, Brendan Higgins wrote: > > >> On Thu, Nov 29, 2018 at 5:54 AM Kieran Bingham > > >> w

Re: [PATCH 2/2] gpio: mockup: use irq_sim_fire_edge()

2018-12-11 Thread Uwe Kleine-König
Hello Bartosz, On Mon, Dec 03, 2018 at 12:09:16PM +0100, Uwe Kleine-König wrote: > On Tue, Nov 20, 2018 at 02:40:32PM +0100, Bartosz Golaszewski wrote: > > @@ -213,7 +213,8 @@ static ssize_t gpio_mockup_event_write(struct file > > *file, > > chip = priv->chip; > > > > gpiod_set_value_ca

Re: [PATCH v2] ksm: React on changing "sleep_millisecs" parameter faster

2018-12-11 Thread Kirill Tkhai
On 11.12.2018 15:34, Cyrill Gorcunov wrote: > On Tue, Dec 11, 2018 at 03:22:42PM +0300, Kirill Tkhai wrote: >> On 11.12.2018 14:13, Cyrill Gorcunov wrote: >>> On Tue, Dec 11, 2018 at 01:26:59PM +0300, Kirill Tkhai wrote: ksm thread unconditionally sleeps in ksm_scan_thread() after each it

Re: [PATCH v10 10/15] sched: Introduce a sysctl for Energy Aware Scheduling

2018-12-11 Thread Ingo Molnar
* Quentin Perret wrote: > In its current state, Energy Aware Scheduling (EAS) starts automatically > on asymmetric platforms having an Energy Model (EM). However, there are > users who want to have an EM (for thermal management for example), but > don't want EAS with it. Well, then introduce a

[BUG BISECT next] Files cannot be opened after "fsverity: Move verity status check to fsverity_file_open"

2018-12-11 Thread Krzysztof Kozlowski
Hi, Bisect from today's next pointed me to: commit 4de97efb578a094e8fbf279522d41eb9ece1e3e0 Author: Chandan Rajendra Date: Sat Dec 8 12:21:43 2018 +0530 fsverity: Move verity status check to fsverity_file_open as a reason of "Operation not supported" when reading any file from mounted ext4

[PATCH] r8152: Add support for MAC address pass through on RTL8153-BND

2018-12-11 Thread Mario Limonciello
All previous docks and dongles that have supported this feature use the RTL8153-AD chip. RTL8153-BND is a new chip that will be used in upcoming Dell type-C docks. It should be added to the whitelist of devices to activate MAC address pass through. Per confirming with Realtek all devices containi

Re: [PATCH 05/12] PCI: aardvark: add suspend to RAM support

2018-12-11 Thread Lorenzo Pieralisi
On Tue, Dec 04, 2018 at 10:42:19PM +0100, Rafael J. Wysocki wrote: > On Tuesday, December 4, 2018 10:45:58 AM CET Lorenzo Pieralisi wrote: > > On Mon, Dec 03, 2018 at 11:00:20PM +0100, Rafael J. Wysocki wrote: > > > On Monday, December 3, 2018 4:38:46 PM CET Miquel Raynal wrote: > > > > Hi Lorenzo,

Re: [PATCH 0/2] Graph fixes for using multiple endpoints per port

2018-12-11 Thread Tony Lindgren
Hi, * Kuninori Morimoto [181211 06:14]: > > Hi Tony > > > > And, your [2/2] patch, > > > I guess you are misunderstanding about "port" vs "endpoint", > > > or omap-mcbsp driver side need to update ? > > > > Yes omap-mcbsp driver needs to be updated for multiple endpoints. > > > > Adding Jarkk

Re: [PATCH] pci: avoid bridge feature re-probing on hotplug

2018-12-11 Thread Bjorn Helgaas
Hi Michael, Please run "git log --oneline drivers/pci/setup-bus.c" and follow the usual style. On Mon, Dec 10, 2018 at 09:18:40PM -0500, Michael S. Tsirkin wrote: > commit 1f82de10d6 ("PCI/x86: don't assume prefetchable ranges are > 64bit") added probing of bridge support for 64 bit memory > each

Re: [PATCH] arm64: fix ARM64_USER_VA_BITS_52 builds

2018-12-11 Thread Will Deacon
On Tue, Dec 11, 2018 at 03:08:10PM +0100, Arnd Bergmann wrote: > In some randconfig builds, the new CONFIG_ARM64_USER_VA_BITS_52 > triggered a build failure: > > arch/arm64/mm/proc.S:287: Error: immediate out of range > > As it turns out, we were incorrectly setting PGTABLE_LEVELS here, > lacking

Re: [PATCH v10 04/15] PM / EM: Expose the Energy Model in sysfs

2018-12-11 Thread Ingo Molnar
* Quentin Perret wrote: > Expose the Energy Model (read-only) of all performance domains in sysfs > for convenience. To do so, add a kobject to the CPU subsystem under the > umbrella of which a kobject for each performance domain is attached. > > The resulting hierarchy is as follows for a pla

Re: [PATCH] staging: vchiq: rework remove_event handling

2018-12-11 Thread Arnd Bergmann
On Tue, Dec 11, 2018 at 1:31 PM Nicolas Saenz Julienne wrote: > > On Tue, 2018-12-11 at 13:07 +0300, Dan Carpenter wrote: > > On Mon, Dec 10, 2018 at 10:11:58PM +0100, Arnd Bergmann wrote: > > > Note that I'm changing it back to 'killable' after the previous > > > patch > > > changed 'killable' to

[PATCH v2 0/2] Workaround errata i929

2018-12-11 Thread Faiz Abbas
The following patches workaround errata i929 by implementing a new tuning algorithm. Changes in v2: 1. Added patch to document the name of the thermal_zone "cpu_thermal" 2. Rebased to latest linux-next Faiz Abbas (2): dt-bindings: sdhci-omap: Add note for cpu_thermal mmc: sdhci-omap: Workar

[PATCH v2 2/2] mmc: sdhci-omap: Workaround errata regarding SDR104/HS200 tuning failures (i929)

2018-12-11 Thread Faiz Abbas
Errata i929 in certain OMAP5/DRA7XX/AM57XX silicon revisions (SPRZ426D - November 2014 - Revised February 2018 [1]) mentions unexpected tuning pattern errors. A small failure band may be present in the tuning range which may be missed by the current algorithm. Furthermore, the failure bands vary wi

[PATCH v2 1/2] dt-bindings: sdhci-omap: Add note for cpu_thermal

2018-12-11 Thread Faiz Abbas
The driver fetches a thermal zone using the string "cpu_thermal" for tuning operation. Add a note for the same. Signed-off-by: Faiz Abbas --- Documentation/devicetree/bindings/mmc/sdhci-omap.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/sdhci-oma

Re: [PATCH] staging: vchiq: rework remove_event handling

2018-12-11 Thread Arnd Bergmann
On Tue, Dec 11, 2018 at 1:36 PM Nicolas Saenz Julienne wrote: > On Mon, 2018-12-10 at 22:11 +0100, Arnd Bergmann wrote: > > @@ -447,26 +444,26 @@ remote_event_wait(VCHIQ_STATE_T *state, > > REMOTE_EVENT_T *event) > > } > > > > static inline void > > -remote_event_signal_local(VCHIQ_STATE_T *sta

RE: [PATCH] PCI: endpoint: functions: Use kmemdup instead of duplicating its function

2018-12-11 Thread David Laight
From: Alan Douglas > Sent: 06 December 2018 12:01 > Hi, > > On 06 December 2018 10:21, Wen Yang wrote: > > kmemdup has implemented the function that kmalloc() + memcpy(). > > We prefer to kmemdup rather than code opened implementation. ... > > diff --git a/drivers/pci/endpoint/functions/pci-epf-te

Re: [PATCH] spi: lpspi: Add cs-gpio support

2018-12-11 Thread Mark Brown
On Tue, Dec 04, 2018 at 06:24:59AM +, Clark Wang wrote: > Add cs-gpio feature for LPSPI. Use fsl_lpspi_prepare_message() and > fsl_lpspi_unprepare_message() to enable and control cs line. > These two functions will be only called at the beginning and the ending > of a message transfer. > Stil

Re: [PATCH] spi: lpspi: Add i.MX8 boards support for lpspi

2018-12-11 Thread Mark Brown
On Tue, Dec 04, 2018 at 05:33:38AM +, Clark Wang wrote: > Add both ipg and per clock for lpspi to support i.MX8QM/QXP boards. This doesn't apply against current code, please check and resend. signature.asc Description: PGP signature

[PATCH 3/3] mm, fault_around: do not take a reference to a locked page

2018-12-11 Thread Michal Hocko
From: Michal Hocko filemap_map_pages takes a speculative reference to each page in the range before it tries to lock that page. While this is correct it also can influence page migration which will bail out when seeing an elevated reference count. The faultaround code would bail on seeing a locke

[PATCH 1/3] mm, memory_hotplug: try to migrate full pfn range

2018-12-11 Thread Michal Hocko
From: Michal Hocko do_migrate_range has been limiting the number of pages to migrate to 256 for some reason which is not documented. Even if the limit made some sense back then when it was introduced it doesn't really serve a good purpose these days. If the range contains huge pages then we break

[PATCH 2/3] mm, memory_hotplug: deobfuscate migration part of offlining

2018-12-11 Thread Michal Hocko
From: Michal Hocko Memory migration might fail during offlining and we keep retrying in that case. This is currently obfuscate by goto retry loop. The code is hard to follow and as a result it is even suboptimal becase each retry round scans the full range from start_pfn even though we have succe

[PATCH 0/3] few memory offlining enhancements

2018-12-11 Thread Michal Hocko
This has been posted as an RFC [1]. There was a general agreement for these patches. I hope I have addressed all the review feedback. Original cover: I have been chasing memory offlining not making progress recently. On the way I have noticed few weird decisions in the code. The migration itself i

Re: [PATCH] spi: lpspi: enable runtime pm for lpspi

2018-12-11 Thread Mark Brown
On Tue, Dec 04, 2018 at 06:19:48AM +, Clark Wang wrote: > From: Han Xu > > Enable the runtime power management for lpspi module. > > Signed-off-by: Han Xu > Reviewed-by: Frank Li > --- There's no signed-off-by from you here? These are required, please see submitting-patches.r

Re: [PATCH 21/30] hwmon: (da9052-hwmon) Use permission specific SENSOR[_DEVICE]_ATTR variants

2018-12-11 Thread Guenter Roeck
On 12/11/18 3:47 AM, Steve Twiss wrote: Hi Guenter, On 10 December 2018 22:09, Guenter Roeck wrote: Subject: [PATCH 21/30] hwmon: (da9052-hwmon) Use permission specific SENSOR[_DEVICE]_ATTR variants Use SENSOR[_DEVICE]_ATTR[_2]_{RO,RW,WO} to simplify the source code, to improve readbility, an

Re: use generic DMA mapping code in powerpc V4

2018-12-11 Thread Christian Zigotzky
Next step: 977706f9755d2d697aa6f45b4f9f0e07516efeda (powerpc/dma: remove dma_nommu_mmap_coherent) Result: The P5020 board boots and the PASEMI onboard ethernet works. -- Christian On 10 December 2018 at 4:54PM, Christian Zigotzky wrote: Next step: 64ecd2c160bbef31465c4d34efc0f076a2aad4df (pow

Re: [PATCH] spi: lpspi: Improve the stability of lpspi data transmission

2018-12-11 Thread Mark Brown
On Tue, Dec 04, 2018 at 06:22:15AM +, Clark Wang wrote: > Use SR_TDF to judge if need to send data, and SR_FCF is to judge if > transmission end and to replace the waiting after transmission end. > This waiting has no actual meaning, for module will set the FCF > flag at the real end. This doe

Re: [LKP] [xarray] 4e99d4e957: BUG:soft_lockup-CPU##stuck_for#s

2018-12-11 Thread Matthew Wilcox
On Tue, Dec 11, 2018 at 05:54:41PM +0800, kernel test robot wrote: > # To reproduce, > # 1) save job-script and this script (both are attached in 0day report email) > # 2) run this script with your compiled kernel and optional env > $INSTALL_MOD_PATH > > kernel=$1 > > initrds=( > /osimage/

Re: [PATCH] spi: lpspi: Fix CLK pin becomes low before one transfer

2018-12-11 Thread Mark Brown
On Tue, Dec 04, 2018 at 06:23:19AM +, Clark Wang wrote: > Remove Reset operation in fsl_lpspi_config(). This RST may cause both CLK > and CS pins go from high to low level under cs-gpio mode. > Add fsl_lpspi_reset() function after one message transfer to clear all > flags in use. This doesn't

Re: [PATCH 2/2] swap: Deal with PTE mapped THP when unuse PTE

2018-12-11 Thread William Kucharski
> --- > mm/swapfile.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/mm/swapfile.c b/mm/swapfile.c > index 7464d0a92869..9e6da494781f 100644 > --- a/mm/swapfile.c > +++ b/mm/swapfile.c > @@ -1921,10 +1921,8 @@ static int unuse_pte_range(struct vm_area_struct *vma, >

Re: kvm: RDTSCP on AMD

2018-12-11 Thread Daniel P . Berrangé
On Tue, Dec 11, 2018 at 09:55:46AM -0200, Eduardo Habkost wrote: > On Tue, Dec 11, 2018 at 10:38:39AM +, Daniel P. Berrangé wrote: > > On Mon, Dec 10, 2018 at 06:08:43PM -0200, Eduardo Habkost wrote: > > > On Mon, Dec 10, 2018 at 08:42:58PM +0100, Borislav Petkov wrote: > > > > On Mon, Dec 10,

[PATCH] clk: tegra: fix SMP build

2018-12-11 Thread Arnd Bergmann
When CONFIG_SMP is disabled, the tegra clk driver now fails to build: drivers/clk/tegra/clk-tegra30.c: In function 'tegra30_cpu_rail_off_ready': drivers/clk/tegra/clk-tegra30.c:1151:19: error: implicit declaration of function 'tegra_pmc_cpu_is_powered'; did you mean 'tegra_powergate_is_powered'?

Re: [PATCH] ARM: dts: at91: sama5d2 Xplained: add QSPI0 + SPI NOR memory nodes

2018-12-11 Thread Alexandre Belloni
On 11/12/2018 12:32:40+, tudor.amba...@microchip.com wrote: > Hi, Alexandre, > > On 12/10/2018 11:35 PM, Alexandre Belloni wrote: > > Hi, > > > > On 10/12/2018 17:15:29+, tudor.amba...@microchip.com wrote: > >> From: Cyrille Pitchen > >> > >> This patch configures the QSPI0 controller pi

[PATCH 2/3] mm, thp, proc: report THP eligibility for each vma

2018-12-11 Thread Michal Hocko
From: Michal Hocko Userspace falls short when trying to find out whether a specific memory range is eligible for THP. There are usecases that would like to know that http://lkml.kernel.org/r/alpine.deb.2.21.1809251248450.50...@chino.kir.corp.google.com : This is used to identify heap mappings tha

[PATCH 0/3] THP eligibility reporting via proc

2018-12-11 Thread Michal Hocko
Hi, I've posted this as an RFC [1] and there didn't seem to be any pushback so I am posting it for inclusion. If there are any concerns, please speak up. Original cover: This series of three patches aims at making THP eligibility reporting much more robust and long term sustainable. The trigger fo

Re: [PATCH] Revert "firmware: dmi_scan: Use lowercase letters for UUID"

2018-12-11 Thread Peter Korsgaard
> "Jean" == Jean Delvare writes: > On Tue, 2018-12-11 at 13:06 +0100, Peter Korsgaard wrote: >> > > > > > "Peter" == Peter Korsgaard writes: >> >> Hi Jean, >> >> >> Look, you can imagine that I was perfectly aware of what I was doing >> >> when I made that change, and that I pondere

[PATCH 1/3] mm, proc: be more verbose about unstable VMA flags in /proc//smaps

2018-12-11 Thread Michal Hocko
From: Michal Hocko Even though vma flags exported via /proc//smaps are explicitly documented to be not guaranteed for future compatibility the warning doesn't go far enough because it doesn't mention semantic changes to those flags. And they are important as well because these flags are a deep im

[PATCH 3/3] mm, proc: report PR_SET_THP_DISABLE in proc

2018-12-11 Thread Michal Hocko
From: Michal Hocko David Rientjes has reported that 1860033237d4 ("mm: make PR_SET_THP_DISABLE immediately active") has changed the way how we report THPable VMAs to the userspace. Their monitoring tool is triggering false alarms on PR_SET_THP_DISABLE tasks because it considers an insufficient TH

Re: [PATCH v5 1/2] dt-bindings: clk: meson-g12a: Add G12A EE Clock Bindings

2018-12-11 Thread Jerome Brunet
On Thu, 2018-11-29 at 21:41 +0800, Jian Hu wrote: > Add new clock controller compatible and dt-bingdings headers > for the Everything-Else domain of the g12a SoC > > Signed-off-by: Jian Hu > --- > .../bindings/clock/amlogic,gxbb-clkc.txt | 1 + > include/dt-bindings/clock/g12a-clkc.h

Re: [GIT PULL] Qualcomm Driver updates for 4.21 - Part 2

2018-12-11 Thread Andy Gross
On Mon, Dec 10, 2018 at 11:36:48PM +0200, Stanimir Varbanov wrote: > > > On 10.12.18 г. 21:05 ч., Andy Gross wrote: > >On Mon, Dec 10, 2018 at 02:20:47PM +0200, Stanimir Varbanov wrote: > >>Hi Andy, > >> > >>On 12/8/18 7:13 AM, Andy Gross wrote: > >>>The following changes since commit > >>>b601f

Re: [PATCH] ARM: dts: at91: sama5d2 Xplained: add QSPI0 + SPI NOR memory nodes

2018-12-11 Thread Boris Brezillon
On Mon, 10 Dec 2018 17:15:29 + wrote: > From: Cyrille Pitchen > > This patch configures the QSPI0 controller pin muxing and declares > a jedec,spi-nor memory. > > sama5d2 Xplained RevB and RevC use the Macronix MX25L25673G flash > memory which advertises a maximum frequency of 80MHz for Qu

Re: [PATCHv2 2/4] PCI: dwc: fix 4GiB outbound window size truncated to zero issue

2018-12-11 Thread Lorenzo Pieralisi
On Thu, Dec 06, 2018 at 01:25:17AM +, Z.q. Hou wrote: > Hi Lorenzo, > > Thanks a lot for your comments! > > > -Original Message- > > From: Lorenzo Pieralisi > > Sent: 2018??12??6?? 0:02 > > To: Z.q. Hou > > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > > bhelg...@go

Re: [RFC v3 11/19] kunit: add Python libraries for handing KUnit config and kernel

2018-12-11 Thread Steven Rostedt
On Tue, 11 Dec 2018 15:09:26 +0100 Petr Mladek wrote: > > We have liburcu already, which is good. The main sticking points are: > > > > - printk has started adding a lot of %pX enhancements which printf > >obviously doesn't know about. > > I wonder how big problem it is and if it is wor

Re: [PATCH] irq/irq_sim: store multiple interrupt offsets in a bitmap

2018-12-11 Thread Marc Zyngier
On 11/12/2018 14:02, Bartosz Golaszewski wrote: > pt., 9 lis 2018 o 18:21 Bartosz Golaszewski napisał(a): >> >> Two threads can try to fire the irq_sim with different offsets and will >> end up fighting for the irq_work asignment. Thomas Gleixner suggested a >> solution based on a bitfield where w

Re: [PATCH 21/27] treewide: surround file paths in Kconfig files with double quotes

2018-12-11 Thread Ingo Molnar
* Masahiro Yamada wrote: > The Kconfig lexer supports special characters such as '.' and '/' in > the parameter context. In my understanding, the reason is just to > support bare file paths in the source statement. > > I do not see a good reason to complicate Kconfig for the room of > ambiguit

Re: [PATCH] kernel/hung_task.c: force ignore_loglevel before panic

2018-12-11 Thread Petr Mladek
On Tue 2018-12-11 01:16:10, Liu, Chuansheng wrote: > > From: Tetsuo Handa [mailto:penguin-ker...@i-love.sakura.ne.jp] > > On 2018/12/10 15:11, Sergey Senozhatsky wrote: > > > On (12/10/18 05:58), Liu, Chuansheng wrote: > > >>> On (12/10/18 05:40), Liu, Chuansheng wrote: > > @@ -130,6 +130,13 @

Re: [PATCH] ARM: dts: at91: sama5d2 Xplained: add QSPI0 + SPI NOR memory nodes

2018-12-11 Thread Ludovic Desroches
On Tue, Dec 11, 2018 at 03:40:33PM +0100, Boris Brezillon wrote: > On Mon, 10 Dec 2018 17:15:29 + > wrote: > > > From: Cyrille Pitchen > > > > This patch configures the QSPI0 controller pin muxing and declares > > a jedec,spi-nor memory. > > > > sama5d2 Xplained RevB and RevC use the Macro

Re: [PATCH v10 10/15] sched: Introduce a sysctl for Energy Aware Scheduling

2018-12-11 Thread Quentin Perret
Hi Ingo, On Tuesday 11 Dec 2018 at 15:15:09 (+0100), Ingo Molnar wrote: > > * Quentin Perret wrote: > > > In its current state, Energy Aware Scheduling (EAS) starts automatically > > on asymmetric platforms having an Energy Model (EM). However, there are > > users who want to have an EM (for th

Re: [PATCH] Linux: Implement membarrier function

2018-12-11 Thread Paul E. McKenney
On Mon, Dec 10, 2018 at 10:42:25PM -0800, David Goldblatt wrote: > Hi Paul, thank you for thinking about all this. > > I think the modelling you suggest captures most of the algorithms I > would want to write. I think it's slightly too weak, though, to > implement the model suggested in P1202R0[1]

Re: [PATCH] ARM: dts: at91: sama5d2 Xplained: add QSPI0 + SPI NOR memory nodes

2018-12-11 Thread Ludovic Desroches
On Tue, Dec 11, 2018 at 03:35:45PM +0100, Alexandre Belloni wrote: > On 11/12/2018 12:32:40+, tudor.amba...@microchip.com wrote: > > Hi, Alexandre, > > > > On 12/10/2018 11:35 PM, Alexandre Belloni wrote: > > > Hi, > > > > > > On 10/12/2018 17:15:29+, tudor.amba...@microchip.com wrote: >

Re: [PATCH] ARM: dts: at91: sama5d2 Xplained: add QSPI0 + SPI NOR memory nodes

2018-12-11 Thread Tudor.Ambarus
Hi, Boris, On 12/11/2018 04:40 PM, Boris Brezillon wrote: > On Mon, 10 Dec 2018 17:15:29 + > wrote: > >> From: Cyrille Pitchen >> >> This patch configures the QSPI0 controller pin muxing and declares >> a jedec,spi-nor memory. >> >> sama5d2 Xplained RevB and RevC use the Macronix MX25L25673

Re: [RFC PATCH v3 0/4] x86: Add exception fixup for SGX ENCLU

2018-12-11 Thread Dr. Greg
On Mon, Dec 10, 2018 at 03:24:50PM -0800, Josh Triplett wrote: Good morning to everyone, I hope the week is progressing well. > On Mon, Dec 10, 2018 at 03:21:37PM -0800, Sean Christopherson wrote: > > At that point I realized it's a hell of a lot easier to simply provide > > an IOCTL via /dev/sgx

Re: [PATCH 1/6] driver core: Introduce device_iommu_mapped() function

2018-12-11 Thread Sergei Shtylyov
Hello! On 12/11/2018 04:43 PM, Joerg Roedel wrote: > From: Joerg Roedel > > Some places in the kernel check the iommu_group pointer in > 'struct device' in order to find ot whether a device is > mapped by an IOMMU. > > This is not good way to make this check, as the pointer will > be moved to

Re: [RFC PATCH v3 0/4] x86: Add exception fixup for SGX ENCLU

2018-12-11 Thread Sean Christopherson
On Tue, Dec 11, 2018 at 08:53:39AM -0600, Dr. Greg wrote: > On Mon, Dec 10, 2018 at 03:24:50PM -0800, Josh Triplett wrote: > > Good morning to everyone, I hope the week is progressing well. > > > On Mon, Dec 10, 2018 at 03:21:37PM -0800, Sean Christopherson wrote: > > > At that point I realized i

Re: [PATCH v2 4/7] x86/kvm/hyper-v: Introduce KVM_GET_SUPPORTED_HV_CPUID

2018-12-11 Thread Vitaly Kuznetsov
Roman Kagan writes: > On Tue, Dec 11, 2018 at 02:28:14PM +0100, Vitaly Kuznetsov wrote: >> Roman Kagan writes: >> >> > On Mon, Dec 10, 2018 at 06:21:56PM +0100, Vitaly Kuznetsov wrote: >> >> >> + >> >> +Currently, the following list of CPUID leaves are returned: >> >> + HYPERV_CPUID_VENDOR_AND

Re: [PATCH v10 04/15] PM / EM: Expose the Energy Model in sysfs

2018-12-11 Thread Quentin Perret
On Tuesday 11 Dec 2018 at 15:18:28 (+0100), Ingo Molnar wrote: > > * Quentin Perret wrote: > > > Expose the Energy Model (read-only) of all performance domains in sysfs > > for convenience. To do so, add a kobject to the CPU subsystem under the > > umbrella of which a kobject for each performanc

[PATCH 2/4] iommu: Consolitate ->add/remove_device() calls

2018-12-11 Thread Joerg Roedel
From: Joerg Roedel Put them into separate functions and call those where the plain ops have been called before. Signed-off-by: Joerg Roedel --- drivers/iommu/iommu.c | 51 +-- include/linux/iommu.h | 3 +++ 2 files changed, 28 insertions(+), 26 deletion

[PATCH 4/4] ACPI/IORT: Don't call iommu_ops->add_device directly

2018-12-11 Thread Joerg Roedel
From: Joerg Roedel Make sure to invoke this call-back through the proper function of the IOMMU-API. Signed-off-by: Joerg Roedel --- drivers/acpi/arm64/iort.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c index 70f4

[PATCH 1/4] iommu/sysfs: Rename iommu_release_device()

2018-12-11 Thread Joerg Roedel
From: Joerg Roedel Remove the iommu_ prefix from the function and a few other static data structures so that the iommu_release_device name can be re-used in iommu core code. Signed-off-by: Joerg Roedel --- drivers/iommu/iommu-sysfs.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deleti

[PATCH 3/4] iommu/of: Don't call iommu_ops->add_device directly

2018-12-11 Thread Joerg Roedel
From: Joerg Roedel Make sure to invoke this call-back through the proper function of the IOMMU-API. Signed-off-by: Joerg Roedel --- drivers/iommu/of_iommu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/iommu/of_iommu.c b/drivers/iommu/of_iommu.c index c5dd6

[PATCH 0/4 v2] Consolidate iommu_ops->add/remove_device() calls

2018-12-11 Thread Joerg Roedel
Hi, here is the second version of the patch-set to wrap the invocation of iommu_ops->add/remove_device() into functions. The functions will do more setup stuff later when the the iommu-related pointers in 'struct device' are consolidated. Since version one this patch-set was rebased to v4.20-rc6

Re: [PATCH] clk: meson: axg-audio: fix input clock name

2018-12-11 Thread Neil Armstrong
On 11/12/2018 13:47, Jerome Brunet wrote: > The name of input clock is not aligned with the rest of the tree > Because of this, the audio peripheral clocks are orphaned. > > Fixes: 1222ab89328f ("clk: meson: axg-audio: use the clk input helper > function") > Signed-off-by: Jerome Brunet > --- >

Re: [PATCH v2 4/7] x86/kvm/hyper-v: Introduce KVM_GET_SUPPORTED_HV_CPUID

2018-12-11 Thread Roman Kagan
On Tue, Dec 11, 2018 at 04:04:01PM +0100, Vitaly Kuznetsov wrote: > Roman Kagan writes: > > > On Tue, Dec 11, 2018 at 02:28:14PM +0100, Vitaly Kuznetsov wrote: > >> Roman Kagan writes: > >> > >> > On Mon, Dec 10, 2018 at 06:21:56PM +0100, Vitaly Kuznetsov wrote: > >> > >> >> + > >> >> +Current

[PATCH v3] ksm: React on changing "sleep_millisecs" parameter faster

2018-12-11 Thread Kirill Tkhai
ksm thread unconditionally sleeps in ksm_scan_thread() after each iteration: schedule_timeout_interruptible( msecs_to_jiffies(ksm_thread_sleep_millisecs)) The timeout is configured in /sys/kernel/mm/ksm/sleep_millisecs. In case of user writes a big value by a mistake, and

Re: [PATCH v3] kbuild: Add support for DT binding schema checks

2018-12-11 Thread Rob Herring
On Mon, Dec 10, 2018 at 10:39 PM Masahiro Yamada wrote: > > Hi Rob, > > On Tue, Dec 11, 2018 at 5:50 AM Rob Herring wrote: > > > > This adds the build infrastructure for checking DT binding schema > > documents and validating dts files using the binding schema. > > > > Check DT binding schema doc

Re: [PATCH] mm, memcg: fix reclaim deadlock with writeback

2018-12-11 Thread Kirill A. Shutemov
On Tue, Dec 11, 2018 at 02:26:45PM +0100, Michal Hocko wrote: > From: Michal Hocko > > Liu Bo has experienced a deadlock between memcg (legacy) reclaim and the > ext4 writeback > task1: > [] wait_on_page_bit+0x82/0xa0 > [] shrink_page_list+0x907/0x960 > [] shrink_inactive_list+0x2c7/0x680 > [] sh

[PATCH v2 4/8] regulator: axp20x: add software based soft_start for AXP209 LDO3

2018-12-11 Thread Priit Laes
From: Olliver Schinagl In the past, there have been words on various lists that if LDO3 is disabled in u-boot, but enabled in the DTS, the axp209 driver would fail to continue/hang. Several enable/disable patches have been issues to devicetree's in both the kernel and u-boot to address this issue

[PATCH v2 1/8] mfd: axp20x: name voltage ramping define properly

2018-12-11 Thread Priit Laes
From: Olliver Schinagl The current axp20x names the ramping register 'scal' which probably means scaling. Since the register really has nothing to do with scaling, but really is the voltage ramp we rename it appropriately. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes Acked-for-MFD

[PATCH v2 5/8] dt-bindings: mfd: axp20x: Add software based soft_start for AXP209 LDO3

2018-12-11 Thread Priit Laes
From: Olliver Schinagl In the past, there have been words on various lists that if LDO3 is disabled in u-boot, but enabled in the DTS, the axp209 driver would fail to continue/hang. Several enable/disable patches have been issues to devicetree's in both the kernel and u-boot to address this issue

[PATCH v2 8/8] mfd: axp20x: use explicit bit defines

2018-12-11 Thread Priit Laes
From: Olliver Schinagl The AXP20X_OFF define is an actual specific bit, define it as such. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes Acked-for-MFD-by: Lee Jones --- drivers/mfd/axp20x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/axp20x.c b

[PATCH v2 6/8] regulator: dts: enable soft-start and ramp delay for the OLinuXino Lime2

2018-12-11 Thread Priit Laes
From: Olliver Schinagl The OLinuXino Lime2 has a big capacitor on its LDO3 output. It is actually too large, causing the PMIC to shutdown when toggling the LDO3. By enabling soft-start and ramp delay we increase the time for the capacitor to charge lowering the current drain on the power regulat

[PATCH v2 3/8] dt-bindings: mfd: axp20x: add support for regulator-ramp-delay for AXP209

2018-12-11 Thread Priit Laes
From: Olliver Schinagl The AXP209 supports ramping up voltages on several regulators such as DCDC2 and LDO3, therefore we can use the standard 'regulator-ramp-delay' property for those 2 regulators. Note that the voltage ramp only works when the regulator is already enabled. E.g. when going from

[PATCH v2 7/8] mfd: axp20x: Clean up included headers

2018-12-11 Thread Priit Laes
From: Olliver Schinagl Add the bitops.h header as we need it, alphabetize header order. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes Acked-for-MFD-by: Lee Jones --- drivers/mfd/axp20x.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/mfd/a

Re: [PATCH v13 00/25] kasan: add software tag-based mode for arm64

2018-12-11 Thread Will Deacon
Hi Andrey, On Thu, Dec 06, 2018 at 01:24:18PM +0100, Andrey Konovalov wrote: > This patchset adds a new software tag-based mode to KASAN [1]. > (Initially this mode was called KHWASAN, but it got renamed, > see the naming rationale at the end of this section). > > The plan is to implement HWASan

Re: [PATCH 1/6] driver core: Introduce device_iommu_mapped() function

2018-12-11 Thread Joerg Roedel
On Tue, Dec 11, 2018 at 05:59:33PM +0300, Sergei Shtylyov wrote: > > +static inline bool device_iommu_mapped(struct device *dev) > > +{ > > + return (dev->iommu_group != NULL); > >You know that parens are unnecessary here, right? :-) Yes, I know, but it feels incomplete to me without them :

[PATCH v2 2/8] regulator: axp20x: add support for set_ramp_delay for AXP209

2018-12-11 Thread Priit Laes
From: Olliver Schinagl The AXP209 supports ramping up voltages on several regulators such as DCDC2 and LDO3. This patch adds preliminary support for the regulator-ramp-delay property for these 2 regulators. Note that the voltage ramp only works when regulator is already enabled. E.g. when going

[PATCH v2 0/8] regulator: axp20x: Stop AXP209 from crashing when enabling LDO3

2018-12-11 Thread Priit Laes
This is a second edition of a series that implements voltage ramping for AXP209 DCDC2 and LDO3 regulators and software based soft-start for AXP209 LDO3 regulator. Both features are needed to work around a PMIC shutdown when toggling LDO3 on certain boards with high capacitance on the LDO3 output.

Re: [PATCH V3 1/2] dt-bindings: iio: light: isl29018: update power supply name

2018-12-11 Thread Rob Herring
On Mon, Dec 10, 2018 at 7:40 PM Anson Huang wrote: > > Hi, Rob > > Best Regards! > Anson Huang > > > -Original Message- > > From: Rob Herring [mailto:r...@kernel.org] > > Sent: 2018年12月11日 7:24 > > To: Anson Huang > > Cc: ji...@kernel.org; knaac...@gmx.de; l...@metafoo.de; > > pme...@pmee

Re: [PATCHv2 4/4] PCI: dwc: add prefetchable memory range support

2018-12-11 Thread Lorenzo Pieralisi
On Tue, Dec 11, 2018 at 10:21:08AM +, Z.q. Hou wrote: [...] > > > + */ > > > + if (pci->num_viewport < 2) { > > > + ret = of_property_read_u32(np, "num-viewport", > > > +&pci->num_viewport); > > > + if (ret || pci->num_viewport < 2) > > > +

Re: [PATCH v3] ksm: React on changing "sleep_millisecs" parameter faster

2018-12-11 Thread Cyrill Gorcunov
On Tue, Dec 11, 2018 at 06:11:25PM +0300, Kirill Tkhai wrote: > ksm thread unconditionally sleeps in ksm_scan_thread() > after each iteration: > > schedule_timeout_interruptible( > msecs_to_jiffies(ksm_thread_sleep_millisecs)) > > The timeout is configured in /sys/kernel/mm/ks

Re: [PATCH] sched/fair: move capacity_margin definition into #ifdef

2018-12-11 Thread Olof Johansson
On Mon, Dec 10, 2018 at 11:46 PM Vincent Guittot wrote: > > Hi Arnd, > > On Mon, 10 Dec 2018 at 22:01, Arnd Bergmann wrote: > > > > Marking the variable static showed that it's only used for > > SMP builds, as seen from this warning: > > > > kernel/sched/fair.c:119:21: error: 'capacity_margin' de

general protection fault in dst_dev_put (2)

2018-12-11 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:290974d43478 nfp: flower: ensure TCP flags can be placed i.. git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=1613270540 kernel config: https://syzkaller.appspot.com/x/.config?x=c8970c89a0efbb23 dashboa

[PATCH 1/2] vsprintf: Specify type for union val members

2018-12-11 Thread Thomas Preston
The vsscanf function uses implicit type casting to populate the long long integers in union val from the obsolete functions simple_strtol() and simple_strtoll(). However the new functions kstrtol() and kstrtoll() expect a pointer to the correct type, so we must be explicit about which type we are u

[PATCH 0/2] vsprintf Stop using obsolete simple_strtoul()

2018-12-11 Thread Thomas Preston
Hi, We've fixed a bug with sscanf(). When passing in a 16-digit hex-string like so: sscanf("fafafafa0b0b0b0b", "%8x%8x", &hi, &lo) The resulting value in hi is always 0. This is because vsscanf() uses the obsolete and broken functions simple_strtoul() and simple_strtoull(), which we have

[PATCH 2/2] vsprintf: Stop using obsolete simple_strtoul()

2018-12-11 Thread Thomas Preston
Stop using the obsolete functions simple_strtoul() and simple_strtoull(). Instead, we should use the improved kstrtol() and kstrtoll() functions. To do this, we must copy the current field into a null-terminated tmpstr and advance the variable `next` manually. The width of tmpstr has been chosen b

Re: [PATCH v2.2 24/34] dt-bindings: arm: Convert Rockchip board/soc bindings to json-schema

2018-12-11 Thread Rob Herring
On Mon, Dec 10, 2018 at 4:45 PM Heiko Stuebner wrote: > > From: Rob Herring > > Convert Rockchip SoC bindings to DT schema format using json-schema. > > Cc: Mark Rutland > Cc: Heiko Stuebner > Cc: devicet...@vger.kernel.org > Cc: linux-arm-ker...@lists.infradead.org > Cc: linux-rockc...@lists.i

[tip:locking/core] tools/lib/lockdep/tests: Display compiler warning and error messages

2018-12-11 Thread tip-bot for Bart Van Assche
Commit-ID: da087b2229618f78ecea5c203fed8ba2245de636 Gitweb: https://git.kernel.org/tip/da087b2229618f78ecea5c203fed8ba2245de636 Author: Bart Van Assche AuthorDate: Thu, 6 Dec 2018 17:11:25 -0800 Committer: Ingo Molnar CommitDate: Tue, 11 Dec 2018 14:54:47 +0100 tools/lib/lockdep/tests:

[tip:locking/core] locking/lockdep: Remove ::version from lock_class structure

2018-12-11 Thread tip-bot for Waiman Long
Commit-ID: 2421b7f3573babfe1673a5ffee1677a5013e6df1 Gitweb: https://git.kernel.org/tip/2421b7f3573babfe1673a5ffee1677a5013e6df1 Author: Waiman Long AuthorDate: Mon, 19 Nov 2018 13:55:10 -0500 Committer: Ingo Molnar CommitDate: Tue, 11 Dec 2018 14:54:46 +0100 locking/lockdep: Remove ::v

Re: [PATCH net-next] ieee802154: ca8210: fix possible u8 overflow in ca8210_rx_done

2018-12-11 Thread Alexander Aring
Hi Stefan, On Tue, Dec 11, 2018 at 09:26:37AM +0100, Stefan Schmidt wrote: > Hello Dave. > > On 11.12.18 07:01, David Miller wrote: > > From: YueHaibing > > Date: Tue, 11 Dec 2018 11:13:39 +0800 > > > >> gcc warning this: > >> > >> drivers/net/ieee802154/ca8210.c:730:10: warning: > >> comparis

[tip:locking/core] tools/lib/lockdep/tests: Fix shellcheck warnings

2018-12-11 Thread tip-bot for Bart Van Assche
Commit-ID: 7e9798871a9186cb831cf693d7ff58085384ccbd Gitweb: https://git.kernel.org/tip/7e9798871a9186cb831cf693d7ff58085384ccbd Author: Bart Van Assche AuthorDate: Thu, 6 Dec 2018 17:11:26 -0800 Committer: Ingo Molnar CommitDate: Tue, 11 Dec 2018 14:54:48 +0100 tools/lib/lockdep/tests:

Re: kvm: RDTSCP on AMD

2018-12-11 Thread Paolo Bonzini
On 11/12/18 12:55, Eduardo Habkost wrote: >> - Debian Jessie: 4.5 >> - Debian Stretch: 4.5 >> - RHEL-7: 3.10 >> - Ubuntu LTS (Xenial): 4.5 >> - OpenSUSE Leap 15: 4.12.14 >> >> So we can't require Linux 4.5 as a minimum version at this time. > I'd like us to take a step back and consider w

Re: [PATCH] printk: Remove print_prefix() calls with NULL buffer.

2018-12-11 Thread Petr Mladek
On Tue 2018-12-11 18:49:05, Tetsuo Handa wrote: > We can save lines/size by removing print_prefix() with buf == NULL. > This patch makes no functional change. > > Signed-off-by: Tetsuo Handa Nice clean up. It makes the code better readable. Acked-by: Petr Mladek Best Regards, Petr

[tip:locking/core] tools/lib/lockdep/tests: Improve testing accuracy

2018-12-11 Thread tip-bot for Bart Van Assche
Commit-ID: 5ecb8e94b494af0df8de4ca9b9ef88d87b30a9c1 Gitweb: https://git.kernel.org/tip/5ecb8e94b494af0df8de4ca9b9ef88d87b30a9c1 Author: Bart Van Assche AuthorDate: Thu, 6 Dec 2018 17:11:27 -0800 Committer: Ingo Molnar CommitDate: Tue, 11 Dec 2018 14:54:49 +0100 tools/lib/lockdep/tests:

[tip:locking/core] tools/lib/lockdep/tests: Run lockdep tests a second time under Valgrind

2018-12-11 Thread tip-bot for Bart Van Assche
Commit-ID: 2b28a8609ec9891e37607ae20688b4ab34f2778c Gitweb: https://git.kernel.org/tip/2b28a8609ec9891e37607ae20688b4ab34f2778c Author: Bart Van Assche AuthorDate: Thu, 6 Dec 2018 17:11:28 -0800 Committer: Ingo Molnar CommitDate: Tue, 11 Dec 2018 14:54:49 +0100 tools/lib/lockdep/tests:

[tip:locking/core] tools/lib/lockdep: Rename "trywlock" into "trywrlock"

2018-12-11 Thread tip-bot for Bart Van Assche
Commit-ID: 7f3c7952d111ac93573fb86f4d5aeff527a07fcc Gitweb: https://git.kernel.org/tip/7f3c7952d111ac93573fb86f4d5aeff527a07fcc Author: Bart Van Assche AuthorDate: Thu, 6 Dec 2018 17:11:29 -0800 Committer: Ingo Molnar CommitDate: Tue, 11 Dec 2018 14:54:50 +0100 tools/lib/lockdep: Renam

[tip:locking/core] tools/lib/lockdep: Add dummy print_irqtrace_events() implementation

2018-12-11 Thread tip-bot for Bart Van Assche
Commit-ID: ac862d9b2fd084b50ee7a332a35d8d8d3228ce09 Gitweb: https://git.kernel.org/tip/ac862d9b2fd084b50ee7a332a35d8d8d3228ce09 Author: Bart Van Assche AuthorDate: Thu, 6 Dec 2018 17:11:30 -0800 Committer: Ingo Molnar CommitDate: Tue, 11 Dec 2018 14:54:50 +0100 tools/lib/lockdep: Add d

[tip:locking/core] tools/lib/lockdep/tests: Test the lockdep_reset_lock() implementation

2018-12-11 Thread tip-bot for Bart Van Assche
Commit-ID: 886adbed7ac19352315e9f1dd880360c7544d25c Gitweb: https://git.kernel.org/tip/886adbed7ac19352315e9f1dd880360c7544d25c Author: Bart Van Assche AuthorDate: Thu, 6 Dec 2018 17:11:31 -0800 Committer: Ingo Molnar CommitDate: Tue, 11 Dec 2018 14:54:51 +0100 tools/lib/lockdep/tests:

Re: [PATCH v03] powerpc/mobility: Fix node detach/rename problem

2018-12-11 Thread Michael Bringmann
On 12/11/2018 07:29 AM, Michael Ellerman wrote: > Hi Michael, > > Please Cc the device tree folks on device tree patches, and also the > original author of the patch that added the code you're modifying. > > So I've added: > robh...@kernel.org > frowand.l...@gmail.com > devicet...@vger.k

[tip:locking/core] locking/lockdep: Declare local symbols static

2018-12-11 Thread tip-bot for Bart Van Assche
Commit-ID: 1431a5d2cfa18d7006d9b0e7ab4548d9bb19ce55 Gitweb: https://git.kernel.org/tip/1431a5d2cfa18d7006d9b0e7ab4548d9bb19ce55 Author: Bart Van Assche AuthorDate: Thu, 6 Dec 2018 17:11:32 -0800 Committer: Ingo Molnar CommitDate: Tue, 11 Dec 2018 14:54:51 +0100 locking/lockdep: Declare

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