Re: [PATCH] ext4: Return EIO on read error in ext4_find_entry

2017-06-22 Thread Andreas Dilger
On Jun 22, 2017, at 22:43, Theodore Ts'o wrote: > >> On Thu, Jun 22, 2017 at 04:23:07PM -0700, Khazhismel Kumykov wrote: >> Previously, a read error would be ignored and we would eventually return >> NULL from ext4_find_entry, which signals "no such file or directory". We >> should be returning E

Re: [kernel-hardening] [PATCH 2/4] arm64: Reduce ELF_ET_DYN_BASE

2017-06-22 Thread Ard Biesheuvel
Hi Kees, On 22 June 2017 at 18:06, Kees Cook wrote: > Now that explicitly executed loaders are loaded in the mmap region, > position PIE binaries lower in the address space to avoid possible > collisions with mmap or stack regions. For 64-bit, align to 4GB to > allow runtimes to use the entire 32

Re: [PATCH 7/7] crypto: caam: cleanup CONFIG_64BIT ifdefs when using io{read|write}64

2017-06-22 Thread Horia Geantă
On 6/22/2017 7:49 PM, Logan Gunthorpe wrote: > Now that ioread64 and iowrite64 are always available we don't > need the ugly ifdefs to change their implementation when they > are not. > Thanks Logan. Note however this is not equivalent - it changes the behaviour, since CAAM engine on i.MX6S/SL/D/

Re: [PATCH 0/2] x86/idle: add halt poll support

2017-06-22 Thread Yang Zhang
On 2017/6/23 12:35, Wanpeng Li wrote: 2017-06-23 12:08 GMT+08:00 Yang Zhang : On 2017/6/22 19:50, Wanpeng Li wrote: 2017-06-22 19:22 GMT+08:00 root : From: Yang Zhang Some latency-intensive workload will see obviously performance drop when running inside VM. The main reason is that the ove

Re: [PATCH v2 2/2] crypto: engine - Permit to enqueue skcipher request

2017-06-22 Thread Herbert Xu
On Mon, Jun 19, 2017 at 09:55:24AM +0200, Corentin Labbe wrote: > > Since there are two different user of "crypto engine + ablkcipher", it will > be not easy to convert them in one serie. (I could do it, but I simply could > not test it for OMAP (lack of hw)) > And any new user which want to use

RE: linux-next: build failure after merge of most trees

2017-06-22 Thread yamada.masahiro
Hi Stephen, > -Original Message- > From: Stephen Rothwell [mailto:s...@canb.auug.org.au] > Sent: Friday, June 23, 2017 3:43 PM > To: David Miller > Cc: npig...@gmail.com; linux-n...@vger.kernel.org; > linux-kernel@vger.kernel.org; Yamada, Masahiro/山田 真弘 > ; amo...@gmail.com > Subject: Re

[PATCH] crypto: brcm - Fix SHA3-512 algorithm failure

2017-06-22 Thread Raveendra Padasalagi
In Broadcom SPU driver, due to missing break statement in spu2_hash_xlate() while mapping SPU2 equivalent SHA3-512 value, -EINVAL is chosen and hence leading to failure of SHA3-512 algorithm. This patch fixes the same. Signed-off-by: Raveendra Padasalagi Reviewed-by: Ray Jui Reviewed-by: Scott B

Re: [PATCH] compiler, clang: Add always_inline attribute to inline

2017-06-22 Thread Sodagudi Prasad
On 2017-06-22 02:43, Mark Rutland wrote: On Tue, Jun 20, 2017 at 04:12:32PM -0700, David Rientjes wrote: On Tue, 20 Jun 2017, Mark Rutland wrote: > As with my reply to David, my preference would be that we: > > 1) Align compiler-clang.h with the compiler-gcc.h inlining behaviour, so >that t

Re: linux-next: build failure after merge of most trees

2017-06-22 Thread Stephen Rothwell
Hi all, On Thu, 22 Jun 2017 10:56:48 -0400 (EDT) David Miller wrote: > > Feel free to merge it into your series: > > > sparc64: Use indirect calls in hamming weight stubs. > > Otherwise, depending upon link order, the branch relocation > limits could be exceeded. > > Sign

[PATCH v2] f2fs: introduce reserved_blocks in sysfs

2017-06-22 Thread Chao Yu
In this patch, we add a new sysfs interface, with it, we can control number of reserved blocks in system which could not be used by user, it enable f2fs to let user to configure for adjusting over-provision ratio dynamically instead of changing it by mkfs. So we can expect it will help to reserve

[PATCH] staging: unisys: visorbus: constify visorchipset_parahotplug_group

2017-06-22 Thread Arvind Yadav
File size before: textdata bss dec hex filename 11058 816 24 118982e7a drivers/staging/unisys/visorbus/visorchipset.o File size After adding 'const': textdata bss dec hex filename 11122 752 24 118982e7a drivers/staging/unisy

RE: [PATCH] ACPI / sleep: EC-based wakeup from suspend-to-idle on recent systems

2017-06-22 Thread Zheng, Lv
Hi, Rafael > From: Rafael J. Wysocki [mailto:r...@rjwysocki.net] > Subject: [PATCH] ACPI / sleep: EC-based wakeup from suspend-to-idle on recent > systems > > From: Rafael J. Wysocki > > Some recent Dell laptops, including the XPS13 model numbers 9360 and > 9365, cannot be woken up from suspen

[PATCH] RAS: Fix an error checking test in 'create_debugfs_nodes()'

2017-06-22 Thread Christophe JAILLET
'decay' is kwown to be not NULL at this point. 'count' should be tested instead. Fixes: 011d82611172 ("RAS: Add a Corrected Errors Collector") Signed-off-by: Christophe JAILLET --- drivers/ras/cec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ras/cec.c b/drivers/r

Re: [PATCH v9 3/3] iommu/arm-smmu-v3: Add workaround for Cavium ThunderX2 erratum #126

2017-06-22 Thread Geetha Akula
On Thu, Jun 22, 2017 at 11:52 PM, Will Deacon wrote: > Hi Geetha, > > On Thu, Jun 22, 2017 at 05:35:38PM +0530, Geetha sowjanya wrote: >> From: Geetha Sowjanya >> >> Cavium ThunderX2 SMMU doesn't support MSI and also doesn't have unique irq >> lines for gerror, eventq and cmdq-sync. >> >> New nam

linux-next: BUG: Bad page state in process ip6tables-save pfn:1499f4

2017-06-22 Thread Andrei Vagin
34495] raw: dead0100 dead0200 [ 699.242359] page dumped because: nonzero _count [ 699.247006] Modules linked in: [ 699.247022] CPU: 0 PID: 19609 Comm: ip6tables-save Not tainted 4.12.0-rc6-next-20170622 #1 [ 699.247029] Hardware name: Google G

[PATCH] nvme: explicitly disable APST on quirked devices

2017-06-22 Thread Kai-Heng Feng
A user reports APST is enabled, even when the NVMe is quirked or with option "default_ps_max_latency_us=0". The current logic will not set APST if the device is quirked. But the NVMe in question will enable APST automatically. Separate the logic "apst is supported" and "to enable apst", so we can

[PATCH v9 3/3] iommu/arm-smmu-v3: Add workaround for Cavium ThunderX2 erratum #126

2017-06-22 Thread Geetha sowjanya
From: Geetha Sowjanya Cavium ThunderX2 SMMU doesn't support MSI and also doesn't have unique irq lines for gerror, eventq and cmdq-sync. New named irq "combined" is set as a errata workaround, which allows to share the irq line by register single irq handler for all the interrupts. Signed-off-b

[PATCH v1] xen/input: add multi-touch support

2017-06-22 Thread Oleksandr Andrushchenko
From: Oleksandr Andrushchenko Extend xen_kbdfront to provide multi-touch support to unprivileged domains. Signed-off-by: Oleksandr Andrushchenko --- Changes since initial: - use input_set_capability instead of setting flags directly - input_mt_init_slots: let userspace better chance of figur

[PATCH] usb: core: sysfs: constify attribute_group

2017-06-22 Thread Arvind Yadav
File size before: textdata bss dec hex filename 67982848 4965025b2 drivers/usb/core/sysfs.o File size After adding 'const': textdata bss dec hex filename 72302400 4963425a2 drivers/usb/core/sysfs.o Signed-off-by: Arvi

[GIT PULL] sound fixes for 4.12-rc7

2017-06-22 Thread Takashi Iwai
Linus, please pull sound fixes for v4.12-rc7 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-4.12-rc7 The topmost commit is c7ecb9068e6772c43941ce609f08bc53f36e1dce sound fixes for 4.12-rc7 Noth

[no subject]

2017-06-22 Thread Administrator
PERHATIAN Kotak surat Anda telah melebihi batas penyimpanan, yaitu 5 GB seperti yang didefinisikan oleh administrator, yang saat ini berjalan pada 10.9GB, Anda mungkin tidak dapat mengirim atau menerima surat baru sampai Anda kembali memvalidasi email mailbox Anda. Untuk memvalidasi ulang kot

Re: [PATCH 1/7] platform/x86: fujitsu-laptop: do not use kfifo for storing hotkey scancodes

2017-06-22 Thread Darren Hart
On Fri, Jun 23, 2017 at 09:44:58AM +0930, Jonathan Woithe wrote: > On Thu, Jun 22, 2017 at 04:58:09PM -0700, Darren Hart wrote: > > On Thu, Jun 22, 2017 at 10:46:19PM +0200, Micha?? K??pie?? wrote: > > > > The events seen by userspace with the original code would be "A-press", > > > > "B-press", "A

Re: [PATCH 5/7] platform/x86: fujitsu-laptop: do not update ACPI device power status

2017-06-22 Thread Darren Hart
On Fri, Jun 23, 2017 at 09:46:59AM +0930, Jonathan Woithe wrote: > Thanks. In case it was missed, I supplied my reviewed-by message and > sign-off in an earlier post. Yup, got it - thanks! -- Darren Hart VMware Open Source Technology Center

[PATCH/RFC 9/9] perf record: Add --module-dir option

2017-06-22 Thread Namhyung Kim
Currently perf only searches module binaries on the canonical directory (/lib/modules/`uname -r`). But sometimes user needs to load local modules. These cannot be copied to the build-id cache since long name (i.e. real path) of DSOs was not set. This patch fixes the problem by adding a new --mod

[PATCH/RFC 4/9] perf symbols: Load kernel module symbols ASAP

2017-06-22 Thread Namhyung Kim
When loading kernel symbols from /proc/kallsyms, it might have different addresses for modules. We should honor the mmap event recorded in a perf.data so load the module symbols when it sees the event so that it cannot be overridden by symbols in /proc/kallsyms later. Cc: Adrian Hunter Cc: Wang

[PATCHSET/RFC 0/9] perf tools: Support out-of-tree modules

2017-06-22 Thread Namhyung Kim
Hello, Currently perf loads modules only in the canonical directory (/lib/modules/`uname -r`/). But in some situation users want to use local or out-of-tree modules which are not placed in the directory. One example is developing kernel in a qemu environment. In this case, guest doesn't see vml

[PATCH/RFC 7/9] perf tools: Add symbol_conf.use_kcore

2017-06-22 Thread Namhyung Kim
The use_kcore field is to control usage of /proc/kcore when loading symbols. This patch only introduces the new field and don't change any behavior by itself. Cc: Adrian Hunter Cc: Wang Nan Signed-off-by: Namhyung Kim --- tools/perf/util/symbol.c | 3 ++- tools/perf/util/symbol.h | 3 ++- 2 f

[PATCH/RFC 6/9] perf symbols: Use already loaded module dso when loading kcore

2017-06-22 Thread Namhyung Kim
Even every module has loaded onto same addresses, some modules can be changed and reloaded. In that case it needs to access to the old module in the build-id cache. Cc: Adrian Hunter Cc: Wang Nan Signed-off-by: Namhyung Kim --- tools/perf/util/symbol.c | 45 +++

[GIT PULL] extcon next for v4.13

2017-06-22 Thread Chanwoo Choi
Dear Greg, This is extcon-next pull request for v4.13. I add detailed description of this pull request on below. Please pull extcon with following updates. Best Regards, Chanwoo Choi The following changes since commit 08332893e37af6ae779367e78e444f8f9571511d: Linux 4.12-rc2 (2017-05-21 19:30:

[PATCH/RFC 8/9] perf record: Not use kcore by default

2017-06-22 Thread Namhyung Kim
Change perf record not to use /proc/kcore by default. This is for kernel developers who use qemu or kvmtools to test their kernels. On those environment, kernel image was loaded directly by qemu and the vmlinux might not be available on the guest. At the last stage of perf record, it finds hit D

[PATCH/RFC 2/9] perf tools: Remove duplicate code

2017-06-22 Thread Namhyung Kim
The map_groups__set_module_path() is called after machine__create_module() which sets build-id and symtab type already. Also remove is_kmod_dso() as there's no user anymore. Cc: Adrian Hunter Cc: Wang Nan Signed-off-by: Namhyung Kim --- tools/perf/util/machine.c | 15 --- 1 file ch

[PATCH/RFC 3/9] perf symbols: Discard symbols in kallsyms for loaded modules

2017-06-22 Thread Namhyung Kim
If a module is already loaded, it should have symbols and no need to load new symbols from kallsyms. Actually kallsyms can have different addresses if the module was reloaded. Current code just discards the first symbols only, but it should do the same for all symbols in the module. Note that th

Re: next-20170620 BUG in do_page_fault / do_huge_pmd_wp_page

2017-06-22 Thread Naresh Kamboju
00 > [ 315.457335] R13: R14: 0001 R15: > 7fe155413000 > [ 315.457354] Disabling lock debugging due to kernel taint > > > This bug occurred on HiKey (arm64) while booting. Here is the boot log, Linux version: --- Linux version

Re: [PATCH v2 0/6] mediatek: pwm driver add MT2712/MT7622 support

2017-06-22 Thread John Crispin
On 23/06/17 07:08, Zhi Mao wrote: change in v2: 1. add error check for enable colock control flow 2. use "goto err_clk(main/top)" coding style, for preparing clk error case 3. remove comments inline /*===*/ 4. move "PWM_CLK_DIV_MAX" modification to its own patch 5. move pwm source clock selecti

[PATCH/RFC 1/9] perf symbols: Use absolute address to fixup map address

2017-06-22 Thread Namhyung Kim
A symbol address is relative in a map/dso, to setup modules addresses it should be converted to absolute address. Note that it only used for kernel mappings which uses identity map but theorically it should unmap the address IMHO. Cc: Adrian Hunter Cc: Wang Nan Signed-off-by: Namhyung Kim ---

[PATCH/RFC 5/9] perf symbols: Fixup the end address of kernel map properly

2017-06-22 Thread Namhyung Kim
When /proc/kallsyms is used for kernel address, addresses in module can be changed when the module is reloaded. So if one did perf record with some module and then for some reason reload the module. Then perf report might see a different address for the module and the output can show incorrect sy

Re: enabling COMPILE_TEST support for GCC plugins in v4.11

2017-06-22 Thread Michael Ellerman
[Old thread just popped up in my inbox] Kees Cook writes: > On Thu, Dec 8, 2016 at 5:52 PM, Paul Gortmaker > wrote: >> On Thu, Dec 8, 2016 at 2:00 PM, Kees Cook wrote: >>> Hi, >>> >>> I'd like to get the GCC plugins building under >>> allyesconfig/allmodconfig for -next soon (with the intention

[PATCH] fbdev: omapfb: constify ctrl_caps, color_caps, panel_attr_grp and ctrl_attr_grp

2017-06-22 Thread Arvind Yadav
File size before: textdata bss dec hex filename 130071536 156 14699396b drivers/video/fbdev/omap/omapfb_main.o File size After adding 'const': textdata bss dec hex filename 131351408 156 14699396b drivers/video/fbdev/omap/omapfb

Re: [PATCH v2 13/14] drm: stm: remove dead code and pointless local lut storage

2017-06-22 Thread Peter Rosin
On 2017-06-22 13:49, Philippe CORNU wrote: > On 06/22/2017 08:06 AM, Peter Rosin wrote: >> The redundant fb helper .load_lut is no longer used, and can not >> work right without also providing the fb helpers .gamma_set and >> .gamma_get thus rendering the code in this driver suspect. >> > > Hi Pet

[PATCH] omapfb: panel-dsi-cm: constify dsicm_attr_group

2017-06-22 Thread Arvind Yadav
File size before: textdata bss dec hex filename 4657 464 051211401 drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.o File size After adding 'const': textdata bss dec hex filename 4713 400 0511313f9 drivers/vid

[git pull] drm fixes for v4.12-rc7

2017-06-22 Thread Dave Airlie
Hi Linus, A varied bunch of fixes, one for an API regression with connectors, otherwise amdgpu and i915 have a bunch of varied fixes, the shrinker ones being the most important. Dave. The following changes since commit 41f1830f5a7af77cf5c86359aba3cbd706687e52: Linux 4.12-rc6 (2017-06-19 22:19

[PATCH v2 4/6] pwm: bindings: add MT2712/MT7622 information

2017-06-22 Thread Zhi Mao
add MT2712/MT7622 pwm information Signed-off-by: Zhi Mao --- .../devicetree/bindings/pwm/pwm-mediatek.txt |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/pwm/pwm-mediatek.txt b/Documentation/devicetree/bindings/pwm/pwm-mediatek

[PATCH] char: ipmi: constify bmc_dev_attr_group and bmc_device_type

2017-06-22 Thread Arvind Yadav
File size before: textdata bss dec hex filename 256781024 92 2679468aa drivers/char/ipmi/ipmi_msghandler.o File size After adding 'const': textdata bss dec hex filename 25806 896 92 2679468aa drivers/char/ipmi/ipmi_msghandler.

[PATCH v2 1/6] pwm: kconfig: modify mediatek information

2017-06-22 Thread Zhi Mao
modify mediatek information Signed-off-by: Zhi Mao --- drivers/pwm/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index 313c107..45cdf2a 100644 --- a/drivers/pwm/Kconfig +++ b/drivers/pwm/Kconfig @@ -300,7 +300,7 @@ config

Re: [PATCH] ext4: check return value of kstrtoull correctly in reserved_clusters_store

2017-06-22 Thread Theodore Ts'o
On Thu, Jun 15, 2017 at 05:57:30PM +0800, Chao Yu wrote: > kstrtoull returns 0 on success, however, in reserved_clusters_store we > will return -EINVAL if kstrtoull returns 0, it makes us fail to update > reserved_clusters value through sysfs. > > Signed-off-by: Chao Yu > Signed-off-by: Miao Xie

[PATCH V3] acpi: acpica: fix acpi parse and parseext cache leaks

2017-06-22 Thread Seunghun Han
I'm Seunghun Han, and I work for National Security Research Institute of South Korea. I have been doing a research on ACPI and found an ACPI cache leak in ACPI early abort cases. Boot log of ACPI cache leak is as follows: [0.352414] ACPI: Added _OSI(Module Device) [0.353182] ACPI: Added _

[PATCH v2 0/6] mediatek: pwm driver add MT2712/MT7622 support

2017-06-22 Thread Zhi Mao
change in v2: 1. add error check for enable colock control flow 2. use "goto err_clk(main/top)" coding style, for preparing clk error case 3. remove comments inline /*===*/ 4. move "PWM_CLK_DIV_MAX" modification to its own patch 5. move pwm source clock selection to its own patch Zhi Mao (6): pw

[PATCH v2 3/6] pwm: mediatek: fix clock control issue

2017-06-22 Thread Zhi Mao
1. prepare top/main clk in mtk_pwm_probe() function, it will increase power consumption and in original code these clocks is only prepeare but never enabled 2. pwm clock should be enabled before setting pwm registers in function: mtk_pwm_config() 3. delete "pwm_disable" in function:mtk_pwm

[PATCH v2 6/6] pwm: mediatek: add MT2712/MT7622 support

2017-06-22 Thread Zhi Mao
1. support multiple chip(MT2712, MT7622, MT7623) 2. add mtk_pwm_com_reg for match the registers of MT2712 pwm8 the register offset address of pwm8 for MT2712 is not fixed 0x40 and they are not the same as pwm0~6. Signed-off-by: Zhi Mao --- drivers/pwm/pwm-mediatek.c | 55 ++

[PATCH v2 2/6] pwm: mediatek: fix pwm source clock selection

2017-06-22 Thread Zhi Mao
In original code, the pwm output frequency is not correct when set bit<3>=1 to PWMCON register. Signed-off-by: Zhi Mao --- drivers/pwm/pwm-mediatek.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm/pwm-mediatek.c index 5c11bc7..d08b

[PATCH v2 5/6] pwm: mediatek: add PWM_CLK_DIV_MAX

2017-06-22 Thread Zhi Mao
Replace "7" with "PWM_CLK_DIV_MAX" in function:mtk_pwm_config() to improve the code readablity. Signed-off-by: Zhi Mao --- drivers/pwm/pwm-mediatek.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/pwm/pwm-mediatek.c b/drivers/pwm/pwm-mediatek.c index 554a042.

Re: [PATCH] mm/hwpoison: Clear PRESENT bit for kernel 1:1 mappings of poison pages

2017-06-22 Thread Dan Williams
On Wed, Jun 21, 2017 at 1:30 PM, Luck, Tony wrote: >> Persistent memory does have unpoisoning and would require this inverse >> operation - see drivers/nvdimm/pmem.c pmem_clear_poison() and core.c >> nvdimm_clear_poison(). > > Nice. Well this code will need to cooperate with that ... in particula

Re: [PATCH kernel 0/3 REPOST] vfio-pci: Add support for mmapping MSI-X table

2017-06-22 Thread Alexey Kardashevskiy
On 23/06/17 07:11, Alex Williamson wrote: > On Thu, 15 Jun 2017 15:48:42 +1000 > Alexey Kardashevskiy wrote: > >> Here is a patchset which Yongji was working on before >> leaving IBM LTC. Since we still want to have this functionality >> in the kernel (DPDK is the first user), here is a rebase >>

[PATCH 11/11] ARM64: dts: rockchip: Enable gmac2phy for rk3328-evb

2017-06-22 Thread David Wu
Let's enable the gmac2phy, make the gmac2phy work on the rk3328-evb board. Signed-off-by: David Wu --- arch/arm64/boot/dts/rockchip/rk3328-evb.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328-evb.dts b/arch/arm64/boot/dts/rockchip/rk

[PATCH] iommu/arm-smmu-v3, acpi: Add temporary Cavium SMMU-V3 IORT model number definitions

2017-06-22 Thread Robert Richter
On 23.06.17 06:55:41, Robert Richter wrote: > On 22.06.17 22:04:37, Lorenzo Pieralisi wrote: > > On Thu, Jun 22, 2017 at 09:35:35PM +0200, Robert Richter wrote: > > > On 22.06.17 19:58:22, Will Deacon wrote: > > > > On Thu, Jun 22, 2017 at 07:22:57PM +0100, Will Deacon wrote: > > > > > On Thu, Jun

[PATCH 10/11] ARM64: dts: rockchip: Add gmac2phy node support for rk3328

2017-06-22 Thread David Wu
The gmac2phy controller of rk3328 is connected to internal phy directly inside, add the node for the internal phy support. Signed-off-by: David Wu --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/rockc

[PATCH 09/11] ARM: dts: rk3228-evb: Enable the internal phy for gmac

2017-06-22 Thread David Wu
This patch enables the internal phy for rk3228 evb board by default. To use the external 1000M phy on evb board, need to make some switch of evb board to be on. Signed-off-by: David Wu --- arch/arm/boot/dts/rk3228-evb.dts | 20 1 file changed, 20 insertions(+) diff --git a/

[PATCH 08/11] ARM: dts: rk322x: Add support internal phy for gmac

2017-06-22 Thread David Wu
This patch adds internal mac phy clock and internal mac phy reset for rk gmac using. Signed-off-by: David Wu --- arch/arm/boot/dts/rk322x.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi index 48a0c1c..

[PATCH 07/11] net: stmmac: dwmac-rk: Add internal phy supprot for rk3328

2017-06-22 Thread David Wu
There are two mac controllers in the rk3328, the one connects to external phy, and the other one connects to internal phy. Like the mac of external phy, the internal phy's mac also needs to configure the related mac registers at GRF. Signed-off-by: David Wu --- drivers/net/ethernet/stmicro/stmma

[PATCH] char: virtio_console: constify port_attribute_group

2017-06-22 Thread Arvind Yadav
File size before: textdata bss dec hex filename 13775 656 88 1451938b7 drivers/char/virtio_console.o File size After adding 'const': textdata bss dec hex filename 13839 592 88 1451938b7 drivers/char/virtio_console.o Signed-of

[PATCH 06/11] net: stmmac: dwmac-rk: Add internal phy support for rk3228

2017-06-22 Thread David Wu
There is only one mac controller in rk3228, which could connect to external phy or internal phy, use the grf_com_mux bit15 to route external/internal phy. Change-Id: I3a366677047b8032eb535abb0c3e56fa7722aa2e Signed-off-by: David Wu --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 12

[PATCH 05/11] net: stmmac: dwmac-rk: Add internal phy support

2017-06-22 Thread David Wu
To make internal phy worked, need to configure the phy_clock, phy cru_reset and related registers. Change-Id: I6971c0a769754b824b1b908b56080cbaf7867d13 Signed-off-by: David Wu --- .../devicetree/bindings/net/rockchip-dwmac.txt | 3 + drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 82 +

Re: [Devel] [PATCH v9 0/3] Cavium ThunderX2 SMMUv3 errata workarounds

2017-06-22 Thread Robert Richter
On 22.06.17 22:04:37, Lorenzo Pieralisi wrote: > On Thu, Jun 22, 2017 at 09:35:35PM +0200, Robert Richter wrote: > > On 22.06.17 19:58:22, Will Deacon wrote: > > > On Thu, Jun 22, 2017 at 07:22:57PM +0100, Will Deacon wrote: > > > > On Thu, Jun 22, 2017 at 05:35:35PM +0530, Geetha sowjanya wrote: >

Re: [PATCH 0/7] drivers/hwmon: Add On-Chip Controller (OCC) hwmon driver

2017-06-22 Thread Guenter Roeck
On 06/22/2017 03:48 PM, Eddie James wrote: From: "Edward A. James" This series adds a hwmon driver to support the OCC on POWER8 and POWER9 processors. The OCC is an embedded processor that provides realtime power and thermal monitoring and management. This driver has two different platform dri

Re: [PATCH] ext4: Return EIO on read error in ext4_find_entry

2017-06-22 Thread Theodore Ts'o
On Thu, Jun 22, 2017 at 04:23:07PM -0700, Khazhismel Kumykov wrote: > Previously, a read error would be ignored and we would eventually return > NULL from ext4_find_entry, which signals "no such file or directory". We > should be returning EIO. > > Signed-off-by: Khazhismel Kumykov Thanks, appli

Re: [vs-plain] Re: [PATCH] mm: larger stack guard gap, between vmas

2017-06-22 Thread Linus Torvalds
On Thu, Jun 22, 2017 at 8:10 PM, Andy Lutomirski wrote: > > Has anyone checked how grsecurity deals with this? I think they have > a large stack guard gap. Don't bother with grsecurity. Their approach has always been "we don't care if we break anything, we'll just claim it's because we're extra

[PATCH] KVM: x86: remove ignored type attribute

2017-06-22 Thread Nick Desaulniers
The macro insn_fetch marks the 'type' argument as having a specified alignment. Type attributes can only be applied to structs, unions, or enums, but insn_fetch is only ever invoked with integral types, so Clang produces 19 -Wignored-attributes warnings for this source file. Signed-off-by: Nick D

[PATCH 04/11] net: stmmac: dwmac-rk: Remove unwanted code for rk3328_set_to_rmii()

2017-06-22 Thread David Wu
This is wrong setting for rk3328_set_to_rmii(), so remove it. Change-Id: I9953784ea44335d90710e5473960c95b3d68a5fd Signed-off-by: David Wu --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c b/dr

[PATCH 03/11] arm64: defconfig: Enable CONFIG_ROCKCHIP_MAC_PHY

2017-06-22 Thread David Wu
Make the rockchip mac phy driver built into the kernel. Signed-off-by: David Wu --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 97c123e..b4abe7f 100644 --- a/arch/arm64/configs/defconfig +++ b/

[PATCH 01/11] net: phy: Add rockchip phy driver support

2017-06-22 Thread David Wu
Support internal ephy currently. Signed-off-by: David Wu --- drivers/net/phy/Kconfig| 4 ++ drivers/net/phy/Makefile | 1 + drivers/net/phy/rockchip.c | 94 ++ 3 files changed, 99 insertions(+) create mode 100644 drivers/net/phy/rockchip.c di

[PATCH 02/11] multi_v7_defconfig: Make rockchip mac phy built-in

2017-06-22 Thread David Wu
Enable the rockchip mac phy for multi_v7_defconfig builds Signed-off-by: David Wu --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig index 2685e03..fc1986c 100644 --- a/arch/arm/co

[PATCH 00/11] Add the mac internal ephy support

2017-06-22 Thread David Wu
The rk3228 and rk3328 support internal mac phy inside, let's enable it to work. And the internal phy need to do some special setting, so register the rockchip mac internal phy driver, not use the genphy driver. David Wu (11): net: phy: Add rockchip phy driver support multi_v7_defconfig: Make

Re: [PATCH 0/2] x86/idle: add halt poll support

2017-06-22 Thread Wanpeng Li
2017-06-23 12:08 GMT+08:00 Yang Zhang : > On 2017/6/22 19:50, Wanpeng Li wrote: >> >> 2017-06-22 19:22 GMT+08:00 root : >>> >>> From: Yang Zhang >>> >>> Some latency-intensive workload will see obviously performance >>> drop when running inside VM. The main reason is that the overhead >>> is ampli

Re: [PATCH] mm: larger stack guard gap, between vmas

2017-06-22 Thread Hugh Dickins
On Thu, 22 Jun 2017, Ben Hutchings wrote: > Here's my attempt at a backport to 3.2. This is only tested on > x86_64 and I think I should introduce local variables for > vma_start_gap() in a few places. I had to cherry-pick commit > 09884964335e "mm: do not grow the stack vma just because of an o

Re: [PATCH 1/2] tcp: add mode parameter to tcp_proc_register

2017-06-22 Thread David Miller
From: Ivan Delalande Date: Thu, 22 Jun 2017 18:40:27 -0700 > This will be used to create a proc file that regular users cannot read. > > Signed-off-by: Ivan Delalande /proc is deprecated. Export this information via inet_diag.

Re: [PATCH v2 4/4] arm64: dts: rockchip: use cs-gpios for cros_ec_spi

2017-06-22 Thread Doug Anderson
Hi, On Thu, Jun 22, 2017 at 8:51 PM, jeffy wrote: > Hi doug, > > Thanx for your comments. > > > On 06/23/2017 06:47 AM, Doug Anderson wrote: >> >> Hi, >> >> On Mon, Jun 19, 2017 at 5:47 PM, Brian Norris >> wrote: >>> >>> Hi Mark, >>> >>> Forgot to follow up here: >>> >>> On Tue, Jun 13, 2017 at

[PATCH V3] tools/testing/selftests/sysctl: Add pre-check to the value of writes_strict

2017-06-22 Thread Orson Zhai
Sysctl test will fail in some items if the value of /proc/sys/kernel /sysctrl_writes_strict is 0 as the default value in kernel older than v4.5. Make this test more robust and compatible with older kernels by checking and update sysctrl_writes_strict value and restore it when test is done. Signed

Re: linux-next: build warning after merge of the tip tree

2017-06-22 Thread Stephen Rothwell
Hi Michael, On Fri, 23 Jun 2017 14:10:25 +1000 Michael Ellerman wrote: > > Fixed in my next today by: > > d4cfb11387ee ("powerpc: Convert VDSO update function to use new > update_vsyscall interface") > > But you must have pulled before I pushed that, so the warning will go > away tomorrow.

[PATCH V2] acpi: acpica: fix acpi parse and parseext cache leaks

2017-06-22 Thread Seunghun Han
I'm Seunghun Han, and I work for National Security Research Institute of South Korea. I have been doing a research on ACPI and found an ACPI cache leak in ACPI early abort cases. Boot log of ACPI cache leak is as follows: [0.352414] ACPI: Added _OSI(Module Device) [0.353182] ACPI: Added _

linux-next: build warnings after merge of the tip tree

2017-06-22 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (x86_64 allmodconfig) produced these warnings: In file included from arch/x86/include/asm/paravirt_types.h:44:0, from arch/x86/include/asm/ptrace.h:71, from arch/x86/include/asm/math_emu.h:4,

Fwd: [PATCH V2] tools/testing/selftests/sysctl: Add pre-check to the value of writes_strict

2017-06-22 Thread Orson Zhai
Sysctl test will failed in some items if the value of /proc/sys/kernel /sysctrl_writes_strict is 0 as the default value in kernel older than v4.6. Make this test more robus and compatible with older kernel by checking and update writes_strict value and restore it when test is done. Signed-off-by:

Re: Query on VFIO in Virtual machine

2017-06-22 Thread Peter Xu
On Thu, Jun 22, 2017 at 11:27:09AM -0600, Alex Williamson wrote: > On Thu, 22 Jun 2017 22:42:19 +0530 > Nitin Saxena wrote: > > > Thanks Alex. > > > > >> Without an iommu in the VM, you'd be limited to no-iommu support for VM > > >> userspace, > > So are you trying to say VFIO NO-IOMMU should

Re: [PATCH v4] Input: mousedev - fix implicit conversion warning

2017-06-22 Thread Nick Desaulniers
Hi Dmitry, did you have more feedback for this patch?

Re: [PATCH] powerpc: Only obtain cpu_hotplug_lock if called by rtasd

2017-06-22 Thread Michael Ellerman
Thomas Gleixner writes: > On Thu, 22 Jun 2017, Thiago Jung Bauermann wrote: >> Michael Bringmann provided this information: >> >> It's not hard to backport both this patch and commit fe5595c07400 >> >> ("stop_machine: Provide stop_machine_cpuslocked()") from branch >> >> smp/hotplug in tip.git fo

Re: [PATCH 1/2][RFC] x86/boot/e820: Introduce e820_table_ori to represent the real original e820 layout

2017-06-22 Thread Chen Yu
Hi Ingo, On Thu, Jun 22, 2017 at 11:40:30AM +0200, Ingo Molnar wrote: > > * Chen Yu wrote: > > > Currently we try to have e820_table_firmware to represent the > > original firmware memory layout passed to us by the bootloader, > > however it is not the case, the e820_table_firmware might still >

Re: [PATCH v2 4/4] arm: dts: mt2701: Add display subsystem related nodes for MT2701

2017-06-22 Thread Erin Lo
On Thu, 2017-06-22 at 16:43 +0800, Erin Lo wrote: > From: YT Shen > > This patch adds the device nodes for the DISP function blocks for MT2701 > > Signed-off-by: YT Shen > Signed-off-by: Erin Lo > --- > arch/arm/boot/dts/mt2701.dtsi | 84 > +++ > 1 fil

Re: linux-next: build warning after merge of the tip tree

2017-06-22 Thread Michael Ellerman
Stephen Rothwell writes: > Hi all, > > [Forgot to cc John] > > On Fri, 23 Jun 2017 13:58:34 +1000 Stephen Rothwell > wrote: >> >> Hi all, >> >> After merging the tip tree, today's linux-next build (powerpc >> ppc64_defconfig) produced this warning: >> >> kernel/time/timekeeping.c:519:2: warni

Re: [PATCH 0/2] x86/idle: add halt poll support

2017-06-22 Thread Yang Zhang
On 2017/6/22 19:50, Wanpeng Li wrote: 2017-06-22 19:22 GMT+08:00 root : From: Yang Zhang Some latency-intensive workload will see obviously performance drop when running inside VM. The main reason is that the overhead is amplified when running inside VM. The most cost i have seen is inside idl

Re: [PATCH 1/2] x86/idle: add halt poll for halt idle

2017-06-22 Thread Yang Zhang
On 2017/6/22 22:23, Thomas Gleixner wrote: On Thu, 22 Jun 2017, root wrote: --- a/arch/x86/kernel/process.c +++ b/arch/x86/kernel/process.c @@ -39,6 +39,10 @@ #include #include +#ifdef CONFIG_HYPERVISOR_GUEST +unsigned long poll_threshold_ns; +#endif + /* * per-CPU TSS segments. Threads

Re: [PATCH NET 2/2] net: hns: Use phy_driver to setup Phy loopback

2017-06-22 Thread Andrew Lunn
> what should the Mac driver do when it receive the error? I assume that it > will return it to userspace. because the rtnl_lock ensure only one ethtool > is executing, if the function return error, it means some bug in the mac > driver, am I right? Yes, return it. It could be there are other use

Re: seccomp ptrace selftest failures with 4.4-stable [Was: Re: LTS testing with latest kselftests - some failures]

2017-06-22 Thread Kees Cook
On Thu, Jun 22, 2017 at 7:40 PM, Andy Lutomirski wrote: > On Thu, Jun 22, 2017 at 6:52 PM, Greg Kroah-Hartman > wrote: >> On Thu, Jun 22, 2017 at 10:50:43AM -0700, Kees Cook wrote: >>> On Thu, Jun 22, 2017 at 10:49 AM, Andy Lutomirski wrote: >>> > On Thu, Jun 22, 2017 at 10:09 AM, Shuah Khan wr

Re: [PATCH 2/2] x86/idle: use dynamic halt poll

2017-06-22 Thread Yang Zhang
On 2017/6/22 22:32, Thomas Gleixner wrote: On Thu, 22 Jun 2017, root wrote: @@ -962,6 +962,7 @@ __visible void __irq_entry smp_apic_timer_interrupt(struct pt_regs *regs) * interrupt lock, which is the WrongThing (tm) to do. */ entering_ack_irq(); + check_poll();

Re: seccomp ptrace selftest failures with 4.4-stable [Was: Re: LTS testing with latest kselftests - some failures]

2017-06-22 Thread Sumit Semwal
Hi Shuah, On 23 June 2017 at 01:53, Shuah Khan wrote: > Hi Tom, > > On 06/22/2017 01:48 PM, Tom Gall wrote: >> Hi >> >> On Thu, Jun 22, 2017 at 2:06 PM, Shuah Khan wrote: >>> On 06/22/2017 11:50 AM, Kees Cook wrote: On Thu, Jun 22, 2017 at 10:49 AM, Andy Lutomirski wrote: > On Thu, Jun

Re: [PATCH v3 1/3] spi: rockchip: add support for "cs-gpios" dts property

2017-06-22 Thread jeffy
Hi doug, Thanx for your comments. On 06/23/2017 05:41 AM, Doug Anderson wrote: Hi, On Tue, Jun 13, 2017 at 8:38 PM, Jeffy Chen wrote: Support using "cs-gpios" property to specify cs gpios. Signed-off-by: Jeffy Chen --- Changes in v3: include linux/gpio/consumer.h for compile errors on ARC

Re: linux-next: build warning after merge of the tip tree

2017-06-22 Thread Stephen Rothwell
Hi all, [Forgot to cc John] On Fri, 23 Jun 2017 13:58:34 +1000 Stephen Rothwell wrote: > > Hi all, > > After merging the tip tree, today's linux-next build (powerpc > ppc64_defconfig) produced this warning: > > kernel/time/timekeeping.c:519:2: warning: #warning Please contact your > maintain

[PATCH v3] backlight: lm3630a: bump REG_MAX value to 0x50 instead of 0x1F

2017-06-22 Thread Bhushan Shah
In the lm3630a_chip_init we try to write to 0x50 register, which is higher value then the max_register value, this resulted in regmap_write return -EIO. Fix this by bumping REG_MAX value to 0x50. This code was introduced with the chip revision in commit 28e64a68a2ef, however setting filter streng

Re: [PATCH 2/2] x86/idle: use dynamic halt poll

2017-06-22 Thread Yang Zhang
On 2017/6/22 19:51, Paolo Bonzini wrote: On 22/06/2017 13:22, root wrote: == +poll_grow: (X86 only) + +This parameter is multiplied in the grow_poll_ns() to increase the poll time. +By default, the values is 2. + +==

linux-next: build warning after merge of the tip tree

2017-06-22 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning: kernel/time/timekeeping.c:519:2: warning: #warning Please contact your maintainers, as GENERIC_TIME_VSYSCALL_OLD compatibity will disappear soon. [-Wcpp] #warning Please contact your m

Re: [PATCH NET 1/2] net: phy: Add phy loopback support in net phy framework

2017-06-22 Thread Yunsheng Lin
Hi, Andrew On 2017/6/23 11:16, Andrew Lunn wrote: >> +int genphy_loopback(struct phy_device *phydev, bool enable) >> +{ >> +int value; >> + >> +if (enable) { >> +value = phy_read(phydev, MII_BMCR); >> +phy_write(phydev, MII_BMCR, value | BMCR_LOOPBACK); >> +} el

Re: linux-next: manual merge of the block tree with Linus' tree

2017-06-22 Thread Jens Axboe
On 06/22/2017 09:33 PM, Stephen Rothwell wrote: > Hi Jens, > > On Thu, 22 Jun 2017 21:27:04 -0600 Jens Axboe wrote: >> >> On 06/22/2017 09:24 PM, Stephen Rothwell wrote: >>> Hi Jens, >>> >>> On Thu, 22 Jun 2017 21:09:22 -0600 Jens Axboe wrote: I'll cherry pick that commit into the 4.

  1   2   3   4   5   6   7   8   9   10   >