Re: [PATCH v2 1/7] ACPI / blacklist: add acpi_match_oemlist() interface

2017-08-03 Thread Borislav Petkov
On Thu, Aug 03, 2017 at 03:57:47PM -0600, Toshi Kani wrote: > ACPI OEM ID / OEM Table ID / Revision can be used to identify > a platform based on ACPI firmware info. acpi_blacklisted(), > intel_pstate_platform_pwr_mgmt_exists(), and some other funcs, > have been using similar check to detect a lis

[PATCH 0/2] arm64: dts: rockchip: add cpu operating points and efuse node for RK3328 SoC

2017-08-03 Thread Finley Xiao
Add cpu operating points and an efuse node in the device tree for rk3228 SoC Finley Xiao (2): arm64: dts: rockchip: Add cpu operating points for RK3328 SoC arm64: dts: rockchip: Add efuse device node for RK3328 SoC arch/arm64/boot/dts/rockchip/rk3328.dtsi | 66 +++

Re: [PATCH] f2fs: provide f2fs_balance_fs to __write_data_page for dentry pages

2017-08-03 Thread Jaegeuk Kim
On 08/04, Yunlong Song wrote: > Since __write_data_page will not do f2fs_balance_fs for dir inode, so there > is no lock. > - f2fs_balance_fs > - __write_data_page (dir inode) > - f2fs_balance_fs again?<- Can not happen! > And if let sync_dirty_inodes flush dentry page of inodeB, t

[PATCH 2/2] arm64: dts: rockchip: Add efuse device node for RK3328 SoC

2017-08-03 Thread Finley Xiao
This patch adds an efuse node in the device tree for rk3228 SoC. Signed-off-by: Finley Xiao --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.

[PATCH 1/2] arm64: dts: rockchip: Add cpu operating points for RK3328 SoC

2017-08-03 Thread Finley Xiao
This patch adds basic OPP entries for RK3328 SoC. Signed-off-by: Finley Xiao --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 41 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328.dtsi b/arch/arm64/boot/dts/rockchip/rk3328.dtsi ind

[PATCH v2 2/2] PCI: rcar-pcie: Fix memory leak when no PCIe card is inserted

2017-08-03 Thread Harunobu Kurokawa
When no PCIe card is inserted, there is a memory leak as pci_free_resource_list is not called before returning. Signed-off-by: Harunobu Kurokawa --- drivers/pci/host/pcie-rcar.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c index

[PATCH v2 1/2] PCI: rcar: Fix error exit path

2017-08-03 Thread Harunobu Kurokawa
From: Lorenzo Pieralisi Commit 90634e854079 ("PCI: rcar: Convert PCI scan API to pci_scan_root_bus_bridge()") converted PCI root bus scan API to the new pci_scan_root_bus_bridge() API; in the process some error paths were not updated correctly which may cause memory leaks. Fix the driver error e

[PATCH v2 0/2] PCI: rcar-pcie: Fix memory leak

2017-08-03 Thread Harunobu Kurokawa
When no PCIe card is inserted, there is a memory leak as pci_free_resource_list is not called before returning. v2: separate the patch to two files. Harunobu Kurokawa (1): PCI: rcar-pcie: Fix memory leak when no PCIe card is inserted Lorenzo Pieralisi (1): PCI: rcar: Fix error exit path d

Re: [PATCH] x86/boot/KASLR: Extend movable_node option for KASLR

2017-08-03 Thread Dou Liyang
At 08/04/2017 10:55 AM, Baoquan He wrote: On 08/04/17 at 10:42am, Dou Liyang wrote: Hi Baoquan, At 08/04/2017 10:00 AM, Baoquan He wrote: On 08/04/17 at 09:37am, Dou Liyang wrote: Hi Chao,Baoquan At 08/04/2017 07:49 AM, Baoquan He wrote: On 08/03/17 at 08:24pm, Chao Fan wrote: It's almos

Re: [PATCH v1.1] drm/rockchip: fix race with kms hotplug and fbdev

2017-08-03 Thread Sandy Huang
Hi Mark, 在 2017/8/1 16:11, Mark Yao 写道: According to the kerneldoc[0], should do fbdev setup before calling drm_kms_helper_poll_init(), otherwise, Kms hotplug event may race into fbdev helper initial, and fb_helper->dev may be NULL pointer, that would cause the bug: [0.735411] [0200] *pg

[RFC][PATCH 2/2] usb: dwc2: Fix UDC state tracking

2017-08-03 Thread John Stultz
It has been noticed that the dwc2 udc state reporting doesn't seem to work (at least on HiKey boards). Where after the initial setup, the sysfs /sys/class/udc/f72c.usb/state file would report "configured" no matter the state of the OTG port. This patch adds a call so that we report to the UDC

Re: [PATCH] f2fs-tools: support inode checksum

2017-08-03 Thread Chao Yu
Hi Jaegeuk, On 2017/8/4 9:38, Jaegeuk Kim wrote: > Hi Chao, > > It seems three is missing case when verifying the checksum, if the page is > got from cache with some updates. We need to verify it when actually reading > the node block. Agreed. > > Let me modify your patch like this. Is that ok

[RFC][PATCH 1/2] usb: dwc2: Improve gadget state disconnection handling

2017-08-03 Thread John Stultz
In the earlier commit dad3f793f20f ("usb: dwc2: Make sure we disconnect the gadget state"), I was trying to fix up the fact that we somehow weren't disconnecting the gadget state, so that when the OTG port was plugged in the second time we would get warnings about the state tracking being wrong. T

Re: [Question]: try to fix contention between expire_timers and try_to_del_timer_sync

2017-08-03 Thread qiaozhou
On 2017年08月04日 07:32, Vikram Mulukutla wrote: Hi Qiao, On 2017-08-01 00:37, qiaozhou wrote: On 2017年07月31日 19:20, qiaozhou wrote: = Also apply Vikram's patch and have a test. cpu2: a53, 832MHz, cpu7: a73, 1.75Hz Without cpu_relax

Re: [PATCH] x86/boot/KASLR: Extend movable_node option for KASLR

2017-08-03 Thread Chao Fan
On Fri, Aug 04, 2017 at 10:52:45AM +0800, Dou Liyang wrote: >Hi chao > >At 08/04/2017 10:01 AM, Chao Fan wrote: >> On Fri, Aug 04, 2017 at 09:37:14AM +0800, Dou Liyang wrote: >> > Hi Chao,Baoquan >> > >> > At 08/04/2017 07:49 AM, Baoquan He wrote: >> > > On 08/03/17 at 08:24pm, Chao Fan wrote: >>

Re: [PATCH] Staging: bcm2048: fix bare use of 'unsigned' in radio-bcm2048.c

2017-08-03 Thread kbuild test robot
Hi Branislav, [auto build test ERROR on linuxtv-media/master] [also build test ERROR on v4.13-rc3 next-20170803] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Branislav-Radocaj/Staging-bcm2048

[PATCH] pinctrl: check ops->pin_config_set in pinconf_set_config()

2017-08-03 Thread Masahiro Yamada
pinconf_set_config() is called by pinctrl_gpio_set_config(). If a GPIO driver is backed by a pinctrl driver and it does not support .pin_config_set() hook, it causes NULL pointer dereference. Fixes: 15381bc7c7f5 ("pinctrl: Allow configuration of pins from gpiolib based drivers") Signed-off-by: Ma

Re: [PATCH] f2fs: provide f2fs_balance_fs to __write_data_page for dentry pages

2017-08-03 Thread Yunlong Song
Since __write_data_page will not do f2fs_balance_fs for dir inode, so there is no lock. - f2fs_balance_fs - __write_data_page (dir inode) - f2fs_balance_fs again?<- Can not happen! And if let sync_dirty_inodes flush dentry page of inodeB, then inodeB will sikp the f2fs_balance_

Re: [PATCH] x86/boot/KASLR: Extend movable_node option for KASLR

2017-08-03 Thread Baoquan He
On 08/04/17 at 10:42am, Dou Liyang wrote: > Hi Baoquan, > > At 08/04/2017 10:00 AM, Baoquan He wrote: > > On 08/04/17 at 09:37am, Dou Liyang wrote: > > > Hi Chao,Baoquan > > > > > > At 08/04/2017 07:49 AM, Baoquan He wrote: > > > > On 08/03/17 at 08:24pm, Chao Fan wrote: > > > > > It's almost ano

Re: [PATCH] x86/boot/KASLR: Extend movable_node option for KASLR

2017-08-03 Thread Dou Liyang
Hi chao At 08/04/2017 10:01 AM, Chao Fan wrote: On Fri, Aug 04, 2017 at 09:37:14AM +0800, Dou Liyang wrote: Hi Chao,Baoquan At 08/04/2017 07:49 AM, Baoquan He wrote: On 08/03/17 at 08:24pm, Chao Fan wrote: It's almost another "mem=". No, it is different. See Documentation/kernel-paramet

Re: [PATCH] f2fs: provide f2fs_balance_fs to __write_data_page for dentry pages

2017-08-03 Thread Yunlong Song
Since __write_data_page will not do f2fs_balance_fs for dir inode, so there is no lock. - f2fs_balance_fs - __write_data_page (dir inode) - f2fs_balance_fs again?<- Can not happen! And if let sync_dirty_inodes flush dentry page of inodeB, then inodeB will sikp the f2fs_balance_

Re: [PATCH] x86/boot/KASLR: Extend movable_node option for KASLR

2017-08-03 Thread Dou Liyang
Hi Baoquan, At 08/04/2017 10:00 AM, Baoquan He wrote: On 08/04/17 at 09:37am, Dou Liyang wrote: Hi Chao,Baoquan At 08/04/2017 07:49 AM, Baoquan He wrote: On 08/03/17 at 08:24pm, Chao Fan wrote: It's almost another "mem=". No, it is different. See Documentation/kernel-parameters: "mem="

Re: [PATCH v2 3/7] pwm: rockchip: Remove the dumplicate rockchip_pwm_ops ops

2017-08-03 Thread David.Wu
Hi Boris, 在 2017/8/2 19:40, Boris Brezillon 写道: Yep, just define 3 different pwm_ops (one for each IP), each of them implementing ->apply() and ->get_state() and that's all. Something like: static const struct pwm_ops rockchip_pwm_ops_v1 = { .get_state = rockchip_pwm_v1_get_state,

Re: [PATCH v2 0/5] fs, xfs: block map immutable files for dax, dma-to-storage, and swap

2017-08-03 Thread Dan Williams
[ adding linux-api to the cover letter for notification, will send the full set to linux-api for v3 ] On Thu, Aug 3, 2017 at 7:28 PM, Dan Williams wrote: > Changes since v1 [1]: > * Add IS_IOMAP_IMMUTABLE() checks to xfs ioctl paths that perform block > map changes (xfs_alloc_file_space and xfs

[PATCH v2 4/5] xfs: introduce XFS_DIFLAG2_IOMAP_IMMUTABLE

2017-08-03 Thread Dan Williams
Add an on-disk inode flag to record the state of the S_IOMAP_IMMUTABLE in-memory vfs inode flags. This allows the protections against reflink and hole punch to be automatically restored on a sub-sequent boot when the in-memory inode is established. The FS_XFLAG_IOMAP_IMMUTABLE is introduced to all

[PATCH v2 2/5] fs, xfs: introduce FALLOC_FL_SEAL_BLOCK_MAP

2017-08-03 Thread Dan Williams
>From falloc.h: FALLOC_FL_SEAL_BLOCK_MAP is used to seal (make immutable) all of the file logical-to-physical extent offset mappings in the file. The purpose is to allow an application to assume that there are no holes or shared extents in the file and that the metadata needed to f

[PATCH v2 5/5] xfs: toggle XFS_DIFLAG2_IOMAP_IMMUTABLE in response to fallocate

2017-08-03 Thread Dan Williams
After validating the state of the file as not having holes, shared extents, or active mappings try to commit the XFS_DIFLAG2_IOMAP_IMMUTABLE flag to the on-disk inode metadata. If that succeeds then allow the S_IOMAP_IMMUTABLE to be set on the vfs inode. Cc: Jan Kara Cc: Jeff Moyer Cc: Christoph

[PATCH v2 3/5] fs, xfs: introduce FALLOC_FL_UNSEAL_BLOCK_MAP

2017-08-03 Thread Dan Williams
Provide an explicit fallocate operation type for clearing the S_IOMAP_IMMUTABLE flag. Like the enable case it requires CAP_IMMUTABLE and it can only be performed while no process has the file mapped. Cc: Jan Kara Cc: Jeff Moyer Cc: Christoph Hellwig Cc: Ross Zwisler Cc: Alexander Viro Cc: "Da

[PATCH v2 1/5] fs, xfs: introduce S_IOMAP_IMMUTABLE

2017-08-03 Thread Dan Williams
An inode with this flag set indicates that the file's block map cannot be changed from the currently allocated set. The implementation of toggling the flag and sealing the state of the extent map is saved for a later patch. The functionality provided by S_IOMAP_IMMUTABLE, once toggle support is ad

[PATCH v2 0/5] fs, xfs: block map immutable files for dax, dma-to-storage, and swap

2017-08-03 Thread Dan Williams
Changes since v1 [1]: * Add IS_IOMAP_IMMUTABLE() checks to xfs ioctl paths that perform block map changes (xfs_alloc_file_space and xfs_free_file_space) (Darrick) * Rather than complete a partial write, fail all writes that would attempt to extend the file size (Darrick) * Introduce FALLOC_FL

[PATCH v2 2/2] MAINTAINERS: add entry for mediatek usb3 DRD IP driver

2017-08-03 Thread Chunfeng Yun
Add myself as maintainer of MediaTek USB3 DRD IP driver Signed-off-by: Chunfeng Yun --- MAINTAINERS |8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 205d397..0cf5e31 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8472,6 +8472,14 @@ M: Sean Wang

[PATCH v2 1/2] usb: mtu3: add a vbus debugfs interface

2017-08-03 Thread Chunfeng Yun
Provides a new vbus debugfs interface used to turn on/off vbus regulator, it also can be used to get/put reference count of vbus, due to sometimes we need keep it alive when manually switch mtu3 to device mode. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_dr.c | 58 +++

Re: [PATCH 2/2] arm64: Define PAGE_OFFSET using GENMASK_ULL

2017-08-03 Thread kbuild test robot
Hi Matthias, [auto build test ERROR on arm64/for-next/core] [also build test ERROR on v4.13-rc3 next-20170803] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Matthias-Kaehlcke/bitops-Avoid

Re: [linux-sunxi] [PATCH] pinctrl: sunxi: fix V3s pinctrl driver IRQ bank base

2017-08-03 Thread Chen-Yu Tsai
On Tue, Aug 1, 2017 at 10:54 PM, Icenowy Zheng wrote: > The V3s pin controller doesn't have the bank 0 (starts at address > 0x200), which is like A33. However, this is not workarounded when was not worked around "Work around" is a verb phrase. "Workarou

[PATCH] pinctrl: move const qualifier before struct

2017-08-03 Thread Masahiro Yamada
Update subsystem wide for consistency. Signed-off-by: Masahiro Yamada --- drivers/pinctrl/berlin/berlin.c | 4 ++-- drivers/pinctrl/core.c | 14 +++--- drivers/pinctrl/core.h | 6 +++--- drivers/pinctrl/pinconf.c | 12 ++-- drivers/pinctrl/pinconf.h

Re: [PATCH v3 00/10] ARM: sun8i: a83t: Add support for MMC controllers

2017-08-03 Thread Chen-Yu Tsai
On Thu, Aug 3, 2017 at 8:02 PM, Ulf Hansson wrote: > On 3 August 2017 at 13:25, Chen-Yu Tsai wrote: >> On Thu, Aug 3, 2017 at 7:19 PM, Ulf Hansson wrote: >>> On 26 July 2017 at 21:45, Maxime Ripard >>> wrote: On Wed, Jul 26, 2017 at 10:09:41PM +0800, Chen-Yu Tsai wrote: > On Mon, Jul 2

Re: [PATCH v4 3/3] power: wm831x_power: Support USB charger current limit management

2017-08-03 Thread Baolin Wang
On 4 August 2017 at 03:16, Rob Herring wrote: > On Thu, Jul 27, 2017 at 01:14:38PM +0800, Baolin Wang wrote: >> Integrate with the newly added USB charger interface to limit the current >> we draw from the USB input based on the input device configuration >> identified by the USB stack, allowing u

Re: [PATCH 1/2] usb: mtu3: add a vbus debugfs interface

2017-08-03 Thread Chunfeng Yun
On Thu, 2017-08-03 at 09:01 -0700, Greg Kroah-Hartman wrote: > On Thu, Aug 03, 2017 at 09:00:57AM -0700, Greg Kroah-Hartman wrote: > > On Thu, Aug 03, 2017 at 04:37:18PM +0800, Chunfeng Yun wrote: > > > +static ssize_t ssusb_vbus_write(struct file *file, > > > + const char __user *ubuf, size_t coun

Re: [PATCH 3/3] IPI: Avoid to use 2 cache lines for one call_single_data

2017-08-03 Thread Huang, Ying
"Huang, Ying" writes: > Peter Zijlstra writes: > [snip] >> diff --git a/include/linux/smp.h b/include/linux/smp.h >> index 68123c1fe549..8d817cb80a38 100644 >> --- a/include/linux/smp.h >> +++ b/include/linux/smp.h >> @@ -14,13 +14,16 @@ >> #include >> >> typedef void (*smp_call_func_t)(voi

linux-next: manual merge of the wireless-drivers-next tree with Linus' tree

2017-08-03 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the wireless-drivers-next tree got a conflict in: drivers/net/wireless/intel/iwlwifi/mvm/ops.c between commit: bf8b286f86fc ("iwlwifi: mvm: defer setting IWL_MVM_STATUS_IN_HW_RESTART") from Linus' tree and commit: 7174beb60c53 ("iwlwifi: refactor firm

Re: [PATCH] x86/boot/KASLR: Extend movable_node option for KASLR

2017-08-03 Thread Chao Fan
On Fri, Aug 04, 2017 at 09:37:14AM +0800, Dou Liyang wrote: >Hi Chao,Baoquan > >At 08/04/2017 07:49 AM, Baoquan He wrote: >> On 08/03/17 at 08:24pm, Chao Fan wrote: >> > It's almost another "mem=". >> > >No, it is different. > >See Documentation/kernel-parameters: > >"mem=" will force usage of a s

Re: [PATCH] x86/boot/KASLR: Extend movable_node option for KASLR

2017-08-03 Thread Baoquan He
On 08/04/17 at 09:37am, Dou Liyang wrote: > Hi Chao,Baoquan > > At 08/04/2017 07:49 AM, Baoquan He wrote: > > On 08/03/17 at 08:24pm, Chao Fan wrote: > > > It's almost another "mem=". > > > > No, it is different. > > See Documentation/kernel-parameters: > > "mem=" will force usage of a specifi

[PATCH] f2fs: use printk_ratelimited for f2fs_msg

2017-08-03 Thread Jaegeuk Kim
This patch reduces contention of printks. Signed-off-by: Jaegeuk Kim --- fs/f2fs/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 4ab6dc31a61b..ca340d84f8c2 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -159,7 +159,7 @@ v

Re: [PATCH] f2fs: provide f2fs_balance_fs to __write_data_page for dentry pages

2017-08-03 Thread Jaegeuk Kim
On 08/02, Yunlong Song wrote: > Hi Jay, > The case is like this: > write_checkpoint: normal dentry > page writeback of inodeB: > -block_operations -f2fs_write_data_pages > -SBI_BLOCK_OPS is set -f2fs_write_cache_pages > -sync_dirty

[PATCH] cpufreq: dt: Add rk3328 compatible to use generic cpufreq driver

2017-08-03 Thread Finley Xiao
This patch adds the rk3328 compatible string for supporting the generic cpufreq driver on RK3328. Signed-off-by: Finley Xiao --- drivers/cpufreq/cpufreq-dt-platdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c i

Re: [PATCH] ARC: clk: introduce HSDKv1 pll driver

2017-08-03 Thread Stephen Boyd
On 07/14, Eugeniy Paltsev wrote: > HSDKv1 boards manages it's clocks using various PLLs. These PLL has same s/it's/its/ s/has/have/ > dividers and corresponding control registers mapped to different addresses. > So we add one common driver for such PLLs. > > Each PLL on HSDK board consist of th

Re: [PATCH] x86/boot/KASLR: Extend movable_node option for KASLR

2017-08-03 Thread Dou Liyang
Hi Kees, At 08/04/2017 06:40 AM, Kees Cook wrote: On Thu, Aug 3, 2017 at 5:17 AM, Dou Liyang wrote: movable_node is a boot-time switch to make hot-pluggable memory NUMA nodes to be movable. This option is based on an assumption that any node which the kernel resides in is defined as un-hotplug

Re: [PATCH] f2fs-tools: support inode checksum

2017-08-03 Thread Jaegeuk Kim
Hi Chao, It seems three is missing case when verifying the checksum, if the page is got from cache with some updates. We need to verify it when actually reading the node block. Let me modify your patch like this. Is that okay for you? Thanks, --- fs/f2fs/f2fs.h| 3 ++- fs/f2fs/inode.c |

Re: [PATCH] x86/boot/KASLR: Extend movable_node option for KASLR

2017-08-03 Thread Dou Liyang
Hi Chao,Baoquan At 08/04/2017 07:49 AM, Baoquan He wrote: On 08/03/17 at 08:24pm, Chao Fan wrote: It's almost another "mem=". No, it is different. See Documentation/kernel-parameters: "mem=" will force usage of a specific amount of memory and kernel will not see the whole system memory.

[PATCH v3 3/4] dt-bindings: mediatek: add descriptions for larbid

2017-08-03 Thread honghui.zhang
From: Honghui Zhang This patch add larbid descritptions for mediatek's gen1 smi larb hardware. Acked-by: Rob Herring Signed-off-by: Honghui Zhang --- .../bindings/memory-controllers/mediatek,smi-larb.txt | 15 +++ 1 file changed, 15 insertions(+) diff --git a/Documentation/d

[PATCH v3 4/4] arm: dts: mediatek: add larbid property for larb

2017-08-03 Thread honghui.zhang
From: Honghui Zhang Add mediatek's hardware id information for smi larb. Signed-off-by: Honghui Zhang --- arch/arm/boot/dts/mt2701.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index f1efdc6..d95bfe0 100644 --- a/arch/

[PATCH v3 1/4] memory: mtk-smi: Use of_device_get_match_data helper

2017-08-03 Thread honghui.zhang
From: Honghui Zhang Replace custom code with generic helper to retrieve driver data. Signed-off-by: Honghui Zhang --- drivers/memory/mtk-smi.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers/memory/mtk-smi.c b/drivers/memory/mtk-smi.c index 4afbc41..

[PATCH v3 0/4] Add larbid init routine for mediatek's gen1 smi larb driver

2017-08-03 Thread honghui.zhang
From: Honghui Zhang Mediatek's gen1 smi need the hardware larb-id to identify the offset for the register which controls whether enable iommu for this larb. In the commit 3c8f4ad85c4b ("memory/mediatek: add support for mt2701"), the larbid was used without properly initialized. This patchset fixe

[PATCH v3 2/4] memory: mtk-smi: add larbid handle routine

2017-08-03 Thread honghui.zhang
From: Honghui Zhang In the commit 3c8f4ad85c4b ("memory/mediatek: add support for mt2701"), the larb->larbid was added but not initialized. Mediatek's gen1 smi need this hardware larbid information to get the register offset which controls whether enable iommu for this larb. This patch add the in

Re: linux-next: Signed-off-by missing for commit in the crypto tree

2017-08-03 Thread Herbert Xu
On Fri, Aug 04, 2017 at 07:50:22AM +1000, Stephen Rothwell wrote: > Hi all, > > Commit > > 9577212cc0e2 ("crypto: hash - add crypto_(un)register_ahashes()") > > is missing a Signed-off-by from its author. OK, I've backed out the patches in question. Please resubmit with a sign-off. Thanks!

Re: [PATCH 3/3] IPI: Avoid to use 2 cache lines for one call_single_data

2017-08-03 Thread Huang, Ying
Peter Zijlstra writes: [snip] > diff --git a/include/linux/smp.h b/include/linux/smp.h > index 68123c1fe549..8d817cb80a38 100644 > --- a/include/linux/smp.h > +++ b/include/linux/smp.h > @@ -14,13 +14,16 @@ > #include > > typedef void (*smp_call_func_t)(void *info); > -struct call_single_data

Re: [PATCH v2] KVM: nVMX: Fix attempting to emulate "Acknowledge interrupt on exit" when there is no interrupt which L1 requires to inject to L2

2017-08-03 Thread Wanpeng Li
2017-08-03 21:46 GMT+08:00 Radim Krčmář : > 2017-07-31 19:25-0700, Wanpeng Li: >> From: Wanpeng Li >> >> [ cut here ] >> WARNING: CPU: 5 PID: 2288 at arch/x86/kvm/vmx.c:11124 >> nested_vmx_vmexit+0xd64/0xd70 [kvm_intel] >> CPU: 5 PID: 2288 Comm: qemu-system-x86 Not taint

[PATCH v3] printk: Add boottime and real timestamps

2017-08-03 Thread Prarit Bhargava
printk.time=1/CONFIG_PRINTK_TIME=1 adds a unmodified local hardware clock timestamp to printk messages. The local hardware clock loses time each day making it difficult to determine exactly when an issue has occurred in the kernel log, and making it difficult to determine how kernel and hardware i

Re: [PATCH 0/6] Support for LEGO MINDSTORMS EV3 LCD display

2017-08-03 Thread David Lechner
On 08/03/2017 08:08 PM, David Lechner wrote: On 08/03/2017 03:11 PM, Noralf Trønnes wrote: Den 03.08.2017 19.11, skrev Andy Shevchenko: On Thu, Aug 3, 2017 at 8:09 PM, Andy Shevchenko wrote: On Thu, Aug 3, 2017 at 6:18 PM, David Lechner wrote: The particular display I have is this one: h

Re: [PATCH v2] zram: Rework copy of compressor name in comp_algorithm_store()

2017-08-03 Thread Minchan Kim
On Thu, Aug 03, 2017 at 09:33:50AM -0700, Matthias Kaehlcke wrote: > comp_algorithm_store() passes the size of the source buffer to strlcpy() > instead of the destination buffer size. Make it explicit that the two > buffers have the same size and use strcpy() instead of strlcpy(). > The latter can

Re: [PATCH 0/6] Support for LEGO MINDSTORMS EV3 LCD display

2017-08-03 Thread David Lechner
On 08/03/2017 03:11 PM, Noralf Trønnes wrote: Den 03.08.2017 19.11, skrev Andy Shevchenko: On Thu, Aug 3, 2017 at 8:09 PM, Andy Shevchenko wrote: On Thu, Aug 3, 2017 at 6:18 PM, David Lechner wrote: The particular display I have is this one: http://wiki.seeed.cc/Grove-OLED_Display_1.12inc

Re: [PATCH v2] zram: Rework copy of compressor name in comp_algorithm_store()

2017-08-03 Thread Sergey Senozhatsky
On (08/03/17 09:33), Matthias Kaehlcke wrote: > comp_algorithm_store() passes the size of the source buffer to strlcpy() > instead of the destination buffer size. Make it explicit that the two > buffers have the same size and use strcpy() instead of strlcpy(). > The latter can be done safely since

Re: linux-next: manual merge of the tty tree with the tty.current tree

2017-08-03 Thread Greg KH
On Wed, Aug 02, 2017 at 02:26:28PM +1000, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the tty tree got a conflict in: > > drivers/tty/serial/8250/8250_core.c > > between commit: > > 9527b82ae3af ("Revert "serial: Delete dead code for CIR serial ports"") > > from the

Re: [PATCH 5/6] drm/rockchip: vop: report error when check resource error

2017-08-03 Thread Sandy Huang
Hi mark, 在 2017/7/31 17:49, Mark Yao 写道: The user would be confused while facing a error commit without any error report. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/r

Re: [PATCH 0/3] remove rw_page() from brd, pmem and btt

2017-08-03 Thread Minchan Kim
On Thu, Aug 03, 2017 at 10:05:44AM +0200, Christoph Hellwig wrote: > FYI, for the read side we should use the on-stack bio unconditionally, > as it will always be a win (or not show up at all). Think about readahead. Unconditional on-stack bio to read around pages with faulted address will cause l

Re: [PATCH 3/6] drm/rockchip: vop: fix NV12 video display error

2017-08-03 Thread Sandy Huang
Hi mark, 在 2017/7/31 17:49, Mark Yao 写道: fixup the scale calculation formula on the case src_height == (dst_height/2). Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.h

Re: [PATCH 4/6] drm/rockchip: vop: round_up pitches to word align

2017-08-03 Thread Sandy Huang
在 2017/7/31 17:49, Mark Yao 写道: VOP pitch register is word align, need align to word. VOP_WIN0_VIR: bit[31:16] win0_vir_stride_uv Number of words of Win0 uv Virtual width bit[15:0] win0_vir_width Number of words of Win0 yrgb Virtual width ARGB888 : win0_vir_width RGB8

Re: [PATCH] initcall_debug: add deferred probe times

2017-08-03 Thread Greg Kroah-Hartman
On Tue, Jul 25, 2017 at 08:01:49PM -0700, Todd Poynor wrote: > On Tue, Jul 25, 2017 at 4:40 PM, Greg Kroah-Hartman > wrote: > > On Tue, Jul 25, 2017 at 04:31:59PM -0700, Todd Poynor wrote: > >> initcall_debug attributes all deferred device probe retries for the > >> late_initcall level to function

Re: [PATCH v5 1/6] seccomp: Sysctl to display available actions

2017-08-03 Thread Tyler Hicks
On 08/03/2017 11:37 AM, Kees Cook wrote: > On Fri, Jul 28, 2017 at 1:55 PM, Tyler Hicks wrote: >> This patch creates a read-only sysctl containing an ordered list of >> seccomp actions that the kernel supports. The ordering, from left to >> right, is the lowest action value (kill) to the highest a

Re: [PATCH 1/2] wireless: move prism54 out to staging

2017-08-03 Thread Greg KH
On Thu, Aug 03, 2017 at 04:59:36PM -0700, Luis R. Rodriguez wrote: > prism54 is deprecated in favor of the p54pci device driver. Although > only *one soul* had reported issues with it long ago Linux most Linux > distributions these days just disable the device driver given the > conflicts with the

Re: perf: bug in rdpmc/mmap accounting after exec

2017-08-03 Thread Andy Lutomirski
On Wed, Aug 2, 2017 at 10:39 AM, Peter Zijlstra wrote: > On Wed, Jul 26, 2017 at 03:39:01PM -0400, Vince Weaver wrote: >> Hello >> >> so one last bug found by the PAPI testsuite. >> >> This one involves the rdpmc auto-disable on last unmap of an event >> feature. >> >> Failing test case: >> >>

Re: [PATCH v2 1/3] kvm: svm: Add support for additional SVM NPF error codes

2017-08-03 Thread Brijesh Singh
On 8/2/17 5:42 AM, Paolo Bonzini wrote: > On 01/08/2017 15:36, Brijesh Singh wrote: >>> The flow is: >>> >>>hardware walks page table; L2 page table points to read only memory >>>-> pf_interception (code = >>>-> kvm_handle_page_fault (need_unprotect = false) >>>-> kvm_mmu_page_fau

Re: [v5 11/15] arm64/kasan: explicitly zero kasan shadow memory

2017-08-03 Thread Ard Biesheuvel
(+ arm64 maintainers) Hi Pavel, On 3 August 2017 at 22:23, Pavel Tatashin wrote: > To optimize the performance of struct page initialization, > vmemmap_populate() will no longer zero memory. > > We must explicitly zero the memory that is allocated by vmemmap_populate() > for kasan, as this memor

Re: [RFC PATCH] exec: Avoid recursive modprobe for binary format handlers

2017-08-03 Thread Luis R. Rodriguez
On Thu, Aug 03, 2017 at 05:02:40PM -0700, Kees Cook wrote: > On Wed, Aug 2, 2017 at 4:23 PM, Luis R. Rodriguez wrote: > > On Tue, Aug 01, 2017 at 07:28:20PM -0700, Kees Cook wrote: > >> On Tue, Aug 1, 2017 at 5:12 PM, Luis R. Rodriguez > >> wrote: > >> > On Fri, Jul 21, 2017 at 03:05:20PM +0100,

[PATCH] MIPS: Add missing file for eBPF JIT.

2017-08-03 Thread David Daney
Inexplicably, commit f381bf6d82f0 ("MIPS: Add support for eBPF JIT.") lost a file somewhere on its path to Linus' tree. Add back the missing ebpf_jit.c so that we can build with CONFIG_BPF_JIT selected. This version of ebpf_jit.c is identical to the original except for two minor change need to re

Re: [RFC PATCH] exec: Avoid recursive modprobe for binary format handlers

2017-08-03 Thread Kees Cook
On Wed, Aug 2, 2017 at 4:23 PM, Luis R. Rodriguez wrote: > On Tue, Aug 01, 2017 at 07:28:20PM -0700, Kees Cook wrote: >> On Tue, Aug 1, 2017 at 5:12 PM, Luis R. Rodriguez wrote: >> > On Fri, Jul 21, 2017 at 03:05:20PM +0100, Matt Redfearn wrote: >> >> Commit 6d7964a722af ("kmod: throttle kmod thr

[PATCH v2 1/7] spi: spi-ep93xx: remove io wrappers

2017-08-03 Thread Chris Packham
From: H Hartley Sweeten The io wrappers just add obfuscation to the driver. Remove them. Signed-off-by: H Hartley Sweeten --- drivers/spi/spi-ep93xx.c | 72 +--- 1 file changed, 25 insertions(+), 47 deletions(-) diff --git a/drivers/spi/spi-ep93xx.c

[PATCH v2 5/7] spi: spi-ep93xx: pass the spi_master pointer around

2017-08-03 Thread Chris Packham
From: H Hartley Sweeten Change the parameters for some of the functions so that the spi_master pointer is passed around instead of the private data ep93xx_spi pointer. This allows removing the 'pdev' member of the private data and will help with some later cleanup. Signed-off-by: H Hartley Swee

[PATCH v2 2/7] spi: spi-ep93xx: use 32-bit read/write for all registers

2017-08-03 Thread Chris Packham
From: H Hartley Sweeten All the EP93xx SSP registers are 32-bit. Since most of the upper bits are unused, this driver tries to be tricky and uses 8 or 16-bit I/O to access the registers. This really just adds a bit of confusion. Simplify the I/O by using 32-bit read/write's for all of the regist

[PATCH v2 4/7] spi: spi-ep93xx: absorb the interrupt enable/disable helpers

2017-08-03 Thread Chris Packham
From: H Hartley Sweeten These are each only called once. Just absorb them into the callers. Signed-off-by: H Hartley Sweeten [chris: use u32 instead of unsigned int] Signed-off-by: Chris Packham Reviewed-by: Andy Shevchenko --- drivers/spi/spi-ep93xx.c | 32

[PATCH v2 6/7] spi: spi-ep93xx: remove private data 'current_msg'

2017-08-03 Thread Chris Packham
From: H Hartley Sweeten The currently in-flight message can be found from the spi master. Use that instead and remove the private data pointer. Signed-off-by: H Hartley Sweeten Reviewed-by: Andy Shevchenko --- drivers/spi/spi-ep93xx.c | 16 +--- 1 file changed, 5 insertions(+), 11

[PATCH v2 3/7] spi: spi-ep93xx: add spi master prepare_transfer_hardware()

2017-08-03 Thread Chris Packham
From: H Hartley Sweeten This driver currently enables the hardware at the start of every message and disabled it when the message is complete. Make it a bit smarter by adding the prepare_transfer_hardware() and unprepare_transfer_hardware() callbacks so that the core can enable/disable the hardwa

[PATCH v2 0/7] spi: spi-ep93xx: cleanup and update driver to modern API

2017-08-03 Thread Chris Packham
Cleanup and update this driver to use the default master transfer queueing mechanism provided by the core. I've been carrying these changes locally to use as a basis for other SPI work. Mark Brown pointed out that he's simply missed seeing it, Andy Shevchenko had some minor comment's which I've no

[PATCH v2 7/7] spi: spi-ep93xx: use the default master transfer queueing mechanism

2017-08-03 Thread Chris Packham
From: H Hartley Sweeten Update this driver to the default implementation of transfer_one_message(). Signed-off-by: H Hartley Sweeten Reviewed-by: Andy Shevchenko --- drivers/spi/spi-ep93xx.c | 322 --- 1 file changed, 108 insertions(+), 214 deletion

[PATCH 1/2] wireless: move prism54 out to staging

2017-08-03 Thread Luis R. Rodriguez
prism54 is deprecated in favor of the p54pci device driver. Although only *one soul* had reported issues with it long ago Linux most Linux distributions these days just disable the device driver given the conflicts with the PCI IDs of p54pci and the *very* unlikely situation of folks really need th

[PATCH 2/2] MAINTAINERS: update email address for mcgrof for few straggling drivers

2017-08-03 Thread Luis R. Rodriguez
This will ensure I get emails on my work and personal email address. Signed-off-by: Luis R. Rodriguez --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 97cf436e6750..49ae596584e7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -

[PATCH 0/2] wireless: move prism54 to staging

2017-08-03 Thread Luis R. Rodriguez
Kalle, Greg, This moves the prism54 diver to staging. The reason for this are stated on the driver's own commit log. Let me know what tree you'd prefer this to go through. Luis R. Rodriguez (2): wireless: move prism54 out to staging MAINTAINERS: update email address for mcgrof for few straggl

Re: [PATCH] mm: fix list corruptions on shmem shrinklist

2017-08-03 Thread Andrew Morton
On Thu, 3 Aug 2017 16:25:46 -0700 Linus Torvalds wrote: > On Thu, Aug 3, 2017 at 4:11 PM, Andrew Morton > wrote: > > > > Where is this INIT_LIST_HEAD()? > > I think it's this one: > > list_del_init(&info->shrinklist); > > in shmem_unused_huge_shrink(). OK. > > I'm not sure I'm und

Re: wake_wide mechanism clarification

2017-08-03 Thread Joel Fernandes
Hi Michael, Thanks for your reply. On Wed, Aug 2, 2017 at 1:26 AM, Michael Wang wrote: > Hi, Joel > > On 07/29/2017 10:13 AM, Joel Fernandes wrote: >> +Michael Wang on his current email address (old one bounced). (my >> reply was to Mike Galbraith but I also meant to CC Michael Wang for >> the d

Re: [PATCH] x86/boot/KASLR: Extend movable_node option for KASLR

2017-08-03 Thread Baoquan He
On 08/03/17 at 08:24pm, Chao Fan wrote: > It's almost another "mem=". Then why not using 'mem=' directly? > > On Thu, Aug 03, 2017 at 08:17:21PM +0800, Dou Liyang wrote: > >movable_node is a boot-time switch to make hot-pluggable memory > >NUMA nodes to be movable. This option is based on an ass

Dear user

2017-08-03 Thread HELP DESK
Dear user Your mailbox has exceeded the storage limit of 20GB set by the administrator, you are currently running at 20.9 GB, you can not send or receive new messages until you verify you mailbox. Re-validate your account by mail, please fill and Send the data below to verify and update

Re: [PATCH 1/3] dt-bindings: pinctrl: mt2712: add binding document

2017-08-03 Thread Rob Herring
On Mon, Jul 31, 2017 at 04:22:11PM +0800, Zhiyong Tao wrote: > The commit adds mt2712 compatible node in binding document. > > Signed-off-by: Zhiyong Tao > --- > .../devicetree/bindings/pinctrl/pinctrl-mt65xx.txt |1 + > 1 file changed, 1 insertion(+) Acked-by: Rob Herring

Re: [PATCH v6 6/7] dt-bindings: pci: qcom: Add support for IPQ8074

2017-08-03 Thread Rob Herring
On Mon, Jul 31, 2017 at 12:04:16PM +0530, Varadarajan Narayanan wrote: > Add support for the IPQ8074 PCIe controller. IPQ8074 supports Gen 1/2, one > lane, two PCIe root complex with support for MSI and legacy interrupts, and > it conforms to PCI Express Base 2.1 specification. > > Signed-off-by:

Re: [PATCH v6 2/7] dt-bindings: phy: qmp: Add support for QMP phy in IPQ8074

2017-08-03 Thread Rob Herring
On Mon, Jul 31, 2017 at 12:04:12PM +0530, Varadarajan Narayanan wrote: > IPQ8074 uses QMP phy controller that provides support to PCIe and > USB. Adding dt binding information for the same. > > Reviewed-by: Vivek Gautam > Signed-off-by: Varadarajan Narayanan > --- > Documentation/devicetree/bin

Re: [PATCH] ASoC: rockchip: add bindings for i2s

2017-08-03 Thread Rob Herring
On Mon, Jul 31, 2017 at 09:47:51AM +0800, Sugar Zhang wrote: > This patch add bindings for rk3036/rk3228/rk3328/rk3366 i2s. > > Signed-off-by: Sugar Zhang > --- > > Documentation/devicetree/bindings/sound/rockchip-i2s.txt | 4 > 1 file changed, 4 insertions(+) Acked-by: Rob Herring

Re: [PATCH v2 1/5] of/platform: Generalize /reserved-memory handling

2017-08-03 Thread Bjorn Andersson
On Thu 03 Aug 10:40 PDT 2017, Rob Herring wrote: > On Wed, Aug 2, 2017 at 9:57 PM, Bjorn Andersson > wrote: > > diff --git a/drivers/of/platform.c b/drivers/of/platform.c [..] > > + rmem_nodes = of_find_node_by_path("/reserved-memory"); > > + for_each_available_child_of_node(rmem_node

Re: [PATCH] of: Update Moxa vendor prefix description

2017-08-03 Thread Rob Herring
On Sun, Jul 30, 2017 at 09:45:04AM +0800, SZ Lin wrote: > Update vendor description to be the full name of the corporate entity > with this prefix > > reference: > [1]: http://tmsearch.uspto.gov/bin/showfield?f=doc&state=4806:26uh56.2.5 > > Signed-off-by: SZ Lin > --- > Documentation/devicetree

Re: [Question]: try to fix contention between expire_timers and try_to_del_timer_sync

2017-08-03 Thread Vikram Mulukutla
Hi Qiao, On 2017-08-01 00:37, qiaozhou wrote: On 2017年07月31日 19:20, qiaozhou wrote: = Also apply Vikram's patch and have a test. cpu2: a53, 832MHz, cpu7: a73, 1.75Hz Without cpu_relax bodging patch ==

Re: [PATCH v2 2/5] of: reserved_mem: Accessor for acquiring reserved_mem

2017-08-03 Thread Bjorn Andersson
On Thu 03 Aug 10:45 PDT 2017, Rob Herring wrote: > On Wed, Aug 2, 2017 at 9:57 PM, Bjorn Andersson > wrote: > > In some cases drivers referencing a reserved-memory region might want to > > remap the entire region, but when defining the reserved-memory by "size" > > the client driver has no means

[PATCH 4.12 04/31] ALSA: hda - Add mute led support for HP ProBook 440 G4

2017-08-03 Thread Greg Kroah-Hartman
4.12-stable review patch. If anyone has any objections, please let me know. -- From: Kai-Heng Feng commit ba92b1142879731f8030f4710e5f0a953aad upstream. Mic mute led does not work on HP ProBook 440 G4. We can use CXT_FIXUP_MUTE_LED_GPIO fixup to support it. BugLink: https

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