[PATCH linux 3/8] x86/xen: use xen_vcpu_id mapping for HYPERVISOR_vcpu_op

2016-06-28 Thread Vitaly Kuznetsov
HYPERVISOR_vcpu_op passes Linux's idea of vCPU id as a parameter while Xen's idea is expected. In some cases these ideas diverge so we need to do remapping. There is an issue, however. PV guests do VCPUOP_is_up very early (see xen_fill_possible_map() and xen_filter_cpu_maps()) when we don't have p

[RFC PATCH] sch_tbf: avoid silent fallback to noop_qdisc (was Re: Deleting child qdisc doesn't reset parent to default qdisc?)

2016-06-28 Thread Jiri Kosina
On Fri, 15 Apr 2016, Eric Dumazet wrote: > Then you need to save the initial qdisc (bfifo for TBF) in a special > place, to make sure the delete operation is guaranteed to succeed. > > Or fail the delete if the bfifo can not be allocated. > > I can tell that determinism if far more interesting t

[PATCH linux 0/8] xen: pvhvm: support bootup on secondary vCPUs

2016-06-28 Thread Vitaly Kuznetsov
It may happen that Xen's and Linux's ideas of vCPU id diverge. In particular, when we crash on a secondary vCPU we may want to do kdump and unlike plain kexec where we do migrate_to_reboot_cpu() we try booting on the vCPU which crashed. This doesn't work very well for PVHVM guests as we have a numb

[PATCH linux 5/8] xen/events: use xen_vcpu_id mapping in events_base

2016-06-28 Thread Vitaly Kuznetsov
EVTCHNOP_bind_ipi and EVTCHNOP_bind_virq pass vCPU id as a parameter and Xen's idea of vCPU id should be used. Use the newly introduced xen_vcpu_id mapping to convert it from Linux's id. Signed-off-by: Vitaly Kuznetsov --- drivers/xen/events/events_base.c | 10 +- 1 file changed, 5 inser

Re: [QUESTION] Is there a better way to get ftrace dump on guest?

2016-06-28 Thread Rabin Vincent
On Tue, Jun 28, 2016 at 03:33:18PM +0900, Namhyung Kim wrote: > On Tue, Jun 28, 2016 at 3:25 PM, Namhyung Kim wrote: > > I'm running some guest machines for kernel development. For debugging > > purpose, I use lots of trace_printk() since it's faster than normal > > printk(). When kernel crash h

[PATCH 19/23] [AARCH64] delouse input arguments in system functions

2016-06-28 Thread Yury Norov
This patch introduces DELOUSE() macro which does nothing for lp64, and clears top bits of registers holding inputs, where needed. AARCH64/ILP32 needs it because top bits condition is undefined according to ABI. 'Delouse' term comes from Linux kernel where similar macro does the same for compat sy

[PATCH 22/23] off_t: fix register pair calculation for 64-bit case

2016-06-28 Thread Yury Norov
There are 3 syscall wrappers under sysdeps/unix/sysv/linux that calculate register pair for off_t like this: __LONG_LONG_PAIR (offset >> 31, offset) While it works for 32-bit off_t, new 32-bit APIs that use 64-bit off_t will be broken with it. This patch redirects affected syscalls to thei

Re: [PATCH v2] gpu: host1x: hw: intr_hw: Remove create_workqueue

2016-06-28 Thread Bhaktipriya Shridhar
Ping! Thanks, Bhaktipriya On Mon, Jun 20, 2016 at 8:41 PM, Tejun Heo wrote: > On Sat, Jun 18, 2016 at 02:36:32PM +0530, Bhaktipriya Shridhar wrote: >> System workqueues have been able to handle high level of concurrency >> for a long time now and there's no reason to use dedicated workqueues >>

[PATCH 23/23] [AARCH64] Take utmp{,x}.h from s390 port

2016-06-28 Thread Yury Norov
aarch64 and ilp32 has different size of time_t. So to have common layout for struct utmp and utmpx, corresponding headers are taken from s390 port. This is temporary solution. Proper solution shoud come from generic code and also take care on endianness. Signed-off-by: Yury Norov --- sysdeps/un

[PATCH 21/23] [AARCH64] Make __SIZEOF_SEM_T 16 for ILP32

2016-06-28 Thread Yury Norov
Signed-off-by: Yury Norov --- sysdeps/aarch64/nptl/bits/semaphore.h | 4 1 file changed, 4 insertions(+) diff --git a/sysdeps/aarch64/nptl/bits/semaphore.h b/sysdeps/aarch64/nptl/bits/semaphore.h index 3cc5b37..1d1389c 100644 --- a/sysdeps/aarch64/nptl/bits/semaphore.h +++ b/sysdeps/aarch6

[PATCH 18/23] [AARCH64] ILP32: support stat syscall family

2016-06-28 Thread Yury Norov
From: Yury Norov stat and statfs structures has their layouts identical to lp64 after changing off_t, ino_t etc sizes to 64-bit. It means we can pass it to kernel same way as lp64 does. Signed-off-by: Yury Norov --- sysdeps/unix/sysv/linux/aarch64/bits/stat.h| 195 +

[PATCH 20/23] [AARCH64] Fix ILP32 warning

2016-06-28 Thread Yury Norov
From: Andrew Pinski Signed-off-by: Yury Norov --- sysdeps/aarch64/jmpbuf-unwind.h | 2 +- sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h | 2 +- sysdeps/unix/sysv/linux/generic/brk.c| 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sysdeps/aar

Re: [PATCH v1 2/2] Mark functions with the __nocapture attribute

2016-06-28 Thread Joe Perches
On Tue, 2016-06-28 at 13:36 +0200, Emese Revfy wrote: > The nocapture gcc attribute can be on functions only. > The attribute takes one or more unsigned integer constants as parameters > that specify the function argument(s) of const char* type to initify. Perhaps this should be const * > diff --g

Re: [PATCH v4 5/5] usb: dwc3: rockchip: add devicetree bindings documentation

2016-06-28 Thread Heiko Stuebner
Hi William, Am Dienstag, 28. Juni 2016, 11:18:04 schrieb William Wu: > >> So about the usb3 controller clk management, I think it should contain > >> the following clk: > >> 1. aclk_usb3otg1 > >> 2. aclk_usb3otg0 > >> 3. aclk_usb3_grf > > > > correct, aclk_usb3otgX would then be the busclk for

[PATCH 10/23] [AARCH64] Detect ILP32 in configure scripts.

2016-06-28 Thread Yury Norov
From: Andrew Pinski This adds detecting of ILP32 to the configure scripts. Adding to preconfigure detection of ilp32 in preconfigure and then writing out the default-abi in configure. * sysdeps/aarch64/preconfigure: Detect ILP32 and set aarch64_config_abi to ilp32 for ilp32 and lp64 for lp64.

[PATCH 03/23] Add dynamic ILP32 AARCH64 relocations to elf.h

2016-06-28 Thread Yury Norov
From: Andrew Pinski elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY, R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT, R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD, R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL, R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define. Signed-off-by: Yu

[PATCH 12/23] [AARCH64] Add ILP32 to makefiles

2016-06-28 Thread Yury Norov
From: Andrew Pinski This patch adds ilp32 and ilp32_be as abi variants to the aarch64 linux makefile. * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-variants): Add ilp32 and ilp32_be. (abi-lp64-options): Add defining of LP64 and undef of ILP32 macros. (abi-lp64-condition): Check word size macro

[PATCH 08/23] [AARCH64] Use PTR_* in start.S

2016-06-28 Thread Yury Norov
From: Andrew Pinski To support ILP32 without much sources changes, this changes sysdeps/aarch64/start.S to use the PTR_* macros which was defined earlier. * sysdeps/aarch64/start.S: Include sysdep.h (_start): Use PTR_REG, PTR_SIZE macros. Signed-off-by: Yury Norov --- sysdeps/aarch64/start.S

[PATCH 09/23] [AARCH64] Use PTR_REG in getcontext.S.

2016-06-28 Thread Yury Norov
From: Andrew Pinski Just like the other patches, this patch allows for getcontext.S to be used between ILP32 and LP64. * sysdeps/unix/sysv/linux/aarch64/getcontext.S: Use PTR_REG when doing an add so wrapping of the pointer is correct for ILP32. Signed-off-by: Yury Norov --- sysdeps/unix/sysv

[PATCH 11/23] [AARCH64] Add ILP32 support to elf_machine_load_address.

2016-06-28 Thread Yury Norov
From: Andrew Pinski This adds ILP32 support to elf_machine_load_address. Since elf_machine_load_address depends on the static address being found without relocations, we need to use 16bit relocation which gets resolved at link time for ILP32. This is just like how the 32bit relocation gets resol

[PATCH 05/23] [AARCH64] Use PTR_REG in crti.S.

2016-06-28 Thread Yury Norov
From: Andrew Pinski call_weak_fn loads from a pointer, so use PTR_REG so the load is 32bits for ILP32. * sysdeps/aarch64/crti.S: Include sysdep.h (call_weak_fn): Use PTR_REG when loading from PREINIT_FUNCTION. AARCH64: Make RTLD_START paramatizable Make RTLD_START paramatizable for ILP32 and L

[PATCH 06/23] [AARCH64] Use PTR_REG/PTR_SIZE/PTR_SIZE_LOG in dl-tlsesc.S

2016-06-28 Thread Yury Norov
From: Andrew Pinski This converts dl-tlsdesc.S code over to use the new macros which allows for sharing between ILP32 and LP64 code. * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return): Use PTR_REG. (_dl_tlsdesc_dynamic) : Use PTR_REG, PTR_SIZE. (_dl_tlsdesc_resolve_hold) : Likewi

[PATCH 07/23] [AARCH64] Use PTR_* macros in dl-trampoline.S

2016-06-28 Thread Yury Norov
From: Andrew Pinski Use the PTR_* macros in dl-trampoline.S so it can be used for both ILP32 and LP64. Also add a comment about what was an magic number (the size of the rela relocation entries). * sysdeps/aarch64/dl-trampoline.S (ip0l): New define. (RELA_SIZE): New define. (_dl_runtime_resolve

[PATCH 04/23] [AARCH64] Add PTR_REG, PTR_LOG_SIZE, and PTR_SIZE. Use it in LDST_PCREL and LDST_GLOBAL.

2016-06-28 Thread Yury Norov
From: Andrew Pinski This patch adds a few extra macros which are useful for ILP32 and updates PTR_MANGLE and PTR_DEMANGLE to use the some of the new macros. * sysdeps/aarch64/sysdep.h (PTR_REG): New macro. (PTR_LOG_SIZE): New macro. (PTR_SIZE): New macro. (LDST_PCREL): Use arguments as register

[PATCH 02/23] [AARCH64] Add header guards to sysdep.h headers.

2016-06-28 Thread Yury Norov
From: Andrew Pinski sysdeps/aarch64/sysdep.h: Add header guards. Signed-off-by: Yury Norov --- sysdeps/aarch64/sysdep.h | 5 + 1 file changed, 5 insertions(+) diff --git a/sysdeps/aarch64/sysdep.h b/sysdeps/aarch64/sysdep.h index 6b728ec..594ab0b 100644 --- a/sysdeps/aarch64/sysdep.h +++

[RFC2 PATCH 00/23] ARM64: support ILP32

2016-06-28 Thread Yury Norov
This series enables aarch64 port with ilp32 mode. ABI details: - types are taken from AARCH32, next types turned to 64-bit, as modern requirement for new APIs tells: ino_t is u64 type off_t is s64 type blkcnt_t is s64 type fsblkcnt_t is u64 type

Re: [PATCH v4 3/4] perf: xgene: Add APM X-Gene SoC Performance Monitoring Unit driver

2016-06-28 Thread Tai Tri Nguyen
Hi Mark, On Tue, Jun 28, 2016 at 7:14 AM, Mark Rutland wrote: > On Tue, Jun 28, 2016 at 02:21:38PM +0100, Marc Zyngier wrote: >> On 28/06/16 12:13, Mark Rutland wrote: >> > On Mon, Jun 27, 2016 at 10:54:07AM -0700, Tai Tri Nguyen wrote: >> >> On Mon, Jun 27, 2016 at 9:00 AM, Mark Rutland >> >>

Re: [PATCH v1 0/2] Introduce the initify gcc plugin

2016-06-28 Thread Joe Perches
(adding Mathias Krause who did something similar via macros in 2014) https://lkml.org/lkml/2014/6/22/149 On Tue, 2016-06-28 at 13:34 +0200, Emese Revfy wrote: > I would like to introduce the initify gcc plugin. The kernel already has > a mechanism to free up code and data memory that is only used

Re: [RESEND PATCH] x86/mm: only allow memmap=XX!YY over existing RAM

2016-06-28 Thread Dan Williams
On Tue, Jun 28, 2016 at 1:31 AM, Yigal Korman wrote: > Before this patch, passing a range that is beyond the physical memory > range will succeed, the user will see a /dev/pmem0 and will be able to > access it. Reads will always return 0 and writes will be silently > ignored. > > I've gotten more

Re: [v3 PATCH 1/5] extcon: Add Type-C and DP support

2016-06-28 Thread Guenter Roeck
On Tue, Jun 28, 2016 at 5:26 AM, Chanwoo Choi wrote: > Hi Chris, > > I agree to add the new EXTCON_DISP_DP connector. > But, other new definition should be discussed. > - EXTCON_DISP_DP_ALT > - EXTCON_TYPEC_POLARITY > - EXTCON_TYPEC_PIN_ASSIGN > > I think that TYPEC_POLARITY and TYPEC_PIN_ASSING a

Re: [PATCH 1/2] clk: clk-rk3*: set CLK_IS_CRITICAL flag to critical clocks

2016-06-28 Thread Heiko Stuebner
Hi Andi, Am Mittwoch, 29. Juni 2016, 01:09:22 schrieb Andi Shyti: > > > RK2928_CLKSEL_CON(0), 14, 2, MFLAGS, 8, 5, DFLAGS), > > > > > > - GATE(ACLK_CPU, "aclk_cpu", "aclk_cpu_src", CLK_IGNORE_UNUSED, > > > + GATE(ACLK_CPU, "aclk_cpu", "aclk_cpu_src", > > > + CLK_

Re: [PATCH v2] mm: oom: deduplicate victim selection code for memcg and global oom

2016-06-28 Thread Vladimir Davydov
On Mon, Jun 27, 2016 at 05:14:31PM -0700, David Rientjes wrote: > On Mon, 27 Jun 2016, Vladimir Davydov wrote: > > > When selecting an oom victim, we use the same heuristic for both memory > > cgroup and global oom. The only difference is the scope of tasks to > > select the victim from. So we cou

Re: [PATCH 4/6] mfd: dm355evm_msp: Refactoring for add_child()

2016-06-28 Thread Lee Jones
On Tue, 28 Jun 2016, SF Markus Elfring wrote: > >> @@ -222,19 +222,21 @@ static struct device *add_child(struct i2c_client > >> *client, const char *name, > >>status = platform_device_add_resources(pdev, &r, 1); > >>if (status < 0) { > >>dev_dbg(&pdev->

Re: [PATCH v5] clk: tegra: Initialize UTMIPLL when enabling PLLU

2016-06-28 Thread Jon Hunter
Hi Rhyland, On 27/06/16 19:11, Rhyland Klein wrote: > Jonathan, can you confirm replacing usleep_range(100, 200) with udelay(2) > works for you? Yes for me, using a udelay(2) does seem to work. I have made sure that a usb device is still detected on the Jetson TX1. However, I am not sure the bes

Re: [PATCH v6] arm64: cpuinfo: Expose MIDR_EL1 and REVIDR_EL1 to sysfs

2016-06-28 Thread Mark Rutland
On Tue, Jun 28, 2016 at 04:33:46PM +0100, Catalin Marinas wrote: > On Tue, Jun 21, 2016 at 12:12:36PM +0100, Suzuki K. Poulose wrote: > > +#define CPUINFO_ATTR_RO(_name) > > \ > > + static ssize_t show_##_name(struct device *dev,

Re: [PATCH v2 04/14] regulator: SY8106A regulator driver

2016-06-28 Thread Ondřej Jirman
On 27.6.2016 16:54, Mark Brown wrote: > On Sun, Jun 26, 2016 at 05:07:16PM +0200, Ondřej Jirman wrote: >> On 26.6.2016 13:26, Mark Brown wrote: > >>> I'm missing almost all of this series, I've just got this and another >>> patch which look like a standalone driver so it's hard to see any >>> depe

Re: [PATCH v3 1/4] mfd: mxs-lradc: Add support for mxs-lradc MFD

2016-06-28 Thread Lee Jones
On Fri, 24 Jun 2016, Ksenija Stanojevic wrote: > Add core files for mxs-lradc MFD driver. > > Note: this patch won't compile in iio/testing without this patch: > a8f447be8056 ("mfd: Add resource managed APIs for mfd_add_devices") > > Signed-off-by: Ksenija Stanojevic > Acked-by: Jonathan Camer

Re: [Open-FCoE] [PATCH] MAINTAINERS: Change FCoE maintainer

2016-06-28 Thread Vasu Dev
On Thu, 2016-06-23 at 10:22 +0200, Johannes Thumshirn wrote: > Vasu is going to resign from his maintainer role and I'll take over. > > Signed-off-by: Johannes Thumshirn > --- >  MAINTAINERS | 2 +- >  1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/MAINTAINERS b/MAINTAINERS > inde

Re: [RFC/PATCH] lib/vsprintf: Add support to store cpumask

2016-06-28 Thread Steven Rostedt
On Tue, 28 Jun 2016 17:34:34 +0200 Jiri Olsa wrote: > When using trace_printk for cpumask I've got wrong results, > some bitmaps were completely different from what I expected. > > Currently you get wrong results when using trace_printk > on local cpumask, like: > > void test(void) > { >

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-06-28 Thread Michal Suchanek
On 28 June 2016 at 17:51, Mark Brown wrote: > On Tue, Jun 28, 2016 at 02:40:41PM +0200, Michal Suchanek wrote: > >> There is no hardware other than pin header. You are preparing a >> factory image for a devboard with a pin header that can be used for >> connecting SPI devices. Some devices have fi

Re: [PATCH v6] arm64: cpuinfo: Expose MIDR_EL1 and REVIDR_EL1 to sysfs

2016-06-28 Thread Suzuki K Poulose
On 28/06/16 16:33, Catalin Marinas wrote: On Tue, Jun 21, 2016 at 12:12:36PM +0100, Suzuki K. Poulose wrote: +#define CPUINFO_ATTR_RO(_name) \ + static ssize_t show_##_name(struct device *dev, \ +

Re: [PATCH v2] input: tablet: pegasus_notetaker: USB PM fixes

2016-06-28 Thread Martin Kepplinger
Am 2016-06-23 um 19:18 schrieb Dmitry Torokhov: > Hi Martin, > > On Tue, Jun 14, 2016 at 01:20:15PM +0200, Martin Kepplinger wrote: >> static int pegasus_reset_resume(struct usb_interface *intf) >> { >> +struct pegasus *pegasus = usb_get_intfdata(intf); >> + >> +if (pegasus->dev->users)

RE: [PATCH 3/4] perf annotate: add powerpc support

2016-06-28 Thread David Laight
From: Ravi Bangoria > Sent: 28 June 2016 12:37 > > Powerpc has long list of branch instructions and hardcoding them in table > appears to be error-prone. So, add new function to find instruction > instead of creating table. > > Signed-off-by: Naveen N. Rao > Signed-off-by: Ravi Bangoria > --- >

Re: [kernel-hardening] [PATCH v1 0/2] Introduce the initify gcc plugin

2016-06-28 Thread Emese Revfy
On Tue, 28 Jun 2016 13:57:49 +0100 Mark Rutland wrote: > On Tue, Jun 28, 2016 at 01:34:07PM +0200, Emese Revfy wrote: > > This patch set is based on the "Add support for complex gcc plugins that > > don't fit in a single file" patch set (git/kees/linux.git#kspp HEAD: > > e5d4798b284cd192c8b). >

Re: [PATCH 1/2] clk: clk-rk3*: set CLK_IS_CRITICAL flag to critical clocks

2016-06-28 Thread Andi Shyti
Hi Heiko, > > RK2928_CLKSEL_CON(0), 14, 2, MFLAGS, 8, 5, DFLAGS), > > - GATE(ACLK_CPU, "aclk_cpu", "aclk_cpu_src", CLK_IGNORE_UNUSED, > > + GATE(ACLK_CPU, "aclk_cpu", "aclk_cpu_src", > > + CLK_IS_CRITICAL | CLK_IGNORE_UNUSED, > > - you'll never need both

Re: [RFC PATCH v4 3/5] PCI: Check platform specific ECAM quirks

2016-06-28 Thread Duc Dang
On Tue, Jun 28, 2016 at 6:04 AM, Christopher Covington wrote: > Hi Tomasz, > > On 06/28/2016 03:54 AM, Tomasz Nowicki wrote: > >> diff --git a/drivers/pci/host/mcfg-quirks.c b/drivers/pci/host/mcfg-quirks.c >> new file mode 100644 >> index 000..fb2b184 >> --- /dev/null >> +++ b/drivers/pci/hos

Re: [RFC PATCH 0/4] ARM: remove big.LITTLE switcher support

2016-06-28 Thread Nicolas Pitre
On Tue, 28 Jun 2016, Bartlomiej Zolnierkiewicz wrote: > > Hi, > > On Monday, June 27, 2016 03:49:44 PM Nicolas Pitre wrote: > > On Mon, 27 Jun 2016, Bartlomiej Zolnierkiewicz wrote: > > > > > Hi, > > > > > > It seems that in mainline kernel big.LITTLE switcher support > > > may be usable only

[PATCH] audit: move audit_get_tty to reduce scope and kabi changes

2016-06-28 Thread Richard Guy Briggs
The only users of audit_get_tty and audit_put_tty are internal to audit, so move it out of include/linux/audit.h to kernel.h and create a proper function rather than inlining it. This also reduces kABI changes. Suggested-by: Paul Moore Signed-off-by: Richard Guy Briggs --- include/linux/audit.

Re: [PATCH] regulator: pwm: Fix regulator ramp delay for continuous mode

2016-06-28 Thread Brian Norris
On Mon, Jun 27, 2016 at 9:53 PM, Douglas Anderson wrote: > The original commit adding support for continuous voltage mode didn't > handle the regulator ramp delay properly. It treated the delay as a > fixed delay in uS despite the property being defined as uV / uS. Let's > adjust it. Luckily th

[PATCH] audit: move calcs after alloc and check when logging set loginuid

2016-06-28 Thread Richard Guy Briggs
Move the calculations of values after the allocation in case the allocation fails. This avoids wasting effort in the rare case that it fails, but more importantly saves us extra logic to release the tty ref. Signed-off-by: Richard Guy Briggs --- kernel/auditsc.c |7 --- 1 files changed,

Re: RFC: out-of-tree tty driver breakage (changing ASYNC_ bits)

2016-06-28 Thread Grant Edwards
On 2016-06-28, Grant Edwards wrote: > On 2016-06-28, Grant Edwards wrote: >> On 2016-01-11, Peter Hurley wrote: >>> On 01/11/2016 07:53 AM, Grant Edwards wrote: On 2016-01-11, Greg KH wrote: > On Sun, Jan 10, 2016 at 01:42:44PM -0800, Peter Hurley wrote: > >> This will break ou

Re: [PATCH v7 2/2] drm/panel: Add JDI LT070ME05000 WUXGA DSI Panel

2016-06-28 Thread Vinay Simha
hi, Any further comments or reviews? On Mon, Jun 20, 2016 at 11:23 AM, Vinay Simha BN wrote: > Add support for the JDI LT070ME05000 WUXGA DSI panel used in > Nexus 7 2013 devices. > > Programming sequence for the panel is was originally found in the > android-msm-flo-3.4-lollipop-release branch

Re: [PATCH v2 1/2] drm/dsi: Implement dcs set/get display brightness

2016-06-28 Thread Vinay Simha
hi, Any further comments or reviews? On Mon, Jun 20, 2016 at 11:23 AM, Vinay Simha BN wrote: > Provide a small convenience wrapper that set/get the > display brightness value > > Cc: John Stultz > Cc: Sumit Semwal > Cc: Archit Taneja > Cc: Rob Clark > Cc: Jani Nikula > Cc: Thierry Reding >

Re: [PATCH] media: s5p-mfc fix memory leak in s5p_mfc_remove()

2016-06-28 Thread Shuah Khan
On 06/28/2016 07:39 AM, Shuah Khan wrote: > On 06/28/2016 03:57 AM, Kamil Debski wrote: >> HI Shuah, >> >> Which branch do you base your patches on? >> >> I have trouble applying this path >> (https://patchwork.linuxtv.org/patch/34577/) and >> "s5p-mfc fix null pointer deference in clk_core_enable

Re: RFC: out-of-tree tty driver breakage (changing ASYNC_ bits)

2016-06-28 Thread Grant Edwards
On 2016-06-28, Grant Edwards wrote: > On 2016-01-11, Peter Hurley wrote: >> On 01/11/2016 07:53 AM, Grant Edwards wrote: >>> On 2016-01-11, Greg KH wrote: On Sun, Jan 10, 2016 at 01:42:44PM -0800, Peter Hurley wrote: > This will break out-of-tree drivers but I don't really see a >>

Re: [PATCH v2 3/3] drivers core: allow id match override when manually binding driver

2016-06-28 Thread Mark Brown
On Tue, Jun 28, 2016 at 02:40:41PM +0200, Michal Suchanek wrote: > There is no hardware other than pin header. You are preparing a > factory image for a devboard with a pin header that can be used for > connecting SPI devices. Some devices have fine kernel drivers and for > these you prepare fine

[PATCH v2] drm: bridge/dw-hdmi: Add support for DWC Phy

2016-06-28 Thread Jose Abreu
This patch adds support for the Synopsys HDMI TX Phy in bridge dw-hdmi. The init flow is the same as the Rockchip Phy so we only need to add one define and one if statement. Also, the audio infoframe was fixed to sampling frequency of 44.1k. With this patch this is now corrected. As I don't know

Re: [v4.2-rc1 Regression] usb: Enable LPM for USB 2.01+ full-speed devices

2016-06-28 Thread Joseph Salisbury
On 06/28/2016 11:40 AM, Alan Stern wrote: > On Tue, 28 Jun 2016, Joseph Salisbury wrote: > >> On 06/24/2016 08:06 AM, Joseph Salisbury wrote: >>> On 06/22/2016 12:14 PM, Greg KH wrote: On Wed, Jun 22, 2016 at 11:38:43AM -0400, Joseph Salisbury wrote: > Hi Rupesh, > > A kernel bug r

Re: [PATCH v12 net-next 1/1] hv_sock: introduce Hyper-V Sockets

2016-06-28 Thread Rick Jones
On 06/28/2016 02:59 AM, Dexuan Cui wrote: The idea here is: IMO the syscalls sys_read()/write() shoudn't return -ENOMEM, so I have to make sure the buffer allocation succeeds? I tried to use kmalloc with __GFP_NOFAIL, but I hit a warning in in mm/page_alloc.c: WARN_ON_ONCE((gfp_flags & __GFP_NOF

Re: [RFC PATCH 00/27] ARM64: support ILP32

2016-06-28 Thread Yury Norov
On Tue, Jun 21, 2016 at 08:06:18PM +0800, Zhangjian (Bamvor) wrote: > Hi, > > > In our test, we need to fix stack pointer in makecontext. Not sure > if it should be a standalone patch: Could you resend it? It seems, the format is broken: yury@yury-N73SV:~/work/toolchain/glibc$ git am jui.patch

Re: [PATCH 4/6] mfd: dm355evm_msp: Refactoring for add_child()

2016-06-28 Thread SF Markus Elfring
>> @@ -222,19 +222,21 @@ static struct device *add_child(struct i2c_client >> *client, const char *name, >> status = platform_device_add_resources(pdev, &r, 1); >> if (status < 0) { >> dev_dbg(&pdev->dev, "can't add irq\n"); >> -go

Re: RFC: out-of-tree tty driver breakage (changing ASYNC_ bits)

2016-06-28 Thread Grant Edwards
On 2016-01-11, Peter Hurley wrote: > On 01/11/2016 07:53 AM, Grant Edwards wrote: >> On 2016-01-11, Greg KH wrote: >>> On Sun, Jan 10, 2016 at 01:42:44PM -0800, Peter Hurley wrote: >>> This will break out-of-tree drivers but I don't really see a realistic alternative. Also, I think the

Re: [v4.2-rc1 Regression] usb: Enable LPM for USB 2.01+ full-speed devices

2016-06-28 Thread Alan Stern
On Tue, 28 Jun 2016, Joseph Salisbury wrote: > On 06/24/2016 08:06 AM, Joseph Salisbury wrote: > > On 06/22/2016 12:14 PM, Greg KH wrote: > >> On Wed, Jun 22, 2016 at 11:38:43AM -0400, Joseph Salisbury wrote: > >>> Hi Rupesh, > >>> > >>> A kernel bug report was opened against Ubuntu [0]. After a

Re: [PATCH v2 0/5] Cavium ThunderX uncore PMU support

2016-06-28 Thread Jan Glauber
On Tue, Jun 28, 2016 at 11:24:20AM +0100, Will Deacon wrote: > Hi Jan, > > On Wed, Mar 09, 2016 at 05:21:02PM +0100, Jan Glauber wrote: > > This patch series provides access to various counters on the ThunderX SOC. > > > > For details of the uncore implementation see patch #1. > > > > Patches #2

Re: [RFC v2 3/3] dma-buf/sync_file: rework fence storage in struct file

2016-06-28 Thread Gustavo Padovan
2016-06-28 Chris Wilson : > On Tue, Jun 28, 2016 at 11:25:00AM -0300, Gustavo Padovan wrote: > > 2016-06-28 Chris Wilson : > > > > > On Mon, Jun 27, 2016 at 04:29:22PM -0300, Gustavo Padovan wrote: > > > > From: Gustavo Padovan > > > > > > > > Create sync_file->fence to abstract the type of fen

[RFC/PATCH] lib/vsprintf: Add support to store cpumask

2016-06-28 Thread Jiri Olsa
When using trace_printk for cpumask I've got wrong results, some bitmaps were completely different from what I expected. Currently you get wrong results when using trace_printk on local cpumask, like: void test(void) { struct cpumask mask; ... trace_printk("mask '%*pbl'\n",

Re: [PATCH] mfd: qcom_rpm: parametrize also ack selector size

2016-06-28 Thread Lee Jones
On Wed, 22 Jun 2016, Linus Walleij wrote: > The RPM has two sets of selectors (IPC bit fields): request and > acknowledge. Apparently, some models use 4*32 bit words for select > and some use 7*32 bit words for request, but all use 7*32 words > for acknowledge bits. > > So apparently you can on t

Re: [PATCH v6] arm64: cpuinfo: Expose MIDR_EL1 and REVIDR_EL1 to sysfs

2016-06-28 Thread Catalin Marinas
On Tue, Jun 21, 2016 at 12:12:36PM +0100, Suzuki K. Poulose wrote: > +#define CPUINFO_ATTR_RO(_name) > \ > + static ssize_t show_##_name(struct device *dev, > \ > + struct device_attribute *attr,

Re: [PATCH -next] mfd: hi655x: Fix return value check in hi655x_pmic_probe()

2016-06-28 Thread Lee Jones
On Sat, 18 Jun 2016, weiyj...@163.com wrote: > From: Wei Yongjun > > In case of error, the function devm_ioremap_resource() returns ERR_PTR() > and never returns NULL. The NULL test in the return value check should > be replaced with IS_ERR(). Also remove unneeded error handling of > platform_ge

Re: [PATCH v3 2/4] mfd: cros_ec: add EC_PWM function definitions

2016-06-28 Thread Lee Jones
On Fri, 17 Jun 2016, Brian Norris wrote: > The EC_CMD_PWM_{GET,SET}_DUTY commands allow us to control a PWM that is > attached to the EC, rather than the main host SoC. The API provides > functionality-based (e.g., keyboard light, backlight) or index-based > addressing of the PWM(s). Duty cycles a

Re: [PATCH v2] mfd: twl6040: Handle mclk used for HPPLL and optional internal clock source

2016-06-28 Thread Lee Jones
On Mon, 20 Jun 2016, Peter Ujfalusi wrote: > On some boards, like omap5-uevm the MCLK is gated by default and in order > to be able to use the High performance modes of twl6040 it need to be > enabled by SW. > Add support for handling the MCLK source clock via CCF. > At the same time lower the pri

RE: [PATCH v12 net-next 1/1] hv_sock: introduce Hyper-V Sockets

2016-06-28 Thread Dexuan Cui
> From: David Miller [mailto:da...@davemloft.net] > Sent: Tuesday, June 28, 2016 21:45 > To: Dexuan Cui > Cc: gre...@linuxfoundation.org; net...@vger.kernel.org; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de; > a...@canonical.com; jasow...@redhat.com; vkuzn...@redha

[PATCH 1/6] scripts/gdb: silence 'nothing to do' message

2016-06-28 Thread Kieran Bingham
The constants.py generation, involves a rule to link into the main makefile. This rule has no command and generates a spurious warning message in the build logs when CONFIG_SCRIPTS_GDB is enabled. Fix simply by giving a no-op action Reported-by: Jan Kiszka Signed-off-by: Kieran Bingham --- scr

Re: [RESEND][PATCH] mfd: Add support for COMe-cSL6 and COMe-mAL10 to Kontron PLD driver

2016-06-28 Thread Lee Jones
On Sun, 19 Jun 2016, Michael Brunner wrote: > This is an unmodified resend of the patch already been sent on > February 17 as it seems to have fallen through the net. > > This patch adds the DMI system ID of the Kontron COMe-cSL6 and > COME-mAL10 boards to the Kontron PLD driver. The list of supp

[PATCH 4/6] scripts/gdb: Perform path expansion to lx-symbol's arguments

2016-06-28 Thread Kieran Bingham
From: Nikolay Borisov Python doesn't do automatic expansion of paths. In case one passes path of the from ~/foo/bar the gdb scripts won't automatically expand that and as a result the symbols files won't be loaded. Fix this by explicitly expanding all paths which begin with "~" Signed-off-by: Ni

[PATCH 5/6] Revert "scripts/gdb: add a Radix Tree Parser"

2016-06-28 Thread Kieran Bingham
This reverts commit e127a73d41ac ("scripts/gdb: add a Radix Tree Parser") The python implementation of radix-tree was merged at the same time as the radix-tree system was heavily reworked from commit e9256efcc8e3 ("radix-tree: introduce radix_tree_empty") to 3bcadd6fa6c4 ("radix-tree: free up the

[PATCH 3/6] scripts/gdb: add constants.py to .gitignore

2016-06-28 Thread Kieran Bingham
From: Omar Sandoval Since scripts/gdb/linux/constants.py is autogenerated, this should have been added to .gitignore when it was introduced. Fixes: f197d75fcad1 ("scripts/gdb: provide linux constants") Signed-off-by: Omar Sandoval Signed-off-by: Kieran Bingham --- scripts/gdb/linux/.gitignore

[PATCH 6/6] Revert "scripts/gdb: add documentation example for radix tree"

2016-06-28 Thread Kieran Bingham
This reverts commit 9b5580359a84 ("scripts/gdb: add documentation example for radix tree") The python implementation of radix tree was merged at the same time as a refactoring of the radix tree implementation and doesn't work. The feature is being reverted, thus we revert the documentation as well

[PATCH 0/6] scripts/gdb: Fixes for 4.7

2016-06-28 Thread Kieran Bingham
Hi Andrew, Please consider this series for integration into the current rc series. I had hoped to get this to you, with a fixed radix-tree, rather than a reverted one. Alas, time has gone against me, and we are nearing the end of the window - so having discussed with Jan, we felt it best to simply

[PATCH 2/6] scripts/gdb: rebuild constants.py on dependancy change

2016-06-28 Thread Kieran Bingham
The autogenerated constants.py file was only being built on the initial call, and if the constants.py.in file changed. As we are utilising the CPP hooks, we can successfully use the call if_changed_dep rules to determine when to rebuild the file based on it's inclusions. Reported-by: Jan Kiszka S

Re: [PATCH 2/3] mailbox: Add Broadcom PDC mailbox driver

2016-06-28 Thread Jassi Brar
On Tue, Jun 28, 2016 at 7:06 PM, Rob Rice wrote: >>> drivers/mailbox/Kconfig |9 + >>> drivers/mailbox/Makefile|2 + >>> drivers/mailbox/mailbox-pdc/Makefile|8 + >>> drivers/mailbox/mailbox-pdc/pdc.c | 1181 >>> +

Re: Deleting child qdisc doesn't reset parent to default qdisc?

2016-06-28 Thread Jiri Kosina
On Fri, 15 Apr 2016, Eric Dumazet wrote: > > TBF is probably a bad example because it started life as a classless > > qdisc. There was only one built-in fifo queue that was shaped. Then > > someone made it classful and changed this behavior. To me it sounds > > reasonable to have the default be

Re: [RFC v2 2/3] dma-buf/fence-array: add fence_array_teardown()

2016-06-28 Thread Gustavo Padovan
2016-06-28 Christian König : > Am 28.06.2016 um 16:17 schrieb Gustavo Padovan: > > 2016-06-28 Christian König : > > > > > Am 27.06.2016 um 21:29 schrieb Gustavo Padovan: > > > > From: Gustavo Padovan > > > > > > > > As the array of fence callbacks held by an active struct fence_array > > > > ea

Re: [PATCH 1/2] clk: clk-rk3*: set CLK_IS_CRITICAL flag to critical clocks

2016-06-28 Thread Heiko Stuebner
Hi Andi, Am Dienstag, 28. Juni 2016, 17:45:36 schrieb andi.sh...@gmail.com: > From: Andi Shyti > > Patch 32b9b1096 has introduced a generalized concept of critical > clock. Clocks are marked with the CLK_IS_CRITICAL, enabled during > boot and never gated. > > Use the CLK_IS_CRITICAL instead of

"drm/core: Do not preserve framebuffer on rmfb prevends display" breaks display resume after dpms suspend

2016-06-28 Thread Johannes Hirte
On my system the display doesn't come back after a dpms suspend with X11. The display is powered off after the configured time, but to get it powered on I need to switch to console (and back to X). It doesn't happen on simple keyboard or mouse input. Also the brightness is on the lowest level, inde

Re: [PATCH 0/2] use the CLK_IS_CRITICAL flag for critical clocks

2016-06-28 Thread Heiko Stuebner
Hi Andi, Am Dienstag, 28. Juni 2016, 17:45:35 schrieb andi.sh...@gmail.com: > From: Andi Shyti > this patchset is the first of a series and it aims to remove > the handling of critical clock on the rockchip clock drivers. I'm actually waiting on the second part of that to land. The series intro

Re: [PATCH v2 4/5] mfd: qcom-rpm: Add support for pm8018 RPM Regulator

2016-06-28 Thread Lee Jones
On Fri, 24 Jun 2016, Neil Armstrong wrote: > In order to support the Qualcomm MDM9615 SoC, add support for the > RPM regulator entries in the qcom-rpm driver. > > Acked-by: Bjorn Andersson > Signed-off-by: Neil Armstrong > --- > Documentation/devicetree/bindings/mfd/qcom-rpm.txt | 1 + > driv

Re: [PATCH v2 1/5] mfd: pm8921: Add support for pm8018

2016-06-28 Thread Lee Jones
On Fri, 24 Jun 2016, Neil Armstrong wrote: > In order to support the Qualcomm MDM9615 PMIC, add support for the > pm8018 in pm8921 mfd driver. > > Reviewed-by: Bjorn Andersson > Signed-off-by: Neil Armstrong > --- > drivers/mfd/pm8921-core.c | 1 + > 1 file changed, 1 insertion(+) For my own

Re: [v4.2-rc1 Regression] usb: Enable LPM for USB 2.01+ full-speed devices

2016-06-28 Thread Joseph Salisbury
On 06/24/2016 08:06 AM, Joseph Salisbury wrote: > On 06/22/2016 12:14 PM, Greg KH wrote: >> On Wed, Jun 22, 2016 at 11:38:43AM -0400, Joseph Salisbury wrote: >>> Hi Rupesh, >>> >>> A kernel bug report was opened against Ubuntu [0]. After a kernel >>> bisect, it was found that reverting the followi

Re: [PATCH 4/6] mfd: dm355evm_msp: Refactoring for add_child()

2016-06-28 Thread Lee Jones
On Sun, 26 Jun 2016, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 26 Jun 2016 13:56:58 +0200 > > Adjust jump targets according to the Linux coding style convention. > Another check for the variable "status" can be omitted then at the end. > > Signed-off-by: Markus Elfring > ---

Re: [PATCH 6/6] mfd: smsc-ece1099: Return directly after a function failure in smsc_i2c_probe()

2016-06-28 Thread Lee Jones
On Sun, 26 Jun 2016, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 26 Jun 2016 14:30:46 +0200 > > This issue was detected by using the Coccinelle software. > > Return directly if a call of the function "devm_regmap_init_i2c" > or "regmap_write" failed. > > Delete the jump label

Re: [PATCH v3 18/19] sh: IO-DATA HDL-U (a,k.a landisk) support

2016-06-28 Thread Yoshinori Sato
On Tue, 28 Jun 2016 16:51:25 +0900, Geert Uytterhoeven wrote: > > Hi Sato-san, > > On Tue, Jun 28, 2016 at 8:36 AM, Yoshinori Sato > wrote: > > Signed-off-by: Yoshinori Sato > > --- > > .../interrupt-controller/iodata-landisk.txt| 34 ++ > > arch/sh/boot/dts/Makefile

Re: [PATCH 5/6] mfd: smsc-ece1099: Delete an unnecessary variable initialisation in smsc_i2c_probe()

2016-06-28 Thread Lee Jones
On Sun, 26 Jun 2016, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 26 Jun 2016 14:14:54 +0200 > > The variable "ret" will be set to an appropriate value a bit later. > Thus omit the explicit initialisation at the beginning. > > Signed-off-by: Markus Elfring > --- > drivers/mfd/

Re: [RFC PATCH v2 1/9] mailbox: Add Amlogic Meson Message-Handling-Unit

2016-06-28 Thread Jassi Brar
On Tue, Jun 28, 2016 at 7:30 PM, Neil Armstrong wrote: > On 06/25/2016 07:50 PM, Jassi Brar wrote: >> -#define INTR_STAT_OFS 0x0 >> -#define INTR_SET_OFS 0x8 >> -#define INTR_CLR_OFS 0x10 >> - >> -#define MHU_LP_OFFSET 0x0 >> -#define MHU_HP_OFFSET 0x20 >> -#define MHU_SEC_OFFSET 0x200 >> -

Re: [RFC v2 2/3] dma-buf/fence-array: add fence_array_teardown()

2016-06-28 Thread Christian König
Am 28.06.2016 um 16:17 schrieb Gustavo Padovan: 2016-06-28 Christian König : Am 27.06.2016 um 21:29 schrieb Gustavo Padovan: From: Gustavo Padovan As the array of fence callbacks held by an active struct fence_array each has a reference to the struct fence_array, when the owner of the fence_

Re: [PATCH 2/6] mfd: twl-core: Refactoring for add_numbered_child()

2016-06-28 Thread Lee Jones
On Sun, 26 Jun 2016, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 26 Jun 2016 13:03:59 +0200 > > Adjust jump targets according to the Linux coding style convention. > Another check for the variable "status" can be omitted then at the end. > > Signed-off-by: Markus Elfring > Ack

Re: [PATCH 3/6] mfd: dm355evm_msp: Return directly after a failed platform_device_alloc() in add_child()

2016-06-28 Thread Lee Jones
On Sun, 26 Jun 2016, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 26 Jun 2016 13:40:35 +0200 > > The platform_device_put() function was called in one case by the > add_child() function during error handling even if the passed > variable "pdev" contained a null pointer. > Return d

Re: [PATCH 1/6] mfd: twl-core: Return directly after a failed platform_device_alloc() in add_numbered_child()

2016-06-28 Thread Lee Jones
On Sun, 26 Jun 2016, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 26 Jun 2016 12:25:36 +0200 Please use `git send-email` when sending patches to the list. > The platform_device_put() function was called in one case by the > add_numbered_child() function during error handling eve

Re: [PATCH 0/6] mfd: Fine-tuning for three function implementations

2016-06-28 Thread Lee Jones
On Sun, 26 Jun 2016, SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 26 Jun 2016 15:25:43 +0200 > > Several update suggestions were taken into account > from static source code analysis. > > Markus Elfring (6): > twl-core: Return directly after a failed platform_device_alloc() >

Re: [PATCH v4] mfd: intel_soc_pmic_bxtwc: Add Intel BXT WhiskeyCove PMIC ADC thermal channel mapping and USB type-C resources

2016-06-28 Thread Lee Jones
On Mon, 27 Jun 2016, Bin Gao wrote: > This patch adds the mapping of PMIC ADC channel to thermal zone and > USB type-C resources. This mapping is used in the pmic thermal driver > to notify the thermal zone with the pmic adc channel alert interrupts. > This patch also adds three new data structur

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