Re: [RESEND PATCH] ARM: dts: Add stmpe-adc DT node to Toradex T30 modules

2019-08-15 Thread Oleksandr Suvorov
On Wed, Aug 14, 2019 at 1:54 PM Philippe Schenker wrote: > > Add the stmpe-adc DT node as found on Toradex T30 modules > > Signed-off-by: Philippe Schenker Reviewed-by: Oleksandr Suvorov > > --- > > arch/arm/boot/dts/tegra30-apalis-v1.1.dtsi | 22 ++ >

Re: [PATCH 4/6] powerpc: Chunk calls to flush_dcache_range in arch_*_memory

2019-08-15 Thread christophe leroy
Le 15/08/2019 à 06:10, Alastair D'Silva a écrit : From: Alastair D'Silva When presented with large amounts of memory being hotplugged (in my test case, ~890GB), the call to flush_dcache_range takes a while (~50 seconds), triggering RCU stalls. This patch breaks up the call into 16GB

Re: [PATCH 3/6] powerpc: Convert flush_icache_range & friends to C

2019-08-15 Thread christophe leroy
Le 15/08/2019 à 06:10, Alastair D'Silva a écrit : From: Alastair D'Silva Similar to commit 22e9c88d486a ("powerpc/64: reuse PPC32 static inline flush_dcache_range()") this patch converts flush_icache_range() to C, and reimplements the following functions as wrappers around it:

Re: [PATCH 5.2 000/144] 5.2.9-stable review

2019-08-15 Thread Greg Kroah-Hartman
On Thu, Aug 15, 2019 at 07:04:45AM +0530, Naresh Kamboju wrote: > On Wed, 14 Aug 2019 at 22:33, Greg Kroah-Hartman > wrote: > > > > This is the start of the stable review cycle for the 5.2.9 release. > > There are 144 patches in this series, all will be posted as a response > > to this one. If

Re: [PATCH 06/10] iommu: Remember when default domain type was set on kernel command line

2019-08-15 Thread Joerg Roedel
Hey Lu Baolu, thanks for your review! On Thu, Aug 15, 2019 at 01:01:57PM +0800, Lu Baolu wrote: > > +#define IOMMU_CMD_LINE_DMA_API (1 << 0) > > Prefer BIT() micro? Yes, I'll change that. > > + iommu_set_cmd_line_dma_api(); > > IOMMU command line is also set in other places,

Re: [PATCH] powerpc: Allow flush_(inval_)dcache_range to work across ranges >4GB

2019-08-15 Thread Greg Kroah-Hartman
On Thu, Aug 15, 2019 at 02:55:42PM +1000, Alastair D'Silva wrote: > From: Alastair D'Silva > > Heads Up: This patch cannot be submitted to Linus's tree, as the affected > assembler functions have already been converted to C. > > When calling flush_(inval_)dcache_range with a size >4GB, we were

[PATCH v16 4/5] rpmsg: add rpmsg support for mt8183 SCP.

2019-08-15 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 v15: - No change. Changes from v14: - Change year on Copyright header to 2019. Changes from v13: - No change. Changes from v12: - Use strscpy instead of strncpy. Changes

[PATCH v16 5/5] arm64: dts: mt8183: add scp node

2019-08-15 Thread Pi-Hsun Shih
From: Eddie Huang Add scp node to mt8183 and mt8183-evb Signed-off-by: Erin Lo Signed-off-by: Pi-Hsun Shih Signed-off-by: Eddie Huang --- Changes from v15, v14: - No change. Changes from v13: - Change the size of the cfg register region. Changes from v12, v11, v10: - No change. Changes

[PATCH v16 2/5] remoteproc/mediatek: add SCP support for mt8183

2019-08-15 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 v15: - Fix a bug on incorrect usage of wait_event_timeout return value. Changes from v14: - No change. Changes from

[PATCH v16 1/5] dt-bindings: Add a binding for Mediatek SCP

2019-08-15 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 v15, v14, v13, v12, v11, v10, v9, v8, v7, v6: - No change. Changes from v5: - Remove dependency on

[PATCH v16 3/5] remoteproc: mt8183: add reserved memory manager API

2019-08-15 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 v15: - No change. Changes from v14: - Fix a typo in variable name in DEBUG section. Changes from v13: - Add one

[PATCH v16 0/5] Add support for mt8183 SCP.

2019-08-15 Thread Pi-Hsun Shih
Add support for controlling and communicating with mt8183's system control processor (SCP), using the remoteproc & rpmsg framework. And also add a cros_ec driver for CrOS EC host command over rpmsg. The overall structure of the series is: * remoteproc/mtk_scp.c: Control the start / stop of SCP

[stable] Deleting "mt7621-mmc" with "interesting" license?

2019-08-15 Thread Pavel Machek
Hi! I realize that "interesting" license is not on a list of bugs suitable for -stable, but on the other hand, this tends to scare corporate lawyers... so perhaps we should remove the driver in -stable, too? Upstream commit id is 441bf7332d55c4d34afae9ffc3bbec621093f4d1. 4.19 has the

Re: [PATCH v5 01/18] xfs: compat_ioctl: use compat_ptr()

2019-08-15 Thread Christoph Hellwig
On Thu, Aug 15, 2019 at 07:37:53AM +1000, Dave Chinner wrote: > > @@ -576,7 +576,7 @@ xfs_file_compat_ioctl( > > case XFS_IOC_SCRUB_METADATA: > > case XFS_IOC_BULKSTAT: > > case XFS_IOC_INUMBERS: > > - return xfs_file_ioctl(filp, cmd, p); > > + return

Re: [PATCH 21/22] ARM: omap1: use common clk framework

2019-08-15 Thread Arnd Bergmann
On Wed, Aug 14, 2019 at 11:10 PM Aaro Koskinen wrote: > > Hi, > > On Thu, Aug 08, 2019 at 11:43:39PM +0200, Arnd Bergmann wrote: > > The omap1 clock driver now uses types and calling conventions > > that are compatible with the common clk core. > > > > Turn on CONFIG_COMMON_CLK and remove all the

Re: [PATCH 4.19 024/113] tty: serial: msm_serial: avoid system lockup condition

2019-08-15 Thread Pavel Machek
Hi! > >> [ Upstream commit ba3684f99f1b25d2a30b6956d02d339d7acb9799 ] > > Should it use something like 5000*udelay(100), instead, as that has > > chance to result in closer-to-500msec wait? > > the half a second timeout didnt mean to be accurate but a worst case > scenario...I am not sure

Re: [RFC 4/5] media: i2c: ov5670: Report the camera location

2019-08-15 Thread Sakari Ailus
Hi Jacopo, On Wed, Aug 14, 2019 at 10:28:14PM +0200, Jacopo Mondi wrote: > The camera location is retrieved from the firmware interface parsing > the "location" device property and reported through the read-only > V4L2_CID_LOCATION control. > > Signed-off-by: Jacopo Mondi > --- >

Re: [PATCH 3/5] mm, notifier: Catch sleeping/blocking for !blockable

2019-08-15 Thread Daniel Vetter
On Wed, Aug 14, 2019 at 09:00:29PM -0300, Jason Gunthorpe wrote: > On Wed, Aug 14, 2019 at 10:20:25PM +0200, Daniel Vetter wrote: > > We need to make sure implementations don't cheat and don't have a > > possible schedule/blocking point deeply burried where review can't > > catch it. > > > > I'm

Re: [RFC 2/5] media: v4l2-ctrl: Document V4L2_CID_LOCATION

2019-08-15 Thread Sakari Ailus
Hi Jacopo, On Wed, Aug 14, 2019 at 10:28:12PM +0200, Jacopo Mondi wrote: > Add documentation for the V4L2_CID_LOCATION camera control. The newly > added read-only control reports the camera device mounting position. > > Signed-off-by: Jacopo Mondi > --- >

Re: [RFC 1/5] media: dt-bindings: Document 'location' property

2019-08-15 Thread Sakari Ailus
Hi Jacopo, On Wed, Aug 14, 2019 at 10:28:11PM +0200, Jacopo Mondi wrote: > Add the 'location' device property, used to specify the camera device > mounting position. The property is particularly meaningful for mobile > devices with a well defined usage orientation. > > Signed-off-by: Jacopo

Re: [PATCH] Fix a stack buffer overflow bug check_input_term

2019-08-15 Thread Takashi Iwai
On Thu, 15 Aug 2019 08:13:57 +0200, Takashi Iwai wrote: > > On Thu, 15 Aug 2019 06:35:49 +0200, > Hui Peng wrote: > > > > `check_input_term` recursively calls itself with input > > from device side (e.g., uac_input_terminal_descriptor.bCSourceID) > > as argument (id). In `check_input_term`, if

[GIT PULL] tee subsys for v5.4

2019-08-15 Thread Jens Wiklander
Hello arm-soc maintainers, Please pull this OP-TEE driver patch. It adds a call to might_sleep() during RPC in the OP-TEE driver in order to be more friendly with CONFIG_PREEMPT_VOLUNTARY. Thanks, Jens The following changes since commit 0ecfebd2b52404ae0c54a878c872bb93363ada36: Linux 5.2

Re: [PATCH] netfilter: nft_bitwise: Adjust parentheses to fix memcmp size argument

2019-08-15 Thread Joe Perches
On Wed, 2019-08-14 at 09:58 -0700, Nathan Chancellor wrote: > clang warns: > > net/netfilter/nft_bitwise.c:138:50: error: size argument in 'memcmp' > call is a comparison [-Werror,-Wmemsize-comparison] > if (memcmp(>xor, , sizeof(priv->xor) || >

Re: [PATCH 4/6] powerpc: Chunk calls to flush_dcache_range in arch_*_memory

2019-08-15 Thread Mike Rapoport
On Thu, Aug 15, 2019 at 02:10:49PM +1000, Alastair D'Silva wrote: > From: Alastair D'Silva > > When presented with large amounts of memory being hotplugged > (in my test case, ~890GB), the call to flush_dcache_range takes > a while (~50 seconds), triggering RCU stalls. > > This patch breaks up

Re: [PATCH] Bluetooth: hci_qca: Make structure qca_proto constant

2019-08-15 Thread Marcel Holtmann
Hi Nishka, > Static structure qca_proto, of type hci_uart_proto, is used four times: > as the last argument in function hci_uart_register_device(), and as the > only argument to functions hci_uart_register_proto() and > hci_uart_unregister_proto(). In all three of these functions, the > parameter

Re: [PATCH] Bluetooth: 6lowpan: Make variable header_ops constant

2019-08-15 Thread Marcel Holtmann
Hi Nishka, > Static variable header_ops, of type header_ops, is used only once, when > it is assigned to field header_ops of a variable having type net_device. > This corresponding field is declared as const in the definition of > net_device. Hence make header_ops constant as well to protect it

Re: [PATCH v5 01/18] xfs: compat_ioctl: use compat_ptr()

2019-08-15 Thread Arnd Bergmann
On Wed, Aug 14, 2019 at 11:39 PM Dave Chinner wrote: > > case XFS_IOC_BULKSTAT: > > case XFS_IOC_INUMBERS: > > - return xfs_file_ioctl(filp, cmd, p); > > + return xfs_file_ioctl(filp, cmd, (unsigned long)arg); > > I don't really like having to sprinkle special

Re: [PATCH v3 11/16] powerpc/pseries/svm: Export guest SVM status to user space via sysfs

2019-08-15 Thread Michael Ellerman
Thiago Jung Bauermann writes: > Michael Ellerman writes: >> Thiago Jung Bauermann writes: >>> From: Ryan Grimm >>> User space might want to know it's running in a secure VM. It can't do >>> a mfmsr because mfmsr is a privileged instruction. >>> >>> The solution here is to create a cpu

Re: [PATCH] mm/oom: Add killed process selection information

2019-08-15 Thread Edward Chron
On Mon, Aug 12, 2019 at 4:42 AM Michal Hocko wrote: > > On Fri 09-08-19 15:15:18, Edward Chron wrote: > [...] > > So it is optimal if you only have to go and find the correct log and search > > or run your script(s) when you absolutely need to, not on every OOM event. > > OK, understood. > > >

Re: [PATCH v3 2/2] pwm: sprd: Add Spreadtrum PWM support

2019-08-15 Thread Uwe Kleine-König
Hello Baolin, On Thu, Aug 15, 2019 at 11:34:27AM +0800, Baolin Wang wrote: > On Wed, 14 Aug 2019 at 23:03, Uwe Kleine-König > wrote: > > > > On Wed, Aug 14, 2019 at 08:46:11PM +0800, Baolin Wang wrote: > > > > + > > > + /* > > > + * The hardware provides a counter that is feed by the

Re: [PATCH] Fix a stack buffer overflow bug check_input_term

2019-08-15 Thread Takashi Iwai
On Thu, 15 Aug 2019 06:35:49 +0200, Hui Peng wrote: > > `check_input_term` recursively calls itself with input > from device side (e.g., uac_input_terminal_descriptor.bCSourceID) > as argument (id). In `check_input_term`, if `check_input_term` > is called with the same `id` argument as the

[PATCH] mm/oom: Add killed process selection information

2019-08-15 Thread Edward Chron
For an OOM event: print oom_score_adj value for the OOM Killed process to document what the oom score adjust value was at the time the process at the time of the OOM event. The value can be set by the user and it effects the resulting oom_score so useful to document this value. Sample message

[PATCH] bus: arm-cci: Add of_node_put() before break

2019-08-15 Thread Nishka Dasgupta
Each iteration of for_each_child_of_node puts the previous node, but in the case of a break from the middle of the loop, there is no put, thus causing a memory leak. Add an of_node_put before the break. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta --- drivers/bus/arm-cci.c | 4

[PATCH] ata: libahci_platform: Add of_node_put() before loop exit

2019-08-15 Thread Nishka Dasgupta
Each iteration of for_each_child_of_node puts the previous node, but in the case of a goto from the middle of the loop, there is no put, thus causing a memory leak. Add an of_node_put before three such goto statements. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta ---

<    4   5   6   7   8   9