Re: [PATCH v8 v5 1/3] media: dt-bindings: ov8856: Document YAML bindings

2020-04-28 Thread Marco Felsch
Hi Robert, On 20-04-28 20:07, Robert Foss wrote: > From: Dongchun Zhu > > This patch adds documentation of device tree in YAML schema for the > OV8856 CMOS image sensor. > > Signed-off-by: Dongchun Zhu > Signed-off-by: Robert Foss > --- > > - Changes since v7: > * Marco: Make 'port'

[GIT PULL] Crypto Fixes for 5.7

2020-04-28 Thread Herbert Xu
Hi Linus: This push fixes a bunch of bugs detected by KASAN in the caam driver. The following changes since commit 8f3d9f354286745c751374f5f1fcafee6b3f3136: Linux 5.7-rc1 (2020-04-12 12:35:55 -0700) are available in the Git repository at:

Re: [PATCH v2 0/2] mtd: spi-nor: macronix: Add support for mx25l512/mx25u512

2020-04-28 Thread masonccyang
Hi Tudor, > > 2020/04/28 下午 04:39 > > To > > , > > cc > > , , , > , , > > Subject > > Re: [PATCH v2 0/2] mtd: spi-nor: macronix: Add support for mx25l512/mx25u512 > > On Thursday, April 23, 2020 11:38:41 AM EEST Mason Yang wrote: > > EXTERNAL EMAIL: Do not click links or open

Re: [PATCH V11.2] Documentation/dax: Update Usage section

2020-04-28 Thread Randy Dunlap
On 4/28/20 9:33 PM, ira.we...@intel.com wrote: > From: Ira Weiny > > Update the Usage section to reflect the new individual dax selection > functionality. > > Signed-off-by: Ira Weiny > > --- Acked-by: Randy Dunlap Thanks. > --- > Documentation/filesystems/dax.txt | 142

[PATCH][v2] kvm: x86: emulate APERF/MPERF registers

2020-04-28 Thread Li RongQing
Guest kernel reports a fixed cpu frequency in /proc/cpuinfo, this is confused to user when turbo is enable, and aperf/mperf can be used to show current cpu frequency after 7d5905dc14a "(x86 / CPU: Always show current CPU frequency in /proc/cpuinfo)" so we should emulate aperf mperf to achieve it

Re: [PATCH] usb: typec: mux: intel: Handle alt mode HPD_LVL

2020-04-28 Thread Prashant Malani
Sorry, didn't compose the Commit message quite right, have sent out v2. Thanks, On Tue, Apr 28, 2020 at 10:34 PM Prashant Malani wrote: > > According to the PMC Type C Subsystem (TCSS) Mux programming guide rev > 0.6, when a device is transitioning to DP Alternate Mode state, if the > HPD_LVL

[PATCH v2] usb: typec: mux: intel: Handle alt mode HPD_HIGH

2020-04-28 Thread Prashant Malani
According to the PMC Type C Subsystem (TCSS) Mux programming guide rev 0.6, when a device is transitioning to DP Alternate Mode state, if the HPD_STATE (bit 7) field in the status update command VDO is set to HPD_HIGH, the HPD_HIGH field in the Alternate Mode request “mode_data” field (bit 14)

Re: [PATCH 5/5] virtio: Add bounce DMA ops

2020-04-28 Thread Lu Baolu
On 2020/4/29 12:57, Michael S. Tsirkin wrote: On Wed, Apr 29, 2020 at 10:22:32AM +0800, Lu Baolu wrote: On 2020/4/29 4:41, Michael S. Tsirkin wrote: On Tue, Apr 28, 2020 at 11:19:52PM +0530, Srivatsa Vaddagiri wrote: * Michael S. Tsirkin [2020-04-28 12:17:57]: Okay, but how is all this

Re: [net-next PATCH v2 0/3] Introduce new APIs to support phylink and phy layers

2020-04-28 Thread Calvin Johnson
On Mon, Apr 27, 2020 at 03:48:07PM +0100, Russell King - ARM Linux admin wrote: > On Mon, Apr 27, 2020 at 08:02:38PM +0530, Calvin Johnson wrote: > > On Mon, Apr 27, 2020 at 02:58:20PM +0100, Russell King - ARM Linux admin > > wrote: > > > On Mon, Apr 27, 2020 at 06:54:06PM +0530, Calvin Johnson

Re: [PATCH v7 3/7] tpm: tpm_tis: Rewrite "tpm_tis_req_canceled()"

2020-04-28 Thread Jarkko Sakkinen
On Mon, Apr 27, 2020 at 03:49:27PM +0300, amirmi...@gmail.com wrote: > From: Amir Mizinski > > Using this function while reading/writing data resulted in an aborted > operation. > After investigating the issue according to the TCG TPM Profile (PTP) > Specifications, I found that "request to

Re: [PATCH v7 2/7] tpm: tpm_tis: Add verify_data_integrity handle toy tpm_tis_phy_ops

2020-04-28 Thread Jarkko Sakkinen
On Mon, Apr 27, 2020 at 03:49:26PM +0300, amirmi...@gmail.com wrote: > + bool (*verify_data_integrity)(struct tpm_tis_data *data, const u8 *buf, > + size_t len); Why can't the i2c driver verify this in the end of read_bytes()? /Jarkko

[PATCH] usb: typec: mux: intel: Handle alt mode HPD_LVL

2020-04-28 Thread Prashant Malani
According to the PMC Type C Subsystem (TCSS) Mux programming guide rev 0.6, when a device is transitioning to DP Alternate Mode state, if the HPD_LVL in the status update command VDO is set, the HPD_HIGH field in the Alternate Mode request “mode_data” field (bit 14) should also be set. Ensure the

Re: [PATCH v29 00/20] Intel SGX foundations

2020-04-28 Thread Jarkko Sakkinen
On Sun, Apr 26, 2020 at 11:57:53AM -0500, Dr. Greg wrote: > On Wed, Apr 22, 2020 at 12:52:56AM +0300, Jarkko Sakkinen wrote: > > Good day, I hope the weekend is going well for everyone. > > > Intel(R) SGX is a set of CPU instructions that can be used by applications > > to set aside private

Re: [PATCH -next] ipc: use GFP_ATOMIC under spin lock

2020-04-28 Thread Manfred Spraul
Hello together, On 4/28/20 1:14 PM, Matthew Wilcox wrote: On Tue, Apr 28, 2020 at 03:47:36AM +, Wei Yongjun wrote: The function ipc_id_alloc() is called from ipc_addid(), in which a spin lock is held, so we should use GFP_ATOMIC instead. Fixes: de5738d1c364 ("ipc: convert ipcs_idr to

Re: [PATCH v29 00/20] Intel SGX foundations

2020-04-28 Thread Jarkko Sakkinen
On Wed, Apr 22, 2020 at 09:48:58AM -0700, Connor Kuehl wrote: > On 4/21/20 2:52 PM, Jarkko Sakkinen wrote: > > v29: > > * The selftest has been moved to selftests/sgx. Because SGX is an execution > >environment of its own, it really isn't a great fit with more "standard" > >x86 tests. > >

Re: [PATCH 0/2] Add support for StorageD3Enable _DSD property

2020-04-28 Thread Williams, Dan J
On Tue, 2020-04-28 at 08:27 -0700, David E. Box wrote: > On Tue, 2020-04-28 at 16:22 +0200, Christoph Hellwig wrote: > > On Tue, Apr 28, 2020 at 07:09:59AM -0700, David E. Box wrote: > > > > I'm not sure who came up with the idea to put this into ACPI, > > > > but > > > > it > > > > belongs into

Re: [RESEND PATCH v6 1/4] mfd: syscon: Add fwnode_to_regmap

2020-04-28 Thread Dilip Kota
On 4/28/2020 6:29 PM, Arnd Bergmann wrote: On Tue, Apr 28, 2020 at 12:05 PM Lee Jones wrote: On Tue, 21 Apr 2020, Dilip Kota wrote: But, i feel return error for ACPI or oother, looks better because 'device_node' has fwnode pointer. And provide description in the header file, mentioning

Re: [f2fs-dev] [PATCH V2] f2fs: Avoid double lock for cp_rwsem during checkpoint

2020-04-28 Thread Sayali Lokhande
Hi Markus On 4/27/2020 4:08 PM, Markus Elfring wrote: … This results in deadlock as iput() tries to hold cp_rwsem, which is already held at the beginning by checkpoint->block_operations(). Will another imperative wording become helpful besides the provided information for this change

Re: [PATCH 5/5] virtio: Add bounce DMA ops

2020-04-28 Thread Michael S. Tsirkin
On Wed, Apr 29, 2020 at 10:22:32AM +0800, Lu Baolu wrote: > On 2020/4/29 4:41, Michael S. Tsirkin wrote: > > On Tue, Apr 28, 2020 at 11:19:52PM +0530, Srivatsa Vaddagiri wrote: > > > * Michael S. Tsirkin [2020-04-28 12:17:57]: > > > > > > > Okay, but how is all this virtio specific? For

Re: [PATCH 1/3] staging: qlge: Remove multi-line dereferences from qlge_main.c

2020-04-28 Thread Rylan Dmello
On Tue, Apr 28, 2020 at 09:31:10PM -0700, Joe Perches wrote: > On Wed, 2020-04-29 at 00:04 -0400, Rylan Dmello wrote: > > Fix checkpatch.pl warnings: > > > > WARNING: Avoid multiple line dereference - prefer 'qdev->func' > > WARNING: Avoid multiple line dereference - prefer 'qdev->flags' > >

Re: [PATCH] perf: perf can not parser the backtrace of app in the 32bit system and 64bit kernel.

2020-04-28 Thread Jiping Ma
We test it as the following steps. # gcc -g -mthumb -gdwarf -o test test.c # export CALLGRAPH=dwarf #(./perftest ./test profiling 1; cd ./profiling/; perf script) Thanks, Jiping On 04/29/2020 12:01 PM, Jiping Ma wrote: Record PC value from regs[15], it should be regs[32], which cause perf

Re: [PATCH v4 1/4] dt-bindings: net: phy: Add support for NXP TJA11xx

2020-04-28 Thread Florian Fainelli
On 4/28/2020 9:38 PM, Oleksij Rempel wrote: > @Rob, thank you for the review. > > @David, should I send fixes or reworked initial patches? You need to send incremental patches, once David applies the patches, they are part of the git history for the trees he maintains. -- Florian

Re: [PATCH v4 1/4] dt-bindings: net: phy: Add support for NXP TJA11xx

2020-04-28 Thread Oleksij Rempel
@Rob, thank you for the review. @David, should I send fixes or reworked initial patches? On Tue, Apr 28, 2020 at 12:30:06PM -0500, Rob Herring wrote: > On Fri, Mar 13, 2020 at 12:23 AM Oleksij Rempel > wrote: > > > > Document the NXP TJA11xx PHY bindings. > > Given the discussion, I'd marked

[PATCH] video: fbdev: pxa3xx_gcu: Fix some resource leak in an error handling path in 'pxa3xx_gcu_probe()'

2020-04-28 Thread Christophe JAILLET
If an error occurs in the loop where we call 'pxa3xx_gcu_add_buffer()', any resource already allocated should be freed. In order to fix it, add a call to 'pxa3xx_gcu_free_buffers()' in the error handling path, as already done in the remove function. Fixes: 364dbdf3b6c3 ("video: add driver for

[PATCH V11.2] Documentation/dax: Update Usage section

2020-04-28 Thread ira . weiny
From: Ira Weiny Update the Usage section to reflect the new individual dax selection functionality. Signed-off-by: Ira Weiny --- Changes from V11.1: Make filesystem/file system consistently filesystem grammatical fixes Changes from V11: Minor changes from Darrick

Re: [PATCH 1/3] staging: qlge: Remove multi-line dereferences from qlge_main.c

2020-04-28 Thread Joe Perches
On Wed, 2020-04-29 at 00:04 -0400, Rylan Dmello wrote: > Fix checkpatch.pl warnings: > > WARNING: Avoid multiple line dereference - prefer 'qdev->func' > WARNING: Avoid multiple line dereference - prefer 'qdev->flags' Assuming you are doing this for exercise: It'd be better to unindent all

Re: [PATCH V11.1] Documentation/dax: Update Usage section

2020-04-28 Thread Ira Weiny
On Tue, Apr 28, 2020 at 07:21:18PM -0700, Randy Dunlap wrote: > On 4/28/20 3:21 PM, ira.we...@intel.com wrote: > > From: Ira Weiny > > > > Update the Usage section to reflect the new individual dax selection > > functionality. > > > > Signed-off-by: Ira Weiny > > > > --- > > Changes from V11:

[PATCH RESEND] MAINTAINERS: remove entry after hp100 driver removal

2020-04-28 Thread Lukas Bulwahn
iver entry in MAINTAINERS now. Signed-off-by: Lukas Bulwahn --- Greg, here is a minor non-urgent patch for staging. applies cleanly on v5.7-rc3, current master and next-20200428 MAINTAINERS | 5 - 1 file changed, 5 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 26f281d9f32a..41e2b5774

Re: [PATCH net-next v2 4/4] net: phy: bcm54140: add second PHY ID

2020-04-28 Thread Florian Fainelli
On 4/28/2020 4:06 PM, Michael Walle wrote: > This PHY has two PHY IDs depending on its mode. Adjust the mask so that > it includes both IDs. > > Signed-off-by: Michael Walle Reviewed-by: Florian Fainelli For future submissions to netdev, if you have a patch count > 1, please include a

Re: [PATCH/RFC] clk: gate: Add some kunit test suites

2020-04-28 Thread David Gow
On Tue, Apr 14, 2020 at 7:46 PM Vaittinen, Matti wrote: > > Hello Stephen & All, > > Prologue: > > I have been traumatized in the past - by unit tests :) Thus I am always > a bit jumpy when I see people adding UTs. I always see the inertia UTs > add to development - when people change anything

Re: [PATCH v2] eventpoll: fix missing wakeup for ovflist in ep_poll_callback

2020-04-28 Thread Jason Baron
On 4/28/20 2:10 PM, Roman Penyaev wrote: > On 2020-04-27 22:38, Jason Baron wrote: >> On 4/25/20 4:59 PM, Khazhismel Kumykov wrote: >>> On Sat, Apr 25, 2020 at 9:17 AM Jason Baron wrote: On 4/24/20 3:00 PM, Khazhismel Kumykov wrote: > In the event that we add to

[PATCH -next v2] hinic: Use ARRAY_SIZE for nic_vf_cmd_msg_handler

2020-04-28 Thread Zou Wei
fix coccinelle warning, use ARRAY_SIZE drivers/net/ethernet/huawei/hinic/hinic_sriov.c:713:43-44: WARNING: Use ARRAY_SIZE -- v1-->v2: remove cmd_number Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/net/ethernet/huawei/hinic/hinic_sriov.c | 8 +++- 1 file changed,

Re: [PATCH 5/5] virtio: Add bounce DMA ops

2020-04-28 Thread Srivatsa Vaddagiri
* Stefano Stabellini [2020-04-28 16:04:34]: > > > Is swiotlb commonly used for multiple devices that may be on different > > > trust > > > boundaries (and not behind a hardware iommu)? > > The trust boundary is not a good way of describing the scenario and I > think it leads to

[PATCH 2/3] staging: qlge: Fix suspect indentation warning in qlge_main.c

2020-04-28 Thread Rylan Dmello
Fix checkpatch.pl warning: WARNING: suspect code indent for conditional statements (16, 23) Signed-off-by: Rylan Dmello --- drivers/staging/qlge/qlge_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/qlge/qlge_main.c

[PATCH 3/3] staging: qlge: Fix function argument alignment warning in qlge_main.c

2020-04-28 Thread Rylan Dmello
Fix checkpatch.pl check: CHECK: Alignment should match open parenthesis Signed-off-by: Rylan Dmello --- drivers/staging/qlge/qlge_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/qlge/qlge_main.c b/drivers/staging/qlge/qlge_main.c index

[PATCH 1/3] staging: qlge: Remove multi-line dereferences from qlge_main.c

2020-04-28 Thread Rylan Dmello
Fix checkpatch.pl warnings: WARNING: Avoid multiple line dereference - prefer 'qdev->func' WARNING: Avoid multiple line dereference - prefer 'qdev->flags' Signed-off-by: Rylan Dmello --- drivers/staging/qlge/qlge_main.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff

[PATCH v2] workqueue: Use IS_ERR and PTR_ERR instead of PTR_ERR_OR_ZERO.

2020-04-28 Thread Sean Fu
Replace inline function PTR_ERR_OR_ZERO with IS_ERR and PTR_ERR to remove redundant parameter definitions and checks. Reduce code size. Before: textdata bss dec hex filename 475105979 840 54329d439 kernel/workqueue.o After: textdata bss dec hex

[PATCH] perf: perf can not parser the backtrace of app in the 32bit system and 64bit kernel.

2020-04-28 Thread Jiping Ma
Record PC value from regs[15], it should be regs[32], which cause perf parser the backtrace failed. Signed-off-by: Jiping Ma --- arch/arm64/kernel/perf_regs.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/kernel/perf_regs.c b/arch/arm64/kernel/perf_regs.c index

[PATCH v0 linux master] i2c/busses: Avoid i2c interrupt status clear race condition.

2020-04-28 Thread ryan_chen
In AST2600 there have a slow peripheral bus between CPU and i2c controller. Therefore GIC i2c interrupt status clear have delay timing, when CPU issue write clear i2c controller interrupt status. To avoid this issue, the driver need have read after write clear at i2c ISR. Signed-off-by:

Re: [PATCH] samples: fix binderfs sample

2020-04-28 Thread Masahiro Yamada
Hi Arnd, On Wed, Apr 29, 2020 at 6:26 AM Arnd Bergmann wrote: > > A routine check for misspelled Kconfig symbols showed on instance > from last year, the correct symbol name is CONFIG_ANDROID_BINDERFS, > not CONFIG_CONFIG_ANDROID_BINDERFS, so the extra prefix must > be removed in the Kconfig

Re: [PATCH v3 1/2] dt-bindings: dmaengine: Add MediaTek Command-Queue DMA controller bindings

2020-04-28 Thread EastL
On Mon, 2020-04-27 at 16:32 -0500, Rob Herring wrote: > On Mon, 27 Apr 2020 10:52:56 +0800, EastL wrote: > > Document the devicetree bindings for MediaTek Command-Queue DMA controller > > which could be found on MT6779 SoC or other similar Mediatek SoCs. > > > > Signed-off-by: EastL > > --- > >

Re: [PATCH -next] hinic: Use ARRAY_SIZE for nic_vf_cmd_msg_handler

2020-04-28 Thread Samuel Zou
Hi Joe, Thanks for your comments, I will modify and send the v2 On 2020/4/29 11:23, Joe Perches wrote: On Wed, 2020-04-29 at 11:15 +0800, Zou Wei wrote: fix coccinelle warning, use ARRAY_SIZE drivers/net/ethernet/huawei/hinic/hinic_sriov.c:713:43-44: WARNING: Use ARRAY_SIZE Reported-by:

[PATCH v2 08/15] samples: hidraw: build sample program for target architecture

2020-04-28 Thread Masahiro Yamada
This userspace program includes UAPI headers exported to usr/include/. 'make headers' always works for the target architecture (i.e. the same architecture as the kernel), so the sample program should be built for the target as well. Kbuild now supports 'userprogs' for that. I also guarded the

[PATCH V2] net: hns3: adds support for reading module eeprom info

2020-04-28 Thread Huazhong Tan
From: Yonglong Liu This patch adds support for reading the optical module eeprom info via "ethtool -m". Signed-off-by: Yonglong Liu Signed-off-by: Huazhong Tan --- V2: replace self-defined macro with the SFF8024_ID_* in sfp.h suggested by Jakub Kicinski. ---

[PATCH v2 06/15] samples: uhid: fix warnings in uhid-example

2020-04-28 Thread Masahiro Yamada
From: Sam Ravnborg Fix warnings seen when building for 32-bit architecture. Use "%xd" for arguments of type size_t to fix the warnings. Signed-off-by: Sam Ravnborg Signed-off-by: Masahiro Yamada --- Changes in v2: None samples/uhid/uhid-example.c | 4 ++-- 1 file changed, 2 insertions(+),

[PATCH v2 12/15] samples: mei: build sample program for target architecture

2020-04-28 Thread Masahiro Yamada
This userspace program includes UAPI headers exported to usr/include/. 'make headers' always works for the target architecture (i.e. the same architecture as the kernel), so the sample program should be built for the target as well. Kbuild now supports 'userprogs' for that. I also guarded the

[PATCH v2 05/15] kbuild: doc: document the new syntax 'userprogs'

2020-04-28 Thread Masahiro Yamada
Kbuild now supports the syntax 'userprogs' to compile userspace programs for the same architecture as the kernel. Insert the section '5 Userspace Program support' to explain it. I copy-pasted '4 Host Program support' and fixed it up. Signed-off-by: Masahiro Yamada Acked-by: Sam Ravnborg ---

[PATCH v2 15/15] samples: watchdog: use 'userprogs' syntax

2020-04-28 Thread Masahiro Yamada
Kbuild now supports the 'userprogs' syntax to compile userspace programs for the same architecture as the kernel. Add the entry to samples/Makefile to put this into the build bot coverage. I also added the CONFIG option guarded by 'depends on CC_CAN_LINK' because $(CC) may not provide libc.

[PATCH v2 11/15] samples: pidfd: build sample program for target architecture

2020-04-28 Thread Masahiro Yamada
This userspace program includes UAPI headers exported to usr/include/. 'make headers' always works for the target architecture (i.e. the same architecture as the kernel), so the sample program should be built for the target as well. Kbuild now supports 'userprogs' for that. I also guarded the

[PATCH v2 09/15] samples: connector: build sample program for target architecture

2020-04-28 Thread Masahiro Yamada
This userspace program includes UAPI headers exported to usr/include/. 'make headers' always works for the target architecture (i.e. the same architecture as the kernel), so the sample program should be built for the target as well. Kbuild now supports 'userprogs' for that. $(CC) can always

[PATCH v2 01/15] bpfilter: match bit size of bpfilter_umh to that of the kernel

2020-04-28 Thread Masahiro Yamada
bpfilter_umh is built for the default machine bit of the compiler, which may not match to the bit size of the kernel. This happens in the scenario below: You can use biarch GCC that defaults to 64-bit for building the 32-bit kernel. In this case, Kbuild passes -m32 to teach the compiler to

[PATCH v2 10/15] samples: vfs: build sample programs for target architecture

2020-04-28 Thread Masahiro Yamada
These userspace programs include UAPI headers exported to usr/include/. 'make headers' always works for the target architecture (i.e. the same architecture as the kernel), so the sample programs should be built for the target as well. Kbuild now supports 'userprogs' for that. I also guarded the

[PATCH v2 00/15] kbuild: support 'userprogs' syntax

2020-04-28 Thread Masahiro Yamada
Several Makefiles use 'hostprogs' to build programs for the host architecture where it is not appropriate to do so. This is just because Kbuild lacks the support for building programs for the target architecture. This series introduce 'userprogs' syntax and use it from sample and bpf Makefiles.

[PATCH v2 14/15] samples: timers: use 'userprogs' syntax

2020-04-28 Thread Masahiro Yamada
Kbuild now supports the 'userprogs' syntax to compile userspace programs for the same architecture as the kernel. Add the entry to samples/Makefile to put this into the build bot coverage. I also added the CONFIG option guarded by 'depends on CC_CAN_LINK' because $(CC) may not provide libc.

[PATCH v2 04/15] samples: seccomp: build sample programs for target architecture

2020-04-28 Thread Masahiro Yamada
These userspace programs include UAPI headers exported to usr/include/. 'make headers' always works for the target architecture (i.e. the same architecture as the kernel), so the sample programs should be built for the target as well. Kbuild now supports 'userprogs' for that. I also guarded the

[PATCH v2 07/15] samples: uhid: build sample program for target architecture

2020-04-28 Thread Masahiro Yamada
This userspace program includes UAPI headers exported to usr/include/. 'make headers' always works for the target architecture (i.e. the same architecture as the kernel), so the sample program should be built for the target as well. Kbuild now supports 'userprogs' for that. Add the entry to

[PATCH v2 02/15] kbuild: add infrastructure to build userspace programs

2020-04-28 Thread Masahiro Yamada
Kbuild supports the infrastructure to build host programs, but there was no support to build userspace programs for the target architecture (i.e. the same architecture as the kernel). Sam Ravnborg worked on this in 2014 (https://lkml.org/lkml/2014/7/13/154), but it was not merged. One problem at

[PATCH v2 13/15] samples: auxdisplay: use 'userprogs' syntax

2020-04-28 Thread Masahiro Yamada
Kbuild now supports the 'userprogs' syntax to compile userspace programs for the same architecture as the kernel. Add the entry to samples/Makefile to put this into the build bot coverage. I also added the CONFIG option guarded by 'depends on CC_CAN_LINK' because $(CC) may not provide libc.

[PATCH v2 03/15] bpfilter: use 'userprogs' syntax to build bpfilter_umh

2020-04-28 Thread Masahiro Yamada
The user mode helper should be compiled for the same architecture as the kernel. This Makefile reused the 'hostprogs' syntax by overriding HOSTCC with CC. Use the new syntax 'userprogs' to fix the Makefile mess. Signed-off-by: Masahiro Yamada Acked-by: Sam Ravnborg --- Changes in v2: None

Re: [PATCH] ARM64: dts: freescale: imx8mm: correct VDDARM@1.6GHz

2020-04-28 Thread Shawn Guo
On Sun, Apr 26, 2020 at 06:06:48AM +0800, Robin Gong wrote: > Correct VDDARM to 0.95V@1.6Ghz with datasheet. Please add more details about the data sheet like version, download address, etc. > > Signed-off-by: Robin Gong I know it might be hard to follow, but for historic reason, we use

Re: [PATCH] arm64: dts: imx8mn: Update VDD_ARM 1.2GHz setpoint voltage

2020-04-28 Thread Shawn Guo
On Sat, Apr 25, 2020 at 08:29:50PM +0800, Anson Huang wrote: > The latest datasheet Rev. 0.1, 03/2020 removes below constrain: > > "If VDD_SOC/GPU/DDR = 0.95V, then VDD_ARM must be >= 0.95V." > > So, for 1.2GHz setpoint VDD_ARM can use its typical voltage > directly. > > The datasheet can be

Re: [PATCH] ARM: dts: gw552x: add USB OTG support

2020-04-28 Thread Shawn Guo
On Fri, Apr 24, 2020 at 10:10:15AM -0700, Tim Harvey wrote: > The GW552x-B board revision adds USB OTG support. > > Enable the device-tree node and configure the OTG_ID pin. > > Signed-off-by: Tim Harvey > --- > arch/arm/boot/dts/imx6qdl-gw552x.dtsi | 16 ++-- > 1 file changed, 14

Re: [PATCH 5/5] virtio: Add bounce DMA ops

2020-04-28 Thread Srivatsa Vaddagiri
* Michael S. Tsirkin [2020-04-28 16:41:04]: > > Won't we still need some changes to virtio to make use of its own pool (to > > bounce buffers)? Something similar to its own DMA ops proposed in this > > patch? > > If you are doing this for all devices, you need to either find a way > to do this

Re: [PATCH v3 3/4] iommu/vt-d: Add page request draining support

2020-04-28 Thread Jacob Pan
On Wed, 22 Apr 2020 16:06:10 +0800 Lu Baolu wrote: > When a PASID is stopped or terminated, there can be pending PRQs > (requests that haven't received responses) in remapping hardware. > This adds the interface to drain page requests and call it when a > PASID is terminated. > > Signed-off-by:

Re: [PATCH] epoll: Fix UAF dentry name access in wakeup source setup

2020-04-28 Thread Jann Horn
On Wed, Apr 29, 2020 at 4:46 AM Al Viro wrote: > On Wed, Apr 29, 2020 at 04:31:04AM +0200, Jann Horn wrote: > > I'm guessing this will go through akpm's tree? > > > > fs/eventpoll.c | 7 --- > > 1 file changed, 4 insertions(+), 3 deletions(-) > > > > diff --git a/fs/eventpoll.c

Re: [PATCH] arm64: dts: freescale: imx8mp: update input_val for AUDIOMIX_BIT_STREAM

2020-04-28 Thread Shawn Guo
On Fri, Apr 24, 2020 at 05:05:15PM +0800, Shengjiu Wang wrote: > Update input_val for AUDIOMIX_BIT_STREAM according to latest RM. > > Fixes: 6d9b8d20431f ("arm64: dts: freescale: Add i.MX8MP dtsi support") > Signed-off-by: Shengjiu Wang Applied, thanks.

[PATCH -next] hinic: Use kmemdup instead of kzalloc and memcpy

2020-04-28 Thread Zou Wei
Fixes coccicheck warnings: drivers/net/ethernet/huawei/hinic/hinic_hw_mbox.c:452:17-24: WARNING opportunity for kmemdup drivers/net/ethernet/huawei/hinic/hinic_hw_mbox.c:458:23-30: WARNING opportunity for kmemdup Reported-by: Hulk Robot Signed-off-by: Zou Wei ---

Re: [mm/debug] fa6726c1e7: kernel_BUG_at_include/linux/mm.h

2020-04-28 Thread Anshuman Khandual
On 04/28/2020 02:51 PM, Catalin Marinas wrote: > On Tue, Apr 28, 2020 at 04:41:11AM -0400, Qian Cai wrote: >> On Apr 28, 2020, at 1:54 AM, Anshuman Khandual >> wrote: >>> That is true. There is a slight change in the rules, making it explicit yes >>> only when both ARCH_HAS_DEBUG_VM_PGTABLE

[PATCH v2 05/10] mm/gup: separate PageHighMem() and PageHighMemZone() use case

2020-04-28 Thread js1304
From: Joonsoo Kim Until now, PageHighMem() is used for two different cases. One is to check if there is a direct mapping for this page or not. The other is to check the zone of this page, that is, weather it is the highmem type zone or not. Now, we have separate functions, PageHighMem() and

[PATCH v2 06/10] mm/hugetlb: separate PageHighMem() and PageHighMemZone() use case

2020-04-28 Thread js1304
From: Joonsoo Kim Until now, PageHighMem() is used for two different cases. One is to check if there is a direct mapping for this page or not. The other is to check the zone of this page, that is, weather it is the highmem type zone or not. Now, we have separate functions, PageHighMem() and

[PATCH v2 04/10] power: separate PageHighMem() and PageHighMemZone() use case

2020-04-28 Thread js1304
From: Joonsoo Kim Until now, PageHighMem() is used for two different cases. One is to check if there is a direct mapping for this page or not. The other is to check the zone of this page, that is, weather it is the highmem type zone or not. Now, we have separate functions, PageHighMem() and

[PATCH v2 08/10] mm/page_alloc: correct the use of is_highmem_idx()

2020-04-28 Thread js1304
From: Joonsoo Kim What we'd like to check here is whether page has direct mapping or not. Use PageHighMem() since it is perfectly matched for this purpose. Acked-by: Roman Gushchin Signed-off-by: Joonsoo Kim --- mm/page_alloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v2 10/10] mm/page-flags: change the implementation of the PageHighMem()

2020-04-28 Thread js1304
From: Joonsoo Kim Until now, PageHighMem() is used for two different cases. One is to check if there is a direct mapping for this page or not. The other is to check the zone of this page, that is, weather it is the highmem type zone or not. Previous patches introduce PageHighMemZone() macro and

[PATCH v2 09/10] mm/migrate: replace PageHighMem() with open-code

2020-04-28 Thread js1304
From: Joonsoo Kim Implementation of PageHighMem() will be changed in following patches. Before that, use open-code to avoid the side effect of implementation change on PageHighMem(). Acked-by: Roman Gushchin Signed-off-by: Joonsoo Kim --- include/linux/migrate.h | 4 +++- 1 file changed, 3

[PATCH v2 07/10] mm: separate PageHighMem() and PageHighMemZone() use case

2020-04-28 Thread js1304
From: Joonsoo Kim Until now, PageHighMem() is used for two different cases. One is to check if there is a direct mapping for this page or not. The other is to check the zone of this page, that is, weather it is the highmem type zone or not. Now, we have separate functions, PageHighMem() and

[PATCH v2 03/10] kexec: separate PageHighMem() and PageHighMemZone() use case

2020-04-28 Thread js1304
From: Joonsoo Kim Until now, PageHighMem() is used for two different cases. One is to check if there is a direct mapping for this page or not. The other is to check the zone of this page, that is, weather it is the highmem type zone or not. Now, we have separate functions, PageHighMem() and

[PATCH v2 02/10] drm/ttm: separate PageHighMem() and PageHighMemZone() use case

2020-04-28 Thread js1304
From: Joonsoo Kim Until now, PageHighMem() is used for two different cases. One is to check if there is a direct mapping for this page or not. The other is to check the zone of this page, that is, weather it is the highmem type zone or not. Now, we have separate functions, PageHighMem() and

[PATCH v2 00/10] change the implementation of the PageHighMem()

2020-04-28 Thread js1304
ighMem() implementation and won't be changed. My final plan is to change the name, PageHighMem() to PageNoDirectMapped() or something else in order to represent proper meaning. This patchset is based on next-20200428 and you can find the full patchset on the following link. https://github.com/Jo

[PATCH v2 01/10] mm/page-flags: introduce PageHighMemZone()

2020-04-28 Thread js1304
From: Joonsoo Kim PageHighMem() is used for two different cases. One is to check if there is a direct mapping for this page or not. The other is to check the zone of this page, that is, weather it is the highmem type zone or not. Until now, both the cases are the perfectly same thing. So,

Re: [PATCH -next] hinic: Use ARRAY_SIZE for nic_vf_cmd_msg_handler

2020-04-28 Thread Joe Perches
On Wed, 2020-04-29 at 11:15 +0800, Zou Wei wrote: > fix coccinelle warning, use ARRAY_SIZE > > drivers/net/ethernet/huawei/hinic/hinic_sriov.c:713:43-44: WARNING: Use > ARRAY_SIZE > > Reported-by: Hulk Robot > Signed-off-by: Zou Wei > --- > drivers/net/ethernet/huawei/hinic/hinic_sriov.c | 3

Re: [PATCH v5 3/5] drivers/soc/litex: add LiteX SoC Controller driver

2020-04-28 Thread Benjamin Herrenschmidt
On Mon, 2020-04-27 at 11:13 +0200, Mateusz Holenko wrote: > As Gabriel Somlo suggested to me, I could still use > readl/writel/ioread/iowrite() standard functions providing memory > barriers *and* have values in CPU native endianness by using the > following constructs: > >

[PATCH] clk/meson: fixes memleak issue in init err branch

2020-04-28 Thread Bernard Zhao
In common init function, when run into err branch, we didn`t use kfree to release kzmalloc area, this may bring in memleak Signed-off-by: Bernard Zhao --- drivers/clk/meson/meson8b.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/clk/meson/meson8b.c

Re: [PATCH v5 3/5] drivers/soc/litex: add LiteX SoC Controller driver

2020-04-28 Thread Benjamin Herrenschmidt
On Sat, 2020-04-25 at 13:42 +0200, Mateusz Holenko wrote: > From: Pawel Czarnecki > > This commit adds driver for the FPGA-based LiteX SoC > Controller from LiteX SoC builder. Sorry for jumping in late, Joel only just pointed me to this :) > + * The purpose of `litex_set_reg`/`litex_get_reg`

Re: [PATCH] HID: mcp2221: add gpiolib dependency

2020-04-28 Thread rishi gupta
Thanks Arnd, How about one liner: depends on USB_HID && I2C && GPIOLIB Reviewed-by: Rishi Gupta On Wed, Apr 29, 2020 at 3:00 AM Arnd Bergmann wrote: > > Without gpiolib, this driver fails to link: > > arm-linux-gnueabi-ld: drivers/hid/hid-mcp2221.o: in function `mcp2221_probe': >

[PATCH -next] hinic: Use ARRAY_SIZE for nic_vf_cmd_msg_handler

2020-04-28 Thread Zou Wei
fix coccinelle warning, use ARRAY_SIZE drivers/net/ethernet/huawei/hinic/hinic_sriov.c:713:43-44: WARNING: Use ARRAY_SIZE Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/net/ethernet/huawei/hinic/hinic_sriov.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

Re: general protection fault in tcf_action_destroy (2)

2020-04-28 Thread syzbot
syzbot suspects this bug was fixed by commit: commit 0d1c3530e1bd38382edef72591b78e877e0edcd3 Author: Cong Wang Date: Thu Mar 12 05:42:28 2020 + net_sched: keep alloc_hash updated after hash allocation bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=15e7415410 start

[PATCH] drm/i915/gt: Avoid uninitialized use of rpcurupei in frequency_show

2020-04-28 Thread Nathan Chancellor
When building with clang + -Wuninitialized: drivers/gpu/drm/i915/gt/debugfs_gt_pm.c:407:7: warning: variable 'rpcurupei' is uninitialized when used here [-Wuninitialized] rpcurupei, ^ drivers/gpu/drm/i915/gt/debugfs_gt_pm.c:304:16:

Re: linux-next: build warning after merge of the scsi-fixes tree

2020-04-28 Thread Martin K. Petersen
Tyrel, > Do you want me to resend, or can you fixup your tree? I fixed it up. -- Martin K. Petersen Oracle Linux Engineering

[PATCH V3] thermal: imx: Add missing of_node_put()

2020-04-28 Thread Anson Huang
After finishing using cpu node got from of_get_cpu_node(), of_node_put() needs to be called, the cpufreq policy also needs to be put unconditionally. Signed-off-by: Anson Huang --- Changes since V2: - call cpufreq_cpu_put() unconditionally after cooling register done. ---

Re: [PATCH 1/2] arm64: dts: imx8qxp-mek: Sort labels alphabetically

2020-04-28 Thread Shawn Guo
On Fri, Apr 17, 2020 at 01:39:05PM +0800, Anson Huang wrote: > Sort the labels alphabetically for consistency. > > Signed-off-by: Anson Huang Applied both, thanks.

Re: [PATCH v2 4/4] mm/slub: Fix sysfs shrink circular locking dependency

2020-04-28 Thread Qian Cai
> On Apr 28, 2020, at 10:06 AM, Waiman Long wrote: > > On 4/27/20 10:11 PM, Qian Cai wrote: >> >>> On Apr 27, 2020, at 9:39 PM, Waiman Long wrote: >>> >>> The sequence that was prevented by this patch is "kn->count --> >>> mem_hotplug_lock.rwsem". This sequence isn't directly in the

Re: [PATCH] arm64: dts: imx8mm: specify #sound-dai-cells for SAI nodes

2020-04-28 Thread Shawn Guo
On Wed, Apr 15, 2020 at 02:59:41PM -0400, Matt Porter wrote: > Add #sound-dai-cells properties to SAI nodes. > > Signed-off-by: Matt Porter Applied, thanks.

Re: [PATCH] epoll: Fix UAF dentry name access in wakeup source setup

2020-04-28 Thread Al Viro
On Wed, Apr 29, 2020 at 04:31:04AM +0200, Jann Horn wrote: > I'm guessing this will go through akpm's tree? > > fs/eventpoll.c | 7 --- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/fs/eventpoll.c b/fs/eventpoll.c > index 8c596641a72b0..5052a41670479 100644 > ---

[PATCH v2] soc: imx8m: Make imx8m_dsp_ops static

2020-04-28 Thread ChenTao
Fix the following warning: sound/soc/sof/imx/imx8m.c:95:20: warning: symbol 'imx8m_dsp_ops' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: ChenTao Acked-by: Kai Vehmanen Reviewed-by: Daniel Baluta --- v1->v2: - add recipient broo...@kernel.org

Re: [PATCH 02/16] Revert "objtool: Skip samples subdirectory"

2020-04-28 Thread Masahiro Yamada
On Sat, Apr 25, 2020 at 5:32 AM Josh Poimboeuf wrote: > > On Thu, Apr 23, 2020 at 04:39:15PM +0900, Masahiro Yamada wrote: > > This reverts commit 8728497895794d1f207a836e02dae762ad175d56. > > > > This directory contains no object. > > > > Cc: Josh Poimboeuf > > Signed-off-by: Masahiro Yamada >

[PATCH] epoll: Move helper functions from UAPI header into eventpoll.c

2020-04-28 Thread Jann Horn
ep_take_care_of_epollwakeup() is a kernel-internal function (it calls capable()) and therefore does not belong in a UAPI header. Since nothing outside fs/eventpoll.c uses it, move it over there. Signed-off-by: Jann Horn --- fs/eventpoll.c | 13 +

Re: [PATCH 00/16] kbuild: support 'userprogs' syntax

2020-04-28 Thread Masahiro Yamada
Hi Sam, On Sat, Apr 25, 2020 at 8:53 PM Sam Ravnborg wrote: > > Hi Masahiro > > On Thu, Apr 23, 2020 at 04:39:13PM +0900, Masahiro Yamada wrote: > > > > Several Makefiles use 'hostprogs' for building the code for > > the host architecture is not appropriate. > > > > This is just because Kbuild

Re: [PATCH 2/2] gpio: Make "offset" and "unsigned int", not just "unsigned"

2020-04-28 Thread Joe Perches
On Tue, 2020-04-28 at 18:04 -0700, Doug Anderson wrote: > Hi, > On Tue, Apr 28, 2020 at 5:57 PM Joe Perches wrote: > > On Tue, 2020-04-28 at 17:50 -0700, Doug Anderson wrote: > > > $ git grep -P -n '\bunsigned\s+(?!int|long)' include/linux/gpio/driver.h > > include/linux/gpio/driver.h:352:

Re: [PATCH V1 2/4] ARM: imx: cpu: drop dead code

2020-04-28 Thread Shawn Guo
On Thu, Mar 12, 2020 at 05:17:23PM +0800, peng@nxp.com wrote: > From: Peng Fan > > imx_soc_device_init is only called by i.MX6Q/SL/SX/UL/7D/7ULP. > So we could drop the switch case for i.MX1/2/3/5 which are dead code > that never be executed. > > Signed-off-by: Peng Fan > --- >

[PATCH] epoll: Fix UAF dentry name access in wakeup source setup

2020-04-28 Thread Jann Horn
In ep_create_wakeup_source(), epi->ffd.file is some random file we're watching with epoll, so it might well be renamed concurrently. And when a file gets renamed, the buffer containing its name may be freed. This can be reproduced by racing a task that keeps adding and removing EPOLLWAKEUP epoll

  1   2   3   4   5   6   7   8   9   10   >