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

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

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:

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

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

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

[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

[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 ---

[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

[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:

[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.

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

[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

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

[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

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

[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

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 >

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

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

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

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,

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

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

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;

[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:

[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

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

[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 ---

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

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

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

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;

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.

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:

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

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

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

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

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 >

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

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

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

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:

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

[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

[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 +

[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

[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

[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

[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 |

[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:

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

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

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

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

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

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:

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

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:

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,

[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

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

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

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.

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:

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

[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

[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

[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

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,

[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:

[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

[PATCH GHAK16 V5 09/10] capabilities: fix logic for effective root or real root

2017-10-11 Thread Richard Guy Briggs
Now that the logic is inverted, it is much easier to see that both real root and effective root conditions had to be met to avoid printing the BPRM_FCAPS record with audit syscalls. This meant that any setuid root applications would print a full BPRM_FCAPS record when it wasn't necessary,

[PATCH GHAK16 V5 10/10] capabilities: audit log other surprising conditions

2017-10-11 Thread Richard Guy Briggs
The existing condition tested for process effective capabilities set by file attributes but intended to ignore the change if the result was unsurprisingly an effective full set in the case root is special with a setuid root executable file and we are root. Stated again: - When you execute a

[PATCH GHAK16 V5 07/10] capabilities: remove a layer of conditional logic

2017-10-11 Thread Richard Guy Briggs
Remove a layer of conditional logic to make the use of conditions easier to read and analyse. Signed-off-by: Richard Guy Briggs Reviewed-by: Serge Hallyn Acked-by: James Morris Acked-by: Kees Cook

[PATCH GHAK16 V5 05/10] capabilities: use intuitive names for id changes

2017-10-11 Thread Richard Guy Briggs
Introduce a number of inlines to make the use of the negation of uid_eq() easier to read and analyse. Signed-off-by: Richard Guy Briggs Reviewed-by: Serge Hallyn Acked-by: James Morris Acked-by: Kees Cook

[PATCH GHAK16 V5 00/10] capabilities: do not audit log BPRM_FCAPS on set*id

2017-10-11 Thread Richard Guy Briggs
The audit subsystem is adding a BPRM_FCAPS record when auditing setuid application execution (SYSCALL execve). This is not expected as it was supposed to be limited to when the file system actually had capabilities in an extended attribute. It lists all capabilities making the event really ugly

[PATCH GHAK16 V5 02/10] capabilities: intuitive names for cap gain status

2017-10-11 Thread Richard Guy Briggs
Introduce macros cap_gained, cap_grew, cap_full to make the use of the negation of is_subset() easier to read and analyse. Signed-off-by: Richard Guy Briggs Reviewed-by: Serge Hallyn Acked-by: James Morris Acked-by: Kees Cook

[PATCH GHAK16 V5 04/10] capabilities: use root_priveleged inline to clarify logic

2017-10-11 Thread Richard Guy Briggs
Introduce inline root_privileged() to make use of SECURE_NONROOT easier to read. Suggested-by: Serge Hallyn Signed-off-by: Richard Guy Briggs Reviewed-by: Serge Hallyn Acked-by: James Morris Acked-by: Kees Cook

Re: [PATCH v2] kbuild: clang: remove crufty HOSTCFLAGS

2017-10-11 Thread Masahiro Yamada
2017-10-08 5:23 GMT+09:00 Nick Desaulniers : > When compiling with `make CC=clang HOSTCC=clang`, I was seeing warnings > that clang did not recognize -fno-delete-null-pointer-checks for HOSTCC > targets. These were added in commit 61163efae020 ("kbuild: LLVMLinux: >

Re: [PATCH 2/9] PCI: host: brcmstb: add DT docs for Brcmstb PCIe device

2017-10-11 Thread Brian Norris
Hi Jim, On Wed, Oct 11, 2017 at 06:34:22PM -0400, Jim Quinlan wrote: > The DT bindings description of the Brcmstb PCIe device is described. This > node can be used by almost all Broadcom settop box chips, using > ARM, ARM64, or MIPS CPU architectures. > > Signed-off-by: Jim Quinlan

Re: [PATCH v3 21/33] tracing: Add support for 'synthetic' events

2017-10-11 Thread Namhyung Kim
On Wed, Oct 04, 2017 at 02:50:18PM -0500, Tom Zanussi wrote: > On Wed, 2017-10-04 at 14:08 -0400, Steven Rostedt wrote: > > On Fri, 22 Sep 2017 15:00:01 -0500 > > Tom Zanussi wrote: > > > > > > > > > +/* This function releases synth_event_mutex */ > > > +static int

Re: [PATCH v6 1/2] pid: Replace pid bitmap implementation with IDR API

2017-10-11 Thread Rik van Riel
On Wed, 2017-10-11 at 15:37 -0700, Andrew Morton wrote: > On Wed, 11 Oct 2017 18:19:38 -0400 Gargi Sharma > wrote: > > > This patch replaces the current bitmap implemetation for > > Process ID allocation. Functions that are no longer required, > > for example, free_pidmap(),

[PATCH 2/3] phy: brcm-sata: Prepare for doing more tuning

2017-10-11 Thread Florian Fainelli
Split the functional code in brcm_stb_sata_init() to a separate function that actually does configure spread spectrum: brcm_stb_sata_ssc_init() and make that function return void, since that function cannot fail. Signed-off-by: Florian Fainelli ---

[PATCH 3/3] phy: brcm-sata: Allow RX equalizer tuning

2017-10-11 Thread Florian Fainelli
Parse the DT properties brcm,rxaeq-mode and brcm,rxaeq-value to correctly configure the RX equalizer of the PHY. This may be required to resolve specific signal integrity issues. Signed-off-by: Florian Fainelli --- drivers/phy/broadcom/phy-brcm-sata.c | 69

[PATCH 0/3] phy: brcm-sata: Allow RX equalizer tuning

2017-10-11 Thread Florian Fainelli
Hi Kishon, This patch series allows the tuning of the PHY RX equalizer which may be necessary for particular board designs to pass compliance testing. This is based off your next branch. Please apply! Thank you Florian Fainelli (3): dt-bindings: phy: Add RX equalizer properties for Broadcom

[PATCH 1/3] dt-bindings: phy: Add RX equalizer properties for Broadcom SATA PHY

2017-10-11 Thread Florian Fainelli
Define two new properties: brcm,rx-aeq-mode which allows configuring the SATA PHY RX equalizers and when "manual" is used, brcm,rx-aeq can be used to set the exact value. Signed-off-by: Florian Fainelli --- Documentation/devicetree/bindings/phy/brcm-sata-phy.txt | 11

Re: [PATCH v9 14/29] x86/insn-eval: Add utility function to get segment descriptor

2017-10-11 Thread Ricardo Neri
On Wed, 2017-10-11 at 16:57 +0200, Borislav Petkov wrote: > On Tue, Oct 03, 2017 at 08:54:17PM -0700, Ricardo Neri wrote: > > > > The segment descriptor contains information that is relevant to how linear > > addresses need to be computed. It contains the default size of addresses > > as well as

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

2017-10-11 Thread Jeremy Linton
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 trace events should be as well. The trace events

[PATCH] selftests/exec: include cwd in long path calculation

2017-10-11 Thread Steve Muckle
When creating a pathname close to PATH_MAX to test execveat, factor in the current working directory path otherwise we end up with an absolute path that is longer than PATH_MAX. While execveat() may succeed, subsequent calls to the kernel from the runtime environment which are required to

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

2017-10-11 Thread Adrian Chadd
fwiw - I did this on my in progress ath10k port to freebsd, and I've tested it on Rome and Peregrine. It seems to be the right thing to do during suspend to at least cleanly shut things down. -adrian On 11 October 2017 at 17:38, Brian Norris wrote: > Ping? Any

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

2017-10-11 Thread Brian Norris
Ping? Any comments? I know there's more than one way to slice this problem, but it's most definitely a problem... Brian On Tue, Sep 19, 2017 at 04:24:16PM -0700, Brian Norris wrote: > For devices where the FW supports WoWLAN but user-space has not > configured it, we don't do any PCI-specific

Re: [PATCH 0/2] ARM64: dts: meson-gx: cleanup uarts nodes

2017-10-11 Thread Kevin Hilman
Neil Armstrong writes: > Since the switch to documented uart bindings, old compatible and clocks > were left for simplicity. > > These patches finally cleans these up. Applied to v4.15/dt64, Kevin

Re: [PATCH] ARM64: dts: meson-gxl: Add alternate ARM Trusted Firmware reserved memory zone

2017-10-11 Thread Kevin Hilman
Neil Armstrong writes: > This year, Amlogic updated the ARM Trusted Firmware reserved memory mapping > for Meson GXL SoCs and products sold since May 2017 uses this alternate > reserved memory mapping. > But products had been sold using the previous mapping. > > This

Re: [PATCH] ARM64: dts: meson-gxm: enable HS400 on the vim2

2017-10-11 Thread Kevin Hilman
Jerome Brunet writes: > Enable HS400 high speed eMMC mode on the khadas vim2 > > Signed-off-by: Jerome Brunet Applied to v4.15/dt64, Kevin

  1   2   3   4   5   6   7   8   9   10   >