Re: [PATCH v2] dt-bindings: dvfs: Add support for generic performance domains

2020-11-16 Thread Viresh Kumar
On 16-11-20, 18:13, Sudeep Holla wrote: > The CLKSCREW attack [0] exposed security vulnerabilities in energy management > implementations where untrusted software had direct access to clock and > voltage hardware controls. In this attack, the malicious software was able to > place the platform

Re: [PATCH 3/3] phy: sun4i-usb: Use power efficient workqueue for debounce and poll

2020-11-16 Thread Samuel Holland
On 11/12/20 3:53 AM, Maxime Ripard wrote: > On Tue, Nov 10, 2020 at 09:44:37PM -0600, Samuel Holland wrote: >> On 11/9/20 6:12 AM, Frank Lee wrote: >>> From: Yangtao Li >>> >>> The debounce and poll time is generally quite long and the work not >>> performance critical so allow the scheduler to

linux-next: build warning after merge of the amdgpu tree

2020-11-16 Thread Stephen Rothwell
Hi all, After merging the amdgpu tree, today's linux-next build (htmldocs) produced this warning: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h:353: warning: Function parameter or member 'crc_win_x_start_property' not described in 'amdgpu_display_manager'

Re: [PATCH -next] scsi: be2iscsi: Mark beiscsi_attrs with static keyword

2020-11-16 Thread Martin K. Petersen
Zou, > Fix the following sparse warning: > > ./be_main.c:167:25: warning: symbol 'beiscsi_attrs' was not declared. Should > it be static? Applied to 5.11/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH 0/3] Add support to handle prefetchable memory

2020-11-16 Thread Vidya Sagar
Hi Lorenzo & Bjorn, Sorry to bother you. Could you please take a look at the patches-1 & 2 from this series? Thanks, Vidya Sagar On 11/4/2020 1:16 PM, Vidya Sagar wrote: External email: Use caution opening links or attachments Lorenzo / Bjorn, Could you please review patches-1 & 2 in this

Re: [PATCH v2 19/19] scsi: hpsa: Strip out a bunch of set but unused variables

2020-11-16 Thread Martin K. Petersen
Lee, > Fixes the following W=1 kernel build warning(s): > > drivers/scsi/hpsa.c: In function ‘hpsa_volume_offline’: > drivers/scsi/hpsa.c:3885:5: warning: variable ‘scsi_status’ set but not used > [-Wunused-but-set-variable] > drivers/scsi/hpsa.c:3884:6: warning: variable ‘cmd_status’ set

Re: [RFC 2/3] ARM: sunxi: do not select COMMON_CLK to fix builds

2020-11-16 Thread Samuel Holland
On 11/15/20 11:09 AM, Krzysztof Kozlowski wrote: > COMMON_CLK is a user-selectable option with its own dependencies. The > most important dependency is !HAVE_LEGACY_CLK. User-selectable drivers > should not select COMMON_CLK because they will create a dependency cycle > and build failures. For

Re: [PATCH] cpufreq: tegra186: Fix get frequency callback

2020-11-16 Thread Viresh Kumar
On 16-11-20, 15:55, Jon Hunter wrote: > Hi Rafael, > > On 04/11/2020 09:33, Viresh Kumar wrote: > > On 03-11-20, 11:55, Jon Hunter wrote: > >> Commit b89c01c96051 ("cpufreq: tegra186: Fix initial frequency") > >> implemented the CPUFREQ 'get' callback to determine the current > >> operating

Re: [PATCH] scsi: ufs: Add retry flow for failed hba enabling

2020-11-16 Thread Martin K. Petersen
Stanley, > Once hba enabling is failed, add retry mechanism and in the meanwhile > allow vendors to apply specific handlings before the next retry. For > example, vendors can do vendor-specific host reset flow in variant > function "ufshcd_vops_hce_enable_notify()". Applied to

Re: mmotm 2020-11-16-16-47 uploaded (m/secretmem.c)

2020-11-16 Thread Stephen Rothwell
Hi all, On Mon, 16 Nov 2020 20:20:12 -0800 Randy Dunlap wrote: > > on x86_64: > > as reported on 2020-11-12: > > when CONFIG_MEMCG is not set: > > ../mm/secretmem.c: In function ‘secretmem_memcg_charge’: > ../mm/secretmem.c:72:4: error: ‘struct page’ has no member named ‘memcg_data’ >

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

2020-11-16 Thread Manivannan Sadhasivam
by commit > > > > 0cc1f3a385b2 ("bus: mhi: Remove auto-start option") > > > > The fixing patch [1] should've landed in ath-next. Kalle can you please > apply the patch on top of immutable branch? > > Stephen, feel free to pick it up in the me

Re: [PATCH v3] checkpatch: add fix option for MAINTAINERS_STYLE

2020-11-16 Thread Joe Perches
On Mon, 2020-11-16 at 20:26 -0800, Joe Perches wrote: > On Tue, 2020-11-17 at 09:35 +0530, Aditya Srivastava wrote: > > Checkpatch expects entries in MAINTAINERS file in a specific order and > > warns if the changes made do not follow the specified order. > > > > E.g., running checkpatch on

Re: [PATCH v3] checkpatch: add fix option for MAINTAINERS_STYLE

2020-11-16 Thread Joe Perches
On Tue, 2020-11-17 at 09:35 +0530, Aditya Srivastava wrote: > Checkpatch expects entries in MAINTAINERS file in a specific order and > warns if the changes made do not follow the specified order. > > E.g., running checkpatch on commit b33bc2b878e0 ("nexthop: Add entry to > MAINTAINERS") reports

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

2020-11-16 Thread Manivannan Sadhasivam
l free to pick it up in the meantime. Thanks, Mani [1] https://lore.kernel.org/netdev/1601369799-22328-1-git-send-email-kv...@codeaurora.org/ > I have used the mhi tree from next-20201116 for today. > > -- > Cheers, > Stephen Rothwell

Re: [PATCH v3] checkpatch: add fix option for MAINTAINERS_STYLE

2020-11-16 Thread Joe Perches
On Tue, 2020-11-17 at 09:35 +0530, Aditya Srivastava wrote: > Checkpatch expects entries in MAINTAINERS file in a specific order and > warns if the changes made do not follow the specified order. > > E.g., running checkpatch on commit b33bc2b878e0 ("nexthop: Add entry to > MAINTAINERS") reports

Re: mmotm 2020-11-16-16-47 uploaded (m/secretmem.c)

2020-11-16 Thread Randy Dunlap
On 11/16/20 4:48 PM, a...@linux-foundation.org wrote: > The mm-of-the-moment snapshot 2020-11-16-16-47 has been uploaded to > >https://www.ozlabs.org/~akpm/mmotm/ > > mmotm-readme.txt says > > README for mm-of-the-moment: > > https://www.ozlabs.org/~akpm/mmotm/ > > This is a snapshot of

Re: [PATCH] cpufreq: schedutil: Simplify sugov_update_next_freq()

2020-11-16 Thread Viresh Kumar
On 12-11-20, 20:26, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Rearrange a conditional to make it more straightforward. > > Signed-off-by: Rafael J. Wysocki > --- > kernel/sched/cpufreq_schedutil.c |8 +++- > 1 file changed, 3 insertions(+), 5 deletions(-) > > Index:

Re: [f2fs-dev] [PATCH 1/2] f2fs: add disable_auto_compr mount option

2020-11-16 Thread Eric Biggers
This patchset doesn't have a cover letter, and it doesn't apply to f2fs/dev, so I'm not sure what its purpose is. On Tue, Nov 17, 2020 at 01:02:22PM +0900, Daeho Jeong wrote: > From: Daeho Jeong > > We will add a new disable_auto_compr mount option to turn off the > automaic compression on the

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

2020-11-16 Thread Stephen Rothwell
, |^~ drivers/net/wireless/ath/ath11k/mhi.c:72:4: error: 'struct mhi_channel_config' has no member named 'auto_start' 72 | .auto_start = true, |^~ Caused by commit 0cc1f3a385b2 ("bus: mhi: Remove auto-start option") I have used the mhi tree from next-20201116

Re: [PATCH net] net: b44: fix error return code in b44_init_one()

2020-11-16 Thread Michael Chan
On Mon, Nov 16, 2020 at 7:01 PM Zhang Changzhong wrote: > > Fix to return a negative error code from the error handling > case instead of 0, as done elsewhere in this function. > > Fixes: 39a6f4bce6b4 ("b44: replace the ssb_dma API with the generic DMA API") > Reported-by: Hulk Robot >

[PATCH v3] checkpatch: add fix option for MAINTAINERS_STYLE

2020-11-16 Thread Aditya Srivastava
Checkpatch expects entries in MAINTAINERS file in a specific order and warns if the changes made do not follow the specified order. E.g., running checkpatch on commit b33bc2b878e0 ("nexthop: Add entry to MAINTAINERS") reports this warning: WARNING: Misordered MAINTAINERS entry - list file

[PATCH v2 0/3] Add support for Encryption and Casefolding in F2FS

2020-11-16 Thread Daniel Rosenberg
These patches are on top of the torvalds tree. F2FS currently supports casefolding and encryption, but not at the same time. These patches aim to rectify that. In a later follow up, this will be added for Ext4 as well. I've included one ext4 patch from the previous set since it isn't in the f2fs

[PATCH 2/2] f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE

2020-11-16 Thread Daeho Jeong
From: Daeho Jeong Added two ioctl to decompress/compress explicitly the compression enabled file in disable_auto_compr mount option. Using these two ioctls, the users can make a control of compression and decompression of their files. Signed-off-by: Daeho Jeong --- fs/f2fs/f2fs.h | 10 ++-

[PATCH v2 1/3] libfs: Add generic function for setting dentry_ops

2020-11-16 Thread Daniel Rosenberg
This adds a function to set dentry operations at lookup time that will work for both encrypted filenames and casefolded filenames. A filesystem that supports both features simultaneously can use this function during lookup preparations to set up its dentry operations once fscrypt no longer does

[PATCH v2 2/3] fscrypt: Have filesystems handle their d_ops

2020-11-16 Thread Daniel Rosenberg
This shifts the responsibility of setting up dentry operations from fscrypt to the individual filesystems, allowing them to have their own operations while still setting fscrypt's d_revalidate as appropriate. Most filesystems can just use generic_set_encrypted_ci_d_ops, unless they have their own

[PATCH 1/2] f2fs: add disable_auto_compr mount option

2020-11-16 Thread Daeho Jeong
From: Daeho Jeong We will add a new disable_auto_compr mount option to turn off the automaic compression on the compression enabled file, in order to give discretion of choosing the target file and the timing of compression to the user. Signed-off-by: Daeho Jeong ---

[PATCH v2 3/3] f2fs: Handle casefolding with Encryption

2020-11-16 Thread Daniel Rosenberg
Expand f2fs's casefolding support to include encrypted directories. To index casefolded+encrypted directories, we use the SipHash of the casefolded name, keyed by a key derived from the directory's fscrypt master key. This ensures that the dirhash doesn't leak information about the plaintext

Re: [PATCH] scsi: sd: remove obsolete variable in sd_remove()

2020-11-16 Thread Martin K. Petersen
>> Commit 140ea3bbf39a ("sd: use __register_blkdev to avoid a modprobe >> for an unregistered dev_t") removed blk_register_region(devt, ...) in >> sd_remove() and since then, devt is unused in sd_remove(). > > Applied to 5.11/scsi-staging, thanks! Actually, this should go through block given

Re: [PATCH] scsi: sd: remove obsolete variable in sd_remove()

2020-11-16 Thread Martin K. Petersen
Lukas, > Commit 140ea3bbf39a ("sd: use __register_blkdev to avoid a modprobe > for an unregistered dev_t") removed blk_register_region(devt, ...) in > sd_remove() and since then, devt is unused in sd_remove(). Applied to 5.11/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux

Re: [PATCH 1/1] scsi: pm8001: pm8001_hwi: Remove unused variable 'value'

2020-11-16 Thread Martin K. Petersen
Lee, > Hasn't been used since 2009. > > Fixes the following W=1 kernel build warning(s): > > drivers/scsi/pm8001/pm8001_hwi.c: In function ‘mpi_set_phys_g3_with_ssc’: > drivers/scsi/pm8001/pm8001_hwi.c:415:6: warning: variable ‘value’ set but > not used [-Wunused-but-set-variable] Applied

[PATCH net v2] net: Have netpoll bring-up DSA management interface

2020-11-16 Thread Florian Fainelli
DSA network devices rely on having their DSA management interface up and running otherwise their ndo_open() will return -ENETDOWN. Without doing this it would not be possible to use DSA devices as netconsole when configured on the command line. These devices also do not utilize the upper/lower

[PATCH v2 1/3] input: sc27xx: Add support for sc2730 and sc2721

2020-11-16 Thread Chunyan Zhang
From: Nemo Han Add new compatible strings and match data to support sc2730 and sc2721 which are two varieties of SC27XX family. Signed-off-by: Nemo Han Signed-off-by: Chunyan Zhang --- drivers/input/misc/sc27xx-vibra.c | 64 ++- 1 file changed, 54 insertions(+),

[PATCH v2 3/3] dt-bindings: input: Add compatible string for SC2721 and SC2730

2020-11-16 Thread Chunyan Zhang
From: Chunyan Zhang Add new compatible strings to support sc2730 and sc2721 which are two varieties of SC27XX family. Signed-off-by: Chunyan Zhang --- .../devicetree/bindings/input/sprd,sc27xx-vibrator.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v2 0/3] Add support for sc2730 and sc2721

2020-11-16 Thread Chunyan Zhang
This patchset add new compatible strings and match data to support sc2730 and sc2721, also convert the bindings to yaml schema. Changes since v1: * fixed the error when running dt_binding_check; Chunyan Zhang (2): dt-bindings: input: Convert sc27xx-vibra.txt to json-schema dt-bindings:

[PATCH v2 2/3] dt-bindings: input: Convert sc27xx-vibra.txt to json-schema

2020-11-16 Thread Chunyan Zhang
From: Chunyan Zhang Convert the sprd sc27xx vibrator binding to DT schema using json-schema. Signed-off-by: Chunyan Zhang --- .../bindings/input/sprd,sc27xx-vibra.txt | 23 -- .../bindings/input/sprd,sc27xx-vibrator.yaml | 46 +++ 2 files changed, 46

Re: [PATCH 1/4] PCI: rockchip: make ep_gpio optional

2020-11-16 Thread Chen-Yu Tsai
On Tue, Nov 17, 2020 at 12:42 AM Bjorn Helgaas wrote: > > Run "git log --oneline drivers/pci/controller/pcie-rockchip.c" (or > even just look at the Fixes: commits you mention) and follow the > convention, e.g., > > PCI: rockchip: Make 'ep-gpios' DT property optional > > Also, you used

Re: [PATCH v4 bpf-next 3/5] kbuild: build kernel module BTFs if BTF is enabled and pahole supports it

2020-11-16 Thread David Ahern
On 11/9/20 6:19 PM, Andrii Nakryiko wrote: > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index d7a7bc3b6098..1e78faaf20a5 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -274,6 +274,15 @@ config DEBUG_INFO_BTF > Turning this on expects presence of pahole tool,

Re: [PATCH v9 2/3] scsi: storvsc: Use vmbus_requestor to generate transaction IDs for VMBus hardening

2020-11-16 Thread Martin K. Petersen
Wei, > Martin and James, are you happy with this change? I would assume you > are because that means this patch to storvsc is leaner. Yes, that's fine. Acked-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

RE: [PATCH v1 2/2] bus: mhi: core: Process execution environment changes serially

2020-11-16 Thread 殷张成
Hi bbhat: On November 17, 2020 10:58 AM, bbhatt wrote: > In current design, whenever the BHI interrupt is fired, the execution > environment is updated. This can cause race conditions and impede any ongoing > power up/down processing. For example, if a power down is in progress and the > host has

[PATCH bpf-next v6 25/34] bpf: eliminate rlimit-based memory accounting for queue_stack_maps maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for queue_stack maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/queue_stack_maps.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git

[PATCH bpf-next v6 00/34] bpf: switch to memcg-based memory accounting

2020-11-16 Thread Roman Gushchin
Currently bpf is using the memlock rlimit for the memory accounting. This approach has its downsides and over time has created a significant amount of problems: 1) The limit is per-user, but because most bpf operations are performed as root, the limit has a little value. 2) It's hard to come

[PATCH bpf-next v6 06/34] bpf: prepare for memcg-based memory accounting for bpf maps

2020-11-16 Thread Roman Gushchin
In the absolute majority of cases if a process is making a kernel allocation, it's memory cgroup is getting charged. Bpf maps can be updated from an interrupt context and in such case there is no process which can be charged. It makes the memory accounting of bpf maps non-trivial. Fortunately,

[PATCH bpf-next v6 20/34] bpf: eliminate rlimit-based memory accounting for cpumap maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for cpumap maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/cpumap.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git

[PATCH bpf-next v6 29/34] bpf: eliminate rlimit-based memory accounting for stackmap maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for stackmap maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/stackmap.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git

[PATCH bpf-next v6 12/34] bpf: refine memcg-based memory accounting for hashtab maps

2020-11-16 Thread Roman Gushchin
Include percpu objects and the size of map metadata into the accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu Reviewed-by: Shakeel Butt --- kernel/bpf/hashtab.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/kernel/bpf/hashtab.c

[PATCH bpf-next v6 17/34] bpf: refine memcg-based memory accounting for xskmap maps

2020-11-16 Thread Roman Gushchin
Extend xskmap memory accounting to include the memory taken by the xsk_map_node structure. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- net/xdp/xskmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/xdp/xskmap.c b/net/xdp/xskmap.c index

[PATCH bpf-next v6 16/34] bpf: refine memcg-based memory accounting for sockmap and sockhash maps

2020-11-16 Thread Roman Gushchin
Include internal metadata into the memcg-based memory accounting. Also include the memory allocated on updating an element. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- net/core/sock_map.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/net/core/sock_map.c

[PATCH bpf-next v6 27/34] bpf: eliminate rlimit-based memory accounting for bpf ringbuffer

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for bpf ringbuffer. It has been replaced with the memcg-based memory accounting. bpf_ringbuf_alloc() can't return anything except ERR_PTR(-ENOMEM) and a valid pointer, so to simplify the code make it return NULL in the first case. This allows to drop a

[PATCH bpf-next v6 02/34] mm: memcontrol/slab: use helpers to access slab page's memcg_data

2020-11-16 Thread Roman Gushchin
To gather all direct accesses to struct page's memcg_data field in one place, let's introduce 3 new helpers to use in the slab accounting code: struct obj_cgroup **page_objcgs(struct page *page); struct obj_cgroup **page_objcgs_check(struct page *page); bool set_page_objcgs(struct page

[PATCH bpf-next v6 04/34] mm: convert page kmemcg type to a page memcg flag

2020-11-16 Thread Roman Gushchin
PageKmemcg flag is currently defined as a page type (like buddy, offline, table and guard). Semantically it means that the page was accounted as a kernel memory by the page allocator and has to be uncharged on the release. As a side effect of defining the flag as a page type, the accounted page

[PATCH bpf-next v6 28/34] bpf: eliminate rlimit-based memory accounting for sockmap and sockhash maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for sockmap and sockhash maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- net/core/sock_map.c | 33 ++--- 1 file changed, 6 insertions(+), 27

[PATCH bpf-next v6 32/34] bpf: eliminate rlimit-based memory accounting infra for bpf maps

2020-11-16 Thread Roman Gushchin
Remove rlimit-based accounting infrastructure code, which is not used anymore. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- include/linux/bpf.h | 12 kernel/bpf/syscall.c | 64 +--

[PATCH bpf-next v6 10/34] bpf: memcg-based memory accounting for cgroup storage maps

2020-11-16 Thread Roman Gushchin
Account memory used by cgroup storage maps including metadata structures. Account the percpu memory for the percpu flavor of cgroup storage. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/local_storage.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-)

[PATCH bpf-next v6 23/34] bpf: eliminate rlimit-based memory accounting for hashtab maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for hashtab maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/hashtab.c | 19 +-- 1 file changed, 1 insertion(+), 18 deletions(-) diff --git

[PATCH bpf-next v6 07/34] bpf: memcg-based memory accounting for bpf maps

2020-11-16 Thread Roman Gushchin
This patch enables memcg-based memory accounting for memory allocated by __bpf_map_area_alloc(), which is used by many types of bpf maps for large memory allocations. Following patches in the series will refine the accounting for some of the map types. Signed-off-by: Roman Gushchin Acked-by:

[PATCH bpf-next v6 30/34] bpf: eliminate rlimit-based memory accounting for xskmap maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for xskmap maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- net/xdp/xskmap.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/net/xdp/xskmap.c

[PATCH bpf-next v6 33/34] bpf: eliminate rlimit-based memory accounting for bpf progs

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for bpf progs. It has been replaced with memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- include/linux/bpf.h | 11 -- kernel/bpf/core.c| 12 ++- kernel/bpf/syscall.c | 86

[PATCH bpf-next v6 22/34] bpf: eliminate rlimit-based memory accounting for devmap maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for devmap maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/devmap.c | 18 ++ 1 file changed, 2 insertions(+), 16 deletions(-) diff --git

[PATCH bpf-next v6 11/34] bpf: refine memcg-based memory accounting for devmap maps

2020-11-16 Thread Roman Gushchin
Include map metadata and the node size (struct bpf_dtab_netdev) into the accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/devmap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/devmap.c b/kernel/bpf/devmap.c index

[PATCH bpf-next v6 05/34] bpf: memcg-based memory accounting for bpf progs

2020-11-16 Thread Roman Gushchin
Include memory used by bpf programs into the memcg-based accounting. This includes the memory used by programs itself, auxiliary data, statistics and bpf line info. A memory cgroup containing the process which loads the program is getting charged. Signed-off-by: Roman Gushchin Acked-by: Song Liu

[PATCH bpf-next v6 19/34] bpf: eliminate rlimit-based memory accounting for bpf_struct_ops maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for bpf_struct_ops maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/bpf_struct_ops.c | 19 +++ 1 file changed, 3 insertions(+), 16 deletions(-) diff

[PATCH bpf-next v6 13/34] bpf: memcg-based memory accounting for lpm_trie maps

2020-11-16 Thread Roman Gushchin
Include lpm trie and lpm trie node objects into the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/lpm_trie.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/lpm_trie.c b/kernel/bpf/lpm_trie.c index

Re: [PATCH v6 00/34] bpf: switch to memcg-based memory accounting

2020-11-16 Thread Roman Gushchin
On Mon, Nov 16, 2020 at 06:54:55PM -0800, Roman Gushchin wrote: > Currently bpf is using the memlock rlimit for the memory accounting. > This approach has its downsides and over time has created a significant > amount of problems: > I'm sorry, I've missed the "bpf-next" prefix in the subject.

[PATCH bpf-next v6 26/34] bpf: eliminate rlimit-based memory accounting for reuseport_array maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for reuseport_array maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/reuseport_array.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git

[PATCH bpf-next v6 21/34] bpf: eliminate rlimit-based memory accounting for cgroup storage maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for cgroup storage maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/local_storage.c | 21 + 1 file changed, 1 insertion(+), 20 deletions(-) diff

[PATCH bpf-next v6 08/34] bpf: refine memcg-based memory accounting for arraymap maps

2020-11-16 Thread Roman Gushchin
Include percpu arrays and auxiliary data into the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/arraymap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/bpf/arraymap.c b/kernel/bpf/arraymap.c index

[PATCH bpf-next v6 09/34] bpf: refine memcg-based memory accounting for cpumap maps

2020-11-16 Thread Roman Gushchin
Include metadata and percpu data into the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/cpumap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/cpumap.c b/kernel/bpf/cpumap.c index c61a23b564aa..563f96cc8a9d

[PATCH bpf-next v6 18/34] bpf: eliminate rlimit-based memory accounting for arraymap maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for arraymap maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/arraymap.c | 24 1 file changed, 4 insertions(+), 20 deletions(-) diff --git

[PATCH bpf-next v6 14/34] bpf: memcg-based memory accounting for bpf ringbuffer

2020-11-16 Thread Roman Gushchin
Enable the memcg-based memory accounting for the memory used by the bpf ringbuffer. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/ringbuf.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/kernel/bpf/ringbuf.c b/kernel/bpf/ringbuf.c index

[PATCH bpf-next v6 01/34] mm: memcontrol: use helpers to read page's memcg data

2020-11-16 Thread Roman Gushchin
Patch series "mm: allow mapping accounted kernel pages to userspace", v6. Currently a non-slab kernel page which has been charged to a memory cgroup can't be mapped to userspace. The underlying reason is simple: PageKmemcg flag is defined as a page type (like buddy, offline, etc), so it takes a

Re: [PATCH] scsi: ufs: show lba and length for unmap commands

2020-11-16 Thread Martin K. Petersen
Hi Jaegeuk! > From: Leo Liou > > We have lba and length for unmap commands. > > Signed-off-by: Leo Liou Doesn't apply to 5.11/scsi-queue. Also needs a Signed-off-by: tag from you. Thanks! -- Martin K. Petersen Oracle Linux Engineering

[PATCH bpf-next v6 03/34] mm: introduce page memcg flags

2020-11-16 Thread Roman Gushchin
The lowest bit in page->memcg_data is used to distinguish between struct memory_cgroup pointer and a pointer to a objcgs array. All checks and modifications of this bit are open-coded. Let's formalize it using page memcg flags, defined in enum page_memcg_data_flags. Additional flags might be

[PATCH bpf-next v6 24/34] bpf: eliminate rlimit-based memory accounting for lpm_trie maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for lpm_trie maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/lpm_trie.c | 13 - 1 file changed, 13 deletions(-) diff --git a/kernel/bpf/lpm_trie.c

[PATCH bpf-next v6 15/34] bpf: memcg-based memory accounting for bpf local storage maps

2020-11-16 Thread Roman Gushchin
Account memory used by bpf local storage maps: per-socket and per-inode storages. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/bpf_local_storage.c | 7 --- net/core/bpf_sk_storage.c | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git

[PATCH bpf-next v6 34/34] bpf: samples: do not touch RLIMIT_MEMLOCK

2020-11-16 Thread Roman Gushchin
Since bpf is not using rlimit memlock for the memory accounting and control, do not change the limit in sample applications. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- samples/bpf/map_perf_test_user.c| 6 -- samples/bpf/offwaketime_user.c | 6 --

[PATCH bpf-next v6 31/34] bpf: eliminate rlimit-based memory accounting for bpf local storage maps

2020-11-16 Thread Roman Gushchin
Do not use rlimit-based memory accounting for bpf local storage maps. It has been replaced with the memcg-based memory accounting. Signed-off-by: Roman Gushchin Acked-by: Song Liu --- kernel/bpf/bpf_local_storage.c | 11 --- 1 file changed, 11 deletions(-) diff --git

RE: [PATCH 1/2] x86/kexec: Use up-to-dated screen_info copy to fill boot params

2020-11-16 Thread Dexuan Cui
> From: Kairui Song > Sent: Wednesday, October 14, 2020 2:24 AM > To: linux-kernel@vger.kernel.org > > kexec_file_load now just reuse the old boot_params.screen_info. > But if drivers have change the hardware state, boot_param.screen_info > could contain invalid info. > > For example, the video

Re: [PATCH] ath11k: use MHI provided APIs to allocate and free MHI controller

2020-11-16 Thread Manivannan Sadhasivam
+ath11k list On Mon, Nov 16, 2020 at 04:01:40PM -0800, Bhaumik Bhatt wrote: > Use MHI provided APIs to allocate and free MHI controller to > improve MHI host driver handling. This also fixes a memory leak > as the MHI controller was allocated but never freed. > > Signed-off-by: Bhaumik Bhatt

Re: [mm/gup] 47e29d32af: phoronix-test-suite.npb.FT.A.total_mop_s -45.0% regression

2020-11-16 Thread John Hubbard
On 11/16/20 6:48 PM, kernel test robot wrote: Greeting, FYI, we noticed a -45.0% regression of phoronix-test-suite.npb.FT.A.total_mop_s due to commit: That's a huge slowdown... commit: 47e29d32afba11b13efb51f03154a8cf22fb4360 ("mm/gup: page->hpage_pinned_refcount: exact pin counts

[PATCH 2/2] ARM: dts: ls1021a: update calibration table for TMU module

2020-11-16 Thread andy . tang
From: Yuantian Tang Update the calibration table to make the temperature more accurate. Signed-off-by: Yuantian Tang --- arch/arm/boot/dts/ls1021a.dtsi | 77 -- 1 file changed, 37 insertions(+), 40 deletions(-) diff --git a/arch/arm/boot/dts/ls1021a.dtsi

[PATCH 1/2] arm64: dts: freescale: update calibration table for TMU module

2020-11-16 Thread andy . tang
From: Yuantian Tang Update the calibration table to make the temperature more accurate. Three platforms have been updated: ls1012a, ls1043a and ls1046a. Signed-off-by: Yuantian Tang --- .../arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 63 ---

Re: [PATCH 2/3] dt-bindings: input: Convert sc27xx-vibra.txt to json-schema

2020-11-16 Thread Chunyan Zhang
On Mon, 16 Nov 2020 at 22:54, Rob Herring wrote: > > On Fri, 13 Nov 2020 19:34:50 +0800, Chunyan Zhang wrote: > > From: Chunyan Zhang > > > > Convert the sprd sc27xx vibrator binding to DT schema using json-schema. > > > > Signed-off-by: Chunyan Zhang > > --- > >

Re: [PATCH] scsi: core: fix -Wformat

2020-11-16 Thread Martin K. Petersen
Nick, > Clang is more aggressive about -Wformat warnings when the format flag > specifies a type smaller than the parameter. Turns out, struct > Scsi_Host's member can_queue is actually an int. Fixes: Applied to 5.11/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [RESEND PATCH 2/3] phy: mediatek: Move mtk_mipi_dsi_phy driver into drivers/phy/mediatek folder

2020-11-16 Thread Chunfeng Yun
Hi CK, On Tue, 2020-11-17 at 07:14 +0800, Chun-Kuang Hu wrote: > mtk_mipi_dsi_phy is currently placed inside mediatek drm driver, but it's > more suitable to place a phy driver into phy driver folder, so move > mtk_mipi_dsi_phy driver into phy driver folder. > > Signed-off-by: Chun-Kuang Hu You

Re: [PATCH] vfio iommu type1: Improve vfio_iommu_type1_pin_pages performance

2020-11-16 Thread xuxiaoyang (C)
On 2020/11/17 0:33, Alex Williamson wrote: > On Mon, 16 Nov 2020 21:47:33 +0800 > "xuxiaoyang (C)" wrote: > >> On 2020/11/14 0:44, Alex Williamson wrote: >>> On Tue, 10 Nov 2020 21:42:33 +0800 >>> "xuxiaoyang (C)" wrote: >>> vfio_iommu_type1_pin_pages is very inefficient because

[PATCH] irqchip/exiu: Fix the index of fwspec for IRQ type

2020-11-16 Thread Chen Baozi
From: Chen Baozi Since fwspec->param_count of ACPI node is two, the index of IRQ type in fwspec->param[] should be 1 rather than 2. Signed-off-by: Chen Baozi --- drivers/irqchip/irq-sni-exiu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-sni-exiu.c

Re: [PATCH v2] x86/dumpstack: Fix misleading instruction pointer error message

2020-11-16 Thread Andy Lutomirski
On Mon, Nov 16, 2020 at 3:37 PM Thomas Gleixner wrote: > > On Mon, Nov 16 2020 at 15:04, Andy Lutomirski wrote: > > > On Mon, Nov 16, 2020 at 2:01 PM Thomas Gleixner wrote: > >> arch/x86/kernel/dumpstack.c | 23 +++ > >> 1 file changed, 19 insertions(+), 4 deletions(-) >

[PATCH] irqchip/exiu: Fix the index of fwspec for IRQ type

2020-11-16 Thread Chen Baozi
From: Chen Baozi Since fwspec->param_count of ACPI node is two, the index of IRQ type in fwspec->param[] should be 1 rather than 2. Signed-off-by: Chen Baozi --- drivers/irqchip/irq-sni-exiu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-sni-exiu.c

Re: 答复: [PATCH v2] bus: mhi: core: Add support MHI EE FP for download firmware

2020-11-16 Thread Bhaumik Bhatt
On 2020-11-12 06:48 PM, Carl Yin wrote: Hi bbhatt: On November 04, 2020 1:32 AM, bbhatt wrote: On 2020-11-02 17:47, Carl Yin wrote: > Hi bbhatt: > > On November 03, 2020 12:34 AM, Bhatt wrote: >> On 2020-11-02 04:27, carl@quectel.com wrote: >> > From: "carl.yin" >> > >> > MHI wwan modems

Re: [PATCH] Fix warning for static const char * array in audio_manager_module.c

2020-11-16 Thread kernel test robot
Hi Emmanouil, Thank you for the patch! Yet something to improve: [auto build test ERROR on staging/staging-testing] [also build test ERROR on v5.10-rc4 next-20201116] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base

Re: [PATCH 1/6] ibmvfc: byte swap login_buf.resp values in attribute show functions

2020-11-16 Thread Martin K. Petersen
Tyrel, > The checkpatch script only warns at 100 char lines these days. To be > fair though I did have two lines go over that limit by a couple > characters, there are a couple commit log typos, and I had an if > keyword with no space after before the opening parenthesis. So, I'll > happily

Re: [PATCH] btrfs: remove the useless value assignment in block_rsv_release_bytes

2020-11-16 Thread kaixuxia
On 2020/11/16 23:15, David Sterba wrote: > On Sun, Nov 15, 2020 at 02:39:23PM +0800, xiakaixu1...@gmail.com wrote: >> From: Kaixu Xia >> >> The variable qgroup_to_release is overwritten by the following if/else >> statement before it is used, so this assignment is useless. Remove it. > >

[tip:timers/core] BUILD SUCCESS 66981c37b3199d293c58f84cf2366e86a06e1a3d

2020-11-16 Thread kernel test robot
allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a003-20201116 x86_64 randconfig-a005-20201116 x86_64 randconfig-a004-20201116 x86_64 randconfig-a002-20201116 x86_64

[tip:irq/core] BUILD SUCCESS 8c67d247dcad67fbdd07c8bab9818d0b8d9240bf

2020-11-16 Thread kernel test robot
allnoconfig x86_64 randconfig-a003-20201116 x86_64 randconfig-a005-20201116 x86_64 randconfig-a004-20201116 x86_64 randconfig-a002-20201116 x86_64 randconfig-a001-20201116 x86_64 randconfig-a006-20201116 i386

Re: [PATCH RFC v6 4/6] drm/sprd: add Unisoc's drm display controller driver

2020-11-16 Thread Kevin Tang
Hi Sam, Here is feedback of RFC V7 Sam Ravnborg 于2020年7月29日周三 上午5:14写道: > > Hi Kevin. > > Some feedback in the following. > I lost track of thing for the atomic modesettting stuff and I hope other > will review that. > > Sam > > On Tue, Jul 28, 2020 at 06:07:57PM +0800, Kevin Tang

Re: [PATCH] powerpc/powernv/sriov: fix unsigned int win compared to less than zero

2020-11-16 Thread Michael Ellerman
Andrew Donnellan writes: > On 10/11/20 10:19 pm, xiakaixu1...@gmail.com wrote: >> From: Kaixu Xia >> >> Fix coccicheck warning: >> >> ./arch/powerpc/platforms/powernv/pci-sriov.c:443:7-10: WARNING: Unsigned >> expression compared with zero: win < 0 >>

[PATCH] staging: fieldbus: use kobj_to_dev() to get device

2020-11-16 Thread Ding Xiang
Use kobj_to_dev() instead of container_of() Signed-off-by: Ding Xiang --- drivers/staging/fieldbus/dev_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fieldbus/dev_core.c b/drivers/staging/fieldbus/dev_core.c index 1ba0234cc60d..5aab734606ea 100644

Re: [PATCH v3 1/7] compiler-clang: add build check for clang 10.0.1

2020-11-16 Thread John Hubbard
Hi, I just ran into this and it's a real pain to figure out, because even with the very latest Fedora 33 on my test machine, which provides clang version 11.0.0: $ clang --version clang version 11.0.0 (Fedora 11.0.0-2.fc33) Target: x86_64-unknown-linux-gnu ...the bpftrace program still chokes

[PATCH net] rsi_91x: fix error return code in rsi_reset_card()

2020-11-16 Thread Zhang Changzhong
Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: 17ff2c794f39 ("rsi: reset device changes for 9116") Reported-by: Hulk Robot Signed-off-by: Zhang Changzhong --- drivers/net/wireless/rsi/rsi_91x_usb.c | 30

Re: [PATCH 2/3] Revert "lib: Revert use of fallthrough pseudo-keyword in lib/"

2020-11-16 Thread Nathan Chancellor
On Sun, Nov 15, 2020 at 08:35:31PM -0800, Nick Desaulniers wrote: > This reverts commit 6a9dc5fd6170 ("lib: Revert use of fallthrough > pseudo-keyword in lib/") > > Now that we can build arch/powerpc/boot/ free of -Wimplicit-fallthrough, > re-enable these fixes for lib/. > > Link:

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