Re: [PATCH v2] module: Harden STRICT_MODULE_RWX

2020-08-11 Thread Mauro Carvalho Chehab
Em Tue, 11 Aug 2020 16:55:24 +0200 pet...@infradead.org escreveu: > On Tue, Aug 11, 2020 at 04:34:27PM +0200, Mauro Carvalho Chehab wrote: > > [33] .plt PROGBITS 0340 00035c80 > >0001 WAX 0 0 1 > > [34] .init

Re: [PATCH v2] mm/gup: Allow real explicit breaking of COW

2020-08-11 Thread Peter Xu
On Tue, Aug 11, 2020 at 08:05:22AM -0700, Linus Torvalds wrote: > On Mon, Aug 10, 2020 at 4:39 PM Jann Horn wrote: > > > > The way I understand Peter, he doesn't want to avoid doing COW; he > > wants to decouple userfaultfd-WP's fault handling from COW, so that > > userfaultfd-wp notifies only whe

Re: [PATCH 19/22] crypto: inside-secure - add check for xts input length equal to zero

2020-08-11 Thread Horia Geantă
On 8/10/2020 8:03 PM, Eric Biggers wrote: > On Mon, Aug 10, 2020 at 05:33:39PM +0300, Horia Geantă wrote: >> On 8/10/2020 4:45 PM, Herbert Xu wrote: >>> On Mon, Aug 10, 2020 at 10:20:20AM +, Van Leeuwen, Pascal wrote: With all due respect, but this makes no sense. >>> >>> I agree. Th

Re: [PATCH v3 4/5] mm: memcg: charge memcg percpu memory to the parent cgroup

2020-08-11 Thread Johannes Weiner
On Tue, Jun 23, 2020 at 11:45:14AM -0700, Roman Gushchin wrote: > Memory cgroups are using large chunks of percpu memory to store vmstat > data. Yet this memory is not accounted at all, so in the case when there > are many (dying) cgroups, it's not exactly clear where all the memory is. > > Becau

Re: file metadata via fs API (was: [GIT PULL] Filesystem Information)

2020-08-11 Thread Miklos Szeredi
On Tue, Aug 11, 2020 at 5:20 PM Linus Torvalds wrote: > > [ I missed the beginning of this discussion, so maybe this was already > suggested ] > > On Tue, Aug 11, 2020 at 6:54 AM Miklos Szeredi wrote: > > > > > > > > E.g. > > > openat(AT_FDCWD, "foo/bar//mnt/info", O_RDONLY | O_ALT); > > > > Pr

Re: [PATCH v2 4.19] tcp: fix TCP socks unreleased in BBR mode

2020-08-11 Thread Eric Dumazet
On 8/11/20 3:37 AM, Jason Xing wrote: > Hi everyone, > > Could anyone take a look at this issue? I believe it is of high-importance. > Though Eric gave the proper patch a few months ago, the stable branch > still hasn't applied or merged this fix. It seems this patch was > forgotten :( Sure,

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-11 Thread Paul E. McKenney
On Tue, Aug 11, 2020 at 04:44:21PM +0200, Thomas Gleixner wrote: > Michal Hocko writes: > > On Mon 10-08-20 18:07:39, Uladzislau Rezki wrote: > >> > On Sun 09-08-20 22:43:53, Uladzislau Rezki (Sony) wrote: > >> > Is there any fundamental problem to make zone raw_spin_lock? > >> > > >> Good point.

[PATCH v2 0/3] perf/x86/rapl: Add Intel SapphireRapids support

2020-08-11 Thread Zhang Rui
Hi, all, This patch set adds rapl perf event support for Intel SapphireRapids platform. Patch 1/3 fixes a regression that Psys RAPL Domain sysfs I/F is missing. Patch 2/3 introduces support for different energy unit quirks. Patch 3/3 introduces support for Intel SapphireRapids platform, which has

[PATCH v2 3/3] perf/x86/rapl: Add support for Intel SPR platform

2020-08-11 Thread Zhang Rui
Intel SPR platform uses fixed 16 bit energy unit for DRAM RAPL domain, and fixed 0 bit energy unit for Psys RAPL domain. After this, on SPR platform the energy counters appear in perf list. Signed-off-by: Zhang Rui Reviewed-by: Kan Liang Acked-by: Len Brown --- arch/x86/events/rapl.c | 20

Re: [PATCH v7] cpufreq: intel_pstate: Implement passive mode with HWP enabled

2020-08-11 Thread Rafael J. Wysocki
On Tuesday, August 11, 2020 2:51:41 AM CEST Francisco Jerez wrote: > > --==-=-= > Content-Type: multipart/mixed; boundary="=-=-=" > > --=-=-= > Content-Type: text/plain; charset=utf-8 > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > "Rafael J. Wysocki" writes: >

[PATCH v2 2/3] perf/x86/rapl: Support multiple rapl unit quirks

2020-08-11 Thread Zhang Rui
There will be more platforms with different fixed energy units. Enhance the code to support different rapl unit quirks for different platforms. Signed-off-by: Zhang Rui Reviewed-by: Kan Liang Reviewed-by: Len Brown --- arch/x86/events/rapl.c | 24 +++- 1 file changed, 15 in

Re: [dm-devel] [RFC PATCH v5 00/11] Integrity Policy Enforcement LSM (IPE)

2020-08-11 Thread James Bottomley
On Tue, 2020-08-11 at 10:48 -0400, Chuck Lever wrote: > > On Aug 11, 2020, at 1:43 AM, James Bottomley > > wrote: > > On Mon, 2020-08-10 at 19:36 -0400, Chuck Lever wrote: [...] > > > Thanks for the help! I just want to emphasize that documentation > > > (eg, a specification) will be critical for

[PATCH v2 1/3] perf/x86/rapl: Fix missing psys sysfs attributes

2020-08-11 Thread Zhang Rui
This fixes a problem introduced by commit 5fb5273a905c ("perf/x86/rapl: Use new MSR detection interface") that perf event sysfs attributes for psys RAPL domain are missing. Fixes: 5fb5273a905c ("perf/x86/rapl: Use new MSR detection interface") Signed-off-by: Zhang Rui Reviewed-by: Kan Liang Revi

Re: [PATCH] net: eliminate meaningless memcpy to data in pskb_carve_inside_nonlinear()

2020-08-11 Thread Eric Dumazet
On 8/11/20 5:10 AM, linmiaohe wrote: > Eric Dumazet wrote: >> On 8/10/20 5:28 AM, Miaohe Lin wrote: >>> The skb_shared_info part of the data is assigned in the following >>> loop. It is meaningless to do a memcpy here. >>> >> >> Reminder : net-next is CLOSED. >> > > Thanks for your remind. I

[PATCH 3/4] arm64: dts: imx8mm-var-som: Add Variscite VAR-SOM-MX8MM System on Module

2020-08-11 Thread Krzysztof Kozlowski
Add DTSI of Variscite VAR-SOM-MX8MM System on Module in a basic version, delivered with Variscite Symphony Evaluation kit. This version comes with: - 2 GB of RAM, - 16 GB eMMC, - Gigabit Ethernet PHY, - 802.11 ac/a/b/g/n WiFi with 4.2 Bluetooth (Cypress CYW43353), - CAN bus, - Audio codec (n

[PATCH 2/4] dt-bindings: arm: fsl: Add binding for Variscite Symphony board with VAR-SOM-MX8MM

2020-08-11 Thread Krzysztof Kozlowski
Add a binding for the Variscite Symphony evaluation kit board with VAR-SOM-MX8MM System on Module. Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/fsl.yaml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Doc

[PATCH 4/4] arm64: dts: imx8mm-var-som-symphony: Add Variscite Symphony board with VAR-SOM-MX8MM

2020-08-11 Thread Krzysztof Kozlowski
Add a DTS for Variscite Symphony evaluation kit with VAR-SOM-MX8MM System on Module. Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/freescale/Makefile| 1 + .../dts/freescale/imx8mm-var-som-symphony.dts | 244 ++ 2 files changed, 245 insertions(+) create mo

Re: file metadata via fs API (was: [GIT PULL] Filesystem Information)

2020-08-11 Thread Andy Lutomirski
> On Aug 11, 2020, at 8:20 AM, Linus Torvalds > wrote: > > [ I missed the beginning of this discussion, so maybe this was already > suggested ] > >> On Tue, Aug 11, 2020 at 6:54 AM Miklos Szeredi wrote: >> >>> >>> E.g. >>> openat(AT_FDCWD, "foo/bar//mnt/info", O_RDONLY | O_ALT); >> >>

[PATCH 1/4] dt-bindings: arm: fsl: Add binding for Variscite VAR-SOM-MX8MM module

2020-08-11 Thread Krzysztof Kozlowski
Add a binding for the Variscite VAR-SOM-MX8MM System on Module. Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.ya

[PATCH 10/33] spmi: hisi-spmi-controller: adjust whitespaces at defines

2020-08-11 Thread Mauro Carvalho Chehab
Some defines are not aligned with tab=8, which is the style defined on Linux. Adjust them. Signed-off-by: Mauro Carvalho Chehab --- drivers/spmi/hisi-spmi-controller.c | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/drivers/spmi/hisi-spmi-controll

[PATCH 00/33] Add driver for HiSilicon SPMI PMIC for Hikey 970

2020-08-11 Thread Mauro Carvalho Chehab
The Hikey 970 board uses a different PMIC than the one found on Hikey 960. This PMIC uses a SPMI board. This patch series backport the OOT drivers from the Linaro's official tree for this board: https://github.com/96boards-hikey/linux/tree/hikey970-v4.9 Porting them to upstream,

[PATCH 01/33] spmi: get rid of a warning when built with W=1

2020-08-11 Thread Mauro Carvalho Chehab
The SPMI core complaing with this warning when built with W=1: drivers/spmi/spmi.c: In function ‘spmi_controller_remove’: drivers/spmi/spmi.c:548:6: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable] 548 | int dummy; | ^ As th

[PATCH 32/33] dt: hisilicon: add support for the PMIC found on Hikey 970

2020-08-11 Thread Mauro Carvalho Chehab
Add a device tree for the HiSilicon 6421v600 SPMI PMIC, used on HiKey970 board. As we now have support for it, change the fixed regulators used by the SD I/O to use the proper LDO supplies. We'll keep the 3v3 fixed regulator, as this will be used by the DRM/KMS driver. So, let's just rename it.

[PATCH 31/33] dt: document HiSilicon SPMI controller and mfd/regulator properties

2020-08-11 Thread Mauro Carvalho Chehab
Add documentation for the properties needed by the HiSilicon 6421v600 driver, and by the SPMI controller used to access the chipset. Signed-off-by: Mauro Carvalho Chehab --- .../mfd/hisilicon,hi6421-spmi-pmic.yaml | 175 ++ .../spmi/hisilicon,hisi-spmi-controller.yaml | 5

[PATCH 13/33] mfd, regulator: coding style fixups at the HiSilicon SPMI PMIC code

2020-08-11 Thread Mauro Carvalho Chehab
There are several issues on those drivers related to their coding style. Solve most of them. Signed-off-by: Mauro Carvalho Chehab --- drivers/mfd/hisi_pmic_spmi.c| 126 drivers/regulator/hisi_regulator_spmi.c | 110 +++-- include/linux/mfd/his

[PATCH 20/33] regulator: hi6421v600-regulator: cleanup struct hisi_regulator

2020-08-11 Thread Mauro Carvalho Chehab
There are several fields on this struct that can be removed, as they already exists at struct regulator_desc. Remove them, cleaning up the code in the process. While here, rename it to hi6421v600_regulator_info, in order to better match the driver's name. Signed-off-by: Mauro Carvalho Chehab --

[PATCH 24/33] regulator, mfd: change namespace for HiSilicon SPMI PMIC drivers

2020-08-11 Thread Mauro Carvalho Chehab
Rename the functions used internally inside the driver in order for them to follow the driver's name. While here, get rid of some unused definitions at the header file. Signed-off-by: Mauro Carvalho Chehab --- drivers/mfd/hi6421-spmi-pmic.c | 97 +--- drivers/regul

[PATCH 28/33] regulator: hi6421v600-regulator: initialize ramp_delay

2020-08-11 Thread Mauro Carvalho Chehab
Without that, the regulator's core complains with: ldo17: ramp_delay not set For now, use the enable time, as we don't have any datasheets from this device. Signed-off-by: Mauro Carvalho Chehab --- drivers/regulator/hi6421v600-regulator.c | 3 +++ 1 file changed, 3 insertions(+) diff -

[PATCH 29/33] regulator: hi6421v600-regulator: cleanup DT settings

2020-08-11 Thread Mauro Carvalho Chehab
Currently, an array is used to store both vsel and enable settings, mixing registers, masks and bit settings. Change it in order to have one separate property for each. This makes easier to understand the contents of the DT file, and to describe it at the Documentation/. Signed-off-by: Mauro Car

[PATCH 05/33] regulator: hisi_regulator_spmi: port it to upstream

2020-08-11 Thread Mauro Carvalho Chehab
The driver was originally written for Kernel 4.9. It needs to be ported to upstream: - Got rid of timeval; - Removed a bogus dependency; - Did cleanups at the header file. Signed-off-by: Mauro Carvalho Chehab --- drivers/regulator/hisi_regulator_spmi.c | 34 -

[PATCH 27/33] regulator: hi6421v600-regulator: add a driver-specific debug macro

2020-08-11 Thread Mauro Carvalho Chehab
Using dev_dbg() is not too nice, as, instead of printing the name of the regulator, it prints "regulator.", making harder to associate what is happening with each ldo line. So, add a debug-specific macro, which will print the rdev's name, just like the regulator core. Signed-off-by: Mauro Carvalh

[PATCH 33/33] MAINTAINERS: add an entry for HiSilicon 6421v600 drivers

2020-08-11 Thread Mauro Carvalho Chehab
Add an entry for the SPMI, MFD and PMIC parts of the HiSilicon 6421v600 support. Signed-off-by: Mauro Carvalho Chehab --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 956ecd5ba426..6410df78e301 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH 30/33] mfd, spmi, regulator: fix some coding style issues at HiSilicon SPMI PMIC

2020-08-11 Thread Mauro Carvalho Chehab
Checkpatch complains about some minor issues inside the new mft/regulator/spmi drivers for HiSilicon 6421v600. Address them. Signed-off-by: Mauro Carvalho Chehab --- drivers/mfd/hi6421-spmi-pmic.c | 4 ++-- drivers/regulator/hi6421v600-regulator.c | 28 drive

[PATCH 18/33] mfd: hi6421-spmi-pmic: get rid of unused OF properties

2020-08-11 Thread Mauro Carvalho Chehab
There are several OF properties that aren't used by Hikey 970, and some are not even used inside the driver. So, drop them, as as this makes easier to document what's actually used. If latter needed, those could be re-added later. Signed-off-by: Mauro Carvalho Chehab --- drivers/mfd/hi6421-spm

[PATCH 17/33] mfd: pmic: add drivers for hi6421v600

2020-08-11 Thread Mauro Carvalho Chehab
Rename the code to better match other upstream drivers, and change the binding logic to ensure that the PMIC SPMI driver will run before the regulator code. Signed-off-by: Mauro Carvalho Chehab --- drivers/mfd/Kconfig | 15 ++ drivers/mfd/Makefile

[PATCH 02/33] spmi, regulator, mfd: add drivers for hikey970 SPMI PMIC

2020-08-11 Thread Mauro Carvalho Chehab
From: Mayulong Add the SPMI controller code and the MFD/regulator drivers needed to support the PMIC used at the Hikey970 board. [mchehab+hua...@kernel.org: keep just the sources, removing Kbuild changes] Signed-off-by: Mayulong Signed-off-by: Mauro Carvalho Chehab --- drivers/mfd/hisi_pmic_

[PATCH 22/33] regulator: hi6421v600-regulator: use shorter names for OF properties

2020-08-11 Thread Mauro Carvalho Chehab
Simplify the names of the OF properties, in order to make them similar to other drivers and to make easier to understand what each property means. Signed-off-by: Mauro Carvalho Chehab --- drivers/regulator/hi6421v600-regulator.c | 52 ++-- 1 file changed, 21 insertions(+), 31

[PATCH 04/33] mfd, regulator: get rid of unused code at HiSilicon SPMI PMIC

2020-08-11 Thread Mauro Carvalho Chehab
There are some checks there which could make sense for downstream builds, but doesn't make much sense for upstream ones. They came from the official Hikey970 tree from Linaro, but even there, the commented-out code is not set via other Kconfig vars. So, let's just get rid of that. If needed later,

[PATCH 21/33] regulator: hi6421v600-regulator: cleanup debug messages

2020-08-11 Thread Mauro Carvalho Chehab
- use dev_foo() instead of pr_foo(); - cleanup the messages, making them more standard and easier to understand. Signed-off-by: Mauro Carvalho Chehab --- drivers/regulator/hi6421v600-regulator.c | 76 +++- 1 file changed, 47 insertions(+), 29 deletions(-) diff --git a/driv

[PATCH 26/33] regulator: hi6421v600-regulator: don't use usleep_range for off_on_delay

2020-08-11 Thread Mauro Carvalho Chehab
The regulator's core already handles it. Signed-off-by: Mauro Carvalho Chehab --- drivers/regulator/hi6421v600-regulator.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/regulator/hi6421v600-regulator.c b/drivers/regulator/hi6421v600-regulator.c index abd1f43dd5ec..31b8ff19fd31 1

[PATCH 25/33] regulator: hi6421v600-regulator: convert to use get/set voltage_sel

2020-08-11 Thread Mauro Carvalho Chehab
As the supported LDOs on this driver are all using a selector, change the implementation to use get_voltage_sel and set_voltage_sel ops. Signed-off-by: Mauro Carvalho Chehab --- drivers/regulator/hi6421v600-regulator.c | 58 +--- 1 file changed, 22 insertions(+), 36 deletions

[PATCH 15/33] mfd: Kconfig: fix a typo

2020-08-11 Thread Mauro Carvalho Chehab
individul -> individual Signed-off-by: Mauro Carvalho Chehab --- drivers/mfd/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig index a37d7d171382..e42d11849947 100644 --- a/drivers/mfd/Kconfig +++ b/drivers/mfd/Kconfig @@ -493,7

[PATCH 19/33] spmi: hi6421-spmi-pmic: cleanup OF properties

2020-08-11 Thread Mauro Carvalho Chehab
Simplify the names of the DT properties and do some cleanups, in order to better document them. Signed-off-by: Mauro Carvalho Chehab --- drivers/mfd/hi6421-spmi-pmic.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/mfd/hi6421-spmi-pmic.c b/drivers/mf

[PATCH 23/33] regulator: hi6421v600-regulator: better handle modes

2020-08-11 Thread Mauro Carvalho Chehab
Instead of implementing a custom set of properties, set valid_modes_mask based on having or not a mask for enabling the eco_mode. This makes the code clearer, and remove some uneeded props from DT. Signed-off-by: Mauro Carvalho Chehab --- drivers/regulator/hi6421v600-regulator.c | 32 --

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-11 Thread Thomas Gleixner
"Paul E. McKenney" writes: > On Tue, Aug 11, 2020 at 04:44:21PM +0200, Thomas Gleixner wrote: >> Now RCU creates a new thing which enforces to make page allocation in >> atomic context possible on RT. What for? >> >> What's the actual use case in truly atomic context for this new thing on >> an R

[PATCH 11/33] spmi: hisi-spmi-controller: use le32 macros where needed

2020-08-11 Thread Mauro Carvalho Chehab
Instead of manually using bswap_32(), just use the le32 macros. Signed-off-by: Mauro Carvalho Chehab --- drivers/spmi/hisi-spmi-controller.c | 20 +++- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/drivers/spmi/hisi-spmi-controller.c b/drivers/spmi/hisi-spmi-con

[PATCH 16/33] spmi: hisi-spmi-controller: fix the dev_foo() logic

2020-08-11 Thread Mauro Carvalho Chehab
Right now, driver is printing some messages as: [ 33.833026] (NULL device *): spmi_read_cmd: id:0 addr:0x17, read value: 00 This is because dev_foo() are not using a device with a name set. Change the logic for it to print it right. Signed-off-by: Mauro Carvalho Chehab --- drivers/s

[PATCH 14/33] spmi: add hisi-spmi-controller to the building system

2020-08-11 Thread Mauro Carvalho Chehab
Now that the driver was ported to upstream, add it as a SPMI controller. Signed-off-by: Mauro Carvalho Chehab --- drivers/spmi/Kconfig | 9 + drivers/spmi/Makefile | 2 ++ 2 files changed, 11 insertions(+) diff --git a/drivers/spmi/Kconfig b/drivers/spmi/Kconfig index a53bad541f1a..b44

[PATCH 09/33] spmi: hisi-spmi-controller: fix a typo

2020-08-11 Thread Mauro Carvalho Chehab
chanel -> channel Signed-off-by: Mauro Carvalho Chehab --- drivers/spmi/hisi-spmi-controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spmi/hisi-spmi-controller.c b/drivers/spmi/hisi-spmi-controller.c index bc6847f9a5e7..99cf757d76fe 100644 --- a/drivers/spmi

[PATCH 12/33] spmi: hisi-spmi-controller: add debug when values are read/write

2020-08-11 Thread Mauro Carvalho Chehab
It is interesting to be able to check if the driver is doing the right thing. So, add some debug macros to allow checking it. Signed-off-by: Mauro Carvalho Chehab --- drivers/spmi/hisi-spmi-controller.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/

[PATCH 08/33] spmi: hisi-spmi-controller: fix it to probe successfully

2020-08-11 Thread Mauro Carvalho Chehab
Add a MODULE_DEVICE_TABLE() to the driver. Also, the current logic calls platform_set_drvdata(pdev, NULL) if the driver succeeds loading. While here, remove the .owner, as it is not needed upstream anymore. Signed-off-by: Mauro Carvalho Chehab --- drivers/spmi/hisi-spmi-controller.c | 11 +

[PATCH 03/33] spmi: hisi-spmi-controller: coding style fixup

2020-08-11 Thread Mauro Carvalho Chehab
In order to prepare for upstream, fix most coding style issues. Signed-off-by: Mauro Carvalho Chehab --- drivers/spmi/hisi-spmi-controller.c | 179 +--- 1 file changed, 82 insertions(+), 97 deletions(-) diff --git a/drivers/spmi/hisi-spmi-controller.c b/drivers/spmi/his

Re: regulator: deadlock vs memory reclaim

2020-08-11 Thread Dmitry Osipenko
11.08.2020 03:07, Michał Mirosław пишет: ... > I just noticed that locking in regulator_resolve_coupling() is bogus. > This all holds up because regulator_list_mutex is held during the call. > Feel free to test a patch below. > > I'm working my way to push allocations outside of the locks, but the

[PATCH 07/33] mfd: hisi_pmic_spmi: get rid of the static vars

2020-08-11 Thread Mauro Carvalho Chehab
There are several static vars inside this driver. Get rid of them. Signed-off-by: Mauro Carvalho Chehab --- drivers/mfd/hisi_pmic_spmi.c | 100 +++--- include/linux/mfd/hisi_pmic.h | 2 + 2 files changed, 34 insertions(+), 68 deletions(-) diff --git a/drivers/mfd

[PATCH 06/33] mfd: hisi_pmic_spmi: deal with non-static functions

2020-08-11 Thread Mauro Carvalho Chehab
Several functions aren't used outside the mfd driver. So, either remove or make them static. Signed-off-by: Mauro Carvalho Chehab --- drivers/mfd/hisi_pmic_spmi.c | 147 ++- 1 file changed, 24 insertions(+), 123 deletions(-) diff --git a/drivers/mfd/hisi_pmic_spm

Re: memory leak in io_submit_sqes

2020-08-11 Thread Jens Axboe
On 8/11/20 9:23 AM, Jens Axboe wrote: > On 8/11/20 8:59 AM, Jens Axboe wrote: >> On 8/11/20 7:57 AM, syzbot wrote: >>> Hello, >>> >>> syzbot found the following issue on: >>> >>> HEAD commit:d6efb3ac Merge tag 'tty-5.9-rc1' of git://git.kernel.org/p.. >>> git tree: upstream >>> console ou

Re: [mm] 2a9127fcf2: hackbench.throughput -69.2% regression

2020-08-11 Thread Linus Torvalds
On Tue, Aug 11, 2020 at 1:34 AM kernel test robot wrote: > > FYI, we noticed a -69.2% regression of hackbench.throughput due to commit: > > commit: 2a9127fcf2296674d58024f83981f40b128fffea ("mm: rewrite > wait_on_page_bit_common() logic") > > in testcase: hackbench > > In addition to that, the co

Re: [PATCH v3] i2c: iproc: fix race between client unreg and isr

2020-08-11 Thread Ray Jui
On 8/10/2020 5:42 PM, Dhananjay Phadke wrote: > When i2c client unregisters, synchronize irq before setting > iproc_i2c->slave to NULL. > > (1) disable_irq() > (2) Mask event enable bits in control reg > (3) Erase slave address (avoid further writes to rx fifo) > (4) Flush tx and rx FIFOs > (5)

Re: [PATCH 4/4] arm64: dts: imx8mm-var-som-symphony: Add Variscite Symphony board with VAR-SOM-MX8MM

2020-08-11 Thread Krzysztof Kozlowski
On Tue, Aug 11, 2020 at 05:39:16PM +0200, Krzysztof Kozlowski wrote: > Add a DTS for Variscite Symphony evaluation kit with VAR-SOM-MX8MM > System on Module. > > Signed-off-by: Krzysztof Kozlowski > --- > arch/arm64/boot/dts/freescale/Makefile| 1 + > .../dts/freescale/imx8mm-var-som-s

Re: [dm-devel] [RFC PATCH v5 00/11] Integrity Policy Enforcement LSM (IPE)

2020-08-11 Thread James Bottomley
On Tue, 2020-08-11 at 10:48 -0400, Chuck Lever wrote: > > On Aug 11, 2020, at 1:43 AM, James Bottomley > nPartnership.com> wrote: > > > > On Mon, 2020-08-10 at 19:36 -0400, Chuck Lever wrote: > > > > On Aug 10, 2020, at 11:35 AM, James Bottomley > > > > wrote: [...] > > > > The first basic is th

Re: [PATCH 00/33] Add driver for HiSilicon SPMI PMIC for Hikey 970

2020-08-11 Thread Mauro Carvalho Chehab
Em Tue, 11 Aug 2020 17:41:26 +0200 Mauro Carvalho Chehab escreveu: > The Hikey 970 board uses a different PMIC than the one found on Hikey 960. > > This PMIC uses a SPMI board. > > This patch series backport the OOT drivers from the Linaro's official > tree for this board: > > https://gi

Re: [PATCH] sched/fair: reduce preemption with IDLE tasks runable(Internet mail)

2020-08-11 Thread Dietmar Eggemann
On 11/08/2020 02:41, benbjiang(蒋彪) wrote: > Hi, > >> On Aug 10, 2020, at 9:24 PM, Dietmar Eggemann >> wrote: >> >> On 06/08/2020 17:52, benbjiang(蒋彪) wrote: >>> Hi, >>> On Aug 6, 2020, at 9:29 PM, Dietmar Eggemann wrote: On 03/08/2020 13:26, benbjiang(蒋彪) wrote: >

Re: [PATCH v1 0/4] [RFC] Implement Trampoline File Descriptor

2020-08-11 Thread Madhavan T. Venkataraman
On 8/11/20 8:08 AM, Pavel Machek wrote: > Hi! > Thanks for the lively discussion. I have tried to answer some of the comments below. >>> > There are options today, e.g. > > a) If the restriction is only per-alias, you can have distinct aliases >where one is writabl

Re: [PATCH 7/7] regulator: remove superfluous lock in regulator_resolve_coupling()

2020-08-11 Thread Dmitry Osipenko
11.08.2020 04:07, Michał Mirosław пишет: > The code modifies rdev, but locks c_rdev instead. The bug remains: > stored c_rdev could be freed just after unlock anyway. This doesn't blow > up because regulator_list_mutex taken outside holds it together. > > Signed-off-by: Michał Mirosław > --- > d

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-11 Thread Sebastian Andrzej Siewior
On 2020-08-11 17:43:16 [+0200], Thomas Gleixner wrote: > Where? See commit 8ac88f7177c75 ("rcu/tree: Keep kfree_rcu() awake during lock contention") Sebastian

Re: [PATCH 02/33] spmi, regulator, mfd: add drivers for hikey970 SPMI PMIC

2020-08-11 Thread Mark Brown
On Tue, Aug 11, 2020 at 05:41:28PM +0200, Mauro Carvalho Chehab wrote: > drivers/mfd/hisi_pmic_spmi.c| 759 > drivers/regulator/hisi_regulator_spmi.c | 741 +++ > drivers/spmi/hisi-spmi-controller.c | 390 > include/linux/m

Re: [PATCH 1/7] regulator: push allocation in regulator_init_coupling() outside of lock

2020-08-11 Thread Dmitry Osipenko
11.08.2020 04:07, Michał Mirosław пишет: > Allocating memory with regulator_list_mutex held makes lockdep unhappy > when memory pressure makes the system do fs_reclaim on eg. eMMC using > a regulator. Push the lock inside regulator_init_coupling() after the > allocation. ... Reviewed-by: Dmitry Os

Re: [PATCH] net/tls: Fix kmap usage

2020-08-11 Thread Jakub Kicinski
On Mon, 10 Aug 2020 17:02:58 -0700 ira.we...@intel.com wrote: > From: Ira Weiny > > When MSG_OOB is specified to tls_device_sendpage() the mapped page is > never unmapped. Nice catch! > Hold off mapping the page until after the flags are checked and the page > is actually needed. We could take

Re: [PATCH 04/33] mfd, regulator: get rid of unused code at HiSilicon SPMI PMIC

2020-08-11 Thread Mark Brown
On Tue, Aug 11, 2020 at 05:41:30PM +0200, Mauro Carvalho Chehab wrote: > There are some checks there which could make sense for > downstream builds, but doesn't make much sense for > upstream ones. They came from the official Hikey970 tree > from Linaro, but even there, the commented-out code is no

Re: [PATCH v2] module: Harden STRICT_MODULE_RWX

2020-08-11 Thread Jessica Yu
+++ Mauro Carvalho Chehab [11/08/20 17:27 +0200]: Em Tue, 11 Aug 2020 16:55:24 +0200 pet...@infradead.org escreveu: On Tue, Aug 11, 2020 at 04:34:27PM +0200, Mauro Carvalho Chehab wrote: > [33] .plt PROGBITS 0340 00035c80 >0001 00

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-11 Thread Paul E. McKenney
On Tue, Aug 11, 2020 at 05:43:16PM +0200, Thomas Gleixner wrote: > "Paul E. McKenney" writes: > > On Tue, Aug 11, 2020 at 04:44:21PM +0200, Thomas Gleixner wrote: > >> Now RCU creates a new thing which enforces to make page allocation in > >> atomic context possible on RT. What for? > >> > >> Wha

Re: [PATCH] USB: realtek_cr: fix return check for dma functions

2020-08-11 Thread Alan Stern
On Tue, Aug 11, 2020 at 08:15:05AM -0700, t...@redhat.com wrote: > From: Tom Rix > > clang static analysis reports this representative problem > > realtek_cr.c:639:3: warning: The left expression of the compound > assignment is an uninitialized value. The computed value will > also be garbag

Re: file metadata via fs API (was: [GIT PULL] Filesystem Information)

2020-08-11 Thread Al Viro
On Tue, Aug 11, 2020 at 08:20:24AM -0700, Linus Torvalds wrote: > I don't think this works for the reasons Al says, but a slight > modification might. > > IOW, if you do something more along the lines of > >fd = open(""foo/bar", O_PATH); >metadatafd = openat(fd, "metadataname", O

Re: file metadata via fs API (was: [GIT PULL] Filesystem Information)

2020-08-11 Thread Linus Torvalds
On Tue, Aug 11, 2020 at 8:30 AM Miklos Szeredi wrote: > > What's the disadvantage of doing it with a single lookup WITH an enabling > flag? > > It's definitely not going to break anything, so no backward > compatibility issues whatsoever. No backwards compatibility issues for existing programs,

Re: [PATCH 0/4] printk: reimplement LOG_CONT handling

2020-08-11 Thread Petr Mladek
On Sat 2020-07-18 16:48:55, John Ogness wrote: > On 2020-07-17, Linus Torvalds wrote: > > Make sure you test the case of "fast concurrent readers". The last > > time we did things like this, it was a disaster, because a concurrent > > reader would see and return the _incomplete_ line, and the next

Re: [PATCH] drm/msm/a6xx: fix crashdec section name typo

2020-08-11 Thread Jordan Crouse
On Sat, Aug 08, 2020 at 10:29:11AM -0700, Rob Clark wrote: > From: Rob Clark > > Backport note: maybe wait some time for the crashdec MR[1] to look for > both the old typo'd name and the corrected name to land in mesa 20.2 > > [1] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6242 R

My Dear in the lord

2020-08-11 Thread Mrs. Mina A. Brunel
My Dear in the lord My name is Mrs. Mina A. Brunel I am a Norway Citizen who is living in Burkina Faso, I am married to Mr. Brunel Patrice, a politicians who owns a small gold company in Burkina Faso; He died of Leprosy and Radesyge, in year February 2010, During his lifetime he deposited t

Re: [RFC][PATCH 0/3] Tracing, Idle, RCU and such goodness

2020-08-11 Thread Paul E. McKenney
On Mon, Aug 10, 2020 at 02:11:38PM +0200, pet...@infradead.org wrote: > On Mon, Aug 10, 2020 at 11:55:35AM +0200, Marco Elver wrote: > > > Unfortunately I get LOCKDEP_DEBUG warnings, when testing with one of > > syzbot's configs. This appears at some point during boot (no other > > test): > > > >

Re: [PATCH 02/33] spmi, regulator, mfd: add drivers for hikey970 SPMI PMIC

2020-08-11 Thread Mauro Carvalho Chehab
Em Tue, 11 Aug 2020 16:58:10 +0100 Mark Brown escreveu: > On Tue, Aug 11, 2020 at 05:41:28PM +0200, Mauro Carvalho Chehab wrote: > > > drivers/mfd/hisi_pmic_spmi.c| 759 > > drivers/regulator/hisi_regulator_spmi.c | 741 +++ > > drivers/s

ORDER

2020-08-11 Thread PURCHASE MANAGER
Dear Sir/Madam Good day.. Please i urgently want to order some products and probably some Services Please i want to know if it is possible to order now (during dis pandemic)or i should wait till after the pandemic.. please i need an urgent reply Best Regards, Robert Barclay Head of Procureme

Re: [PATCH 00/33] Add driver for HiSilicon SPMI PMIC for Hikey 970

2020-08-11 Thread Mark Brown
On Tue, Aug 11, 2020 at 05:41:26PM +0200, Mauro Carvalho Chehab wrote: > This patch series backport the OOT drivers from the Linaro's official > tree for this board: > https://github.com/96boards-hikey/linux/tree/hikey970-v4.9 > Porting them to upstream, cleaning up coding style issues, so

Re: file metadata via fs API (was: [GIT PULL] Filesystem Information)

2020-08-11 Thread Linus Torvalds
On Tue, Aug 11, 2020 at 9:05 AM Al Viro wrote: > > Except that you suddenly see non-directory dentries get children. > And a lot of dcache-related logics needs to be changed if that > becomes possible. Yeah, I think you'd basically need to associate a (dynamic) mount-point to that path when you s

Re: VDPA Debug/Statistics

2020-08-11 Thread Roopa Prabhu
On 8/11/20 5:44 AM, Michael S. Tsirkin wrote: External email: Use caution opening links or attachments On Tue, Aug 11, 2020 at 11:58:23AM +, Eli Cohen wrote: On Tue, Aug 11, 2020 at 11:26:20AM +, Eli Cohen wrote: Hi All Currently, the only statistics we get for a VDPA instance come

Re: [PATCH 02/33] spmi, regulator, mfd: add drivers for hikey970 SPMI PMIC

2020-08-11 Thread Mark Brown
On Tue, Aug 11, 2020 at 06:08:37PM +0200, Mauro Carvalho Chehab wrote: > Mark Brown escreveu: > > This is a single patch for three subsystems, please split it into per > > subsystem patches. > Ok, I'll split on a next version. > Yet, it would be good to have all tree drivers applied via the sa

Re: file metadata via fs API (was: [GIT PULL] Filesystem Information)

2020-08-11 Thread Casey Schaufler
On 8/11/2020 8:39 AM, Andy Lutomirski wrote: > >> On Aug 11, 2020, at 8:20 AM, Linus Torvalds >> wrote: >> >> [ I missed the beginning of this discussion, so maybe this was already >> suggested ] >> >>> On Tue, Aug 11, 2020 at 6:54 AM Miklos Szeredi wrote: >>> E.g. openat(AT_FDCWD, "

Re: [PATCH 5.8 00/38] 5.8.1-rc1 review

2020-08-11 Thread Greg Kroah-Hartman
On Mon, Aug 10, 2020 at 05:04:26PM -0600, Shuah Khan wrote: > On 8/10/20 9:18 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.8.1 release. > > There are 38 patches in this series, all will be posted as a response > > to this one. If anyone has any issues wi

Re: [PATCH 5.8 00/38] 5.8.1-rc1 review

2020-08-11 Thread Greg Kroah-Hartman
On Tue, Aug 11, 2020 at 11:59:37AM +0530, Naresh Kamboju wrote: > On Mon, 10 Aug 2020 at 20:50, Greg Kroah-Hartman > wrote: > > > > This is the start of the stable review cycle for the 5.8.1 release. > > There are 38 patches in this series, all will be posted as a response > > to this one. If any

Re: [RFC-PATCH 1/2] mm: Add __GFP_NO_LOCKS flag

2020-08-11 Thread Paul E. McKenney
On Tue, Aug 11, 2020 at 09:02:40AM -0700, Paul E. McKenney wrote: > On Tue, Aug 11, 2020 at 05:43:16PM +0200, Thomas Gleixner wrote: > > "Paul E. McKenney" writes: > > > On Tue, Aug 11, 2020 at 04:44:21PM +0200, Thomas Gleixner wrote: > > >> Now RCU creates a new thing which enforces to make page

Re: [PATCH 5.8 00/38] 5.8.1-rc1 review

2020-08-11 Thread Greg Kroah-Hartman
On Tue, Aug 11, 2020 at 07:24:17AM -0700, Guenter Roeck wrote: > On Mon, Aug 10, 2020 at 05:18:50PM +0200, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.8.1 release. > > There are 38 patches in this series, all will be posted as a response > > to this one. If

Re: Linux 5.8.1

2020-08-11 Thread Greg Kroah-Hartman
diff --git a/Makefile b/Makefile index 24a4c1b97bb0..7932464518f1 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 8 -SUBLEVEL = 0 +SUBLEVEL = 1 EXTRAVERSION = NAME = Kleptomaniac Octopus diff --git a/arch/arm64/include/asm/arch

Linux 5.7.15

2020-08-11 Thread Greg Kroah-Hartman
I'm announcing the release of the 5.7.15 kernel. All users of the 5.7 kernel series must upgrade. The updated 5.7.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.7.y and can be browsed at the normal kernel.org git web browser:

Re: Linux 4.19.139

2020-08-11 Thread Greg Kroah-Hartman
diff --git a/Makefile b/Makefile index daaa8ab2f550..f6012170995e 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 19 -SUBLEVEL = 138 +SUBLEVEL = 139 EXTRAVERSION = NAME = "People's Front" diff --git a/drivers/android/binder.c b

Linux 4.19.139

2020-08-11 Thread Greg Kroah-Hartman
I'm announcing the release of the 4.19.139 kernel. All users of the 4.19 kernel series must upgrade. The updated 4.19.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.19.y and can be browsed at the normal kernel.org git web browser

Re: Linux 5.4.58

2020-08-11 Thread Greg Kroah-Hartman
diff --git a/Makefile b/Makefile index dd753ef637fd..29948bc4a0d2 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 4 -SUBLEVEL = 57 +SUBLEVEL = 58 EXTRAVERSION = NAME = Kleptomaniac Octopus diff --git a/arch/powerpc/include/asm/

Re: Linux 5.7.15

2020-08-11 Thread Greg Kroah-Hartman
diff --git a/Makefile b/Makefile index 70942a6541d8..a2fbdb4c952d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 7 -SUBLEVEL = 14 +SUBLEVEL = 15 EXTRAVERSION = NAME = Kleptomaniac Octopus diff --git a/arch/arm64/kernel/kaslr.c

Linux 5.8.1

2020-08-11 Thread Greg Kroah-Hartman
I'm announcing the release of the 5.8.1 kernel. All users of the 5.8 kernel series must upgrade. The updated 5.8.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.8.y and can be browsed at the normal kernel.org git web browser:

Linux 5.4.58

2020-08-11 Thread Greg Kroah-Hartman
I'm announcing the release of the 5.4.58 kernel. All users of the 5.4 kernel series must upgrade. The updated 5.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.4.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH 1/2] perf: Add closing sibling events' file descriptors

2020-08-11 Thread Alexander Shishkin
Andi Kleen writes: > On Tue, Aug 11, 2020 at 12:47:24PM +0300, Alexander Shishkin wrote: >> >> Right, but which bytes? One byte per event? That's >> arbitrary. sizeof(struct perf_event)? Then, probably also sizeof(struct >> perf_event_context). > > Yes the sum of all the sizeofs needed for a per

Re: [PATCH] serial: qcom_geni_serial: Fix recent kdb hang

2020-08-11 Thread Doug Anderson
Hi, On Tue, Aug 11, 2020 at 4:54 AM Akash Asthana wrote: > > > On 8/11/2020 2:56 AM, Doug Anderson wrote: > > Hi, > > > > On Mon, Aug 10, 2020 at 5:32 AM Akash Asthana > > wrote: > >> Hi Doug, > >> > >> On 8/7/2020 10:49 AM, Douglas Anderson wrote: > >>> The commit e42d6c3ec0c7 ("serial: qcom_g

Re: [PATCH] Filesystems: Documentation: Replace deprecated :c:func: Usage

2020-08-11 Thread Jonathan Corbet
On Tue, 11 Aug 2020 00:18:28 +0530 Puranjay Mohan wrote: > Replace :c:func: with func() as the previous usage is deprecated. > > Signed-off-by: Puranjay Mohan > --- > Documentation/filesystems/journalling.rst | 66 +++ > 1 file changed, 33 insertions(+), 33 deletions(-) Ap

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