[PATCH 4/5] android: binder: Add global lru shrinker to binder

2017-08-15 Thread Sherry Yang
Hold on to the pages allocated and mapped for transaction buffers until the system is under memory pressure. When that happens, use linux shrinker to free pages. Without using shrinker, patch "android: binder: Move buffer out of area shared with user space" will cause a significant slow down for sm

[PATCH 3/5] android: binder: Move buffer out of area shared with user space

2017-08-15 Thread Sherry Yang
Binder driver allocates buffer meta data in a region that is mapped in user space. These meta data contain pointers in the kernel. This patch allocates buffer meta data on the kernel heap that is not mapped in user space, and uses a pointer to refer to the data mapped. Change-Id: Ie19d2393a5015d9

[PATCH 5/5] android: binder: Add shrinker tracepoints

2017-08-15 Thread Sherry Yang
Add tracepoints in binder transaction allocator to record lru hits and alloc/free page. Change-Id: I7715f943c57d6172c35bdff8298d8c5aef24a51a Signed-off-by: Sherry Yang --- drivers/android/binder_alloc.c | 27 +++-- drivers/android/binder_trace.h | 55 +

[PATCH 2/5] android: binder: Add allocator selftest

2017-08-15 Thread Sherry Yang
binder_alloc_selftest tests that alloc_new_buf handles page allocation and deallocation properly when allocate and free buffers. The test allocates 5 buffers of various sizes to cover all possible page alignment cases, and frees the buffers using a list of exhaustive freeing order. Test: boot the

[PATCH 0/5] android: binder: move allocator metadata and add shrinker

2017-08-15 Thread Sherry Yang
This patch set moves internal kernel data in the binder driver out of mmap regions that is readable by user space. A shrinker is added to the driver to dynamically manage the memory used by binder transactions and only free pages when the system is under memory pressure. This patch set also adds te

Re: [PATCH 3/3] x86/efi: Use efi_switch_mm() rather than manually twiddling with cr3

2017-08-15 Thread Sai Praneeth Prakhya
On Tue, 2017-08-15 at 14:46 -0700, Andy Lutomirski wrote: > On Tue, Aug 15, 2017 at 12:18 PM, Sai Praneeth Prakhya > wrote: > > +/* > > + * Makes the calling kernel thread switch to/from efi_mm context > > + * Can be used from SetVirtualAddressMap() or during efi runtime calls > > + * (Note: This

Re: [PATCH 2/2] Revert "pstore: Honor dmesg_restrict sysctl on dmesg dumps"

2017-08-15 Thread Kees Cook
On Tue, Aug 15, 2017 at 5:21 PM, Steven Rostedt wrote: > On Thu, 10 Aug 2017 13:36:35 -0700 > Kees Cook wrote: > >> This reverts commit 68c4a4f8abc60c9440ede9cd123d48b78325f7a3, with >> various conflict clean-ups. >> >> With the default root directory mode set to 0750 now, the capability >> check

Re: [PATCH 0/3] extcon: Clean-up the description and indentation of functions

2017-08-15 Thread Chanwoo Choi
On 2017년 07월 17일 10:30, Chanwoo Choi wrote: > These patches just clean-up code for extcon functions. > > Firstly, patch2 modifies the description for functions/structures > in order to improve the readability and guide the role of > functions more well. > > Second, the extcon header file defines

Re: [PATCH 2/2] Revert "pstore: Honor dmesg_restrict sysctl on dmesg dumps"

2017-08-15 Thread Steven Rostedt
On Tue, 15 Aug 2017 17:29:38 -0700 Kees Cook wrote: > On Tue, Aug 15, 2017 at 5:21 PM, Steven Rostedt wrote: > > On Thu, 10 Aug 2017 13:36:35 -0700 > > Kees Cook wrote: > > > >> This reverts commit 68c4a4f8abc60c9440ede9cd123d48b78325f7a3, with > >> various conflict clean-ups. > >> > >> With

Re: [RFC PATCH v5 0/5] vfio-pci: Add support for mmapping MSI-X table

2017-08-15 Thread Benjamin Herrenschmidt
On Tue, 2017-08-15 at 10:37 -0600, Alex Williamson wrote: > Of course I don't think either of those are worth imposing a > performance penalty where we don't otherwise need one. However, if we > look at a VM scenario where the guest is following the PCI standard for > programming MSI-X interrupts

[PATCH 3/5] reset: Add Realtek RTD1295 driver

2017-08-15 Thread Andreas Färber
Add a per-register reset controller driver. This deals with the fact that not all registers are adjoined. Signed-off-by: Andreas Färber --- drivers/reset/Kconfig | 6 +++ drivers/reset/Makefile| 1 + drivers/reset/reset-rtd129x.c | 100

[PATCH 1/5] dt-bindings: reset: Add Realtek RTD1295

2017-08-15 Thread Andreas Färber
Add binding for Realtek RTD1295 reset controller. Signed-off-by: Andreas Färber --- .../bindings/reset/realtek,rtd129x-reset.txt | 18 include/dt-bindings/reset/realtek,rtd1295.h| 112 + 2 files changed, 130 insertions(+) create mode 100644 Documentation

Re: [PATCH v6 1/2] sched/deadline: Add support for SD_PREFER_SIBLING on find_later_rq()

2017-08-15 Thread Byungchul Park
On Tue, Aug 15, 2017 at 11:19:40AM -0400, Steven Rostedt wrote: > > @@ -1385,6 +1407,17 @@ static int find_later_rq(struct task_struct *task) > > * already under consideration through later_mask. > > */ > > if (best_cpu < nr_cpu_ids) { >

[PATCH 5/5] arm64: dts: realtek: Adopt RTD1295 reset constants

2017-08-15 Thread Andreas Färber
Replace reset controller indices with constants. Signed-off-by: Andreas Färber --- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/boot/dts/realtek/rtd1295.dtsi index e77720

[PATCH 2/5] arm64: dts: realtek: Add RTD1295 reset controller nodes

2017-08-15 Thread Andreas Färber
Add nodes for the Realtek RTD1295 reset controllers. Signed-off-by: Andreas Färber --- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 30 ++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/boot/dts/realtek/rtd1295.dtsi

[PATCH 4/5] arm64: dts: realtek: Add RTD1295 UART resets

2017-08-15 Thread Andreas Färber
Associate the UART nodes with the corresponding reset controller bits. Signed-off-by: Andreas Färber --- arch/arm64/boot/dts/realtek/rtd1295.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/realtek/rtd1295.dtsi b/arch/arm64/boot/dts/realtek/rtd1295.dtsi index 9f1d

[PATCH 0/5] arm64: Realtek RTD1295 reset controllers

2017-08-15 Thread Andreas Färber
Hello, This series adds reset controllers for the Realtek RTD1295 SoC. Since there is still no public source code for RTD1295, the individual resets were derived from reset-names in the vendor DT; the implementation was a guess. More experimental patches at: https://github.com/afaerber/linux/com

Re: [PATCH] devicetree: Enable generation of __symbols__ in all dtb files

2017-08-15 Thread Tom Rini
On Tue, Aug 15, 2017 at 04:50:40PM -0700, Frank Rowand wrote: > On 08/15/17 14:15, Tom Rini wrote: > > With support for stacked overlays being part of libfdt it is now > > possible and likely that overlays which require __symbols__ will be > > applied to the dtb files generated by the kernel. This

Re: [PATCH 3/3] x86/efi: Use efi_switch_mm() rather than manually twiddling with cr3

2017-08-15 Thread Andy Lutomirski
On Tue, Aug 15, 2017 at 5:23 PM, Sai Praneeth Prakhya wrote: > On Tue, 2017-08-15 at 14:46 -0700, Andy Lutomirski wrote: >> On Tue, Aug 15, 2017 at 12:18 PM, Sai Praneeth Prakhya >> wrote: >> > +/* >> > + * Makes the calling kernel thread switch to/from efi_mm context >> > + * Can be used from Se

Re: [PATCH v3] Fix missing PCI ID; Necessary for Lenovo Yoga 720-15 Touchpad.

2017-08-15 Thread Daniel Axtens
Hi all, This has worked its way from a pull request on GitHub through to this patch, which is a great credit to the determination and effort of Florian. I think it's an excellent first contribution. Reviewed-by: Daniel Axtens Regards, Daniel Hoeze writes: > From: Hoeze > > This patch adds

[GIT] Networking

2017-08-15 Thread David Miller
1) Fix TCP checksum offload handling in iwlwifi driver, from Emmanuel Grumbach. 2) In ksz DSA tagging code, free SKB if skb_put_padto() fails. From Vivien Didelot. 3) Fix two regressions with bonding on wireless, from Andreas Born. 4) Fix build when busypoll is disabled, from Daniel Bork

[PATCH 2/2] x86/intel_rdt/cqm: Improve limbo list processing

2017-08-15 Thread Vikas Shivappa
During a mkdir, we synchronously check the entire limbo list on each package for free RMIDs by sending IPIs and the worst case would end up taking more than tolerable amount of time in IPIs. For ex: On SKL we could end up reading all 192 RMIDs for llc_occupancy. Modify this to make some improvemen

[PATCH 0/2 V4] Cqm3 support based on resctrl along with MBM

2017-08-15 Thread Vikas Shivappa
Sending some fixes to V3 as per discussions with Thomas. This is on top of the merged patches in tip and contains the following: - a fix to MBM hot cpu handling to avoid doubling of the overflow timer interval. - some changes to the limbo RMID processing patch to make corrections to handle th

[PATCH 1/2] x86/intel_rdt/mbm: Fix MBM overflow handler during hot cpu

2017-08-15 Thread Vikas Shivappa
When a CPU is dying, we cancel the worker and schedule a new worker on a different CPU on the same domain. But if the timer is already about to expire (say 0.99s) then we essentially double the interval. We modify the hot cpu handling to cancel the delayed work on the dying cpu and run the worker

Re: [GIT PULL] lkdtm updates for next, part 2

2017-08-15 Thread Greg Kroah-Hartman
On Tue, Aug 15, 2017 at 12:43:16PM -0700, Kees Cook wrote: > Hi Greg, > > Please pull these additional lkdtm changes for next. > > Thanks! > > -Kees > > The following changes since commit c7fea48876773603721f545f8c1a2f894291ef85: > > lkdtm: Provide timing tests for atomic_t vs refcount_t (20

Re: [PATCH v4 3/3] fs, xfs: introduce MAP_DIRECT for creating block-map-sealed file ranges

2017-08-15 Thread Dan Williams
On Tue, Aug 15, 2017 at 9:29 AM, Dan Williams wrote: > On Tue, Aug 15, 2017 at 5:42 AM, Jan Kara wrote: >> On Mon 14-08-17 23:12:22, Dan Williams wrote: >>> diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h >>> index ff151814a02d..73fdc0ada9ee 100644 >>> --- a/include/linux/mm_type

[PATCH v5] ACPI / Sleep: Check low power idle constraints for debug only

2017-08-15 Thread Srinivas Pandruvada
For SoC to achieve its lowest power platform idle state a set of hardware preconditions must be met. These preconditions or constraints can be obtained by issuing a device specific method (_DSM) with function "1". Refer to the document provided in the link below. Here during initialization (from a

Re: [PATCH] f2fs: let fill_super handle roll-forward errors

2017-08-15 Thread Chao Yu
On 2017/8/16 0:42, Jaegeuk Kim wrote: > On 08/15, Chao Yu wrote: >> On 2017/8/15 11:22, Jaegeuk Kim wrote: >>> On 08/15, Chao Yu wrote: Hi Jaegeuk, On 2017/8/11 8:42, Jaegeuk Kim wrote: > If we set CP_ERROR_FLAG in roll-forward error, f2fs is no longer to > proceed > any

Re: [PATCH] cpuset: Allow v2 behavior in v1 cgroup

2017-08-15 Thread Zefan Li
On 2017/8/16 1:27, Waiman Long wrote: > Cpuset v2 has some valuable attributes that are not present in > v1 because of backward compatibility concern. One of that is the > restoration of the original cpu and memory node mask after a hot > removal and addition event sequence. > > This patch adds a

Re: [PATCH v10 00/12] Fix the on-flight DMA issue on system with amd iommu

2017-08-15 Thread Baoquan He
On 08/15/17 at 06:18pm, Joerg Roedel wrote: > On Wed, Aug 09, 2017 at 04:33:32PM +0800, Baoquan He wrote: > > Baoquan He (12): > > iommu/amd: Detect pre enabled translation > > iommu/amd: add several helper functions > > Revert "iommu/amd: Suppress IO_PAGE_FAULTs in kdump kernel" > > iommu/

Re: [PATCH v6 1/2] sched/deadline: Add support for SD_PREFER_SIBLING on find_later_rq()

2017-08-15 Thread Steven Rostedt
On Wed, 16 Aug 2017 09:38:11 +0900 Byungchul Park wrote: > On Tue, Aug 15, 2017 at 11:19:40AM -0400, Steven Rostedt wrote: > > > @@ -1385,6 +1407,17 @@ static int find_later_rq(struct task_struct *task) > > >* already under consideration through later_mask. > > >

Re: [PATCH 1/6] ARM: dts: uniphier: remove sLD3 SoC support

2017-08-15 Thread Masahiro Yamada
2017-08-10 1:43 GMT+09:00 Masahiro Yamada : > This SoC is too old. It is difficult to maintain any longer. > > Signed-off-by: Masahiro Yamada Applied to linux-uniphier. -- Best Regards Masahiro Yamada

Re: [PATCH 2/6] ARM: dts: uniphier use #incluude instead of /include/

2017-08-15 Thread Masahiro Yamada
2017-08-10 1:43 GMT+09:00 Masahiro Yamada : > To include dt-bindings headers. > > Signed-off-by: Masahiro Yamada With a type (incluude -> include) fixed, applied to linux-uniphier. -- Best Regards Masahiro Yamada

Re: [PATCH v2 0/5] usb: Replace the deprecated extcon API

2017-08-15 Thread Chanwoo Choi
Dear Kishon and Felipe, I applied these patches on extcon-next branch for v4.14-rc1. And I created the immutable branch ('ib-extcon-usb-phy-4.14') and send the pull-request for these patches in order to prevent the merge conflict. Best Regards, Chanwoo Choi The following changes since commit 5

Re: [PATCH -next 1/2] zram: fix compr_data_size stat

2017-08-15 Thread Minchan Kim
On Mon, Aug 14, 2017 at 06:44:06PM +0800, Yisheng Xie wrote: > The compr_data_size is a stat for compressed size of pages stored, which > should be updated when we compresse a page. > > Meanwhile fix a typo in comment: > * read_from_bdev_async() return 1 to avoid call page_endio() in zram_rw_page(

Re: [PATCH -next 2/2] zram: fix typo in comment

2017-08-15 Thread Minchan Kim
On Mon, Aug 14, 2017 at 06:44:07PM +0800, Yisheng Xie wrote: > ZRAM_SAME means page consists the same element not the entirely zero page. > > Signed-off-by: Yisheng Xie Acked-by: Minchan Kim Thanks!

Re: [PATCH 3/6] arm64: dts: uniphier: use #include instead of /include/

2017-08-15 Thread Masahiro Yamada
2017-08-10 1:43 GMT+09:00 Masahiro Yamada : > To include dt-bindings headers. > > Signed-off-by: Masahiro Yamada Applied to linux-uniphier. -- Best Regards Masahiro Yamada

[RESEND v9 02/12] mfd: rk808: add rk805 regs addr and ID

2017-08-15 Thread Joseph Chen
From: Elaine Zhang Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-for-MFD-by: Lee Jones --- include/linux/mfd/rk808.h | 120 ++ 1 file changed, 120 insertions(+) diff --git a/include/linux/mfd/rk808.h b/include/linux/mfd/rk808.h index

[RESEND v9 00/12] rk808: Add RK805 support

2017-08-15 Thread Joseph Chen
change in RESEND v9: None changes, add Lee Jones and other related email address. change in v9: PATCH V9 1/12: (1) fix spelling issue: s/Chip/chip/ (2) apply tag: Acked-for-MFD-by: Lee Jones PATCH V9 2/12: apply tag: Acked-for-MFD-by: Lee Jones PATCH V9 3/12: None PATCH V9 4/12: a

[RESEND v9 01/12] mfd: rk808: fix up the chip id get failed

2017-08-15 Thread Joseph Chen
From: Elaine Zhang the rk8xx chip id is: ((MSB << 8) | LSB) & 0xfff0 Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-for-MFD-by: Lee Jones --- drivers/mfd/rk808.c | 21 +++-- include/linux/mfd/rk808.h | 1 + 2 files changed, 16 insertions(+), 6 deletions(-

[RESEND v9 03/12] regulator: rk808: Add regulator driver for RK805

2017-08-15 Thread Joseph Chen
From: Elaine Zhang Add support for the rk805 regulator. The regulator module consists of 4 DCDCs, 3 LDOs. The output voltages are configurable and are meant to supply power to the main processor and other components. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-by: Mark Brown

[RESEND v9 04/12] mfd: rk808: Add RK805 support

2017-08-15 Thread Joseph Chen
From: Elaine Zhang The RK805 chip is a Power Management IC (PMIC) for multimedia and handheld devices. It contains the following components: - Regulators - RTC - Clocking Both RK808 and RK805 chips are using a similar register map, so we can reuse the RTC and Clocking functionality.

[RESEND v9 05/12] clk: Kconfig: Name RK805 in Kconfig for COMMON_CLK_RK808

2017-08-15 Thread Joseph Chen
From: Elaine Zhang The RK808 and RK805 PMICs are using a similar register map. We can reuse the clk driver for the RK805 PMIC. So let's add the RK805 in the Kconfig description. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen --- drivers/clk/Kconfig | 4 ++-- 1 file changed, 2 insertio

[RESEND v9 07/12] mfd: dt-bindings: Add RK805 device tree bindings document

2017-08-15 Thread Joseph Chen
From: Elaine Zhang Add device tree bindings documentation for Rockchip's RK805 PMIC. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen Acked-by: Rob Herring Acked-for-MFD-by: Lee Jones --- Documentation/devicetree/bindings/mfd/rk808.txt | 22 +- 1 file changed, 21 i

[RESEND v9 06/12] rtc: Kconfig: Name RK805 in Kconfig for RTC_DRV_RK808

2017-08-15 Thread Joseph Chen
From: Elaine Zhang The RK808 and RK805 PMICs are using a similar register map. We can reuse the rtc driver for the RK805 PMIC. So let's add the RK805 in the Kconfig description. Signed-off-by: Elaine Zhang Signed-off-by: Joseph Chen --- drivers/rtc/Kconfig | 4 ++-- 1 file changed, 2 insertio

[RESEND v9 10/12] mfd: rk808: Add RK805 pinctrl support

2017-08-15 Thread Joseph Chen
Signed-off-by: Joseph Chen Acked-by: Linus Walleij Acked-for-MFD-by: Lee Jones --- drivers/mfd/rk808.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c index 18329c8..c803d2d 100644 --- a/drivers/mfd/rk808.c +++ b/drivers/mfd/rk808.c @@ -97,6 +97,7 @

[RESEND v9 08/12] pinctrl: Add pinctrl driver for the RK805 PMIC

2017-08-15 Thread Joseph Chen
RK805 is one of Rockchip PMICs family, it has 2 output only GPIOs. This driver is also designed for other Rockchip PMICs to expend. Different PMIC maybe have different pin features, for example, RK816 has one pin which can be used for TS or GPIO(input/out). The mainly difference between PMICs pins

[RESEND v9 09/12] Input: Add power key driver for Rockchip RK805 PMIC

2017-08-15 Thread Joseph Chen
This driver provides a input driver for the power key on the Rockchip RK805 PMIC. Signed-off-by: Joseph Chen --- drivers/input/misc/Kconfig| 6 +++ drivers/input/misc/Makefile | 1 + drivers/input/misc/rk805-pwrkey.c | 111 ++ 3 files changed

<    4   5   6   7   8   9