Re: [linus:master] BUILD REGRESSION a2e5790d841658485d642196dbb0927303d6c22f

2018-02-08 Thread Peter Zijlstra
On Wed, Feb 07, 2018 at 11:43:37AM -0800, Linus Torvalds wrote: > On Wed, Feb 7, 2018 at 11:28 AM, Borislav Petkov wrote: > > On Wed, Feb 07, 2018 at 08:14:51PM +0100, Peter Zijlstra wrote: > >> Then someone went and wrecked it. > > > > Yeah, note says UD0 didn't eat a ModRM byte on old CPUs. But

Re: [PATCH v4] ARM: sun8i: h2+: add support for Banana Pi M2 Zero board

2018-02-08 Thread Icenowy Zheng
在 2018-02-08 17:00,Maxime Ripard 写道: On Tue, Feb 06, 2018 at 09:16:47PM +0800, Icenowy Zheng wrote: Banana Pi M2 Zero board is a H2+-based board by Sinovoip, with a form factor and GPIO holes similar to Raspberry Pi Zero. It features: - Allwinner H2+ SoC - Single-chip (16-bit) 512MiB DDR3 DRAM

Re: [PATCH 3/5] USB: serial: f81232: enable remote wakeup via RX/RI pin

2018-02-08 Thread Ji-Ze Hong (Peter Hong)
Hi Johan, Johan Hovold 於 2018/2/4 上午 09:46 寫道: On Thu, Feb 01, 2018 at 11:13:01AM +0800, Ji-Ze Hong (Peter Hong) wrote: Our USB-To-Serial support RI/ RX remote wakeup by Modem, Fax or other peripherals and we had tested it by following procedure with device_set_wakeup_enable() enabled:

[PATCH] trace-cmd: Make the build messages to show only file names

2018-02-08 Thread Vladislav Valtchev (VMware)
Currently, the typical trace-cmd build messages like "COMPILE " and "BUILD STATIC LIB " show file's full path, instead of just the file name, as it used to happen before the full support for out-of-tree builds. This simple patch makes the build messages to look exactly like in the past by

Re: [PATCH v2] ARM: dts: imx6ull: add Toradex Colibri iMX6ULL support

2018-02-08 Thread stefan
On 08.02.2018 08:47, Shawn Guo wrote: > On Tue, Feb 06, 2018 at 05:49:03PM +0100, Stefan Agner wrote: >> Add support for the Computer on Module Colibri iMX6ULL and its >> Bluetooth/Wifi variant along with the development/evaluation carrier >> board device trees. Follow the usual hierarchic include

Re: [RFC PATCH v2 1/5] dt-bindings: add bindings for USB physical connector

2018-02-08 Thread Andrzej Hajda
On 07.02.2018 22:43, Rob Herring wrote: > On Mon, Feb 05, 2018 at 10:06:35AM +0100, Andrzej Hajda wrote: >> On 05.02.2018 07:08, Rob Herring wrote: >>> On Wed, Jan 31, 2018 at 02:44:31PM +0100, Andrzej Hajda wrote: These bindings allow to describe most known standard USB connectors and

Re: [linux-sunxi] Re: [PATCH v4] ARM: sun8i: h2+: add support for Banana Pi M2 Zero board

2018-02-08 Thread Jernej Škrabec
Dne četrtek, 08. februar 2018 ob 10:15:35 CET je Icenowy Zheng napisal(a): > 在 2018-02-08 17:00,Maxime Ripard 写道: > > > On Tue, Feb 06, 2018 at 09:16:47PM +0800, Icenowy Zheng wrote: > >> Banana Pi M2 Zero board is a H2+-based board by Sinovoip, with a form > >> factor and GPIO holes similar to

Re: INFO: task hung in sync_blockdev

2018-02-08 Thread Jan Kara
On Wed 07-02-18 07:52:29, Andi Kleen wrote: > > #0: (>bd_mutex){+.+.}, at: [<40269370>] > > __blkdev_put+0xbc/0x7f0 fs/block_dev.c:1757 > > 1 lock held by blkid/19199: > > #0: (>bd_mutex){+.+.}, at: [] > > __blkdev_get+0x158/0x10e0 fs/block_dev.c:1439 > > #1:

Re: [PATCH 2/7] soc: davinci: new genpd driver

2018-02-08 Thread Sekhar Nori
On Wednesday 07 February 2018 07:15 PM, Bartosz Golaszewski wrote: > + /* > + * DaVinci always uses a single clock for power-management. We assume > + * it's the first one in the clocks property. > + */ > + clk = of_clk_get(dev->of_node, 0); > + if (IS_ERR(clk)) > +

[PATCH 2/3] arm64: dts: ls1043a: add cpu idle support

2018-02-08 Thread Ran Wang
From: Yuantian Tang Signed-off-by: Tang Yuantian --- arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi

Re: [PATCH] powerpc/fsl/dts: fix the i2c-mux compatible for t104xqds

2018-02-08 Thread Peter Rosin
[Adding some people whom seem relevant but did not get fingered by get_maintainer.pl] On 2017-08-03 14:59, Peter Rosin wrote: > The sanctioned compatible is "nxp,pca9547". Ping. Cheers, Peter > Signed-off-by: Peter Rosin > --- > arch/powerpc/boot/dts/fsl/t104xqds.dtsi | 2 +- > 1 file

[PATCH 3/3] arm64: dts: update the cpu idle node

2018-02-08 Thread Ran Wang
From: Yuantian Tang According to PSCI standard v0.2, for CPU_SUSPEND call, which is used by cpu idle framework, bit[16] of state parameter must be 0. So update bit[16] of property 'arm,psci-suspend-param', which is used as state parameter, to 0. Signed-off-by: Tang Yuantian ---

[PATCH 1/3] arm64: dts: ls1012a: add cpu idle support

2018-02-08 Thread Ran Wang
From: Yuantian Tang Signed-off-by: Tang Yuantian --- arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi index

Re: [PATCH 0/4] lightnvm: base 2.0 implementation

2018-02-08 Thread Javier Gonzalez
> On 5 Feb 2018, at 13.15, Matias Bjørling wrote: > > Hi, > > A couple of patches for 2.0 support for the lightnvm subsystem. They > form the basis for integrating 2.0 support. > > For the rest of the support, Javier has code that implements report > chunk and sets up the LBA format data

Re: [linus:master] BUILD REGRESSION a2e5790d841658485d642196dbb0927303d6c22f

2018-02-08 Thread Peter Zijlstra
On Thu, Feb 08, 2018 at 10:13:02AM +0100, Peter Zijlstra wrote: > _The_ problem is that new binutils cannot sanely decode any function > that has a WARN in (this very much includes perf annotate): > new: > > 16a0 : > 16a0: 48 89 f2mov%rsi,%rdx >

Re: [PATCH v1 1/2] drm/stm: ltdc: add non-alpha color formats

2018-02-08 Thread Benjamin Gaignard
2018-02-06 10:12 GMT+01:00 Yannick FERTRE : > Reviewed-by: Yannick Fertré > > > On 02/01/2018 11:42 AM, Philippe Cornu wrote: >> ltdc supports natively some color formats with alpha (like >> ARGB, ARGB1555, ARGB...). Related non-alpha formats are >> supported too (ARGB->XRGB,

Re: [PATCHv1 00/14] omapdrm: DSI command mode panel support

2018-02-08 Thread Pavel Machek
Hi! > I've also picked patches 7-12. It seems that part of the support made it to v4.16. Is it supposed to be complete? I still have these in my tree, and result works on Nokia N9. Is there any way I can help with the merge? Best regards,

Re: [PATCH v1 2/2] drm/stm: ltdc: remove non-alpha color formats on layer 2 for older hw

2018-02-08 Thread Benjamin Gaignard
2018-02-06 10:13 GMT+01:00 Yannick FERTRE : > Reviewed-by: Yannick Fertré > > > On 02/01/2018 11:42 AM, Philippe Cornu wrote: >> Hw older versions support non-alpha color formats derived >> from native alpha color formats only on the primary layer. >> For instance, RG16 native format without

Re: [linux-sunxi] Re: [PATCH v4] ARM: sun8i: h2+: add support for Banana Pi M2 Zero board

2018-02-08 Thread Chen-Yu Tsai
On Thu, Feb 8, 2018 at 5:28 PM, Jernej Škrabec wrote: > Dne četrtek, 08. februar 2018 ob 10:15:35 CET je Icenowy Zheng napisal(a): >> 在 2018-02-08 17:00,Maxime Ripard 写道: >> >> > On Tue, Feb 06, 2018 at 09:16:47PM +0800, Icenowy Zheng wrote: >> >> Banana Pi M2 Zero board is a H2+-based board by

[PATCH 1/2] media: ov5645: Fix write_reg return code

2018-02-08 Thread Todor Tomov
I2C transfer functions return number of successful operations (on success). Do not return the received positive return code but instead return 0 on success. The users of write_reg function already use this logic. Signed-off-by: Todor Tomov --- drivers/media/i2c/ov5645.c | 6 -- 1 file

[PATCH 2/2] media: ov5645: Improve mode finding function

2018-02-08 Thread Todor Tomov
Find the sensor mode by comparing the size of the requested image size and the sensor mode's image size. The distance between image sizes is the size in pixels of the non-overlapping regions between the requested size and the frame-specified size. This logic is borrowed from et8ek8 sensor driver.

Re: [PATCH] xen: Fix {set,clear}_foreign_p2m_mapping on autotranslating guests

2018-02-08 Thread Juergen Gross
On 07/02/18 21:47, Simon Gaiser wrote: > Commit 82616f9599a7 ("xen: remove tests for pvh mode in pure pv paths") > removed the check for autotranslation from {set,clear}_foreign_p2m_mapping > but those are called by grant-table.c also on PVH/HVM guests. > > Cc: # 4.14 > Fixes: 82616f9599a7

Re: [PATCH v4] ACPI: Parse entire table as a term_list for Dell XPS 9570 and Precision M5530

2018-02-08 Thread Rafael J. Wysocki
On Monday, February 5, 2018 6:19:24 AM CET Kai-Heng Feng wrote: > The i2c touchpad on Dell XPS 9570 and Precision M5530 doesn't work out > of box. > > The touchpad relies on its _INI method to update its _HID value from > to SYNA2393. > Also, the _STA relies on value of I2CN to report

Re: [PATCH 0/4] lightnvm: base 2.0 implementation

2018-02-08 Thread Matias Bjørling
On 02/08/2018 10:35 AM, Javier Gonzalez wrote: On 5 Feb 2018, at 13.15, Matias Bjørling wrote: Hi, A couple of patches for 2.0 support for the lightnvm subsystem. They form the basis for integrating 2.0 support. For the rest of the support, Javier has code that implements report chunk and

Re: [PATCH V2] lightnvm: pblk: add padding distribution sysfs attribute

2018-02-08 Thread Matias Bjørling
On 02/06/2018 12:54 PM, hans.ml.holmb...@owltronix.com wrote: From: Hans Holmberg When pblk receives a sync, all data up to that point in the write buffer must be comitted to persistent storage, and as flash memory comes with a minimal write size there is a significant cost involved both in

[PATCH] drm/amdgpu: add new device to use atpx quirk

2018-02-08 Thread Kai-Heng Feng
The affected system (0x0813) is pretty similar to another one (0x0812), it also needs to use ATPX power control. Signed-off-by: Kai-Heng Feng --- drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c

Re: [linus:master] BUILD REGRESSION a2e5790d841658485d642196dbb0927303d6c22f

2018-02-08 Thread Borislav Petkov
On Thu, Feb 08, 2018 at 10:13:02AM +0100, Peter Zijlstra wrote: > diff --git a/arch/x86/include/asm/bug.h b/arch/x86/include/asm/bug.h > index 34d99af43994..f0d5b4a1512d 100644 > --- a/arch/x86/include/asm/bug.h > +++ b/arch/x86/include/asm/bug.h > @@ -12,16 +12,21 @@ > * (binutils knows about

Re: [RFC v2 PATCH 6/7] x86/entry: get rid of ALLOC_PT_GPREGS_ON_STACK and SAVE_AND_CLEAR_REGS

2018-02-08 Thread Ingo Molnar
* Dominik Brodowski wrote: > On Wed, Feb 07, 2018 at 12:44:41PM -0800, Linus Torvalds wrote: > > On Wed, Feb 7, 2018 at 12:15 PM, Dominik Brodowski > > wrote: > > > > > > Note: The testb $3, CS(%rsp) instruction in idtentry() does not need > > > modification. Previously %rsp was manually

RE: [linus:master] BUILD REGRESSION a2e5790d841658485d642196dbb0927303d6c22f

2018-02-08 Thread David Laight
From: Peter Zijlstra > Sent: 08 February 2018 09:13 ... > > > Yeah, note says UD0 didn't eat a ModRM byte on old CPUs. But then that > > > changed too. Fun stuff changing insn encoding underway. > > > > > > So if we opt for adding a ModRM byte, could a 0x90 NOP work so that it > > > doesn't shit

Re: [PATCH] ACPI: Parse entire table as a term_list for Dell XPS 9570 and Precision M5530

2018-02-08 Thread Rafael J. Wysocki
On Tuesday, January 30, 2018 9:09:04 PM CET Moore, Robert wrote: > > > -Original Message- > > From: mario.limoncie...@dell.com [mailto:mario.limoncie...@dell.com] > > Sent: Tuesday, January 30, 2018 11:03 AM > > To: Schmauss, Erik ; andy.shevche...@gmail.com; > >

Re: [PATCH] ACPI / CPPC: Use 64-bit arithmetic instead of 32-bit

2018-02-08 Thread Rafael J. Wysocki
On Wednesday, February 7, 2018 12:36:17 AM CET Gustavo A. R. Silva wrote: > Add suffix ULL to constant 500 in order to give the compiler complete > information about the proper arithmetic to use. Notice that this > constant is used in a context that expects an expression of type > u64 (64 bits,

Re: [PATCH] ACPI / video: Use true for boolean value

2018-02-08 Thread Rafael J. Wysocki
On Tuesday, January 23, 2018 4:59:20 PM CET Gustavo A. R. Silva wrote: > Assign true or false to boolean variables instead of an integer value. > > This issue was detected with the help of Coccinelle. > > Signed-off-by: Gustavo A. R. Silva > --- > drivers/acpi/acpi_video.c | 2 +- > 1 file

Re: [PATCH] acpi: osl: Replace GFP_ATOMIC with GFP_KERNEL in acpi_os_execute

2018-02-08 Thread Rafael J. Wysocki
On Thursday, January 25, 2018 11:13:41 AM CET Jia-Ju Bai wrote: > After checking all possible call chains to acpi_os_execute here, > my tool finds that acpi_os_execute is never called in atomic context. > And acpi_os_execute calls acpi_debugger_create_thread > which calls mutex_lock, > thus it

Re: [PATCH] spi: bcm2835aux: use 64-bit arithmetic instead of 32-bit

2018-02-08 Thread Ard Biesheuvel
On 7 February 2018 at 16:00, Gustavo A. R. Silva wrote: > Add suffix ULL to constant 9 in order to give the compiler complete > information about the proper arithmetic to use. Notice that this > constant is used in a context that expects an expression of type > unsigned long long (64 bits,

Re: possible deadlock in rtnl_lock (4)

2018-02-08 Thread Xin Long
On Thu, Feb 8, 2018 at 6:58 AM, syzbot wrote: > Hello, > > syzbot hit the following crash on upstream commit > a2e5790d841658485d642196dbb0927303d6c22f (Wed Feb 7 06:15:42 2018 +) > Merge branch 'akpm' (patches from Andrew) > > So far this crash happened 632 times on >

Re: [PATCH 2/7] soc: davinci: new genpd driver

2018-02-08 Thread Bartosz Golaszewski
2018-02-08 10:30 GMT+01:00 Sekhar Nori : > On Wednesday 07 February 2018 07:15 PM, Bartosz Golaszewski wrote: >> + /* >> + * DaVinci always uses a single clock for power-management. We assume >> + * it's the first one in the clocks property. >> + */ >> + clk =

Re: [PATCH v3] ACPI: Force I2C to be selected as a built-in module

2018-02-08 Thread Rafael J. Wysocki
On Tuesday, February 6, 2018 3:25:58 PM CET Sinan Kaya wrote: > Hi Rafael, > > On 1/25/2018 12:36 PM, Randy Dunlap wrote: > > On 01/25/2018 08:25 AM, Rafael J. Wysocki wrote: > >> On Thu, Jan 25, 2018 at 4:43 PM, Sinan Kaya wrote: > >>> From: Auger Eric > >>> > >>> If I2C is built as a module,

Re: [PATCH 1/2] ACPI: processor_perflib: Do not send _PPC change notification if not ready

2018-02-08 Thread Rafael J. Wysocki
On Monday, January 29, 2018 3:26:46 AM CET Yu Chen wrote: > The following warning was triggered after resumed from S3 - > if all the nonboot CPUs were put offline before suspend: > > [ 1840.329515] unchecked MSR access error: RDMSR from 0x771 at rIP: > 0x86061e3a

Re: [PATCH] ACPI / battery: Add quirk for Asus UX360UA and UX410UAK

2018-02-08 Thread Rafael J. Wysocki
On Monday, January 29, 2018 6:40:36 AM CET Kai-Heng Feng wrote: > Same issue as other Asus laptops, ACPI incorrectly reports discharging > when battery is full and AC is plugged. > > Use the same battery quirk can workaround the issue. > > BugLink: https://bugs.launchpad.net/bugs/1661876 >

Re: [PATCH v5 04/16] media: rkisp1: add Rockchip MIPI Synopsys DPHY driver

2018-02-08 Thread Jacob Chen
Hi hans, 2018-02-06 21:21 GMT+08:00 Hans Verkuil : > On 12/29/17 08:52, Shunqian Zheng wrote: >> From: Jacob Chen >> >> This commit adds a subdev driver for Rockchip MIPI Synopsys DPHY driver >> >> Signed-off-by: Jacob Chen >> Signed-off-by: Shunqian Zheng >> Signed-off-by: Tomasz Figa >> ---

Re: [PATCH] ACPI / processor_idle: Set default C1 state description

2018-02-08 Thread Rafael J. Wysocki
On Monday, January 29, 2018 9:22:49 PM CET Yazen Ghannam wrote: > From: Yazen Ghannam > > The acpi_idle driver will default to ACPI_CSTATE_HALT for C1 if a _CST > object for C1 is not defined. However, the description will not be set, > so users will see "" when reading the description from

Re: [PATCH v4] ACPI / tables: Add IORT to injectable table list

2018-02-08 Thread Rafael J. Wysocki
On Tuesday, February 6, 2018 8:18:02 AM CET Hanjun Guo wrote: > On 2018/2/6 14:37, Yang Shunyong wrote: > > Loading IORT table from initrd can be used to fix severe firmware > > IORT defects temporarily before platform/BIOS vendor releases an > > upgraded BIOS binary. > > > > Moreover, it is very

Re: [PATCH RFC] x86: KASAN: Sanitize unauthorized irq stack access

2018-02-08 Thread Kirill Tkhai
On 07.02.2018 21:38, Dave Hansen wrote: > On 02/07/2018 08:14 AM, Kirill Tkhai wrote: >> Sometimes it is possible to meet a situation, >> when irq stack is corrupted, while innocent >> callback function is being executed. This may >> happen because of crappy drivers irq handlers, >> when they

Re: [git pull] Input updates for v4.15-rc8

2018-02-08 Thread Jiri Slaby
On 01/19/2018, 06:42 PM, Dmitry Torokhov wrote: > Please pull from: > > git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus > > to receive updates for the input subsystem. You will get: > ... > - touchpad on Lenovo T640p is switched over to SMbus/RMI ... > 王振杰 (1): >

Re: [PATCH v3 01/11] regulator: core: add API to get voltage constraints

2018-02-08 Thread Laxman Dewangan
On Wednesday 07 February 2018 09:07 PM, Mark Brown wrote: On Wed, Feb 07, 2018 at 05:20:45PM +0200, Peter De Schrijver wrote: On Wed, Feb 07, 2018 at 03:01:55PM +, Mark Brown wrote: I can't really tell what you're saying here. If the driver needs to know if it can set the a given

[PATCH v5] ARM: sun8i: h2+: add support for Banana Pi M2 Zero board

2018-02-08 Thread Icenowy Zheng
Banana Pi M2 Zero board is a H2+-based board by Sinovoip, with a form factor and GPIO holes similar to Raspberry Pi Zero. It features: - Allwinner H2+ SoC - Single-chip (16-bit) 512MiB DDR3 DRAM - Ampak AP6212 Wi-Fi/Bluetooth module - MicroSD slot - Two MicroUSB Type-B ports (one can only be used

[PATCH v28 1/4] mm: support reporting free page blocks

2018-02-08 Thread Wei Wang
This patch adds support to walk through the free page blocks in the system and report them via a callback function. Some page blocks may leave the free list after zone->lock is released, so it is the caller's responsibility to either detect or prevent the use of such pages. One use example of

[PATCH v28 0/4] Virtio-balloon: support free page reporting

2018-02-08 Thread Wei Wang
This patch series is separated from the previous "Virtio-balloon Enhancement" series. The new feature, VIRTIO_BALLOON_F_FREE_PAGE_HINT, implemented by this series enables the virtio-balloon driver to report hints of guest free pages to the host. It can be used to accelerate live migration of

[PATCH v28 2/4] virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT

2018-02-08 Thread Wei Wang
Negotiation of the VIRTIO_BALLOON_F_FREE_PAGE_HINT feature indicates the support of reporting hints of guest free pages to host via virtio-balloon. Host requests the guest to report free page hints by sending a new cmd id to the guest via the free_page_report_cmd_id configuration register. When

[PATCH v28 3/4] mm/page_poison: add a function to expose page poison val to kernel modules

2018-02-08 Thread Wei Wang
Move the PAGE_POISON value to page_poison.c and add a function to enable callers from a kernel module to get the poison value if the page poisoning feature is in use. This also avoids callers directly checking PAGE_POISON regardless of whether the feature is enabled. Signed-off-by: Wei Wang Cc:

[PATCH v28 4/4] virtio-balloon: VIRTIO_BALLOON_F_PAGE_POISON

2018-02-08 Thread Wei Wang
The VIRTIO_BALLOON_F_PAGE_POISON feature bit is used to indicate if the guest is using page poisoning. Guest writes to the poison_val config field to tell host about the page poisoning value in use. Signed-off-by: Wei Wang Suggested-by: Michael S. Tsirkin Cc: Michael S. Tsirkin Cc: Michal

[PATCH] perf sched map: re-annotate shortname if thread comm changed

2018-02-08 Thread changbin . du
From: Changbin Du This is to show the real name of thread that created via fork-exec. See below example for shortname *A0*. $ sudo ./perf sched map *A0 80393.050639 secs A0 => perf:22368 *. A0 80393.050748 secs . => swapper:0 . *.80393.050887 secs

[GIT PULL] CRIS for 4.16

2018-02-08 Thread Jesper Nilsson
Hi Linus! Please pull the below for the only change I had in the CRIS tree for 4.16. It looks as there was som breakage in 4.15-rc3 for CRIS, which I'll send as a separate pull-request based on 4.15 asap. The following changes since commit bebc6082da0a9f5d47a1ea2edc099bf671058bd4: Linux 4.14

Re: [PATCH] acpi: osl: Replace GFP_ATOMIC with GFP_KERNEL in acpi_os_execute

2018-02-08 Thread Chris Wilson
Quoting Rafael J. Wysocki (2018-02-08 09:51:41) > On Thursday, January 25, 2018 11:13:41 AM CET Jia-Ju Bai wrote: > > After checking all possible call chains to acpi_os_execute here, > > my tool finds that acpi_os_execute is never called in atomic context. > > And acpi_os_execute calls

Re: [PATCH 2/2] cpufreq: intel_pstate: enable HWP after resumed

2018-02-08 Thread Rafael J. Wysocki
On Monday, January 29, 2018 3:27:57 AM CET Yu Chen wrote: > When maxcpus=1 is appended the BP is responsible > for re-enabling the HWP - because currently only > the APs invoke intel_pstate_hwp_enable() during > their online process - which might put the system > into unstable state after resume.

Re: [linus:master] BUILD REGRESSION a2e5790d841658485d642196dbb0927303d6c22f

2018-02-08 Thread Peter Zijlstra
On Thu, Feb 08, 2018 at 09:47:53AM +, David Laight wrote: > From: Peter Zijlstra > > I went through the register opcodes and matched it against the ModR/M > > encoding, and the best option I've found so far is using 0xd6 as the > > next byte. > > Wouldn't 0xc3 work as well. > A retq is

Re: [PATCH 2/3] x86: fix swsusp_arch_resume prototype

2018-02-08 Thread Rafael J. Wysocki
On Friday, February 2, 2018 3:56:18 PM CET Arnd Bergmann wrote: > The declaration for swsusp_arch_resume marks it as 'asmlinkage', > but the definition in x86-32 does not, and it fails to include > the header with the declaration. This leads to a warning when > building with

Re: [PATCH] cpufreq: remove at32ap-cpufreq

2018-02-08 Thread Rafael J. Wysocki
On Friday, January 19, 2018 6:44:41 AM CET Viresh Kumar wrote: > On 18-01-18, 21:02, Corentin Labbe wrote: > > Since AVR32 arch was removed, at32ap-cpufreq is useless. > > Remove this driver. > > > > Signed-off-by: Corentin Labbe > > --- > > drivers/cpufreq/Kconfig | 10 --- > >

Re: [PATCH -mm -v2] mm, swap, frontswap: Fix THP swap if frontswap enabled

2018-02-08 Thread Minchan Kim
On Wed, Feb 07, 2018 at 03:00:35PM +0800, Huang, Ying wrote: > From: Huang Ying > > It was reported by Sergey Senozhatsky that if THP (Transparent Huge > Page) and frontswap (via zswap) are both enabled, when memory goes low > so that swap is triggered, segfault and memory corruption will occur

Re: [PATCH 03/18] tracing: Add simple arguments to function based events

2018-02-08 Thread Namhyung Kim
On Fri, Feb 02, 2018 at 06:05:01PM -0500, Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > The function based events can now have arguments passed in. A weak function > arch_get_func_args() is created so that archs can fill in the arguments > based on pt_regs. Currently no arch

Re: [PATCH] acpi: osl: Replace GFP_ATOMIC with GFP_KERNEL in acpi_os_execute

2018-02-08 Thread Rafael J. Wysocki
On Thursday, February 8, 2018 11:13:10 AM CET Chris Wilson wrote: > Quoting Rafael J. Wysocki (2018-02-08 09:51:41) > > On Thursday, January 25, 2018 11:13:41 AM CET Jia-Ju Bai wrote: > > > After checking all possible call chains to acpi_os_execute here, > > > my tool finds that acpi_os_execute is

Re: [PATCH v2] KVM: X86: Fix SMRAM accessing even if VM is shutdown

2018-02-08 Thread Paolo Bonzini
On 08/02/2018 08:32, Wanpeng Li wrote: > From: Wanpeng Li > > Reported by syzkaller: > >WARNING: CPU: 6 PID: 2434 at arch/x86/kvm/vmx.c:6660 > handle_ept_misconfig+0x54/0x1e0 [kvm_intel] >CPU: 6 PID: 2434 Comm: repro_test Not tainted 4.15.0+ #4 >RIP:

Re: [PATCH -mm -v2] mm, swap, frontswap: Fix THP swap if frontswap enabled

2018-02-08 Thread Minchan Kim
On Thu, Feb 08, 2018 at 10:36:35AM +0900, Sergey Senozhatsky wrote: > On (02/07/18 13:05), Andrew Morton wrote: > [..] > > hm. This is assuming that "cluster==true" means "this is thp swap". > > That's presently true, but is it appropriate that get_swap_pages() is > > peeking at "cluster" to

Re: [PATCH] x86/kvm/vmx: Don't halt vcpu when L1 is injecting events to L2

2018-02-08 Thread Paolo Bonzini
On 08/02/2018 06:13, Chao Gao wrote: > Although L2 is in halt state, it will be in the active state after > VM entry if the VM entry is vectoring. Halting the vcpu here means > the event won't be injected to L2 and this decision isn't reported > to L1. Thus L0 drops an event that should be

Re: [PATCH] KVM: X86: Fix SMRAM accessing even if VM is shutdown

2018-02-08 Thread Paolo Bonzini
On 08/02/2018 09:57, Xiao Guangrong wrote: >> Maybe it should return RET_PF_EMULATE, which would cause an emulation >> failure and then an exit with KVM_EXIT_INTERNAL_ERROR. > > So the root cause is that a running vCPU accessing the memory whose memslot > is being updated (met the condition

[GIT PULL] CRIS urgent fixes for 4.16

2018-02-08 Thread Jesper Nilsson
Hi Linus, Please pull the below tag for an urgent fix for build problems in the CRIS-port. The following changes since commit e237f98a9c134c3d600353f21e07db915516875b: Merge tag 'xfs-4.16-merge-5' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux (2018-02-05 13:35:56 -0800) are available in

Re: [PATCH v4 6/7] typec: tcpm: Represent source supply through power_supply class

2018-02-08 Thread Heikki Krogerus
Hi Adam, On Tue, Feb 06, 2018 at 03:51:26PM +, Adam Thomson wrote: > Right now there is no documentation for the generic psy class. The stuff in > sysfs-class-power is device specific property information, and the same goes > for > sysfs-class-power-twl4030. The property usage can vary

Re: [PATCH v8 0/7] TDA1997x HDMI video reciver

2018-02-08 Thread Philipp Zabel
On Wed, 2018-02-07 at 23:19 +0100, Hans Verkuil wrote: > On 02/07/2018 11:05 PM, Tim Harvey wrote: > > On Wed, Feb 7, 2018 at 1:09 AM, Hans Verkuil wrote: > > > On 02/07/18 09:22, Hans Verkuil wrote: > > > > On 02/07/2018 12:29 AM, Tim Harvey wrote: > > > > > Media Controller ioctls: > > > > >

Re: [PATCHv1 00/14] omapdrm: DSI command mode panel support

2018-02-08 Thread Tomi Valkeinen
On 08/02/18 11:41, Pavel Machek wrote: > Hi! > >> I've also picked patches 7-12. > > It seems that part of the support made it to v4.16. Is it supposed to > be complete? > > I still have these in my tree, and result works on Nokia N9. Is there > any way I can help with the merge? I picked the

Re: [PATCH v2 16/20] arm64: Handle shared capability entries

2018-02-08 Thread Suzuki K Poulose
On 07/02/18 10:39, Dave Martin wrote: On Wed, Jan 31, 2018 at 06:28:03PM +, Suzuki K Poulose wrote: Some capabilities have different criteria for detection and associated actions based on the matching criteria, even though they all share the same capability bit. So far we have used multiple

Re: [PATCH 09/18] tracing: Add indexing of arguments for function based events

2018-02-08 Thread Namhyung Kim
On Fri, Feb 02, 2018 at 06:05:07PM -0500, Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > Currently reading of 8 byte words can only happen 8 bytes aligned from the > argument. But there may be cases that they are 4 bytes aligned. To make the > capturing of arguments more flexible,

Re: [PATCH v1 14/16] kvm: arm64: Switch to per VM IPA

2018-02-08 Thread Christoffer Dall
On Tue, Jan 09, 2018 at 07:04:09PM +, Suzuki K Poulose wrote: > Now that we can manage the stage2 page table per VM, switch the > configuration details to per VM instance. We keep track of the > IPA bits, number of page table levels and the VTCR bits (which > depends on the IPA and the number

Re: [PATCH v1 06/16] kvm: arm/arm64: Fix stage2_flush_memslot for 4 level page table

2018-02-08 Thread Christoffer Dall
On Tue, Jan 09, 2018 at 07:04:01PM +, Suzuki K Poulose wrote: > So far we have only supported 3 level page table with fixed IPA of 40bits. > Fix stage2_flush_memslot() to accommodate for 4 level tables. > Acked-by: Christoffer Dall > Cc: Marc Zyngier > Cc: Christoffer Dall >

Re: [PATCH v1 08/16] kvm: arm/arm64: Clean up stage2 pgd life time

2018-02-08 Thread Christoffer Dall
On Tue, Jan 09, 2018 at 07:04:03PM +, Suzuki K Poulose wrote: > On arm/arm64 we pre-allocate the entry level page tables when > a VM is created and is free'd when either all the mm users are > gone or the KVM is about to get destroyed. i.e, kvm_free_stage2_pgd > is triggered via

Re: [PATCH v1 09/16] kvm: arm/arm64: Delay stage2 page table allocation

2018-02-08 Thread Christoffer Dall
On Tue, Jan 09, 2018 at 07:04:04PM +, Suzuki K Poulose wrote: > We allocate the entry level page tables for stage2 when the > VM is created. This doesn't give us the flexibility of configuring > the physical address space size for a VM. In order to allow > the VM to choose the required size,

[PATCH v2] media: stm32-dcmi: add g/s_parm framerate support

2018-02-08 Thread Hugues Fruchet
Add g/s_parm framerate support by calling subdev g/s_frame_interval ops. This allows user to control sensor framerate by calling ioctl G/S_PARM. Signed-off-by: Hugues Fruchet --- version 2: - Rebase on Hans branch to use new helpers: See

Re: [PATCH v1 07/16] kvm: arm/arm64: Remove spurious WARN_ON

2018-02-08 Thread Christoffer Dall
On Tue, Jan 09, 2018 at 07:04:02PM +, Suzuki K Poulose wrote: > On a 4-level page table pgd entry can be empty, unlike a 3-level > page table. Remove the spurious WARN_ON() in stage_get_pud(). Acked-by: Christoffer Dall > > Cc: Marc Zyngier > Cc: Christoffer Dall > Signed-off-by: Suzuki

Re: [PATCH v1 05/16] arm64: Helper for parange to PASize

2018-02-08 Thread Christoffer Dall
On Tue, Jan 09, 2018 at 07:04:00PM +, Suzuki K Poulose wrote: > Add a helper to convert ID_AA64MMFR0_EL1:PARange to they physical *the* > size shift. Limit the size to the maximum supported by the kernel. Is this just a cleanup or are we

Re: [PATCH] ath9k: turn on btcoex_enable as default

2018-02-08 Thread Felix Fietkau
On 2018-02-08 06:28, Kai-Heng Feng wrote: > Without btcoex_enable, WiFi activies make both WiFi and Bluetooth > unstable if there's a bluetooth connection. > > Enable this option when bt_ant_diversity is disabled. > > BugLink: https://bugs.launchpad.net/bugs/1746164 > Signed-off-by: Kai-Heng

Re: [PATCH] media: stm32-dcmi: add g/s_parm framerate support

2018-02-08 Thread Hugues FRUCHET
Thanks Hans, v2 sent, rebased on your helpers ! Best regards, Hugues. On 02/07/2018 06:52 PM, Hans Verkuil wrote: > On 02/07/2018 06:43 PM, Hugues Fruchet wrote: >> Add g/s_parm framerate support by calling subdev >> g/s_frame_interval ops. >> This allows user to control sensor framerate by >>

Re: [PATCH 11/18] tracing: Add symbol type to function based events

2018-02-08 Thread Namhyung Kim
On Fri, Feb 02, 2018 at 06:05:09PM -0500, Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > Add a special type "symbol" that will use %pS to display the field of a > function based event. > > Signed-off-by: Steven Rostedt (VMware) > --- >

Re: [PATCH v2 10/20] arm64: capabilities: Restrict KPTI detection to boot-time CPUs

2018-02-08 Thread Dave Martin
On Wed, Feb 07, 2018 at 06:15:58PM +, Suzuki K Poulose wrote: > On 07/02/18 10:38, Dave Martin wrote: > >On Wed, Jan 31, 2018 at 06:27:57PM +, Suzuki K Poulose wrote: > >>KPTI is treated as a system wide feature, where we enable the feature > >>when all the CPUs on the system suffers from

Re: [PATCH v1 05/16] arm64: Helper for parange to PASize

2018-02-08 Thread Suzuki K Poulose
On 08/02/18 11:00, Christoffer Dall wrote: On Tue, Jan 09, 2018 at 07:04:00PM +, Suzuki K Poulose wrote: Add a helper to convert ID_AA64MMFR0_EL1:PARange to they physical *the* size shift. Limit the size to the maximum supported by

Re: [PATCH v1 15/16] kvm: arm64: Allow configuring physical address space size

2018-02-08 Thread Christoffer Dall
On Tue, Jan 09, 2018 at 07:04:10PM +, Suzuki K Poulose wrote: > Allow the guests to choose a larger physical address space size. > The default and minimum size is 40bits. A guest can change this > right after the VM creation, but before the stage2 entry page > tables are allocated (i.e, before

Re: [PATCH 00/16] kvm: arm64: Support for dynamic IPA size

2018-02-08 Thread Christoffer Dall
Hi Suzuki, On Tue, Jan 09, 2018 at 07:03:55PM +, Suzuki K Poulose wrote: > On arm64 we have a static limit of 40bits of physical address space > for the VM with KVM. This series lifts the limitation and allows the > VM to configure the physical address space upto 52bit on systems > where it

Re: [PATCH 01/20 v2] tracing: Add function based events

2018-02-08 Thread Jiri Olsa
On Wed, Feb 07, 2018 at 03:24:03PM -0500, Steven Rostedt wrote: SNIP > + > +void create_function_event_file(struct dentry *d_tracer) > +{ > + struct dentry *d; > + > + d = trace_create_file("function_events", 0644, d_tracer, NULL, > + _event_fops); > +

Re: [PATCH v1 02/16] irqchip: gicv3-its: Add helpers for handling 52bit address

2018-02-08 Thread Suzuki K Poulose
On 07/02/18 15:10, Christoffer Dall wrote: Hi Suzuki, On Tue, Jan 09, 2018 at 07:03:57PM +, Suzuki K Poulose wrote: Add helpers for encoding/decoding 52bit address in GICv3 ITS BASER register. When ITS uses 64K page size, the 52bits of physical address are encoded in BASER[47:12] as

Re: [PATCH 11/20 v2] tracing: Add symbol type to function based events

2018-02-08 Thread Jiri Olsa
On Wed, Feb 07, 2018 at 03:24:13PM -0500, Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > Add a special type "symbol" that will use %pS to display the field of a > function based event. > > Signed-off-by: Steven Rostedt (VMware) > --- >

Re: [PATCH v1 05/16] arm64: Helper for parange to PASize

2018-02-08 Thread Christoffer Dall
On Thu, Feb 08, 2018 at 11:08:18AM +, Suzuki K Poulose wrote: > On 08/02/18 11:00, Christoffer Dall wrote: > >On Tue, Jan 09, 2018 at 07:04:00PM +, Suzuki K Poulose wrote: > >>Add a helper to convert ID_AA64MMFR0_EL1:PARange to they physical > >

Re: [PATCH -mm -v2] mm, swap, frontswap: Fix THP swap if frontswap enabled

2018-02-08 Thread Sergey Senozhatsky
On (02/08/18 02:25), Minchan Kim wrote: [..] > > > if (PageTransHuge(page)) { > > > - if (IS_ENABLED(CONFIG_THP_SWAP)) > > > - get_swap_pages(1, true, ); > > > + /* Frontswap doesn't support THP */ > > > + if (!frontswap_enabled()) { > > > +

Re: [PATCH 00/16] kvm: arm64: Support for dynamic IPA size

2018-02-08 Thread Will Deacon
I can comment on one part here: On Thu, Feb 08, 2018 at 12:18:44PM +0100, Christoffer Dall wrote: > Wasn't this also the decision taken for IOMMU page table allocation, and > why was that the right approach for the IOMMU but not for KVM stage 2 > page tables? Is there room for reuse of the IOMMU

[PATCH v3 2/4] dt-bindings: pwm-backlight: add a num-interpolation-steps property.

2018-02-08 Thread Enric Balletbo i Serra
The num-interpolated-steps property specifies the number of interpolated steps between each value of brightness-level table. This is useful for high resolution PWMs to not have to list out every possible value in the brightness-level array. Signed-off-by: Enric Balletbo i Serra Acked-by: Daniel

[PATCH v3 3/4] backlight: pwm_bl: compute brightness of LED linearly to human eye.

2018-02-08 Thread Enric Balletbo i Serra
When you want to change the brightness using a PWM signal, one thing you need to consider is how human perceive the brightness. Human perceive the brightness change non-linearly, we have better sensitivity at low luminance than high luminance, so to achieve perceived linear dimming, the brightness

[PATCH v3 0/4] backlight: pwm_bl: support linear interpolation and brightness to human eye

2018-02-08 Thread Enric Balletbo i Serra
Dear all, This series is a third patchset integrating the requested changes. The first and second patch what tries to solve is the problem of granularity for high resolution PWMs. The idea is simple interpolate between 2 brightness values so we can have a high PWM duty cycle (a 16 bits PWM is up

[PATCH v3 4/4] dt-bindings: pwm-backlight: move brightness-levels to optional.

2018-02-08 Thread Enric Balletbo i Serra
The patch 'backlight: pwm_bl: compute brightness of LED linearly to human eye' introduced a default brightness-levels table that is used when brightness-levels is not available in the dts. So move brightness-levels and default-brightness-level to be optional. Signed-off-by: Enric Balletbo i Serra

[PATCH v3 1/4] backlight: pwm_bl: linear interpolation between brightness-levels

2018-02-08 Thread Enric Balletbo i Serra
Setting num-interpolated-steps in the dts will allow you to have linear interpolation between values of brightness-levels. This way a high resolution pwm duty cycle can be used without having to list out every possible value in the dts. This system also allows for gamma corrected values. The most

Re: [PATCH v2 11/20] arm64: capabilities: Add support for features enabled early

2018-02-08 Thread Dave Martin
On Wed, Feb 07, 2018 at 06:34:37PM +, Suzuki K Poulose wrote: > On 07/02/18 10:38, Dave Martin wrote: > >On Wed, Jan 31, 2018 at 06:27:58PM +, Suzuki K Poulose wrote: > >>The kernel detects and uses some of the features based on the boot > >>CPU and expects that all the following CPUs

Re: [PATCH v1 02/16] irqchip: gicv3-its: Add helpers for handling 52bit address

2018-02-08 Thread Robin Murphy
On 08/02/18 11:20, Suzuki K Poulose wrote: On 07/02/18 15:10, Christoffer Dall wrote: Hi Suzuki, On Tue, Jan 09, 2018 at 07:03:57PM +, Suzuki K Poulose wrote: Add helpers for encoding/decoding 52bit address in GICv3 ITS BASER register. When ITS uses 64K page size, the 52bits of physical

Re: [PATCH v2 11/20] arm64: capabilities: Add support for features enabled early

2018-02-08 Thread Suzuki K Poulose
On 08/02/18 11:35, Dave Martin wrote: On Wed, Feb 07, 2018 at 06:34:37PM +, Suzuki K Poulose wrote: On 07/02/18 10:38, Dave Martin wrote: On Wed, Jan 31, 2018 at 06:27:58PM +, Suzuki K Poulose wrote: * 3) Verification: When a CPU is brought online (e.g, by user or by the

[PATCH v2] lockdep: Fix fs_reclaim warning.

2018-02-08 Thread Tetsuo Handa
>From 361d37a7d36978020dfb4c11ec1f4800937ccb68 Mon Sep 17 00:00:00 2001 From: Tetsuo Handa Date: Thu, 8 Feb 2018 10:35:35 +0900 Subject: [PATCH v2] lockdep: Fix fs_reclaim warning. Dave Jones reported fs_reclaim lockdep warnings. WARNING:

<    4   5   6   7   8   9   10   11   12   13   >