[Patch v3 14/36] genirq: Introduce helper function irq_data_get_affinity_mask()

2015-06-01 Thread Jiang Liu
Introduce helper function irq_data_get_affinity_mask() and irq_get_affinity_mask() to hide implementation details, so we could move field 'affinity' from struct irq_data into struct irq_common_data later. Signed-off-by: Jiang Liu jiang@linux.intel.com Acked-by: Russell King

[Patch v3 20/36] metag, irq: Use access helper irq_data_get_affinity_mask()

2015-06-01 Thread Jiang Liu
Use access helper irq_data_get_affinity_mask() to hide implementation details of struct irq_desc. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/metag/kernel/irq.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/metag/kernel/irq.c

[Patch v3 08/36] sparc, irq: Use helper irq_data_get_irq_handler_data() to hide irq_desc details

2015-06-01 Thread Jiang Liu
Use helper function irq_data_get_irq_handler_data() to hide irq_desc implementation details. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/sparc/kernel/irq_64.c| 15 +-- arch/sparc/kernel/sun4d_irq.c |4 ++-- arch/sparc/kernel/sun4m_irq.c |6 -- 3

[Patch v3 17/36] ARM64, irq: Use access helper irq_data_get_affinity_mask()

2015-06-01 Thread Jiang Liu
Use access helper irq_data_get_affinity_mask() to hide implementation details of struct irq_desc. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/arm64/kernel/irq.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/kernel/irq.c

[PATCH-v3 0/4] target: Eliminate se_port + t10_alua_tg_pt_gp_member

2015-06-01 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org Hi all, Here is v3 series with HCH's recent changes to go ahead and drop all se_port + t10_alua_tg_pt_gp_member usage within target-core in favor of direct se_lun pointer dereference. This includes the original patch + minor fixes, along with two

Re: [PATCH 2/2] dmaengine: hdmac: Implement interleaved transfers

2015-06-01 Thread Ludovic Desroches
On Wed, May 27, 2015 at 04:01:53PM +0200, Maxime Ripard wrote: The AT91 HDMAC controller supports interleaved transfers through what's called the Picture-in-Picture mode, which allows to transfer a squared portion of a framebuffer. This means that this interleaved transfer only supports

Re: [PATCH 2/4] mfd: 88pm800: use irq_mode to configure interrupt status reg clear method

2015-06-01 Thread Lee Jones
On Sat, 30 May 2015, Vaibhav Hiremath wrote: From the spec, bit 1 of reg 0xe (page 0): IN_CLEAR_MODE controls the method of clearing interrupt status register of 88pm800; 0: clear on read 1: clear on write Signed-off-by: zhaoy zh...@marvell.com This signed-off is not acceptable. No

Re: [RFC 24/24] m68k: Dispatch nvram_ops calls to Atari or Mac functions

2015-06-01 Thread Geert Uytterhoeven
Hi Finn, On Sun, May 31, 2015 at 3:01 AM, Finn Thain fth...@telegraphics.com.au wrote: A multi-platform kernel binary needs to decide at run-time how to dispatch the arch_nvram_ops calls. Add platform-independent arch_nvram_ops, for use when multiple platform-specific NVRAM ops implementations

Re: [PATCH-v3 00/10] target: se_node_acl + se_lun RCU conversions

2015-06-01 Thread Nicholas A. Bellinger
On Tue, 2015-05-26 at 11:41 +0200, Hannes Reinecke wrote: On 05/26/2015 08:25 AM, Nicholas A. Bellinger wrote: From: Nicholas Bellinger n...@linux-iscsi.org Hi all, Here is -v3 series for converting LIO target se_node_acl + se_lun mapping tables from fixed size arrays to dynamic RCU

Re: [PATCH v10 12/12] drivers/block/pmem: Map NVDIMM with ioremap_wt()

2015-06-01 Thread Ingo Molnar
* Andy Lutomirski l...@amacapital.net wrote: You answered the wrong question. :) I understand the point of the non-temporal stores -- I don't understand the point of using non-temporal stores to *WB memory*. I think we should be okay with having the kernel mapping use WT instead. WB

Re: [PATCH 05/98] exynos_drm.h: use __u64 from linux/types.h

2015-06-01 Thread Christian König
Yeah, completely agree with Linus on the visibility problem and that's exactly the reason why we don't include stdint.h in the kernel header and expect userspace to define the ISO types somewhere. But using the types from include/linux/types.h and especially including it into the uapi headers

Re: [PATCH 07/15] KVM: MTRR: improve kvm_mtrr_get_guest_memory_type

2015-06-01 Thread Paolo Bonzini
On 30/05/2015 12:59, Xiao Guangrong wrote: - kvm_mtrr_get_guest_memory_type() only checks one page in MTRRs so that it's unnecessary to check to see if the range is partially covered in MTRR - optimize the check of overlap memory type and add some comments to explain the

Re: [PATCH v5 10/12] KVM: arm64: guest debug, HW assisted debug support

2015-06-01 Thread Will Deacon
Hi Alex, On Fri, May 29, 2015 at 10:30:26AM +0100, Alex Bennée wrote: This adds support for userspace to control the HW debug registers for guest debug. In the debug ioctl we copy the IMPDEF defined number of registers into a new register set called host_debug_state. There is now a new vcpu

[RFC PATCH v5 16/30] bpf tools: Create eBPF maps defined in an object file

2015-06-01 Thread Wang Nan
This patch creates maps based on 'map' section in object file using bpf_create_map(), and stores the fds into an array in 'struct bpf_object'. Previous patches parse ELF object file and collecte required data, but doesn't play with kernel. They belong to 'opening' phase. This patch is the first

[RFC PATCH v5 10/30] bpf tools: Collect map definitions from 'maps' section

2015-06-01 Thread Wang Nan
If maps are used by eBPF programs, corresponding object file(s) should contain a section named 'map'. Which contains map definitions. This patch copies the data of the whole section. Map data parsing should be acted just before map loading. Signed-off-by: Wang Nan wangn...@huawei.com ---

Re: A question about state machine function state_next()

2015-06-01 Thread Joerg Roedel
On Mon, Jun 01, 2015 at 06:19:26PM +0800, Baoquan He wrote: On 06/01/15 at 11:21am, Joerg Roedel wrote: Thanks for looking into this. Unfortunatly this somehow conflicts with my recent default-domain patch-set, which moves functionality into the IOMMU core and converts the AMD driver to

[PATCH-v4 01/10] target: Convert se_node_acl-device_list[] to RCU hlist

2015-06-01 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org This patch converts se_node_acl-device_list[] table for mappedluns to modern RCU hlist_head usage in order to support an arbitrary number of node_acl lun mappings. It converts transport_lookup_*_lun() fast-path code to use RCU read path primitives

[PATCH-v4 10/10] target: Drop left-over se_lun-lun_status

2015-06-01 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org Now that se_portal_group-tpg_lun_hlist is a RCU protected hlist, go ahead and drop the left-over lun-lun_status usage. Reported-by: Christoph Hellwig h...@lst.de Reviewed-by: Hannes Reinecke h...@suse.de Signed-off-by: Nicholas Bellinger

[PATCH-v4 02/10] target/pr: Use atomic bitop for se_dev_entry-deve_flags reservation check

2015-06-01 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org This patch converts the core_scsi3_pr_seq_non_holder() check for non reservation holding registrations to use an atomic bitop in -deve_flags to determine if a registration is currently active. It also includes associated a set_bit() in

[PATCH-v4 07/10] target: Convert core_tpg_deregister to use list splice

2015-06-01 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org This patch converts core_tpg_deregister() to perform a list splice for any remaining dynamically generated se_node_acls attached to se_tpg, before calling kfree(nacl) to free memory. Reviewed-by: Hannes Reinecke h...@suse.de Cc: Christoph Hellwig

[PATCH-v4 09/10] target: Only reset specific dynamic entries during lun_group creation

2015-06-01 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org This patch changes core_tpg_add_node_to_devs() to avoid unnecessarly resetting every se_dev_entry in se_node_acl-tpg_lun_hlist when the operation is driven by an explicit configfs se_lun-lun_group creation via core_dev_add_lun() to only update a

[Patch v3 30/36] net/mlx4: Cache irq_desc-affinity instead of irq_desc

2015-06-01 Thread Jiang Liu
The field 'affinity' in irq_desc won't change once the irq_desc data structure is created. So cache irq_desc-affinity instead of irq_desc. This also helps to hide struct irq_desc from device drivers. Signed-off-by: Jiang Liu jiang@linux.intel.com ---

[PATCH-v4 03/10] target/pr: Change alloc_registration to avoid pr_reg_tg_pt_lun

2015-06-01 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org This patch changes __core_scsi3_do_alloc_registration() code to drop pr_reg-pr_reg_tg_pt_lun pointer usage in favor of a new pr_reg RPTI + existing pr_reg-pr_aptpl_target_lun used by APTPL metadata logic. It also includes changes to REGISTER,

[PATCH-v4 00/10] target: se_node_acl + se_lun RCU conversions

2015-06-01 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org Hi all, Here is -v4 series for converting LIO target se_node_acl + se_lun mapping tables from fixed size arrays to dynamic RCU (read-copy-update) hlist_heads. This turns fast-path I/O into a lock-less RCU reader using existing percpu based

Re: [PATCH 1/2] dmaengine: Move icg helpers to global header

2015-06-01 Thread Ludovic Desroches
On Wed, May 27, 2015 at 04:01:52PM +0200, Maxime Ripard wrote: Now that we can have ICGs set for both the source and destination (using the icg field of struct data_chunk) or for only the source or the destination (using the dst_icg or src_icg respectively), and that these fields can be

[PATCH-v4 05/10] target: Convert se_portal_group-tpg_lun_list[] to RCU hlist

2015-06-01 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org This patch converts the fixed size se_portal_group-tpg_lun_list[] to use modern RCU with hlist_head in order to support an arbitary number of se_lun ports per target endpoint. It includes dropping core_tpg_alloc_lun() from core_dev_add_lun(), and

[PATCH-v4 08/10] target: Drop unused se_lun-lun_acl_list

2015-06-01 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org Reviewed-by: Hannes Reinecke h...@suse.de Cc: Christoph Hellwig h...@lst.de Cc: Sagi Grimberg sa...@mellanox.com Signed-off-by: Nicholas Bellinger n...@linux-iscsi.org --- drivers/target/target_core_device.c | 15 ---

[PATCH-v4 06/10] target: Convert se_tpg-acl_node_lock to -acl_node_mutex

2015-06-01 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org This patch converts se_tpg-acl_node_lock to struct mutex, so that -acl_node_acl walkers in core_clear_lun_from_tpg() can block when calling core_disable_device_list_for_node(). It also updates core_dev_add_lun() to hold -acl_node_mutex when calling

[PATCH-v4 04/10] target/pr: cleanup core_scsi3_pr_seq_non_holder

2015-06-01 Thread Nicholas A. Bellinger
From: Christoph Hellwig h...@lst.de Clean up the mess of registered variables, and pass the isid mismatch flag explicitly instead of overloading the registration type. Signed-off-by: Christoph Hellwig h...@lst.de Reviewed-by: Hannes Reinecke h...@suse.de Signed-off-by: Nicholas Bellinger

Re: linux-next: build warnings after merge of the staging tree

2015-06-01 Thread Stephen Rothwell
Hi Greg, On Fri, 29 May 2015 20:40:02 +1000 Stephen Rothwell s...@canb.auug.org.au wrote: After merging the staging tree, today's linux-next build (x86_64 allmodconfig) produced a large number of warnings in drivers/staging/wilc1000. Since there are so many warnings, I have disabled the

Re: [PATCH v6 2/3] ARM: bcm2835: Add the Raspberry Pi firmware driver

2015-06-01 Thread Paul Bolle
On Fri, 2015-05-29 at 12:42 -0700, Eric Anholt wrote: This gives us a function for making mailbox property channel requests of the firmware, which is most notable in that it will let us get and set clock rates. v2: Drop power-domains stuff for now since we don't have the driver core

Re: [PATCH 1/3] i2c: at91: add support for new alternative command mode

2015-06-01 Thread Ludovic Desroches
Hi Cyrille, Some remarks, questions below. On Fri, May 29, 2015 at 03:50:08PM +0200, Cyrille Pitchen wrote: The alternative command mode was introduced to simplify the transmission of STOP conditions and to solve timing and latency issues around them. This mode relies on a new register, the

[RFC][PATCH] regmap: Add reg_sequence for use with multi_reg_write / register_patch

2015-06-01 Thread Nariman Poushin
Support write sequences / patches with specified delays (in microseconds) after some (or all) writes. Logically separate reg_default from the new reg_sequence structure (which has an additional delay_us member) as the reg_default tables can run in to the thousands (for modern devices) and the

Re: A question about state machine function state_next()

2015-06-01 Thread Joerg Roedel
Hi Baoquan, On Mon, Jun 01, 2015 at 05:09:02PM +0800, Baoquan He wrote: Then I am wondering how amd_iommu_dma_ops is assigned. Maybe I need check all functions more clearly. The AMD IOMMU driver only uses per-device dma_ops. They are assigned to each device in device_dma_ops_init() at boot

Re: [PATCH] pinctrl: cherryview: Do not mask all interrupts on probe

2015-06-01 Thread Mika Westerberg
On Fri, May 22, 2015 at 10:56:08AM +0300, Mika Westerberg wrote: BIOS/platform may use some of the pins by themselves, such as providing SCI (System Control Interrupt) from the embedded controller. The driver masks all interrupts at probe time which prevents those pins from triggering

Re: [PATCH 2/3] i2c: at91: print hardware version

2015-06-01 Thread Ludovic Desroches
On Fri, May 29, 2015 at 03:50:09PM +0200, Cyrille Pitchen wrote: The probe() function now prints the hardware version of the I2C controller Signed-off-by: Cyrille Pitchen cyrille.pitc...@atmel.com Acked-by: Ludovic Desroches ludovic.desroc...@atmel.com --- drivers/i2c/busses/i2c-at91.c | 4

Re: [PATCH 05/98] exynos_drm.h: use __u64 from linux/types.h

2015-06-01 Thread Russell King - ARM Linux
On Mon, Jun 01, 2015 at 11:08:21AM +0200, Christian König wrote: Yeah, completely agree with Linus on the visibility problem and that's exactly the reason why we don't include stdint.h in the kernel header and expect userspace to define the ISO types somewhere. But using the types from

Re: [PATCH 14/15] KVM: MTRR: do not map huage page for non-consistent range

2015-06-01 Thread Paolo Bonzini
On 01/06/2015 11:36, Paolo Bonzini wrote: Does this have a performance impact on shadow? Perhaps we could cache in struct kvm_arch_memory_slot whether the memslot is covered by MTRRs? Nevermind, patch 15 answers my question. Paolo -- To unsubscribe from this list: send the line unsubscribe

[RFC PATCH v5 09/30] bpf tools: Collect version and license from ELF sections

2015-06-01 Thread Wang Nan
Expand bpf_obj_elf_collect() to collect license and kernel version information in eBPF object file. eBPF object file should have a section named 'license', which contains a string. It should also have a section named 'version', contains a u32 LINUX_VERSION_CODE. bpf_obj_validate() is introduced

[RFC PATCH v5 29/30] perf tools: Add bpf_fd field to evsel and config it

2015-06-01 Thread Wang Nan
This patch adds a bpf_fd field to 'struct evsel' then introduces method to config it. In bpf-loader, a bpf__for_each_program() function is added. Which calls the callback function for each eBPF programs with their event structure and file descriptors. In evlist.c, perf_evlist__add_bpf() is added

[RFC PATCH v5 30/30] perf tools: Attach eBPF program to perf event

2015-06-01 Thread Wang Nan
In this patch PERF_EVENT_IOC_SET_BPF ioctl is used to attach eBPF program to a newly created perf event. The file descriptor of the eBPF program is passed to perf record using previous patches, and stored into evsel-bpf_fd. It is possible that different perf event are created for one kprobe

[patch 2/2] w1: unlock correct lock on error in w1_seq_show()

2015-06-01 Thread Dan Carpenter
Smatch complains that we don't unlock master-mutex on this error path. It looks like it is a typo and we unlock -bus_mutext where -mutex was intended. Fixes: d9411e57dc7f ('w1: Add support for DS28EA00 sequence to w1-therm') Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git

[RFC PATCH v5 03/30] tools build: Add feature check for eBPF API

2015-06-01 Thread Wang Nan
In this patch, eBPF API is checked by compiling a c source file which uses fields in bpf_attr which will be used by libbpf. Signed-off-by: Wang Nan wangn...@huawei.com --- tools/build/Makefile.feature | 6 -- tools/build/feature/Makefile | 6 +- tools/build/feature/test-bpf.c | 18

[RFC PATCH v5 27/30] perf record: Probe at kprobe points

2015-06-01 Thread Wang Nan
In this patch, kprobe points are created using add_perf_probe_events. Since all events are already grouped together in an array, calling add_perf_probe_events() once creates all of them. probe_conf.max_probes is set to MAX_PROBES to support glob matching. Signed-off-by: Wang Nan

[RFC PATCH v5 17/30] bpf tools: Relocate eBPF programs

2015-06-01 Thread Wang Nan
If an eBPF program accesses a map, LLVM generates a load instruction which loads an absolute address into a register, like this: ld_64 r1, MCOperand Expr:(mymap) ... call2 That ld_64 instruction will be recorded in relocation section. To enable the usage of that map, relocation must

[RFC PATCH v5 02/30] perf tools: Move linux/{list.h,poison.h} to tools/include

2015-06-01 Thread Wang Nan
This patch moves list.h from tools/perf/util/include/linux/list.h to tools/include/linux/list.h to enable other libraries use macros in it, like libbpf which will be introduced by further patches. Since list.h depend on poison.h, poison.h is also moved. Both file use relative path, so one '..' is

[RFC PATCH v5 14/30] bpf tools: Record map accessing instructions for each program

2015-06-01 Thread Wang Nan
This patch records the indics of instructions which are needed to be relocated. Those information are saved in 'reloc_desc' field in 'struct bpf_program'. In loading phase (this patch takes effect in opening phase), the collected instructions will be replaced by map loading instructions. Since we

Re: [PATCH 3/6] hv:scsi:Untangle the storage protocol negotiation from the vmbus protocol negotiation.

2015-06-01 Thread Dan Carpenter
On Fri, May 29, 2015 at 01:29:16PM -0700, K. Y. Srinivasan wrote: - if (vstor_packet-operation != VSTOR_OPERATION_COMPLETE_IO || - vstor_packet-status != 0) + if (vstor_packet-status != 0) { + ret = -EINVAL; goto cleanup; + } There is not

linux-next: manual merge of the target-updates tree with Linus' tree

2015-06-01 Thread Stephen Rothwell
Hi Nicholas, Today's linux-next merge of the target-updates tree got a conflict in drivers/target/target_core_device.c between commit a3541703ebbf (target: Use a PASSTHROUGH flag instead of transport_types) from Linus' tree and commit 1362adc724c4 (target: Subsume se_port +

Re: [PATCH 1/6] scsi: storvsc: Rather than look for sets of specific protocol versions, make decisions based on ranges.

2015-06-01 Thread Dan Carpenter
On Fri, May 29, 2015 at 01:29:14PM -0700, K. Y. Srinivasan wrote: From: keith.ma...@microsoft.com keith.ma...@microsoft.com Keith's name is wrong. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: Device Tree at Plumbers, early registration ends Friday

2015-06-01 Thread Frank Rowand
On 5/30/2015 2:36 PM, Frank Rowand wrote: The Linux Plumbers Device Tree track was accepted by the Plumbers conference. The above is a pasto, ycch. The track is, of course: Device Tree Tools, Validation, and Troubleshooting The DEADLINE for EARLY BIRD REGISTRATION at a reduced price

[Patch v3 00/36] Split struct irq_data into common part and per-chip part

2015-06-01 Thread Jiang Liu
Hi all, Now the irq core supports hierarchy irq and stacked irqchips, so there may be multiple irq_datas associated with the same irq. But some fields in struct irq_data are per-irq instance and duplicating those fields into multiple irq_data may cause troubles. So this patch

[Patch v3 27/36] x86, irq: Use access helper irq_data_get_affinity_mask()

2015-06-01 Thread Jiang Liu
Use access helper irq_data_get_affinity_mask() to hide implementation details of struct irq_desc. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/x86/kernel/apic/io_apic.c |2 +- arch/x86/kernel/apic/vector.c|5 ++--- arch/x86/kernel/irq.c|5 +++--

[Patch v3 23/36] parisc, irq: Use access helper irq_data_get_affinity_mask()

2015-06-01 Thread Jiang Liu
Use access helper irq_data_get_affinity_mask() to hide implementation details of struct irq_desc. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/parisc/kernel/irq.c | 12 ++-- drivers/parisc/iosapic.c |2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git

[Patch v3 29/36] irqchip, irq: Use access helper irq_data_get_affinity_mask()

2015-06-01 Thread Jiang Liu
Use access helper irq_data_get_affinity_mask() to hide implementation details of struct irq_desc. Signed-off-by: Jiang Liu jiang@linux.intel.com --- drivers/irqchip/irq-mips-gic.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-mips-gic.c

[Patch v3 24/36] powerpc, irq: Use access helper irq_data_get_affinity_mask()

2015-06-01 Thread Jiang Liu
Use access helper irq_data_get_affinity_mask() to hide implementation details of struct irq_desc. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/powerpc/kernel/irq.c |2 +- arch/powerpc/sysdev/xics/ics-opal.c |2 +- arch/powerpc/sysdev/xics/ics-rtas.c |2 +- 3

[Patch v3 28/36] xtensa, irq: Use access helper irq_data_get_affinity_mask()

2015-06-01 Thread Jiang Liu
Use access helper irq_data_get_affinity_mask() to hide implementation details of struct irq_desc. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/xtensa/kernel/irq.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/xtensa/kernel/irq.c

[Patch v3 22/36] mn10300, irq: Use access helper irq_data_get_affinity_mask()

2015-06-01 Thread Jiang Liu
Use access helper irq_data_get_affinity_mask() to hide implementation details of struct irq_desc. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/mn10300/kernel/cevt-mn10300.c |2 +- arch/mn10300/kernel/irq.c | 13 +++-- 2 files changed, 8 insertions(+), 7

[Patch v3 26/36] sparc, irq: Use access helper irq_data_get_affinity_mask()

2015-06-01 Thread Jiang Liu
Use access helper irq_data_get_affinity_mask() to hide implementation details of struct irq_desc. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/sparc/kernel/irq_64.c | 12 +++- arch/sparc/kernel/leon_kernel.c |6 +++--- 2 files changed, 10 insertions(+), 8

[Patch v3 25/36] sh, irq: Use access helper irq_data_get_affinity_mask()

2015-06-01 Thread Jiang Liu
Use access helper irq_data_get_affinity_mask() to hide implementation details of struct irq_desc. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/sh/kernel/irq.c |7 --- drivers/sh/intc/chip.c |6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git

[PATCH-v3 1/4] target: Subsume se_port + t10_alua_tg_pt_gp_member into se_lun

2015-06-01 Thread Nicholas A. Bellinger
From: Christoph Hellwig h...@lst.de This patch eliminates all se_port + t10_alua_tg_pt_gp_member usage, and converts current users to direct se_lun pointer dereference. This includes the removal of core_export_port(), core_release_port() core_dev_export() and core_dev_unexport(). Along with

[PATCH-v3 2/4] target: Drop lun_sep_lock for se_lun-lun_se_dev RCU usage

2015-06-01 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org With se_port and t10_alua_tg_pt_gp_member being absored into se_lun, there is no need for an extra lock to protect se_lun-lun_se_dev assignment. This patch also converts backend drivers to use call_rcu() release to allow any se_device readers to

[PATCH-v3 3/4] target: Drop se_lun-lun_active for existing percpu lun_ref

2015-06-01 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org With se_port_t and t10_alua_tg_pt_gp_member being absored into se_lun, there is no need for an extra atomic_t based reference count for PR ALL_TG_PT=1 and ALUA access state transition. Go ahead and use the existing percpu se_lun-lun_ref instead, and

[PATCH-v3 4/4] target: Drop unnecessary core_tpg_register TFO parameter

2015-06-01 Thread Nicholas A. Bellinger
From: Nicholas Bellinger n...@linux-iscsi.org This patch drops unnecessary target_core_fabric_ops parameter usage for core_tpg_register() during fabric driver TFO-fabric_make_tpg() se_portal_group creation callback execution. Instead, use the existing se_wwn-wwn_tf-tf_ops pointer to ensure

Re: sched_setscheduler() vs idle_balance() race

2015-06-01 Thread Peter Zijlstra
On Sun, May 31, 2015 at 08:39:04AM +0200, Mike Galbraith wrote: I don't see why we can't just say no in can_migrate_task() if -pi_lock is held. I suppose we could do that; what I really want to avoid is also requiring pi_lock for scheduling. The down-side of looking at pi_lock for migration is

Re: [PATCH] drivers: xen-blkback: delay pending_req allocation to connect_ring

2015-06-01 Thread Bob Liu
On 06/01/2015 04:36 PM, Roger Pau Monné wrote: El 26/05/15 a les 2.06, Bob Liu ha escrit: In connect_ring, we can know exactly how many pages are used for the shared ring and also whether feature-persistent is enabled, delay pending_req allocation here so that we won't waste too much memory.

Re: [PATCH 05/98] exynos_drm.h: use __u64 from linux/types.h

2015-06-01 Thread Frans Klaver
On Mon, Jun 1, 2015 at 11:08 AM, Christian König christian.koe...@amd.com wrote: Yeah, completely agree with Linus on the visibility problem and that's exactly the reason why we don't include stdint.h in the kernel header and expect userspace to define the ISO types somewhere. But using the

Re: [PATCH v2] kdb: use kstrto* instead of simple_strto

2015-06-01 Thread Daniel Thompson
On 31/05/15 18:59, Filip Ayazi wrote: Replace simple_strto with appropriate kstrto functions as recommended by checkpatch, change pid, sig types to unsigned int, int respectively. A changelog describing the changes are in v2 would be nice here. Signed-off-by: Filip Ayazi

Re: [PATCH 10/15] KVM: MTRR: sort variable MTRRs

2015-06-01 Thread Paolo Bonzini
On 30/05/2015 12:59, Xiao Guangrong wrote: Sort all valid variable MTRRs based on its base address, it will help us to check a range to see if it's fully contained in variable MTRRs Signed-off-by: Xiao Guangrong guangrong.x...@linux.intel.com --- arch/x86/include/asm/kvm_host.h | 3 +++

Re: [PATCH] Staging: comedi: ni_at_a2150: remove extra spaces before tab

2015-06-01 Thread Ian Abbott
On 01/06/15 05:14, Joglekar Tejas wrote: This patch fix warning given by checkpatch.pl abouts spaces given before tab Signed-off-by: Joglekar Tejas joglekarte...@gmail.com --- drivers/staging/comedi/drivers/ni_at_a2150.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: linux-next: manual merge of the arm-perf tree with the tree

2015-06-01 Thread Will Deacon
On Mon, Jun 01, 2015 at 01:12:53AM +0100, Stephen Rothwell wrote: Hi Will, Hi Stephen, Today's linux-next merge of the arm-perf tree got a conflict in arch/arm/kernel/perf_event_cpu.c between commit 338d9dd3e2ae (ARM: 8351/1: perf: don't warn about missing interrupt-affinity property for

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

2015-06-01 Thread Borislav Petkov
On Mon, Jun 01, 2015 at 05:07:42PM +1000, Stephen Rothwell wrote: Hi Borislav, After merging the edac-amd tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/edac/xgene_edac.c: In function 'xgene_edac_pmd_l2c_version1': drivers/edac/xgene_edac.c:792:2: error:

[PATCH v3] Add TI CDCE925 I2C controlled clock synthesizer driver

2015-06-01 Thread Mike Looijmans
This driver supports the TI CDCE925 programmable clock synthesizer. The chip contains two PLLs with spread-spectrum clocking support and five output dividers. The driver only supports the following setup, and uses a fixed setting for the output muxes: Y1 is derived from the input clock Y2 and

Re: Build regressions/improvements in v4.1-rc6

2015-06-01 Thread Geert Uytterhoeven
On Mon, Jun 1, 2015 at 12:09 PM, Geert Uytterhoeven ge...@linux-m68k.org wrote: JFYI, when comparing v4.1-rc6[1] to v4.1-rc5[3], the summaries are: - build errors: +8/-52 + /home/kisskb/slave/src/drivers/media/i2c/ov2659.c: error: 'struct v4l2_subdev_fh' has no member named 'pad': =

linux-next: manual merge of the target-updates tree with Linus' tree

2015-06-01 Thread Stephen Rothwell
Hi Nicholas, Today's linux-next merge of the target-updates tree got a conflict in drivers/target/target_core_configfs.c between commit d588cf8f618d (target: Fix se_tpg_tfo-tf_subsys regression + remove tf_subsystem) from Linus' tree and commits c6eec4d58f5d (target: remove tf_subsystem pointers)

[Patch v3 33/36] genirq: Use helper function to access irq_data-msi_desc

2015-06-01 Thread Jiang Liu
Use irq_data access helper to access irq_data-msi_desc, so we could move msi_desc from struct irq_data into struct irq_common_data later. Signed-off-by: Jiang Liu jiang@linux.intel.com --- arch/ia64/kernel/msi_ia64.c |2 +- arch/ia64/sn/kernel/msi_sn.c|2 +-

[Patch v3 36/36] genirq: Optimize irq_data_to_desc() to avoid irq_to_desc() lookup

2015-06-01 Thread Jiang Liu
Optimize irq_data_to_desc() to avoid irq_to_desc() lookup. Signed-off-by: Jiang Liu jiang@linux.intel.com --- include/linux/irqdesc.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/irqdesc.h b/include/linux/irqdesc.h index 4dfa46b99a14..749755bffbc1

[Patch v3 35/36] genirq: Pass irq_data to helper function __irq_set_chip_handler_name_locked()

2015-06-01 Thread Jiang Liu
For most cases, callers pass irq_data-irq to helper function __irq_set_chip_handler_name_locked() and __irq_set_chip_handler_name_locked() looks up irq_data again by calling irq_get_irq_data(irq_data-irq). So pass irq_data directly instead of irq_data-irq to __irq_set_chip_handler_name_locked().

[Patch v3 31/36] genirq: Move field 'affinity' from struct irq_data into struct irq_common_data

2015-06-01 Thread Jiang Liu
Irq affinity mask is per-irq instead of per irqchip, so move it into struct irq_common_data. Signed-off-by: Jiang Liu jiang@linux.intel.com --- include/linux/irq.h | 12 ++-- kernel/irq/irqdesc.c |9 + kernel/irq/manage.c | 12 ++-- kernel/irq/proc.c|

Re: [RFC PATCH v4 17/29] bpf tools: Relocate eBPF programs

2015-06-01 Thread Wangnan (F)
On 2015/6/1 13:32, Namhyung Kim wrote: On Wed, May 27, 2015 at 05:19:52AM +, Wang Nan wrote: If an eBPF program access a map, LLVM generates a relocated load instruction. To enable the usage of that map, relocation must be done by replacing original instructions by map loading

[Patch v3 32/36] genirq: Rename irq_data_get_msi() as irq_data_get_msi_desc()

2015-06-01 Thread Jiang Liu
Rename irq_data_get_msi() as irq_data_get_msi_desc() to keep consistency with other irq_data access helpers. Signed-off-by: Jiang Liu jiang@linux.intel.com Acked-by: Bjorn Helgaas bhelg...@google.com --- drivers/pci/host/pcie-designware.c |2 +- drivers/pci/msi.c |2

[Patch v3 34/36] genirq: Move field 'msi_desc' from struct irq_data into struct irq_common_data

2015-06-01 Thread Jiang Liu
MSI descriptors are per-irq instead of per irqchip, so move it into struct irq_common_data. Signed-off-by: Jiang Liu jiang@linux.intel.com --- include/linux/irq.h |8 include/linux/irqdesc.h |2 +- kernel/irq/chip.c |2 +- kernel/irq/irqdesc.c|2 +- 4

Re: [PATCH 01/20] leds: implement LED_BRIGHTNESS_FAST flag

2015-06-01 Thread Jacek Anaszewski
On 05/20/2015 05:19 PM, Stas Sergeev wrote: Add LED_BRIGHTNESS_FAST flag. This flag is used to mark the led drivers that do not use waiting operations when setting led brightness and do not use work-queue in .brightness_set op. When this flag is not set, disallow the blink periods smaller than

Re: [PATCH] drivers: xen-blkfront: blkif_recover: recheck feature-persistent

2015-06-01 Thread Bob Liu
On 06/01/2015 03:50 PM, Roger Pau Monné wrote: El 26/05/15 a les 2.11, Bob Liu ha escrit: When migrate from !feature-persistent host to feature-persistent host, domU still think new host/backend don't support persistent. Dmesg like: backed has not unmapped grant: 839 backed has not unmapped

Re: [PATCH v4 3/17] video: fbdev: gbefb: use arch_phys_wc_add() and devm_ioremap_wc()

2015-06-01 Thread Ingo Molnar
* Luis R. Rodriguez mcg...@suse.com wrote: On Fri, May 29, 2015 at 08:41:44AM +0200, Ingo Molnar wrote: * Luis R. Rodriguez mcg...@do-not-panic.com wrote: + gbe_mem = devm_ioremap_wc(p_dev-dev, gbe_mem_phys, + gbe_mem_size); +

Re: [PATCH 1/4]:Add mbigen driver to support mbigen interrupt controller

2015-06-01 Thread Paul Bolle
On Mon, 2015-06-01 at 09:50 +0100, Marc Zyngier wrote: On 30/05/15 04:19, majun (F) wrote: This patch contains the mbigen device driver. To support Mbigen device, irq-mbigen.c and mbi.h are added. As a MSI interrupt controller, the mbigen is used as a child domain of MSI domain just

Re: [PATCH 14/15] KVM: MTRR: do not map huage page for non-consistent range

2015-06-01 Thread Paolo Bonzini
On 30/05/2015 12:59, Xiao Guangrong wrote: Currently guest MTRR is completely prohibited if cache snoop is supported on IOMMU (!noncoherent_dma) and host does the emulation based on the knowledge from host side, however, host side is not the good point to know what the purpose of guest is. A

Fwd: [RFC] make kthread_worker_fn to be freezable

2015-06-01 Thread yalin wang
I notice that kthread_worker_fn() call try_to_freeze() function, but it don't make itself to be a freezable kthread, kthread default behavior is not freezable, we should change it if want try_to_freeze() work correctly. Signed-off-by: yalin wang yalin.wang2...@gmail.com --- kernel/kthread.c | 1

Re: [PATCH 04/10] perf, tools: Handle header line in mapfile

2015-06-01 Thread Jiri Olsa
On Fri, May 29, 2015 at 10:49:27PM -0700, Andi Kleen wrote: On Fri, May 29, 2015 at 11:13:15AM +0200, Jiri Olsa wrote: On Thu, May 28, 2015 at 10:45:06PM -0700, Sukadev Bhattiprolu wrote: Jiri Olsa [jo...@redhat.com] wrote: |if (line[0] == '#' || line[0] == '\n') |

Re: [PATCH 4/4]:dt-binding:Documents the mbigen bindings

2015-06-01 Thread Mark Rutland
On Sat, May 30, 2015 at 04:19:18AM +0100, majun (F) wrote: Add the mbigen msi interrupt controller bindings document Signed-off-by: Ma Jun majun...@huawei.com --- Documentation/devicetree/bindings/arm/mbigen.txt | 51 ++ 1 files changed, 51 insertions(+), 0

[RFC PATCH v5 06/30] bpf tools: Open eBPF object file and do basic validation

2015-06-01 Thread Wang Nan
This patch defines basic interface of libbpf. 'struct bpf_object' will be the handler of each object file. Its internal structure is hide to user. eBPF object files are compiled by LLVM as ELF format. In this patch, libelf is used to open those files, read EHDR and do basic validation according to

[RFC PATCH v5 07/30] bpf tools: Check endianess and make libbpf fail early

2015-06-01 Thread Wang Nan
Check endianess according to EHDR. Code is taken from tools/perf/util/symbol-elf.c. Libbpf doesn't magically convert missmatched endianess. See discussion on https://lkml.org/lkml/2015/5/18/650 that, even if we swap eBPF instructions to correct byte order, we are unable to deal with endianess in

[PATCH] vfs: Minor documentation fix

2015-06-01 Thread Andreas Grünbacher
The check_acl inode operation and the IPERM_FLAG_RCU flag are long gone; update the documentation. Signed-off-by: Andreas Gruenbacher agrue...@redhat.com --- Documentation/filesystems/porting | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [PATCH 0/5] Remove s390 sw-emulated hugepages and cleanup

2015-06-01 Thread Christian Borntraeger
Am 28.05.2015 um 13:52 schrieb Dominik Dingel: Hi everyone, there is a potential bug with KVM and hugetlbfs if the hardware does not support hugepages (EDAT1). We fix this by making EDAT1 a hard requirement for hugepages and therefore removing and simplifying code. The cleanup itself is

Re: [PATCH kernel v11 25/34] powerpc/powernv/ioda2: Introduce helpers to allocate TCE pages

2015-06-01 Thread David Gibson
On Fri, May 29, 2015 at 06:44:49PM +1000, Alexey Kardashevskiy wrote: This is a part of moving TCE table allocation into an iommu_ops callback to support multiple IOMMU groups per one VFIO container. This moves the code which allocates the actual TCE tables to helpers:

Re: [RFC PATCH] cpufreq/hotplug: Fix cpu-hotplug cpufreq race conditions

2015-06-01 Thread Preeti U Murthy
On 06/01/2015 12:49 PM, Viresh Kumar wrote: On 01-06-15, 01:40, Preeti U Murthy wrote: I have to mention that this is somewhat inspired by: https://git.linaro.org/people/viresh.kumar/linux.git/commit/1e37f1d6ae12f5896e4e216f986762c3050129a5 and I was waiting to finish some core-changes

Re: [PATCH] drivers: xen-blkback: delay pending_req allocation to connect_ring

2015-06-01 Thread Roger Pau Monné
El 26/05/15 a les 2.06, Bob Liu ha escrit: In connect_ring, we can know exactly how many pages are used for the shared ring and also whether feature-persistent is enabled, delay pending_req allocation here so that we won't waste too much memory. I would very much prefer for this to be a

Re: [PATCH 05/98] exynos_drm.h: use __u64 from linux/types.h

2015-06-01 Thread Christian König
On 30.05.2015 18:46, Russell King - ARM Linux wrote: On Sat, May 30, 2015 at 05:37:57PM +0200, Mikko Rapeli wrote: Fixes userspace compilation error: drm/exynos_drm.h:30:2: error: unknown type name ‘uint64_t’ Signed-off-by: Mikko Rapeli mikko.rap...@iki.fi This is another thing which we need

Re: [PATCH 05/15] KVM: MTRR: clean up mtrr default type

2015-06-01 Thread Paolo Bonzini
On 30/05/2015 12:59, Xiao Guangrong wrote: Use union definition to avoid the decode/code workload and drop all the hard code Signed-off-by: Xiao Guangrong guangrong.x...@linux.intel.com --- arch/x86/include/asm/kvm_host.h | 12 ++-- arch/x86/kvm/mtrr.c | 19

Re: [PATCH v2 4/4] arch, x86: cache management apis for persistent memory

2015-06-01 Thread Paul Bolle
On Sat, 2015-05-30 at 14:59 -0400, Dan Williams wrote: --- a/lib/Kconfig +++ b/lib/Kconfig +config ARCH_HAS_PMEM_API + def_bool n 'n' is the default anyway, so I think config ARCH_HAS_PMEM_API bool should work just as well. Paul Bolle -- To unsubscribe from this list: send

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