Re: [PATCH v3 3/4] wdt: Support wdt on ROHM BD9576MUF and BD9573MUF

2020-10-01 Thread Guenter Roeck
On Tue, Sep 29, 2020 at 11:17:07AM +0300, Matti Vaittinen wrote: > Add Watchdog support for ROHM BD9576MUF and BD9573MUF PMICs which are > mainly used to power the R-Car series processors. The watchdog is > pinged using a GPIO and enabled using another GPIO. Additionally > watchdog time-out can be

Re: [PATCH RFC] checkpatch: fix multi-statement macro checks

2020-10-01 Thread Joe Perches
On Thu, 2020-10-01 at 07:38 -0700, Joe Perches wrote: > On Thu, 2020-10-01 at 19:44 +0530, Dwaipayan Ray wrote: > > On Thu, Oct 1, 2020 at 7:12 PM Joe Perches wrote: > > > On Thu, 2020-10-01 at 18:57 +0530, Dwaipayan Ray wrote: > > > > On Thu, Oct 1, 2020 at 6:47 PM Joe Perches wrote: > > > > >

Re: [PATCH RFC] kernel: decouple TASK_WORK TWA_SIGNAL handling from signals

2020-10-01 Thread Jens Axboe
On 10/1/20 9:19 AM, Thomas Gleixner wrote: > On Thu, Oct 01 2020 at 08:29, Jens Axboe wrote: >> This adds TIF_TASKWORK for x86, which if set, will return true on >> checking for pending signals. That in turn causes tasks to restart the >> system call, which will run the added task_work. > > Huch?

Re: [PATCH v2 0/3] drm: commit_work scheduling

2020-10-01 Thread Daniel Vetter
On Thu, Oct 1, 2020 at 5:15 PM Rob Clark wrote: > > On Thu, Oct 1, 2020 at 12:25 AM Daniel Vetter wrote: > > > > On Wed, Sep 30, 2020 at 11:16 PM Rob Clark wrote: > > > > > > From: Rob Clark > > > > > > The android userspace treats the display pipeline as a realtime problem. > > > And

Re: [RFC PATCH 1/2] mtd: spi-nor: atmel: remove global SNOR_F_HAS_LOCK

2020-10-01 Thread Tudor.Ambarus
On 10/1/20 5:37 PM, Michael Walle wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > Am 2020-10-01 16:25, schrieb tudor.amba...@microchip.com: >> On 10/1/20 5:12 PM, Michael Walle wrote: >>> EXTERNAL EMAIL: Do not click links or open

Re: [PATCH v3 0/2] add Intel MAX 10 BMC MFD driver & hwmon sub driver

2020-10-01 Thread Guenter Roeck
On 10/1/20 7:08 AM, Xu Yilun wrote: > Hi Guenter, > > On Wed, Sep 30, 2020 at 01:52:49PM -0700, Guenter Roeck wrote: >> On Mon, Sep 21, 2020 at 02:17:49PM +0800, Xu Yilun wrote: >>> I recently realized that maintainers may have trouble to apply patches to >>> their trees if the patches depend on

Re: [Intel-gfx] [PATCH] Revert "drm/i915: Force state->modeset=true when distrust_bios_wm==true"

2020-10-01 Thread Ville Syrjälä
On Wed, Sep 30, 2020 at 03:47:06PM +0200, Stefan Joosten wrote: > The fix of flagging state->modeset whenever distrust_bios_wm is set > causes a regression when initializing display(s) attached to a Lenovo > USB-C docking station. The display remains blank until the dock is > reattached. Revert to

[PATCH v2 RESEND 2/9] spi: spi-s3s64xx: Add S3C64XX_SPI_QUIRK_CS_AUTO for Exynos3250

2020-10-01 Thread Łukasz Stelmach
Fix issues with DMA transfers bigger than 512 bytes on Exynos3250. Without the patches such transfers fail. The vendor kernel for ARTIK5 handles CS in a simmilar way. Signed-off-by: Łukasz Stelmach Reviewed-by: Krzysztof Kozlowski --- drivers/spi/spi-s3c64xx.c | 1 + 1 file changed, 1

[PATCH v2 RESEND 7/9] spi: spi-s3c64xx: Ensure cur_speed holds actual clock value

2020-10-01 Thread Łukasz Stelmach
Make sure the cur_speed value used in s3c64xx_enable_datapath() to configure DMA channel and in s3c64xx_wait_for_*() to calculate the transfer timeout is set to the actual value of (half) the clock speed. Suggested-by: Tomasz Figa Signed-off-by: Łukasz Stelmach --- drivers/spi/spi-s3c64xx.c |

[PATCH v2 RESEND 0/9] Some fixes for spi-s3c64xx

2020-10-01 Thread Łukasz Stelmach
This is a series of fixes created during porting a device driver (these patches will be released soon too) for an SPI device to the current kernel. The two most important are spi: spi-s3c64xx: swap s3c64xx_spi_set_cs() and s3c64xx_enable_datapath() spi: spi-s3s64xx: Add

[PATCH v2 RESEND 3/9] spi: spi-s3c64xx: Check return values

2020-10-01 Thread Łukasz Stelmach
Check return values in prepare_dma() and s3c64xx_spi_config() and propagate errors upwards. Fixes: 788437273fa8 ("spi: s3c64xx: move to generic dmaengine API") Reviewed-by: Krzysztof Kozlowski Signed-off-by: Łukasz Stelmach --- drivers/spi/spi-s3c64xx.c | 50

[PATCH v2 RESEND 5/9] spi: spi-s3c64xx: Rename S3C64XX_SPI_SLAVE_* to S3C64XX_SPI_CS_*

2020-10-01 Thread Łukasz Stelmach
Rename S3C64XX_SPI_SLAVE_* to S3C64XX_SPI_CS_* to match documentation. Signed-off-by: Łukasz Stelmach Reviewed-by: Krzysztof Kozlowski --- drivers/spi/spi-s3c64xx.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/spi/spi-s3c64xx.c

[PATCH v2 RESEND 9/9] spi: spi-s3c64xx: Turn on interrupts upon resume

2020-10-01 Thread Łukasz Stelmach
s3c64xx_spi_hwinit() disables interrupts. In s3c64xx_spi_probe() after calling s3c64xx_spi_hwinit() they are enabled with the following call. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Łukasz Stelmach --- drivers/spi/spi-s3c64xx.c | 4 1 file changed, 4 insertions(+) diff --git

[PATCH v2 RESEND 4/9] spi: spi-s3c64xx: Report more information when errors occur

2020-10-01 Thread Łukasz Stelmach
Report amount of pending data when a transfer stops due to errors. Report if DMA was used to transfer data and print the status code. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Łukasz Stelmach --- drivers/spi/spi-s3c64xx.c | 19 +++ 1 file changed, 15 insertions(+), 4

[PATCH v2 RESEND 8/9] spi: spi-s3c64xx: Increase transfer timeout

2020-10-01 Thread Łukasz Stelmach
Increase timeout by 30 ms for some wiggle room and set the minimum value to 100 ms. This ensures a non-zero value for short transfers which may take less than 1 ms. The timeout value does not affect performance because it is used with a completion. Similar formula is used in other drivers e.g.

[PATCH v2 RESEND 6/9] spi: spi-s3c64xx: Fix doc comment for struct s3c64xx_spi_driver_data

2020-10-01 Thread Łukasz Stelmach
Remove descriptions for non-existent fields and fix indentation. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Łukasz Stelmach --- drivers/spi/spi-s3c64xx.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index

[PATCH v2 RESEND 1/9] spi: spi-s3c64xx: swap s3c64xx_spi_set_cs() and s3c64xx_enable_datapath()

2020-10-01 Thread Łukasz Stelmach
Fix issues with DMA transfers bigger than 512 bytes on Exynos3250. Without the patches such transfers fail to complete. This solution to the problem is found in the vendor kernel for ARTIK5 boards based on Exynos3250. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Łukasz Stelmach ---

Re: [PATCH v4 3/4] arm64: dts: qcom: msm8996: Add mpp and lpg blocks

2020-10-01 Thread Konrad Dybcio
Hi, Just a nitpick: the title says "qcom: msm8996", whereas the file being changed is pm(i)8994.dtsi. This also applies to most msm8992/94 platforms, as the PMIC was used there too. Konrad

Re: [net-next v2 10/11] bridge: switchdev: cfm: switchdev interface implementation

2020-10-01 Thread kernel test robot
Hi Henrik, Thank you for the patch! Yet something to improve: [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Henrik-Bjoernlund/net-bridge-cfm-Add-support-for-Connectivity-Fault-Management-CFM/20201001-184031 base: https://git.kernel.org/pub/scm

[PATCH 3/3][next] lib/stackdepot.c: Use array_size() helper in jhash2()

2020-10-01 Thread Gustavo A. R. Silva
Use array_size() helper instead of the open-coded version in jhash2(). These sorts of multiplication factors need to be wrapped in array_size(). Also, use the preferred form for passing the size of an object type. Signed-off-by: Gustavo A. R. Silva --- lib/stackdepot.c | 4 ++-- 1 file

[PATCH 2/3][next] lib/stackdepot.c: Use flex_array_size() helper in memcpy()

2020-10-01 Thread Gustavo A. R. Silva
Make use of the flex_array_size() helper to calculate the size of a flexible array member within an enclosing structure. This helper offers defense-in-depth against potential integer overflows, while at the same time makes it explicitly clear that we are dealing with a flexible array member.

Re: [PATCH v5 1/2] arm64: dts: Add the Kontron i.MX8M Mini SoMs and baseboards

2020-10-01 Thread Krzysztof Kozlowski
On Thu, Oct 01, 2020 at 05:13:37PM +0200, Schrempf Frieder wrote: > From: Frieder Schrempf > > Kontron Electronics GmbH offers small and powerful SoMs based on the > i.MX8M Mini SoC including PMIC, LPDDR4-RAM, eMMC and SPI NOR. > > The matching baseboards have the same form factor and similar

[PATCH 1/3][next] lib/stackdepot.c: Replace one-element array with flexible-array member

2020-10-01 Thread Gustavo A. R. Silva
There is a regular need in the kernel to provide a way to declare having a dynamically sized set of trailing elements in a structure. Kernel code should always use “flexible array members”[1] for these cases. The older style of one-element or zero-length arrays should no longer be used[2].

Re: [PATCH RFC] kernel: decouple TASK_WORK TWA_SIGNAL handling from signals

2020-10-01 Thread Thomas Gleixner
On Thu, Oct 01 2020 at 08:29, Jens Axboe wrote: > This adds TIF_TASKWORK for x86, which if set, will return true on > checking for pending signals. That in turn causes tasks to restart the > system call, which will run the added task_work. Huch? The syscall restart does not cause the task work to

{standard input}:2472: Error: operand out of range (130 is not between -128 and 127)

2020-10-01 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 60e720931556fc1034d0981460164dcf02697679 commit: 11f6c4b1b2599d04ae94a25ce3dcdc46d19434b0 drm/bridge: Add connector-related bridge operations and data date: 7 months ago config:

[PATCH 0/3][next] lib/stackdepot.c: Replace one-element array with flexible-array member

2020-10-01 Thread Gustavo A. R. Silva
Hi, This series aim to replace a one-element array with a flexible-array member. Also, make use of the struct_size(), flexible_array_size() and array_size() helpers. Thanks -- Gustavo Gustavo A. R. Silva (3): lib/stackdepot.c: Replace one-element array with flexible-array member

[PATCH v1] PCI: brcmstb: fix error return paths in probe()

2020-10-01 Thread Jim Quinlan
Fixes two cases where we were returning without calling clk_disable_unprepare(). Although there is a common place to go on probe() errors (the 'fail' label), one can only jump there after executing brcm_pcie_setup(), so we have to add clk_disable_unprepare() calls to the two error paths. Fixes:

Re: [PATCH 2/2] venus: venc: fix handlig of S_SELECTION and G_SELECTION

2020-10-01 Thread Tomasz Figa
On Thu, Oct 1, 2020 at 3:32 AM Stanimir Varbanov wrote: > > Hi Tomasz, > > On 9/25/20 11:55 PM, Tomasz Figa wrote: > > Hi Dikshita, Stanimir, > > > > On Thu, Sep 24, 2020 at 7:31 PM Dikshita Agarwal > > wrote: > >> > >> From: Stanimir Varbanov > >> > >> - return correct width and height for

Re: [PATCH v5 2/2] dt-bindings: arm: fsl: Add Kontron i.MX8M Mini SoMs and boards

2020-10-01 Thread Krzysztof Kozlowski
r v5: > * None > > Changes for v4: > * Rebase on next-20201001 > * Enhance SoM and board description > > Changes for v3: > * None > > Changes for v2: > * Merge the SoMs and baseboards N8010 and N8011 into a single > configuration (N801X). > * Add Rob's R

Re: [v5,0/4] watchdog: mt8192: add wdt support

2020-10-01 Thread Guenter Roeck
On Thu, Oct 01, 2020 at 04:23:02PM +0200, Matthias Brugger wrote: > Hi Crystal, > > It seems you forgot to send the email to one of the maintainers, Wim. > Please make sure you add all the maintainers from get_maintainers.pl when > you send a series. > > Regards, > Matthias > > On 29/09/2020

Re: [PATCH v2 0/3] drm: commit_work scheduling

2020-10-01 Thread Rob Clark
On Thu, Oct 1, 2020 at 12:25 AM Daniel Vetter wrote: > > On Wed, Sep 30, 2020 at 11:16 PM Rob Clark wrote: > > > > From: Rob Clark > > > > The android userspace treats the display pipeline as a realtime problem. > > And arguably, if your goal is to not miss frame deadlines (ie. vblank), > > it

[PATCH v5 2/2] dt-bindings: arm: fsl: Add Kontron i.MX8M Mini SoMs and boards

2020-10-01 Thread Schrempf Frieder
From: Frieder Schrempf Add entries for the SoMs and boards based on i.MX8MM from Kontron Electronics GmbH. Signed-off-by: Frieder Schrempf Reviewed-by: Rob Herring --- Changes for v5: * None Changes for v4: * Rebase on next-20201001 * Enhance SoM and board description Changes for v3: * None

[PATCH v5 1/2] arm64: dts: Add the Kontron i.MX8M Mini SoMs and baseboards

2020-10-01 Thread Schrempf Frieder
From: Frieder Schrempf Kontron Electronics GmbH offers small and powerful SoMs based on the i.MX8M Mini SoC including PMIC, LPDDR4-RAM, eMMC and SPI NOR. The matching baseboards have the same form factor and similar interfaces as the other boards from the Kontron "Board-Line" family, including

Re: [RFC PATCH v2 00/30] 1GB PUD THP support on x86_64

2020-10-01 Thread Zi Yan
On 30 Sep 2020, at 7:55, Michal Hocko wrote: > On Mon 28-09-20 13:53:58, Zi Yan wrote: >> From: Zi Yan >> >> Hi all, >> >> This patchset adds support for 1GB PUD THP on x86_64. It is on top of >> v5.9-rc5-mmots-2020-09-18-21-23. It is also available at: >>

Re: linux-next: manual merge of the akpm tree with the drm-intel tree

2020-10-01 Thread Daniel Vetter
On Thu, Oct 1, 2020 at 5:08 PM Jani Nikula wrote: > > On Thu, 01 Oct 2020, Daniel Vetter wrote: > > On Thu, Oct 1, 2020 at 3:53 PM Christoph Hellwig wrote: > >> > >> On Thu, Oct 01, 2020 at 08:39:17PM +1000, Stephen Rothwell wrote: > >> > Hi all, > >> > > >> > Today's linux-next merge of the

Re: [PATCH] memcg: introduce per-memcg reclaim interface

2020-10-01 Thread Johannes Weiner
Hello Shakeel, On Wed, Sep 30, 2020 at 08:26:26AM -0700, Shakeel Butt wrote: > On Mon, Sep 28, 2020 at 2:03 PM Johannes Weiner wrote: > > Workloads may not > > allocate anything for hours, and then suddenly allocate gigabytes > > within seconds. A sudden onset of streaming reads through the > >

Re: [PATCH] perf tools: Fix printable strings in python3 scripts

2020-10-01 Thread Arnaldo Carvalho de Melo
Em Mon, Sep 28, 2020 at 10:11:35PM +0200, Jiri Olsa escreveu: > Hagen reported broken strings in python3 tracepoint scripts: > > make PYTHON=python3 > ./perf record -e sched:sched_switch -a -- sleep 5 > ./perf script --gen-script py > ./perf script -s ./perf-script.py > > [..] >

Re: [PATCH 4.9 000/119] 4.9.238-rc2 review

2020-10-01 Thread Guenter Roeck
On Thu, Oct 01, 2020 at 11:11:05AM +0200, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.238 release. > There are 119 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me

Re: linux-next: build failure after merge of the hwmon-staging tree

2020-10-01 Thread Guenter Roeck
On Thu, Oct 01, 2020 at 12:53:10PM +1000, Stephen Rothwell wrote: > Hi all, > > After merging the hwmon-staging tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > drivers/hwmon/pmbus/mp2975.c: In function 'mp2975_probe': > drivers/hwmon/pmbus/mp2975.c:740:32: error:

Re: linux-next: manual merge of the akpm tree with the drm-intel tree

2020-10-01 Thread Jani Nikula
On Thu, 01 Oct 2020, Daniel Vetter wrote: > On Thu, Oct 1, 2020 at 3:53 PM Christoph Hellwig wrote: >> >> On Thu, Oct 01, 2020 at 08:39:17PM +1000, Stephen Rothwell wrote: >> > Hi all, >> > >> > Today's linux-next merge of the akpm tree got a conflict in: >> > >> >

Re: [PATCH] arm64: dts: mt8173-elm: Remove ddc property from panel

2020-10-01 Thread Matthias Brugger
On 26/08/2020 11:02, Enric Balletbo i Serra wrote: The elm and hana devices uses an Embedded DisplayPort (eDP) as interface for its panel, so the DDC channel specified in the binding is useless. Signed-off-by: Enric Balletbo i Serra --- Applied to v5.10-tmp/dts64 which will be rebased on

[PATCH v4 1/2] arm64: dts: Add the Kontron i.MX8M Mini SoMs and baseboards

2020-10-01 Thread Schrempf Frieder
From: Frieder Schrempf Kontron Electronics GmbH offers small and powerful SoMs based on the i.MX8M Mini SoC including PMIC, LPDDR4-RAM, eMMC and SPI NOR. The matching baseboards have the same form factor and similar interfaces as the other boards from the Kontron "Board-Line" family, including

Re: [PATCH v2] soc: mediatek: Check if power domains can be powered on at boot time

2020-10-01 Thread Matthias Brugger
On 28/09/2020 05:31, Nicolas Boichat wrote: In the error case, where a power domain cannot be powered on successfully at boot time (in mtk_register_power_domains), pm_genpd_init would still be called with is_off=false, and the system would later try to disable the power domain again,

[PATCH RFC v2] kernel: decouple TASK_WORK TWA_SIGNAL handling from signals

2020-10-01 Thread Jens Axboe
Users of TWA_SIGNAL need to have system calls interrupted and go through a kernel/user transition to ensure they are run. This currently works well from a functional standpoint, but it is heavy handed on a multithreaded application where sighand is shared between the threads and main process.

[PATCH v4 2/2] dt-bindings: arm: fsl: Add Kontron i.MX8M Mini SoMs and boards

2020-10-01 Thread Schrempf Frieder
From: Frieder Schrempf Add entries for the SoMs and boards based on i.MX8MM from Kontron Electronics GmbH. Signed-off-by: Frieder Schrempf Reviewed-by: Rob Herring --- Changes for v4: * Rebase on next-20201001 * Enhance SoM and board description Changes for v3: * None Changes for v2

Re: [PATCH 2/2] dev_ioctl: split out SIOC?IFMAP ioctls

2020-10-01 Thread Arnd Bergmann
On Tue, Sep 29, 2020 at 7:53 PM Christoph Hellwig wrote: > On Fri, Sep 25, 2020 at 02:28:29PM +0200, Arnd Bergmann wrote: > > Do you mean we should check that the (larger) user space size > > remains what it is for future changes, or that the (smaller) > > kernel size remains the same on all

[PATCH net-next 23/23] rxrpc: rxkad: Don't use pskb_pull() to advance through the response packet

2020-10-01 Thread David Howells
In the rxkad security class, don't use pskb_pull() to advance through the contents of the response packet. There's no point, especially as the next and last access to the skbuff still has to allow for the wire header in the offset (which we didn't advance over). Better to just add the

[PATCH net-next 16/23] rxrpc: Split the server key type (rxrpc_s) into its own file

2020-10-01 Thread David Howells
Split the server private key type (rxrpc_s) out into its own file rather than mingling it with the authentication/client key type (rxrpc) since they don't really bear any relation. Signed-off-by: David Howells --- net/rxrpc/Makefile |1 net/rxrpc/ar-internal.h |9 ++-

[PATCH net-next 21/23] rxrpc: Allow security classes to give more info on server keys

2020-10-01 Thread David Howells
Allow a security class to give more information on an rxrpc_s-type key when it is viewed in /proc/keys. This will allow the upcoming RxGK security class to show the enctype name here. Signed-off-by: David Howells --- net/rxrpc/ar-internal.h |3 +++ net/rxrpc/server_key.c |4 2

[PATCH net-next 20/23] rxrpc: Don't leak the service-side session key to userspace

2020-10-01 Thread David Howells
Don't let someone reading a service-side rxrpc-type key get access to the session key that was exchanged with the client. The server application will, at some point, need to be able to read the information in the ticket, but this probably shouldn't include the key material. Signed-off-by: David

[PATCH net-next 22/23] rxrpc: Make the parsing of xdr payloads more coherent

2020-10-01 Thread David Howells
Make the parsing of xdr-encoded payloads, as passed to add_key, more coherent. Shuttling back and forth between various variables was a bit hard to follow. Signed-off-by: David Howells --- net/rxrpc/key.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[PATCH net-next 18/23] rxrpc: Don't reserve security header in Tx DATA skbuff

2020-10-01 Thread David Howells
Insert the security header into the skbuff representing a DATA packet to be transmitted rather than using skb_reserve() when the packet is allocated. This makes it easier to apply crypto that spans the security header and the data, particularly in the upcoming RxGK class where we have a common

[PATCH net-next 17/23] rxrpc: Hand server key parsing off to the security class

2020-10-01 Thread David Howells
Hand responsibility for parsing a server key off to the security class. We can determine which class from the description. This is necessary as rxgk server keys have different lookup requirements and different content requirements (dependent on crypto type) to those of rxkad server keys.

[PATCH net-next 19/23] rxrpc: Organise connection security to use a union

2020-10-01 Thread David Howells
Organise the security information in the rxrpc_connection struct to use a union to allow for different data for different security classes. Signed-off-by: David Howells --- net/rxrpc/ar-internal.h | 11 --- net/rxrpc/rxkad.c | 40 2

[PATCH v4 2/3] dt-bindings: hwmon: Add the +vs supply to the lm75 bindings

2020-10-01 Thread Alban Bedel
Some boards might have a regulator that control the +VS supply, add it to the bindings. Signed-off-by: Alban Bedel Acked-by: Rob Herring --- v2: Removed the unneeded `maxItems` attribute --- Documentation/devicetree/bindings/hwmon/lm75.yaml | 4 1 file changed, 4 insertions(+) diff --git

[PATCH v4 1/3] dt-bindings: hwmon: Convert lm75 bindings to yaml

2020-10-01 Thread Alban Bedel
In order to automate the verification of DT nodes convert lm75.txt to lm75.yaml. Signed-off-by: Alban Bedel --- v2: Fix the example to pass `make dt_binding_check` v4: Add the missing additionalProperties: false --- .../devicetree/bindings/hwmon/lm75.txt| 39

[PATCH net-next 10/23] rxrpc: Remove the rxk5 security class as it's now defunct

2020-10-01 Thread David Howells
Remove the rxrpc rxk5 security class as it's now defunct and nothing uses it anymore. Signed-off-by: David Howells --- include/keys/rxrpc-type.h | 55 - net/rxrpc/key.c | 468 - 2 files changed, 523 deletions(-) diff --git

[PATCH net-next 09/23] rxrpc: Change basic data packet size alignment to 1

2020-10-01 Thread David Howells
Change the basic data packet size alignment to be 1 not 4. There isn't really any need to do otherwise unless there's crypto involved. Signed-off-by: David Howells --- net/rxrpc/conn_object.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/rxrpc/conn_object.c

[PATCH net-next 13/23] rxrpc: Merge prime_packet_security into init_connection_security

2020-10-01 Thread David Howells
Merge the ->prime_packet_security() into the ->init_connection_security() hook as they're always called together. Signed-off-by: David Howells --- net/rxrpc/ar-internal.h |2 -- net/rxrpc/conn_client.c |6 -- net/rxrpc/conn_event.c |4 net/rxrpc/insecure.c|6

[PATCH net-next 14/23] rxrpc: Support keys with multiple authentication tokens

2020-10-01 Thread David Howells
rxrpc-type keys can have multiple tokens attached for different security classes. Currently, rxrpc always picks the first one, whether or not the security class it indicates is supported. Add preliminary support for choosing which security class will be used (this will need to be directed from a

[PATCH net-next 12/23] rxrpc: Allow for a security trailer in a packet

2020-10-01 Thread David Howells
Allow for a security trailer to added to a packet. The size is stored in conn->security_trailer. Note any size alignment set by the security class must be applied after subtracting the trailer (but the alignment includes the security header, which is assumed to be encrypted). Signed-off-by:

[PATCH net-next 15/23] rxrpc: Don't retain the server key in the connection

2020-10-01 Thread David Howells
Don't retain a pointer to the server key in the connection, but rather get it on demand when the server has to deal with a response packet. This is necessary to implement RxGK (GSSAPI-mediated transport class), where we can't know which key we'll need until we've challenged the client and got

[PATCH v4 0/3] hwmon: (lm75) Add regulator support

2020-10-01 Thread Alban Bedel
Hi everybody, this small series add regulator support to the lm75 driver for boards that don't always power such a sensor. While at it also convert the DT bindings to yaml. v2: - Fixed the DT example while converting to YAML - Removed the unneeded maxItems from the binding documentation

[PATCH v4 3/3] hwmon: (lm75) Add regulator support

2020-10-01 Thread Alban Bedel
Add regulator support for boards where the sensor first need to be powered up before it can be used. Signed-off-by: Alban Bedel --- v2: Rely on dummy regulators instead of explicitly handling missing regulator v3: Use a devm action to handle disabling the regulator --- drivers/hwmon/lm75.c

[PATCH net-next 11/23] rxrpc: List the held token types in the key description in /proc/keys

2020-10-01 Thread David Howells
When viewing an rxrpc-type key through /proc/keys, display a list of held token types. Signed-off-by: David Howells --- net/rxrpc/key.c | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/net/rxrpc/key.c b/net/rxrpc/key.c index

[PATCH net-next 08/23] rxrpc: The server keyring isn't network-namespaced

2020-10-01 Thread David Howells
The keyring containing the server's tokens isn't network-namespaced, so it shouldn't be looked up with a network namespace. It is expected to be owned specifically by the server, so namespacing is unnecessary. Fixes: a58946c158a0 ("keys: Pass the network namespace into request_key mechanism")

[PATCH net-next 05/23] rxrpc: Fix some missing _bh annotations on locking conn->state_lock

2020-10-01 Thread David Howells
conn->state_lock may be taken in softirq mode, but a previous patch replaced an outer lock in the response-packet event handling code, and lost the _bh from that when doing so. Fix this by applying the _bh annotation to the state_lock locking. Fixes: a1399f8bb033 ("rxrpc: Call channels should

[PATCH net-next 02/23] rxrpc: Fix bundle counting for exclusive connections

2020-10-01 Thread David Howells
Fix rxrpc_unbundle_conn() to not drop the bundle usage count when cleaning up an exclusive connection. Based on the suggested fix from Hillf Danton. Fixes: 245500d853e9 ("rxrpc: Rewrite the client connection manager") Reported-by: syzbot+d57aaf84dd8a550e6...@syzkaller.appspotmail.com

[PATCH net-next 06/23] rxrpc: Fix loss of final ack on shutdown

2020-10-01 Thread David Howells
Fix the loss of transmission of a call's final ack when a socket gets shut down. This means that the server will retransmit the last data packet or send a ping ack and then get an ICMP indicating the port got closed. The server will then view this as a failure. Fixes: 3136ef49a14c ("rxrpc:

[PATCH net-next 03/23] rxrpc: Fix rxkad token xdr encoding

2020-10-01 Thread David Howells
From: Marc Dionne The session key should be encoded with just the 8 data bytes and no length; ENCODE_DATA precedes it with a 4 byte length, which confuses some existing tools that try to parse this format. Add an ENCODE_BYTES macro that does not include a length, and use it for the key. Also

[PATCH net-next 04/23] rxrpc: Downgrade the BUG() for unsupported token type in rxrpc_read()

2020-10-01 Thread David Howells
If rxrpc_read() (which allows KEYCTL_READ to read a key), sees a token of a type it doesn't recognise, it can BUG in a couple of places, which is unnecessary as it can easily get back to userspace. Fix this to print an error message instead. Fixes: 99455153d067 ("RxRPC: Parse security index 5

[PATCH net-next 07/23] rxrpc: Fix accept on a connection that need securing

2020-10-01 Thread David Howells
When a new incoming call arrives at an userspace rxrpc socket on a new connection that has a security class set, the code currently pushes it onto the accept queue to hold a ref on it for the socket. This doesn't work, however, as recvmsg() pops it off, notices that it's in the SERVER_SECURING

[PATCH net-next 01/23] keys: Provide the original description to the key preparser

2020-10-01 Thread David Howells
Provide the proposed description (add key) or the original description (update/instantiate key) when preparsing a key so that the key type can validate it against the data. This is important for rxrpc server keys as we need to check that they have the right amount of key material present - and

[PATCH net-next 00/23] rxrpc: Fixes and preparation for RxGK

2020-10-01 Thread David Howells
Here are some fixes for problems encountered whilst writing the RxGK security class (this will allow AF_RXRPC to use GSSAPI-negotiated tokens and better crypto). The RxGK security class is not included in this patchset. Firstly, there's a keyrings patch to provide the original key description,

Re: [PATCH 00/13] iommu: amd: Add Generic IO Page Table Framework Support

2020-10-01 Thread Joerg Roedel
On Thu, Oct 01, 2020 at 09:51:51PM +0700, Suravee Suthikulpanit wrote: > Sure. Let me send out v2 for this with some more clean up. Great, while at it please also change the "iommu: amd:" subjects to "iommu/amd:". Thanks, Joerg

Re: [PATCH 00/13] iommu: amd: Add Generic IO Page Table Framework Support

2020-10-01 Thread Suravee Suthikulpanit
Joerg, On 10/1/20 7:59 PM, Joerg Roedel wrote: On Thu, Sep 24, 2020 at 05:50:37PM +0700, Suravee Suthikulpanit wrote: On 9/24/20 5:34 PM, Joerg Roedel wrote: Hi Suravee, On Wed, Sep 23, 2020 at 10:14:29AM +, Suravee Suthikulpanit wrote: The framework allows callable implementation of

[PATCH v2][next] x86/uv/time: Replace one-element array and save heap space

2020-10-01 Thread Gustavo A. R. Silva
There is a regular need in the kernel to provide a way to declare having a dynamically sized set of trailing elements in a structure. Kernel code should always use “flexible array members”[1] for these cases. The older style of one-element or zero-length arrays should no longer be used[2]. struct

Re: [RFC][PATCH 5/6] dma-buf: system_heap: Add pagepool support to system heap

2020-10-01 Thread Chris Goldsworthy
On 2020-09-29 21:46, Chris Goldsworthy wrote: On 2020-09-25 21:24, John Stultz wrote: Reuse/abuse the pagepool code from the network code to speed up allocation performance. This is similar to the ION pagepool usage, but tries to utilize generic code instead of a custom implementation. Cc:

Re: [PATCH v4 11/13] task_isolation: net: don't flush backlog on CPUs running isolated tasks

2020-10-01 Thread Frederic Weisbecker
On Wed, Jul 22, 2020 at 02:58:24PM +, Alex Belits wrote: > From: Yuri Norov > > If CPU runs isolated task, there's no any backlog on it, and > so we don't need to flush it. What guarantees that we have no backlog on it? > Currently flush_all_backlogs() > enqueues corresponding work on all

Re: [PATCH 02/10] rpmsg: core: Add channel creation internal API

2020-10-01 Thread Arnaud POULIQUEN
On 9/30/20 8:35 AM, Guennadi Liakhovetski wrote: > On Mon, Sep 21, 2020 at 06:09:52PM -0600, Mathieu Poirier wrote: >> From: Arnaud Pouliquen >> >> Add the channel creation API as a first step to be able to define the >> name service announcement as a rpmsg driver independent from the RPMsg >>

Re: [PATCH] cgroup: Remove unnecessary call to strstrip()

2020-10-01 Thread Hao Lee
Ping. Thanks. On Tue, Sep 08, 2020 at 01:33:50PM +, Hao Lee wrote: > The string buf will be stripped in cgroup_procs_write_start() before it > is converted to int, so remove this unnecessary call to strstrip(). > > Signed-off-by: Hao Lee > --- > kernel/cgroup/cgroup.c | 2 -- > 1 file

Re: [PATCH v4 10/13] task_isolation: don't interrupt CPUs with tick_nohz_full_kick_cpu()

2020-10-01 Thread Frederic Weisbecker
On Wed, Jul 22, 2020 at 02:57:33PM +, Alex Belits wrote: > From: Yuri Norov > > For nohz_full CPUs the desirable behavior is to receive interrupts > generated by tick_nohz_full_kick_cpu(). But for hard isolation it's > obviously not desirable because it breaks isolation. > > This patch adds

Re: [PATCH] selftests/ftrace: check for do_sys_openat2 in user-memory test

2020-10-01 Thread Steven Rostedt
On Thu, 1 Oct 2020 09:56:41 +0100 Colin King wrote: > From: Colin Ian King > > More recent libc implementations are now using openat/openat2 system > calls so also add do_sys_openat2 to the tracing so that the test > passes on these systems because do_sys_open may not be called. > >

Re: [PATCH] cgroup: Delete unnecessary if statement in css_visible()

2020-10-01 Thread Hao Lee
Hi, ping... On Sat, Aug 29, 2020 at 10:03:16AM +, Hao Lee wrote: > css_visible() is called in either cgroup_apply_control_enable() > or cgroup_apply_control_disable(). > In cgroup_apply_control_enable(), we have checked ss_mask before calling > css_visible(), so there is no need to do the

Re: [PATCH v4 03/13] task_isolation: userspace hard isolation from kernel

2020-10-01 Thread Frederic Weisbecker
On Wed, Jul 22, 2020 at 02:49:49PM +, Alex Belits wrote: > +/** > + * task_isolation_kernel_enter() - clear low-level task isolation flag > + * > + * This should be called immediately after entering kernel. > + */ > +static inline void task_isolation_kernel_enter(void) > +{ > + unsigned

[PATCH v1] fuse: Abort waiting for a response if the daemon receives a fatal signal

2020-10-01 Thread Alexey Gladkov
This patch removes one kind of the deadlocks inside the fuse daemon. The problem appear when the fuse daemon itself makes a file operation on its filesystem and receives a fatal signal. This deadlock can be interrupted via fusectl filesystem. But if you have many fuse mountpoints, it will be

[tip: core/debugobjects] debugobjects: Free per CPU pool after CPU unplug

2020-10-01 Thread tip-bot2 for Zqiang
The following commit has been merged into the core/debugobjects branch of tip: Commit-ID: 88451f2cd3cec2abc30debdf129422d2699d1eba Gitweb: https://git.kernel.org/tip/88451f2cd3cec2abc30debdf129422d2699d1eba Author:Zqiang AuthorDate:Tue, 08 Sep 2020 14:27:09 +08:00

Re: [PATCH -next] PCI: loongson: simplify the return expression of loongson_pci_probe()

2020-10-01 Thread Rob Herring
On Mon, 21 Sep 2020 21:10:54 +0800, Qinglang Miao wrote: > Simplify the return expression. > > Signed-off-by: Qinglang Miao > --- > drivers/pci/controller/pci-loongson.c | 7 +-- > 1 file changed, 1 insertion(+), 6 deletions(-) > Reviewed-by: Rob Herring

Re: [PATCH RFC] checkpatch: fix multi-statement macro checks

2020-10-01 Thread Joe Perches
On Thu, 2020-10-01 at 19:44 +0530, Dwaipayan Ray wrote: > On Thu, Oct 1, 2020 at 7:12 PM Joe Perches wrote: > > On Thu, 2020-10-01 at 18:57 +0530, Dwaipayan Ray wrote: > > > On Thu, Oct 1, 2020 at 6:47 PM Joe Perches wrote: > > > > On Thu, 2020-10-01 at 16:03 +0530, Dwaipayan Ray wrote: > > > >

Re: [PATCH -next] PCI: cadence: simplify the return expression of cdns_pcie_host_init_address_translation()

2020-10-01 Thread Rob Herring
On Mon, 21 Sep 2020 21:10:53 +0800, Qinglang Miao wrote: > Simplify the return expression. > > Signed-off-by: Qinglang Miao > --- > drivers/pci/controller/cadence/pcie-cadence-host.c | 8 ++-- > 1 file changed, 2 insertions(+), 6 deletions(-) > Reviewed-by: Rob Herring

Re: [PATCH -next] PCI: mobiveil: simplify the return expression of mobiveil_pcie_init_irq_domain

2020-10-01 Thread Rob Herring
On Mon, 21 Sep 2020 16:24:47 +0800, Liu Shixin wrote: > Simplify the return expression. > > Signed-off-by: Liu Shixin > --- > drivers/pci/controller/mobiveil/pcie-mobiveil-host.c | 7 +-- > 1 file changed, 1 insertion(+), 6 deletions(-) > Reviewed-by: Rob Herring

Re: [RFC PATCH 1/2] mtd: spi-nor: atmel: remove global SNOR_F_HAS_LOCK

2020-10-01 Thread Michael Walle
Am 2020-10-01 16:25, schrieb tudor.amba...@microchip.com: On 10/1/20 5:12 PM, Michael Walle wrote: EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe Am 2020-10-01 16:06, schrieb tudor.amba...@microchip.com: On 10/1/20 3:28 PM, Michael Walle wrote:

Re: [PATCH -next] PCI: iproc: use module_bcma_driver to simplify the code

2020-10-01 Thread Rob Herring
On Fri, 18 Sep 2020 11:08:29 +0800, Liu Shixin wrote: > module_bcma_driver() makes the code simpler by eliminating > boilerplate code. > > Signed-off-by: Liu Shixin > --- > drivers/pci/controller/pcie-iproc-bcma.c | 13 + > 1 file changed, 1 insertion(+), 12 deletions(-) >

Re: [PATCH v5] kthread: Add debugobject support

2020-10-01 Thread Thomas Gleixner
On Mon, Aug 17 2020 at 14:37, Qianli Zhao wrote: > From: Qianli Zhao > > Add debugobject support to track the life time of kthread_work > which is used to detect reinitialization/free active object problems > Add kthread_init_work_onstack()/kthread_init_delayed_work_onstack() for > kthread

Re: [PATCH v17 06/12] soc: mediatek: Add support for hierarchical scpsys device node

2020-10-01 Thread Matthias Brugger
On 30/09/2020 05:37, Weiyi Lu wrote: On Mon, 2020-09-28 at 15:14 +0800, Nicolas Boichat wrote: On Thu, Aug 6, 2020 at 5:22 PM Weiyi Lu wrote: Try to list all the power domains of under power controller node to show the dependency between each power domain directly instead of filling the

Re: [PATCH] memcg: introduce per-memcg reclaim interface

2020-10-01 Thread Johannes Weiner
On Wed, Sep 30, 2020 at 08:45:17AM -0700, Shakeel Butt wrote: > On Tue, Sep 29, 2020 at 2:55 PM Johannes Weiner wrote: > > > > On Tue, Sep 29, 2020 at 05:04:44PM +0200, Michal Hocko wrote: > > > On Mon 28-09-20 17:02:16, Johannes Weiner wrote: > > > [...] > > > > My take is that a proactive

Re: [PATCH RFC v1 12/18] asm-generic/hyperv: update hv_interrupt_entry

2020-10-01 Thread Rob Herring
On Mon, 14 Sep 2020 11:59:21 +, Wei Liu wrote: > We will soon use the same structure to handle IO-APIC interrupts as > well. Introduce an enum to identify the source and a data structure for > IO-APIC RTE. > > While at it, update pci-hyperv.c to use the enum. > > No functional change. > >

scripts/gdb: issues when loading modules after lx-symbols

2020-10-01 Thread Stefano Garzarella
Hi, I had some issues with gdb scripts and kernel modules in Linux 5.9-rc7. If the modules are already loaded, and I do 'lx-symbols', all work fine. But, if I load a kernel module after 'lx-symbols', I had this issue: [ 5093.393940] invalid opcode: [#1] SMP PTI [ 5093.395134] CPU: 0 PID:

Re: [PATCH] mm: swapfile: avoid split_swap_cluster() NULL pointer dereference

2020-10-01 Thread Rafael Aquini
On Fri, Sep 25, 2020 at 11:21:58AM +0800, Huang, Ying wrote: > Rafael Aquini writes: > >> Or, can you help to run the test with a debug kernel based on upstream > >> kernel. I can provide some debug patch. > >> > > > > Sure, I can set your patches to run with the test cases we have that tend >

[PATCH RFC] kernel: decouple TASK_WORK TWA_SIGNAL handling from signals

2020-10-01 Thread Jens Axboe
Users of TWA_SIGNAL need to have system calls interrupted and go through a kernel/user transition to ensure they are run. This currently works well from a functional standpoint, but it is heavy handed on a multithreaded application where sighand is shared between the threads and main process.

<    3   4   5   6   7   8   9   10   11   12   >