[PATCH 0/5] fix leaked of_node references in drivers/pinctrl

2019-04-12 Thread Wen Yang
The call to of_get_cpu_node/of_find_compatible_node/of_parse_phandle... returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. We developed a coccinelle SmPL to detect drivers/pinctrl code and found some issues. This patch series fixes those

[PATCH 2/5] pinctrl: rockchip: fix leaked of_node references

2019-04-12 Thread Wen Yang
The call to of_parse_phandle returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: ./drivers/pinctrl/pinctrl-rockchip.c:3221:2-8: ERROR: missing of_node_put; acquired a node pointer with

[PATCH 5/5] pinctrl: zte: fix leaked of_node references

2019-04-12 Thread Wen Yang
The call to of_parse_phandle returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: ./drivers/pinctrl/zte/pinctrl-zx.c:415:2-8: ERROR: missing of_node_put; acquired a node pointer with

[PATCH 1/5] pinctrl: pistachio: fix leaked of_node references

2019-04-12 Thread Wen Yang
The call to of_get_child_by_name returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: ./drivers/pinctrl/pinctrl-pistachio.c:1422:1-7: ERROR: missing of_node_put; acquired a node pointer

[PATCH 4/5] pinctrl: samsung: fix leaked of_node references

2019-04-12 Thread Wen Yang
The call to of_find_compatible_node returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: ./drivers/pinctrl/samsung/pinctrl-exynos-arm.c:76:2-8: ERROR: missing of_node_put; acquired a node

[PATCH 3/5] pinctrl: st: fix leaked of_node references

2019-04-12 Thread Wen Yang
The call to of_get_child_by_name returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: ./drivers/pinctrl/pinctrl-st.c:1188:3-9: ERROR: missing of_node_put; acquired a node pointer with

Re: [PATCH] memory: ti-emif-sram: move driver-specific asm-offset.h to drivers/memory/

2019-04-12 Thread santosh.shilim...@oracle.com
On 4/11/19 8:09 PM, Masahiro Yamada wrote: is only generated and included by drivers/memory/, so it does not need to reside in the globally visible include/generated/. Signed-off-by: Masahiro Yamada --- I will apply this to linux-kbuild since this depends on another patch there. Sure.

[PATCH v4 1/4] perf: Add a 'percore' event qualifier

2019-04-12 Thread Jin Yao
Add a 'percore' event qualifier, like cpu/event=0,umask=0x3,percore=1/, that sums up the event counts for both hardware threads in a core. We can already do this with --per-core, but it's often useful to do this together with other metrics that are collected per hardware thread. So we need to

[PATCH v4 0/4] perf: Support a new 'percore' event qualifier

2019-04-12 Thread Jin Yao
The 'percore' event qualifier which sums up the event counts for both hardware threads in a core. For example, perf stat -e cpu/event=0,umask=0x3,percore=1/,cpu/event=0,umask=0x3/ In this example, we count the event 'ref-cycles' per-core and per-CPU in one perf stat command-line. We can already

[PATCH v4 2/4] perf stat: Factor out aggregate counts printing

2019-04-12 Thread Jin Yao
Move the aggregate counts printing to a new function print_counter_aggrdata, which will be used in following patches. v4: --- Rebase to latest perf/core branch. v3: --- No change v2: --- Create this patch according to Jiri's comments. Signed-off-by: Jin Yao ---

[PATCH v4 4/4] perf test: Add a simple test for term 'percore'

2019-04-12 Thread Jin Yao
It's a simple test which just checks if parser works. v4: --- No change v3: --- No change v2: --- Change 'coresum' to 'percore' Signed-off-by: Jin Yao --- tools/perf/tests/parse-events.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git

[PATCH v4 3/4] perf stat: Support 'percore' event qualifier

2019-04-12 Thread Jin Yao
With this patch, we can use the 'percore' event qualifier in perf-stat. root@skl:/tmp# perf stat -e cpu/event=0,umask=0x3,percore=1/,cpu/event=0,umask=0x3/ -a -A -I1000 1.000773050 S0-C0 98,352,832 cpu/event=0,umask=0x3,percore=1/

kernel BUG at kernel/cred.c:434!

2019-04-12 Thread chengjian (D)
Hi. syzkaller reported the following BUG: [   73.146973] kernel BUG at kernel/cred.c:434! [   73.150231] invalid opcode: [#1] SMP KASAN PTI [   73.151928] CPU: 2 PID: 4058 Comm: syz-executor.6 Not tainted 5.1.0-rc4-00062-g2d06b235815e-dirty #2 [   73.155174] Hardware name: QEMU Standard

[no subject]

2019-04-12 Thread Sistemi amministratore
ATTENZIONE; La cassetta postale ha superato il limite di archiviazione, che è 5 GB come definiti dall'amministratore, che è attualmente in esecuzione su 10.9GB, non si può essere in grado di inviare o ricevere nuovi messaggi fino a ri-convalidare la tua mailbox. Per rinnovare la vostra

[PATCH] watchdog: hard lockup message should end with a newline

2019-04-12 Thread Sergey Senozhatsky
Separate print_modules() and hard lockup error message. Before the patch: NMI watchdog: Watchdog detected hard LOCKUP on cpu 1Modules linked in: nls_cp437 Signed-off-by: Sergey Senozhatsky --- kernel/watchdog_hld.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [PATCH v1 0/4] Add tracing for SDHCI register access

2019-04-12 Thread Adrian Hunter
On 12/04/19 1:08 AM, Raul E Rangel wrote: > I was debugging a SDHC hardware bug and got tired of having to > translate the register values by hand. This patch set makes it so all > SDHC register read and write operations can be traced and easily read by > a human. While this might be useful for

Re: [PATCH] xfs: use struct_size() helper

2019-04-12 Thread Darrick J. Wong
On Thu, Apr 11, 2019 at 08:57:14PM -0500, Gustavo A. R. Silva wrote: > > > On 4/11/19 7:19 PM, Darrick J. Wong wrote: > > [fixing linux-xfs cc] > > > > Thanks for this. > > > On Thu, Apr 11, 2019 at 06:37:58PM -0500, Gustavo A. R. Silva wrote: > >> Make use of the struct_size() helper instead

[PATCH] ASoC: sprd: Add reserved DMA memory support

2019-04-12 Thread Baolin Wang
For Spreadtrum audio platform driver, it need allocate a larger DMA buffer dynamically to copy audio data between userspace and kernel space, but that will increase the risk of memory allocation failure especially the system is under heavy load situation. To make sure the audio can work in this

[PATCH] PCI: Make pci_aer_init() when !CONFIG_PCIEAER void too

2019-04-12 Thread Jisheng Zhang
Commit 60ed982a4e78 ("PCI/AER: Move internal declarations to drivers/pci/pci.h") makes pci_aer_init() void, but the version when !CONFIG_PCIEAER isn't modified accordingly, fix it. Signed-off-by: Jisheng Zhang --- drivers/pci/pci.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [RFC 2/2] signal: extend pidfd_send_signal() to allow expedited process killing

2019-04-12 Thread Michal Hocko
On Thu 11-04-19 10:47:50, Daniel Colascione wrote: > On Thu, Apr 11, 2019 at 10:36 AM Matthew Wilcox wrote: > > > > On Thu, Apr 11, 2019 at 10:33:32AM -0700, Daniel Colascione wrote: > > > On Thu, Apr 11, 2019 at 10:09 AM Suren Baghdasaryan > > > wrote: > > > > On Thu, Apr 11, 2019 at 8:33 AM

Re: [RFC 2/2] signal: extend pidfd_send_signal() to allow expedited process killing

2019-04-12 Thread Michal Hocko
On Thu 11-04-19 08:33:13, Matthew Wilcox wrote: > On Wed, Apr 10, 2019 at 06:43:53PM -0700, Suren Baghdasaryan wrote: > > Add new SS_EXPEDITE flag to be used when sending SIGKILL via > > pidfd_send_signal() syscall to allow expedited memory reclaim of the > > victim process. The usage of this flag

Re: [PATCH 1/7] s390: zcrypt: driver callback to indicate resource in use

2019-04-12 Thread Harald Freudenberger
On 11.04.19 23:03, Tony Krowiak wrote: > Introduces a new driver callback to prevent a root user from unbinding > an AP queue from its device driver if the queue is in use. This prevents > a root user from inadvertently taking a queue away from a guest and > giving it to the host, or vice versa.

Re: [tip:perf/urgent] perf/core: Fix perf_event_disable_inatomic() race

2019-04-12 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Wed, Apr 10, 2019 at 05:13:54AM -0700, tip-bot for Peter Zijlstra wrote: > > Commit-ID: 86071b11317550d994b55ce5e31aa06bcad783b5 > > Gitweb: > > https://git.kernel.org/tip/86071b11317550d994b55ce5e31aa06bcad783b5 > > Author: Peter Zijlstra > >

[PATCH v2 2/2] x86/mm/KASLR: Fix the size of vmemmap section

2019-04-12 Thread Baoquan He
kernel_randomize_memory() hardcodes the size of vmemmap section as 1 TB, to support the maximum amount of system RAM in 4-level paging mode, 64 TB. However, 1 TB is not enough in 5-level paging mode. Assuming the size of struct page is 64 Bytes, To support 4 PB system RAM in 5-level, 64 TB of

[PATCH v2 0/2] x86/mm/KASLR: Fix the wrong size of memory sections

2019-04-12 Thread Baoquan He
v1->v2: Rewrite log of the two patches. No functionality change. ~ v1 background: The fixes for these two bugs were carried in the earlier patchset, patch 4/6 and patch 5/6: [PATCH v4 0/6] Several patches to fix code bugs,

[PATCH v2 1/2] x86/mm/KASLR: Fix the size of the direct mapping section

2019-04-12 Thread Baoquan He
kernel_randomize_memory() uses __PHYSICAL_MASK_SHIFT to calculate the maximum amount of system RAM supported. The size of the direct mapping section is obtained from the smaller one of the below two values: (actual system RAM size + padding size) vs (max system RAM size supported) This

RE: [PATCH 4/6] x86: hv: mmu.c: Replace page definitions with Hyper-V specific ones

2019-04-12 Thread Vitaly Kuznetsov
Michael Kelley writes: > From: Vitaly Kuznetsov Sent: Friday, April 5, 2019 > 4:11 AM >> > >> > @@ -32,15 +32,15 @@ static inline int fill_gva_list(u64 gva_list[], int >> > offset, >> >do { >> >diff = end > cur ? end - cur : 0; >> > >> > - gva_list[gva_n] = cur &

Re: [PATCH-tip v3 02/14] locking/rwsem: Make owner available even if !CONFIG_RWSEM_SPIN_ON_OWNER

2019-04-12 Thread Ingo Molnar
* Waiman Long wrote: > On 04/11/2019 04:12 AM, Peter Zijlstra wrote: > > On Wed, Apr 10, 2019 at 02:42:19PM -0400, Waiman Long wrote: > >> The owner field in the rw_semaphore structure is used primarily for > >> optimistic spinning. However, identifying the rwsem owner can also be > >> helpful

Re: [PATCH v2 0/2] x86/mm/KASLR: Fix the wrong size of memory sections

2019-04-12 Thread Baoquan He
On 04/12/19 at 02:55pm, Baoquan He wrote: > v1->v2: > Rewrite log of the two patches. No functionality change. ~~ Sorry, I meant no new code change. > > ~ > v1 background: > The fixes for

Re: [PATCH] selftests: livepatch use TEST_PROGS for test shell scripts

2019-04-12 Thread Miroslav Benes
On Thu, 11 Apr 2019, Shuah Khan wrote: > TEST_PROGS variable is for test shell scripts and common clean target > in lib.mk doesn't touch them. TEST_GEN_PROGS are removed by it. > > Fix it to use TEST_PROGS for test shell scripts and TEST_PROGS_EXTENDED > for common functions.sh. > >

Re: [PATCH-tip v3 02/14] locking/rwsem: Make owner available even if !CONFIG_RWSEM_SPIN_ON_OWNER

2019-04-12 Thread Peter Zijlstra
On Fri, Apr 12, 2019 at 09:02:09AM +0200, Ingo Molnar wrote: > > * Waiman Long wrote: > > > On 04/11/2019 04:12 AM, Peter Zijlstra wrote: > > > On Wed, Apr 10, 2019 at 02:42:19PM -0400, Waiman Long wrote: > > >> The owner field in the rw_semaphore structure is used primarily for > > >>

Re: [PATCH-tip v3 02/14] locking/rwsem: Make owner available even if !CONFIG_RWSEM_SPIN_ON_OWNER

2019-04-12 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Fri, Apr 12, 2019 at 09:02:09AM +0200, Ingo Molnar wrote: > > > > * Waiman Long wrote: > > > > > On 04/11/2019 04:12 AM, Peter Zijlstra wrote: > > > > On Wed, Apr 10, 2019 at 02:42:19PM -0400, Waiman Long wrote: > > > >> The owner field in the rw_semaphore

Re: [PATCH 6/7] s390: vfio-ap: handle dynamic config/deconfig of AP adapter

2019-04-12 Thread Harald Freudenberger
On 11.04.19 23:03, Tony Krowiak wrote: > Once an APQN is assigned to an mdev device it will remained assigned until > it is explicitly unassigned from the mdev device. The associated AP queue > devices, however, can come and go due to failures or deliberate actions by > a sysadmin. For example, a

[no subject]

2019-04-12 Thread Sistemas Administrador
ATENCIÓN; Su buzón ha superado el límite de almacenamiento, que es de 5 GB definidos por el administrador, quien actualmente está ejecutando en 10.9GB, no puede ser capaz de enviar o recibir correo nuevo hasta que vuelva a validar su buzón de correo electrónico. Para revalidar su buzón de

Re: [PATCH 4/5] pinctrl: samsung: fix leaked of_node references

2019-04-12 Thread Krzysztof Kozlowski
On Fri, 12 Apr 2019 at 08:01, Wen Yang wrote: > > The call to of_find_compatible_node returns a node pointer with refcount > incremented thus it must be explicitly decremented after the last > usage. > > Detected by coccinelle with the following warnings: >

[no subject]

2019-04-12 Thread Sistemas Administrador
ATENCIÓN; Su buzón ha superado el límite de almacenamiento, que es de 5 GB definidos por el administrador, quien actualmente está ejecutando en 10.9GB, no puede ser capaz de enviar o recibir correo nuevo hasta que vuelva a validar su buzón de correo electrónico. Para revalidar su buzón de

Re: [PATCH] platform/x86: pmc_atom: Drop __initconst on dmi table

2019-04-12 Thread Hans de Goede
Hi Stephen, On 11-04-19 19:28, Stephen Boyd wrote: It's used by probe and that isn't an init function. Drop this so that we don't get a section mismatch. Reported-by: kbuild test robot Cc: David Müller Cc: Hans de Goede Cc: Andy Shevchenko Fixes: 7c2e07130090 ("clk: x86: Add system

Re: [PATCH] tty: Add NULL TTY driver

2019-04-12 Thread Enrico Weigelt, metux IT consult
On 11.04.19 15:05, Adamski, Krzysztof (Nokia - PL/Wroclaw) wrote: > There are (embedded) cases where the kernel ring buffer is stored for> log > inspection and all the logs that are *not* wanted there (like> interactive debug logs, some progress bar, etc) are send specifically to> /dev/console

[PATCH v8 1/7] dt-bindings: Add a binding for Mediatek SCP

2019-04-12 Thread Pi-Hsun Shih
From: Erin Lo Add a DT binding documentation of SCP for the MT8183 SoC from Mediatek. Signed-off-by: Erin Lo Signed-off-by: Pi-Hsun Shih Reviewed-by: Rob Herring --- Changes from v7: - No change. Changes from v6: - No change. Changes from v5: - Remove dependency on CONFIG_RPMSG_MTK_SCP.

[PATCH v8 2/7] remoteproc/mediatek: add SCP support for mt8183

2019-04-12 Thread Pi-Hsun Shih
From: Erin Lo Provide a basic driver to control Cortex M4 co-processor Signed-off-by: Erin Lo Signed-off-by: Nicolas Boichat Signed-off-by: Pi-Hsun Shih --- Changes from v7: - Moved the location of shared SCP buffer. - Fix clock enable/disable sequence. - Add more IPI ID that would be

[PATCH v8 4/7] rpmsg: add rpmsg support for mt8183 SCP.

2019-04-12 Thread Pi-Hsun Shih
Add a simple rpmsg support for mt8183 SCP, that use IPI / IPC directly. Signed-off-by: Pi-Hsun Shih --- Changes from v7: - No change. Changes from v6: - Decouple mtk_rpmsg from mtk_scp by putting all necessary informations (name service IPI id, register/unregister/send functions) into a

[PATCH v8 5/7] dt-bindings: Add binding for cros-ec-rpmsg.

2019-04-12 Thread Pi-Hsun Shih
Add a DT binding documentation for ChromeOS EC driver over rpmsg. Signed-off-by: Pi-Hsun Shih Acked-by: Rob Herring --- Changes from v7: - No change. Changes from v6: - No change. Changes from v5: - New patch. --- Documentation/devicetree/bindings/mfd/cros-ec.txt | 5 - 1 file

[PATCH v8 3/7] remoteproc: mt8183: add reserved memory manager API

2019-04-12 Thread Pi-Hsun Shih
From: Erin Lo Add memory table mapping API for other driver to lookup reserved physical and virtual memory Signed-off-by: Erin Lo Signed-off-by: Pi-Hsun Shih --- Changes from v7: - No change. Changes from v6: - No change. Changes from v5: - No change. Changes from v4: - New patch. ---

[PATCH v8 6/7] platform/chrome: cros_ec: add EC host command support using rpmsg.

2019-04-12 Thread Pi-Hsun Shih
Add EC host command support through rpmsg. Signed-off-by: Pi-Hsun Shih --- Changes from v7: - Remove one unnecessary dev_err. Changes from v6: - Make data for response aligned to 4 bytes. Changes from v5: - Change commit title. - Add documents for some structs, and fix all warning from

[PATCH v8 7/7] mfd: cros_ec: differentiate SCP from EC by feature bit.

2019-04-12 Thread Pi-Hsun Shih
System Companion Processor (SCP) is Cortex M4 co-processor on some MediaTek platform that can run EC-style firmware. Since a SCP and EC would both exist on a system, and use the cros_ec_dev driver, we need to differentiate between them for the userspace, or they would both be registered at

Re: [PATCH 2/6] x86: hv: hv_init.c: Replace alloc_page() with kmem_cache_alloc()

2019-04-12 Thread Maya Nakamura
On Fri, Apr 05, 2019 at 01:31:02PM +0200, Vitaly Kuznetsov wrote: > Maya Nakamura writes: > > > @@ -98,18 +99,20 @@ EXPORT_SYMBOL_GPL(hyperv_pcpu_input_arg); > > u32 hv_max_vp_index; > > EXPORT_SYMBOL_GPL(hv_max_vp_index); > > > > +struct kmem_cache *cachep; > > +EXPORT_SYMBOL_GPL(cachep); >

Re: [PATCH v2] mtd: rawnand: mark expected switch fall-throughs

2019-04-12 Thread Miquel Raynal
Hi Gustavo, "Gustavo A. R. Silva" wrote on Thu, 11 Apr 2019 17:20:31 -0500: > On 4/11/19 5:10 PM, Miquel Raynal wrote: > > Hi Gustavo, > > > > "Gustavo A. R. Silva" wrote on Thu, 11 Apr > > 2019 13:30:31 -0500: > > > >> Hi Miquel, > >> > >> On 2/5/19 6:55 AM, Miquel Raynal wrote: > >> [..]

Fwd: [PATCH 1/1] arch: arm64: process: Unlock console after SMP stopped

2019-04-12 Thread Jinyoung Park
(Re-sending) I have observed this problem during reboot stress test on my ARM64 architecture board which is NVIDIA Tegra ARM64 CPU reference board. The reboot stress test is to restart the system repeatedly for a long time. The system is set with Kernel log level 8 for logging all kernel messages

[PATCH] MAINTAINERS: Update jffs2 entry

2019-04-12 Thread Richard Weinberger
Update the entry to represent the current state of jffs2. I'll carry fixes via the UBIFS tree, David has the last word on anything. New features are not planned. Signed-off-by: Richard Weinberger --- MAINTAINERS | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS

[PATCH v2] spi: pxa2xx: fix SCR (divisor) calculation

2019-04-12 Thread Flavio Suligoi
Calculate the divisor for the SCR (Serial Clock Rate), avoiding that the SSP transmission rate can be greater than the device rate. When the division between the SSP clock and the device rate generates a reminder, we have to increment by one the divisor. In this way the resulting SSP clock will

Re: [PATCH] tty: Add NULL TTY driver

2019-04-12 Thread Adamski, Krzysztof (Nokia - PL/Wroclaw)
On Fri, Apr 12, 2019 at 09:17:28AM +0200, Enrico Weigelt, metux IT consult wrote: >On 11.04.19 15:05, Adamski, Krzysztof (Nokia - PL/Wroclaw) wrote: > >> There are (embedded) cases where the kernel ring buffer is stored for> log >> inspection and all the logs that are *not* wanted there (like>

[PATCH v2 0/3] Bugfix and cleanup the timer driver for Milbeaut M10V

2019-04-12 Thread Sugaya Taichi
This series fixes a bug and cleanup code about timer driver for Milbeaut M10V. Since it is difficult to separate, it is integrated into a series. Changes from v1: -Add "Fixes" tag. Sugaya Taichi (3): clocksource/drivers/timer-milbeaut: Fix to enable one-shot timer

[PATCH v2 1/3] clocksource/drivers/timer-milbeaut: Fix to enable one-shot timer

2019-04-12 Thread Sugaya Taichi
Fix mlb_set_oneshot_state() to enable one-shot timer. The function should stop and start a timer, but "start" statement was dropped. Kick the register to start one-shot timer. Fixes: b58f28f306db ("clocksource/drivers/timer-milbeaut: Introduce timer for Milbeaut SoCs") Signed-off-by: Sugaya

[PATCH v2 2/3] clocksource/drivers/timer-milbeaut: Add shutdown function

2019-04-12 Thread Sugaya Taichi
Add a shutdown operation to support shutdown timer. Signed-off-by: Sugaya Taichi --- drivers/clocksource/timer-milbeaut.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/clocksource/timer-milbeaut.c b/drivers/clocksource/timer-milbeaut.c index 9fd5d08..f478061 100644

Re: [PATCH 1/6] arch: riscv: add support for building DTB files from DT source data

2019-04-12 Thread Atish Patra
On 4/11/19 5:08 PM, Paul Walmsley wrote: On Thu, 11 Apr 2019, Atish Patra wrote: On 4/11/19 2:12 PM, Paul Walmsley wrote: On Thu, 11 Apr 2019, Christoph Hellwig wrote: On Thu, Apr 11, 2019 at 01:42:59AM -0700, Paul Walmsley wrote: Similar to ARM64, add support for building DTB files from

[PATCH v2 3/3] clocksource/drivers/timer-milbeaut: Cleanup common register accesses

2019-04-12 Thread Sugaya Taichi
Aggregate common register accesses into shared functions for maintainability. Signed-off-by: Sugaya Taichi --- drivers/clocksource/timer-milbeaut.c | 62 +++- 1 file changed, 39 insertions(+), 23 deletions(-) diff --git a/drivers/clocksource/timer-milbeaut.c

Re: [PATCH RFC 3/9] PM / devfreq: Add cpu based scaling support to passive_governor

2019-04-12 Thread Chanwoo Choi
Hi, I agree this approach absolutely. Just I add some comments. Please check it. On 19. 3. 29. 오전 12:28, Sibi Sankar wrote: > From: Saravana Kannan > > Many CPU architectures have caches that can scale independent of the > CPUs. Frequency scaling of the caches is necessary to make sure the

Re: [PATCH v1] clk: tegra20/30: Add custom EMC clock implementation

2019-04-12 Thread Peter De Schrijver
On Fri, Apr 12, 2019 at 01:47:08AM +0300, Dmitry Osipenko wrote: > A proper External Memory Controller clock rounding and parent selection > functionality is required by the EMC drivers. It is not available using > the generic clock implementation, hence add a custom one. The clock rate > rounding

RE: [EXT] Re: [PATCH v5] arm64: dts: ls1088a: add one more thermal zone node

2019-04-12 Thread Andy Tang
> -Original Message- > From: Daniel Lezcano > Sent: 2019年4月12日 3:15 > To: Andy Tang ; shawn...@kernel.org > Cc: Leo Li ; robh...@kernel.org; mark.rutl...@arm.com; > linux-arm-ker...@lists.infradead.org; devicet...@vger.kernel.org; > linux-kernel@vger.kernel.org; linux...@vger.kernel.org;

Re: [PATCH v2 05/11] platform/x86: asus-wmi: Support queued WMI event codes

2019-04-12 Thread Daniel Drake
On Thu, Apr 11, 2019 at 1:44 PM Yurii Pavlovskyi wrote: > Event codes are expected to be polled from a queue on at least some > models. Maybe avoid the word "poll" since it suggests something else (at least to me). > The fix flushes the old key codes out of the queue on load and after >

Re: [PATCH 2/6] x86: hv: hv_init.c: Replace alloc_page() with kmem_cache_alloc()

2019-04-12 Thread Vitaly Kuznetsov
Maya Nakamura writes: > On Fri, Apr 05, 2019 at 01:31:02PM +0200, Vitaly Kuznetsov wrote: >> Maya Nakamura writes: >> >> > @@ -98,18 +99,20 @@ EXPORT_SYMBOL_GPL(hyperv_pcpu_input_arg); >> > u32 hv_max_vp_index; >> > EXPORT_SYMBOL_GPL(hv_max_vp_index); >> > >> > +struct kmem_cache *cachep;

[PATCH] x86/kvm: move kvm_load/put_guest_xcr0 into atomic context

2019-04-12 Thread WANG Chao
guest xcr0 could leak into host when MCE happens in guest mode. Because do_machine_check() could schedule out at a few places. For example: kvm_load_guest_xcr0 ... kvm_x86_ops->run(vcpu) { vmx_vcpu_run vmx_complete_atomic_exit kvm_machine_check do_machine_check

Re: [PATCH v14 4/4] PM / Domains: Add genpd governor for CPUs

2019-04-12 Thread Ulf Hansson
On Thu, 11 Apr 2019 at 22:44, Rafael J. Wysocki wrote: > > On Thu, Apr 11, 2019 at 8:17 PM Ulf Hansson wrote: > > > > After some preceding changes, PM domains managed by genpd may contain > > CPU devices, so idle state residency values should be taken into > > account during the state selection

[PATCH v2] x86/reboot: Use efi reboot for Acer TravelMate X514-51T

2019-04-12 Thread Jian-Hong Pan
Upon reboot, the Acer TravelMate X514-51T laptop appears to complete the shutdown process, but then it hangs in BIOS POST with a black screen. The problem is intermittent - at some points it has appeared related to Secure Boot settings or different kernel builds, but ultimately we have not been

Re: [PATCH v1 3/3] ARM: dts: tegra30: Add External Memory Controller node

2019-04-12 Thread Peter De Schrijver
On Fri, Apr 12, 2019 at 02:02:21AM +0300, Dmitry Osipenko wrote: > Add Add External Memory Controller node to the device-tree. > One 'Add' is enough I think :) Peter. > Signed-off-by: Dmitry Osipenko > --- > arch/arm/boot/dts/tegra30.dtsi | 11 +++ >

Re: [PATCH v2 10/11] platform/x86: asus-wmi: Switch fan boost mode

2019-04-12 Thread Daniel Drake
On Thu, Apr 11, 2019 at 1:47 PM Yurii Pavlovskyi wrote: > * 0x00 - is normal, > * 0x01 - is obviously turbo by the amount of noise, might be useful to > avoid CPU frequency throttling on high load, > * 0x02 - the meaning is unknown at the time as modes are not named > in the vendor documentation,

Re: [PATCH v1 3/3] ARM: dts: tegra30: Add External Memory Controller node

2019-04-12 Thread Peter De Schrijver
On Fri, Apr 12, 2019 at 02:02:21AM +0300, Dmitry Osipenko wrote: > Add Add External Memory Controller node to the device-tree. > > Signed-off-by: Dmitry Osipenko > --- .. > diff --git a/drivers/memory/tegra/tegra30-emc.c > b/drivers/memory/tegra/tegra30-emc.c > index 38ebdb076ccd..defdb38bde54

Re: [PATCH] x86/kvm: move kvm_load/put_guest_xcr0 into atomic context

2019-04-12 Thread Paolo Bonzini
On 12/04/19 09:55, WANG Chao wrote: > guest xcr0 could leak into host when MCE happens in guest mode. Because > do_machine_check() could schedule out at a few places. > > For example: > > kvm_load_guest_xcr0 > ... > kvm_x86_ops->run(vcpu) { > vmx_vcpu_run > vmx_complete_atomic_exit >

Re: [PATCH 2/5] pinctrl: rockchip: fix leaked of_node references

2019-04-12 Thread Heiko Stübner
Hi, Am Freitag, 12. April 2019, 08:02:20 CEST schrieb Wen Yang: > The call to of_parse_phandle returns a node pointer with refcount > incremented thus it must be explicitly decremented after the last > usage. > > Detected by coccinelle with the following warnings: >

[GIT PULL] ACPI fix for v5.1-rc5

2019-04-12 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-5.1-rc5 with top-most commit c5781ffbbd4f742a58263458145fe7f0ac01d9e0 ACPICA: Namespace: remove address node from global list after method termination on top of commit

linux-next: Tree for Apr 12

2019-04-12 Thread Stephen Rothwell
Hi all, Changes since 20190411: The orangefs tree lost its build failure. The bpf-next tree gained a conflict against the jc_docs tree. The netfilter-next tree gained a build failure for which I applied a patch. The drm tree still had its build failure for which I disabled a driver. The

Re: [RFC PATCH v3 2/4] x86: Add the support of ACRN guest

2019-04-12 Thread Borislav Petkov
On Fri, Apr 12, 2019 at 08:36:34AM +0800, Zhao, Yakui wrote: > So we will leverage the X86_FEATURE_X2APIC bit from CPUID to indicate > whether the x2apic is supported in linux guest when ACRN hypervisor is > detected. > Is this fine to you? Yes, put that more precise info in the comment pls.

Re: [PATCH 2/2] clk: meson-g12a: Add Temperature Sensor clock

2019-04-12 Thread guillaume La Roque
hi martin, On 4/11/19 11:38 PM, Martin Blumenstingl wrote: > Hi Guillaume, > > On Thu, Apr 11, 2019 at 10:46 AM Guillaume La Roque > wrote: >> Add TS clock used by two temperature sensor > thank you for working on this! > >> Signed-off-by: Guillaume La Roque >> --- >> drivers/clk/meson/g12a.c

Re: [PATCH 0/3] spi: SPI bus multiplexer

2019-04-12 Thread Mark Brown
On Fri, Apr 12, 2019 at 05:02:10PM +1200, Chris Packham wrote: > Unfortunately recent changes have stopped my hacks from working. I've > tried adapting cs-gpios to work with my particular hardware but I came > to the realisation that the current cs-gpios support assumes a 1:1 > mapping of gpio to

[GIT PULL] sound fixes for 5.1-rc5

2019-04-12 Thread Takashi Iwai
Linus, please pull sound fixes for v5.1-rc5 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-5.1-rc5 The topmost commit is 9b0dcd0e5a27958b57e3e390f63c098d63a055da sound fixes for 5.1-rc5 Well,

Re: [RFC PATCH v3 3/4] x86: Use HYPERVISOR_CALLBACK_VECTOR for acrn_guest upcall vector

2019-04-12 Thread Borislav Petkov
On Fri, Apr 12, 2019 at 09:00:10AM +0800, Zhao, Yakui wrote: > This is not a problem. > I take a look at the header file of mshyperv.h and xen/events.h. > It seems that they have no such extra conditional definition. > To follow the same style, I will remove it. Yes, the less ifdeffery the

[PATCH v5 0/3] media: platform: Add support for the Amlogic Meson G12A AO CEC Controller

2019-04-12 Thread Neil Armstrong
The Amlogic G12A SoC embeds a second CEC controller with a totally different design. The two controller can work in the same time since the CEC line can be set to two different pins on the two controllers. This second CEC controller is documented as "AO-CEC-B", thus the registers will be named

Re: [PATCH V2 11/20] spi: expand mode support and add LSBYTE_FIRST mode

2019-04-12 Thread Mark Brown
On Thu, Apr 11, 2019 at 07:58:33PM +, Sowjanya Komatineni wrote: > > On Thu, Apr 04, 2019 at 05:14:10PM -0700, Sowjanya Komatineni wrote: > > > Some SPI Master controllers support configuring Least significant byte > > > first or Most significant byte first order for transfers. Also some >

Re: [PATCH v5 1/6] libnvdimm: nd_region flush callback support

2019-04-12 Thread Jan Kara
On Thu 11-04-19 07:51:48, Dan Williams wrote: > On Tue, Apr 9, 2019 at 9:09 PM Pankaj Gupta wrote: > > + } else { > > + if (nd_region->flush(nd_region)) > > + rc = -EIO; > > Given the common case wants to be fast and synchronous I think we > should try

Re: [PATCH] rtc: sirfsoc: Make sysrtc_regmap_config static

2019-04-12 Thread Alexandre Belloni
On 10/04/2019 21:43:36+0800, Yue Haibing wrote: > From: YueHaibing > > Fix sparse warning: > > drivers/rtc/rtc-sirfsoc.c:282:28: warning: > symbol 'sysrtc_regmap_config' was not declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing > --- >

[PATCH][V3] scsi: cxgbi: remove redundant __kfree_skb call on skb and free cst->atid

2019-04-12 Thread Colin King
From: Colin Ian King The error return path via label rel_resource checks for a non-null skb before free'ing it. However, skb is always null at this exit path, so the null check and the free are redundant and can be removed. Removing this allows the original goto's to rel_resource to be cleaned

Re: [PATCH] rtc: mxc_v2: use dev_pm_set_wake_irq() to simplify code

2019-04-12 Thread Alexandre Belloni
On 11/04/2019 02:19:48+, Anson Huang wrote: > With calling dev_pm_set_wake_irq() to set MXC_V2 RTC as wakeup source > for suspend, generic wake irq mechanism will automatically enable > it as wakeup source when suspend, then the suspend/resume callback > which are ONLY for enabling/disabling

Re: [PATCH] rtc: mxc: use dev_pm_set_wake_irq() to simplify code

2019-04-12 Thread Alexandre Belloni
On 11/04/2019 02:06:04+, Anson Huang wrote: > With calling dev_pm_set_wake_irq() to set MXC RTC as wakeup source > for suspend, generic wake irq mechanism will automatically enable > it as wakeup source when suspend, then the suspend/resume callback > which are ONLY for enabling/disabling irq

[PATCHv5 03/20] PCI: mobiveil: Correct the returned error number

2019-04-12 Thread Z.q. Hou
From: Hou Zhiqiang This patch corrects the returned error number by convention, and removes an unnecessary error check. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa --- V5: - Corrected and retouched the subject and changelog.

[PATCHv5 01/20] PCI: mobiveil: Unify register accessors

2019-04-12 Thread Z.q. Hou
From: Hou Zhiqiang It's confused that R/W some registers by csr_readl()/csr_writel(), while others by read_paged_register()/write_paged_register(). Actually the lower 3KB of 4KB PCIe configure space can be accessed directly and higher 1KB is paging area. So this patch unifies the register

[PATCHv5 05/20] PCI: mobiveil: Correct PCI base address in MEM/IO outbound windows

2019-04-12 Thread Z.q. Hou
From: Hou Zhiqiang It should get PCI base address from the 'ranges' property of DT node to setup MEM/IO outbound windows instead of always using zero. Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver") Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian

[PATCHv5 02/20] PCI: mobiveil: Format the code without functionality change

2019-04-12 Thread Z.q. Hou
From: Hou Zhiqiang Just format the code without functionality change. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V5: - Retouched the subject. drivers/pci/controller/pcie-mobiveil.c | 261 + 1 file changed, 137 insertions(+), 124 deletions(-) diff

[PATCHv5 04/20] PCI: mobiveil: Remove the flag MSI_FLAG_MULTI_PCI_MSI

2019-04-12 Thread Z.q. Hou
From: Hou Zhiqiang The current code does not support multiple MSIs, so remove the corresponding flag from the msi_domain_info structure. Fixes: 1e913e58335f ("PCI: mobiveil: Add MSI support") Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V5: - Corrected the subject.

[PATCHv5 06/20] PCI: mobiveil: Replace the resource list iteration function

2019-04-12 Thread Z.q. Hou
From: Hou Zhiqiang As it won't delete any node during this iteration, replace the function resource_list_for_each_entry_safe() with the resource_list_for_each_entry(). Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa --- V5: - Corrected and retouched

[PATCHv5 00/20] PCI: mobiveil: fixes for Mobiveil PCIe Host Bridge IP driver

2019-04-12 Thread Z.q. Hou
From: Hou Zhiqiang This patch set is to add fixes for Mobiveil PCIe Host driver. And these patches are splited from the thread below: http://patchwork.ozlabs.org/project/linux-pci/list/?series=96417 Hou Zhiqiang (20): PCI: mobiveil: Unify register accessors PCI: mobiveil: Format the code

[PATCHv5 09/20] PCI: mobiveil: Correct inbound/outbound window setup routines

2019-04-12 Thread Z.q. Hou
From: Hou Zhiqiang Outbound window routine: - Remove unused var definitions and register read operations. - Add the upper 32-bit cpu address setup of the window. - Instead of blindly write, only change the fields specified. - Mask the lower bits of window size in case override the control

[PATCHv5 10/20] PCI: mobiveil: Fix the INTx process errors

2019-04-12 Thread Z.q. Hou
From: Hou Zhiqiang In the loop block, there is not code to update the loop key, this patch updates the loop key by re-read the INTx status register. This patch also add the clearing of the handled INTx status. Note: Need MV to test this fix. Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil

[PATCHv5 12/20] PCI: mobiveil: Move the link up waiting out of mobiveil_host_init()

2019-04-12 Thread Z.q. Hou
From: Hou Zhiqiang The host initialize sequence does not depend on PCIe link up, so move it to the place just before the enumeration. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa --- V5: - Corrected and retouched the subject and changelog.

[PATCHv5 15/20] PCI: mobiveil: Fix the checking of valid device

2019-04-12 Thread Z.q. Hou
From: Hou Zhiqiang Allow CFG transactions to all functions of Endpoint implemented multiple functions. Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver") Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian --- V5: - Corrected and retouched the subject and

[PATCHv5 13/20] PCI: mobiveil: Move IRQ chained handler setup out of DT parse

2019-04-12 Thread Z.q. Hou
From: Hou Zhiqiang Move irq_set_chained_handler_and_data() out of DT parse function. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa --- V5: - Corrected the subject. drivers/pci/controller/pcie-mobiveil.c | 4 ++-- 1 file changed, 2 insertions(+),

[PATCHv5 11/20] PCI: mobiveil: Correct the fixup of Class Code field

2019-04-12 Thread Z.q. Hou
From: Hou Zhiqiang Only fix up the Class Code field to PCI bridge, do not change the Revision ID. And this patch also move the Class Code fixup to function mobiveil_host_init(). Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP driver") Signed-off-by: Hou Zhiqiang

[PATCHv5 14/20] PCI: mobiveil: Initialize Primary/Secondary/Subordinate bus numbers

2019-04-12 Thread Z.q. Hou
From: Hou Zhiqiang The reset value of Primary, Secondary and Subordinate bus numbers is zero, so set a workable value for these 3 bus numbers. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa --- V5: - Corrected and retouched the subject and

[PATCHv5 08/20] PCI: mobiveil: Use the 1st inbound window for MEM inbound transactions

2019-04-12 Thread Z.q. Hou
From: Hou Zhiqiang The inbound windows have independent register set against outbound windows. This patch change the MEM inbound window to the first one. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa --- V5: - Corrected and retouched the subject

[PATCHv5 07/20] PCI: mobiveil: Use WIN_NUM_0 explicitly for CFG outbound window

2019-04-12 Thread Z.q. Hou
From: Hou Zhiqiang As the .map_bus() use the WIN_NUM_0 for CFG transactions, it's better passing WIN_NUM_0 explicitly when initialize the CFG outbound window. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa --- V5: - Corrected the subject.

[PATCHv5 18/20] PCI: mobiveil: Disable IB and OB windows set by bootloader

2019-04-12 Thread Z.q. Hou
From: Hou Zhiqiang Disable all inbound and outbound windows before set up the windows in kernel, in case transactions match the window set by bootloader. Signed-off-by: Hou Zhiqiang Reviewed-by: Minghuan Lian Reviewed-by: Subrahmanya Lingappa --- V5: - No functionality change.

  1   2   3   4   5   6   7   >