Re: netfilter: xt_bpf: Fix XT_BPF_MODE_FD_PINNED mode of 'xt_bpf_info_v1'

2017-11-30 Thread Kees Cook
On Mon, Oct 9, 2017 at 4:10 PM, David Miller wrote: > Shmulik Ladkani (1): > netfilter: xt_bpf: Fix XT_BPF_MODE_FD_PINNED mode of 'xt_bpf_info_v1' This adds a new user of set_fs(), which we're trying to eliminate (or at least not expand): + set_fs(KERNEL_DS); + fd = bpf_obj_get

Re: [PATCH v7 2/4] KVM: X86: Add Paravirt TLB Shootdown

2017-11-30 Thread Wanpeng Li
2017-11-30 23:17 GMT+08:00 Radim Krčmář : > 2017-11-29 22:01-0800, Wanpeng Li: >> From: Wanpeng Li >> --- >> diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c >> @@ -498,6 +498,34 @@ static void __init kvm_apf_trap_init(void) >> update_intr_gate(X86_TRAP_PF, async_page_fault); >> }

Re: [lkp-robot] [torture] b151f93a71: INFO:rcu_preempt_detected_stalls_on_CPUs/tasks

2017-11-30 Thread Paul E. McKenney
On Wed, Nov 29, 2017 at 02:38:06PM -0800, Paul E. McKenney wrote: > On Wed, Nov 29, 2017 at 02:07:03PM -0800, Paul E. McKenney wrote: [ . . . ] > > And it converged to 5c4991e24c69 ("sched/isolation: Split out new > > CONFIG_CPU_ISOLATION=y config from CONFIG_NO_HZ_FULL"), which is a bit > > hard

Re: [PATCH 00/11] fs: use freeze_fs on suspend/hibernate

2017-11-30 Thread Luis R. Rodriguez
On Thu, Nov 30, 2017 at 10:51:57PM +0100, Pavel Machek wrote: > Hi! > > > Proposed solution: > > > > Instead of fixing such semantics and trying to get all filesystems to do it > > right, we can easily do away with all freezing calls if the filesystem > > implements a proper freeze_fs() callback.

Re: [PATCH v3 0/5] ACPI: DMA ranges management

2017-11-30 Thread Feng Kan
On Wed, Nov 29, 2017 at 11:28 PM, Feng Kan wrote: > On Thu, Aug 3, 2017 at 5:32 AM, Lorenzo Pieralisi > wrote: >> This patch series is v3 of a previous posting: >> >> v2->v3: >> - Fixed DMA masks computation >> - Fixed size computation overflow in acpi_dma_get_range() >> >> v1->v2

Re: [PATCH 5/7] arm64: keep .altinstructions and .altinstr_replacement

2017-11-30 Thread Nicholas Piggin
On Thu, 30 Nov 2017 09:00:35 -0800 Nick Desaulniers wrote: > On Wed, Nov 29, 2017 at 5:58 PM, Nicholas Piggin wrote: > > (Comparing `readelf -S` before/after is a way to spot bugs.) > > Do you have a script that can be used to diff 2 `readelf -S`, look for > missing references, and report an

Re: [PATCH 4.14 000/193] 4.14.3-stable review

2017-11-30 Thread Kevin Hilman
Greg Kroah-Hartman writes: > On Tue, Nov 28, 2017 at 07:23:57AM -0800, kernelci.org bot wrote: >> stable-rc/linux-4.14.y boot: 239 boots: 11 failed, 197 passed with 31 >> offline (v4.14.2-194-g9ff910a1edbf) >> >> Full Boot Summary: >> https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.

Re: [PATCH] leds: pm8058: Make ledtype pointer sized type

2017-11-30 Thread Pavel Machek
Hi! > > > of_device_get_match_data will return PM8058_LED_TYPE_* > > > which clearly is a led type identifier. > > > > > > Thus unsigned long looks reasonable. > > > > Hmm. Ok. So u32 would actually make even more sense there (because > > PM8058_LED_TYPE_* does not really need to be 64-bit), b

Product Inquiry

2017-11-30 Thread Prakash Najim
Hello, My name is Mr. Prakash Najim and I'm the Purchasing manager of Lintex Int'l Pvt.Ltd in India..We are glad to know about your company from the web and we are interested in your products.Please send us your Latest catalog and price list for our december order Mr. Prakash Najim Purchasing

[PATCH net-next 04/11] net: ethernet: ti: cpsw: move mac_hi/lo defines in cpsw.h

2017-11-30 Thread Grygorii Strashko
Move mac_hi/lo defines in common header cpsw.h and re-use them for netcp_ethss.c. Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/cpsw.c| 4 drivers/net/ethernet/ti/cpsw.h| 4 drivers/net/ethernet/ti/netcp_ethss.c | 5 + 3 files changed, 5 insertions(+)

[PATCH net-next 00/11] net: ethernet: ti: cpsw/ale clean up and optimization

2017-11-30 Thread Grygorii Strashko
This is set of non critical clean ups and optimizations for TI CPSW and ALE drivers. Rebased on top on net-next. Grygorii Strashko (11): net: ethernet: ti: cpsw: drop unused var poll from cpsw_update_channels_res net: ethernet: ti: cpsw: use proper io apis net: ethernet: ti: cpsw: move

[PATCH net-next 03/11] net: ethernet: ti: cpsw: move platform data struct to .c file

2017-11-30 Thread Grygorii Strashko
CPSW platform data struct cpsw_platform_data and struct cpsw_slave_data are used only incide cpsw.c module, so move these definitions there. Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/cpsw.c | 21 + drivers/net/ethernet/ti/cpsw.h | 21 -

Re: PROBLEM: Asus C201 video mode problems on HDMI hotplug (regression)

2017-11-30 Thread Nick Bowler
Hi, On 2017-11-27 22:30 -0500, Nick Bowler wrote: > A note about the test setup: I had to remove the test equipment so I > no longer have any information about the video mode from the sink side > (like in the photos). Thus, with the current setup, I am using the > presense or absense of audio to

[PATCH net-next 02/11] net: ethernet: ti: cpsw: use proper io apis

2017-11-30 Thread Grygorii Strashko
Switch to use writel_relaxed/readl_relaxed() IO API instead of raw version as it is recommended. Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/cpsw.c | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/net/ethernet/ti/

[PATCH net-next 06/11] net: ethernet: ti: ale: use proper io apis

2017-11-30 Thread Grygorii Strashko
Switch to use writel_relaxed/readl_relaxed() IO API instead of raw version as it is recommended. Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/cpsw_ale.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw_a

[PATCH net-next 05/11] net: ethernet: ti: cpsw: fix ale port numbers

2017-11-30 Thread Grygorii Strashko
TI OMAP/Sitara SoCs have fixed number of ALE ports 3, which includes Host port also. Hence, use fixed value instead of value calcualted from DT, which can be set by user and might not reflect actual HW configuration. Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/cpsw.c | 3 ++- 1

[PATCH 2/4] dma-buf: make reservation_object_copy_fences rcu save

2017-11-30 Thread Lyude Paul
From: Christian König Stop requiring that the src reservation object is locked for this operation. commit 39e16ba16c147e662bf9fbcee9a99d70d420382f upstream Acked-by: Chunming Zhou Signed-off-by: Christian König Signed-off-by: Alex Deucher Link: https://patchwork.freedesktop.org/patch/msgid/

[PATCH 3/4] drm/amdgpu: reserve root PD while releasing it

2017-11-30 Thread Lyude Paul
From: Christian König Otherwise somebody could try to evict it at the same time and try to use half torn down structures. commit 2642cf110d08a403f585a051e4cbf45a90b3adea upstream Signed-off-by: Christian König Reviewed-and-Tested-by: Michel Dänzer Reviewed-by: Alex Deucher Signed-off-by: Ale

Re: [PATCH v4 00/12] perf stat: Enable '--per-thread' on all thread

2017-11-30 Thread Jin, Yao
On 11/30/2017 6:05 PM, Jiri Olsa wrote: On Thu, Nov 30, 2017 at 07:56:30PM +0800, Jin Yao wrote: v4: --- Update according to Jiri's comments. The major modification is: Move struct perf_stat_config::*stats|stats_num to 'perf stat: Allocate shadow stats buffer for threads'. I also move the co

[PATCH 1/4] drm/ttm: fix ttm_bo_cleanup_refs_or_queue once more

2017-11-30 Thread Lyude Paul
From: Christian König With shared reservation objects __ttm_bo_reserve() can easily fail even on destroyed BOs. This prevents correct handling when we need to individualize the reservation object. Fix this by individualizing the object before even trying to reserve it. commit 378e2d5b504fe0231c

[PATCH 0/4] Backported amdgpu ttm deadlock fixes for 4.14

2017-11-30 Thread Lyude Paul
I haven't gone to see where it started, but as of late a good number of pretty nasty deadlock issues have appeared with the kernel. Easy reproduction recipe on a laptop with i915/amdgpu prime with lockdep enabled: DRI_PRIME=1 glxinfo Additionally, some more race conditions exist that I've managed

[PATCH 4/4] drm/ttm: Always and only destroy bo->ttm_resv in ttm_bo_release_list

2017-11-30 Thread Lyude Paul
From: Michel Dänzer Fixes a use-after-free due to a race condition in ttm_bo_cleanup_refs_and_unlock, which allows one task to reserve a BO and destroy its ttm_resv while another task is waiting for it to signal in reservation_object_wait_timeout_rcu. commit e1fc12c5d9ad06a2a74e97a91f1b0c5f4c723

[PATCH net-next 09/11] net: ethernet: ti: ale: move static initialization in cpsw_ale_create()

2017-11-30 Thread Grygorii Strashko
Move static initialization from cpsw_ale_start() to cpsw_ale_create() as it does not make much sence to perform static initializtion in cpsw_ale_start() which is called everytime netif[s] is opened. Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/cpsw_ale.c | 57 +++-

Re: [PATCH v4 01/12] perf util: Create rblist__reset() function

2017-11-30 Thread Jin, Yao
On 12/1/2017 3:30 AM, Arnaldo Carvalho de Melo wrote: Em Thu, Nov 30, 2017 at 07:56:31PM +0800, Jin Yao escreveu: Currently we have a rblist__delete() which is used to delete a rblist. While rblist__delete() will free the pointer of rblist at the end. It's inconvenience for user to delete a r

Re: [PATCH v2 0/4] ARM64: dts: meson-gx: fix VPU init for non-vendor u-boot

2017-11-30 Thread Kevin Hilman
Neil Armstrong writes: > On the Amlogic Gx SoCs (GXBB, GXL & GXM), the VPU power domain is initialized > by the vendor U-Boot code, but running mainline U-boot has been possible > on these SoCs. But lacking such init made the system lock at kernel boot. > > A PM Power Domain driver has been pushe

[PATCH net-next 08/11] net: ethernet: ti: ale: optimize ale entry mask bits configuartion

2017-11-30 Thread Grygorii Strashko
The ale->params.ale_ports parameter can be used to deriver values for all ale entry mask bits: port_mask_bits, port_mask_bits, port_num_bits. Hence, calculate above values and drop all hardcoded values. For port_num_bits calcualtion use order_base_2() API. Signed-off-by: Grygorii Strashko --- dr

Re: [PATCH 11/21] trace: Use -mcount-record for dynamic ftrace

2017-11-30 Thread Steven Rostedt
On Mon, 27 Nov 2017 13:34:13 -0800 Andi Kleen wrote: > From: Andi Kleen > > gcc 5 supports a new -mcount-record option to generate ftrace > tables directly. This avoids the need to run record_mcount > manually. > > Use this option when available. > > So far doesn't use -mcount-nop, which also

[PATCH net-next 01/11] net: ethernet: ti: cpsw: drop unused var poll from cpsw_update_channels_res

2017-11-30 Thread Grygorii Strashko
Drop unused variable "poll" from cpsw_update_channels_res(). Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/cpsw.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index a73600d..523c110 100644 --- a/drivers/net/e

[PATCH net-next 10/11] net: ethernet: ti: ale: use devm_kzalloc in cpsw_ale_create()

2017-11-30 Thread Grygorii Strashko
Use cpsw_ale_create in cpsw_ale_create(). This also makes cpsw_ale_destroy() function nop, so remove it. Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/cpsw.c| 17 +++-- drivers/net/ethernet/ti/cpsw_ale.c| 11 +-- drivers/net/ethernet/ti/cpsw_ale.h

[PATCH net-next 11/11] net: ethernet: ti: ale: fix port check in cpsw_ale_control_set/get

2017-11-30 Thread Grygorii Strashko
ALE ports number includes the Host port and ext Ports, and ALE ports numbering starts from 0, so correct corresponding port checks in cpsw_ale_control_set/get(). Signed-off-by: Grygorii Strashko --- drivers/net/ethernet/ti/cpsw_ale.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) dif

[PATCH net-next 07/11] net: ethernet: ti: ale: disable ale from stop()

2017-11-30 Thread Grygorii Strashko
ALE is enabled from cpsw_ale_start() now, but disabled only from cpsw_ale_destroy() which introduces inconsitance as cpsw_ale_start() is called when netif[s] is opened, but cpsw_ale_destroy() is called when driver is removed. Hence, move ALE disabling in cpsw_ale_stop(). Signed-off-by: Grygorii St

Re: [PATCH] tools lib traceevent: fix an incorrect comparison with the literal "s64"

2017-11-30 Thread Steven Rostedt
Arnaldo, Can you take this in your tree. And mark it for stable. Thanks! On Mon, 27 Nov 2017 16:19:09 + Colin King wrote: > From: Colin Ian King > > I believe the comparison of the string 'type' with the literal string > "s64" is currently incorrect, it is missing a == 0 comparison as pe

Re: [PATCH v2 0/7] ARM: Broadcom Brahma-B15 readahead cache support

2017-11-30 Thread Florian Fainelli
On 08/14/2017 09:23 AM, Florian Fainelli wrote: > > > On 07/14/2017 03:11 PM, Florian Fainelli wrote: >> On 06/23/2017 10:52 AM, Florian Fainelli wrote: >>> Hi all, >>> >>> This patch series adds support for the Broadcom Brahma-B15 readahead cache. >>> I submitted that patch series a couple of ye

Re: [PATCH v2 6/7] arm64: explicitly pass --no-fix-cortex-a53-843419 to GNU gold

2017-11-30 Thread Nick Desaulniers
Reviewed-by: Nick Desaulniers

[PATCH][v5] uprobes/x86: emulate push insns for uprobe on x86

2017-11-30 Thread Yonghong Song
Uprobe is a tracing mechanism for userspace programs. Typical uprobe will incur overhead of two traps. First trap is caused by replaced trap insn, and the second trap is to execute the original displaced insn in user space. To reduce the overhead, kernel provides hooks for architectures to emulate

Re: kernel//trace/trace_irqsoff.c:855:2: error: implicit declaration of function 'trace_preempt_enable_rcuidle'

2017-11-30 Thread Steven Rostedt
On Tue, 28 Nov 2017 13:56:45 +0800 kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 > commit: d59158162e032917a428704160a2063a02405ec6 tracing: Add support for > preempt and irq enab

Re: [PATCH] list_lru: Prefetch neighboring list entries before acquiring lock

2017-11-30 Thread Minchan Kim
On Thu, Nov 30, 2017 at 12:47:36PM -0800, Andrew Morton wrote: > On Thu, 30 Nov 2017 08:54:04 -0500 Waiman Long wrote: > > > > And, from that perspective, the racy shortcut in the proposed patch > > > is wrong, too. Prefetch is fine, but in general shortcutting list > > > empty checks outside the

[PATCH net-next] net: dsa: Allow compiling out legacy support

2017-11-30 Thread Florian Fainelli
Introduce a configuration option: CONFIG_NET_DSA_LEGACY allowing to compile out support for the old platform device and Device Tree binding registration. Support for these configurations is scheduled to be removed in 4.17. Signed-off-by: Florian Fainelli --- include/net/dsa.h | 9 + ne

[PATCH v3 4/6] perf: implement pmu perf_uprobe

2017-11-30 Thread Song Liu
This patch adds perf_uprobe support with similar pattern as previous patch (for kprobe). Two functions, create_local_trace_uprobe() and destroy_local_trace_uprobe(), are created so a uprobe can be created and attached to the file descriptor created by perf_event_open(). Signed-off-by: Song Liu R

[PATCH v3] bcc: Try use new API to create [k,u]probe with perf_event_open

2017-11-30 Thread Song Liu
New kernel API allows creating [k,u]probe with perf_event_open. This patch tries to use the new API. If the new API doesn't work, we fall back to old API. bpf_detach_probe() looks up the event being removed. If the event is not found, we skip the clean up procedure. Signed-off-by: Song Liu ---

Re: [PATCH v2 19/23] firmware: add debug facility to emulate forcing sysfs fallback

2017-11-30 Thread Luis R. Rodriguez
On Thu, Nov 30, 2017 at 09:35:16PM +0100, Luis R. Rodriguez wrote: > On Wed, Nov 29, 2017 at 11:28:04AM +0100, Greg KH wrote: > > On Mon, Nov 20, 2017 at 10:24:05AM -0800, Luis R. Rodriguez wrote: > > > diff --git a/drivers/base/firmware_debug.c b/drivers/base/firmware_debug.c > > > new file mode 1

[PATCH v3 1/6] perf: prepare perf_event.h for new types perf_kprobe and perf_uprobe

2017-11-30 Thread Song Liu
Two new perf types, perf_kprobe and perf_uprobe, will be added to allow creating [k,u]probe with perf_event_open. These [k,u]probe are associated with the file decriptor created by perf_event_open, thus are easy to clean when the file descriptor is destroyed. kprobe_func and uprobe_path are added

Re: [PATCH] list_lru: Prefetch neighboring list entries before acquiring lock

2017-11-30 Thread Minchan Kim
On Thu, Nov 30, 2017 at 08:43:41AM -0500, Waiman Long wrote: > On 11/29/2017 07:53 PM, Minchan Kim wrote: > > Hello, > > > > On Wed, Nov 29, 2017 at 09:17:34AM -0500, Waiman Long wrote: > >> The list_lru_del() function removes the given item from the LRU list. > >> The operation looks simple, but i

[PATCH v4 1/5] ARM: ep93xx: ts72xx: Provide include guards for ts72xx.h file

2017-11-30 Thread Lukasz Majewski
This commit adds include file guards to ts72xx.h Signed-off-by: Lukasz Majewski Acked-by: Alexander Sverdlin --- Changes for v2: - None Changes for v3: - None Changes for v4: - None --- arch/arm/mach-ep93xx/ts72xx.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-ep93xx/ts

[PATCH v3] perf_event_open.2: add type kprobe and uprobe

2017-11-30 Thread Song Liu
Two new types kprobe and uprobe are being added to perf_event_open, which allow creating kprobe or uprobe with perf_event_open. This patch adds information about these types. Signed-off-by: Song Liu --- man2/perf_event_open.2 | 48 1 file changed,

Re: [PATCH v4 2/2] ASoC: fsl_ssi: add 20-bit sample format for AC'97 and use it for capture

2017-11-30 Thread Nicolin Chen
On Thu, Nov 30, 2017 at 08:20:08PM +0100, Maciej S. Szmigiero wrote: > In the AC'97 mode we have to differentiate two things: > 1) Bit width of the physical AC'97 interface ("AC-link"), > 2) Bit width of samples that are accepted during a playback and output > during a recording by the SSI (and, s

[PATCH v4 2/5] ARM: ep93xx: ts72xx: Rewrite ts72xx_register_flash() to accept parameters

2017-11-30 Thread Lukasz Majewski
This commit extend the ts72xx_register_flash() to accept passed parameters, which makes it more reusable. Now it is possible to accept ep93xx flash start address and partitions. Signed-off-by: Lukasz Majewski Acked-by: Alexander Sverdlin --- Changes for v2: - New patch Changes for v3: - None Ch

[PATCH v4 0/5] ARM: ep93xx: ts72xx: Add support for BK3 board

2017-11-30 Thread Lukasz Majewski
ng code of ts72xx.c (detalied list of changes can be found in patch 6/6) This series applies on top of linux-next/master (next-20171130) Lukasz Majewski (5): ARM: ep93xx: ts72xx: Provide include guards for ts72xx.h file ARM: ep93xx: ts72xx: Rewrite ts72xx_register_flash() to accept parameters A

[PATCH v4 4/5] ARM: ep93xx: ts72xx: cosmetic: Add some description to ts72xx code

2017-11-30 Thread Lukasz Majewski
This patch extends readability of ts72xx.c code. Signed-off-by: Lukasz Majewski --- Changes for v2: - New patch Changes for v3: - None Changes to v4: - Adjust the code to be applicable to linux-next/master --- arch/arm/mach-ep93xx/ts72xx.c | 9 + 1 file changed, 9 insertions(+) diff --g

[PATCH v4 5/5] ARM: ep93xx: ts72xx: Add support for BK3 board - ts72xx derivative

2017-11-30 Thread Lukasz Majewski
The BK3 board is a derivative of the ts72xx reference design. Signed-off-by: Lukasz Majewski --- Changes for v2: - Place bk3 support code to the ts72xx.c file Changes for v3: - Add SD card support (via SPI) for BK3 - Remove definition of apb:i2s bus - Remove board registration of CPLD WDT device

[PATCH v4 3/5] ARM: ep93xx: ts72xx: Rewrite map IO code to be reusable

2017-11-30 Thread Lukasz Majewski
The map IO common code has been excluded to be reused by other ts72xx clones. Signed-off-by: Lukasz Majewski Acked-by: Alexander Sverdlin --- Changes for v2: - New patch Changes for v3: - None Changes for v4: - None --- arch/arm/mach-ep93xx/ts72xx.c | 23 --- 1 file changed,

[PATCH v3 3/6] perf: implement pmu perf_kprobe

2017-11-30 Thread Song Liu
A new pmu, perf_kprobe is added. Based attr from perf_event_open(), perf_kprobe creates a kprobe (or kretprobe) for the perf_event. This kprobe is private to this perf_event, and thus not added to global lists, and not available in tracefs. Two functions, create_local_trace_kprobe() and destroy_lo

[PATCH v3 0/6] enable creating [k,u]probe with perf_event_open

2017-11-30 Thread Song Liu
Changes PATCH v2 to PATCH v3: Remove fixed type PERF_TYPE_KPROBE and PERF_TYPE_UPROBE, use dynamic type instead. Update userspace (samples/bpf, bcc) to look up type from sysfs. Change License info in test_many_kprobe_user.c as Philippe Ombredanne suggested. Changes PATCH v1 to PATCH v2:

[PATCH v3 2/6] perf: copy new perf_event.h to tools/include/uapi

2017-11-30 Thread Song Liu
perf_event.h is updated in previous patch, this patch applies same changes to the tools/ version. This is part is put in a separate patch in case the two files are back ported separately. Signed-off-by: Song Liu Reviewed-by: Yonghong Song Reviewed-by: Josef Bacik Acked-by: Alexei Starovoitov -

[PATCH v3 6/6] bpf: add new test test_many_kprobe

2017-11-30 Thread Song Liu
The test compares old text based kprobe API with perf_kprobe. Here is a sample output of this test: Creating 1000 kprobes with text-based API takes 6.979683 seconds Cleaning 1000 kprobes with text-based API takes 84.897687 seconds Creating 1000 kprobes with perf_kprobe (function name) takes 5.077

[PATCH v3 5/6] bpf: add option for bpf_load.c to use perf_kprobe

2017-11-30 Thread Song Liu
Function load_and_attach() is updated to be able to create kprobes with either old text based API, or the new perf_event_open API. A global flag use_perf_kprobe is added to select between the two APIs. Signed-off-by: Song Liu Reviewed-by: Josef Bacik --- samples/bpf/bpf_load.c | 58 +++

Re: [PATCH 07/11] xfs: remove not needed freezing calls

2017-11-30 Thread Rafael J. Wysocki
On Friday, December 1, 2017 12:30:33 AM CET Dave Chinner wrote: > On Thu, Nov 30, 2017 at 09:32:53PM +0100, Rafael J. Wysocki wrote: > > On Thu, Nov 30, 2017 at 5:21 PM, Jan Kara wrote: > > > On Wed 29-11-17 15:23:52, Luis R. Rodriguez wrote: > > >> This removes superflous freezer calls as they ar

[PATCH v2 0/7] Add support for GNU gold

2017-11-30 Thread Sami Tolvanen
These patches add macros for detecting the linker name and version, and apply fixes and workarounds needed to link the arm64 kernel with GNU gold. Changes since v1: - moved LD_DEAD_CODE_DATA_ELIMINATION fixes to the beginning of the patch set and removed mentions of gold - renamed ld-if-na

[PATCH v2 2/7] arm64: keep .altinstructions and .altinstr_replacement

2017-11-30 Thread Sami Tolvanen
Make sure the linker doesn't remove .altinstructions or .altinstr_replacement when CONFIG_LD_DEAD_CODE_DATA_ELIMINATION is enabled. Signed-off-by: Sami Tolvanen --- arch/arm64/kernel/vmlinux.lds.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/kernel/vmlinux.l

[PATCH v2 5/7] arm64: fix -m for GNU gold

2017-11-30 Thread Sami Tolvanen
GNU gold supports different emulations than bfd. Use aarch64_elf64_*_vec instead of aarch64linux. Signed-off-by: Sami Tolvanen Acked-by: Yury Norov --- arch/arm64/Makefile | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index b35788c909f1..8

[PATCH v2 7/7] arm64: add a workaround for GNU gold with ARM64_MODULE_PLTS

2017-11-30 Thread Sami Tolvanen
All current versions of GNU gold crash when linking kernel modules with ARM64_MODULE_PLTS due to a known bug: https://sourceware.org/bugzilla/show_bug.cgi?id=14592 To work around the problem, this change removes NOLOAD from .plt and .init.plt. Signed-off-by: Sami Tolvanen Acked-by: Ard Bieshe

[PATCH v2 4/7] kbuild: add __ld-ifversion and linker-specific macros

2017-11-30 Thread Sami Tolvanen
Add macros for testing both linker name and version. Signed-off-by: Sami Tolvanen --- scripts/Kbuild.include | 12 1 file changed, 12 insertions(+) diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index 899863e4cd05..2991b463b4ce 100644 --- a/scripts/Kbuild.include +++

[PATCH v2 0/2] Add version macros for clang

2017-11-30 Thread Sami Tolvanen
This patch set adds macros for checking clang version. Changes from v1: - fixed a comment in clang-version.sh - renamed macros to __cc-ifversion and __cc-if-fullversion - fixed a bug with non-bash shells - dropped the arm64 patch as unnecessary Sami Tolvanen (2): kbuild: add clang-versi

[PATCH v2 6/7] arm64: explicitly pass --no-fix-cortex-a53-843419 to GNU gold

2017-11-30 Thread Sami Tolvanen
Some versions of GNU gold are known to produce broken code with --fix-cortex-a53-843419 as explained in this bug: https://sourceware.org/bugzilla/show_bug.cgi?id=21491 If ARM64_ERRATUM_843419 is disabled and we're using GNU gold, pass --no-fix-cortex-a53-843419 to the linker to ensure the errat

[PATCH v2 3/7] kbuild: add ld-name macro

2017-11-30 Thread Sami Tolvanen
GNU gold may require different flags than GNU ld. Add a macro for detecting the linker. Signed-off-by: Sami Tolvanen Reviewed-by: Nick Desaulniers --- scripts/Kbuild.include | 4 1 file changed, 4 insertions(+) diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index eb2cf2780f6

[PATCH v2 1/7] kbuild: fix LD_DEAD_CODE_DATA_ELIMINATION

2017-11-30 Thread Sami Tolvanen
Don't remove .head.text or .exitcall.exit when linking with --gc-sections, and include .init.text.* in .init.text and .init.rodata.* in .init.rodata. Signed-off-by: Sami Tolvanen Reviewed-by: Nicholas Piggin --- include/asm-generic/vmlinux.lds.h | 8 1 file changed, 4 insertions(+), 4

[PATCH v2 2/2] kbuild: add __cc-ifversion and compiler-specific variants

2017-11-30 Thread Sami Tolvanen
This change adds macros for testing both compiler name and version. Current cc-version, cc-ifversion etc. macros that test gcc version are left unchanged to prevent compatibility issues with existing tests. Signed-off-by: Sami Tolvanen --- scripts/Kbuild.include | 41

[PATCH v2 1/2] kbuild: add clang-version.sh

2017-11-30 Thread Sami Tolvanen
Based on gcc-version.sh, clang-version.sh prints out the correct version of clang. Signed-off-by: Sami Tolvanen Tested-by: Nick Desaulniers --- scripts/clang-version.sh | 33 + 1 file changed, 33 insertions(+) create mode 100755 scripts/clang-version.sh diff --

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

2017-11-30 Thread Stephen Rothwell
Hi Al, On Wed, 29 Nov 2017 10:53:29 +1100 Stephen Rothwell wrote: > > Today's linux-next merge of the vfs tree got conflicts in several files > due to commit: > > 1751e8a6cb93 ("Rename superblock flags (MS_xyz -> SB_xyz)") > > from Linus' tree and commit: > > c2c6773f9942 ("VFS: Roll out

Re: [PATCH 07/11] xfs: remove not needed freezing calls

2017-11-30 Thread Dave Chinner
On Thu, Nov 30, 2017 at 09:32:53PM +0100, Rafael J. Wysocki wrote: > On Thu, Nov 30, 2017 at 5:21 PM, Jan Kara wrote: > > On Wed 29-11-17 15:23:52, Luis R. Rodriguez wrote: > >> This removes superflous freezer calls as they are no longer needed > >> as the VFS now performs filesystem freezing/thaw

Re: [GIT PULL] hash addresses printed with %p

2017-11-30 Thread Linus Torvalds
On Thu, Nov 30, 2017 at 12:10 PM, Greg Kroah-Hartman wrote: > > So changing it to use __ATTR() should fix this remaning leakage up. > That is if we even really need to export these values at all. What does > userspace do with them? Shouldn't they just be in debugfs instead? So what I find dista

Re: [PATCH v3] scripts/package: snap-pkg target

2017-11-30 Thread Jim Davis
On Wed, Nov 29, 2017 at 10:05 AM, Paolo Pisati wrote: > On Wed, Nov 29, 2017 at 8:33 AM, Masahiro Yamada > wrote: >> >> Worked for me too, >> after updating snapcraft. >> >> >> Is it really impossible to check the snapcraft version? >> What is the minimum version? 2.35 ? > > The minimum version

Re: [PATCH] leds: pm8058: Make ledtype pointer sized type

2017-11-30 Thread Stephen Rothwell
Hi Pavel, On Thu, 30 Nov 2017 23:34:07 +0100 Pavel Machek wrote: > > On Thu 2017-11-30 22:58:55, Jacek Anaszewski wrote: > > On 11/30/2017 10:40 AM, Pavel Machek wrote: > > > On Wed 2017-11-29 19:05:43, Bjorn Andersson wrote: > > >> The pointer returned by of_device_get_match_data() doesn't h

Re: [PATCH v4 2/8] MIPS: Octeon: Enable LMTDMA/LMTST operations.

2017-11-30 Thread James Hogan
On Thu, Nov 30, 2017 at 03:09:33PM -0800, David Daney wrote: > On 11/30/2017 02:56 PM, James Hogan wrote: > > On Thu, Nov 30, 2017 at 01:49:43PM -0800, David Daney wrote: > >> On 11/30/2017 01:36 PM, James Hogan wrote: > >>> On Tue, Nov 28, 2017 at 04:55:34PM -0800, David Daney wrote: > Signed

Re: [PATCH v4 2/8] MIPS: Octeon: Enable LMTDMA/LMTST operations.

2017-11-30 Thread David Daney
On 11/30/2017 02:56 PM, James Hogan wrote: On Thu, Nov 30, 2017 at 01:49:43PM -0800, David Daney wrote: On 11/30/2017 01:36 PM, James Hogan wrote: On Tue, Nov 28, 2017 at 04:55:34PM -0800, David Daney wrote: Signed-off-by: Carlos Munoz Signed-off-by: Steven J. Hill Signed-off-by: David Daney

Re: [PATCH 0/5] PCI: Add support to the Cadence PCIe controller

2017-11-30 Thread Bjorn Helgaas
On Thu, Nov 30, 2017 at 09:05:12PM +0100, Cyrille Pitchen wrote: > Le 30/11/2017 à 19:45, Cyrille Pitchen a écrit : > > Le 30/11/2017 à 19:18, Lorenzo Pieralisi a écrit : > >> On Thu, Nov 30, 2017 at 12:43:20PM +0530, Kishon Vijay Abraham I wrote: > >>> The reason to patch drivers/Makefile should

[PATCH v6 1/2] Documentation: dt: Update ti,emif bindings

2017-11-30 Thread Dave Gerlach
Update the Texas Instruments EMIF binding document to include the device tree bindings for ti,emif-am3352 and ti,emif-am4372 which are used by the ti-emif-sram driver to provide low-level PM functionality. Acked-by: Rob Herring Acked-by: Tony Lindgren Signed-off-by: Dave Gerlach --- .../device

[PATCH v6 2/2] memory: ti-emif-sram: introduce relocatable suspend/resume handlers

2017-11-30 Thread Dave Gerlach
Certain SoCs like Texas Instruments AM335x and AM437x require parts of the EMIF PM code to run late in the suspend sequence from SRAM, such as saving and restoring the EMIF context and placing the memory into self-refresh. One requirement for these SoCs to suspend and enter its lowest power mode,

[PATCH v6 0/2] memory: Introduce ti-emif-sram driver

2017-11-30 Thread Dave Gerlach
This is a resend of v5 of this series found here [1]. It introduces relocatable PM handlers for the emif that are copied to sram and run from there during low power mode entry. The patches still have the previous ACKs but have a small change to accomodate a change made by Tony in commit cd57dc5a20

Re: [PATCH v4 2/8] MIPS: Octeon: Enable LMTDMA/LMTST operations.

2017-11-30 Thread James Hogan
On Thu, Nov 30, 2017 at 01:49:43PM -0800, David Daney wrote: > On 11/30/2017 01:36 PM, James Hogan wrote: > > On Tue, Nov 28, 2017 at 04:55:34PM -0800, David Daney wrote: > >> Signed-off-by: Carlos Munoz > >> Signed-off-by: Steven J. Hill > >> Signed-off-by: David Daney > >> --- > >> arch/mips

Re: [PATCH v4 3/8] MIPS: Octeon: Add a global resource manager.

2017-11-30 Thread James Hogan
On Tue, Nov 28, 2017 at 04:55:35PM -0800, David Daney wrote: > From: Carlos Munoz > > Add a global resource manager to manage tagged pointers within > bootmem allocated memory. This is used by various functional > blocks in the Octeon core like the FPA, Ethernet nexus, etc. > > Signed-off-by: Ca

Re: [PATCH] x86/microcode/AMD: Add support for fam17h microcode loading

2017-11-30 Thread Borislav Petkov
On Thu, Nov 30, 2017 at 04:46:40PM -0600, Tom Lendacky wrote: > The size for the Microcode Patch Block (MPB) for an AMD family 17h > processor is 3200 bytes. Add a #define for fam17h so that it does > not default to 2048 bytes and fail a microcode load/update. > > Cc: # 4.1.x > Signed-off-by: To

Re: [patches] [PATCH 3/4] RISC-V: Flush I$ when making a dirty page executable

2017-11-30 Thread Palmer Dabbelt
On Thu, 30 Nov 2017 12:32:04 PST (-0800), Olof Johansson wrote: Hi, On Mon, Nov 20, 2017 at 10:57 AM, Palmer Dabbelt wrote: From: Andrew Waterman The RISC-V ISA allows for instruction caches that are not coherent WRT stores, even on a single hart. As a result, we need to explicitly flush th

Re: [GIT pull] x86 APIC updates for 4.15

2017-11-30 Thread Thomas Gleixner
On Thu, 30 Nov 2017, Maarten Lankhorst wrote: > Op 30-11-17 om 10:18 schreef Thomas Gleixner: > # cat /sys/kernel/debug/irq/irqs/28 > handler: handle_edge_irq > device: :00:02.0 > status: 0x > istate: 0x > ddepth: 0 > wdepth: 0 > dstate: 0x01401200 > IR

[PATCH] x86/microcode/AMD: Add support for fam17h microcode loading

2017-11-30 Thread Tom Lendacky
The size for the Microcode Patch Block (MPB) for an AMD family 17h processor is 3200 bytes. Add a #define for fam17h so that it does not default to 2048 bytes and fail a microcode load/update. Cc: # 4.1.x Signed-off-by: Tom Lendacky --- arch/x86/kernel/cpu/microcode/amd.c |4 1 file c

Re: [PATCH 02/08] NTB: ntb_test: Add ntb_tool port tests

2017-11-30 Thread Logan Gunthorpe
On 30/11/17 02:42 PM, Serge Semin wrote: +function find_pidx() +{ + PORT=$1 + PPATH=$2 + + for ((i = 0; i < 64; i++)); do + PEER_DIR="$PPATH/peer$i" + + check_file ${PEER_DIR} || break + + PEER_PORT=$(read_file "${PEER_DIR}/port") +

Re: BUG: support for at24 multi-slave-address eeproms is broken.

2017-11-30 Thread Sakari Ailus
Hi Sven, On Thu, Nov 30, 2017 at 02:03:23PM -0500, Sven Van Asbroeck wrote: > Summary > --- > Some at24 eeproms have multiple i2c slave addresses. A patch introduced > between 4.14-rc5 and 4.14-rc6 breaks support for these eeproms: > reads/writes which start outside the first slave no longer w

[PATCH 1/1] at24: Fix I²C device selection for runtime PM

2017-11-30 Thread Sakari Ailus
The at24 driver creates dummy I²C devices to access offsets in the chip that are outside the area supported using a single I²C address. It is not meaningful to use runtime PM to such devices; the system firmware (ACPI) does not know about these devices nor runtime PM was enabled for them. Always us

Re: [PATCH] leds: pm8058: Make ledtype pointer sized type

2017-11-30 Thread Pavel Machek
On Thu 2017-11-30 22:58:55, Jacek Anaszewski wrote: > On 11/30/2017 10:40 AM, Pavel Machek wrote: > > On Wed 2017-11-29 19:05:43, Bjorn Andersson wrote: > >> The pointer returned by of_device_get_match_data() doesn't have the same > >> size as u32 on 64-bit architectures, causing issues when compil

Re: [PATCH] NTB: ntb_hw_idt: Set NTB_TOPO_SWITCH topology

2017-11-30 Thread Logan Gunthorpe
On 30/11/17 03:14 PM, Serge Semin wrote: Signed-off-by: Serge Semin Acked-by: Serge Semin You don't need to Ack your own patches ;) It goes to the subsystem maintained by me. I tested the change, so am responsible for the results. Yes, but it goes without saying that a patch you wrote

Re: [PATCH 01/08] NTB: ntb_test: Safely use paths with whitespace

2017-11-30 Thread Logan Gunthorpe
On 30/11/17 03:12 PM, Serge Semin wrote: In general the intention of the patchset was to update the ntb_test.sh script so one would be compatible with new NTB test drivers I've also sent. It was asked of me by the NTB core maintainers. Sorry for not mentioning it in the cover letter. I unders

[PATCH] staging: pi433: fix coding style in function rf69_set_rx_cfg()

2017-11-30 Thread Victor Carvalho
staging: pi433: fix coding style in function - rf69_set_rx_cfg(struct pi433_device *dev, struct pi433_rx_cfg *rx_cfg) Signed-off-by: Victor Carvalho --- drivers/staging/pi433/pi433_if.c | 60 1 file changed, 30 insertions(+), 30 deletions(-) diff --git

Re: [PATCH v2] NTB: ntb_tool: Add full multi-port NTB API support

2017-11-30 Thread Logan Gunthorpe
On 30/11/17 02:37 PM, Serge Semin wrote: Changelog v2: - Remove driver Author/Description/License macros This patch is already very long and should be split up, and you added more to it? If you want to fix these macros it should be in it's own patch with it's own justification. - u

linux-next: Signed-off-by missing for commits in the btrfs-kdave tree

2017-11-30 Thread Stephen Rothwell
Hi David, Commits f212bed55c85 ("Btrfs: add support for fallocate's zero range operation") 2d0d54302a5f ("Btrfs: use cached state when dirtying pages during buffered write") are missing a Signed-off-by from their committer. -- Cheers, Stephen Rothwell

Re: [PATCH] leds: pm8058: Make ledtype pointer sized type

2017-11-30 Thread Bjorn Andersson
On Thu 30 Nov 01:40 PST 2017, Pavel Machek wrote: > On Wed 2017-11-29 19:05:43, Bjorn Andersson wrote: > > The pointer returned by of_device_get_match_data() doesn't have the same > > size as u32 on 64-bit architectures, causing issues when compile testing > > the driver on such platform. Make led

Re: waitqueue lockdep annotation

2017-11-30 Thread Jason Baron
On 11/30/2017 05:11 PM, Christoph Hellwig wrote: > On Thu, Nov 30, 2017 at 04:38:02PM -0500, Jason Baron wrote: >> I don't think there is a bug here. The 'wake_up_locked()' calls in epoll >> are being protected by the ep->lock, not the wait_queue_head lock. So >> arguably the 'annotation' is wron

Re: [PATCH] NTB: Set dma mask and dma coherent mask to NTB devices

2017-11-30 Thread Logan Gunthorpe
On 30/11/17 02:39 PM, Serge Semin wrote: diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c b/drivers/ntb/hw/amd/ntb_hw_amd.c index f0788aae05c9..3cfa46876239 100644 --- a/drivers/ntb/hw/amd/ntb_hw_amd.c +++ b/drivers/ntb/hw/amd/ntb_hw_amd.c @@ -1020,6 +1020,10 @@ static int amd_ntb_init_pci(struct a

Re: [PATCH] NTB: ntb_hw_idt: Set NTB_TOPO_SWITCH topology

2017-11-30 Thread Serge Semin
On Thu, Nov 30, 2017 at 03:06:15PM -0700, Logan Gunthorpe wrote: > > > On 30/11/17 02:41 PM, Serge Semin wrote: > >Since Switchtec patch there has been a new topology added to > >the NTB API. It's called NTB_TOPO_SWITCH and dedicated for > >PCIe switch chips. Even though topo field isn't used w

Re: [PATCH 01/08] NTB: ntb_test: Safely use paths with whitespace

2017-11-30 Thread Serge Semin
On Thu, Nov 30, 2017 at 03:04:29PM -0700, Logan Gunthorpe wrote: Hello > Hey, > > I took a cursory look at this series and it largely looks good to me. Nice > work. If I have time in the next couple days I'll do a more thorough review. > However, does the series not depend on changes to ntb_to

Re: waitqueue lockdep annotation

2017-11-30 Thread Christoph Hellwig
On Thu, Nov 30, 2017 at 04:38:02PM -0500, Jason Baron wrote: > I don't think there is a bug here. The 'wake_up_locked()' calls in epoll > are being protected by the ep->lock, not the wait_queue_head lock. So > arguably the 'annotation' is wrong, but I don't think there is a bug > beyond that. They

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