Re: + signal-turn-dequeue_signal_lock-into-kernel_dequeue_signal.patch added to -mm tree

2015-10-25 Thread Oleg Nesterov
On 10/24, Markus Pargmann wrote: > > Hi Oleg, > > On Sat, Oct 24, 2015 at 09:48:26PM +0200, Oleg Nesterov wrote: > > > > Thanks! I'll send *-fix.patch to Andrew. I'll send it in a minute, could you please review? > > But you know, dcc909d90ccd (nbd: Add locking for tasks) doesn't look exactly > >

Re: [PATCH] iio: Move IIO Dummy Driver out of staging

2015-10-25 Thread Jonathan Cameron
On 09/10/15 14:31, Cristina Opriceana wrote: > This patch moves the reference IIO dummy driver from drivers/staging/iio > into a separate folder, drivers/iio/dummy and adds the proper Kconfig > and Makefile for it. > > A new config menu entry called IIO dummy driver has also been added > in the In

Re: [PATCH 1/2] iio: adc: mcp320x: Deprecated compatible strings with no vendor prefix

2015-10-25 Thread Jonathan Cameron
On 14/10/15 13:54, Javier Martinez Canillas wrote: > The Microchip Analog to Digital Converter (ADC) Device Tree binding > documents compatible strings with no vendor prefix. Since it should > compatible strings with also a vendor, add these to the binding doc > and mark the old ones as deprecated.

Re: [PATCH 1/2] iio: adc: mcp320x: Deprecated compatible strings with no vendor prefix

2015-10-25 Thread Jonathan Cameron
On 14/10/15 16:27, Michael Welling wrote: > On Wed, Oct 14, 2015 at 02:54:38PM +0200, Javier Martinez Canillas wrote: >> The Microchip Analog to Digital Converter (ADC) Device Tree binding >> documents compatible strings with no vendor prefix. Since it should >> compatible strings with also a vendo

[PATCH -mm] signal-turn-dequeue_signal_lock-into-kernel_dequeue_signal-fix

2015-10-25 Thread Oleg Nesterov
Andrew, As Markus reports (thanks!) signal-turn-dequeue_signal_lock-into-kernel_dequeue_signal.patch conflicts with the recent change in Linus' tree, > I just realised that this patch will conflict with a fixup patch for nbd > that will be included in rc7. > > dcc909d90ccd (nbd: Add loc

Re: [PATCH 2/2] iio: adc: mcp320x: Add compatible with vendor prefix to OF table

2015-10-25 Thread Jonathan Cameron
On 14/10/15 16:27, Michael Welling wrote: > On Wed, Oct 14, 2015 at 02:54:39PM +0200, Javier Martinez Canillas wrote: >> The driver Device Tree binding now documents compatible strings that have >> a vendor prefix, so add these to the OF device ID table to match and mark >> the old ones as deprecat

RE: [char-misc 1/2 4.3 V2] mei: Fix debugfs filename in error output

2015-10-25 Thread Winkler, Tomas
> > > > > > goto err; > > > > > > > > You should never care if a debugfs call fails or not. > > > > > > The system should not be dependent on the debug feature but, it is > > > always good to know if there our system is failing > > > > And what can you do if it is "failing"? Really

Re: [PATCH v4] iio: mma8452: support either of the available interrupt pins

2015-10-25 Thread Martin Kepplinger
Am 25. Oktober 2015 12:05:05 MEZ, schrieb Jonathan Cameron : >On 22/10/15 19:22, Rob Herring wrote: >> On Thu, Oct 15, 2015 at 8:10 AM, Martin Kepplinger > wrote: >>> This change is important in order for everyone to be easily able to >use the >>> driver for one of the supported accelerometer chi

Re: [PATCH tip/locking/core v4 1/6] powerpc: atomic: Make *xchg and *cmpxchg a full barrier

2015-10-25 Thread Boqun Feng
On Sat, Oct 24, 2015 at 07:53:56PM +0800, Boqun Feng wrote: > On Sat, Oct 24, 2015 at 12:26:27PM +0200, Peter Zijlstra wrote: > > > > Right, futexes are a pain; and I think we all agreed we didn't want to > > go rely on implementation details unless we absolutely _have_ to. > > > > Agreed. > >

Re: [PATCH 3/3] sched: Implement interface for cgroup unified hierarchy

2015-10-25 Thread Florian Weimer
On 10/25/2015 12:58 PM, Theodore Ts'o wrote: > Well, I was thinking we could just teach them to use > "syscall(SYS_gettid)". Right, and that's easier if TIDs are officially part of the GNU API. I think the worry is that some future system might have TIDs which do not share the PID space, or are

(IPVN) EuP/FRBWDC/EcB-3109/2015,

2015-10-25 Thread European
European Parliament 36 St Peter's St, London N1 8JT, United Kingdom. In consideration of the legislative resolution reached by the European Parliament in conjunctions with the European Central Bank on financial and allied matters,following eries of complaints and petitions received from the off

Re: [PATCHv2 2/2] iio: dac: Add support for the AD5592R/AD5593R ADCs/DACs

2015-10-25 Thread Jonathan Cameron
On 13/10/15 10:38, Paul Cercueil wrote: > This patch adds support for the AD5592R (spi) and AD5593R (i2c) > ADC/DAC devices. > > Signed-off-by: Paul Cercueil A few minor questions inline... > --- > drivers/iio/dac/Kconfig | 27 > drivers/iio/dac/Makefile | 3 +

Re: [PATCH v3 03/15] scsi: ufs: verify command tag validity

2015-10-25 Thread ygardi
> 2015-09-02 19:13 GMT+09:00 Yaniv Gardi : >> A race condition appear to exist between request completion when >> scsi_done() is called to end the request and set the tag back to >> -1 (at blk_queue_end_tag() scsi_end_request), and scsi layer error >> handling which aborts the command and reuses it

[PATCH 1/1] kthread: introduce kthread_get_run() to fix __nbd_ioctl()

2015-10-25 Thread Oleg Nesterov
It is not safe to use the task_struct returned by kthread_run(threadfn) if threadfn() can exit before the "owner" does kthread_stop(), nothing protects this task_struct. So __nbd_ioctl() looks buggy; a killed nbd_thread_send() can exit, free its task_struct, and then kthread_stop() can use the fre

[PATCH 0/1] kthread: introduce kthread_get_run() to fix __nbd_ioctl()

2015-10-25 Thread Oleg Nesterov
Untested. Needs an ack from Markus, but unless I missed something this is v4.3 material. Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please

Re: [PATCHv2 1/2] Documentation: ad5592r: Added devicetree bindings documentation

2015-10-25 Thread Jonathan Cameron
On 13/10/15 10:37, Paul Cercueil wrote: > Signed-off-by: Paul Cercueil Looks good to me, but as it is a little bit 'different' and we are defining entirely new generic bindings (the channel modes stuff) I would like some more input. It might be overkill but we do of course have the pinctl framewo

Re: [PATCH v3 05/15] scsi: ufs: increase fDeviceInit query response timeout

2015-10-25 Thread ygardi
> 2015-09-02 19:13 GMT+09:00 Yaniv Gardi : >> fDeviceInit query response time for some devices is too long that >> default >> query request timeout of 100ms may not be enough. Experiments show that >> fDeviceInit response sometimes takes 500ms so to be on safer side this >> change sets the timeout

Re: [PATCH v4 1/2] acpi: add acpi_preset_companion() stub

2015-10-25 Thread Rafael J. Wysocki
On Thu, Oct 22, 2015 at 11:17 AM, Dustin Byford wrote: > Add a stub for acpi_preset_companion(). Fixes build failures when > acpi_preset_companion() is used and CONFIG_ACPI is not set. > > Signed-off-by: Dustin Byford Acked-by: Rafael J. Wysocki > --- > include/linux/acpi.h | 6 ++ > 1 f

Getrandom wrapper

2015-10-25 Thread Theodore Ts'o
On Sun, Oct 25, 2015 at 02:17:23PM +0100, Florian Weimer wrote: > > I think we can reach consensus for an implementation which makes this code > > unsigned char session_key[32]; > getrandom (session_key, sizeof (session_key), 0); > install_session_key (session_key); > > correct. That is,

Re: [PATCH v3 09/15] scsi: ufs: add retries for hibern8 enter

2015-10-25 Thread ygardi
> 2015-09-02 19:13 GMT+09:00 Yaniv Gardi : >> If hibern8 enter command fails then UFS link state may be unknown which >> may result into timeout of all the commands issued after failure. >> >> This change does 2 things (for pre-defined number of retry counts) after >> hibern8 enter failure: >> 1. R

Re: [GIT PULL] On-demand device probing

2015-10-25 Thread Rafael J. Wysocki
On Sun, Oct 25, 2015 at 12:06 AM, Mark Brown wrote: > On Sat, Oct 24, 2015 at 04:17:12PM +0200, Rafael J. Wysocki wrote: > >> Well, I'm not quite sure why exactly everyone is so focused on probing here. > > Probe deferral is really noisy even if it's working fine on a given > system so it's consta

[PATCH 1/8] net: thunderx: add missing of_node_put

2015-10-25 Thread Julia Lawall
for_each_child_of_node performs an of_node_get on each iteration, so a break out of the loop requires an of_node_put. A simplified version of the semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // @@ local idexpression r.n; expression r,e; @@ for_each_child_of

[PATCH 2/8] net: netcp: add missing of_node_put

2015-10-25 Thread Julia Lawall
for_each_child_of_node performs an of_node_get on each iteration, so a break out of the loop requires an of_node_put. A simplified version of the semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // @@ local idexpression r.n; expression r,e; @@ for_each_child_of

[PATCH 0/8] add missing of_node_put

2015-10-25 Thread Julia Lawall
The various for_each device_node iterators performs an of_node_get on each iteration, so a break out of the loop requires an of_node_put. The complete semantic patch that fixes this problem is (http://coccinelle.lip6.fr): // @r@ local idexpression n; expression e1,e2; iterator name for_each_node

Re: Build regressions/improvements in v4.3-rc7

2015-10-25 Thread Russell King - ARM Linux
On Sun, Oct 25, 2015 at 11:39:15AM +0100, Geert Uytterhoeven wrote: > On Sun, Oct 25, 2015 at 11:18 AM, Geert Uytterhoeven > wrote: > > On Sun, Oct 25, 2015 at 11:12 AM, Geert Uytterhoeven > > wrote: > >> JFYI, when comparing v4.3-rc7[1] to v4.3-rc6[3], the summaries are: > >> - build errors: +

[PATCH 7/8] ath6kl: add missing of_node_put

2015-10-25 Thread Julia Lawall
for_each_compatible_node performs an of_node_get on each iteration, so a break out of the loop requires an of_node_put. A simplified version of the semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // @@ expression e; local idexpression n; @@ for_each_compatible

[PATCH 6/8] [media] v4l: xilinx-tpg: add missing of_node_put

2015-10-25 Thread Julia Lawall
for_each_child_of_node performs an of_node_get on each iteration, so a break out of the loop requires an of_node_put. A simplified version of the semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // @@ expression root,e; local idexpression child; @@ for_each_chi

[PATCH 5/8] [media] v4l: xilinx-vipp: add missing of_node_put

2015-10-25 Thread Julia Lawall
for_each_child_of_node performs an of_node_get on each iteration, so a break out of the loop requires an of_node_put. A simplified version of the semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // @@ expression root,e; local idexpression child; @@ for_each_chi

[PATCH 8/8] net: mv643xx_eth: add missing of_node_put

2015-10-25 Thread Julia Lawall
for_each_available_child_of_node performs an of_node_get on each iteration, so a break out of the loop requires an of_node_put. A simplified version of the semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // @@ expression root,e; local idexpression child; @@ fo

[PATCH 4/8] net: phy: mdio: add missing of_node_put

2015-10-25 Thread Julia Lawall
for_each_available_child_of_node performs an of_node_get on each iteration, so a break out of the loop requires an of_node_put. A simplified version of the semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // @@ expression root,e; local idexpression child; @@ fo

[PATCH 3/8] netdev/phy: add missing of_node_put

2015-10-25 Thread Julia Lawall
for_each_available_child_of_node performs an of_node_get on each iteration, so a break out of the loop requires an of_node_put. A simplified version of the semantic patch that fixes this problem is as follows (http://coccinelle.lip6.fr): // @@ local idexpression r.n; expression r,e; @@ for_eac

regmap-spmi.c:undefined reference to `spmi_register_read'

2015-10-25 Thread kbuild test robot
Hi Eduardo, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 32b88194f71d6ae7768a29f87fbba454728273ee commit: cb7fb4d342023d03070fcc1ed73fcd43682973d7 thermal: qcom_spmi: allow compile test date: 6 weeks ago config

[PATCH -mm 1/3] nbd: nbd_thread_send: remove the unnecessary kernel_dequeue_signal()

2015-10-25 Thread Oleg Nesterov
nbd_thread_send() does kernel_dequeue_signal() at the end for no reason, it is fine to exit with the pending SIGKILL. Not sure it really needs another kernel_dequeue_signal() inside the main loop, we know that signal_pending() means SIGKILL. But probably we want to clear TIF_SIGPENDING before sock

[PATCH -mm 0/3] nbd: fix/cleanup the usage of kernel_dequeue_signal()

2015-10-25 Thread Oleg Nesterov
On top of signal-turn-dequeue_signal_lock-into-kernel_dequeue_signal in -mm plus signal-turn-dequeue_signal_lock-into-kernel_dequeue_signal-fix I sent today. Another untested (but simple) series. Needs an ack from Markus or should be ignored, I can easily miss somethin

[PATCH -mm 3/3] nbd: don't abuse irqsave/irqrestore while taking nbd->tasks_lock

2015-10-25 Thread Oleg Nesterov
Both nbd_thread_recv() and nbd_thread_send() are might_sleep() and called with irqs enabled(), irqsave/irqrestore make no sense and imo look confusing. Signed-off-by: Oleg Nesterov --- drivers/block/nbd.c | 22 ++ 1 files changed, 10 insertions(+), 12 deletions(-) diff --g

Re: [PATCH v5 1/2] acpi: add acpi_preset_companion() stub

2015-10-25 Thread Rafael J. Wysocki
On Saturday, October 24, 2015 06:41:24 PM Wolfram Sang wrote: > > --wac7ysb48OaltWcw > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Fri, Oct 23, 2015 at 12:27:06PM -0700, Dustin Byford wrote: > > Add a stub for acpi_

[PATCH -mm 2/3] nbd: nbd_thread_recv: remove the buggy kernel_dequeue_signal()

2015-10-25 Thread Oleg Nesterov
nbd_thread_recv() is called by userspace, it is very wrong to dequeue and throw out a signal. I do not understand why nbd_thread_recv() (and nbd_thread_send() btw) does sock_shutdown(); the caller, __nbd_ioctl(NBD_DO_IT) does this too. Signed-off-by: Oleg Nesterov --- drivers/block/nbd.c |5

Re: [PATCH v4 1/2] acpi: add acpi_preset_companion() stub

2015-10-25 Thread Rafael J. Wysocki
On Sunday, October 25, 2015 02:40:10 PM Rafael J. Wysocki wrote: > On Thu, Oct 22, 2015 at 11:17 AM, Dustin Byford > wrote: > > Add a stub for acpi_preset_companion(). Fixes build failures when > > acpi_preset_companion() is used and CONFIG_ACPI is not set. > > > > Signed-off-by: Dustin Byford >

Re: [PATCH v3 12/15] scsi: ufs: reduce the interrupts for power mode change requests

2015-10-25 Thread ygardi
> 2015-09-02 19:13 GMT+09:00 Yaniv Gardi : >> DME commands such as Hibern8 enter/exit and gear switch generate 2 >> completion interrupts, one for confirmation that command is received >> by local UniPro and 2nd one is the final confirmation after >> communication >> with remote UniPro. Currently b

Re: [PATCH v3 13/15] scsi: ufs: add missing memory barriers

2015-10-25 Thread ygardi
> 2015-09-02 19:13 GMT+09:00 Yaniv Gardi : >> Performing several writes to UFS host controller registers has >> no gurrantee of ordering, so we must make sure register writes >> to setup request list base address etc. are performed before the >> run/stop register is enabled. >> In addition, when se

Re: [PATCH v8] seccomp, ptrace: add support for dumping seccomp filters

2015-10-25 Thread Oleg Nesterov
On 10/21, Tycho Andersen wrote: > > > And this leads to another question... If we expect that this interface > > can change later, then perhaps PTRACE_SECCOMP_GET_FILTER should also > > dump some header before copy_to_user(fprog->filter) ? Say, just > > "unsigned long version" == 0 for now. So that

Re: [PATCH 0/2] wait/ptrace: always assume __WALL if the child is traced

2015-10-25 Thread Oleg Nesterov
On 10/22, Pedro Alves wrote: > > In any case, to make sure existing gdb binaries would still work > with your kernel change, I ran GDB's testsuite with this: > > ~~ > diff --git a/gdb/nat/linux-waitpid.c b/gdb/nat/linux-waitpid.c > index cbcdd95..864ba2e 100644 > --- a/g

[PATCH] btrfs: zero out delayed node upon allocation

2015-10-25 Thread Alexandru Moise
This allows us to trim out half of btrfs_init_delayed_node() which is now reduntant. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- fs/btrfs/delayed-inode.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/fs/btrfs/delayed-inode.c b/fs/btrfs/delayed-i

Re: [PATCH v10 2/4] PM / Domains: add setter for dev.pm_domain

2015-10-25 Thread Rafael J. Wysocki
On Wednesday, October 21, 2015 05:34:12 PM Tomeu Vizoso wrote: > Adds a function that sets the pointer to dev_pm_domain in struct device > and that warns if the device has already finished probing. The reason > why we want to enforce that is because in the general case that can > cause problems and

[PATCHv5 00/52] perf stat: Add scripting support

2015-10-25 Thread Jiri Olsa
hi, sending another version of stat scripting. v5 changes: - several patches from v4 already taken - using u16 for cpu number in cpu_map_event - renamed PERF_RECORD_HEADER_ATTR_UPDATE to PERF_RECORD_EVENT_UPDATE - moved low hanging fuits patches to the start of the patchset - patchset te

[PATCH 22/52] perf tools: Add event_update event scale type

2015-10-25 Thread Jiri Olsa
Adding scale type 'event update' event, that stores/transfer events scale value. The PMU events can define the scale value which is used to multiply events data. Link: http://lkml.kernel.org/n/tip-by8wb1atqzhtpx86ybjhw...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/tests/event_update.

[PATCH 08/52] perf tools: Add cpu_map event synthesize function

2015-10-25 Thread Jiri Olsa
Introduce perf_event__synthesize_cpu_map function to synthesize struct cpu_map. Added generic interface: cpu_map_data__alloc cpu_map_data__synthesize to make the cpu_map synthesizing usable for other events. Link: http://lkml.kernel.org/n/tip-miidn8vqsx3udu4ct8103...@git.kernel.org Signed-of

[PATCH 20/52] perf tools: Add event_update event

2015-10-25 Thread Jiri Olsa
It'll server as base event for additional event attributes details, that are not part of the attr event. At the moment this event is just dummy one without specific functionality. The type value will distinguish the update event details. It comes in following patches. The idea for this event is t

[PATCH 12/52] perf tools: Add stat config event synthesize function

2015-10-25 Thread Jiri Olsa
Introduce perf_event__synthesize_stat_config function to synthesize 'struct perf_stat_config'. Storing stat config in form of tag-value pairs in a believe it'll sort out future version issues. Link: http://lkml.kernel.org/n/tip-zof1adf5flwp38xdzxzn4...@git.kernel.org Signed-off-by: Jiri Olsa ---

[PATCH 06/52] perf tools: Add perf_event__fprintf_thread_map function

2015-10-25 Thread Jiri Olsa
To display thread_map event for raw dump. Link: http://lkml.kernel.org/n/tip-q60h5rhe4mmyvzkjst64e...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/event.c | 16 tools/perf/util/event.h | 1 + 2 files changed, 17 insertions(+) diff --git a/tools/perf/util/event.c

[PATCH 42/52] perf stat report: Process stat and stat round events

2015-10-25 Thread Jiri Olsa
Adding processing of stat and stat round events. The stat data com in stat events, using generic function process_stat_round_event to store data under perf_evsel object. The stat-round events comes each interval or as last event in non interval mode. The function process_stat_round_event process

[PATCH 34/52] perf stat record: Write stat events on record

2015-10-25 Thread Jiri Olsa
Writing stat events on 'perf stat record' at the time we read counter values from kernel. Link: http://lkml.kernel.org/n/tip-ojc826gy0x9jj74elbjfc...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/too

[PATCH 05/52] perf tools: Add thread_map__new_event function

2015-10-25 Thread Jiri Olsa
Introducing thread_map__new_event function to create struct thread_map object from thread_map event. Link: http://lkml.kernel.org/n/tip-0gu5uv3g51p4mzul93bhh...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/tests/thread-map.c | 14 ++ tools/perf/util/thread_map.c | 27 +

[PATCH 32/52] perf stat record: Store events IDs in perf data file

2015-10-25 Thread Jiri Olsa
Store event IDs in evlist object so it get stored into perf.data file. Also making perf_evlist__id_add_fd global. Link: http://lkml.kernel.org/n/tip-v2xwpeots3tz08e44lej5...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 35 +++ tools/per

[PATCH 18/52] perf tools: Add stat round event synthesize function

2015-10-25 Thread Jiri Olsa
Introduce perf_event__synthesize_stat_round function to synthesize 'struct stat_round_event'. Link: http://lkml.kernel.org/n/tip-gl8rk2il9grrnqalrqlo7...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/tests/builtin-test.c | 4 tools/perf/tests/stat.c | 21 ++

[PATCH 50/52] perf script: Display stat events by default

2015-10-25 Thread Jiri Olsa
If no script is specified for stat data, display stat events in raw form. $ perf stat record ls SNIP Performance counter stats for 'ls': 0.851585 task-clock (msec) #0.717 CPUs utilized 0 context-switches #0.000 K/sec

[PATCH 51/52] perf script: Add python support for stat events

2015-10-25 Thread Jiri Olsa
Add support to get stat events data in perf python scripts. The python script shall implement following new interface to process stat data: def stat___[](cpu, thread, time, val, ena, run): - is called for every stat event for given counter, if user monitors 'cycles,instructions:u" fo

[PATCH 48/52] perf script: Add process_stat/process_stat_interval scripting interface

2015-10-25 Thread Jiri Olsa
Python and perl scripting code will define those callbacks and get stat data. Link: http://lkml.kernel.org/n/tip-6802z3siu5f59wdsmhaym...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/trace-event.h | 4 1 file changed, 4 insertions(+) diff --git a/tools/perf/util/trace-event.

[PATCH 52/52] perf script: Add stat-cpi.py script

2015-10-25 Thread Jiri Olsa
Adding stat-cpi.py as an example of how to do stat scripting. It computes the CPI metrics from cycles and instructions events. Following stat record/report/script combinations could be used: - get CPI for given workload $ perf stat -e cycles,instructions record ls SNIP Performance

[PATCH 49/52] perf script: Add stat default handlers

2015-10-25 Thread Jiri Olsa
Implement struct scripting_ops::(process_stat|process_stat_interval) handlers - calling scripting handlers from stat events handlers. Link: http://lkml.kernel.org/n/tip-3iu6vmvuur1bntbnh43v3...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-script.c | 31 +

[PATCH 44/52] perf stat report: Move csv_sep initialization before report command

2015-10-25 Thread Jiri Olsa
So we have csv_sep properly initialized before report command leg. Link: http://lkml.kernel.org/n/tip-i5mmbomj7lt4eg04awzoc...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/perf/built

[PATCH 47/52] perf script: Process stat config event

2015-10-25 Thread Jiri Olsa
Adding processing of stat config event and initialize stat_config object. Link: http://lkml.kernel.org/n/tip-1m1s8mahzq38foo32qb7p...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-script.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tools/perf/builtin-script.

[PATCH 45/52] perf stat report: Allow to override aggr_mode

2015-10-25 Thread Jiri Olsa
Allowing to override record aggr_mode. It's possible to use perf stat like: $ perf stat report -A $ perf stat report --per-core $ perf stat report --per-socket To customize the recorded aggregate mode regardless what was used during the stat record command. Link: http://lkml.kernel.org/

[PATCH 46/52] perf script: Process cpu/threads maps

2015-10-25 Thread Jiri Olsa
Adding processing of cpu/threads maps. Configuring session's evlist with these maps. Link: http://lkml.kernel.org/n/tip-s3txa1u2qv3bi8uspp4hi...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-script.c | 67 + 1 file changed, 67 insertio

[PATCH 43/52] perf stat report: Process event update events

2015-10-25 Thread Jiri Olsa
Adding processing of event update events, so perf stat report can store additional info for events - unit,scale,name. Link: http://lkml.kernel.org/n/tip-3afz05w7naoeu8slxi9hc...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 1 + 1 file changed, 1 insertion(+) diff --gi

[PATCH 38/52] perf stat report: Add report command

2015-10-25 Thread Jiri Olsa
Adding 'perf stat report' command support. ATM it only processes attr events and display nothing. Link: http://lkml.kernel.org/n/tip-a43rs4c6szofeuo2gjlcp...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/Documentation/perf-stat.txt | 12 +++ tools/perf/builtin-stat.c |

[PATCH v4 03/15] scsi: ufs: verify command tag validity

2015-10-25 Thread Yaniv Gardi
A race condition appear to exist between request completion when scsi_done() is called to end the request and set the tag back to -1 (at blk_queue_end_tag() scsi_end_request), and scsi layer error handling which aborts the command and reuses it to request sense data. Sending the request sense is do

[PATCH v4 00/15] Big fixes, retries, handle a race condition

2015-10-25 Thread Yaniv Gardi
Important: This serie of 15 small patches should be pushed after the series of 8 patches "Fix error message and present UFS variant probe" V4: fixing a few comments from reviewers V3: removed specific calls to wmb() since they are redundant. V2: a few minor changes V1: This serie of 15 small pa

[PATCH v4 06/15] scsi: ufs: avoid exception event handler racing with PM callbacks

2015-10-25 Thread Yaniv Gardi
If device raises the exception event in the response to the commands sent during the runtime/system PM callbacks, exception event handler might run in parallel with PM callbacks and may see unclocked register accesses. This change fixes this issue by not scheduling the exception event handler while

[PATCH v4 04/15] scsi: ufs: clear outstanding_request bit in case query timeout

2015-10-25 Thread Yaniv Gardi
When sending a query to the device returns with a timeout error, we clear the corresponding bit in the DOORBELL register but we don't clear the outstanding_request field as we should. This patch fixes this bug. Signed-off-by: Yaniv Gardi --- drivers/scsi/ufs/ufshcd.c | 22 --

[PATCH v4 09/15] scsi: ufs: add retries for hibern8 enter

2015-10-25 Thread Yaniv Gardi
If hibern8 enter command fails then UFS link state may be unknown which may result into timeout of all the commands issued after failure. This change does 2 things (for pre-defined number of retry counts) after hibern8 enter failure: 1. Recovers the UFS link to active state 2. If link is recovered

[PATCH v4 14/15] scsi: ufs: commit descriptors before setting the doorbell

2015-10-25 Thread Yaniv Gardi
Add a write memory barrier to make sure descriptors prepared are actually written to memory before ringing the doorbell. We have also added the write memory barrier after ringing the doorbell register so that controller sees the new request immediately. Signed-off-by: Gilad Broner Signed-off-by:

[PATCH v4 15/15] scsi: ufs: add wrapper for retrying sending query attribute

2015-10-25 Thread Yaniv Gardi
Sometimes queries from the device might return a failure so it is recommended to retry sending the query, before giving up. This change adds a wrapper to retry sending a query attribute, in cases where we need to wait longer, before we continue, or before reporting a failure. Signed-off-by: Yaniv

[PATCH v4 11/15] scsi: ufs: retry failed query flag requests

2015-10-25 Thread Yaniv Gardi
UFS flag query requests may fail sometimes due to timeouts etc. Add a wrapper function to retry up to 10 times in case of such failure, similar to retries being made for attribute queries. Signed-off-by: Gilad Broner Signed-off-by: Yaniv Gardi --- drivers/scsi/ufs/ufshcd.c | 63 +++

[PATCH v4 12/15] scsi: ufs: reduce the interrupts for power mode change requests

2015-10-25 Thread Yaniv Gardi
DME commands such as Hibern8 enter/exit and gear switch generate 2 completion interrupts, one for confirmation that command is received by local UniPro and 2nd one is the final confirmation after communication with remote UniPro. Currently both of these completions are registered as interrupt event

Re: [PATCH] i2c: busses: Use setup_timer

2015-10-25 Thread Wolfram Sang
On Tue, Oct 20, 2015 at 11:47:19PM +0530, Muhammad Falak R Wani wrote: > Use timer API function setup_timer instead of init_timer to > initialize the timer. > > Signed-off-by: Muhammad Falak R Wani Please note that the proper prefix in the subject would be "i2c: pnx: " Fixed this and applied to

Re: [PATCH 1/2] wait/ptrace: always assume __WALL if the child is traced

2015-10-25 Thread Oleg Nesterov
On 10/22, Denys Vlasenko wrote: > > On Wed, Oct 21, 2015 at 11:47 PM, Oleg Nesterov wrote: > > On 10/21, Denys Vlasenko wrote: > >> > >> On 10/21/2015 09:59 PM, Denys Vlasenko wrote: > >> > On 10/21/2015 12:31 AM, Andrew Morton wrote: > >> >> Well, to fix this a distro needs to roll out a new kern

[PATCH v4 13/15] scsi: ufs: add missing memory barriers

2015-10-25 Thread Yaniv Gardi
Performing several writes to UFS host controller registers has no gurrantee of ordering, so we must make sure register writes to setup request list base address etc. are performed before the run/stop register is enabled. In addition, when setting up a task request, we must make sure the updating of

[PATCH v4 08/15] scsi: ufs: add retries to dme_peer get and set attribute

2015-10-25 Thread Yaniv Gardi
The dme_peer get/set attribute commands are prone to errors, therefore we add three retries for the UIC command sending. Error code returned from ufshcd_send_uic_cmd() is checked, and unless it was successful or the retries have finished, another command will be sent. Signed-off-by: Lee Susman Si

[PATCH v4 10/15] scsi: ufs: fix error recovery after the hibern8 exit failure

2015-10-25 Thread Yaniv Gardi
Hibern8 exit can be called from 3 different context: - ufshcd_hibern8_exit_work - ufshcd_ungate_work - runtime/system resume If hibern8 exit fails for some reason then we try to bring the link to active state by link startup but this recovery mechanism results into deadlock or errors f

[PATCH v4 07/15] scsi: ufs: set REQUEST_SENSE command size to 18 bytes

2015-10-25 Thread Yaniv Gardi
According to UFS device specification REQUEST_SENSE command can only report back up to 18 bytes of data. Signed-off-by: Gilad Broner Signed-off-by: Yaniv Gardi --- drivers/scsi/ufs/ufshcd.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd

[PATCH v4 05/15] scsi: ufs: increase fDeviceInit query response timeout

2015-10-25 Thread Yaniv Gardi
fDeviceInit query response time for some devices is too long that default query request timeout of 100ms may not be enough. Experiments show that fDeviceInit response sometimes takes 500ms so to be on safer side this change sets the timeout to 600ms. Without this change, we might unnecessarily have

[PATCH v4 02/15] scsi: ufs: clear fields UTRD, UPIU req and rsp before new transfers

2015-10-25 Thread Yaniv Gardi
Some of the data structures (like response UPIU) and/or its elements (unused fields) should be cleared before sending out the respective command to UFS device. This change clears the UPIU response data structure for query commands and NOP command before sending out the command. We also initialize

[PATCH v4 01/15] scsi: ufs: clear UTRD, UPIU req and rsp before new transfers

2015-10-25 Thread Yaniv Gardi
Clear the UFS data structures before sending new request. The SCSI command is sent to the device within the UFS UPIU request. As part of the transfer UPIU preparation, the SCSI command is copied to the UPIU structure according to the SCSI command size. As different SCSI commands differ in size fro

[PATCH 41/52] perf stat report: Add support to initialize aggr_map from file

2015-10-25 Thread Jiri Olsa
Using perf.data's perf_env data to initialize aggregate config. Link: http://lkml.kernel.org/n/tip-p15mtcu2jon85trs37bwo...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 103 ++ 1 file changed, 103 insertions(+) diff --git a/

[PATCH 39/52] perf stat report: Process cpu/threads maps

2015-10-25 Thread Jiri Olsa
Adding processing of cpu/threads maps. Configuring session's evlist with these maps. Link: http://lkml.kernel.org/n/tip-f2bo5wm0cw76zc5qsjm4p...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 62 +++ 1 file changed, 62 insertio

[PATCH 36/52] perf stat record: Do not allow record with multiple runs mode

2015-10-25 Thread Jiri Olsa
We currently don't support storing multiple session in perf.data, so we can't allow -r option in stat record. $ perf stat -e cycles -r 2 record ls Cannot use -r option with perf stat record. Link: http://lkml.kernel.org/n/tip-wulio303py16c5hbbo8zr...@git.kernel.org Signed-off-by: Jiri Olsa

[PATCH 37/52] perf stat record: Synthesize event update events

2015-10-25 Thread Jiri Olsa
Synthesize other events stuff not carried within attr event - unit, scale, name. Link: http://lkml.kernel.org/n/tip-dzt1cls17hvc9nowg778z...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 59 +++ 1 file changed, 59 insertions(+

[PATCH 40/52] perf stat report: Process stat config event

2015-10-25 Thread Jiri Olsa
Adding processing of stat config event and initialize stat_config object. Link: http://lkml.kernel.org/n/tip-f2bo5wm0cw76zc5qsjm4p...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tools/perf/builtin-stat.c b/

[PATCH 35/52] perf stat record: Write stat round events on record

2015-10-25 Thread Jiri Olsa
Writing stat round events on 'perf stat record' for each interval round. In non interval mode we store round event after the last stat event. Link: http://lkml.kernel.org/n/tip-a43rs4c6szofeuo2gjlcp...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 20 +++

Re: [PATCH v5 0/2] i2c: acpi: scan ACPI enumerated I2C mux channels

2015-10-25 Thread Wolfram Sang
On Fri, Oct 23, 2015 at 12:27:05PM -0700, Dustin Byford wrote: > v5: > - rebased on i2c/for-next (Jarkko, Wolfram) > - include acpi.h in designware drivers (Mika) > - remove return from void stub function (Mika) > - add acks and tested-by from Mika Applied to for-next, thanks! In the future, when

[PATCH 29/52] perf stat record: Add record command

2015-10-25 Thread Jiri Olsa
Add 'perf stat record' command support. It creates simple (header only) perf.data file ATM. Link: http://lkml.kernel.org/n/tip-0av5yfkwyywwgoiali88w...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/Documentation/perf-stat.txt | 12 ++ tools/perf/builtin-stat.c | 74

[PATCH 33/52] perf stat record: Add pipe support for record command

2015-10-25 Thread Jiri Olsa
Allowing storing stat record data into pipe, so report tools (report/script) could read data directly from record. Link: http://lkml.kernel.org/n/tip-m8fj758gty57hgvss5efy...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 39 --- 1 fil

[PATCH 30/52] perf stat record: Initialize record features

2015-10-25 Thread Jiri Olsa
Disabling all non stat related features. Link: http://lkml.kernel.org/n/tip-0av5yfkwyywwgoiali88w...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c in

[PATCH 31/52] perf stat record: Synthesize stat record data

2015-10-25 Thread Jiri Olsa
Synthesizing needed stat record data for report/script: - cpu/thread maps - stat config Link: http://lkml.kernel.org/n/tip-wni1s2i2sq17g4vomjyda...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-stat.c | 47 +++ 1 file changed, 47 i

[PATCH 28/52] perf tools: Move id_offset out of struct perf_evsel union

2015-10-25 Thread Jiri Olsa
Because following stat patches use id_offset together with priv pointer. Link: http://lkml.kernel.org/n/tip-ts3nkj35lx54whb649by0...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/evsel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/evsel.h b/t

[PATCH 26/52] perf report: Display newly added events in raw dump

2015-10-25 Thread Jiri Olsa
The 'perf report -D' command will now display dump and detailed output for newly added events: event_update thread_map cpu_map stat stat_config stat_round Link: http://lkml.kernel.org/n/tip-8dgrmsf866ltq2s86d1ze...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/session.

[PATCH 27/52] perf tools: Introduce stat feature

2015-10-25 Thread Jiri Olsa
Introducing stat feature to mark perf.data as created by perf stat record command. It contains no data. It's needed for report tools (report/script) to differentiate sampling data from stat data, because they need to be treated in a different way. In future it might be used to store version of th

[PATCH 25/52] perf tools: Add perf_event__fprintf_event_update function

2015-10-25 Thread Jiri Olsa
To display 'event update' event for raw dump. Link: http://lkml.kernel.org/n/tip-ch2nor544486ppvwscqg5...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/header.c | 38 ++ tools/perf/util/header.h | 1 + 2 files changed, 39 insertions(+) diff --g

[PATCH 24/52] perf tools: Add event_update event cpus type

2015-10-25 Thread Jiri Olsa
Adding cpumask 'event update' event, that stores/transfer cpumask for event. Link: http://lkml.kernel.org/n/tip-wm844j3ht4isjn2elinc0...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/tests/event_update.c | 29 tools/perf/util/event.h | 5 + tool

<    1   2   3   4   5   >