[PATCH v3 1/5] perf/core: add PERF_RECORD_SAMPLE_SKID_IP record type

2017-11-07 Thread Stephane Eranian
This patchs adds a new sample record type. The goal is to record the interrupted instruction pointer (IP) as seen by the kernel and reflected in the machine state (pt_regs). On some architectures, it is possible to avoid the IP skid using hardware support. For instance, on Intel x86, the use of PE

[PATCH v3 2/5] perf/x86: add PERF_SAMPLE_SKID_IP support for X86 PEBS

2017-11-07 Thread Stephane Eranian
This patch adds support for SKID_IP for Intel x86 processors when PEBS mode is enabled. Signed-off-by: Stephane Eranian --- arch/x86/events/intel/ds.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/x86/events/intel/ds.c b/arch/x86/events/intel/ds.c index 3674a4b6f8bd..52866a470b

[PATCH v5 2/2] KVM: MMU: consider host cache mode in MMIO page check

2017-11-07 Thread Haozhong Zhang
Some reserved pages, such as those from NVDIMM DAX devices, are not for MMIO, and can be mapped with cached memory type for better performance. However, the above check misconceives those pages as MMIO. Because KVM maps MMIO pages with UC memory type, the performance of guest accesses to those pag

[PATCH v3 3/5] perf/tools: add support for PERF_SAMPLE_SKID_IP

2017-11-07 Thread Stephane Eranian
This patch adds the support code to handle the PERF_SAMPLE_SKID_IP record type. This is done as an event term and as such can be enabled per event: cpu/event=xxx,skid-ip=1/. This is a boolean term which is false by default. Signed-off-by: Stephane Eranian --- tools/include/uapi/linux/perf_event.

[PATCH v3 4/5] perf/record: add documentation for sampling skid ip

2017-11-07 Thread Stephane Eranian
This patch adds documentation to describe how to use the skid ip support with perf record. The sample type can be provided per event as follows: pmu_instance/...,skid-ip=1/ For instance on Intel X86: $ perf record -e cpu/event=0xc5,skid-ip=1/pp does record the precise address of retired branches

[PATCH v5 1/2] x86/mm: add a function to check if a pfn is UC/UC-

2017-11-07 Thread Haozhong Zhang
It will be used by KVM to check whether a pfn should be mapped to guest as UC. Signed-off-by: Haozhong Zhang --- arch/x86/include/asm/pat.h | 2 ++ arch/x86/mm/pat.c | 16 2 files changed, 18 insertions(+) diff --git a/arch/x86/include/asm/pat.h b/arch/x86/include/asm

[PATCH v3 5/5] perf/script: add support for skid ip

2017-11-07 Thread Stephane Eranian
This patch adds a skid_ip field to perf script to dump the raw value of the PERF_SAMPLE_SKID_IP field in each sample. $ perf script -F +ip,+skid_ip .. The field is not enabled by default. Signed-off-by: Stephane Eranian --- tools/perf/Documentation/perf-script.txt | 2 +- tools/perf/built

[PATCH v5 0/2] KVM: MMU: fix kvm_is_mmio_pfn()

2017-11-07 Thread Haozhong Zhang
Some reserved pages, such as those from NVDIMM DAX devices, are not for MMIO, and can be mapped with cached memory type for better performance. However, the above check misconceives those pages as MMIO. Because KVM maps MMIO pages with UC memory type, the performance of guest accesses to those pag

[PATCH v3 0/5] perf: add support for capturing skid IP

2017-11-07 Thread Stephane Eranian
This patchs adds a new sample record type called PERF_SAMPLE_SKID_IP. The goal is to record the unmodified interrupted instruction pointer (IP) as seen by the kernel and reflected in the machine state. On some architectures, it is possible to avoid the IP skid using hardware support. For instance,

Re: [PATCH] selftests: futex: fix compilation error

2017-11-07 Thread lei yang
On 2017年11月08日 06:57, Shuah Khan wrote: On 11/06/2017 06:18 PM, lei yang wrote: On 2017年11月07日 07:48, Shuah Khan wrote: On 11/06/2017 04:45 PM, Shuah Khan wrote: On 11/05/2017 09:03 PM, Lei Yang wrote: I run into below error when building futext /bin/sh: -c: line 5: syntax error: unexpecte

Re: [PATCH] mm: page_ext: check if page_ext is not prepared

2017-11-07 Thread Joonsoo Kim
On Tue, Nov 07, 2017 at 10:47:30AM +0100, Michal Hocko wrote: > [CC Joonsoo] > > On Tue 07-11-17 18:41:31, Jaewon Kim wrote: > > online_page_ext and page_ext_init allocate page_ext for each section, but > > they do not allocate if the first PFN is !pfn_present(pfn) or > > !pfn_valid(pfn). Then sec

Re: [PATCH v5 0/9] mtd: sharpslpart partition parser

2017-11-07 Thread Boris Brezillon
On Sun, 08 Oct 2017 11:53:11 +0200 Robert Jarzmik wrote: > Robert Jarzmik writes: > > > Boris Brezillon writes: > > > >> Hi Robert, > >> Wait a bit before applying. I think patches 6 to 9 have a dependency on > >> patch 1 (it's not a build dependency, but NAND partitioning might be > >> wron

Re: [PATCH v2 2/3] drivers: phy: broadcom: Add driver for Cygnus USB phy controller

2017-11-07 Thread Raveendra Padasalagi
Hi, Adding Chanwoo Choi to review extcon API's. -Raveendra On Wed, Nov 8, 2017 at 1:16 PM, Raveendra Padasalagi wrote: > Add driver for Broadcom's USB phy controller's used in Cygnus > familyof SoC. Cygnus has three USB phy controller's, port 0, > port 1 provides USB host functionality and port

Re: [PATCH 1/2] ARM: sun8i: a83t: add dwmac-sun8i ethernet driver

2017-11-07 Thread Maxime Ripard
On Wed, Nov 08, 2017 at 02:27:21PM +0800, Chen-Yu Tsai wrote: > On Wed, Nov 8, 2017 at 4:13 AM, Corentin Labbe > wrote: > > The dwmac-sun8i is an ethernet MAC hardware that support 10/100/1000 speed. > > This patch enable the dwmac-sun8i on the Allwinner a83t SoC Device-tree. > > The subject shou

Re: [PATCH] mm: page_ext: allocate page extension though first PFN is invalid

2017-11-07 Thread Joonsoo Kim
On Tue, Nov 07, 2017 at 06:44:47PM +0900, Jaewon Kim wrote: > online_page_ext and page_ext_init allocate page_ext for each section, but > they do not allocate if the first PFN is !pfn_present(pfn) or > !pfn_valid(pfn). > > Though the first page is not valid, page_ext could be useful for other > pa

[PATCH v2 0/3] Add driver for Broadcom Cygnus USB phy controller

2017-11-07 Thread Raveendra Padasalagi
Add driver for Broadcom's USB phy controller's used in Cygnus family of SoC and it's based on 4.14-rc3 tag. The patch set can be fetched from iproc-cyg-usb-v2 branch of https://github.com/Broadcom/arm64-linux.git Changes since v1: - Added "dt-bindings: phy:" subject prefix in dt bindings patch

[PATCH v2 1/3] dt-bindings: phy: Add Cygnus usb phy binding

2017-11-07 Thread Raveendra Padasalagi
Add devicetree binding document for broadcom's Cygnus SoC specific usb phy controller driver. Signed-off-by: Raveendra Padasalagi --- .../bindings/phy/brcm,cygnus-usb-phy.txt | 106 + 1 file changed, 106 insertions(+) create mode 100644 Documentation/devicetree/bi

[PATCH v2 2/3] drivers: phy: broadcom: Add driver for Cygnus USB phy controller

2017-11-07 Thread Raveendra Padasalagi
Add driver for Broadcom's USB phy controller's used in Cygnus familyof SoC. Cygnus has three USB phy controller's, port 0, port 1 provides USB host functionality and port 2 can be configured for host/device role. Configuration of host/device role for port 2 is achieved based on the extcon events,

[PATCH v2 3/3] ARM: dts: Add dt node for Broadcom Cygnus USB phy

2017-11-07 Thread Raveendra Padasalagi
Add DT node for Broadcom's USB phy controller's used in Cygnus family of SoC. Signed-off-by: Raveendra Padasalagi --- arch/arm/boot/dts/bcm-cygnus.dtsi | 35 +++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/bcm-cygnus.dtsi b/arch/arm/boot/dts/

Re: [PATCH] arm64: dts: msm8916: Add missing #phy-cells

2017-11-07 Thread Archit Taneja
On 11/08/2017 09:15 AM, Bjorn Andersson wrote: Add a missing #phy-cells to the dsi-phy, to silence dtc warning. Reviewed-by: Archit Taneja Thanks, Archit Cc: Archit Taneja Fixes: 305410ffd1b2 ("arm64: dts: msm8916: Add display support") Signed-off-by: Bjorn Andersson --- arch/arm64/b

Re: [PATCH] mm, vmstat: Make sure mutex is a global static

2017-11-07 Thread Vlastimil Babka
] INFO: trying to register non-static key. > [ 63.259113] the code is fine but needs lockdep annotation. > [ 63.259596] turning off the locking correctness validator. > [ 63.260073] CPU: 1 PID: 4102 Comm: perl Not tainted > 4.14.0-rc8-next-20171107+ #419 > [ 63.260769] Hardwar

Re: n900 in next-20170901

2017-11-07 Thread Joonsoo Kim
On Tue, Nov 07, 2017 at 07:48:42AM -0800, Tony Lindgren wrote: > Hi, > > * Joonsoo Kim [171107 05:30]: > > Could you test follwing updated branch? > > > > https://github.com/JoonsooKim/linux/tree/cma-debug4-next-20180901 > > > > It has three relevant commits on top and enables CMA memory use. >

Re: Documenting sigaltstack SS_AUTODISRM

2017-11-07 Thread Michael Kerrisk (man-pages)
Hello Stas, On 6 November 2017 at 23:28, Stas Sergeev wrote: > 07.11.2017 01:26, Michael Kerrisk (man-pages) пишет: >> >> Hello Stas, >> >> Ping on the below? > > Hi, the change with the "not recommended" warning > looks good to me. > Acked-by: Stas Sergeev Thanks. I've pushed these changes int

Re: [PATCH v2] locking/pvqspinlock: Hybrid PV queued/unfair locks

2017-11-07 Thread Juergen Gross
On 07/11/17 22:18, Waiman Long wrote: > Currently, all the lock waiters entering the slowpath will do one > lock stealing attempt to acquire the lock. That helps performance, > especially in VMs with over-committed vCPUs. However, the current > pvqspinlocks still don't perform as good as unfair loc

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

2017-11-07 Thread Stephen Rothwell
s") > > > > If it matters, this is a cross compilation (PowerPC host) using O= . > > > > I have used the tip tree from next-20171107 for today. > > Hi Stephen, > > Does this fix it? > > diff --git a/tools/objtool/Makefile b/tools/objtool/Makefil

Re: [PATCH 2/2] backlight: pwm_bl: add configurable delay between re-enabling PWM and switching backlight power on

2017-11-07 Thread Lothar Waßmann
Hi, On Tue, 7 Nov 2017 18:46:18 -0600 Rob Herring wrote: > On Mon, Oct 30, 2017 at 5:33 AM, Lee Jones wrote: > > On Fri, 27 Oct 2017, Rob Herring wrote: > > > >> On Thu, Oct 26, 2017 at 02:49:46PM +0200, Lothar Waßmann wrote: > >> > When switching the backlight on, the LCD may need some time to a

Re: [PATCH] Bluetooth: Use common error handling code in bt_init()

2017-11-07 Thread Marcel Holtmann
Hi Markus, > * Improve jump targets so that a bit of exception handling can be better > reused at the end of this function. > > * Adjust five condition checks. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring > --- > net/bluetooth/af_bluetooth.c

Re: [interval_tree_test_init] BUG: soft lockup - CPU#0 stuck for 23s! [swapper/0:1]

2017-11-07 Thread Fengguang Wu
On Tue, Nov 07, 2017 at 08:58:14AM -0800, Davidlohr Bueso wrote: On Tue, 07 Nov 2017, Fengguang Wu wrote: [ 265.102312] xz_dec_test: module loaded [ 265.111774] xz_dec_test: Create a device node with 'mknod xz_dec_test c 246 0' and write .xz files to it. [ 265.160320] atomic64_test: passed

[PATCH net-next 1/2] net: hns3: fix a bug when getting phy address from NCL_config file

2017-11-07 Thread Lipeng
From: Fuyun Liang Driver gets phy address from NCL_config file and uses the phy address to initialize phydev. There are 5 bits for phy address. And C22 phy address has 5 bits. So 0-31 are all valid address for phy. If there is no phy, it will crash. Because driver always get a valid phy address.

[PATCH v2] af_netlink: give correct bounds to dump skb for NLMSG_DONE

2017-11-07 Thread Jason A. Donenfeld
The way people generally use netlink_dump is that they fill in the skb as much as possible, breaking when nla_put returns an error. Then, they get called again and start filling out the next skb, and again, and so forth. The mechanism at work here is the ability for the iterative dumping function t

[PATCH net-next 2/2] net: hns3: cleanup mac auto-negotiation state query in hclge_update_speed_duplex

2017-11-07 Thread Lipeng
From: Fuyun Liang When checking whether auto-negotiation is on, driver only needs to check the value of mac.autoneg(SW) directly, and does not need to query it from hardware. Because this value is always synchronized with the auto-negotiation state of hardware. This patch removes mac auto-negoti

Re: [LKP] [lkp-robot] [fs/locks] 52306e882f: stress-ng.lockofd.ops_per_sec -11% regression

2017-11-07 Thread Aaron Lu
On Thu, Sep 28, 2017 at 04:02:23PM +0800, kernel test robot wrote: > > Greeting, > > FYI, we noticed a -11% regression of stress-ng.lockofd.ops_per_sec due to > commit: > > > commit: 52306e882f77d3fd73f91435c41373d634acc5d2 ("fs/locks: Use allocation > rather than the stack in fcntl_getlk()")

[PATCH net-next 0/2] net: hns3: Bug fixes & Code improvements in HNS3 driver

2017-11-07 Thread Lipeng
This patch-set introduces some bug fixes and code improvements. As [patch 1/2] depends on the patch {5392902 net: hns3: Consistently using GENMASK in hns3 driver}, which exists in net-next, not exists in net, so push this serise to nex-next. Fuyun Liang (2): {topost} net: hns3: fix a bug when ge

Re: [PATCH net-next 0/2] net: hns3: Bug fixes & Code improvements in HNS3 driver

2017-11-07 Thread lipeng (Y)
please ignore this patch-set. I should remove "{topost}" from the subject. sorry for that, I will resend the patch-set. On 2017/11/8 15:31, Lipeng wrote: This patch-set introduces some bug fixes and code improvements. As [patch 1/2] depends on the patch {5392902 net: hns3: Consistently using

Re: [PATCH] rtc: omap: Support scratch registers

2017-11-07 Thread Alexandre Belloni
On 08/11/2017 at 12:38:05 +0530, Keerthy wrote: > > > On Wednesday 08 November 2017 11:57 AM, Alexandre Belloni wrote: > > Hi, > > > > On 08/11/2017 at 11:30:45 +0530, Keerthy wrote: > > +static int omap_rtc_scratch_read(void *priv, unsigned int offset, void > > *_val, > > +

[PATCH] Bluetooth: Use common error handling code in bt_init()

2017-11-07 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 8 Nov 2017 08:03:04 +0100 * Improve jump targets so that a bit of exception handling can be better reused at the end of this function. * Adjust five condition checks. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

Re: [PATCH] watchdog: mpc8xxx: use the core worker function

2017-11-07 Thread Christophe LEROY
Le 07/11/2017 à 23:56, Guenter Roeck a écrit : On Tue, Nov 07, 2017 at 05:23:56PM +0100, Christophe Leroy wrote: The watchdog core includes a worker function which pings the watchdog until user app starts pinging it and which also pings it if the HW require more frequent pings. Use that functio

Re: [PATCH net] qmi_wwan: Add missing skb_reset_mac_header-call

2017-11-07 Thread David Miller
From: Kristian Evensen Date: Tue, 7 Nov 2017 13:47:56 +0100 > When we receive a packet on a QMI device in raw IP mode, we should call > skb_reset_mac_header() to ensure that skb->mac_header contains a valid > offset in the packet. While it shouldn't really matter, the packets have > no MAC heade

Re: [PATCH] rtc: omap: Support scratch registers

2017-11-07 Thread Keerthy
On Wednesday 08 November 2017 11:57 AM, Alexandre Belloni wrote: > Hi, > > On 08/11/2017 at 11:30:45 +0530, Keerthy wrote: > +static int omap_rtc_scratch_read(void *priv, unsigned int offset, void > *_val, > + size_t bytes) > +{ > + struct omap_rtc *

Re: [PATCH] af_netlink: give correct bounds to dump skb for NLMSG_DONE

2017-11-07 Thread Jason A. Donenfeld
Erf, your patch doesn't handle what happens if len comes back negative, but I'll fix it up and send a v2 using this approach. I think I really prefer v1 though. Jason

[PATCH net-next 1/2] {topost} net: hns3: fix a bug when getting phy address from NCL_config file

2017-11-07 Thread Lipeng
From: Fuyun Liang Driver gets phy address from NCL_config file and uses the phy address to initialize phydev. There are 5 bits for phy address. And C22 phy address has 5 bits. So 0-31 are all valid address for phy. If there is no phy, it will crash. Because driver always get a valid phy address.

[PATCH net-next 0/2] net: hns3: Bug fixes & Code improvements in HNS3 driver

2017-11-07 Thread Lipeng
This patch-set introduces some bug fixes and code improvements. As [patch 1/2] depends on the patch {5392902 net: hns3: Consistently using GENMASK in hns3 driver}, which exists in net-next, not exists in net, so push this serise to nex-next. Fuyun Liang (2): {topost} net: hns3: fix a bug when ge

[PATCH net-next 2/2] {topost} net: hns3: cleanup mac auto-negotiation state query in hclge_update_speed_duplex

2017-11-07 Thread Lipeng
From: Fuyun Liang When checking whether auto-negotiation is on, driver only needs to check the value of mac.autoneg(SW) directly, and does not need to query it from hardware. Because this value is always synchronized with the auto-negotiation state of hardware. This patch removes mac auto-negoti

Re: [jump_label_test] WARNING: CPU: 0 PID: 1 at kernel/jump_label.c:761 jump_label_test+0x63/0xab

2017-11-07 Thread Fengguang Wu
On Tue, Nov 07, 2017 at 05:17:38PM -0500, Jason Baron wrote: On 11/07/2017 04:27 AM, Fengguang Wu wrote: Hello, FYI this happens in v4.14-rc8 -- it's not necessarily a new bug. Hi, So this looks like the branches aren't getting updated because the WARN_ON()s are all from the second half o

linux-next: Tree for Nov 8

2017-11-07 Thread Stephen Rothwell
Hi all, Changes since 20171107: The powerpc tree still had its build failure for which I applied a patch. It also gained a conflict against Linus' tree. The tip tree gained a conflict against the crypto tree and a build failure so I used the version from next-20171107. The drivers-x86

Re: [PATCH] pktgen: document 32-bit timestamp overflow

2017-11-07 Thread David Miller
From: Arnd Bergmann Date: Tue, 7 Nov 2017 11:38:32 +0100 > Timestamps in pktgen are currently retrieved using the deprecated > do_gettimeofday() function that wraps its signed 32-bit seconds in 2038 > (on 32-bit architectures) and requires a division operation to calculate > microseconds. > > T

Re: [PATCH] x86/oprofile/ppro: Do not use __this_cpu* accessors in preemptible context

2017-11-07 Thread Fengguang Wu
On Tue, Nov 07, 2017 at 06:53:07PM +0100, Borislav Petkov wrote: On Tue, Nov 07, 2017 at 08:43:40AM -0800, Linus Torvalds wrote: So I'm adding Borislav to the cc just to maybe annoy him into sending in a patch for this thing too.. /me runs away like the wind! This is the famous "you touched

Re: [PATCH] net/tcp: track all ipv4/tcp state transition in tcp_set_state

2017-11-07 Thread David Miller
From: Yafang Shao Date: Tue, 7 Nov 2017 18:36:28 +0800 > When I hooked the function tcp_set_state with kprobe to track the ipv4/tcp > state transistion, I found state transition from TCP_LISTEN to TCP_SYN_RECV > is missed. > > I think it is better to use the helper to do state transition instea

[PATCH 1/4] documentation: Add compatibles for Amlogic Meson AXG pin controllers

2017-11-07 Thread Yixun Lan
From: Xingyu Chen Add compatibles for Amlogic Meson AXG pin controllers Signed-off-by: Xingyu Chen Signed-off-by: Yixun Lan --- Documentation/devicetree/bindings/pinctrl/meson,pinctrl.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/meson,pin

[PATCH 4/4] ARM64: dts: meson-axg: add pinctrl DT info for Meson-AXG SoC

2017-11-07 Thread Yixun Lan
From: Xingyu Chen Add new pinctrl DT info for the Amlogic's Meson-AXG SoC. Signed-off-by: Xingyu Chen Signed-off-by: Yixun Lan --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 43 ++ 1 file changed, 43 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-a

[PATCH 3/4] pinctrl: meson-axg: Add new pinctrl driver for Meson AXG SoC

2017-11-07 Thread Yixun Lan
From: Xingyu Chen Add new pinctrl driver for Amlogic's Meson-AXG SoC. Signed-off-by: Xingyu Chen Signed-off-by: Yixun Lan --- drivers/pinctrl/meson/Kconfig | 6 + drivers/pinctrl/meson/Makefile| 1 + drivers/pinctrl/meson/pinctrl-meson-axg.c | 976 +

[PATCH 2/4] pinctrl: meson-axg: Introduce a pinctrl pinmux ops for Meson-AXG SoC

2017-11-07 Thread Yixun Lan
From: Xingyu Chen The pin controller has been updated in the Amlogic Meson AXG series, which use continuous 4-bit register to select function for each pin. In order to support this, a new pinmux operations "meson_axg_pmx_ops" has been added. Signed-off-by: Xingyu Chen Signed-off-by: Yixun Lan

[PATCH 0/4] add pinctrl driver for Meson-AXG SoC

2017-11-07 Thread Yixun Lan
patch [1/4]: Document the new pinctrl compatible string for Meson-AXG patch [2/4]: Introduce a new pinctrl pinmux ops for Meson-AXG SoC. The pinctrl IP has been changed, and now it use 4-bit continuous bit to decribe the pin. patch [3/4]: Add pinctrl driver for

Re: [PATCH 2/2] mmc: renesas_shci: remove wrong depends on to enable compile test

2017-11-07 Thread Masahiro Yamada
2017-11-07 16:57 GMT+09:00 Masahiro Yamada : > ARCH_RENESAS is a stronger condition than (ARM || ARM64). > If ARCH_RENESAS is enabled, (ARM || ARM64) is met as well. > > What is worse, the first depends on line prevents COMPILE_TEST from > enabling this driver. It should be removed. > > Signed-off

Re: WTF? Re: [PATCH] License cleanup: add SPDX GPL-2.0 license identifier to files with no license

2017-11-07 Thread Greg Kroah-Hartman
On Tue, Nov 07, 2017 at 10:42:59PM +0100, Luis R. Rodriguez wrote: > On Tue, Nov 07, 2017 at 09:26:48PM +0100, Greg Kroah-Hartman wrote: > > On Tue, Nov 07, 2017 at 11:28:46AM -0800, Christoph Hellwig wrote: > > > On Tue, Nov 07, 2017 at 02:15:26PM -0500, Theodore Ts'o wrote: > > > > On Tue, Nov 07

[PATCH] mmc: slot-gpio: call gpiod_to_irq() only when MMC_CAP_NEEDS_POLL is unset

2017-11-07 Thread Masahiro Yamada
It is not efficient to call gpiod_to_irq() regardless the flag, then ignore the returned irq if MMC_CAP_NEEDS_POLL. Move gpiod_to_irq() after the MMC_CAP_NEEDS_POLL check. Signed-off-by: Masahiro Yamada --- drivers/mmc/core/slot-gpio.c | 14 ++ 1 file changed, 6 insertions(+), 8 de

Re: [PATCH] af_netlink: give correct bounds to dump skb for NLMSG_DONE

2017-11-07 Thread Jason A. Donenfeld
Hi Johannes, Yes indeed. It sacrifices 24 bytes for making things much less complex. However, if you prefer increasing the complexity of the state machine a bit instead, I suppose we could roll with this approach instead... Jason

Re: [PATCH v3] dmaengine: rcar-dmac: use TCRB instead of TCR for residue

2017-11-07 Thread Kuninori Morimoto
Hi Vinod > > > > This is now commit 847449f23dcbff68 ("dmaengine: rcar-dmac: use TCRB > > > > instead of TCR for residue") in slave-dma/next, and breaks serial > > > > console > > > > input on koelsch (shmobile_defconfig) and salvator-x > > > > (renesas_defconfig). > > > > Reverting that commit

[PATCH 03/31] nds32: Support early_printk

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Rick Chen Signed-off-by: Greentime Hu --- arch/nds32/kernel/early_printk.c | 124 ++ 1 file changed, 124 insertions(+) create mode 100644 arch/nds32/kernel/early_printk.c diff --git a/arch/nds32/kernel/early_printk.c b/ar

[PATCH 02/31] nds32: Kernel booting and initialization

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/kernel/head.S | 211 +++ arch/nds32/kernel/setup.c | 406 + 2 files changed, 617 insertions(+) create mode 100644 arch/nds32/kernel/head

[PATCH 06/31] nds32: MMU initialization

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/mm/highmem.c | 92 + arch/nds32/mm/init.c | 328 ++ arch/nds32/mm/mm-nds32.c | 103 +++ 3 files changed, 523 insertions(+) cre

[PATCH 07/31] nds32: MMU fault handling and page table management

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/lib/copy_page.S | 50 ++ arch/nds32/mm/extable.c| 29 +++ arch/nds32/mm/fault.c | 420 arch/nds32/mm/mmap.c | 88 ++ 4 files

[PATCH 05/31] nds32: MMU definitions

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/fixmap.h | 41 arch/nds32/include/asm/highmem.h | 78 +++ arch/nds32/include/asm/memory.h | 147 + arch/nds32/include/asm/mmu.h | 25 +++ arch/nds32/inclu

BUG: scsi/qla2xxx: scsi_done from qla2x00_sp_compl race with scsi_queue_insert from abort handler

2017-11-07 Thread jianchao.wang
Hi [1.] One line summary of the problem: scsi_done from qla2x00_sp_compl race with scsi_queue_insert from scmd_eh_abort_handler() then cause the BUG_ON(blk_queued_rq(req)) trigger. [2.] Full description of the problem/report: The detailed scene is as following: cpu A

[PATCH v2] perf/core: fast breakpoint modification via _IOC_MODIFY_ATTRIBUTES.

2017-11-07 Thread Milind Chabbi
Problem and motivation: Once a breakpoint perf event (PERF_TYPE_BREAKPOINT) is created, there is no flexibility to change the breakpoint type (bp_type), breakpoint address (bp_addr), or breakpoint length (bp_len). The only option is to close the perf event and configure a new breakpoint event. This

[RFC] hung task: check specific tasks for long uninterruptible sleep state

2017-11-07 Thread Lingutla Chandrasekhar
khungtask by default monitors all tasks for long unterruptible sleep. This change introduces a sysctl option, /proc/sys/kernel/ hung_task_selective_monitoring, to enable monitoring selected tasks. If this sysctl option is enabled then only the tasks with /proc/$PID/hang_detection_enabled set are to

[PATCH 09/31] nds32: Process management

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/current.h | 25 arch/nds32/include/asm/processor.h | 116 ++ arch/nds32/include/asm/thread_info.h | 91 ++ arch/nds32/kernel/process.c | 2

[PATCH 10/31] nds32: IRQ handling

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/irqflags.h | 49 + arch/nds32/kernel/irq.c | 34 + 2 files changed, 83 insertions(+) create mode 100644 arch/nds32/in

Re: [PATCH] rtc: omap: Support scratch registers

2017-11-07 Thread Alexandre Belloni
Hi, On 08/11/2017 at 11:30:45 +0530, Keerthy wrote: > >>> +static int omap_rtc_scratch_read(void *priv, unsigned int offset, void > >>> *_val, > >>> + size_t bytes) > >>> +{ > >>> + struct omap_rtc *rtc = priv; > >>> + u32 *val = _val; > >>> + int i; > >>> + > >>> + for (

[PATCH 14/31] nds32: ELF definitions

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/elf.h | 192 ++ arch/nds32/include/uapi/asm/auxvec.h | 25 + arch/nds32/include/uapi/asm/param.h | 24 + 3 files changed, 241 insertions(+

Re: [PATCH 1/2] ARM: sun8i: a83t: add dwmac-sun8i ethernet driver

2017-11-07 Thread Chen-Yu Tsai
On Wed, Nov 8, 2017 at 4:13 AM, Corentin Labbe wrote: > The dwmac-sun8i is an ethernet MAC hardware that support 10/100/1000 speed. > This patch enable the dwmac-sun8i on the Allwinner a83t SoC Device-tree. The subject should say "add device node", not driver. > > Signed-off-by: Corentin La

[PATCH 13/31] nds32: DMA mapping API

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/dma-mapping.h | 27 ++ arch/nds32/kernel/dma.c | 478 ++ 2 files changed, 505 insertions(+) create mode 100644 arch/nds32/include/asm/dma-mappi

[PATCH 12/31] nds32: Device specific operations

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/io.h | 33 + arch/nds32/mm/ioremap.c | 67 +++ 2 files changed, 100 insertions(+) create mode 100644 arch/nds32/include/asm

[PATCH 11/31] nds32: Atomic operations

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/futex.h| 116 arch/nds32/include/asm/spinlock.h | 178 + 2 files changed, 294 insertions(+) create mode 100644 arch/nds32/in

[PATCH 16/31] nds32: VDSO support

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/vdso.h | 35 arch/nds32/include/asm/vdso_datapage.h | 51 ++ arch/nds32/kernel/vdso.c | 243 ++ arch/nds32/kernel/vdso/

[PATCH 17/31] nds32: Signal handling support

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/uapi/asm/sigcontext.h | 73 ++ arch/nds32/include/uapi/asm/signal.h | 23 ++ arch/nds32/kernel/signal.c | 370 ++ 3 files changed, 466 insert

[PATCH 22/31] nds32: Generic timers support

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/kernel/time.c | 22 ++ 1 file changed, 22 insertions(+) create mode 100644 arch/nds32/kernel/time.c diff --git a/arch/nds32/kernel/time.c b/arch/nds32/kernel/time.c new file mode 1

[PATCH 23/31] nds32: Device tree support

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/boot/dts/Makefile |8 ++ arch/nds32/boot/dts/ae3xx.dts | 55 arch/nds32/boot/dts/ag101p.dts | 60 arch/nds32/ke

[PATCH 18/31] nds32: Library functions

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/string.h | 30 +++ arch/nds32/include/asm/swab.h| 48 + arch/nds32/include/asm/uaccess.h | 385 ++ arch/nds32/kernel/nds32_ksyms.c | 54 +++

[PATCH 19/31] nds32: Debugging support

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/uapi/asm/ptrace.h | 42 + arch/nds32/kernel/ptrace.c | 325 ++ 2 files changed, 367 insertions(+) create mode 100644 arch/nds32/include/uapi/asm/p

[PATCH 25/31] nds32: defconfig

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/configs/ae3xx_defconfig | 110 +++ arch/nds32/configs/ag101p_defconfig | 109 ++ 2 files changed, 219 insertions(+) create mode 100644 a

[PATCH 24/31] nds32: Miscellaneous header files

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/delay.h| 51 + arch/nds32/include/asm/linkage.h | 24 ++ arch/nds32/include/uapi/asm/byteorder.h | 26 +++ arch

[PATCH 21/31] nds32: Loadable modules

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/module.h | 24 arch/nds32/kernel/module.c | 299 +++ 2 files changed, 323 insertions(+) create mode 100644 arch/nds32/include/asm/module.h cr

[PATCH 27/31] dt-bindings: interrupt-controller: Andestech Internal Vector Interrupt Controller

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Rick Chen Signed-off-by: Greentime Hu --- .../interrupt-controller/andestech,ativic32.txt| 27 1 file changed, 27 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/andestech,ativic32.txt diff

[PATCH 28/31] irqchip: Andestech Internal Vector Interrupt Controller driver

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Rick Chen Signed-off-by: Greentime Hu --- drivers/irqchip/Makefile |1 + drivers/irqchip/irq-ativic32.c | 149 2 files changed, 150 insertions(+) create mode 100644 drivers/irqchip/irq-ativic32.c diff --git

[PATCH 29/31] MAINTAINERS: Add nds32

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Greentime Hu --- MAINTAINERS |9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2f4e462..bce1181 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -857,6 +857,15 @@ X: drivers/iio/*/adjd* F: drivers/staging/iio/*/ad

[PATCH 31/31] net: faraday add nds32 support.

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Greentime Hu --- drivers/net/ethernet/faraday/Kconfig |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/faraday/Kconfig b/drivers/net/ethernet/faraday/Kconfig index 040c7f1..0ae6e9a 100644 --- a/drivers/net/ether

[PATCH 30/31] dt-bindings: nds32 CPU Bindings

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Rick Chen Signed-off-by: Zong Li Signed-off-by: Greentime Hu --- Documentation/devicetree/bindings/nds32/cpus.txt | 33 ++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/binding

[PATCH 26/31] nds32: Build infrastructure

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/Kconfig | 107 arch/nds32/Kconfig.cpu | 100 + arch/nds32/Kconfig.debug | 14 + arch/nds3

[PATCH 20/31] nds32: L2 cache support

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/l2_cache.h | 158 + arch/nds32/kernel/atl2c.c | 77 ++ 2 files changed, 235 insertions(+) create mode 100644 arch/nds32/include/

[PATCH 04/31] nds32: Exception handling

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/ptrace.h | 79 ++ arch/nds32/kernel/ex-entry.S| 169 arch/nds32/kernel/ex-exit.S | 207 ++ arch/nds32/kernel/stacktrace.c | 60 + arch/nds32/ker

[PATCH 08/31] nds32: Cache and TLB routines

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/cache.h | 25 ++ arch/nds32/include/asm/cache_info.h| 26 ++ arch/nds32/include/asm/cacheflush.h| 57 +++ arch/nds32/include/asm/mmu_context.h | 81 + arch/nds32/

[PATCH 15/31] nds32: System calls handling

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/syscall.h | 203 ++ arch/nds32/include/asm/syscalls.h| 27 + arch/nds32/include/asm/unistd.h | 21 arch/nds32/include/uapi/asm/unistd

[PATCH 01/31] nds32: Assembly macros and definitions

2017-11-07 Thread Greentime Hu
From: Greentime Hu Signed-off-by: Vincent Chen Signed-off-by: Greentime Hu --- arch/nds32/include/asm/assembler.h | 52 ++ arch/nds32/include/asm/bitfield.h | 982 arch/nds32/include/asm/nds32.h | 92 arch/nds32/kernel/asm-offsets.c| 40

[PATCH 00/31] Andes(nds32) Linux Kernel Port

2017-11-07 Thread Greentime Hu
This patchset adds core architecture support to Linux for Andestech's N13, N15, D15, N10, D10 processor cores. Based on the 16/32-bit AndeStar RISC-like architecture, we designed the configurable AndesCore series of embedded processor families. AndesCores range from highly performance-efficient sm

Re: POWER: Unexpected fault when writing to brk-allocated memory

2017-11-07 Thread Florian Weimer
On 11/08/2017 07:08 AM, Michael Ellerman wrote: "Kirill A. Shutemov" writes: On Tue, Nov 07, 2017 at 02:05:42PM +0100, Florian Weimer wrote: On 11/07/2017 12:44 PM, Kirill A. Shutemov wrote: On Tue, Nov 07, 2017 at 12:26:12PM +0100, Florian Weimer wrote: On 11/07/2017 12:15 PM, Kirill A. Sh

Re: [PATCH] af_netlink: give correct bounds to dump skb for NLMSG_DONE

2017-11-07 Thread Johannes Berg
On Tue, 2017-11-07 at 20:29 +0900, Jason A. Donenfeld wrote: > > This patch thus reserves and restores the required length for > NLMSG_DONE during the call to the dump function. > That basically removes that space though, even when the dump isn't complete... wouldn't it be better to do something

Re: Firmware signing -- Re: [PATCH 00/27] security, efi: Add kernel lockdown

2017-11-07 Thread AKASHI, Takahiro
Luis, Thank you for this heads-up. On Wed, Nov 08, 2017 at 12:07:00AM +0100, Luis R. Rodriguez wrote: > On Thu, Nov 02, 2017 at 06:10:41PM -0400, Mimi Zohar wrote: > > On Thu, 2017-11-02 at 22:04 +, David Howells wrote: > > > Mimi Zohar wrote: > > > > > > > > Only validly signed device firm

Re: POWER: Unexpected fault when writing to brk-allocated memory

2017-11-07 Thread Michael Ellerman
"Kirill A. Shutemov" writes: > On Tue, Nov 07, 2017 at 02:05:42PM +0100, Florian Weimer wrote: >> On 11/07/2017 12:44 PM, Kirill A. Shutemov wrote: >> > On Tue, Nov 07, 2017 at 12:26:12PM +0100, Florian Weimer wrote: >> > > On 11/07/2017 12:15 PM, Kirill A. Shutemov wrote: >> > > >> > > > > Firs

Re: [PATCH v2 2/3] drivers: hwmon: Add W83773G driver

2017-11-07 Thread Lei YU
On Tue, Nov 7, 2017 at 10:33 PM, Guenter Roeck wrote: > On 11/07/2017 12:27 AM, Lei YU wrote: >> >> Nuvoton W83773G is a hardware monitor IC providing one local >> temperature and two remote temperature sensors. >> >> Signed-off-by: Lei YU >> --- >> v2: >> - Rewrite the driver using regmap >>

  1   2   3   4   5   6   7   8   9   10   >