Re: Regression: x86/tsc: Fix mark_tsc_unstable()

2018-06-11 Thread Diego Viola
On Mon, Jun 11, 2018 at 3:11 PM, Jeremy Cline wrote: > On 06/11/2018 01:56 PM, Jeremy Cline wrote: >> On 06/11/2018 11:30 AM, Peter Zijlstra wrote: >>> On Mon, Jun 11, 2018 at 04:38:01PM +0200, Peter Zijlstra wrote: On Mon, Jun 11, 2018 at 04:17:42PM +0200, Peter Zijlstra wrote: > On Mon,

[PATCH] soc: qcom: smem: fix checkpatch warnings

2018-06-11 Thread Ramon Fried
* Fixed checkpatch.sh warnings in smem.c & smem.h: - WARNING: Prefer 'unsigned int' to bare use of 'unsigned'. - WARNING: Block comments should align the * on each line. - WARNING: line over 80 characters. - ERROR: do not use assignment in if condition. * Fixed grammar in comment. Signed-off-by:

[GIT PULL REQUEST] watchdog - v4.18 Merge window

2018-06-11 Thread Wim Van Sebroeck
Hi Linus, Please pull the watchdog changes for the v4.18 release cycle. This series contains: * renesas_wdt: Add support for the R8A77965 WDT and R-Car Gen2 * renesas-wdt: Remove R-Car M2-W ES2.x from blacklist * watchdog: Simplify getting .drvdata * sp805: Add restart handler * hpwdt: Claim NMIs

Re: [PATCH 3/3] riscv: fix __user annotation for __copy_user()

2018-06-11 Thread Palmer Dabbelt
On Sat, 09 Jun 2018 14:42:12 PDT (-0700), luc.vanoostenr...@gmail.com wrote: On Sat, Jun 09, 2018 at 01:00:08PM -0700, Palmer Dabbelt wrote: On Fri, 08 Jun 2018 17:13:12 PDT (-0700), luc.vanoostenr...@gmail.com wrote: > I tried it and ... the preprocessed asm is as expected: >.globl __asm_co

Re: perfmon trouble

2018-06-11 Thread Linus Torvalds
On Mon, Jun 11, 2018 at 11:51 AM Stephane Eranian wrote: > > In the meantime, I agree with Matthew, simply disable > PERFMON support. Ok, since everybody seems to agree on that, I marked it BROKEN for now, in the hope that nobody even notices and we can just remove the code entirely. And if some

Re: [PATCH 1/1] ARM: dts: s5pv210: Add missing interrupt-controller property to gph2

2018-06-11 Thread Paweł Chmiel
On Monday, June 11, 2018 2:43:59 PM CEST Krzysztof Kozlowski wrote: > On Sun, Jun 10, 2018 at 4:15 PM, Paweł Chmiel > wrote: > > This commit adds missing interrupt-controller property to gph2 block, > > Just "Add missing". See: > https://elixir.bootlin.com/linux/latest/source/Documentation/proces

Re: perfmon trouble

2018-06-11 Thread Stephane Eranian
Hi, On Mon, Jun 11, 2018 at 10:18 AM Matthew Wilcox wrote: > > On Mon, Jun 11, 2018 at 10:04:00AM -0700, Linus Torvalds wrote: > > On Mon, Jun 11, 2018 at 9:49 AM Matthew Wilcox wrote: > > > > > > The problem is that even oprofile on ia64 depends on perfmon. > > > > Hmm? You can definitely enabl

Re: [PATCH] optoe: driver to read/write SFP/QSFP EEPROMs

2018-06-11 Thread Don Bollinger
On Sun, Jun 10, 2018 at 09:56:00PM -0700, Randy Dunlap wrote: > Hi, > > On 06/10/2018 09:25 PM, Don Bollinger wrote: > > diff --git a/drivers/misc/eeprom/Kconfig b/drivers/misc/eeprom/Kconfig > > index 68a1ac929917..9a08e12756ee 100644 > > --- a/drivers/misc/eeprom/Kconfig > > +++ b/drivers/misc/e

[PATCH v4 1/1] nvme: trace: add disk name to tracepoints

2018-06-11 Thread Johannes Thumshirn
Add disk name to tracepoints so we can better distinguish between individual disks in the trace output. Signed-off-by: Johannes Thumshirn --- I'm not entirely sure if this adding the ctrl pointers to nvme_complete_rq() and nvme_setup_cmd() is a good idea, it's the fast-path after all. Changes

Re: [PATCH] IB/mlx4: Fix an error handling path in 'mlx4_ib_rereg_user_mr()'

2018-06-11 Thread Jason Gunthorpe
On Mon, Jun 11, 2018 at 08:15:11PM +0200, Christophe Jaillet wrote: > Before returning -EPERM we should release some resources, as already done > in the other error handling path of the function. > > Fixes: d8f9cc328c88 ("IB/mlx4: Mark user MR as writable if actual virtual > memory is writable")

Re: [PATCH v2 1/5] dt: bindings: tegra20-emc: Document interrupt property

2018-06-11 Thread Rob Herring
On Mon, Jun 04, 2018 at 01:36:50AM +0300, Dmitry Osipenko wrote: > EMC has a dedicated interrupt that is used to notify about completion of > HW operations. Document the interrupt property. > > Signed-off-by: Dmitry Osipenko > --- > .../devicetree/bindings/arm/tegra/nvidia,tegra20-emc.txt

[GIT PULL] remoteproc updates for v4.18

2018-06-11 Thread Bjorn Andersson
The following changes since commit 75bc37fefc4471e718ba8e651aa74673d4e0a9eb: Linux 4.17-rc4 (2018-05-06 16:57:38 -1000) are available in the Git repository at: git://github.com/andersson/remoteproc tags/rproc-v4.18 for you to fetch changes up to 4725496e4872824fa6182d412c66c00cae978a62:

[GIT PULL] rpmsg updates for v4.18

2018-06-11 Thread Bjorn Andersson
The following changes since commit 75bc37fefc4471e718ba8e651aa74673d4e0a9eb: Linux 4.17-rc4 (2018-05-06 16:57:38 -1000) are available in the Git repository at: git://github.com/andersson/remoteproc tags/rpmsg-v4.18 for you to fetch changes up to 4a2e84c6ed85434ce7843e4844b4d3263f7e233b:

Re: [PATCH v3 2/6] clk: ti: dra7: Add clkctrl clock data for the mcan clocks

2018-06-11 Thread Rob Herring
On Wed, Jun 06, 2018 at 11:38:22AM +0530, Faiz Abbas wrote: > Add clkctrl data for the m_can clocks and register it within the > clkctrl driver > > CC: Tero Kristo > Signed-off-by: Faiz Abbas > --- > drivers/clk/ti/clk-7xx.c | 1 + > include/dt-bindings/clock/dra7.h | 1 + Acked-by: Rob

[GIT PULL] hwspinlock updates for v4.18

2018-06-11 Thread Bjorn Andersson
The following changes since commit 60cc43fc888428bb2f18f08997432d426a243338: Linux 4.17-rc1 (2018-04-15 18:24:20 -0700) are available in the Git repository at: git://github.com/andersson/remoteproc tags/hwlock-v4.18 for you to fetch changes up to e759176c7f6b6d84a31276e11d687f232f6e4ecf:

[PATCH] IB/mlx4: Fix an error handling path in 'mlx4_ib_rereg_user_mr()'

2018-06-11 Thread Christophe JAILLET
Before returning -EPERM we should release some resources, as already done in the other error handling path of the function. Fixes: d8f9cc328c88 ("IB/mlx4: Mark user MR as writable if actual virtual memory is writable") Signed-off-by: Christophe JAILLET --- drivers/infiniband/hw/mlx4/mr.c | 7 ++

Re: [PATCH v5 3/4] dt-bindings: power: supply: qcom_bms: Add bindings

2018-06-11 Thread Rob Herring
On Thu, Jun 07, 2018 at 07:12:51PM +0100, Craig Tatlor wrote: > Add bindings for the Qualcomm Battery Monitoring system. > > Signed-off-by: Craig Tatlor > --- > * Changes from v4: > Uses proper units and expands some definitions, > along with changing vadc@ to adc@. > > .../bindings/power/s

Re: [PATCH] Revert "debugfs: inode: debugfs_create_dir uses mode permission from parent"

2018-06-11 Thread Laura Abbott
On 06/11/2018 02:28 AM, Thomas Richter wrote: This reverts commit 95cde3c59966f6371b6bcd9e4e2da2ba64ee9775. It breaks the ioctl(KVM_CREATE_VM) interface. Can you elaborate a little more on how this breaks? Fedora has gotten at least one report of a failure in this ioctl and I'd like know if it

Re: [PATCH v6 3/5] dt-bindings: timer: add i.MX EPIT timer binding

2018-06-11 Thread Rob Herring
On Thu, Jun 07, 2018 at 04:05:42PM +0200, Clément Péron wrote: > From: Clément Peron > > Add devicetree binding document for NXP's i.MX SoC specific > EPIT timer driver. > > Signed-off-by: Clément Peron > --- > .../devicetree/bindings/timer/fsl,imxepit.txt | 21 +++ > 1 file ch

Re: [PATCH v2 5/5] memory: tegra: Introduce Tegra20 EMC driver

2018-06-11 Thread Dmitry Osipenko
On Monday, 11 June 2018 18:53:43 MSK Thierry Reding wrote: > On Mon, Jun 11, 2018 at 04:06:41PM +0300, Dmitry Osipenko wrote: > > On Monday, 11 June 2018 14:35:03 MSK Thierry Reding wrote: > > > On Wed, Jun 06, 2018 at 04:42:01PM +0300, Dmitry Osipenko wrote: > > > > On 06.06.2018 14:02, Thierry Re

Re: [PATCH] ACPI LID: increment wakeup count only when notified.

2018-06-11 Thread Ravi Chandra Sadineni
Hi Rafael, Hopefully this will clear things a bit. 1. Why is this patch needed ? Consider the following scenario. 1. User left the device idle for some time. 2. A deamon in the userland that controls suspend policy might suspend the device. The lid is still open. 3. Now the use

[PATCH V2] ACPI LID: increment wakeup count only when notified.

2018-06-11 Thread Ravi Chandra Sadineni
Currently ACPI LID increments wakeup count irrespective of the wake source. This is because we call acpi_lid_initialize_state on every resume. Userland deamons using wakeup_count to identify the potential wake source for the last wake will be thrown off by this. Instead increment the wakeup count o

Re: [PATCH] perf/x86: read the FREEZE_WHILE_SMM bit during boot

2018-06-11 Thread David Arcari
On 06/04/2018 10:12 AM, David Arcari wrote: > On 06/04/2018 04:24 AM, Peter Zijlstra wrote: >> On Sun, Jun 03, 2018 at 02:23:43PM -0400, David Arcari wrote: >>> On some systems pressing the external NMI button is now failing to inject >>> an NMI 5-10% of the time. This causes confusion for a user

Re: Regression: x86/tsc: Fix mark_tsc_unstable()

2018-06-11 Thread Jeremy Cline
On 06/11/2018 11:30 AM, Peter Zijlstra wrote: > On Mon, Jun 11, 2018 at 04:38:01PM +0200, Peter Zijlstra wrote: >> On Mon, Jun 11, 2018 at 04:17:42PM +0200, Peter Zijlstra wrote: >>> On Mon, Jun 11, 2018 at 01:59:15PM +, Jeremy Cline wrote: A user has bisected the problem to the v4.16 comm

[PATCH v2 1/3] mm: fix null pointer dereference in mem_cgroup_protected

2018-06-11 Thread Roman Gushchin
Shakeel reported a crash in mem_cgroup_protected(), which can be triggered by memcg reclaim if the legacy cgroup v1 use_hierarchy=0 mode is used: [ 226.060572] BUG: unable to handle kernel NULL pointer dereference at 0120 [ 226.068310] PGD 801ff55da067 P4D 801ff55da067 PUD 1f

[PATCH v2 2/3] mm, memcg: propagate memory effective protection on setting memory.min/low

2018-06-11 Thread Roman Gushchin
Explicitly propagate effective memory min/low values down by the tree. If there is the global memory pressure, it's not really necessary. Effective memory guarantees will be propagated automatically as we traverse memory cgroup tree in the reclaim path. But if there is no global memory pressure,

[PATCH v2 3/3] mm, memcg: don't skip memory guarantee calculations

2018-06-11 Thread Roman Gushchin
There are two cases when effective memory guarantee calculation is mistakenly skipped: 1) If memcg is a child of the root cgroup, and the root cgroup is not root_mem_cgroup (in other words, if the reclaim is targeted). Top-level memory cgroups are handled specially in mem_cgroup_protected

[PATCH v2 0/3] memory.min fixes/refinements

2018-06-11 Thread Roman Gushchin
Hi, Andrew! Please, find an updated version of memory.min refinements/fixes in this patchset. It's against linus tree. Please, merge these patches into 4.18. Thanks! Roman Gushchin (3): mm: fix null pointer dereference in mem_cgroup_protected mm, memcg: propagate memory effective protection

WARNING in ext4_put_io_end_defer

2018-06-11 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:1aaccb5fa0ea Merge tag 'rtc-4.18' of git://git.kernel.org/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=177a36af80 kernel config: https://syzkaller.appspot.com/x/.config?x=fa9c20c48788d1c1 da

[PATCH 02/12] perf hists: Make hist_entry__has_callchains() work with 'perf c2c'

2018-06-11 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Since 'perf c2c' uses 'struct hists' not allocated together with a 'struct perf_evsel' instance, we can't go from a 'struct hist_entry' pointer to a 'struct perf_evsel' via he->hists, so, instead, check if space was set aside for hist_entry->callchain[0] at hist_ent

[PATCH 03/12] perf hists browser gtk: Use hist_entry__has_callchains()

2018-06-11 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Since we can't go from struct hists to struct evsel for all cases (c2c is an exception) and we have access to the hist_entry, use hist_entry__has_callchains() in the GTK+ hists browser to figure out if callchains are available. Cc: Adrian Hunter Cc: David Ahern C

[PATCH] net: stmmac: dwmac-meson8b: Fix an error handling path in 'meson8b_dwmac_probe()'

2018-06-11 Thread Christophe JAILLET
If 'of_device_get_match_data()' fails, we need to release some resources as done in the other error handling path of this function. Fixes: efacb568c962 ("net: stmmac: dwmac-meson: extend phy mode setting") Signed-off-by: Christophe JAILLET --- drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c

[PATCH 05/12] perf tools: Fix error index for pmu event parser

2018-06-11 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa For events we provide specific error message we need to set error column index, PMU parser is missing that, adding it. Before: $ perf stat -e cycles,krava/cycles/ kill event syntax error: 'cycles,krava/cycles/' \___ Cannot find PMU `krava'. Missing ker

[PATCH 04/12] perf hists: Reimplement hists__has_callchains()

2018-06-11 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo There are places where we have only access to struct hists and need to know if any of its hist_entries has callchains, like when drawing headers for the various output modes (stdio, TUI, etc), so, when adding a new hist_entry, check if it has callchains, storing thi

[PATCH 09/12] perf stat: Allow to specify specific metric column len

2018-06-11 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa The following change will introduce new metrics, that doesn't need such wide hard coded spacing. Switch METRIC_ONLY_LEN macro usage with metric_only_len variable. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: David Ahern Cc: Frederic Weisbecker Cc: Milia

[PATCH 11/12] perf c2c: Keep struct hist_entry at the end of struct c2c_hist_entry

2018-06-11 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Exactly as the comment just before 'struct c2c_hist_entry" says, i.e. the last entry in struct hist_entry is a zero length array, that when allocating space for hist_entry gets extra space if callchains are in use, which, if hist_entry is not at the end of c2c_hist_entry, the memb

[PATCH 07/12] perf stat: Use only color_fprintf call in print_metric_only

2018-06-11 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa We can call color_fprintf also for non color case, it's handled properly. This change simplifies following patch. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Andi Kleen Cc: David Ahern Cc: Frederic Weisbecker Cc: Milian Wolff Cc: Namhyung Kim Cc: Peter Zijlstra Cc

[PATCH 12/12] perf script: Show hw-cache events

2018-06-11 Thread Arnaldo Carvalho de Melo
From: Seeteena Thoufeek 'perf script' fails to report hardware cache events (PERF_TYPE_HW_CACHE) where as 'perf report' shows the samples. Fix it. Ex, # perf record -e L1-dcache-loads ./a.out [ perf record: Woken up 1 times to write data ] [ perf record: Captured and wrote 0.008 MB perf.da

[PATCH 10/12] perf stat: Add event parsing error handling to add_default_attributes

2018-06-11 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add missing error handling for parse_events calls in add_default_attributes functions. The error handler displays error details, like for transactions (-T): Before: $ perf stat -T Cannot set up transaction events After: $ perf stat -T Cannot set up transaction events e

[PATCH 08/12] perf stat: Fix metric column header display alignment

2018-06-11 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Make the metric only display aligned. Before: # perf stat --topdown -I 1000 # time core cpus retiring bad speculation frontend bound backend bound 1.000394323 S0-C0 2 37.4% 12.0% 31.4%

[PATCH 06/12] perf stat: Add --interval-clear option

2018-06-11 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Adding --interval-clear option to clear the screen before next interval. Committer testing: # perf stat -I 1000 --interval-clear And, as expected, it behaves almost like: # watch -n 0 perf stat -a sleep 1 Signed-off-by: Jiri Olsa Tested-by: Arnaldo Carvalho de Melo Cc:

[GIT PULL 00/12] perf/urgent fixes and improvements

2018-06-11 Thread Arnaldo Carvalho de Melo
linux into perf/urgent (2018-06-07 07:18:51 +0200) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-urgent-for-mingo-4.18-20180611 for you to fetch changes up to fad76d4333fe73cf3f73704aa34d4ce523b1c458: perf script: Show hw-ca

[PATCH 01/12] perf hists: Save the callchain_size in struct hist_entry

2018-06-11 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo So that we can figure out the real size of the struct and also be able to tell if callchains may be present in this histogram entry. Since we can't always guarantee that from hist_entry->hists we can use hists_to_evsel, to then look at evsel->attr.sample_type for P

Re: Regression: x86/tsc: Fix mark_tsc_unstable()

2018-06-11 Thread Diego Viola
On Mon, Jun 11, 2018 at 10:59 AM, Jeremy Cline wrote: > Hi folks, > > A few Fedora users have reported[0] a regression starting in v4.16.8 > where the boot will hang ~1/3 of the time with the following RCU stall > warning: > > INFO: rcu_sched detected stalls on CPUs/tasks: > o1-...!: (0 ticks this

GREETINGS FROM TRACY WILLIAM

2018-06-11 Thread Miss Tracy William
-- Hello Dear, how are you today,I hope you are doing great. It is my great pleasure to contact you and i hope you don't mind,I was just surfing through the Internet search when i found your email address,I want to make a new and special friend,I hope you don't mind. My name is Tracy William,I am

Re: [PATCH] Input: add error handling for da9052_reg_write

2018-06-11 Thread Dmitry Torokhov
Hi Zhouyang, On Mon, Jun 11, 2018 at 01:23:39PM +0800, Zhouyang Jia wrote: > When da9052_reg_write fails, the lack of error-handling code may > cause unexpected results. > > This patch adds error-handling code after calling da9052_reg_write. > > Signed-off-by: Zhouyang Jia > --- > drivers/inpu

[PATCH] serial: pxa: Fix an error handling path in 'serial_pxa_probe()'

2018-06-11 Thread Christophe JAILLET
If port.line is out of range, we still need to release some resources, or we will leak them. Fixes: afc7851fab83 ("serial: pxa: Fix out-of-bounds access through serial port index") Signed-off-by: Christophe JAILLET --- drivers/tty/serial/pxa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletio

[PATCH v10 02/10] dt-bindings: introduce RPMH RSC bindings for Qualcomm SoCs

2018-06-11 Thread Raju P L S S S N
From: Lina Iyer Add device binding documentation for Qualcomm Technology Inc's RPMH RSC driver. The driver is used for communicating resource state requests for shared resources. Cc: devicet...@vger.kernel.org Signed-off-by: Lina Iyer Reviewed-by: Rob Herring --- Changes in v8: - Descr

[PATCH v10 03/10] drivers: qcom: rpmh-rsc: log RPMH requests in FTRACE

2018-06-11 Thread Raju P L S S S N
From: Lina Iyer Log sent RPMH requests and interrupt responses in FTRACE. Signed-off-by: Lina Iyer Signed-off-by: Raju P.L.S.S.S.N Reviewed-by: Steven Rostedt (VMware) --- Changes in v7: - varible name changes and white space Changes in v6: - struct tcs_response was removed.

[PATCH v10 05/10] drivers: qcom: rpmh-rsc: write sleep/wake requests to TCS

2018-06-11 Thread Raju P L S S S N
From: Lina Iyer Sleep and wake requests are sent when the application processor subsystem of the SoC is entering deep sleep states like in suspend. These requests help lower the system power requirements when the resources are not in use. Sleep and wake requests are written to the TCS slots but

[PATCH v10 08/10] drivers: qcom: rpmh: allow requests to be sent asynchronously

2018-06-11 Thread Raju P L S S S N
From: Lina Iyer Platform drivers that want to send a request but do not want to block until the RPMH request completes have now a new API - rpmh_write_async(). The API allocates memory and send the requests and returns the control back to the platform driver. The tx_done callback from the contro

[PATCH v10 09/10] drivers: qcom: rpmh: add support for batch RPMH request

2018-06-11 Thread Raju P L S S S N
From: Lina Iyer Platform drivers need make a lot of resource state requests at the same time, say, at the start or end of an usecase. It can be quite inefficient to send each request separately. Instead they can give the RPMH library a batch of requests to be sent and wait on the whole transactio

[PATCH v10 10/10] drivers: qcom: rpmh-rsc: allow active requests from wake TCS

2018-06-11 Thread Raju P L S S S N
From: Lina Iyer Some RSCs may only have sleep and wake TCS, i.e, there is no dedicated TCS for active mode request, but drivers may still want to make active requests from these RSCs. In such cases re-purpose the wake TCS to send active state requests. The requirement for this is that the driver

[PATCH v10 06/10] drivers: qcom: rpmh-rsc: allow invalidation of sleep/wake TCS

2018-06-11 Thread Raju P L S S S N
From: Lina Iyer Allow sleep and wake commands to be cleared from the respective TCSes, so that they can be re-populated. Signed-off-by: Lina Iyer Signed-off-by: Raju P.L.S.S.S.N --- Changes in v9: - Remove EXPORT_SYMBOL Changes in v7: - Move bitmap_zero() outside the loop Cha

[PATCH v10 07/10] drivers: qcom: rpmh: cache sleep/wake state requests

2018-06-11 Thread Raju P L S S S N
From: Lina Iyer Active state requests are sent immediately to the RSC controller, while sleep and wake state requests are cached in this driver to avoid taxing the RSC controller repeatedly. The cached values will be sent to the controller when the rpmh_flush() is called. Generally, flushing is

[PATCH v10 04/10] drivers: qcom: rpmh: add RPMH helper functions

2018-06-11 Thread Raju P L S S S N
From: Lina Iyer Sending RPMH requests and waiting for response from the controller through a callback is common functionality across all platform drivers. To simplify drivers, add a library functions to create RPMH client and send resource state requests. rpmh_write() is a synchronous blocking c

[PATCH v10 01/10] drivers: qcom: rpmh-rsc: add RPMH controller for QCOM SoCs

2018-06-11 Thread Raju P L S S S N
From: Lina Iyer Add controller driver for QCOM SoCs that have hardware based shared resource management. The hardware IP known as RSC (Resource State Coordinator) houses multiple Direct Resource Voter (DRV) for different execution levels. A DRV is a unique voter on the state of a shared resource.

[PATCH v10 00/10] drivers/qcom: add RPMH communication support

2018-06-11 Thread Raju P L S S S N
From: "Raju P.L.S.S.S.N" Changes in v10: - Remove export.h inclusion as suggested by Doug - Remove rsc_drv_list - Add EXPORT_SYMBOL - Remove wait_count as suggested by Doug - Free memory if cache_batch returns error as suggested by Doug - Add batch requests to list and simplify error handling as

[PATCH] fpga: altera-cvp: Fix an error handling path in 'altera_cvp_probe()'

2018-06-11 Thread Christophe JAILLET
If 'fpga_mgr_create()' fails, we should release some resources, as done in the other error handling path of the function. Fixes: 7085e2a94f7d ("fpga: manager: change api, don't use drvdata") Signed-off-by: Christophe JAILLET --- drivers/fpga/altera-cvp.c | 6 -- 1 file changed, 4 insertions(

Re: [PATCH v7 2/2] regulator: add QCOM RPMh regulator driver

2018-06-11 Thread Matthias Kaehlcke
On Fri, Jun 08, 2018 at 04:44:15PM -0700, David Collins wrote: > Add the QCOM RPMh regulator driver to manage PMIC regulators > which are controlled via RPMh on some Qualcomm Technologies, Inc. > SoCs. RPMh is a hardware block which contains several > accelerators which are used to manage various

Re: perfmon trouble

2018-06-11 Thread Matthew Wilcox
On Mon, Jun 11, 2018 at 10:04:00AM -0700, Linus Torvalds wrote: > On Mon, Jun 11, 2018 at 9:49 AM Matthew Wilcox wrote: > > > > The problem is that even oprofile on ia64 depends on perfmon. > > Hmm? You can definitely enable ia64 support for oprofile even without perfmon. Oh, I think my memory i

Re: [PATCH v2 02/13] input: add MT_TOOL_DIAL

2018-06-11 Thread Dmitry Torokhov
On Thu, Jun 07, 2018 at 09:54:37AM +0200, Benjamin Tissoires wrote: > A dial is a tool you place on a multitouch surface which reports its > orientation or a relative angle of rotation when rotating its knob. > > Some examples are the Dell Totem (on the Canvas 27"), the Microsoft Dial, > or the Gr

Re: [PATCH v9 09/10] drivers: qcom: rpmh: add support for batch RPMH request

2018-06-11 Thread Raju P L S S S N
Hi, On 5/31/2018 3:20 AM, Doug Anderson wrote: Hi, On Thu, May 24, 2018 at 3:45 AM, Raju P L S S S N wrote: #define DEFINE_RPMH_MSG_ONSTACK(dev, s, q, name) \ struct rpmh_request name = {\ @@ -35,6 +37,7 @@ .completion = q,

Re: [PATCH v2 01/13] input: move MT_TOOL_* to input-event-codes.h

2018-06-11 Thread Dmitry Torokhov
Hi Benjamin, On Thu, Jun 07, 2018 at 09:54:36AM +0200, Benjamin Tissoires wrote: > This is evdev API and should be in this file. This is a weak argument. include/uapi/linux/input.h is exclusively evdev API as well. input-event-codes.h is simply evdev API that is usable in device tree files, and I

Re: [PATCH v9 04/10] drivers: qcom: rpmh: add RPMH helper functions

2018-06-11 Thread Raju P L S S S N
Hi, On 5/31/2018 3:19 AM, Doug Anderson wrote: Hi, On Thu, May 24, 2018 at 3:45 AM, Raju P L S S S N wrote: --- a/drivers/soc/qcom/rpmh-rsc.c +++ b/drivers/soc/qcom/rpmh-rsc.c @@ -61,6 +61,8 @@ #define CMD_STATUS_ISSUED BIT(8) #define CMD_STATUS_COMPL BIT(16) +

Re: [PATCH v9 01/10] drivers: qcom: rpmh-rsc: add RPMH controller for QCOM SoCs

2018-06-11 Thread Raju P L S S S N
Hi, On 5/31/2018 3:19 AM, Doug Anderson wrote: Hi, On Thu, May 24, 2018 at 3:45 AM, Raju P L S S S N wrote: diff --git a/drivers/soc/qcom/rpmh-rsc.c b/drivers/soc/qcom/rpmh-rsc.c new file mode 100644 index 000..99b23b7 --- /dev/null +++ b/drivers/soc/qcom/rpmh-rsc.c @@ -0,0 +1,482 @@ +//

Re: [PATCH 1/2] perf tests: Add event parsing error handling to parse events test

2018-06-11 Thread Kim Phillips
On Mon, 11 Jun 2018 11:34:21 +0200 Jiri Olsa wrote: > Add missing error handling for parse_events calls in test_event > function that led to following segfault on s390: like I said, this happens on any $ARCH machine without intel_pt hardware. Other than that, for both 1 & 2 in this series: [Re

Re: perfmon trouble

2018-06-11 Thread Linus Torvalds
On Mon, Jun 11, 2018 at 9:49 AM Matthew Wilcox wrote: > > The problem is that even oprofile on ia64 depends on perfmon. Hmm? You can definitely enable ia64 support for oprofile even without perfmon. Are you saying the end result isn't usable? Because I'd be inclined to just remove CONFIG_PERFMO

Re: [PATCH 08/20] coresight: dts: Cleanup device tree graph bindings

2018-06-11 Thread Suzuki K Poulose
On 11/06/18 17:52, Mathieu Poirier wrote: On 11 June 2018 at 03:22, Suzuki K Poulose wrote: On 08/06/18 22:22, Mathieu Poirier wrote: On Tue, Jun 05, 2018 at 10:43:19PM +0100, Suzuki K Poulose wrote: The coresight drivers relied on default bindings for graph in DT, while reusing the "reg" f

Re: [PATCH v5 11/13] KVM: s390: implement mediated device open callback

2018-06-11 Thread Tony Krowiak
On 06/11/2018 12:50 PM, Halil Pasic wrote: On 06/11/2018 06:26 PM, Tony Krowiak wrote: @Janosch: Does core KVM share my opinion? At least I do. KVM does not care about who has which crypto queue/card. I'd like to have a driver that does internal bookkeeping and then registers the crycb with

[PATCH] drm/meson: Fix an un-handled error path in 'meson_drv_bind_master()'

2018-06-11 Thread Christophe JAILLET
If 'platform_get_resource_byname()' fails, we should release some resources before leaving, as already done in the other error handling path of the function. Fixes: acaa3f13b8dd ("drm/meson: Fix potential NULL dereference in meson_drv_bind_master()") Signed-off-by: Christophe JAILLET --- driver

Re: [PATCH 08/20] coresight: dts: Cleanup device tree graph bindings

2018-06-11 Thread Mathieu Poirier
On 11 June 2018 at 03:22, Suzuki K Poulose wrote: > On 08/06/18 22:22, Mathieu Poirier wrote: >> >> On Tue, Jun 05, 2018 at 10:43:19PM +0100, Suzuki K Poulose wrote: >>> >>> The coresight drivers relied on default bindings for graph >>> in DT, while reusing the "reg" field of the "ports" to indica

[GIT PULL] f2fs update for 4.18-rc1

2018-06-11 Thread Jaegeuk Kim
Hi Linus, So sorry for a bit late pull request. I had to take a look at the test results run during the weekend. Could you please consider this? Thanks, The following changes since commit 2d618bdf71635463a4aa4ad0fe46ec852292bc0c: Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux

Re: [Xen-devel] [PATCH v2 5/9] xen/gntdev: Allow mappings for DMA buffers

2018-06-11 Thread Stefano Stabellini
On Mon, 11 Jun 2018, Oleksandr Andrushchenko wrote: > On 06/08/2018 10:21 PM, Boris Ostrovsky wrote: > > On 06/08/2018 01:59 PM, Stefano Stabellini wrote: > > > > > > > > > >    @@ -325,6 +401,14 @@ static int map_grant_pages(struct > > > > > > > > > > grant_map > > > > > > > > > > *map) > > > >

Re: [PATCH v5 11/13] KVM: s390: implement mediated device open callback

2018-06-11 Thread Halil Pasic
On 06/11/2018 06:26 PM, Tony Krowiak wrote: @Janosch: Does core KVM share my opinion? At least I do. KVM does not care about who has which crypto queue/card. I'd like to have a driver that does internal bookkeeping and then registers the crycb with KVM, so the VM can use it. I am not sure 

Re: perfmon trouble

2018-06-11 Thread Matthew Wilcox
On Mon, Jun 11, 2018 at 09:23:13AM -0700, Christoph Hellwig wrote: > Is perfmon even in still in use? If not it might be a good idea to > drop it for good. The problem is that even oprofile on ia64 depends on perfmon. We have about four options, none of which are terribly appealing: 1. rm -rf a

Re: [PATCH V6 00/30] block: support multipage bvec

2018-06-11 Thread Christoph Hellwig
І think the new naming scheme in this series is a nightmare. It confuses the heck out of me, and that is despite knowing many bits of the block layer inside out, and reviewing previous series. I think we need to take a step back and figure out what names what we want in the end, and how we get th

[PATCH][V2] drm/i915/guc: fix GEM_BUG_ON check

2018-06-11 Thread Colin King
From: Colin Ian King The check for level being less than zero always false because flags is currently unsigned and can never be negative. Fix this by making flags a s32. Detected by CoverityScan, CID#1468363 ("Macro compares unsigned to 0") Signed-off-by: Colin Ian King --- V2: Make flags s32

Re: [PATCH 2/2] media: i2c: Add driver for Aptina MT9V111

2018-06-11 Thread kbuild test robot
/linux/commits/Jacopo-Mondi/media-i2c-mt9v111-sensor-driver/20180611-233038 base: git://linuxtv.org/media_tree.git master config: sh-allmodconfig (attached as .config) compiler: sh4-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests

Re: [PATCH 09/11] vfs: factor out inode_insert5()

2018-06-11 Thread Al Viro
On Mon, Jun 11, 2018 at 01:32:30PM +0200, Miklos Szeredi wrote: > Incremental follows. I think it's cleaner to initialize i_state and i_sb_list > up front (hence the use of new_inode()), but could just as well add to sb list > afterwards. > --- > diff --git a/fs/inode.c b/fs/inode.c > index 0df4

mainline: x86_64: kernel panic: RIP: 0010:__xfrm_policy_check+0xcb/0x690

2018-06-11 Thread Naresh Kamboju
Kernel panic on x86_64 machine running mainline 4.17.0 kernel while testing selftests bpf test_tunnel.sh test caused this kernel panic. I have noticed this kernel panic start happening from 4.17.0-rc7-next-20180529 and still happening on 4.17.0-next-20180608. [ 213.638287] BUG: unable to handle k

Re: [Intel-gfx] [PATCH] drm/i915/guc: remove redundant GEM_BUG_ON check

2018-06-11 Thread Colin Ian King
On 11/06/18 17:25, Ville Syrjälä wrote: > On Mon, Jun 11, 2018 at 05:00:37PM +0100, Colin King wrote: >> From: Colin Ian King >> >> The check for level being less than zero is redundant as level >> is an unsigned u32 and hence will never be less than zero. >> Remove this redundant check. >> >> Det

Re: [PATCH 3/6] arcnet: com20020: Add com20020 io mapped version

2018-06-11 Thread kbuild test robot
/linux/commits/Andrea-Greco/arcnet-leds-Removed-leds-dependecy/20180611-222941 reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) >> drivers/net/arcnet/com20020-io.c:3

Re: Page fault in UDF FS driver

2018-06-11 Thread Jan Kara
On Sun 03-06-18 19:26:41, Anatoly Trosinenko wrote: > When mounting corrupted UDF file system and performing specific > actions, [BUG: unable to handle kernel paging request at > a136c7fe] occurs. > > How to reproduce: > 1. Compile the v4.17-rc7 kernel with the attached config > 2. Unpack

Re: [GIT PULL] overlayfs update for 4.18

2018-06-11 Thread Christoph Hellwig
On Mon, Jun 11, 2018 at 10:41:29AM +0200, Miklos Szeredi wrote: > Linus, would you still pull if Al's satisfied with that resolution? > I can post the fixes (just few liners) after the merge window. Please repost all changes outside overlayfs itself to -fsdevel so that we can improve them for merg

Re: [PATCH v5 11/13] KVM: s390: implement mediated device open callback

2018-06-11 Thread Tony Krowiak
On 06/11/2018 07:49 AM, Janosch Frank wrote: On 11.06.2018 13:32, Halil Pasic wrote: On 06/11/2018 11:23 AM, Pierre Morel wrote: On 08/06/2018 23:59, Tony Krowiak wrote: On 06/07/2018 01:15 PM, Pierre Morel wrote: ...snip... Why maintain a list of kvm_ap_matrix structures if we don't have

Re: [Intel-gfx] [PATCH] drm/i915/guc: remove redundant GEM_BUG_ON check

2018-06-11 Thread Ville Syrjälä
On Mon, Jun 11, 2018 at 05:00:37PM +0100, Colin King wrote: > From: Colin Ian King > > The check for level being less than zero is redundant as level > is an unsigned u32 and hence will never be less than zero. > Remove this redundant check. > > Detected by CoverityScan, CID#1468363 ("Macro comp

Re: [PATCH 07/39] vfs: export vfs_ioctl() to modules

2018-06-11 Thread Christoph Hellwig
On Mon, Jun 11, 2018 at 09:19:01AM +0200, Miklos Szeredi wrote: > We don't. Obviously need to make sure to only ever do ioctl's in > overlayfs that have a common definition across filesystems. Not a lot > of those, luckily... Which are those? If they are common and possibly called from kernel c

Re: [PATCH] mm/madvise: allow MADV_DONTNEED to free memory that is MLOCK_ONFAULT

2018-06-11 Thread Jason Baron
On 06/11/2018 11:03 AM, Michal Hocko wrote: > On Mon 11-06-18 10:51:44, Jason Baron wrote: >> On 06/11/2018 03:20 AM, Michal Hocko wrote: >>> [CCing linux-api - please make sure to CC this mailing list anytime you >>> are touching user visible apis] >>> >>> On Fri 08-06-18 14:56:52, Jason Baron

Re: perfmon trouble

2018-06-11 Thread Christoph Hellwig
Is perfmon even in still in use? If not it might be a good idea to drop it for good.

Re: [PATCH v2 15/24] net: qualcomm: MODULE_DEVICE_TABLE(serdev)

2018-06-11 Thread Ricardo Ribalda Delgado
Hi Marcel, On Mon, Jun 11, 2018 at 5:52 PM Marcel Holtmann wrote: > > Hi Ricardo, > > the commit message is misleading me. If I build something with ACPI or > DT support, then modinfo will show all modalias information for ACPI and > DT compatible strings. What else does udev/modp

Re: [PATCH 2/2] IB/mad: Use IDR for agent IDs

2018-06-11 Thread Jason Gunthorpe
On Mon, Jun 11, 2018 at 09:19:14AM +0300, jackm wrote: > On Sun, 10 Jun 2018 22:42:03 -0600 > Jason Gunthorpe wrote: > > > Er, the spec has nothing to do with this. In Linux the TID is made > > unique because the core code provides 32 bits that are unique and the > > user provides another 32 bits

Re: [PATCH v2 5/5] arm64: perf: Add support for chaining event counters

2018-06-11 Thread Suzuki K Poulose
On 11/06/18 15:24, Mark Rutland wrote: On Mon, Jun 11, 2018 at 02:54:16PM +0100, Suzuki K Poulose wrote: On 08/06/18 15:46, Suzuki K Poulose wrote: On 06/06/2018 07:01 PM, Mark Rutland wrote: On Tue, May 29, 2018 at 11:55:56AM +0100, Suzuki K Poulose wrote: -    value |= 0x0

Re: [PATCH 3/6] arcnet: com20020: Add com20020 io mapped version

2018-06-11 Thread kbuild test robot
/linux/commits/Andrea-Greco/arcnet-leds-Removed-leds-dependecy/20180611-222941 config: sparc64-allmodconfig (attached as .config) compiler: sparc64-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin

[PATCH] Documentation: Fix reference to stm.txt

2018-06-11 Thread Mathieu Poirier
Commit "1606f8d8e75b trace doc: convert trace/stm.txt to rst format" changed stm.txt to stm.rst but references to it in other files have not been modified, something that is corrected in this patch. Reported-by: Joe Perches Signed-off-by: Mathieu Poirier --- Documentation/trace/coresight.txt |

Re: [ANNOUNCE] Git v2.18.0-rc1

2018-06-11 Thread Junio C Hamano
Duy Nguyen writes: > On Mon, Jun 4, 2018 at 3:53 PM, Junio C Hamano wrote: >> * "git pull -recurse-submodules --rebase", when the submodule > > One dash is missing in --recurse-submodules Thanks, will fix.

Re: [PATCH] bdi: Fix another oops in wb_workfn()

2018-06-11 Thread Tejun Heo
Hello, On Mon, Jun 11, 2018 at 11:12:48AM +0200, Jan Kara wrote: > However this is wrong and so is the patch. The problem is in > cgwb_bdi_unregister() which does cgwb_kill() and thus drops bdi's > reference to wb structures before going through the list of wbs again and > calling wb_shutdown() on

Re: [PATCH v5 4/4] kernel hacking: new config CC_OPTIMIZE_FOR_DEBUGGING to apply GCC -Og optimization

2018-06-11 Thread Steven Rostedt
On Sun, 10 Jun 2018 23:49:55 +0800 kbuild test robot wrote: > Hi Changbin, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on linus/master] > [also build test WARNING on v4.17 next-20180608] > [if your patch is applied to the wrong git tree, please drop u

Re: [qemu-s390x] [PATCH RFC 2/2] vfio-ccw: support for halt/clear subchannel

2018-06-11 Thread Cornelia Huck
On Fri, 8 Jun 2018 22:40:39 +0200 Halil Pasic wrote: [I'm trying to not make the discussion branch out too much. Just replying one more time here (and I'll add something to the wiki).] > One can probably argue that setting cc 0 even if the host device > responds to the host ssch with cc 3 becaus

[PATCH] drm/i915/guc: remove redundant GEM_BUG_ON check

2018-06-11 Thread Colin King
From: Colin Ian King The check for level being less than zero is redundant as level is an unsigned u32 and hence will never be less than zero. Remove this redundant check. Detected by CoverityScan, CID#1468363 ("Macro compares unsigned to 0") Signed-off-by: Colin Ian King --- drivers/gpu/drm/

<    1   2   3   4   5   6   7   8   >