[PATCH] fanotify: fix race between fanotify_release() and fanotify_get_response()

2016-08-24 Thread Miklos Szeredi
List corruption was reported with a fanotify stress test. The bug turned out to be due to fsnotify_remove_event() being called on an event on the fanotify_data.access_list and protected by fanotify_data.access_lock instead of notification_mutex. This resulted in list_del_init() being run concurre

Re: [PATCH] fb: udl: fix build without CONFIG_FB_DEFERRED_IO

2016-08-24 Thread Daniel Vetter
On Wed, Aug 24, 2016 at 12:02 PM, Arnd Bergmann wrote: > On Wednesday, August 24, 2016 11:01:17 AM CEST Daniel Vetter wrote: >> On Wed, Aug 24, 2016 at 10:27 AM, Arnd Bergmann wrote: >> > A cleanup in v4.8 dropped several dependencies, but caused the udl driver >> > to fail building when CONFIG_F

Re: [PATCH v3 0/5] dts patches for qcom tsens support

2016-08-24 Thread Paolo Pisati
On Wed, Aug 17, 2016 at 02:33:40PM -0500, Andy Gross wrote: > On Wed, Aug 17, 2016 at 10:48:43AM +0530, Rajendra Nayak wrote: > > Hey Andy, > > > > This is a respin of v2 with some minor fixes pointed out by Rob. > > Please pull these in for 4.9 > > > > Thanks, > > Rajendra > > I pulled these in

Re: [PATCH 1/1] arm64/hugetlb: clear PG_dcache_clean if the page is dirty when munmap

2016-08-24 Thread Catalin Marinas
On Wed, Aug 24, 2016 at 05:00:50PM +0800, Leizhen (ThunderTown) wrote: > > > On 2016/8/24 1:28, Catalin Marinas wrote: > > On Mon, Aug 22, 2016 at 12:19:04PM +0800, Leizhen (ThunderTown) wrote: > >> On 2016/7/20 17:19, Catalin Marinas wrote: > >>> On Wed, Jul 20, 2016 at 10:46:27AM +0800, Leizhen

Re: [PATCH v5 19/19] iommu/dma: Add support for mapping MSIs

2016-08-24 Thread Robin Murphy
On 24/08/16 09:16, Thomas Gleixner wrote: > On Tue, 23 Aug 2016, Robin Murphy wrote: >> +cookie = domain->iova_cookie; >> +iovad = &cookie->iovad; >> + >> +spin_lock(&cookie->msi_lock); >> +list_for_each_entry(msi_page, &cookie->msi_page_list, list) >> +if (msi_page->phy

Re: [PATCH 04/11] sched,x86: Enable Turbo Boost Max Technology

2016-08-24 Thread Ingo Molnar
* Srinivas Pandruvada wrote: > From: Tim Chen > > On some Intel cores, they can boosted to a higher turbo frequency than > the other cores on the same die. So we prefer processes to be run on > them vs other lower frequency ones for extra performance. > > We extend the asym packing feature i

[PATCH] mmc: core: Add error message when switching fails in mmc_select_hs()

2016-08-24 Thread Jungseung Lee
The switch failure message in mmc_select_timing() had been removed since that is invalid: commit 0400ed0a083a ("mmc: core: remove the invalid message in mmc_select_timing") Now, in the case when mmc_select_hs() return error in mmc_select_timing(), there is nothing to print failure message. Let's m

Re: [PATCH] sched/fair: Fix fixed point arithmetic width for shares and effective load

2016-08-24 Thread Dietmar Eggemann
On 23/08/16 21:40, Paul Turner wrote: > On Mon, Aug 22, 2016 at 7:00 AM, Dietmar Eggemann [...] >> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c >> index 61d485421bed..18f80c4c7737 100644 >> --- a/kernel/sched/fair.c >> +++ b/kernel/sched/fair.c >> @@ -2530,8 +2530,8 @@ static long calc_

Re: [RFC PATCH 6/7] arm64: KVM: Handle trappable TLB instructions

2016-08-24 Thread Punit Agrawal
Will Deacon writes: > Hi Punit, > > On Tue, Aug 16, 2016 at 11:45:11AM +0100, Punit Agrawal wrote: >> The ARMv8 architecture allows trapping of TLB maintenane instructions >> from EL0/EL1 to higher exception levels. On encountering a trappable TLB >> instruction in a guest, an exception is taken

[PATCH v2 4/8] hisi_sas: add prep_abort_v2_hw()

2016-08-24 Thread John Garry
Add function to prepare the an internal abort for v2 hw. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 33 + 1 file changed, 33 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c in

[PATCH v2 0/8] hisi_sas internal abort support

2016-08-24 Thread John Garry
This patchset introduces support for the internal abort feature for the HiSilicon SAS controller. The internal abort feature allows commands which are active in the controller to be aborted before being sent to the slave device. Only support will be added for v2 HW since v1 HW has issues in suppo

[PATCH v2 2/8] hisi_sas: add internal abort in hisi_sas_dev_gone()

2016-08-24 Thread John Garry
Execute an internal abort for that device when it is removed, so that commands for that device are not processed. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_

[PATCH v2 7/8] hisi_sas: add TMF success check

2016-08-24 Thread John Garry
When a tmf is issued, various response codes can be returned from the target. For a query tmf the response may be TMF_RESP_FUNC_COMPLETE or TMF_RESP_FUNC_SUCC. Add a condition for TMF_RESP_FUNC_SUCC to hisi_sas_exec_internal_tmf_task(). This affects query tmf, as the result is success the returned

[PATCH v2 1/8] hisi_sas: add internal abort main code

2016-08-24 Thread John Garry
Add main code for internal abort functionality. The internal abort features allows the host controller to abort commands which are still active in the controller but have not yet been sent to the slave device. Typically a command only spends a relatively short time in the controller when compared

[PATCH v2 3/8] hisi_sas: add internal abort to hisi_sas_abort_task()

2016-08-24 Thread John Garry
Execute an internal abort for executing a task abort. This is for case of the command still being present in host when abort is executed. For a SATA internal abort, we set abort for all tasks associated with the device. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_main.c | 16 ++

[PATCH 1/3] net: fs_enet: merge NAPI RX and NAPI TX

2016-08-24 Thread Christophe Leroy
Initially, a NAPI TX routine has been implemented separately from NAPI RX, as done on the freescale/gianfar driver. By merging NAPI RX and NAPI TX, we reduce the amount of TX completion interrupts. Handling of the budget in association with TX interrupts is based on indications provided at https:

[PATCH 2/3] net: fs_enet: don't unmap DMA when packet len is below copybreak

2016-08-24 Thread Christophe Leroy
When the length of the packet is below the defined copybreak limit, the received packet is copied into a newly allocated skb in order to reuse the skb. This is only interesting if it allow us to avoid a new DMA mapping. We shall therefore not DMA unmap and remap the skb->data. Instead, we invalidat

[PATCH v2 6/8] hisi_sas: fail tmf task prep when port detached

2016-08-24 Thread John Garry
When the port is detached we cannot execute a TMF, as there can be no device attached to the port. Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sa

[PATCH 0/3] Optimisation of fs_enet ethernet driver

2016-08-24 Thread Christophe Leroy
This set optimises the freescale fs_enet ethernet driver: 1/ Merge of RX and TX NAPI functions in order to limit the amount of interrupts 2/ Do not unmap DMA when packets len is below copybreak, otherwise there is no benefit in copying the skb instead of allocating a new one 3/ Make copybreak value

[PATCH v2 8/8] hisi_sas: update version to 1.6

2016-08-24 Thread John Garry
Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/hisi_sas/hisi_sas.h b/drivers/scsi/hisi_sas/hisi_sas.h index 8311360..ca55ec2 100644 --- a/drivers/scsi/hisi_sas/hisi_sas.h +++ b/drivers/scsi/hisi_sas/h

[PATCH] nvme: Fix nvme_get/set_features() with a NULL result pointer

2016-08-24 Thread Andy Lutomirski
nvme_set_features() callers seem to expect that passing NULL as the result pointer is acceptable. Teach nvme_set_features() not to try to write to the NULL address. For symmetry, make the same change to nvme_get_features(), despite the fact that all current callers pass a valid result pointer. I

[PATCH 3/3] net: fs_enet: make rx_copybreak value configurable

2016-08-24 Thread Christophe Leroy
Measurement shows that on a MPC8xx running at 132MHz, the optimal limit is 112: * 114 bytes packets are processed in 147 TB ticks with higher copybreak * 114 bytes packets are processed in 148 TB ticks with lower copybreak * 128 bytes packets are processed in 154 TB ticks with higher copybreak * 12

Re: [PATCH v4 0/4] i2c: designware: improve performance for transfers

2016-08-24 Thread Jarkko Nikula
On 08/24/2016 01:18 AM, Lucas De Marchi wrote: Diff from v3: - Fix over 80chars in one place - Move check for adapter being able to dynamically update TAR to be done on probe time rather than init as requested by Jarkko For the previous version, Christian had added: Tested-by: C

[PATCH v2 5/8] hisi_sas: add v2 hw slot complete internal abort support

2016-08-24 Thread John Garry
Add code in slot_complete_v2_hw() to deal with the slots which have completed due to internal abort. The status codes have the following meaning: - STAT_IO_ABORTED: the IO has been aborted due to internal abort, whether by device or individual abort command - STAT_IO_COMPLETE: internal abort comma

Re: [PATCH 3/5] hwrng: amd: Be consitent with the driver name

2016-08-24 Thread Herbert Xu
On Fri, Aug 19, 2016 at 03:42:55PM +0200, LABBE Corentin wrote: > The driver name is displayed each time differently. > This patch make use of the same name everywhere. > > Signed-off-by: LABBE Corentin > --- > drivers/char/hw_random/amd-rng.c | 13 ++--- > 1 file changed, 6 insertions(+

Re: [PATCH v13 0/4] Mediatek MT8173 CMDQ support

2016-08-24 Thread Matthias Brugger
On 24/08/16 05:27, HS Liao wrote: Hi, This is Mediatek MT8173 Command Queue(CMDQ) driver. The CMDQ is used to help write registers with critical time limitation, such as updating display configuration during the vblank. It controls Global Command Engine (GCE) hardware to achieve this requirem

Re: [PATCH v3 0/2] AM335x-ICE: Add support for rotary switch

2016-08-24 Thread Daniel Mack
On 08/24/2016 11:15 AM, Vignesh R wrote: > On Wednesday 24 August 2016 02:05 PM, Daniel Mack wrote: >> On 08/24/2016 09:58 AM, Vignesh R wrote: >>> This series adds support for rotary-switch on AM335x-ICE that is >>> connected to TI PCA9536 I2C GPIO expander. >>> First patch adds new generic driver

Re: [PATCH V3] leds: trigger: Introduce an USB port trigger

2016-08-24 Thread Rafał Miłecki
On 24 August 2016 at 12:49, Matthias Brugger wrote: > On 24/08/16 00:03, Rafał Miłecki wrote: >> >> From: Rafał Miłecki >> >> This commit adds a new trigger responsible for turning on LED when USB >> device gets connected to the specified USB port. This can can useful for >> various home routers

Re: [PATCH] nvme: Fix nvme_get/set_features() with a NULL result pointer

2016-08-24 Thread Sagi Grimberg
Looks fine, Reviewed-by: Sagi Grimberg

Re: [RFC PATCH 0/5] Add CONFIG symbol as module attribute

2016-08-24 Thread Michal Marek
On 2016-08-23 23:32, Luis R. Rodriguez wrote: > On Fri, Aug 19, 2016 at 11:07:36AM +0200, Michal Marek wrote: >> On 2016-08-18 19:55, Luis R. Rodriguez wrote: >>> On Wed, Aug 17, 2016 at 09:26:58PM +0200, Cristina Moraru wrote: >>> This patchset implements dynamic pegging of kconfig symbol >>>

Re: [PATCH 0/6] Some Tegra I2C Updates

2016-08-24 Thread Jon Hunter
Hi Wolfram, On 11/08/16 11:16, Jon Hunter wrote: > Add runtime-pm and pinctrl support for Tegra I2C driver. > > The first 4 patches are trivial clean-up/simplification changes. > > Jon Hunter (6): > i2c: tegra: Add missing new line characters > i2c: tegra: Remove non device-tree support >

Re: [PATCH V3] leds: trigger: Introduce an USB port trigger

2016-08-24 Thread Matthias Brugger
On 24/08/16 00:03, Rafał Miłecki wrote: From: Rafał Miłecki This commit adds a new trigger responsible for turning on LED when USB device gets connected to the specified USB port. This can can useful for various home routers that have USB port(s) and a proper LED telling user a device is conn

Re: x86/PCI: Scan all functions during probing

2016-08-24 Thread Jan Kiszka
On 2016-08-24 04:39, Thomas Gleixner wrote: > On Thu, 18 Aug 2016, Bjorn Helgaas wrote: >> I looked up the spec: PCI (not PCIe) r3.0, sec 3.2.2.3.4, says: >> >> A single-function device may optionally respond to all function >> numbers as the same function or may ... respond only to function 0

Re: [PATCH] zd1211rw: fix spelling mistake "firmeware" -> "firmware"

2016-08-24 Thread Julian Calaby
Hi All, On Tue, Aug 23, 2016 at 4:35 AM, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in dev_err message. > > Signed-off-by: Colin Ian King Looks right to me. Reviewed-by: Julian Calaby Thanks, -- Julian Calaby Email: julian.cal...@gmail.com Profile: http:

[PATCH v2 1/3] tracing: Deference pointers without RCU checks

2016-08-24 Thread Binoy Jayan
From: Daniel Wagner The tracepoint can't be used in code section where we are in the middle of a state transition. For example if we place a tracepoint inside start/stop_critical_section(), lockdep complains with [0.035589] WARNING: CPU: 0 PID: 3 at kernel/locking/lockdep.c:3560 \ check_fla

[PATCH v2 2/3] tracing: Add trace_irqsoff tracepoints

2016-08-24 Thread Binoy Jayan
This work is based on work by Daniel Wagner. A few tracepoints are added at the end of the critical section. With the hist trigger in place, the hist trigger plots may be generated, with per-cpu breakdown of events captured. It is based on linux kernel's event infrastructure. The following filter(

[PATCH v2 0/3] *** Latency histograms - IRQSOFF,PREEMPTOFF ***

2016-08-24 Thread Binoy Jayan
Hi, Thank you Steven and Daniel for reviewing v1 and providing suggestions. These set of patches [v2] capture latency events caused by interrupts and premption disabled in kernel. The patches are based on the hist trigger feature developed by Tom Zanussi. Git-commit: 7ef224d1d0e3a1ade02d02c01ce1d

[PATCH v2 3/3] tracing: Histogram for missed timer offsets

2016-08-24 Thread Binoy Jayan
Latencies of missed timer offsets. Generate a histogram of missed timer offsets in microseconds. This will be a based along with irq and preemption latencies to calculate the effective process wakeup latencies. The following filter(s) may be used 'hist:key=common_pid.execname' 'hist:key=common_pi

Applied "ASoC: tas5086: fix typo: "Inavlid" -> "Invalid"" to the asoc tree

2016-08-24 Thread Mark Brown
The patch ASoC: tas5086: fix typo: "Inavlid" -> "Invalid" has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to

Re: [RFC] rlimit exceed notification events

2016-08-24 Thread Jiri Olsa
On Fri, Aug 19, 2016 at 05:41:20PM +0300, Yauheni Kaliuta wrote: > Hi! > > At the moment there is no clear indication if a process exceeds resource > limit. In some cases the problematic syscall can return a error, in some cases > the process can be just killed. > > I'm trying to implement some s

Re: [PATCH V5, 0/5] Add MediaTek USB3 DRD Driver

2016-08-24 Thread Oliver Neukum
On Wed, 2016-08-24 at 14:42 +0800, chunfeng yun wrote: > Dear all, > > Could you please help me to review the code? Is the structure struct qmu_gpd shared with the hardware? Do I read this correctly that you do PIO to endpoint 0 but DMA to the others? Could you resend the series?

Re: [PATCH v2 1/1] pwm: sun4i: fix a possible NULL dereference

2016-08-24 Thread LABBE Corentin
On Mon, Aug 22, 2016 at 08:57:37AM +0200, Maxime Ripard wrote: > Hi, > > On Tue, Aug 16, 2016 at 03:18:06PM +0200, LABBE Corentin wrote: > > of_match_device could return NULL, and so cause a NULL pointer > > dereference later. > > > > For fixing this problem, we use of_device_get_match_data(), th

[tip:perf/core] perf top: Use MSEC_PER_SEC

2016-08-24 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: b9c4b0f40d22d4b1d29540f5faf6ca4269f25848 Gitweb: http://git.kernel.org/tip/b9c4b0f40d22d4b1d29540f5faf6ca4269f25848 Author: Arnaldo Carvalho de Melo AuthorDate: Mon, 8 Aug 2016 15:37:58 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 23 Aug 2016 15:37:33 -0300 per

Re: perf: WARNING: kernel/events/core.c:4893 perf_mmap_close

2016-08-24 Thread Alexander Shishkin
Will Deacon writes: > A little bit of digging suggests that the preempt count isn't balanced > across the call to perf_pmu_output_stop from perf_mmap_close. Further > digging revealed the unbalanced get_cpu_ptr in __perf_pmu_output_stop. > Fix below! Oh gee, that's embarrassing. Thanks! > This

Re: [RESEND] [PATCH v2 2/4] dt-bindings: Add jdi lt070me05000 panel bindings

2016-08-24 Thread Thierry Reding
On Sun, Jul 31, 2016 at 08:45:21PM +0530, Vinay Simha BN wrote: > Add documentation for lt070me05000 panel > > Cc: Archit Taneja > Cc: John Stultz > Cc: Thierry Reding > Cc: Sumit Semwal > Signed-off-by: Vinay Simha BN > Acked-by: Rob Herring > > --- > v2: > * incorporated rob herring and

[tip:perf/core] perf tools: Fix typo: "ehough" -> "enough"

2016-08-24 Thread tip-bot for Colin Ian King
Commit-ID: dd6fa4e197f0123bcd751e47c171121b2451f148 Gitweb: http://git.kernel.org/tip/dd6fa4e197f0123bcd751e47c171121b2451f148 Author: Colin Ian King AuthorDate: Sun, 21 Aug 2016 15:12:56 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 23 Aug 2016 17:06:38 -0300 perf tools:

Re: [RESEND] [PATCH v3 3/4] drm/dsi: Implement dcs set/get display brightness

2016-08-24 Thread Thierry Reding
On Sun, Jul 31, 2016 at 08:45:22PM +0530, 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 > Cc: Emil Velikov > Signed-off

Re: [PATCH v2 1/2] kexec: Introduce "/sys/kernel/kexec_crash_low_size"

2016-08-24 Thread Xunlei Pang
On 2016/08/24 at 16:20, Dave Young wrote: > On 08/23/16 at 06:11pm, Yinghai Lu wrote: >> On Wed, Aug 17, 2016 at 1:20 AM, Dave Young wrote: >>> On 08/17/16 at 09:50am, Xunlei Pang wrote: "/sys/kernel/kexec_crash_size" only handles crashk_res, it is fine in most cases, but sometimes we ha

Re: [PATCH V3] leds: trigger: Introduce an USB port trigger

2016-08-24 Thread Matthias Brugger
On 24/08/16 13:02, Rafał Miłecki wrote: On 24 August 2016 at 12:49, Matthias Brugger wrote: On 24/08/16 00:03, Rafał Miłecki wrote: [...] +static int usbport_trig_notify(struct notifier_block *nb, unsigned long action, + void *data) +{ + struct usbport_t

Re: include/linux/io-mapping.h:130:39: error: implicit declaration of function 'ioremap_wc'

2016-08-24 Thread Linus Walleij
On Tue, Aug 23, 2016 at 10:03 PM, Chris Wilson wrote: > On Tue, Aug 16, 2016 at 10:14:57AM +0200, Linus Walleij wrote: >> On Mon, Aug 15, 2016 at 5:08 PM, kbuild test robot >> I think I've finally fixed this now by making OF_GPIO depend on !NO_IOMEM. > > I've stumbled over this patch (...) >

[PATCH v2] mm: memcontrol: avoid unused function warning

2016-08-24 Thread Arnd Bergmann
A bugfix in v4.8-rc2 introduced a harmless warning when CONFIG_MEMCG_SWAP is disabled but CONFIG_MEMCG is enabled: mm/memcontrol.c:4085:27: error: 'mem_cgroup_id_get_online' defined but not used [-Werror=unused-function] static struct mem_cgroup *mem_cgroup_id_get_online(struct mem_cgroup *memcg

Re: [ANNOUNCE] git-series: track changes to a patch series over time

2016-08-24 Thread Jakub Narębski
W dniu 11.08.2016 o 00:07, Josh Triplett pisze: > On August 9, 2016 11:37:31 PM HST, Richard Ipsum > wrote: >> On Thu, Aug 04, 2016 at 12:40:58PM -1000, Josh Triplett wrote: [...] >>> If you use a format-patch diff that includes the headers and >>> commit message, you could also support commentin

Re: [PATCH] gpio: Remove superfluous include of io-mapping.h

2016-08-24 Thread Linus Walleij
On Tue, Aug 23, 2016 at 10:32 PM, Chris Wilson wrote: > The io-mapping.h include arose from the need to workaround an arch/um > compile failure: > >drivers/gpio/gpio-mpc8xxx.c: In function 'mpc8xxx_probe': >>> drivers/gpio/gpio-mpc8xxx.c:373:2: error: implicit declaration of >>> function 'iou

Re: [RESEND] [PATCH v2 2/4] dt-bindings: Add jdi lt070me05000 panel bindings

2016-08-24 Thread Thierry Reding
On Sun, Jul 31, 2016 at 08:45:21PM +0530, Vinay Simha BN wrote: [...] > diff --git > a/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt > b/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt [...] > +- reset-gpios: phandle of gpio for reset line > + This sho

[patch 2/2] i2c: mux: mellanox: add driver

2016-08-24 Thread vadimp
From: Vadim Pasternak This driver allows I2C routing controlled through CPLD select registers on wide range of Mellanox systems (CPLD Lattice device). MUX selection is provided by digital and analog HW. Analog part is not under SW control. Digital part is under CPLD control (channel selection/de-

[patch 1/2] i2c: add master driver for mellanox systems

2016-08-24 Thread vadimp
From: Vadim Pasternak Device driver for Mellanox I2C controller logic, implemented in Lattice CPLD device. Device supports: - Master mode - One physical bus - Polling mode The Kconfig currently controlling compilation of this code is: drivers/i2c/busses/Kconfig:config I2C_MLXCPLD

[PATCH v3] pwm: sun4i: fix a possible NULL dereference

2016-08-24 Thread LABBE Corentin
of_match_device could return NULL, and so cause a NULL pointer dereference later. For fixing this problem, we use of_device_get_match_data(), this will simplify the code a little by using a standard function for getting the match data. Testing the return value of of_device_get_match_data is also

Re: [RESEND] [PATCH v2 2/4] dt-bindings: Add jdi lt070me05000 panel bindings

2016-08-24 Thread Vinay Simha
thierry, this is the reference pinouts of the panel http://www.tonylabs.com/wp-content/uploads/LT070ME05000-pinouts.jpg as you suggest , i will change the vcc-supply, - iovcc-supply: phandle of the regulator that supplies power to the IOVCC voltage input (1.8 V) will keep the other t

Re: [PATCH] gpio: Remove superfluous include of io-mapping.h

2016-08-24 Thread Chris Wilson
On Wed, Aug 24, 2016 at 01:55:28PM +0200, Linus Walleij wrote: > On Tue, Aug 23, 2016 at 10:32 PM, Chris Wilson > wrote: > > > The io-mapping.h include arose from the need to workaround an arch/um > > compile failure: > > > >drivers/gpio/gpio-mpc8xxx.c: In function 'mpc8xxx_probe': > >>> dri

Re: Replacing specific kmalloc() calls by kmalloc_array()?

2016-08-24 Thread SF Markus Elfring
> Or kmalloc_array, since zeroing is not necessary. Might be an idea for > a new Coccinelle script, like > > - kmalloc (N * sizeof T, GFP) > + kmalloc_array(N, sizeof T, GFP) I have picked your idea up. The corresponding script for the semantic patch language became longer than your general sugg

Re: [RFC PATCH v2 0/7] AC97 device/driver model revamp

2016-08-24 Thread Mark Brown
On Tue, Aug 23, 2016 at 06:39:35PM +0200, Robert Jarzmik wrote: > In the old ac97 bus, the match function was always returning "true", and the > driver did probe. With this new implementation, the ac97 is discovered and > sound/soc/codecs/wm9713.c#wm9713_ac97_probe() is called. I don't export > ac

Re: [PATCH v2] mm: memcontrol: avoid unused function warning

2016-08-24 Thread Michal Hocko
On Wed 24-08-16 12:23:00, Arnd Bergmann wrote: > A bugfix in v4.8-rc2 introduced a harmless warning when CONFIG_MEMCG_SWAP > is disabled but CONFIG_MEMCG is enabled: > > mm/memcontrol.c:4085:27: error: 'mem_cgroup_id_get_online' defined but not > used [-Werror=unused-function] > static struct me

Re: [PATCH v3 0/5] dts patches for qcom tsens support

2016-08-24 Thread Nayak, Rajendra
On 8/24/2016 3:52 PM, Paolo Pisati wrote: On Wed, Aug 17, 2016 at 02:33:40PM -0500, Andy Gross wrote: On Wed, Aug 17, 2016 at 10:48:43AM +0530, Rajendra Nayak wrote: Hey Andy, This is a respin of v2 with some minor fixes pointed out by Rob. Please pull these in for 4.9 Thanks, Rajendra I p

Re: [RFC PATCH v1 18/28] crypto: add AMD Platform Security Processor driver

2016-08-24 Thread Tom Lendacky
On 08/23/2016 02:14 AM, Herbert Xu wrote: > On Mon, Aug 22, 2016 at 07:27:22PM -0400, Brijesh Singh wrote: >> The driver to communicate with Secure Encrypted Virtualization (SEV) >> firmware running within the AMD secure processor providing a secure key >> management interface for SEV guests. >>

Re: [PATCH] dt-bindings: GPIO: Add TPIC2810 binding

2016-08-24 Thread Linus Walleij
On Tue, Aug 23, 2016 at 1:45 PM, Roger Quadros wrote: > From: "Andrew F. Davis" > > Add binding for TPIC2810 GPO device. > > Signed-off-by: Andrew F. Davis > Signed-off-by: Roger Quadros Patch applied. Yours, Linus Walleij

Re: [RFC PATCH 0/3] UART slave device bus

2016-08-24 Thread Linus Walleij
On Mon, Aug 22, 2016 at 5:45 PM, One Thousand Gnomes wrote: > and if I look at the usermode crapfest on a lot of Android systems it > looks similar but with the notion of things like being able to describe > > - Use GPIO mode sleeping and assume first char is X to save power It's really na

Re: [RESEND] [PATCH v2 2/4] dt-bindings: Add jdi lt070me05000 panel bindings

2016-08-24 Thread Vinay Simha
if we do not set the polarity to 8mA, panel will have gibberish display. (information to set 8mA is available only in nexus7-msm-flo-3.4-lollipop-release_dsi kernel nx7 release) i will add this reset-gpios = <&tlmm_pinmux 54 GPIO_ACTIVE_LOW>; On Wed, Aug 24, 2016 at 5:26 PM, Thierry Reding wrote

Re: [PATCH v2 1/2] pinctrl: meson-gxbb: add pins for PWM

2016-08-24 Thread Linus Walleij
On Tue, Aug 23, 2016 at 1:25 PM, Neil Armstrong wrote: > Add support for PWM pins, for EE and AO domains. > > Signed-off-by: Neil Armstrong Patch applied! Yours, Linus Walleij

Re: [PATCH 2/2] reset: uniphier: use of_device_get_match_data() to get matched data

2016-08-24 Thread Philipp Zabel
Hi Masahiro, Am Mittwoch, den 24.08.2016, 15:40 +0900 schrieb Masahiro Yamada: > Use of_device_get_match_data() instead of of_match_node(). With > this, we can retrieve the .data field of the OF match table more > easily. No more need to define (or declare) the match table before > the probe cal

Re: [PATCH 1/2] reset: uniphier: add static qualifier to probe function

2016-08-24 Thread Philipp Zabel
Am Mittwoch, den 24.08.2016, 15:40 +0900 schrieb Masahiro Yamada: > I missed this in the initial commit. > > Signed-off-by: Masahiro Yamada > --- > > drivers/reset/reset-uniphier.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/reset/reset-uniphier.c b/drivers

Re: [PATCH 1/3] perf/x86/intel/bts: Fix confused ordering of PMU callbacks

2016-08-24 Thread Alexander Shishkin
Alexander Shishkin writes: > The intel_bts driver is using a cpu-local 'started' variable to order > callbacks and PMIs and make sure that AUX transactions don't get messed > up. However, the ordering rules in regard to this variable is a complete > mess, which recently resulted in perf_fuzzer-tr

Re: Why do we need reset_control_get_optional() ?

2016-08-24 Thread Philipp Zabel
Am Mittwoch, den 24.08.2016, 15:58 +0900 schrieb Masahiro Yamada: > Hi Philipp, > > 2016-08-16 23:36 GMT+09:00 Masahiro Yamada : > > Hi Philipp, Arnd. > > > > > > > > 2016-08-09 1:39 GMT+09:00 Philipp Zabel : > >> Am Freitag, den 05.08.2016, 17:50 +0200 schrieb Arnd Bergmann: > >>> On Thursday, Ju

Re: [PATCH 2/2] reset: uniphier: use of_device_get_match_data() to get matched data

2016-08-24 Thread Masahiro Yamada
Hi Philipp, 2016-08-24 21:27 GMT+09:00 Philipp Zabel : > Hi Masahiro, > > Am Mittwoch, den 24.08.2016, 15:40 +0900 schrieb Masahiro Yamada: >> Use of_device_get_match_data() instead of of_match_node(). With >> this, we can retrieve the .data field of the OF match table more >> easily. No more ne

Re: [RESEND] [PATCH v2 2/4] dt-bindings: Add jdi lt070me05000 panel bindings

2016-08-24 Thread Thierry Reding
On Wed, Aug 24, 2016 at 05:34:55PM +0530, Vinay Simha wrote: > thierry, > > this is the reference pinouts of the panel > http://www.tonylabs.com/wp-content/uploads/LT070ME05000-pinouts.jpg I can't open that file. > as you suggest , i will change the vcc-supply, > > - iovcc-supply: phandle of t

Re: [RESEND] [PATCH v2 2/4] dt-bindings: Add jdi lt070me05000 panel bindings

2016-08-24 Thread Thierry Reding
On Wed, Aug 24, 2016 at 05:53:00PM +0530, Vinay Simha wrote: > if we do not set the polarity to 8mA, panel will have gibberish display. > (information to set 8mA is available only in > nexus7-msm-flo-3.4-lollipop-release_dsi kernel nx7 release) > > i will add this > reset-gpios = <&tlmm_pinmux 54

Applied "ASoC: samsung: i2s: Add missing clk_disable_unprepare() on error in samsung_i2s_probe()" to the asoc tree

2016-08-24 Thread Mark Brown
The patch ASoC: samsung: i2s: Add missing clk_disable_unprepare() on error in samsung_i2s_probe() has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually s

Re: [PATCH v2 1/8] hisi_sas: add internal abort main code

2016-08-24 Thread Hannes Reinecke
On 08/24/2016 01:05 PM, John Garry wrote: > Add main code for internal abort functionality. > > The internal abort features allows the host controller > to abort commands which are still active in the > controller but have not yet been sent to the slave > device. > > Typically a command only spen

Re: [PATCH v2 2/8] hisi_sas: add internal abort in hisi_sas_dev_gone()

2016-08-24 Thread Hannes Reinecke
On 08/24/2016 01:05 PM, John Garry wrote: > Execute an internal abort for that device when it is removed, > so that commands for that device are not processed. > > Signed-off-by: John Garry > --- > drivers/scsi/hisi_sas/hisi_sas_main.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a

Re: [PATCH v2 3/8] hisi_sas: add internal abort to hisi_sas_abort_task()

2016-08-24 Thread Hannes Reinecke
On 08/24/2016 01:05 PM, John Garry wrote: > Execute an internal abort for executing a task abort. > This is for case of the command still being present > in host when abort is executed. > > For a SATA internal abort, we set abort for all tasks > associated with the device. > > Signed-off-by: John

Re: [PATCH v2 4/8] hisi_sas: add prep_abort_v2_hw()

2016-08-24 Thread Hannes Reinecke
On 08/24/2016 01:05 PM, John Garry wrote: > Add function to prepare the an internal abort > for v2 hw. > > Signed-off-by: John Garry > --- > drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 33 + > 1 file changed, 33 insertions(+) > Reviewed-by: Hannes Reinecke Cheers,

Re: [RFC PATCH v3 0/2] Type-C Port Manager

2016-08-24 Thread Heikki Krogerus
Hi Guenter, On Tue, Aug 23, 2016 at 02:10:49PM -0700, Guenter Roeck wrote: > The following series of patches implements a USB Type-C Port Manager > using the pending USB Type-C class code as basis. The code is still WIP, > but I think it is important to get feedback from the community at this poin

Re: [PATCH 4/7] pinctrl: samsung: Add GPFx support of Exynos5433

2016-08-24 Thread Chanwoo Choi
Hi Tomasz, I'm sorry for delay reply. On 2016년 08월 19일 20:31, Tomasz Figa wrote: > Hi Chanwoo, > > 2016-08-19 18:07 GMT+09:00 Chanwoo Choi : >> Hi Tomasz Figa, >> >> Due to wrong setting of email client, >> your reply is deleted on my email client at the company. > > I used Gmail (in plain text

Re: [RFC PATCH 2/4] perf-probe: Add offline output directory option

2016-08-24 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 24, 2016 at 02:58:12PM +0900, Masami Hiramatsu escreveu: > Add offline output direcrtory option. This allows user to > store probe event definition in offline output directory. In such cases you should show it in action, like I am doing now to test this patch: [root@jouet ~]# perf p

Re: [PATCH v2 5/8] hisi_sas: add v2 hw slot complete internal abort support

2016-08-24 Thread Hannes Reinecke
On 08/24/2016 01:05 PM, John Garry wrote: > Add code in slot_complete_v2_hw() to deal with the > slots which have completed due to internal abort. > > The status codes have the following meaning: > - STAT_IO_ABORTED: the IO has been aborted due to > internal abort, whether by device or individual

Re: [PATCH v2 7/8] hisi_sas: add TMF success check

2016-08-24 Thread Hannes Reinecke
On 08/24/2016 01:05 PM, John Garry wrote: > When a tmf is issued, various response codes can be > returned from the target. For a query tmf the > response may be TMF_RESP_FUNC_COMPLETE or > TMF_RESP_FUNC_SUCC. > Add a condition for TMF_RESP_FUNC_SUCC to > hisi_sas_exec_internal_tmf_task(). > This a

Re: [PATCH v2 6/8] hisi_sas: fail tmf task prep when port detached

2016-08-24 Thread Hannes Reinecke
On 08/24/2016 01:05 PM, John Garry wrote: > When the port is detached we cannot execute a TMF, > as there can be no device attached to the port. > > Signed-off-by: John Garry > --- > drivers/scsi/hisi_sas/hisi_sas_main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/d

Re: [PATCH v2 8/8] hisi_sas: update version to 1.6

2016-08-24 Thread Hannes Reinecke
On 08/24/2016 01:05 PM, John Garry wrote: > Signed-off-by: John Garry > --- > drivers/scsi/hisi_sas/hisi_sas.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/scsi/hisi_sas/hisi_sas.h > b/drivers/scsi/hisi_sas/hisi_sas.h > index 8311360..ca55ec2 100644 > --- a/d

[tip:x86/apic] x86/apic: Update comment about disabling processor focus

2016-08-24 Thread tip-bot for Wei Jiangang
Commit-ID: 5035da41996d346c648a65c1d7a9f6469c7d358a Gitweb: http://git.kernel.org/tip/5035da41996d346c648a65c1d7a9f6469c7d358a Author: Wei Jiangang AuthorDate: Fri, 19 Aug 2016 11:22:37 +0800 Committer: Ingo Molnar CommitDate: Wed, 24 Aug 2016 11:24:33 +0200 x86/apic: Update comment ab

Re: [REGRESSION] Select hang with zero sized UDP packets

2016-08-24 Thread Eric Dumazet
On Wed, 2016-08-24 at 11:22 +0300, Dan Akunis wrote: > When select wakes up on a UDP socket, user is expecting to get data. Getting > 0 from recvfrom() or whatever read function she uses, is a wrong attitude. > I agree with David. > > The unit test that expects select to wake up is wrong and shou

[tip:x86/apic] x86/smpboot: Check APIC ID before setting up default routing

2016-08-24 Thread tip-bot for Wei Jiangang
Commit-ID: 384d9fe3741657c8ed8cd9bf30bc1d4611864d56 Gitweb: http://git.kernel.org/tip/384d9fe3741657c8ed8cd9bf30bc1d4611864d56 Author: Wei Jiangang AuthorDate: Fri, 19 Aug 2016 11:22:36 +0800 Committer: Ingo Molnar CommitDate: Wed, 24 Aug 2016 11:24:33 +0200 x86/smpboot: Check APIC ID

[tip:x86/asm] dma-api: Teach the "DMA-from-stack" check about vmapped stacks

2016-08-24 Thread tip-bot for Andy Lutomirski
Commit-ID: b4a0f533e5976cb1a79f31d6152e1d322d79b7f1 Gitweb: http://git.kernel.org/tip/b4a0f533e5976cb1a79f31d6152e1d322d79b7f1 Author: Andy Lutomirski AuthorDate: Thu, 11 Aug 2016 02:35:22 -0700 Committer: Ingo Molnar CommitDate: Wed, 24 Aug 2016 12:11:41 +0200 dma-api: Teach the "DMA-

Re: [RFC PATCH 4/4] perf-probe: Support probing on offline cross-arch binary

2016-08-24 Thread Arnaldo Carvalho de Melo
Em Wed, Aug 24, 2016 at 02:58:41PM +0900, Masami Hiramatsu escreveu: > Support probing on offline cross-architecture binary by > adding getting the target machine arch from ELF and > choose correct register string for the machine. > > Here is an example: > - > $ mkdir tracing No need for

[tip:x86/asm] x86/mm/64: Enable vmapped stacks (CONFIG_HAVE_ARCH_VMAP_STACK=y)

2016-08-24 Thread tip-bot for Andy Lutomirski
Commit-ID: e37e43a497d5a8b7c0cc1736d56986f432c394c9 Gitweb: http://git.kernel.org/tip/e37e43a497d5a8b7c0cc1736d56986f432c394c9 Author: Andy Lutomirski AuthorDate: Thu, 11 Aug 2016 02:35:23 -0700 Committer: Ingo Molnar CommitDate: Wed, 24 Aug 2016 12:11:42 +0200 x86/mm/64: Enable vmappe

[tip:x86/asm] fork: Add generic vmalloced stack support

2016-08-24 Thread tip-bot for Andy Lutomirski
Commit-ID: ba14a194a434ccc8f733e263ad2ce941e35e5787 Gitweb: http://git.kernel.org/tip/ba14a194a434ccc8f733e263ad2ce941e35e5787 Author: Andy Lutomirski AuthorDate: Thu, 11 Aug 2016 02:35:21 -0700 Committer: Ingo Molnar CommitDate: Wed, 24 Aug 2016 12:11:41 +0200 fork: Add generic vmallo

[tip:x86/asm] ftrace: Only allocate the ret_stack 'fp' field when needed

2016-08-24 Thread tip-bot for Josh Poimboeuf
Commit-ID: daa460a88c09b26b68e8b017de589c217e901afb Gitweb: http://git.kernel.org/tip/daa460a88c09b26b68e8b017de589c217e901afb Author: Josh Poimboeuf AuthorDate: Fri, 19 Aug 2016 06:52:56 -0500 Committer: Ingo Molnar CommitDate: Wed, 24 Aug 2016 12:15:14 +0200 ftrace: Only allocate the

[tip:x86/asm] ftrace: Add return address pointer to ftrace_ret_stack

2016-08-24 Thread tip-bot for Josh Poimboeuf
Commit-ID: 9a7c348ba6a46f6270d4fe49577649dad5664fe7 Gitweb: http://git.kernel.org/tip/9a7c348ba6a46f6270d4fe49577649dad5664fe7 Author: Josh Poimboeuf AuthorDate: Fri, 19 Aug 2016 06:52:57 -0500 Committer: Ingo Molnar CommitDate: Wed, 24 Aug 2016 12:15:14 +0200 ftrace: Add return addres

[tip:x86/asm] ftrace: Remove CONFIG_HAVE_FUNCTION_GRAPH_FP_TEST from config

2016-08-24 Thread tip-bot for Josh Poimboeuf
Commit-ID: e4a744ef2fef5c803348b650a3a2d01da7797a9b Gitweb: http://git.kernel.org/tip/e4a744ef2fef5c803348b650a3a2d01da7797a9b Author: Josh Poimboeuf AuthorDate: Fri, 19 Aug 2016 06:52:55 -0500 Committer: Ingo Molnar CommitDate: Wed, 24 Aug 2016 12:15:13 +0200 ftrace: Remove CONFIG_HAV

Re: [PATCH v2] pwm: add pwm driver for HiSilicon BVT SOCs

2016-08-24 Thread Thierry Reding
On Mon, Aug 22, 2016 at 03:50:13PM +0800, Jian Yuan wrote: > From: yuanjian > > Add pwm driver for HiSilicon BVT SOCs pwm -> PWM, please. It'd be good to have more information here about what the hardware can do, where to find it, etc. > > Reviewed-by: Jiancheng Xue > Signed-off-by: Jian Yuan

[tip:x86/asm] ftrace: Add ftrace_graph_ret_addr() stack unwinding helpers

2016-08-24 Thread tip-bot for Josh Poimboeuf
Commit-ID: 223918e32a87c79ac55ca4aa513ba405ba4d57cd Gitweb: http://git.kernel.org/tip/223918e32a87c79ac55ca4aa513ba405ba4d57cd Author: Josh Poimboeuf AuthorDate: Fri, 19 Aug 2016 06:52:58 -0500 Committer: Ingo Molnar CommitDate: Wed, 24 Aug 2016 12:15:14 +0200 ftrace: Add ftrace_graph_

[tip:x86/asm] sched/x86: Add 'struct inactive_task_frame' to better document the sleeping task stack frame

2016-08-24 Thread tip-bot for Brian Gerst
Commit-ID: 7b32aeadbc95d4a41402c1c0da6aa3ab51af4c10 Gitweb: http://git.kernel.org/tip/7b32aeadbc95d4a41402c1c0da6aa3ab51af4c10 Author: Brian Gerst AuthorDate: Sat, 13 Aug 2016 12:38:18 -0400 Committer: Ingo Molnar CommitDate: Wed, 24 Aug 2016 12:27:41 +0200 sched/x86: Add 'struct inact

<    1   2   3   4   5   6   7   8   9   >