Re: [PATCH] i2c: i801: Register optional lis3lv02d i2c device on Dell machines

2016-12-27 Thread Andy Shevchenko
On Wed, Dec 28, 2016 at 12:41 AM, wrote: > On Wed, 28 Dec 2016 00:15:30 +0200, Andy Shevchenko said: >> On Tue, Dec 27, 2016 at 3:51 PM, Pali Rohár wrote: > >> > I have no idea how to do it (properly) outside of i2c-i801.c file. >> >> I doubt we need a single line of code for this. See [1] and p

[PATCH 02/18] ACPICA: Hardware: Remove bit_offset masking support

2016-12-27 Thread Lv Zheng
ACPICA commit bc7c5291865e099ce01f345d0265f0eba6997e23 This linuxized ACPICA commit is a back port result of the following Linux commit: Commit c3bc26d4b4e36f0dc458eea8b1f722d8a8d9addd Subject: ACPICA: ACPI 2.0, Hardware: Add access_width/bit_offset support in acpi_hw_read() The co

[PATCH 08/18] ACPICA: Linux-specific header: Add support for s390x compilation.

2016-12-27 Thread Lv Zheng
From: Colin Ian King ACPICA commit ecac9504e32d3b501c8cb021afb253b4a83fc82f Adds s390x as a 64-bit architecture. Link: https://github.com/acpica/acpica/commit/ecac9504 Signed-off-by: Colin Ian King Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- include/acpi/platform/aclinux.h | 3 ++-

Re: [RFC 1/3] abi_spec: basic definitions of constraints, args and syscalls

2016-12-27 Thread Dmitry Vyukov
On Tue, Dec 27, 2016 at 6:23 PM, wrote: > On Mon, Dec 12, 2016 at 11:29:35AM +0100, Dmitry Vyukov wrote: >> On Wed, Nov 23, 2016 at 3:59 PM, wrote: >> > On Mon, Nov 21, 2016 at 03:48:17PM +0100, Dmitry Vyukov wrote: >> > I imagine that this will be handled by specific logical type handlers we'l

[PATCH 06/18] ACPICA: Macro header: Fix some typos in comments. No functional change

2016-12-27 Thread Lv Zheng
From: Bob Moore ACPICA commit efc97d1d209947d6990ec81a192c6b2589d3e368 Link: https://github.com/acpica/acpica/commit/efc97d1 Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- drivers/acpi/acpica/acmacros.h | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/d

[PATCH 05/18] ACPICA: Hardware: Sort access bit width algorithm

2016-12-27 Thread Lv Zheng
ACPICA commit 365b321a31cb701957c055cae2d2161577147252 GAS can be in register or register region format, so we need to improve our "register" format detection code in order not to regress. Such detection may be still experimental, and is generated according to the current known facts. Lv Zheng.

[PATCH 04/18] ACPICA: Utilities: Add power of two rounding support

2016-12-27 Thread Lv Zheng
ACPICA commit cbb0294649cbd7e8bd6107e4329461a6a7a0d967 This patch adds power of two rounding support up to 32 bits. The result of the shift operations rearching to the boundary of the cpu word is unpredicatable, so 64-bit roundings are not supported in order to make sure no rounded shift-overs. T

[PATCH 16/18] ACPICA: Fix a problem with recent extra support for control method invocations

2016-12-27 Thread Lv Zheng
From: Bob Moore ACPICA commit b7dae343fbb8c392999a66f5e08be5744a5d07e2 This change fixes a problem with the recent support that enables control method invocations as Target operands to many ASL operators. Eliminates errors similar to: Needed type [Reference], found [Processor] Link: https://gi

[PATCH 09/18] ACPICA: MSVC: Fix MSVC6 build issues

2016-12-27 Thread Lv Zheng
ACPICA commit fa0680030a2969e1085563da633713e1c321637c Build environment has changed because of new improvements: 1. New files are split 2. New inclusion order This patch updates MSVC project files accordingly. Linux is not affected by this patch. Link: https://github.com/acpica/acpica/commit/fa

[PATCH 07/18] ACPICA: Hardware: Add sleep register hooks

2016-12-27 Thread Lv Zheng
ACPICA commit ba665dc8e20d9f7730466a659564dd6c557a6cbc In Linux, para-virtualization implmentation hooks critical register writes to prevent real hardware operations. This increases divergences when the sleep registers are cracked in Linux resident ACPICA. This patch tries to introduce a single OS

[PATCH 00/18] ACPICA 20161222 Release

2016-12-27 Thread Lv Zheng
The 20161222 ACPICA kernel-resident subsystem updates are linuxized based on the linux-pm/linux-next branch. The patchset has passed the following build/boot tests. Build tests are performed as follows: 1. i386 + allyes 2. i386 + allno 3. i386 + default + ACPI_DEBUGGER=y 4. i386 + default + ACPI_D

[PATCH 03/18] ACPICA: Hardware: Add access_width/bit_offset support in acpi_hw_write()

2016-12-27 Thread Lv Zheng
ACPICA commit 1ecab20bbe69a176dfb6da7210fe77aa6b3ad680 This patch adds access_width/bit_offset support in acpi_hw_write(). Lv Zheng. Link: https://github.com/acpica/acpica/commit/1ecab20b Signed-off-by: Lv Zheng Signed-off-by: Bob Moore --- drivers/acpi/acpica/hwregs.c | 62 +++

[PATCH 18/18] ACPICA: Update version to 20161222

2016-12-27 Thread Lv Zheng
From: Bob Moore ACPICA commit 0d5a056877c2e37e0bfce8d262cec339dc8d55fd ACPICA commit 5bea13a9e1eb2a0da99600d181afbc5fa075a9eb Version 20161222 Link: https://github.com/acpica/acpica/commit/0d5a0568 Link: https://github.com/acpica/acpica/commit/5bea13a9 Signed-off-by: Bob Moore Signed-off-by: L

[PATCH 15/18] ACPICA: Parser: Allow method invocations as target operands

2016-12-27 Thread Lv Zheng
From: Bob Moore ACPICA commit a6cca7a4786cdbfd29cea67e84b5b01a8ae6ff1c Method invocations as target operands are allowed as target operands in the ASL grammar. This change implements support for this. Method must return a reference for this to work properly at runtime, however. Link: https://gi

[PATCH 17/18] ACPICA: Parser: Update parse info table for some operators

2016-12-27 Thread Lv Zheng
From: Bob Moore ACPICA commit b90e39948954ff400cff1a3f8effddb67f15460b Operand for deref_of should not have been a term_arg, should be super_name. Rename NAME_OR_REF to SIMPLENAME. Link: https://github.com/acpica/acpica/commit/b90e3994 Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- dri

[PATCH 13/18] ACPICA: Resources: Not a valid resource if buffer length too long

2016-12-27 Thread Lv Zheng
From: Bob Moore ACPICA commit 9f76de2d249b18804e35fb55d14b1c2604d627a1 ACPICA commit b2e89d72ef1e9deefd63c3fd1dee90f893575b3a ACPICA commit 23b5bbe6d78afd3c5abf3adb91a1b098a3000b2e The declared buffer length must be the same as the length of the byte initializer list, otherwise not a valid resou

[PATCH 12/18] ACPICA: Utilities: Update debug output

2016-12-27 Thread Lv Zheng
From: Bob Moore ACPICA commit 082b5b3ee31f74735e166858eeda025288604a5a Enhancement of miscellaneous debug output. Link: https://github.com/acpica/acpica/commit/082b5b3e Signed-off-by: Bob Moore Signed-off-by: Lv Zheng --- drivers/acpi/acpica/utdecode.c | 4 ++-- drivers/acpi/acpica/utdelete.

[PATCH 10/18] ACPICA: EFI: Add efihello demo application

2016-12-27 Thread Lv Zheng
ACPICA commit 3fcc59f4755607dd066ac8ef869f0aa95e871b84 This patch adds a demo EFI application for stdin/stdout testing. This utility can be used to narrow down root causes of porting issues. Lv Zheng. Linux is not affected by this patch. Link: https://github.com/acpica/acpica/commit/3fcc59f4 Sig

[PATCH 11/18] ACPICA: Disassembler: Add Switch/Case disassembly support

2016-12-27 Thread Lv Zheng
From: "David E. Box" ACPICA commit 0f6cc80e8af519a3c31184367b0a9be7a399cf53 iasl compiles Switch/Case statements into a single iteration While loop with If/Else statements. This patch adds support to recognize this generated compiler output and disassemble it back to the original Switch statemen

Re: Intel Wireless 7260 failed to work

2016-12-27 Thread Luca Coelho
On Wed, 2016-12-28 at 11:59 +0800, Peter Xu wrote: > On Tue, Dec 27, 2016 at 09:46:55PM +0200, Kalle Valo wrote: > > Peter Xu writes: > > > > > Looks like latest Linux master (4.10-rc1, 7ce7d89f) cannot work well > > > with my wireless card, which is: > > > > > > Intel Corporation Wireless 726

RE: Question regarding power button of Dell XPS13

2016-12-27 Thread Zheng, Lv
Hi, Paul > From: Paul Menzel [mailto:pmen...@molgen.mpg.de] > Subject: Question regarding power button of Dell XPS13 > > Dear Linus, dear Len, > > > I heard that you both have a Dell XPS13. I got the “revision” 9360, and > installed Debian Stretch/testing on it with Linux 4.8.15 and Linux 4.9-r

Re: [PATCH] rcu: fix the OOM problem of huge IP abnormal packet traffic

2016-12-27 Thread Ding Tianhong
Hi, Paul: I try to debug this problem and found this solution could work well for both problem scene. diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h index 85c5a88..dbc14a7 100644 --- a/kernel/rcu/tree_plugin.h +++ b/kernel/rcu/tree_plugin.h @@ -2172,7 +2172,7 @@ static int rcu

RE: [PATCH v2] net: stmmac: bug fix to synchronize stmmac_open and stmmac_dvr_probe

2016-12-27 Thread Kweh, Hock Leong
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Wednesday, December 28, 2016 12:34 AM > To: Kweh, Hock Leong > Cc: joao.pi...@synopsys.com; peppe.cavall...@st.com; > seraphin.bonna...@st.com; f.faine...@gmail.com; > alexandre.tor...@gmail.com; manab...@gmail.

[PATCH 1/3] arm: dts: mt2701: Sort DT nodes by register address

2016-12-27 Thread James Liao
This patch rearrange MT2701 DT nodes to keep them in ascending order. Signed-off-by: James Liao --- arch/arm/boot/dts/mt2701.dtsi | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dt

[PATCH 0/3] Add clock and power domain DT nodes for Mediatek MT2701

2016-12-27 Thread James Liao
This patch series base on v4.10-rc1, include MT2701 power domain and clock DT nodes. An early patch [1] which was not applied in v4.10-rc1 also included in this patch series. [1] https://patchwork.kernel.org/patch/9457625/ James Liao (3): arm: dts: mt2701: Sort DT nodes by register address a

[PATCH 3/3] arm: dts: mt2701: Add power domain controller device node

2016-12-27 Thread James Liao
Add power domain controller node (scpsys) for MT2701. Signed-off-by: James Liao --- arch/arm/boot/dts/mt2701.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index 150c48d..bdf8954 100644 --- a/arch/arm/boot/dts/

[PATCH 2/3] arm: dts: mt2701: Add subsystem clock controller device nodes

2016-12-27 Thread James Liao
Add MT2701 subsystem clock controllers, inlcude mmsys, imgsys, vdecsys, hifsys, ethsys and bdpsys. Signed-off-by: James Liao --- arch/arm/boot/dts/mt2701.dtsi | 36 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/d

Re: [PATCH v3 1/4] dt-bindings: phy: Add support for QUSB2 phy

2016-12-27 Thread Vivek Gautam
On Wed, Dec 28, 2016 at 6:43 AM, Stephen Boyd wrote: > On 12/22/2016 08:52 PM, Vivek Gautam wrote: >> + +Optional properties: + - nvmem-cells: a list of phandles to nvmem cells that contain fused + tuning parameters for qusb2 phy, one for each entry +

Re: [PATCH] PCI: exynos: refactor exynos pcie driver

2016-12-27 Thread Jaehoon Chung
Hi Pankaj, On 12/28/2016 12:10 PM, Pankaj Dubey wrote: > Hi Jaehoon, > > On 27 December 2016 at 15:48, Jaehoon Chung wrote: >> Dear Alim, >> >> On 12/27/2016 03:34 PM, Alim Akhtar wrote: >>> Hi Jaehoon, >>> >> [snip] Ah. Right..And i'm doing the refactoring to reuse the current pci-exy

Re: George's crazy full state idea (Re: HalfSipHash Acceptable Usage)

2016-12-27 Thread Hannes Frederic Sowa
Hello, On Fri, 2016-12-23 at 20:17 -0500, George Spelvin wrote: > Hannes Frederic Sowa wrote: > > On 24.12.2016 00:39, George Spelvin wrote: > > > We just finished discussing why 8 bytes isn't enough. If you only > > > feed back 8 bytes, an attacker who can do 2^64 computation can find it > > > (

Re: [PATCH v4 0/9] mm/swap: Regular page swap optimizations

2016-12-27 Thread Huang, Ying
Minchan Kim writes: > On Wed, Dec 28, 2016 at 11:31:06AM +0800, Huang, Ying wrote: > > < snip > > >> >>> > Frankly speaking, although I'm huge user of bit_spin_lock(zram/zsmalloc >> >>> > have used it heavily), I don't like swap subsystem uses it. >> >>> > During zram development, it really hurts

[PATCH] x86: Fix Intel microcode revision detection

2016-12-27 Thread Junichi Nomura
early_init_intel() calls sync_core() before rdmsr(MSR_IA32_UCODE_REV), assuming sync_core() is effectively CPUID(eax=1). However the assumption no longer holds since commit c198b121b1a1 ("x86/asm: Rewrite sync_core() to use IRET-to-self"). As a result, kernel fails to detect the revision of microc

Re: [PATCH] lib: bitmap: introduce bitmap_find_next_zero_area_and_size

2016-12-27 Thread Jaewon Kim
On 2016년 12월 27일 19:05, Michal Hocko wrote: > On Mon 26-12-16 13:18:11, Jaewon Kim wrote: >> There was no bitmap API which returns both next zero index and size of zeros >> from that index. >> >> This is helpful to look fragmentation. This is an test code to look size of >> zeros. >> Test result

Re: [PATCH v4 0/9] mm/swap: Regular page swap optimizations

2016-12-27 Thread Minchan Kim
On Wed, Dec 28, 2016 at 11:31:06AM +0800, Huang, Ying wrote: < snip > > >>> > Frankly speaking, although I'm huge user of bit_spin_lock(zram/zsmalloc > >>> > have used it heavily), I don't like swap subsystem uses it. > >>> > During zram development, it really hurts debugging due to losing > >>>

Re: Intel Wireless 7260 failed to work

2016-12-27 Thread Peter Xu
On Tue, Dec 27, 2016 at 09:46:55PM +0200, Kalle Valo wrote: > Peter Xu writes: > > > Looks like latest Linux master (4.10-rc1, 7ce7d89f) cannot work well > > with my wireless card, which is: > > > > Intel Corporation Wireless 7260 (rev bb) > > > > Boot message shows that no suitable firmware fo

[PATCH] alpha: use generic current.h

2016-12-27 Thread Davidlohr Bueso
Given that the arch does not add its own implementations, simply use the asm-generic/current.h (generic-y) header instead of duplicating code. Signed-off-by: Davidlohr Bueso --- arch/alpha/include/asm/Kbuild| 1 + arch/alpha/include/asm/current.h | 9 - 2 files changed, 1 insertion(+

[PATCH] score: remove asm/current.h

2016-12-27 Thread Davidlohr Bueso
... it's already using the generic version anyways, so just drop the file as do the other archs that do not implement their own version of the current macro. Signed-off-by: Davidlohr Bueso --- arch/score/include/asm/Kbuild| 1 + arch/score/include/asm/current.h | 6 -- 2 files changed, 1

Re: [PATCH 2/2] mm: add PageWaiters indicating tasks are waiting for a page bit

2016-12-27 Thread Nicholas Piggin
On Tue, 27 Dec 2016 10:58:59 -0800 Linus Torvalds wrote: > On Tue, Dec 27, 2016 at 3:19 AM, Nicholas Piggin wrote: > > > > Attached is part of a patch I've been mulling over for a while. I > > expect you to hate it, and it does not solve this problem for x86, > > but I like being able to propaga

Re: Intel Wireless 7260 failed to work

2016-12-27 Thread Peter Xu
On Tue, Dec 27, 2016 at 10:41:22AM -0600, Larry Finger wrote: > On 12/27/2016 03:17 AM, Peter Xu wrote: > >Hello, > > > >Looks like latest Linux master (4.10-rc1, 7ce7d89f) cannot work well > >with my wireless card, which is: > > > > Intel Corporation Wireless 7260 (rev bb) > > > >Boot message sho

[PATCH] m32r: use generic current.h

2016-12-27 Thread Davidlohr Bueso
Given that the arch does not add its own implementations, simply use the asm-generic/current.h (generic-y) header instead of duplicating code. Signed-off-by: Davidlohr Bueso --- arch/m32r/include/asm/Kbuild| 1 + arch/m32r/include/asm/current.h | 15 --- 2 files changed, 1 inser

[PATCH] parisc: use generic current.h

2016-12-27 Thread Davidlohr Bueso
Given that the arch does not add its own implementations, simply use the asm-generic/current.h (generic-y) header instead of duplicating code. Signed-off-by: Davidlohr Bueso --- arch/parisc/include/asm/Kbuild| 1 + arch/parisc/include/asm/current.h | 15 --- 2 files changed, 1 i

[PATCH] cris: use generic current.h

2016-12-27 Thread Davidlohr Bueso
Given that the arch does not add its own implementations, simply use the asm-generic/current.h (generic-y) header instead of duplicating code. Signed-off-by: Davidlohr Bueso --- arch/cris/include/asm/Kbuild| 1 + arch/cris/include/asm/current.h | 15 --- 2 files changed, 1 inser

Re: [PATCH v2 2/8] mm/swap: Add cluster lock

2016-12-27 Thread huang ying
Hi, Jonathan, On Tue, Oct 25, 2016 at 10:05 AM, Huang, Ying wrote: > Hi, Jonathan, > > Thanks for review. > > Jonathan Corbet writes: > >> On Thu, 20 Oct 2016 16:31:41 -0700 >> Tim Chen wrote: >> >>> From: "Huang, Ying" >>> >>> This patch is to reduce the lock contention of swap_info_struct->l

Re: [PATCH v4 0/9] mm/swap: Regular page swap optimizations

2016-12-27 Thread Huang, Ying
"Huang, Ying" writes: > Minchan Kim writes: > >> Hi Huang, >> >> On Wed, Dec 28, 2016 at 09:54:27AM +0800, Huang, Ying wrote: >> >> < snip > >> >>> > The patchset has used several techniqueus to reduce lock contention, for >>> > example, >>> > batching alloc/free, fine-grained lock and cluster

Re: possible dmar_init_reserved_ranges() error

2016-12-27 Thread Raj, Ashok
Hi Bjorn, On Tue, Dec 27, 2016 at 05:44:17PM -0600, Bjorn Helgaas wrote: > > dmar_init_reserved_ranges() > { > ... > for_each_pci_dev(pdev) { > for (i = 0; i < PCI_NUM_RESOURCES; i++) { > r = &pdev->resource[i]; > reserve_iova(r) > > But I assume it's possible t

Re: [PATCH v4 0/9] mm/swap: Regular page swap optimizations

2016-12-27 Thread Huang, Ying
Minchan Kim writes: > Hi Huang, > > On Wed, Dec 28, 2016 at 09:54:27AM +0800, Huang, Ying wrote: > > < snip > > >> > The patchset has used several techniqueus to reduce lock contention, for >> > example, >> > batching alloc/free, fine-grained lock and cluster distribution to avoid >> > cache >>

Re: [PATCH] PCI: exynos: refactor exynos pcie driver

2016-12-27 Thread Pankaj Dubey
Hi Bartlomiej, On 27 December 2016 at 19:05, Bartlomiej Zolnierkiewicz wrote: > > Hi, > > On Friday, December 23, 2016 04:26:27 PM Pankaj Dubey wrote: >> From: Niyas Ahmed S T >> >> Currently Exynos PCIe driver is only supported for Exynos5440 SoC. >> This patch does refactoring of Exynos PCIe d

Re: [PATCH] PCI: exynos: refactor exynos pcie driver

2016-12-27 Thread Pankaj Dubey
Hi Jaehoon, On 27 December 2016 at 15:48, Jaehoon Chung wrote: > Dear Alim, > > On 12/27/2016 03:34 PM, Alim Akhtar wrote: >> Hi Jaehoon, >> > [snip] >>> >>> Ah. Right..And i'm doing the refactoring to reuse the current pci-exynos.c. >> There is a nice refactoring patch posted by Pankaj recently

Re: [RFC PATCH 1/6] phy: exynos-pcie: Add support for Exynos PCIe phy

2016-12-27 Thread Jaehoon Chung
Hi Vivek, On 12/27/2016 02:53 PM, Vivek Gautam wrote: > Hi Jaehoon, > > > On Mon, Dec 26, 2016 at 10:50 AM, Jaehoon Chung > wrote: >> This patch supports to use Generic Phy framework for Exynos PCIe phy. >> When Exynos that supported the pcie want to use the PCIe, >> it needs to control the ph

Re: vfio/pci: guest error recovery proposal

2016-12-27 Thread Cao jin
On 12/16/2016 07:02 AM, Michael S. Tsirkin wrote: > >> 1) We need to do the right thing for the guest, I don't think we >> should be presuming that different reset types are equivalent, >> leaving gaps where we expect the guest/host to do a reset and don't >> follow through on other

Re: [PATCH v4 0/9] mm/swap: Regular page swap optimizations

2016-12-27 Thread Minchan Kim
Hi Huang, On Wed, Dec 28, 2016 at 09:54:27AM +0800, Huang, Ying wrote: < snip > > > The patchset has used several techniqueus to reduce lock contention, for > > example, > > batching alloc/free, fine-grained lock and cluster distribution to avoid > > cache > > false-sharing. Each items has dif

Re: [PATCH net] net: stmmac: Fix race between stmmac_drv_probe and stmmac_open

2016-12-27 Thread David Miller
From: Florian Fainelli Date: Tue, 27 Dec 2016 18:23:06 -0800 > There is currently a small window during which the network device registered > by > stmmac can be made visible, yet all resources, including and clock and MDIO > bus > have not had a chance to be set up, this can lead to the followi

[PATCH net] net: stmmac: Fix race between stmmac_drv_probe and stmmac_open

2016-12-27 Thread Florian Fainelli
There is currently a small window during which the network device registered by stmmac can be made visible, yet all resources, including and clock and MDIO bus have not had a chance to be set up, this can lead to the following error to occur: [ 473.919358] stmmaceth :01:00.0 (unnamed net_devi

Re: [PATCH v4 0/9] mm/swap: Regular page swap optimizations

2016-12-27 Thread Huang, Ying
Hi, Minchan, Minchan Kim writes: > Hi, > > On Fri, Dec 09, 2016 at 01:09:13PM -0800, Tim Chen wrote: >> Change Log: >> v4: >> 1. Fix a bug in unlock cluster in add_swap_count_continuation(). We >> should use unlock_cluster() instead of unlock_cluser_or_swap_info(). >> 2. During swap off, handle

RE: [PATCH v2] net: stmmac: bug fix to synchronize stmmac_open and stmmac_dvr_probe

2016-12-27 Thread Kweh, Hock Leong
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Wednesday, December 28, 2016 12:34 AM > To: Kweh, Hock Leong > Cc: joao.pi...@synopsys.com; peppe.cavall...@st.com; > seraphin.bonna...@st.com; f.faine...@gmail.com; > alexandre.tor...@gmail.com; manab...@gmail.

Re: [PATCH 01/14] x86/cqm: Intel Resource Monitoring Documentation

2016-12-27 Thread David Carrillo-Cisneros
On Tue, Dec 27, 2016 at 3:10 PM, Andi Kleen wrote: > On Tue, Dec 27, 2016 at 01:33:46PM -0800, David Carrillo-Cisneros wrote: >> When using one intel_cmt/llc_occupancy/ cgroup perf_event in one CPU, the >> avg time to do __perf_event_task_sched_out + __perf_event_task_sched_in is >> ~1170ns >> >>

Re: [PATCH] usb: mtu3: fix U3 port link issue

2016-12-27 Thread Chunfeng Yun
Hi, On Tue, 2016-12-27 at 13:22 +0200, Felipe Balbi wrote: > Hi, > > Chunfeng Yun writes: > > the issue is introduced when @is_u3_ip is used in mtu3_device_enabe() > > before initialized in mtu3_mem_alloc(), so get global IP information > > at first before used by following functins. > > > > Sig

Re: [PATCH] skfp: hwmtm: Use proper logging macros, correct mismatches

2016-12-27 Thread David Miller
From: Joe Perches Date: Wed, 21 Dec 2016 16:41:52 -0800 > Logging macros should allow format and argument validation. > The DB_TX, DB_RX, and DB_GEN macros did not. > > Update the macros and uses and add no_printk validation to the > previously compiled away #ifndef DEBUG variants. > > Done wit

Re: [PATCH] fddi: skfp: Use more common logging styles

2016-12-27 Thread David Miller
Applied.

Re: [PATCH v3 1/4] dt-bindings: phy: Add support for QUSB2 phy

2016-12-27 Thread Stephen Boyd
On 12/22/2016 08:52 PM, Vivek Gautam wrote: > >>> + >>> +Optional properties: >>> + - nvmem-cells: a list of phandles to nvmem cells that contain fused >>> + tuning parameters for qusb2 phy, one for each entry >>> + in nvmem-cell-names. >>> + - nvmem-cell-names: must be "tun

Re: [v2 5/7] x86: Add emulation code for UMIP instructions

2016-12-27 Thread Andy Lutomirski
On Tue, Dec 27, 2016 at 4:39 PM, Ricardo Neri wrote: > On Fri, 2016-12-23 at 18:11 -0800, Andy Lutomirski wrote: >> On Fri, Dec 23, 2016 at 5:37 PM, Ricardo Neri >> wrote: >> > The feature User-Mode Instruction Prevention present in recent Intel >> > processor prevents a group of instructions fro

[PATCH V2] Xen: ARM: Zero reserved fields of xatp before making hypervisor call

2016-12-27 Thread Jiandi An
Ensure all reserved fields of xatp are zero before making hypervisor call to XEN in xen_map_device_mmio(). xenmem_add_to_physmap_one() in XEN fails the mapping request if extra.res reserved field in xatp is not zero for XENMAPSPACE_dev_mmio request. Signed-off-by: Jiandi An --- Changed zeroing xa

Re: [v2 5/7] x86: Add emulation code for UMIP instructions

2016-12-27 Thread Ricardo Neri
On Mon, 2016-12-26 at 00:49 +0900, Masami Hiramatsu wrote: > On Fri, 23 Dec 2016 17:37:43 -0800 > Ricardo Neri wrote: > > > +static int __identify_insn(struct insn *insn) > > +{ > > + /* by getting modrm we also get the opcode */ > > + insn_get_modrm(insn); > > + if (insn->opcode.bytes[0] !

Re: v4.10-rc1: does not wake up from suspend-to-RAM

2016-12-27 Thread Rafael J. Wysocki
On Tue, Dec 27, 2016 at 9:31 PM, Pavel Machek wrote: > Hi! > >> Machine is plain Intel desktop. >> >> Even power light does not turn on. Fun. If I force power off by >> holding power button down, power light stays off during the next >> boot. Interesting. I guess EC is confused. >> >> Thinkpad X60

Re: [v2 5/7] x86: Add emulation code for UMIP instructions

2016-12-27 Thread Ricardo Neri
On Fri, 2016-12-23 at 18:11 -0800, Andy Lutomirski wrote: > On Fri, Dec 23, 2016 at 5:37 PM, Ricardo Neri > wrote: > > The feature User-Mode Instruction Prevention present in recent Intel > > processor prevents a group of instructions from being executed with > > CPL > 0. Otherwise, a general prot

Re: [RESEND PATCH V3 4/4] gpio: pv88080: Add GPIO function support

2016-12-27 Thread Linus Walleij
On Tue, Dec 6, 2016 at 6:33 AM, Eric Jeong wrote: > From: Eric Jeong > > This patch adds support for PV88080 PMIC GPIOs. > PV88080 has two configurable GPIOs. > > Kconfig and Makefile are updated to reflect support > for PV88080 PMIC GPIO. > > Signed-off-by: Eric Jeong > +#include Use #incl

Re: [PATCH v4 5/5] pinctrl: aspeed: Fix kerneldoc return descriptions

2016-12-27 Thread Linus Walleij
On Tue, Dec 20, 2016 at 8:35 AM, Andrew Jeffery wrote: > Signed-off-by: Andrew Jeffery > Acked-by: Joel Stanley Patch applied. Yours, Linus Walleij

Re: [PATCH v4 4/5] pinctrl: aspeed-g5: Add mux configuration for all pins

2016-12-27 Thread Linus Walleij
On Tue, Dec 20, 2016 at 8:35 AM, Andrew Jeffery wrote: > The patch introducing the g5 pinctrl driver implemented a smattering of > pins to flesh out the implementation of the core and provide bare-bones > support for some OpenPOWER platforms and the AST2500 evaluation board. > Now, update the bin

Re: [PATCH] mark myself as mainainer for camera on N900

2016-12-27 Thread Sebastian Reichel
Hi, On Tue, Dec 27, 2016 at 09:59:23PM +0100, Pavel Machek wrote: > Mark and Sakari as maintainers for Nokia N900 camera pieces. ^^^ missing me after Mark. Otherwise Mark looks like a name :) > Signed-off-by: Pavel Machek > > --- > > Hi! > > > Yeah, there was big flamewar about the permissio

Re: possible dmar_init_reserved_ranges() error

2016-12-27 Thread Bjorn Helgaas
On Mon, Dec 19, 2016 at 03:20:44PM -0600, Bjorn Helgaas wrote: > Hi guys, > > I have some questions about dmar_init_reserved_ranges(). On systems > where CPU physical address space is not identity-mapped to PCI bus > address space, e.g., where the PCI host bridge windows have _TRA > offsets, I'm

Re: [PATCH 01/14] x86/cqm: Intel Resource Monitoring Documentation

2016-12-27 Thread Andi Kleen
On Tue, Dec 27, 2016 at 01:33:46PM -0800, David Carrillo-Cisneros wrote: > When using one intel_cmt/llc_occupancy/ cgroup perf_event in one CPU, the > avg time to do __perf_event_task_sched_out + __perf_event_task_sched_in is > ~1170ns > > most of the time is spend in cgroup ctx switch (~1120ns) .

Re: [RFC PATCH 6/6] ARM64: exynos: add the pcie node for TM2

2016-12-27 Thread Jaehoon Chung
On 12/28/2016 01:32 AM, Krzysztof Kozlowski wrote: > On Mon, Dec 26, 2016 at 02:20:29PM +0900, Jaehoon Chung wrote: >> Add the Exxynos5433 pcie node for TM2. >> This pcie device is used for supporting WiFi. >> >> And some gpios are already requested from pinctrl. so it doesn't need to >> initialize

Re: [RFC PATCH 5/6] Documentation: pci: add the exynos5433-pcie binding

2016-12-27 Thread Jaehoon Chung
On 12/28/2016 01:19 AM, Krzysztof Kozlowski wrote: > On Mon, Dec 26, 2016 at 02:20:28PM +0900, Jaehoon Chung wrote: >> Signed-off-by: Jaehoon Chung >> --- >> .../devicetree/bindings/pci/exynos5433-pcie.txt| 36 >> ++ >> 1 file changed, 36 insertions(+) >> create mode 100

Re: [PATCH] leds: Allow drivers to update the core, and generate events on changes

2016-12-27 Thread Jacek Anaszewski
Hi Gabriele, Pavel, On 12/27/2016 09:07 PM, Pavel Machek wrote: > Hi! > >> Similarily to commit 325253a6b2de ("backlight: Allow drivers to update >> the core, and generate events on changes"), inform userspace about >> brightness changes and allow drivers to request updates of the >> brightness v

Re: [RFC PATCH 3/6] ARM64: dts: exynos5433: add the pcie_phy node for PCIe

2016-12-27 Thread Jaehoon Chung
On 12/28/2016 01:11 AM, Krzysztof Kozlowski wrote: > On Mon, Dec 26, 2016 at 02:20:26PM +0900, Jaehoon Chung wrote: >> To use the generic PHY framework, adds the pcie_phy node. >> >> Signed-off-by: Jaehoon Chung >> --- >> arch/arm64/boot/dts/exynos/exynos5433.dtsi | 14 ++ >> 1 file c

Re: [PATCH v11 3/5] input: touchscreen: mxs-lradc: Add support for touchscreen

2016-12-27 Thread Dmitry Torokhov
Hi Ksenija, On Thu, Dec 08, 2016 at 11:27:09PM +0100, Ksenija Stanojevic wrote: > Add 4-wire/5-wire touchscreen controller. > > Signed-off-by: Ksenija Stanojevic > --- > Changes in v11: > - use dev_get_drvdata instead dev_get_platdata > - use writel instead mxs_lradc_reg_* functions > > Chang

[PATCH 4/8] random: remove unused branch in hot code path

2016-12-27 Thread Stephan Müller
The variable ip is defined to be a __u64 which is always 8 bytes on any architecture. Thus, the check for sizeof(ip) > 4 will always be true. As the check happens in a hot code path, remove the branch. Signed-off-by: Stephan Mueller --- drivers/char/random.c | 3 +-- 1 file changed, 1 insertion

[PATCH 7/8] random: remove noop function call to xfer_secondary_pool

2016-12-27 Thread Stephan Müller
Since the introduction of the ChaCha20 DRNG, extract_entropy is only invoked with the input_pool. For this entropy pool, xfer_secondary_pool is a no-op and can therefore be safely removed. Signed-off-by: Stephan Mueller --- drivers/char/random.c | 1 - 1 file changed, 1 deletion(-) diff --git a

[PATCH 8/8] random: move FIPS continuous test to output functions

2016-12-27 Thread Stephan Müller
The current lockation of the FIPS continuous self test covers the input_pool only. However, the FIPS continuous self test shall cover the output of the random number generator, i.e. the blocking pool and the ChaCha20 DRNG. This patch therefore moves the continuous test to the output function used

[PATCH 1/8] random: remove stale maybe_reseed_primary_crng

2016-12-27 Thread Stephan Müller
>From 5e84a71d4c4b3c7f015878c0907102634603d270 Mon Sep 17 00:00:00 2001 From: Stephan Mueller Date: Thu, 15 Dec 2016 12:42:33 +0100 Subject: The function maybe_reseed_primary_crng is not used anywhere and thus can be removed. Besides, it contains the check crng_init > 2 which will never become t

[PATCH 3/8] random: trigger random_ready callback upon crng_init == 1

2016-12-27 Thread Stephan Müller
The random_ready callback mechanism is intended to replicate the getrandom system call behavior to in-kernel users. As the getrandom system call unblocks with crng_init == 1, trigger the random_ready wakeup call at the same time. Signed-off-by: Stephan Mueller --- drivers/char/random.c | 1 + 1

[PATCH 5/8] random: remove variable limit

2016-12-27 Thread Stephan Müller
The variable limit was used to identify the nonblocking pool's unlimited random number generation. As the nonblocking pool is a thing of the past, remove the limit variable and any conditions around it (i.e. preserve the branches for limit == 1). Signed-off-by: Stephan Mueller --- drivers/char/r

[PATCH 0/8] random: cleanup of code after removal of nonblocking pool

2016-12-27 Thread Stephan Müller
Hi Ted, with the removal of the nonblocking_pool, several code paths are now unused which were only applicable to the nonblocking pool. This patch set removes these unused code paths. Also, a code path in the add_interrupt_randomness function that is never used is removed. In addition, the FIPS

[PATCH 2/8] random: remove stale urandom_init_wait

2016-12-27 Thread Stephan Müller
The urandom_init_wait wait queue is a left over from the pre-ChaCha20 times and can therefore be savely removed. Signed-off-by: Stephan Mueller --- drivers/char/random.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/char/random.c b/drivers/char/random.c index 8e5ab20..482531d 100644

[PATCH 6/8] random: fix comment for unused random_min_urandom_seed

2016-12-27 Thread Stephan Müller
The variable random_min_urandom_seed is not needed any more as it defined the reseeding behavior of the nonblocking pool. Though it is not needed any more, it is left in the code for user space interface compatibility. Signed-off-by: Stephan Mueller --- drivers/char/random.c | 4 +--- 1 file cha

Re: [PATCH] i2c: i801: Register optional lis3lv02d i2c device on Dell machines

2016-12-27 Thread Valdis . Kletnieks
On Wed, 28 Dec 2016 00:15:30 +0200, Andy Shevchenko said: > On Tue, Dec 27, 2016 at 3:51 PM, Pali Rohár wrote: > > I have no idea how to do it (properly) outside of i2c-i801.c file. > > I doubt we need a single line of code for this. See [1] and perhaps > create an EFI variable with necessary upg

Re: [v2 3/7] x86/mpx, x86/insn: Relocate insn util functions to a new insn-utils

2016-12-27 Thread Ricardo Neri
On Sun, 2016-12-25 at 15:17 +0900, Masami Hiramatsu wrote: > Hi Ricado, > > On Fri, 23 Dec 2016 17:37:41 -0800 > Ricardo Neri wrote: > > > Other kernel submodules can benefit from using the utility functions > > defined in mpx.c to obtain the addresses and values of operands contained > > in the

Re: [v2 2/7] x86/mpx: Fail when implicit zero-displacement is used along with R/EBP

2016-12-27 Thread Ricardo Neri
On Fri, 2016-12-23 at 17:58 -0800, Andy Lutomirski wrote: > On Fri, Dec 23, 2016 at 5:37 PM, Ricardo Neri > wrote: > > Section 2.2.1.2 of the Intel 64 and IA-32 Architectures Software > > Developer's Manual volume 2A states that when memory addressing with no > > explicit displacement (i.e, mod pa

Re: [v2 6/7] x86/traps: Fixup general protection faults caused by UMIP

2016-12-27 Thread Ricardo Neri
On Fri, 2016-12-23 at 18:11 -0800, Andy Lutomirski wrote: > On Fri, Dec 23, 2016 at 5:37 PM, Ricardo Neri > wrote: > > If the User-Mode Instruction Prevention CPU feature is available and > > enabled, a general protection fault will be issued if the instructions > > sgdt, sldt, sidt, str or smsw a

Re: [PATCH v2] pci: hotplug: This patch removes unnecessary return statement using spatch tool

2016-12-27 Thread Tyrel Datwyler
On 12/24/2016 01:38 AM, Rahul Krishnan wrote: > > This patch removes unnecessary return statement using spatch tool > > Signed-off-by: Rahul Krishnan Reviewed-by: Tyrel Datwyler > --- > drivers/pci/hotplug/rpadlpar_core.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff -

Re: [v2 1/7] x86/mpx: Do not use SIB index if index points to R/ESP

2016-12-27 Thread Ricardo Neri
On Fri, 2016-12-23 at 17:57 -0800, Andy Lutomirski wrote: > On Fri, Dec 23, 2016 at 5:37 PM, Ricardo Neri > wrote: > > Section 2.2.1.2 of the Intel 64 and IA-32 Architectures Software > > Developer's Manual volume 2A states that when memory addressing is used > > (i.e., mod part of ModR/M is not 3

[PATCH] platform/x86: fix surface3_button build errors

2016-12-27 Thread Randy Dunlap
From: Randy Dunlap Fix build errors when I2C=m and SURFACE_3_BUTTON=y. The driver uses i2c interfaces so it should depend on I2C. drivers/built-in.o: In function `surface3_driver_init': surface3_button.c:(.init.text+0x75cb0): undefined reference to `i2c_register_driver' drivers/built-in.o: In f

Re: [PATCH v3 1/5] include: Add definitions for sed

2016-12-27 Thread Scott Bauer
On Sun, Dec 25, 2016 at 03:15:53PM +0100, Jethro Beekman wrote: > On 19-12-16 20:35, Scott Bauer wrote: > > diff --git a/include/linux/sed.h b/include/linux/sed.h > > > > +/* > > + * These constant values come from: > > + * TCG Storage Architecture Core Spec v2.01 r1 > > + * Section: 3.3 Interface

Re: [PATCH v3 4/5] nvme: Implement resume_from_suspend and SED Allocation code.

2016-12-27 Thread Scott Bauer
On Sun, Dec 25, 2016 at 03:15:52PM +0100, Jethro Beekman wrote: > On 19-12-16 20:35, Scott Bauer wrote: > > @@ -1796,6 +1797,13 @@ static void nvme_reset_work(struct work_struct *work) > > if (result) > > goto out; > > > > + result = nvme_opal_initialize(&dev->ctrl); > > + if

Re: [PATCH v4 3/5] pinctrl: aspeed-g4: Add mux configuration for all pins

2016-12-27 Thread Linus Walleij
On Tue, Dec 20, 2016 at 8:35 AM, Andrew Jeffery wrote: > The patch introducing the g4 pinctrl driver implemented a smattering of > pins to flesh out the implementation of the core and provide bare-bones > support for some OpenPOWER platforms. Now, update the bindings document > to reflect the com

Re: [PATCH v4 2/5] pinctrl: aspeed: Read and write bits in LPC and GFX controllers

2016-12-27 Thread Linus Walleij
On Tue, Dec 20, 2016 at 8:35 AM, Andrew Jeffery wrote: > The System Control Unit IP block in the Aspeed SoCs is typically where > the pinmux configuration is found, but not always. A number of pins > depend on state in one of LPC Host Control (LHC) or SoC Display > Controller (GFX) IP blocks, so

Re: [PATCH] i2c: i801: Register optional lis3lv02d i2c device on Dell machines

2016-12-27 Thread Andy Shevchenko
On Tue, Dec 27, 2016 at 3:51 PM, Pali Rohár wrote: > On Tuesday 27 December 2016 14:43:49 Wolfram Sang wrote: >> > Dell platform team told us that some (DMI whitelisted) Dell >> > Latitude machines have ST microelectronics accelerometer at i2c >> > address 0x29. That >> > i2c address is not specif

Re: [PATCH] staging: octeon: Call SET_NETDEV_DEV()

2016-12-27 Thread Florian Fainelli
On 12/20/2016 07:20 PM, David Miller wrote: > From: Florian Fainelli > Date: Tue, 20 Dec 2016 17:02:37 -0800 > >> On 12/14/2016 05:13 PM, Florian Fainelli wrote: >>> The Octeon driver calls into PHYLIB which now checks for >>> net_device->dev.parent, so make sure we do set it before calling into

Re: [PATCH v4 1/5] pinctrl: aspeed: dt: Fix compatibles for the System Control Unit

2016-12-27 Thread Linus Walleij
On Tue, Dec 20, 2016 at 8:35 AM, Andrew Jeffery wrote: > Reference the SoC-specific compatible string in the examples as > required. > > Signed-off-by: Andrew Jeffery Patch applied with the ACKs. Yours, Linus Walleij

Re: [RFC v2 2/3] pinctrl: imx: use radix trees for groups and functions

2016-12-27 Thread Linus Walleij
On Fri, Dec 2, 2016 at 5:35 PM, Gary Bisson wrote: > This change is inspired from the pinctrl-single architecture. > > The problem with current implementation is that it isn't possible > to add/remove functions and/or groups dynamically. The radix tree > offers an easy way to do so. The intent is

  1   2   3   4   >