Re: [PATCH 1/2] drivers: firmware: psci: Add psci_is_available()

2017-10-11 Thread Geert Uytterhoeven
Hi Jisheng, On Thu, Oct 12, 2017 at 4:58 AM, Jisheng Zhang wrote: > On Wed, 11 Oct 2017 10:03:01 +0200 Geert Uytterhoeven wrote: > >> PSCI support may be disabled at build time (by configuration) or at >> run-time (PSCI firmware not present). While CONFIG_ARM_PSCI_FW can be >> used to check for

Re: [PATCH] drm: Fix return value check in kirin_drm_platform_probe()

2017-10-11 Thread Gabriel Krisman Bertazi
Wei Yongjun writes: > In case of error, the function of_graph_get_remote_node() returns NULL > pointer not ERR_PTR(). The IS_ERR() test in the return value check > should be replaced with NULL test.. Looks good. Reviewed-by: Gabriel Krisman Bertazi -- Gabriel Krisman Bertazi

[PATCH v6 3/4] phy: rcar-gen3-usb2: add SoC-specific parameter for dedicated pins

2017-10-11 Thread Yoshihiro Shimoda
This patch adds SoC-specific parameter to avoid reading/writing specific registers wrongly if this driver runs on a SoC which doesn't have dedicated pins (e.g. R-Car D3). This patch also changes the value "has_otg" to "has_otg_pins" for slightly easier reading of the code. Signed-off-by: Yoshihiro

[PATCH v6 4/4] phy: rcar-gen3-usb2: add binding for r8a77995

2017-10-11 Thread Yoshihiro Shimoda
This patch adds binding for r8a77995 (R-Car D3). Since r8a77995 doesn't have dedicated pins (ID, VBUS), this will match against the generic fallback on R-Car D3. For now, this driver doesn't support usb role swap for r8a77995. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Simon Horman --- Docu

[PATCH v6 1/4] phy: rcar-gen3-usb2: check dr_mode for otg mode

2017-10-11 Thread Yoshihiro Shimoda
The previous code assumed a channel has otg capability if a channel has interrupt property. But, it is not good because: - Battery charging feature also needs interrupt property. - Some R-Car Gen3 SoCs (e.g. R-Car D3) don't have OTG capability. So, this patch checks whether usb 2.0 host node has

[PATCH v6 0/4] phy: rcar-gen3-usb2: add support for r8a77995

2017-10-11 Thread Yoshihiro Shimoda
This patch set is based on the latest phy.git / next branch (the commit id = 415060b21f318e009d865b4bcbf8f220ebc36964) After this patch set is applied, a usb 2.0 host node that is combined with usb 2.0 peripheral needs 'dr_mode = "otg";' property. Changes from v5: - Add "Reviewed-by:" into patch

[PATCH v6 2/4] phy: rcar-gen3-usb2: use enum phy_mode in the role_store()

2017-10-11 Thread Yoshihiro Shimoda
This patch modifies the role_store() to use "enum phy_mode" instead of the local "bool" for host/device mode selection. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Simon Horman --- drivers/phy/renesas/phy-rcar-gen3-usb2.c | 29 ++--- 1 file changed, 18 insertions(+), 1

Re: [PATCH] m68k: pull mach_beep in setup.c

2017-10-11 Thread Geert Uytterhoeven
Hi Greg, On Thu, Oct 12, 2017 at 2:15 AM, Greg Ungerer wrote: > On 28/09/17 19:44, Alexandre Belloni wrote: >> It is possible to select INPUT_M68K_BEEP in a nommu configuration. This >> results in the following link error: >> >> drivers/input/misc/m68kspkr.o: In function `m68kspkr_event': >> m68k

Re: [v11 3/6] mm, oom: cgroup-aware OOM killer

2017-10-11 Thread Michal Hocko
On Wed 11-10-17 13:27:44, David Rientjes wrote: > On Wed, 11 Oct 2017, Michal Hocko wrote: > > > > For these reasons: unfair comparison of root mem cgroup usage to bias > > > against that mem cgroup from oom kill in system oom conditions, the > > > ability of users to completely evade the oom ki

Re: [PATCH v5] HID: hid-multitouch: support fine-grain orientation reporting

2017-10-11 Thread Wei-Ning Huang
Sorry I forgot to remove the S-o-b of my Google email. Henrik can you help me remove that line if you pick it? Thanks. Wei-Ning On Thu, Oct 12, 2017 at 2:21 PM, Wei-Ning Huang wrote: > From: Wei-Ning Huang > > The current hid-multitouch driver only allow the report of two > orientations, vertic

[PATCH v5] HID: hid-multitouch: support fine-grain orientation reporting

2017-10-11 Thread Wei-Ning Huang
From: Wei-Ning Huang The current hid-multitouch driver only allow the report of two orientations, vertical and horizontal. We use the Azimuth orientation usage 0x3F under the Digitizer usage page to report orientation if the device supports it. Changelog: v1 -> v2: - Fix commit message.

[PATCH v2 4/5] scsi/ufs: qcom: Set phy mode based on the controllers HS MODE

2017-10-11 Thread Vivek Gautam
Set the phy mode based on the UFS HS PA mode. This lets the controller let phy know the mode in which the PHY Adapter is running and set the phy rates accordingly. Signed-off-by: Vivek Gautam Reviewed-by: Subhash Jadavani --- Changes since v1: - none. drivers/scsi/ufs/ufs-qcom.c | 3 +++ 1 f

[PATCH v2 3/5] phy: qcom-ufs: Add support to set phy mode

2017-10-11 Thread Vivek Gautam
Adding support to set desired UFS phy mode that can be set from the host controller. Signed-off-by: Vivek Gautam --- Changes since v1: - none. drivers/phy/qualcomm/phy-qcom-ufs-i.h| 2 ++ drivers/phy/qualcomm/phy-qcom-ufs-qmp-14nm.c | 14 ++ drivers/phy/qualcomm/phy-qcom-

[PATCH v2 5/5] ufs/phy: qcom: Refactor to use phy_init call

2017-10-11 Thread Vivek Gautam
Refactor ufs_qcom_power_up_sequence() to get rid of ugly exported phy APIs and use the phy_init() and phy_power_on() to do the phy initialization. Signed-off-by: Vivek Gautam --- Changes since v1: - The UFS phy retain state in low power mode. The phy can enter the low power state and come up

[PATCH v2 2/5] phy: Add UFS PHY modes

2017-10-11 Thread Vivek Gautam
UFS phy has two modes for each High speed generation. These modes are identified by two rates of operations - Rate A, and Rate B. Add these UFS phy modes to phy framework. Signed-off-by: Vivek Gautam --- Changes since v1: - Rebased on linux-phy/next. include/linux/phy/phy.h | 2 ++ 1 file cha

[PATCH v2 1/5] dt-bindings: phy: Add PHY_TYPE_UFS definition

2017-10-11 Thread Vivek Gautam
Add definition for UFS phy type. Signed-off-by: Vivek Gautam --- Changes since v1: - none. include/dt-bindings/phy/phy.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/phy/phy.h b/include/dt-bindings/phy/phy.h index 6c901930eb3e..d16e8755f6a9 100644 --- a/include/dt-b

[PATCH v2 0/5] qcom-ufs: phy/hcd: Refactor phy initialization code

2017-10-11 Thread Vivek Gautam
Refactoring the qcom-ufs phy and host controller code to move further towards the generic phy usage. Right now the qcom-ufs exports a bunch of APIs that are used by the host controller to initialize the phy. With this patch series, we populate the phy_init() which was a no-op earlier. The host cont

[PATCH v6 0/4] cramfs refresh for embedded usage

2017-10-11 Thread Nicolas Pitre
This series brings a nice refresh to the cramfs filesystem, adding the following capabilities: - Direct memory access, bypassing the block and/or MTD layers entirely. - Ability to store individual data blocks uncompressed. - Ability to locate individual data blocks anywhere in the filesystem. T

[PATCH v6 2/4] cramfs: implement uncompressed and arbitrary data block positioning

2017-10-11 Thread Nicolas Pitre
Two new capabilities are introduced here: - The ability to store some blocks uncompressed. - The ability to locate blocks anywhere. Those capabilities can be used independently, but the combination opens the possibility for execute-in-place (XIP) of program text segments that must remain uncompr

[PATCH v6 1/4] cramfs: direct memory access support

2017-10-11 Thread Nicolas Pitre
Small embedded systems typically execute the kernel code in place (XIP) directly from flash to save on precious RAM usage. This adds the ability to consume filesystem data directly from flash to the cramfs filesystem as well. Cramfs is particularly well suited to this feature as it is very simple a

[PATCH v6 3/4] cramfs: add mmap support

2017-10-11 Thread Nicolas Pitre
When cramfs in physical memory is used then we have the opportunity to map files directly from ROM, directly into user space, saving on RAM usage. This gives us Execute-In-Place (XIP) support. For a file to be mmap()-able, the map area has to correspond to a range of uncompressed and contiguous bl

[PATCH v6 4/4] cramfs: rehabilitate it

2017-10-11 Thread Nicolas Pitre
Update documentation, pointer to latest tools, appoint myself as maintainer. Given it's been unloved for so long, I don't expect anyone will protest. Signed-off-by: Nicolas Pitre Tested-by: Chris Brandt --- Documentation/filesystems/cramfs.txt | 42 MAINTAIN

Re: [PATCH 1/2] pinctrl: meson: separate soc drivers

2017-10-11 Thread kbuild test robot
Hi Jerome, [auto build test ERROR on pinctrl/devel] [also build test ERROR on v4.14-rc4 next-20171009] [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/Jerome-Brunet/pinctrl-meson-prepare-for-new-

Re: [PATCH] kbuild: remove KBUILD_SUBDIR_ASFLAGS and KBUILD_SUBDIR_CCFLAGS

2017-10-11 Thread Cao jin
On 10/10/2017 07:43 PM, Masahiro Yamada wrote: > Accumulate subdir-{cc,as}flags-y directly to KBUILD_{A,C}FLAGS. > Remove KBUILD_SUBDIR_{AS,CC}FLAGS. > > Signed-off-by: Masahiro Yamada > --- > > scripts/Makefile.lib | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --g

Re: [PATCH] ACPI / battery: add quirk for Asus GL502VSK and UX305LA

2017-10-11 Thread Kai-Heng Feng
On Fri, Sep 22, 2017 at 4:27 PM, Kai-Heng Feng wrote: > On Asus GL502VSK and UX305LA, ACPI incorrectly reports discharging when > battery is full and AC is plugged. > > However rate_now is correct under this circumstance, hence we can use > "rate_now == 0" as a predicate to report battery full sta

Re: [PATCH v6 2/4] perf tools arm64: Add support for get_cpuid_str function.

2017-10-11 Thread Ganapatrao Kulkarni
On Wed, Oct 11, 2017 at 5:43 PM, Will Deacon wrote: > On Thu, Aug 24, 2017 at 05:33:47PM +0530, Ganapatrao Kulkarni wrote: >> function get_cpuid_str returns MIDR string of the first online >> cpu from the range of cpus associated with the pmu core device. >> >> Signed-off-by: Ganapatrao Kulkarni

Re: Add hierarchical irq_domain for i2c based gpio expander pca9505

2017-10-11 Thread Abhishek Shah
+BCM kernel feedback. Sorry for duplicated mails, had HTML formatting issue. On Wed, Oct 11, 2017 at 5:50 PM, Abhishek Shah wrote: > Hi Linus, > > I am facing one issue, where; while disabling/ masking interrupts just > before kexec reboot, access to gpio expander pca9505 residing over > i2c bus

Re: [PATCH -tip v3 3/7] kprobes: Warn if optprobe handler tries to change execution path

2017-10-11 Thread Masami Hiramatsu
On Tue, 10 Oct 2017 22:32:31 +0530 "Naveen N. Rao" wrote: > On 2017/09/19 10:00AM, Masami Hiramatsu wrote: > > Warn if optprobe handler tries to change execution path. > > As described in Documentation/kprobes.txt, with optprobe > > user handler can not change instruction pointer. In that > > cas

Re: [PATCH 00/11] KASan for arm

2017-10-11 Thread Liuwenliang (Lamb)
On 10/12/2017 12:10 AM, Abbott Liu wrote: >On 10/11/2017 12:50 PM, Florian Fainelli wrote: >> On 10/11/2017 12:13 PM, Florian Fainelli wrote: >>> Hi Abbott, >>> >>> On 10/11/2017 01:22 AM, Abbott Liu wrote: Hi,all: These patches add arch specific code for kernel address sanitizer

Re: [PATCH v6 4/4] perf vendor events arm64: Add ThunderX2 implementation defined pmu core events

2017-10-11 Thread Ganapatrao Kulkarni
On Wed, Oct 11, 2017 at 7:25 PM, Will Deacon wrote: > On Wed, Oct 11, 2017 at 03:24:31PM +0200, Robert Richter wrote: >> On 11.10.17 13:19:27, Will Deacon wrote: >> > On Tue, Aug 29, 2017 at 02:47:30PM +0200, Robert Richter wrote: >> > > Shaokun, >> > > >> > > On 29.08.17 17:26:00, Zhangshaokun wr

[PATCH v2 0/4] TDA1997x HDMI video receiver

2017-10-11 Thread Tim Harvey
This is a v4l2 subdev driver supporting the TDA1997x HDMI video receiver. I've tested this on a Gateworks GW54xx with an IMX6Q which uses the TDA19971 with 16bits connected to the IMX6 CSI. For this configuration I've tested both 16bit YUV422 and 8bit BT656 mode. While the driver should support th

[PATCH v2 2/4] media: dt-bindings: Add bindings for TDA1997X

2017-10-11 Thread Tim Harvey
Cc: Rob Herring Signed-off-by: Tim Harvey --- v2: - add vendor prefix and remove _ from vidout-portcfg - remove _ from labels - remove max-pixel-rate property - describe and provide example for single output port - use new audio port bindings --- .../devicetree/bindings/media/i2c/tda1997x.

[PATCH v2 3/4] media: i2c: Add TDA1997x HDMI receiver driver

2017-10-11 Thread Tim Harvey
Add support for the TDA1997x HDMI receivers. Cc: Hans Verkuil Signed-off-by: Tim Harvey --- v2: - implement dv timings enum/cap - remove deprecated g_mbus_config op - fix dv_query_timings - add EDID get/set handling - remove max-pixel-rate support - add audio codec DAI support - use new a

[PATCH v2 4/4] ARM: dts: imx: Add TDA19971 HDMI Receiver to GW54xx

2017-10-11 Thread Tim Harvey
The GW54xx has a front-panel microHDMI connector routed to a TDA19971 which is connected the the IPU CSI when using IMX6Q. Signed-off-by: Tim Harvey --- v2: - use new audio bindings - add HDMI audio input support --- arch/arm/boot/dts/imx6q-gw54xx.dts| 102

[PATCH v2 1/4] MAINTAINERS: add entry for NXP TDA1997x driver

2017-10-11 Thread Tim Harvey
Signed-off-by: Tim Harvey --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2093060..de7124e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13019,6 +13019,14 @@ T: git git://linuxtv.org/mkrufky/tuners.git S: Maintained F: dri

[PATCH] PCI: designware: move dw_pcie_iatu_unroll_enabled to pcie-designware.c

2017-10-11 Thread Pankaj Dubey
IATU unroll feature can be enabled in EP mode as well, so we need to have this check in pcie-designware-ep.c, so instead of making this function as static in pcie-desigware-host.c, let's move this in pcie-designware.c so that both pcie-designware-host.c and pcie-designware-ep.c can use it. Signed-

Re: [PATCH] rtl8xxxu: mark expected switch fall-throughs

2017-10-11 Thread Kalle Valo
Jes Sorensen writes: > On 10/11/2017 04:41 AM, Kalle Valo wrote: >> Jes Sorensen writes: >> >>> On 10/10/2017 03:30 PM, Gustavo A. R. Silva wrote: In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. >>> >>> While this isn't harmf

[PATCH] x86: handle MSR exception when setting energy perf bias

2017-10-11 Thread Gabriel Krisman Bertazi
On very rare occasions, immediately after a suspend, one of our SandyBridge CI boxes hits the exception below on CPU0 while trying to reconfigure the energy bias register. As far as I can tell, this is not likely a race in the kernel, since we have only one cpu online, no preempt and irqs_disabled

Re: [PATCH v3 3/8] PM / devfreq: Show the available min/max frequency through sysfs node

2017-10-11 Thread Chanwoo Choi
On 2017년 10월 11일 21:57, Chanwoo Choi wrote: > On Wed, Oct 11, 2017 at 8:15 PM, MyungJoo Ham > wrote: >>> The existing {min|max}_freq sysfs nodes don't consider whether min/max_freq >>> are available or not. Those sysfs nodes show just the stored value >>> in the struct devfreq. >>> >>> The devfre

[PATCH] documentation: Update ide-cd documentation to reflect CONFIG_BLK_DEV_HD_IDE removal

2017-10-11 Thread Finn Thain
CONFIG_BLK_DEV_HD_IDE was removed in commit 80aa31cb460d ("ide: remove CONFIG_BLK_DEV_HD_IDE config option (take 2)") but the ide-cd documentation was not updated and still asks users to disable it, which is misleading and involves a fruitless search. Signed-off-by: Finn Thain diff --git a/Do

Re: [PATCH v3 5/5] soc: qcom: smem: Increase the number of hosts

2017-10-11 Thread Bjorn Andersson
On Wed 11 Oct 14:29 PDT 2017, Chris Lew wrote: > From: Chris Lew > > Increase the maximum number of hosts in a system to 10. > Acked-by: Bjorn Andersson Regards, Bjorn > Signed-off-by: Chris Lew > --- > > Changes since v1: > - None > > Changes since v2: > - None > > drivers/soc/qcom/sm

[PATCH] PCI: endpoint: handle probable NULL pointer access

2017-10-11 Thread Pankaj Dubey
controller_group allocation in pci_ep_cfs_init function can fail so we should have a check while using it in pci_ep_cfs_add_epc_group for registering group, else we will hit NULL pointer access. This patch adds required check for the same and returns -EPROBE_DEFER, so that endpoint controller driv

Re: [PATCH] ath10k: fix core PCI suspend when WoWLAN is supported but disabled

2017-10-11 Thread Kalle Valo
Brian Norris writes: > Ping? Any comments? I know there's more than one way to slice this > problem, but it's most definitely a problem... I'm lagging behind with patches but I'll try to catch up this week. Sorry. -- Kalle Valo

Re: [PATCH v3 4/5] soc: qcom: smem: Support dynamic item limit

2017-10-11 Thread Bjorn Andersson
On Wed 11 Oct 14:29 PDT 2017, Chris Lew wrote: > From: Chris Lew > > In V12 SMEM, SBL writes SMEM parameter information after the TOC. Use > the SBL provided item count as the max item number. > Acked-by: Bjorn Andersson Regards, Bjorn > Signed-off-by: Chris Lew > --- > > Changes since v1

Re: [PATCH v3 3/5] soc: qcom: smem: Support global partition

2017-10-11 Thread Bjorn Andersson
On Wed 11 Oct 14:29 PDT 2017, Chris Lew wrote: > From: Chris Lew > > SMEM V12 creates a global partition to allocate global smem items from > instead of a global heap. The global partition has the same structure as > a private partition. > Acked-by: Bjorn Andersson Regards, Bjorn > Signed-o

Re: [PATCH v3 2/5] soc: qcom: smem: Read version from the smem header

2017-10-11 Thread Bjorn Andersson
On Wed 11 Oct 14:29 PDT 2017, Chris Lew wrote: > From: Chris Lew > > The SMEM header structure includes the version information. Read the > version directly from the header instead of getting an item from the > global heap. > Acked-by: Bjorn Andersson Regards, Bjorn > Signed-off-by: Chris L

Re: [PATCH v3 1/5] soc: qcom: smem: Use le32_to_cpu for comparison

2017-10-11 Thread Bjorn Andersson
On Wed 11 Oct 14:29 PDT 2017, Chris Lew wrote: > From: Chris Lew > > Endianness can vary in the system, add le32_to_cpu when comparing > partition sizes from smem. > Acked-by: Bjorn Andersson Regards, Bjorn > Signed-off-by: Chris Lew > --- > > Changes since v1: > - New change > > Changes

Re: [PATCH v16 5/5] virtio-balloon: VIRTIO_BALLOON_F_CTRL_VQ

2017-10-11 Thread Wei Wang
On 10/11/2017 09:49 PM, Michael S. Tsirkin wrote: On Wed, Oct 11, 2017 at 02:03:20PM +0800, Wei Wang wrote: On 10/10/2017 11:15 PM, Michael S. Tsirkin wrote: On Mon, Oct 02, 2017 at 04:38:01PM +, Wang, Wei W wrote: On Sunday, October 1, 2017 11:19 AM, Michael S. Tsirkin wrote: On Sat, Sep

Re: [PATCH v3 7/9] soc: mediatek: pwrap: add MediaTek MT6380 as one slave of pwrap

2017-10-11 Thread Sean Wang
On Tue, 2017-10-10 at 12:02 +0200, Matthias Brugger wrote: > > On 08/15/2017 11:09 AM, sean.w...@mediatek.com wrote: > > From: Sean Wang > > > > Add MediaTek MT6380 regulator becoming one of PMIC wrapper slave > > and also add extra new regmap_config of 32-bit mode for MT6380 > > since old regma

Re: [PATCH v2] extcon: Split out extcon header file for consumer and provider device

2017-10-11 Thread Chanwoo Choi
Dear Kishon, Could you please review this patch? After that, I'll make the immutable brand and then send the pull request for power_supply, mfd, phy, usb and extcon framework. On 2017년 10월 10일 19:17, Chanwoo Choi wrote: > The extcon has two type of extcon devices as following. > - 'extcon provide

RE: [PATCH 2/2] pci/layerscape: change the default error response behavior

2017-10-11 Thread Z.q. Hou
Hi Bjorn, Thanks a lot for your review! > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: 2017年10月12日 3:41 > To: Z.q. Hou > Cc: linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-...@vger.kernel.org; bhelg...@google.com; Roy Zang > ;

[PATCH v13] MAINTAINERS: add entry for Rockchip RGA driver

2017-10-11 Thread Jacob Chen
Signed-off-by: Jacob Chen --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6671f375f7fc..b13dae0cbf42 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11509,6 +11509,13 @@ F: drivers/hid/hid-roccat* F: include/linux/hid-roccat* F:

[PATCH v2] net: ftgmac100: Request clock and set speed

2017-10-11 Thread Joel Stanley
According to the ASPEED datasheet, gigabit speeds require a clock of 100MHz or higher. Other speeds require 25MHz or higher. This patch configures a 100MHz clock if the system has a direct-attached PHY, or 25MHz if the system is running NC-SI which is limited to 100MHz. There appear to be no other

Re: [PATCH][bpf-next] bpf: remove redundant variable old_flags

2017-10-11 Thread David Miller
From: Colin King Date: Wed, 11 Oct 2017 11:56:23 +0100 > From: Colin Ian King > > Variable old_flags is being assigned but is never read; it is redundant > and can be removed. > > Cleans up clang warning: Value stored to 'old_flags' is never read > > Signed-off-by: Colin Ian King Applied.

[PATCH] scripts: fix faddr2line to work on last symbol

2017-10-11 Thread NeilBrown
If faddr2line is given a function name which is the last one listed by "nm -n", it will fail because it never finds the next symbol. So teach the awk script to catch that possibility, and use 'size' to provide the end point of the last function. Signed-off-by: NeilBrown --- scripts/faddr2line

Re: [PATCH v3 5/9] soc: mediatek: pwrap: add pwrap_write32 for writing in 32-bit mode

2017-10-11 Thread Sean Wang
On Tue, 2017-10-10 at 11:38 +0200, Matthias Brugger wrote: > > On 08/15/2017 11:09 AM, sean.w...@mediatek.com wrote: > > From: Sean Wang > > > > Some regulators such as MediaTek MT6380 also has to be written in > > 32-bit mode. So the patch adds pwrap_write32, rename old pwrap_write > > into pwr

Re: [PATCH][net-next] net: mpls: make function ipgre_mpls_encap_hlen static

2017-10-11 Thread David Miller
From: Colin King Date: Wed, 11 Oct 2017 10:53:28 +0100 > From: Colin Ian King > > The function ipgre_mpls_encap_hlen is local to the source and > does not need to be in global scope, so make it static. > > Cleans up sparse warning: > symbol 'ipgre_mpls_encap_hlen' was not declared. Should it b

Re: [PATCH][next] sctp: make array sctp_sched_ops static

2017-10-11 Thread David Miller
From: Colin King Date: Wed, 11 Oct 2017 11:17:57 +0100 > From: Colin Ian King > > The array sctp_sched_ops is local to the source and > does not need to be in global scope, so make it static. > > Cleans up sparse warning: > symbol 'sctp_sched_ops' was not declared. Should it be static? > > S

RE: [PATCH 1/2] PCI: Disable MSI for Freescale PCIe RC mode

2017-10-11 Thread Z.q. Hou
Hi Bjorn, Thanks a lot for your comments! > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: 2017年10月12日 3:38 > To: Z.q. Hou > Cc: linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org; > linux-...@vger.kernel.org; bhelg...@google.com; Roy Zang >

Re: [PATCH net] net/ncsi: Don't limit vids based on hot_channel

2017-10-11 Thread David Miller
From: Samuel Mendoza-Jonas Date: Wed, 11 Oct 2017 16:54:27 +1100 > Currently we drop any new VLAN ids if there are more than the current > (or last used) channel can support. Most importantly this is a problem > if no channel has been selected yet, resulting in a segfault. > > Secondly this does

RE: [PATCH 0/5] arm64: add ls1012a and ls1046a pcie support

2017-10-11 Thread M.h. Lian
Hi Bjorn, I greatly appreciate for your review and picking up them. Acked-by: Minghuan Lian > -Original Message- > From: Bjorn Helgaas [mailto:helg...@kernel.org] > Sent: Thursday, October 12, 2017 2:57 AM > To: Z.q. Hou > Cc: linux-kernel@vger.kernel.org; devicet...@vger.kernel.org;

Re: [PATCH] net: ftgmac100: Request clock and set speed

2017-10-11 Thread Joel Stanley
On Tue, Oct 10, 2017 at 4:14 PM, Benjamin Herrenschmidt wrote: > On Tue, 2017-10-10 at 15:19 +1030, Joel Stanley wrote: >> According to the ASPEED datasheet, gigabit speeds require a clock of >> 100MHz or higher. Other speeds require 25MHz or higher. > > Did you try "live" changing by either using

RE: [PATCH 1/2] PCI: Disable MSI for Freescale PCIe RC mode

2017-10-11 Thread M.h. Lian
Hi Bjorn, Thanks for your review. Yes. All the freescale's PCIe controllers do not support to generate MSI interrupt. The PCIe controllers developed for the next generation SoC do not support it either. Acked-by: Minghuan Lian > -Original Message- > From: Bjorn Helgaas [mailto:helg...

Re: [PATCH 1/2] drivers: firmware: psci: Add psci_is_available()

2017-10-11 Thread Jisheng Zhang
On Wed, 11 Oct 2017 10:03:01 +0200 Geert Uytterhoeven wrote: > PSCI support may be disabled at build time (by configuration) or at > run-time (PSCI firmware not present). While CONFIG_ARM_PSCI_FW can be > used to check for build time enablement, there is currently no simple > way to check if PSCI

Re: [kernel-hardening] [PATCH] printk: hash addresses printed with %p

2017-10-11 Thread Tobin C. Harding
Removing k...@vger.kernel.org from the CC list. On Wed, Oct 11, 2017 at 01:48:58PM -0400, Theodore Ts'o wrote: > On Wed, Oct 11, 2017 at 02:48:16PM +1100, Tobin C. Harding wrote: > > +/* > > + * Obfuscates pointer (algorithm taken from kptr_obfuscate(). See > > kernel/kcmp.c) > > + * v is the poi

Re: [PATCH v3 22/33] tracing: Add support for 'field variables'

2017-10-11 Thread Namhyung Kim
On Fri, Sep 22, 2017 at 03:00:02PM -0500, Tom Zanussi wrote: > Users should be able to directly specify event fields in hist trigger > 'actions' rather than being forced to explicitly create a variable for > that purpose. > > Add support allowing fields to be used directly in actions, which > esse

Re: [PATCHv2 1/1] ANDROID: mmc: core: export emmc revision

2017-10-11 Thread Jisheng Zhang
On Wed, 11 Oct 2017 13:51:26 -0700 Jin Qian wrote: > From: Jin Qian > > Expose emmc revision as part of device attributes. >> ANDROID: mmc: core: export emmc revision This commit probably back port from android linux kernel repo. Could we remove the ANDROID prefix > > Signed-off-by: Jin Qia

Re: [PATCH] printk: hash addresses printed with %p

2017-10-11 Thread Tobin C. Harding
On Tue, Oct 10, 2017 at 09:06:50PM -0700, Joe Perches wrote: > On Wed, 2017-10-11 at 14:48 +1100, Tobin C. Harding wrote: > > Currently there are many places in the kernel where addresses are being > > printed using an unadorned %p. Kernel pointers should be printed using > > %pK allowing some cont

Re: [PATCH v3 12/12] ARM: dtsi: axp81x: set pinmux for GPIO0/1 when used as LDOs

2017-10-11 Thread Chen-Yu Tsai
On Thu, Oct 12, 2017 at 3:09 AM, Linus Walleij wrote: > On Wed, Oct 11, 2017 at 2:00 PM, Maxime Ripard > wrote: > >> What about not enforcing any muxing state when we want to mux to the >> "ldo" function? We just leave it to whatever value it is, that way we >> keep it under the regulator framewo

Re: [PATCH] radix-tree: get_slot_offset() returns invalid offset when parent is NULL

2017-10-11 Thread Wei Yang
On Wed, Oct 11, 2017 at 04:39:40PM -0700, Andrew Morton wrote: >On Wed, 11 Oct 2017 10:33:39 +0800 Wei Yang wrote: > >> On Tue, Oct 10, 2017 at 01:53:11PM -0700, Andrew Morton wrote: >> >On Tue, 10 Oct 2017 10:52:01 +0800 Wei Yang >> >wrote: >> > >> >> When parent is NULL, get_slot_offset() retu

Re: [PATCH] Staging: rtlwifi: Remove NULL pointer dereference

2017-10-11 Thread Tobin C. Harding
On Wed, Oct 11, 2017 at 06:02:47PM +0530, Shreeya Patel wrote: > On Tue, 2017-10-10 at 11:06 +1100, Tobin C. Harding wrote: > > On Tue, Oct 10, 2017 at 02:48:58AM +0530, Shreeya Patel wrote: > > > > > > Remove NULL pointer dereference as it results in undefined > > > behaviour, and will usually le

[PATCH net-next 0/2] Add mqprio hardware offload support in hns3 driver

2017-10-11 Thread Yunsheng Lin
This patchset adds a new hardware offload type in mqprio before adding mqprio hardware offload support in hns3 driver. Yunsheng Lin (2): mqprio: Add a new hardware offload type in mqprio net: hns3: Add mqprio hardware offload support in hns3 driver drivers/net/ethernet/hisilicon/hns3/hnae3.h

[PATCH net-next 2/2] net: hns3: Add mqprio hardware offload support in hns3 driver

2017-10-11 Thread Yunsheng Lin
When using tc qdisc, dcb_ops->setup_tc is used to tell hclge_dcb module to do the tm related setup. Only TC_MQPRIO_HW_OFFLOAD_DCB offload type is supported. Signed-off-by: Yunsheng Lin --- drivers/net/ethernet/hisilicon/hns3/hnae3.h| 1 + .../net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb

[PATCH net-next 1/2] mqprio: Add a new hardware offload type in mqprio

2017-10-11 Thread Yunsheng Lin
When a driver supports both dcb and hardware offloaded mqprio, and user is running mqprio and dcb tool concurrently, the configuration set by each tool may be conflicted with each other because the dcb and mqprio may be using the same hardwere offload component and share the tc system in the networ

[RFC PATCH 2/3] mm/map_contig: Use pre-allocated pages for VM_CONTIG mappings

2017-10-11 Thread Mike Kravetz
When populating mappings backed by contiguous memory allocations (VM_CONTIG), use the preallocated pages instead of allocating new. Signed-off-by: Mike Kravetz --- mm/memory.c | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/mm/memory.c b/mm/memory.c index a728be

[RFC PATCH 0/3] Add mmap(MAP_CONTIG) support

2017-10-11 Thread Mike Kravetz
The following is a 'possible' way to add such functionality. I just did what was easy and pre-allocated contiguous pages which are used to populate the mapping. I did not use any of the higher order allocators such as alloc_contig_range. Therefore, it is limited to allocations of MAX_ORDER size.

[RFC PATCH 1/3] mm/map_contig: Add VM_CONTIG flag to vma struct

2017-10-11 Thread Mike Kravetz
Add the flag VM_CONTIG to vma structure to identify vmas which are backed by contiguous memory allocations. This flag is not propogated to child processes, so be sure to clear at fork time. Signed-off-by: Mike Kravetz --- include/linux/mm.h | 1 + kernel/fork.c | 2 +- 2 files changed, 2 i

[RFC PATCH 3/3] mm/map_contig: Add mmap(MAP_CONTIG) support

2017-10-11 Thread Mike Kravetz
Add new MAP_CONTIG flag to mmap system call. Check for flag in normal mmap flag processing. If present, pre-allocate a contiguous set of pages to back the mapping. These pages will be used a fault time, and the MAP_CONTIG flag implies populating the mapping at the mmap time. Signed-off-by: Mike

Re: [PATCH v1 1/4] perf annotate: create a new hists to manage multiple events samples

2017-10-11 Thread Jin, Yao
On 10/9/2017 9:40 AM, Jin, Yao wrote: On 10/7/2017 2:54 AM, Arnaldo Carvalho de Melo wrote: Em Sat, Oct 07, 2017 at 12:31:37AM +0800, Jin, Yao escreveu: On 10/5/2017 9:21 PM, Arnaldo Carvalho de Melo wrote: Em Wed, Aug 16, 2017 at 06:18:33PM +0800, Jin Yao escreveu: An issue is found duri

Re: [PATCH ALT4 V3 1/2] audit: show fstype:pathname for entries with anonymous parents

2017-10-11 Thread Richard Guy Briggs
On 2017-09-20 16:52, Paul Moore wrote: > On Wed, Aug 23, 2017 at 7:03 AM, Richard Guy Briggs wrote: > > Tracefs or debugfs were causing hundreds to thousands of null PATH > > records to be associated with the init_module and finit_module SYSCALL > > records on a few modules when the following rule

Re: [PATCH v9 15/29] x86/insn-eval: Add utility functions to get segment descriptor base address and limit

2017-10-11 Thread Ricardo Neri
On Wed, 2017-10-11 at 22:16 +0200, Borislav Petkov wrote: > On Wed, Oct 11, 2017 at 12:57:01PM -0700, Ricardo Neri wrote: > > > > This is meant to be an error case. In long mode, > > only INAT_SEG_REG_IGNORE/FS/GS > > are valid. All other indices are invalid. > > > > Perhaps we could return -EINV

Re: Linux-kernel examples for LKMM recipes

2017-10-11 Thread Boqun Feng
On Wed, Oct 11, 2017 at 10:32:30PM +, Paul E. McKenney wrote: > Hello! > > At Linux Plumbers Conference, we got requests for a recipes document, > and a further request to point to actual code in the Linux kernel. > I have pulled together some examples for various litmus-test families, > as sh

Re: [PATCH] IB/hfil: Delete unused bypass flags

2017-10-11 Thread Dennis Dalessandro
On 10/11/2017 5:35 PM, Don Hiatt wrote: On 10/11/2017 1:56 PM, Christos Gkekas wrote: Clean up unused bypass variables in verbs. Signed-off-by: Christos Gkekas ---   drivers/infiniband/hw/hfi1/verbs.c | 4   1 file changed, 4 deletions(-) diff --git a/drivers/infiniband/hw/hfi1/verbs.c

Re: [PATCH v6 14/14] platform/x86: dell-smbios-wmi: introduce userspace interface

2017-10-11 Thread kbuild test robot
Hi Mario, [auto build test WARNING on platform-drivers-x86/for-next] [also build test WARNING on next-20171009] [cannot apply to v4.14-rc4] [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/Mario-L

Re: [PATCH 02/10] perf tool: fix: Don't discard prev in backward mode

2017-10-11 Thread Wangnan (F)
On 2017/10/11 22:57, Liang, Kan wrote: If you really want to avoid record duplication, you need to changes record__mmap_read()'s logic. Now it complains "failed to keep up with mmap data" and avoid dumping data when size of newly generated data is larger than the size of the ring buffer. It is

Re: [lockdep] b09be676e0 BUG: unable to handle kernel NULL pointer dereference at 000001f2

2017-10-11 Thread Byungchul Park
On Wed, Oct 11, 2017 at 09:56:05AM +0900, Byungchul Park wrote: > Thank you very much for explaining it in detail. > > But let's shift a viewpoint. Precisely, I didn't want to work on locks > but *waiters* becasue dependancies causing deadlocks only can be created > by waiters - nevertheless I hav

Re: [PATCH v6 14/14] platform/x86: dell-smbios-wmi: introduce userspace interface

2017-10-11 Thread kbuild test robot
Hi Mario, [auto build test WARNING on platform-drivers-x86/for-next] [also build test WARNING on next-20171009] [cannot apply to v4.14-rc4] [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/Mario-L

Re: [PATCH v9 13/29] x86/insn-eval: Add utility functions to get segment selector

2017-10-11 Thread Ricardo Neri
On Wed, 2017-10-11 at 00:41 +0200, Borislav Petkov wrote: > On Tue, Oct 03, 2017 at 08:54:16PM -0700, Ricardo Neri wrote: > > > > When computing a linear address and segmentation is used, we need to know > > the base address of the segment involved in the computation. In most of > > the cases, the

[PATCH] perf stat: Support metrics with perf stat --per-thread

2017-10-11 Thread Jin Yao
perf stat --per-thread doesn't support outputting metrics, like IPC. We should support this because it would allow easily to collect metrics for different threads in applications. 1. Current output, for example: root@skl:/tmp# perf stat --per-thread -p 21623 ^C Performance counter stats for pro

Re: [PATCH] perf tools: fix: Force backward ring buffer mapped readonly

2017-10-11 Thread Wangnan (F)
On 2017/10/11 21:16, Liang, Kan wrote: perf record's --overwrite option doesn't work as we expect. For example: [SNIP] In the above example we get same records from the backward ring buffer all the time. Overwriting is not triggered. This commit maps backward ring buffers readonly, make i

Re: [PATCH] tracing/xen: Hide events that are not used when X86_PAE is not defined

2017-10-11 Thread Steven Rostedt
On Wed, 11 Oct 2017 19:39:20 -0500 Jeremy Linton wrote: > On 10/10/2017 06:12 PM, Steven Rostedt wrote: > > From: Steven Rostedt (VMware) > > > > TRACE_EVENTS() take up memory. If they are defined but not used, then > > they simply waste space. If their use case is behind a define, then the > >

Re: [PATCH] tracing/xen: Hide events that are not used when X86_PAE is not defined

2017-10-11 Thread Steven Rostedt
On Tue, 10 Oct 2017 19:25:10 -0400 Boris Ostrovsky wrote: > On 10/10/2017 07:12 PM, Steven Rostedt wrote: > > From: Steven Rostedt (VMware) > > > > TRACE_EVENTS() take up memory. If they are defined but not used, then > > they simply waste space. If their use case is behind a define, then the >

Re: [PATCH v6 11/14] platform/x86: dell-smbios-wmi: Add new WMI dispatcher driver

2017-10-11 Thread kbuild test robot
Hi Mario, [auto build test ERROR on platform-drivers-x86/for-next] [also build test ERROR on v4.14-rc4 next-20171009] [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/Mario-Limonciello/Introduce-s

Re: [PATCH] kbuild: fix dependency of dtbs targets

2017-10-11 Thread Masahiro Yamada
2017-10-04 13:27 GMT+09:00 Masahiro Yamada : > The target "dtbs" should depend on "scripts" because it needs to > build dtc. The "prepare" target is unneeded here. > > Signed-off-by: Masahiro Yamada > --- Applied to linux-kbuild/kbuild. -- Best Regards Masahiro Yamada

[PATCH GHAK16 V5 01/10] capabilities: factor out cap_bprm_set_creds privileged root

2017-10-11 Thread Richard Guy Briggs
Factor out the case of privileged root from the function cap_bprm_set_creds() to make the latter easier to read and analyse. Suggested-by: Serge Hallyn Signed-off-by: Richard Guy Briggs Reviewed-by: Serge Hallyn Acked-by: James Morris Acked-by: Kees Cook Okay-ished-by: Paul Moore --- securi

[PATCH] jffs2: fix potential deadlock in jffs2_do_setattr

2017-10-11 Thread Liu Song
In jffs2_do_setattr, we hold two mutexes which are A) c->alloc_sem B) f->sem If new_metadata is error, then we release mutexes in bad sequence which could cause ABAB deadlock. This patch adjusts release sequence which could avoid deadlock. Signed-off-by: Liu Song Reviewed-by: Jiang Biao --

[PATCH GHAK16 V5 03/10] capabilities: rename has_cap to has_fcap

2017-10-11 Thread Richard Guy Briggs
Rename has_cap to has_fcap to clarify it applies to file capabilities since the entire source file is about capabilities. Signed-off-by: Richard Guy Briggs Reviewed-by: Serge Hallyn Acked-by: James Morris Acked-by: Kees Cook Okay-ished-by: Paul Moore --- security/commoncap.c | 20 ++-

Re: [PATCH 3/4] kbuild: re-order the code to not parse unnecessary variables

2017-10-11 Thread Masahiro Yamada
2017-10-04 12:56 GMT+09:00 Masahiro Yamada : > The top Makefile is divided into some sections such as mixed targets, > config targets, build targets, etc. > > When we build mixed targets, Kbuild just invokes submake to process > them one by one. In this case, compiler-related variables like CC, >

[PATCH GHAK16 V5 06/10] capabilities: move audit log decision to function

2017-10-11 Thread Richard Guy Briggs
Move the audit log decision logic to its own function to isolate the complexity in one place. Suggested-by: Serge Hallyn Signed-off-by: Richard Guy Briggs Reviewed-by: Serge Hallyn Acked-by: James Morris Acked-by: Kees Cook Okay-ished-by: Paul Moore --- security/commoncap.c | 50 +++

[PATCH GHAK16 V5 08/10] capabilities: invert logic for clarity

2017-10-11 Thread Richard Guy Briggs
The way the logic was presented, it was awkward to read and verify. Invert the logic using DeMorgan's Law to be more easily able to read and understand. Signed-off-by: Richard Guy Briggs Reviewed-by: Serge Hallyn Acked-by: James Morris Acked-by: Kees Cook Okay-ished-by: Paul Moore --- securi

  1   2   3   4   5   6   7   8   9   10   >