Re: [PATCH v2 2/2] kbuild: trace functions in subdirectories of lib/

2020-07-21 Thread Masahiro Yamada
On Wed, Jul 8, 2020 at 6:23 PM Petr Mladek wrote: > > On Wed 2020-07-08 08:52:23, Petr Mladek wrote: > > > > PS: BTW: The livepatch selftests fail in Linus's master now. But it > > seems to be for another reason. I am going to dig into it. > > JFYI, the livepatch selftests are actually working. I

Re: [PATCH v2 2/2] kbuild: trace functions in subdirectories of lib/

2020-07-21 Thread Masahiro Yamada
On Wed, Jul 8, 2020 at 1:02 AM Steven Rostedt wrote: > > On Tue, 7 Jul 2020 18:21:17 +0900 > Masahiro Yamada wrote: > > > ccflags-remove-$(CONFIG_FUNCTION_TRACER) += $(CC_FLAGS_FTRACE) > > > > exists here in sub-directories of lib/ to keep the behavior of > > commit 2464a609ded0 ("ftrace: do

[PATCH -next] soc: qcom: geni: Fix unused lable warning

2020-07-21 Thread YueHaibing
If CONFIG_SERIAL_EARLYCON is not set, gcc warns this: drivers/soc/qcom/qcom-geni-se.c: In function ‘geni_se_probe’: drivers/soc/qcom/qcom-geni-se.c:914:1: warning: label ‘exit’ defined but not used [-Wunused-label] exit: ^~~~ Fixes: 048eb908a1f2 ("soc: qcom-geni-se: Add interconnect support

Re: [PATCH] serial: 8250: fix null-ptr-deref in serial8250_start_tx()

2020-07-21 Thread liwei (GF)
Hi Yingliang, On 2020/7/21 22:38, Yang Yingliang wrote: (SNIP) > > SERIAL_PORT_DFNS is not defined on each arch, if it's not defined, > serial8250_set_defaults() won't be called in serial8250_isa_init_ports(), > so the p->serial_in pointer won't be initialized, and it leads a > null-ptr-deref.

Re: [PATCH v2] usb: gadget: configfs: Fix use-after-free issue with udc_name

2020-07-21 Thread Macpaul Lin
On Tue, 2020-07-21 at 13:33 +0200, Greg Kroah-Hartman wrote: > On Sat, Jul 18, 2020 at 10:58:53AM +0800, Macpaul Lin wrote: > > On Sat, 2020-07-18 at 10:45 +0800, Macpaul Lin wrote: > > > From: Eddie Hung > > > > > > > Well, it's strange, I simply replaced the uploader's name to my > >

[PATCH 2/2] platform/chrome: cros_ec_proto: check for missing EC_CMD_HOST_EVENT_GET_WAKE_MASK

2020-07-21 Thread Brian Norris
As with cros_ec_cmd_xfer_status(), etc., it's not enough to simply check for the return status of send_command() -- that only covers transport or other similarly-fatal errors. One must also check the ->result field, to see whether the command really succeeded. If not, we can't use the data it

[PATCH 1/2] platform/chrome: cros_ec_proto: ignore unnecessary wakeups on old ECs

2020-07-21 Thread Brian Norris
ECs that don't implement EC_CMD_HOST_EVENT_GET_WAKE_MASK should still have some reasonable default mask -- otherwise, they'll treat a variety of EC signals as spurious wakeups. Battery and AC events can be especially common, for devices that have been sitting at full charge plugged into AC for a

[PATCH -next] drm/amdgpu/vcn3.0: Remove set but not used variable 'direct_poll'

2020-07-21 Thread YueHaibing
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c: In function vcn_v3_0_start_sriov: drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:1235:3: warning: variable direct_poll set but not used [-Wunused-but-set-variable] It is never used, so can remove it. Signed-off-by: YueHaibing ---

[PATCH V2 3/4] ARM: imx_v6_v7_defconfig: Build in CONFIG_GPIO_MXC by default

2020-07-21 Thread Anson Huang
i.MX GPIO is NOT default enabled now, so select CONFIG_GPIO_MXC as built-in manually. Signed-off-by: Anson Huang --- No change. --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig

[PATCH V2 4/4] ARM: multi_v7_defconfig: Build in CONFIG_GPIO_MXC by default

2020-07-21 Thread Anson Huang
i.MX GPIO is NOT default enabled now, so select CONFIG_GPIO_MXC as built-in manually. Signed-off-by: Anson Huang --- new patch. --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig

[PATCH V2 2/4] arm64: defconfig: Build in CONFIG_GPIO_MXC by default

2020-07-21 Thread Anson Huang
i.MX GPIO is NOT default enabled now, so select CONFIG_GPIO_MXC as built-in manually. Signed-off-by: Anson Huang --- No change. --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 070c7e3..43b2bfd

[PATCH] drm/panel: remove meaningless if(ret) check code.

2020-07-21 Thread Bernard Zhao
The function drm_panel_add always returns true. So if(ret) check code will never run into error branch. Remove these check will make the code a bit readable. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c | 4 +--- 1 file changed, 1 insertion(+), 3

[PATCH V2 1/4] gpio: mxc: Support module build

2020-07-21 Thread Anson Huang
Change config to tristate, add module device table, module author, description and license to support module build for i.MX GPIO driver. As this is a SoC GPIO module, it provides common functions for most of the peripheral devices, such as GPIO pins control, secondary interrupt controller for

Re: [PATCH] riscv: Cleanup unnecessary define in asm-offset.c

2020-07-21 Thread Palmer Dabbelt
On Sun, 12 Jul 2020 06:41:49 PDT (-0700), guo...@kernel.org wrote: From: Guo Ren - TASK_THREAD_SP is duplicated define - TASK_STACK is no use at all - Don't worry about thread_info's offset in task_struct, have a look on comment in include/linux/sched.h: struct task_struct { /*

Re: [PATCH v7 03/14] PCI: cadence: Convert all r/w accessors to perform only 32-bit accesses

2020-07-21 Thread Kishon Vijay Abraham I
Hi Lorenzo, On 7/21/2020 9:19 PM, Lorenzo Pieralisi wrote: > On Mon, Jul 13, 2020 at 04:31:30PM +0530, Kishon Vijay Abraham I wrote: >> Certain platforms like TI's J721E using Cadence PCIe IP can perform only >> 32-bit accesses for reading or writing to Cadence registers. Convert all >> read and

[PATCH] drm/panel: remove meaningless if(ret) check code.

2020-07-21 Thread Bernard Zhao
The function drm_panel_add always returns true. So if(ret) check code will never run into error branch. Remove these check make the code a bit readable. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/panel/panel-feixin-k101-im2ba02.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)

linux-next: build failure after merge of the pci tree

2020-07-21 Thread Stephen Rothwell
ename pci_aer_clear_device_status() to pcie_clear_device_status()") CONFIG_PCIEAER is not set for this build. I have used the pci tree from next-20200721 for today. -- Cheers, Stephen Rothwell pgppOFgxstM6N.pgp Description: OpenPGP digital signature

Re: [PATCH v3] Makefile: Fix GCC_TOOLCHAIN_DIR prefix for Clang cross compilation

2020-07-21 Thread Masahiro Yamada
On Wed, Jul 22, 2020 at 9:14 AM Fangrui Song wrote: > > On 2020-07-22, Masahiro Yamada wrote: > >On Wed, Jul 22, 2020 at 2:31 AM 'Fangrui Song' via Clang Built Linux > > wrote: > >> > >> When CROSS_COMPILE is set (e.g. aarch64-linux-gnu-), if > >> $(CROSS_COMPILE)elfedit is found at

Re: [PATCH] net: ethernet: ti: add NETIF_F_HW_TC hw feature flag for taprio offload

2020-07-21 Thread David Miller
From: Grygorii Strashko Date: Fri, 17 Jul 2020 15:19:32 +0300 > From: Murali Karicheri > > Currently drive supports taprio offload which is a tc feature offloaded > to cpsw hardware. So driver has to set the hw feature flag, NETIF_F_HW_TC > in the net device to be compliant. This patch adds

Re: [PATCH] net: ethernet: ave: Fix error returns in ave_init

2020-07-21 Thread David Miller
From: Wang Hai Date: Fri, 17 Jul 2020 10:50:49 +0800 > When regmap_update_bits failed in ave_init(), calls of the functions > reset_control_assert() and clk_disable_unprepare() were missed. > Add goto out_reset_assert to do this. > > Fixes: 57878f2f4697 ("net: ethernet: ave: add support for

Re: [PATCH v2] drivers/net/wan/x25_asy: Fix to make it work

2020-07-21 Thread David Miller
From: Xie He Date: Thu, 16 Jul 2020 16:44:33 -0700 > This driver is not working because of problems of its receiving code. > This patch fixes it to make it work. > > When the driver receives an LAPB frame, it should first pass the frame > to the LAPB module to process. After processing, the

Re: [PATCH][next] sparc: Use fallthrough pseudo-keyword

2020-07-21 Thread David Miller
From: "Gustavo A. R. Silva" Date: Tue, 7 Jul 2020 12:24:36 -0500 > Replace the existing /* fall through */ comments and its variants with > the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary > fall-through markings when it is the case. > > [1] >

Re: [PATCH 1/2] sparc64: Deselect IRQ_PREFLOW_FASTEOI

2020-07-21 Thread David Miller
From: Valentin Schneider Date: Fri, 3 Jul 2020 16:56:44 +0100 > sparc64 hasn't needed to select this since commit: > > ee6a9333fa58 ("sparc64: sparse irq") > > which got rid of the calls to __irq_set_preflow_handler() first installed > by commit: > > fcd8d4f49869 ("sparc: Use the new

Re: [PATCH v4 5/7] powerpc/iommu: Move iommu_table cleaning routine to iommu_table_clean

2020-07-21 Thread Alexey Kardashevskiy
On 22/07/2020 08:13, Leonardo Bras wrote: > On Tue, 2020-07-21 at 14:59 +1000, Alexey Kardashevskiy wrote: >> >> On 16/07/2020 17:16, Leonardo Bras wrote: >>> Move the part of iommu_table_free() that does struct iommu_table cleaning >>> into iommu_table_clean, so we can invoke it separately.

Re: [PATCH v2 0/2] sparc32: srmmu: improve type safety of __nocache_fix()

2020-07-21 Thread David Miller
From: Mike Rapoport Date: Sat, 27 Jun 2020 11:16:51 +0300 > From: Mike Rapoport > > Hi, > > As discussed at [1] the __nocache_fix() macro in sparc's SRMMU can be made > type safe and so the compiler will yell anout misuse of pXd pointers for > which the __nocache_fix() is primarily used. > >

Re: [PATCH] sparc32: fix a user-triggerable oops in clear_user()

2020-07-21 Thread David Miller
From: Al Viro Date: Mon, 20 Jul 2020 02:21:51 +0100 > Back in 2.1.29 the clear_user() guts (__bzero()) had been merged > with memset(). Unfortunately, while all exception handlers had been > copied, one of the exception table entries got lost. As the result, > clear_user() starting at 128*n

Re: [PATCH] SPARC: backoff.h: delete a duplicated word

2020-07-21 Thread David Miller
From: Randy Dunlap Date: Tue, 21 Jul 2020 14:00:33 -0700 > Drop the repeated word "other". > > Signed-off-by: Randy Dunlap Applied, thanks Randy. > @David: > In arch/sparc/include/asm/cpu_type.h, line 12, > is that duplicated "ploos" correct? > sun4u = 0x03, /* V8 ploos ploos */

Re: [PATCH 11/18] sparc32: propagate the calling conventions change down to __csum_partial_copy_sparc_generic()

2020-07-21 Thread David Miller
From: Al Viro Date: Tue, 21 Jul 2020 21:25:42 +0100 > From: Al Viro > > ... and get rid of zeroing the target, etc. on fault. > All exception handlers merge into one; moreover, since we are not > calling lookup_fault() anymore, we don't need the magic with passing > arguments for it from the

Re: [PATCH 16/18] sparc64: propagate the calling convention changes down to __csum_partial_copy_...()

2020-07-21 Thread David Miller
From: Al Viro Date: Tue, 21 Jul 2020 21:25:47 +0100 > From: Al Viro > > ... and rename them into csum_and_copy_...() - the wrappers become pointless. > > Signed-off-by: Al Viro Acked-by: David S. Miller

[PATCH 22/23 v3] tools lib traceevent: Fixed description of tep_add_plugin_path() API

2020-07-21 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" Changed the description of tep_add_plugin_path() API to reflect the logic of the function. The suffix of plugin files is not hardcoded to ".so", it depends on the custom plugin loader callback. Link:

[PATCH 18/23 v3] tools lib traceevent: Fix typo in tep_plugin_add_option() description

2020-07-21 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" A typo "optiona" -> "optional" is fixed in description of tep_plugin_add_option() API. Link: https://lore.kernel.org/r/cam9d7cizjf+fbk7yzmsbdgrx__4yaosmeq67d3swet8ff+y...@mail.gmail.com Link:

[PATCH 01/23 v3] tools lib traceevent: Add API to read time information from kbuffer

2020-07-21 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Add the functions kbuffer_subbuf_timestamp() and kbuffer_ptr_delta() to get the timing data stored in the ring buffer that is used to produced the time stamps of the records. This is useful for tools like trace-cmd to be able to display the content of the read

[PATCH 15/23 v3] tools lib traceevent: Fix reporting of unknown SVM exit reasons

2020-07-21 Thread Steven Rostedt
From: Jan Kiszka On AMD, exist code -1 is also a possible value, but we use it for terminating the list of known exit reasons. This leads to EXIT_ERR being reported for unkown ones. Fix this by using an NULL string pointer as terminal. Link: http://lkml.kernel.org/r/5741d817.3070...@web.de

[PATCH 11/23 v3] tools lib traceevent: Add plugin for decoding syscalls/sys_enter_futex

2020-07-21 Thread Steven Rostedt
From: Julia Cartwright The futex syscall is a complicated one. It supports thirteen multiplexed operations, each with different semantics and encodings for the syscalls six arguments. Manually decoding these arguments is tedious and error prone. This plugin provides symbolic names for futex

[PATCH 08/23 v3] tools lib traceevent: Add plugin for tlb_flush

2020-07-21 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" The tlb_flush tracepoints uses enums that are not yet known by the traceevent library. Add a plugin to handle that. Link: http://lore.kernel.org/linux-trace-devel/20200625100516.365338-9-tz.stoya...@gmail.com Signed-off-by: Steven Rostedt [ Ported from

[PATCH 05/23 v3] tools lib traceevent: Introduced new traceevent API, for adding new plugins directories.

2020-07-21 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" Implement new traceevent plugin API, which can be used to add new plugins directories: enum tep_plugin_load_priority { TEP_PLUGIN_FIRST, TEP_PLUGIN_LAST, }; int tep_add_plugin_path(struct tep_handle *tep, char *path,

[PATCH 02/23 v3] tools lib traceevent: Add proper KBUFFER_TYPE_TIME_STAMP handling

2020-07-21 Thread Steven Rostedt
From: Tom Zanussi Kernel commit dc4e2801d400 (ring-buffer: Redefine the unimplemented RINGBUF_TYPE_TIME_STAMP) changed the way the ring buffer timestamps work - after that commit the previously unimplemented RINGBUF_TYPE_TIME_STAMP type causes the time delta to be used as a timestamp rather than

[PATCH 13/23 v3] tools lib traceevent: Add builtin handler for trace_marker_raw

2020-07-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" When something is written into trace_marker_raw, it goes in as a binary. But the printk_fmt() of the event that is created (raw_data)'s format file only prints the first byte of data: print fmt: "id:%04x %08x", REC->id, (int)REC->buf[0] This is not very useful

[PATCH 00/23 v3] tools lib traceevent: Synchronizing trace-cmd with tools

2020-07-21 Thread Steven Rostedt
Changes since v2: The last 8 patches are added to address Namhyung's comments. -- Steve Jan Kiszka (2): tools lib traceevent: Add more SVM exit reasons tools lib traceevent: Fix reporting of unknown SVM exit reasons Julia Cartwright (1): tools lib traceevent: Add plugin for

[PATCH 07/23 v3] tools lib traceevent: Optimize pretty_print() function

2020-07-21 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" Each time the pretty_print() function is called to print an event, the event's format string is parsed. As this format string does not change, this parsing can be done only once - when the event struct is initialized. Link:

[PATCH 03/23 v3] tools lib traceevent: Add tep_load_plugins_hook() API

2020-07-21 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" Add the API function tep_load_plugins_hook() to the traceevent API to allow tools a common method to load in the plugins that are part of the lib traceevent library. Link: http://lore.kernel.org/linux-trace-devel/20190802110101.14759-4-tz.stoya...@gmail.com

[PATCH 23/23 v3] tools lib traceevent: Handle possible strdup() error in tep_add_plugin_path() API

2020-07-21 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" Free allocated resources and return -1 in case strdup() fails in tep_add_plugin_path() API. Link: https://lore.kernel.org/r/cam9d7chfvjwodpvrhgc5e2j80perojmyv_fd8x3cpn9hfru...@mail.gmail.com Link:

[PATCH 10/23 v3] tools lib traceevent: Add offset option for function plugin

2020-07-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" When the offset option is set for the function plugin enabled, it will display the offset of the functions along with their names. This helps in finding exactly where a function was called by its parent. trace-cmd report -O parent -O offset [..]

[PATCH 14/23 v3] tools lib traceevent: Change to SPDX License format

2020-07-21 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Replaced COPYING with a description of how the SPDX identifiers are used. Added a GPL-2.0 and LGPL-2.1 license file in the new LICENSES directory. Then removed all the license templates from the source files and replaced them with the corresponding SPDX

[PATCH 20/23 v3] tools lib traceevent: Fixed broken indentation in parse_ip4_print_args()

2020-07-21 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" Fixed the "break" indentation in a switch() inside parse_ip4_print_args() static function. Link: https://lore.kernel.org/r/CAM9d7cjboXGg+iMOA4BQo=e01ilgcjnb1mypj4dopp1xegv...@mail.gmail.com Link:

[PATCH 12/23 v3] tools lib traceevent: Move kernel_stack event handler to "function" plugin.

2020-07-21 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" The "kernel_stack" event handler does not depend on any trace-cmd context, it can be used aside from the application. The code is moved to libtraceevent "function" plugin. Link:

[PATCH 17/23 v3] tools lib traceevent: Handle strdup() error in parse_option_name()

2020-07-21 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" Modified internal function parse_option_name() to return error and handle that error in function callers in case strdup() fails. Link: https://lore.kernel.org/r/cam9d7cizjf+fbk7yzmsbdgrx__4yaosmeq67d3swet8ff+y...@mail.gmail.com Link:

[PATCH 16/23 v3] tools lib traceevent: Document tep_load_plugins_hook()

2020-07-21 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" Add description of tep_load_plugins_hook() traceevent API. Updated library man pages with description of the tep_load_plugins_hook() API. Link: https://lore.kernel.org/r/CAM9d7cgLBWCrEHwz+Lhv5x5EXGcNWB0QQoeGh3OKh2JfR=d...@mail.gmail.com Link:

[PATCH 09/23 v3] tools lib traceevent: Add more SVM exit reasons

2020-07-21 Thread Steven Rostedt
From: Jan Kiszka Exceptions require individual decoding (only feasible intercepts listed), XSETBV was missing and the AVIC brought in two new exit codes. Link: http://lkml.kernel.org/r/5741d822.3030...@web.de Link:

Re: [PATCH v3 10/11] PM, libnvdimm: Add runtime firmware activation support

2020-07-21 Thread kernel test robot
Hi Dan, I love your patch! Perhaps something to improve: [auto build test WARNING on 48778464bb7d346b47157d21ffde2af6b2d39110] url: https://github.com/0day-ci/linux/commits/Dan-Williams/ACPI-NVDIMM-Runtime-Firmware-Activation/20200721-062902 base:48778464bb7d346b47157d21ffde2af6b2d39110

[PATCH 21/23 v3] tools lib traceevent: Fixed type in PRINT_FMT_STING

2020-07-21 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" PRINT_FMT_STING -> PRINT_FMT_STRING Link: https://lore.kernel.org/r/CAM9d7cj1LJ=qo8qxhbo_odm9appaswx4bbtwge0jhz3y4-b...@mail.gmail.com Link: https://lore.kernel.org/linux-trace-devel/20200714103027.2477584-7-tz.stoya...@gmail.com Link:

[PATCH 19/23 v3] tools lib traceevent: Improve error handling of tep_plugin_add_option() API

2020-07-21 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" In case of memory error, ensure all allocated resources are freed. Do not append broken option in trace_plugin_options list. Link: https://lore.kernel.org/r/cam9d7cizjf+fbk7yzmsbdgrx__4yaosmeq67d3swet8ff+y...@mail.gmail.com Link:

[PATCH 04/23 v3] tools lib traceevent: Add interface for options to plugins

2020-07-21 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" Add tep_plugin_add_option() and tep_plugin_print_options() to lib traceevent library that allows plugins to have their own options. For example, the function plugin by default does not print the parent, as it uses the parent to do the indenting. The "parent"

[PATCH 06/23 v3] tools lib traceevent: Add support for more printk format specifiers

2020-07-21 Thread Steven Rostedt
From: "Tzvetomir Stoyanov (VMware)" The printk format specifiers used in event's print format files extend the standard printf formats. There are a lot of new options related to printing pointers and kernel specific structures. Currently trace-cmd does not support many of them. Support for

RE: [EXT] Re: [PATCH 1/2] ARM: dts: imx6qp-sabresd: enable pcie

2020-07-21 Thread Richard Zhu
> -Original Message- > From: Lucas Stach > Sent: 2020年7月21日 16:16 > To: Richard Zhu ; bhelg...@google.com; > shawn...@kernel.org; feste...@gmail.com > Cc: linux-...@vger.kernel.org; dl-linux-imx ; > linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org; >

[PATCH -next] gpu: drm: Fix spinlock vblank_time_lock use error.

2020-07-21 Thread Xu Qiang
The drm_handle_vblank function is in the interrupt context. Therefore, the spin lock vblank_time_lock is obtained from the interrupt context. Cc: Signed-off-by: Xu Qiang --- drivers/gpu/drm/drm_vblank.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git

Re: [PATCH v4 4/7] iommu/vt-d: Handle non-page aligned address

2020-07-21 Thread Lu Baolu
Hi Jacob, On 7/22/20 12:50 AM, Jacob Pan wrote: Hi Baolu, Not sure what state is this patch in, there is a bug in this patch (see below), shall I send out an updated version of this one only? or another incremental patch. Please send an updated version. I hope Joerg could pick these as 5.8

Good day

2020-07-21 Thread Mr. Liang Chung
-- Good day, I am Mr. Liang Chung,Senior bank officer with the International bank of Taipei, Taiwan. i have a business proposal to share with you,if you are interested please get back for more information's :(liangchun...@gmail.com). Sincerely, Mr. Liang Chung

Re: [PATCH v3 0/4] regulator_sync_state() support

2020-07-21 Thread Mark Brown
On Wed, 15 Jul 2020 21:20:49 -0700, Saravana Kannan wrote: > Consider the following example: > - regulator-X is provided by device-X. > - regulator-X is a supplier to device-A, device-B and device-C. > - device-A is off/inactive from boot. > - device-B and device-C are left on/active by the

Re: [PATCH v3] regulator: gpio: Honor regulator-boot-on property

2020-07-21 Thread Mark Brown
On Mon, 20 Jul 2020 21:28:09 +0800, Chen-Yu Tsai wrote: > When requesting the enable GPIO, the driver should do so with the > correct output level matching some expected state. This is especially > important if the regulator is a critical one, such as a supply for > the boot CPU. This is currently

Re: [PATCH] spi: dw-dma: Fix Tx DMA channel working too fast

2020-07-21 Thread Mark Brown
On Tue, 21 Jul 2020 23:39:51 +0300, Serge Semin wrote: > It turns out having a Rx DMA channel serviced with higher priority than > a Tx DMA channel is not enough to provide a well balanced DMA-based SPI > transfer interface. There might still be moments when the Tx DMA channel > is occasionally

Re: [PATCH v3 1/2] dt-bindings: tas2770: Convert tas2770 binding to yaml

2020-07-21 Thread Mark Brown
On Mon, 20 Jul 2020 13:12:01 -0500, Dan Murphy wrote: > Convert the tas2770 binding to yaml format. > Add in the reset-gpio to the binding as it is in the code but not > documented in the binding. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks!

Re: [PATCH V3 0/4] Add frequency / voltage scaling support for IPQ6018 SoC

2020-07-21 Thread Mark Brown
On Mon, 20 Jul 2020 11:42:19 +0530, Kathiravan T wrote: > IPQ6018 SoC uses the PMIC MP5496. SMPA2 and LDOA2 regulator of MP5496 > controls the APSS and SDCC voltage scaling respectively. Add support > for the same. > > changes since V2: > - Rebased on top of linux-next 20200717 tag >

Re: [PATCH v5 00/11] Add ASoC AHUB components for Tegra210 and later

2020-07-21 Thread Mark Brown
On Sun, 19 Jul 2020 10:31:19 +0530, Sameer Pujar wrote: > Overview > > Audio Processing Engine (APE) comprises of Audio DMA (ADMA) and Audio > Hub (AHUB) unit. AHUB is a collection of hardware accelerators for audio > pre-processing and post-processing. It also includes a programmable

Re: [PATCH 1/2] dt-bindings: tas2770: Convert tas2770 binding to yaml

2020-07-21 Thread Mark Brown
On Fri, 12 Jun 2020 12:13:41 -0500, Dan Murphy wrote: > Convert the tas2770 binding to yaml format. > Add in the reset-gpio to the binding as it is in the code but not > documented in the binding. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks!

Re: [PATCH for-next v2 1/2] ASoC: tas2770: Fix reset gpio property name

2020-07-21 Thread Mark Brown
On Fri, 10 Jul 2020 09:50:15 -0500, Dan Murphy wrote: > Fix the reset property name when allocating the GPIO descriptor. > The gpiod_get_optional appends either the -gpio or -gpios suffix to the > name. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Re: [PATCH v2] xtensa: add boot subdirectories targets to extra-y

2020-07-21 Thread Masahiro Yamada
On Tue, Jul 21, 2020 at 6:37 PM Max Filippov wrote: > > The commit 8fe87a92f262 ("kbuild: always create directories of targets") > exposed an issue in the xtensa makefiles that results in the following > build error in a clean directory: > scripts/Makefile.build:374:

Re: [PATCH v4 5/7] powerpc/iommu: Move iommu_table cleaning routine to iommu_table_clean

2020-07-21 Thread Brian King
On 7/21/20 5:13 PM, Leonardo Bras wrote: > On Tue, 2020-07-21 at 14:59 +1000, Alexey Kardashevskiy wrote: >> >> On 16/07/2020 17:16, Leonardo Bras wrote: >>> Move the part of iommu_table_free() that does struct iommu_table cleaning >>> into iommu_table_clean, so we can invoke it separately. >>>

Re: [PATCH] vfio dma_map/unmap: optimized for hugetlbfs pages

2020-07-21 Thread Peter Xu
On Mon, Jul 20, 2020 at 04:46:03PM -0600, Alex Williamson wrote: > > + /* > > +* We got a hugetlbfs page using vaddr_get_pfn alreadly. > > +* In this case,we do not need to alloc pages and we can finish > > all > > +* work by a single operation to the

[PATCH] xtensa: add boot subdirectories build artifacts to 'targets'

2020-07-21 Thread Masahiro Yamada
Xtensa always rebuilds the following even if nothing in the source code has been changed. Passing V=2 shows the reason. AS arch/xtensa/boot/boot-elf/bootstrap.o - due to bootstrap.o not in $(targets) LDS arch/xtensa/boot/boot-elf/boot.lds - due to boot.lds not in $(targets) They

linux-next: manual merge of the xtensa tree with the csky tree

2020-07-21 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the xtensa tree got a conflict in: tools/testing/selftests/seccomp/seccomp_bpf.c between commit: f4dd2edafba0 ("csky: add support for SECCOMP and SECCOMP_FILTER") from the csky tree and commit: deccfc9ce639 ("selftests/seccomp: add xtensa support")

Re: [PATCH 08/10] dma-mapping: consolidate the NO_DMA definition in kernel/dma/Kconfig

2020-07-21 Thread Rich Felker
On Tue, Jul 21, 2020 at 07:11:34AM +0200, Christoph Hellwig wrote: > On Mon, Jul 20, 2020 at 11:17:26PM -0400, Rich Felker wrote: > > On Tue, Jul 14, 2020 at 02:18:54PM +0200, Christoph Hellwig wrote: > > > Have a single definition that architetures can select. > > > > > > Signed-off-by:

Re: [PATCH v2 6/9] usb: cdns3: Added CDNS3_ID_PERIPHERAL and CDNS3_ID_HOST

2020-07-21 Thread Peter Chen
On 20-07-13 12:05:51, Pawel Laszczak wrote: > Patch adds 2 definitions that make it easier to understand the code. > > Signed-off-by: Pawel Laszczak > --- > drivers/usb/cdns3/drd.c | 4 ++-- > drivers/usb/cdns3/drd.h | 3 +++ > 2 files changed, 5 insertions(+), 2 deletions(-) > > diff --git

Re: [PATCH v2 4/9] usb: cdns3: drd: return IRQ_NONE explicitly.

2020-07-21 Thread Peter Chen
On 20-07-13 12:05:49, Pawel Laszczak wrote: > IRQ_NONE can be returned indirect. > > Signed-off-by: Pawel Laszczak Reviewed-by: Peter Chen > --- > drivers/usb/cdns3/drd.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/usb/cdns3/drd.c

Re: [PATCH v2 5/9] usb: cdns3: drd: changed return type from int to bool

2020-07-21 Thread Peter Chen
On 20-07-13 12:05:50, Pawel Laszczak wrote: > Patch changes return type from int to bool for > cdns3_is_host and cdns3_is_device functions. > > Signed-off-by: Pawel Laszczak Reviewed-by: Peter Chen > --- > drivers/usb/cdns3/drd.c | 16 > drivers/usb/cdns3/drd.h | 4 ++-- >

Re: [PATCH v2 3/9] usb: cnds3: drd: deleted !=

2020-07-21 Thread Peter Chen
On 20-07-13 12:05:48, Pawel Laszczak wrote: > Patch deletes unnecessary != from condition statement in cdns3_drd_init > function. > > Signed-off-by: Pawel Laszczak Reviewed-by: Peter Chen > --- > drivers/usb/cdns3/drd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH v2 2/9] usb: cdns3: drd: removed not needed variables initialization

2020-07-21 Thread Peter Chen
On 20-07-13 12:05:47, Pawel Laszczak wrote: > Patch remove some variables initialization from core.c and drd.c > file. > > Signed-off-by: Pawel Laszczak Reviewed-by: Peter Chen Peter > --- > drivers/usb/cdns3/core.c | 4 ++-- > drivers/usb/cdns3/drd.c | 19 +-- > 2 files

linux-next: Fixes tag needs some work in the pci tree

2020-07-21 Thread Stephen Rothwell
Hi all, In commit 769785cebe0f ("PCI: rcar: Fix runtime PM imbalance on error") Fixes tag Fixes: 0df6150e7ceb ("PCI: rcar: Use runtime PM to control controller has these problem(s): - Subject has leading but no trailing parentheses - Subject has leading but no trailing quotes Please

Re: [RFC PATCH 09/16] sched/fair: core wide cfs task priority comparison(Internet mail)

2020-07-21 Thread 蒋彪
> On Jul 1, 2020, at 5:32 AM, Vineeth Remanan Pillai > wrote: > > From: Aaron Lu > > This patch provides a vruntime based way to compare two cfs task's > priority, be it on the same cpu or different threads of the same core. > > When the two tasks are on the same CPU, we just need to find

Re: [PATCH v2 01/11] xen/manage: keep track of the on-going suspend mode

2020-07-21 Thread Stefano Stabellini
On Tue, 21 Jul 2020, Boris Ostrovsky wrote: > >> +static int xen_setup_pm_notifier(void) > >> +{ > >> + if (!xen_hvm_domain()) > >> + return -ENODEV; > >> > >> I forgot --- what did we decide about non-x86 (i.e. ARM)? > > It would be great to support

[PATCH] x86/PCI: Use MMCONFIG by default for KVM guests

2020-07-21 Thread Julia Suvorova
Scanning for PCI devices at boot takes a long time for KVM guests. It can be reduced if KVM will handle all configuration space accesses for non-existent devices without going to userspace [1]. But for this to work, all accesses must go through MMCONFIG. This change allows to use pci_mmcfg as

Re: [PATCH v3] Makefile: Fix GCC_TOOLCHAIN_DIR prefix for Clang cross compilation

2020-07-21 Thread Fangrui Song
On 2020-07-22, Masahiro Yamada wrote: On Wed, Jul 22, 2020 at 2:31 AM 'Fangrui Song' via Clang Built Linux wrote: When CROSS_COMPILE is set (e.g. aarch64-linux-gnu-), if $(CROSS_COMPILE)elfedit is found at /usr/bin/aarch64-linux-gnu-elfedit, GCC_TOOLCHAIN_DIR will be set to /usr/bin/.

Re: [PATCH] userfaultfd: avoid the duplicated release for userfaultfd_ctx

2020-07-21 Thread Suren Baghdasaryan
On Sun, Jul 19, 2020 at 6:34 PM Xu, Yanfei wrote: > > > > On 7/20/20 12:57 AM, Al Viro wrote: > > On Sun, Jul 19, 2020 at 09:58:34PM +0800, Xu, Yanfei wrote: > >> ping Al Viro > >> > >> Could you please help to review this patch? Thanks a lot. > > > > That's -next, right? As for the patch

Re: [PATCH v31 03/12] leds: lp50xx: Add the LP50XX family of the RGB LED driver

2020-07-21 Thread Dan Murphy
Pavel On 7/21/20 4:05 PM, Pavel Machek wrote: Hi! The device has the ability to group LED output into control banks so that multiple LED banks can be controlled with the same mixing and brightness. Inversely the LEDs can also be controlled independently. Inversely? I will revise it. ---

Re: [PATCH v31 03/12] leds: lp50xx: Add the LP50XX family of the RGB LED driver

2020-07-21 Thread Dan Murphy
Pavel On 7/21/20 4:07 PM, Pavel Machek wrote: On Thu 2020-07-16 13:19:58, Dan Murphy wrote: Introduce the LP5036/30/24/18/12/9 RGB LED driver. The difference in these parts are the number of LED outputs where the: LP5036 can control 36 LEDs LP5030 can control 30 LEDs LP5024 can control 24

Re: [PATCH 1/1] iommu/arm-smmu: Implement qcom,skip-init

2020-07-21 Thread Bjorn Andersson
On Tue 21 Jul 09:20 PDT 2020, Konrad Dybcio wrote: > >The current > >focus has been on moving more of the SMMU specific bits into the > >arm-smmu-qcom > >implementation [1] and I think that is the right way to go. > > Pardon if I overlooked something obvious, but I can't seem to find a > clean

Re: 5.7 regression: Lots of PCIe AER errors and suspend failure without pcie=noaer

2020-07-21 Thread Robert Hancock
On Fri, Jul 10, 2020 at 6:28 PM Robert Hancock wrote: > > On Fri, Jul 10, 2020 at 6:23 PM Robert Hancock wrote: > > > > Noticed a problem on my desktop with an Asus PRIME H270-PRO > > motherboard after Fedora 32 upgraded to the 5.7 kernel (now on 5.7.8): > > periodically there are PCIe AER

Re: [RFC PATCH] platform: ioremap: Build iomap functions even without HAS_IOMEM

2020-07-21 Thread Brendan Higgins
On Mon, Jul 20, 2020 at 10:45 PM David Gow wrote: > > A number of drivers use devm_platform_ioremap_resource(), but do not (or > did not) explicitly depend on IOMEM[1,2]. Given that the only platform > without HAS_IOMEM seems to be UML, and it has sufficient stubs for >

RE: [PATCH RFC v2 00/18] Add VFIO mediated device support and DEV-MSI support for the idxd driver

2020-07-21 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Wednesday, July 22, 2020 12:45 AM > > > Link to previous discussions with Jason: > > https://lore.kernel.org/lkml/57296ad1-20fe-caf2-b83f- > 46d823ca0...@intel.com/ > > The emulation part that can be moved to user space is very small due to > the majority of the >

Re: [PATCH 2/4] tracing: add trace_export support for event trace

2020-07-21 Thread tingwei
On 2020-07-22 00:43, Steven Rostedt wrote: On Tue, 21 Jul 2020 12:37:33 -0400 Steven Rostedt wrote: On Mon, 20 Jul 2020 10:21:15 +0800 Tingwei Zhang wrote: > Only function traces can be exported to other destinations currently. > This patch exports event trace as well. > > Signed-off-by:

Re: [PATCH v3] lib: kunit: Provides a userspace memory context when tests are compiled as module

2020-07-21 Thread Brendan Higgins
On Tue, Jul 21, 2020 at 10:40 AM Vitor Massaru Iha wrote: > > KUnit test cases run on kthreads, and kthreads don't have an > adddress space (current->mm is NULL), but processes have mm. > > The purpose of this patch is to allow to borrow mm to KUnit kthread > after userspace is brought up,

[PATCH][next] i2c: synquacer: Use fallthrough pseudo-keyword

2020-07-21 Thread Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva ---

Re: [PATCH v5 1/4] riscv: Move kernel mapping to vmalloc zone

2020-07-21 Thread Palmer Dabbelt
On Tue, 21 Jul 2020 16:12:58 PDT (-0700), b...@kernel.crashing.org wrote: On Tue, 2020-07-21 at 12:05 -0700, Palmer Dabbelt wrote: * We waste vmalloc space on 32-bit systems, where there isn't a lot of it. * On 64-bit systems the VA space around the kernel is precious because it's the only

Re: [PATCH v3] lib: overflow_kunit: add KUnit test conversion of check_*_overflow

2020-07-21 Thread Brendan Higgins
On Tue, Jul 21, 2020 at 12:38 PM Vitor Massaru Iha wrote: > > On Tue, Jul 21, 2020 at 3:55 PM Kees Cook wrote: > > > > On Mon, Jul 20, 2020 at 07:44:18PM -0300, Vitor Massaru Iha wrote: > > > This adds the conversion of the runtime tests of check_*_overflow > > > functions, > > > from

Re: [PATCH -next] mm/gup.c: Fix the comment of return value for populate_vma_page_range()

2020-07-21 Thread Ira Weiny
On Mon, Jul 20, 2020 at 11:43:03AM +0800, Tang Yizhou wrote: > The return value of populate_vma_page_range() is consistent with > __get_user_pages(), and so is the function comment of return value. > > Signed-off-by: Tang Yizhou Reviewed-by: Ira Weiny > --- > mm/gup.c | 3 ++- > 1 file

Re: [RFC PATCH v2 1/6] ALSA: compress: move codec parameter check to a function

2020-07-21 Thread Pierre-Louis Bossart
On 7/21/20 12:00 PM, Srinivas Kandagatla wrote: Move codec parameter checking to dedicated function so that other callers do not duplicate it. This is in preparedness for adding preparation? snd_compr_set_codec_params() support.

Re: [PATCH v2 9/9] ASoC: q6asm-dai: add support to copy callback

2020-07-21 Thread Pierre-Louis Bossart
+static int q6asm_compr_copy(struct snd_soc_component *component, + struct snd_compr_stream *stream, char __user *buf, + size_t count) { struct snd_compr_runtime *runtime = stream->runtime; struct q6asm_dai_rtd *prtd =

Re: [PATCH v2 2/9] ASoC: q6asm: make commands specific to streams

2020-07-21 Thread Pierre-Louis Bossart
diff --git a/sound/soc/qcom/qdsp6/q6asm-dai.c b/sound/soc/qcom/qdsp6/q6asm-dai.c index 941f3216399c..fb0488e7beb9 100644 --- a/sound/soc/qcom/qdsp6/q6asm-dai.c +++ b/sound/soc/qcom/qdsp6/q6asm-dai.c @@ -67,6 +67,8 @@ struct q6asm_dai_rtd { uint16_t bits_per_sample; uint16_t

Re: [PATCH v2 8/9] ASoC: qdsp6-dai: add gapless support

2020-07-21 Thread Pierre-Louis Bossart
case ASM_CLIENT_EVENT_CMD_EOS_DONE: - prtd->state = Q6ASM_STREAM_STOPPED; + spin_lock_irqsave(>lock, flags); + if (prtd->notify_on_drain) { + if (substream->partial_drain) { + /** why the

Re: [RFC PATCH v2 2/6] ALSA: compress: add new ioctl for setting codec parameters

2020-07-21 Thread Pierre-Louis Bossart
On 7/21/20 12:00 PM, Srinivas Kandagatla wrote: For gapless playback it is possible that each track can have different codec profile with same decoder, for example we have WMA album, we may have different tracks as WMA v9, WMA v10 and so on Or if DSP's like QDSP have abililty to switch

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