[PATCH RFC net-next] net: phy: add constant for USXGMII bit 0

2020-07-19 Thread Michael Walle
Add the last missing constant of the USXGMII UsxgmiiChannelInfo field. Unfortunately, there is no meaningful name in the USXGMII Singleport Copper Interface specification. The specification just describe that it has to be set to 1. The corresponding SGMII macros has two different defines, ADVERTISE

Re: [PATCH] dt-bindings: hwmon: adm1272: add adm1272-adm1275-temp1-en binding

2020-07-19 Thread Guenter Roeck
On Fri, Jul 10, 2020 at 12:42:58AM +, Chu Lin wrote: > Problem: > adm1272 and adm1278 supports temperature sampling. The > current way of enabling it requires the user manually unbind the device > from the driver, flip the temperature sampling control bit and then bind > the device back t

Re: [PATCH v5 02/13] mfd: add simple regmap based I2C driver

2020-07-19 Thread Michael Walle
Am 2020-07-17 11:04, schrieb Lee Jones: On Mon, 06 Jul 2020, Michael Walle wrote: There are I2C devices which contain several different functions but doesn't require any special access functions. For these kind of drivers an I2C regmap should be enough. Create an I2C driver which creates an

Per-process memory usage increased between kernel 4.4.x and 5.6

2020-07-19 Thread Chris Packham
Hi, Not sure exactly where to direct this so I'm just hitting linux-mm and linux-kernel and hoping someone sees it. We're in the process of updating our embedded targets from Linux 4.4.x to the latest kernel (currently v5.6 but we're planning to go to v5.7 and maybe v5.8 depending on timing).

Re: [PATCH v5 02/13] mfd: add simple regmap based I2C driver

2020-07-19 Thread Michael Walle
Am 2020-07-17 11:06, schrieb Lee Jones: On Mon, 06 Jul 2020, Michael Walle wrote: There are I2C devices which contain several different functions but doesn't require any special access functions. For these kind of drivers an I2C regmap should be enough. Create an I2C driver which creates an

Re: [PATCH 10/19] perf metric: Add referenced metrics to hash data

2020-07-19 Thread Ian Rogers
On Sun, Jul 19, 2020 at 11:14 AM Jiri Olsa wrote: > > Adding referenced metrics to the parsing context so they > can be resolved during the metric processing. > > Adding expr__add_ref function to store referenced metrics > into parse context. > > Signed-off-by: Jiri Olsa Acked-by: Ian Rogers T

Re: [PATCH 12/19] perf metric: Add events for the current list

2020-07-19 Thread Ian Rogers
On Sun, Jul 19, 2020 at 11:14 AM Jiri Olsa wrote: > > There's no need to iterate the whole list of groups, > when adding new events. The currently created groups > are the ones we want to add. > > Signed-off-by: Jiri Olsa Acked-by: Ian Rogers Thanks, Ian > --- > tools/perf/util/metricgroup.c

Re: [PATCH 15/19] perf metric: Add recursion check when processing nested metrics

2020-07-19 Thread Ian Rogers
On Sun, Jul 19, 2020 at 11:14 AM Jiri Olsa wrote: > > Keeping the stack of nested metrics via 'struct expr_id' objects > and checking if we are in recursion via already processed metric. > > The stack is implemented as static array within the struct egroup > with 100 entries, which should be enoug

Re: [PATCH 17/19] perf metric: Add metric group test

2020-07-19 Thread Ian Rogers
On Sun, Jul 19, 2020 at 11:14 AM Jiri Olsa wrote: > > Adding test for metric group plus compute_metric_group > function to get metrics values within the group. > > Signed-off-by: Jiri Olsa Acked-by: Ian Rogers Thanks, Ian > --- > tools/perf/tests/parse-metric.c | 48 +

Re: [PATCH 19/19] perf metric: Rename group_list to metric_list

2020-07-19 Thread Ian Rogers
On Sun, Jul 19, 2020 at 11:14 AM Jiri Olsa wrote: > > Following the previous change that rename egroup > to metric, there's no reason to call the list > 'group_list' anymore, renaming it to metric_list. > > Signed-off-by: Jiri Olsa Acked-by: Ian Rogers Thanks, Ian > --- > tools/perf/util/met

Re: exfatprogs-1.0.3 version released

2020-07-19 Thread Sedat Dilek
[ CC Sven Hoexter (Debian maintainer of exfatprogs ] Just wanted to let you know Debian has an exfatprogs package in their official repositories. - Sedat - [1] https://packages.debian.org/sid/exfatprogs [2] http://sven.stormbind.net/blog/posts/deb_debian_and_exfat/

Re: [PATCH 0/3] Add 3 new keycodes and use them for 3 new hotkeys on new Lenovo Thinkpads

2020-07-19 Thread Henrique de Moraes Holschuh
On Fri, 17 Jul 2020, Hans de Goede wrote: > This is a simple patch-series adding support for 3 new hotkeys found > on various new Lenovo Thinkpad models. For all three patches, pending an ack for the new keycodes by the input maintainers: Acked-by: Henrique de Moraes Holschuh -- Henrique Hol

Re: BUG: soft lockup in __do_sys_clock_adjtime

2020-07-19 Thread syzbot
syzbot has bisected this issue to: commit 5a781ccbd19e4664babcbe4b4ead7aa2b9283d22 Author: Vinicius Costa Gomes Date: Sat Sep 29 00:59:43 2018 + tc: Add support for configuring the taprio scheduler bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=13cb847f10 start commi

Linux 5.8-rc6

2020-07-19 Thread Linus Torvalds
Things continue to look very normal, even if this is a big release. rc6 is pretty much par for the course, and nothing in here stands out size-wise or otherwise. The stats all look normal, with a fairly flat diffstat (so no huge hotspots, no big scary changes). Drivers (all over), architecture upd

linux-next: manual merge of the tegra tree with the arm-soc tree

2020-07-19 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the tegra tree got a conflict in: arch/arm/configs/tegra_defconfig between commit: 67c70aa86f8b ("arm/arm64: defconfig: Update configs to use the new CROS_EC options") from the arm-soc tree and commit: 3a3cb021b038 ("ARM: tegra_defconfig: Enable opti

[PATCH v5 01/18] dyndbg-docs: eschew file /full/path query in docs

2020-07-19 Thread Jim Cromie
Regarding: commit 2b6783191da7 ("dynamic_debug: add trim_prefix() to provide source-root relative paths") commit a73619a845d5 ("kbuild: use -fmacro-prefix-map to make __FILE__ a relative path") 2nd commit broke dynamic-debug's "file $fullpath" query form, but nobody noticed because 1st commit ha

[PATCH v5 02/18] dyndbg-docs: initialization is done early, not arch

2020-07-19 Thread Jim Cromie
since cf964976484 in 2012, initialization is done with early_initcall, update the Docs, which still say arch_initcall. Signed-off-by: Jim Cromie --- Documentation/admin-guide/dynamic-debug-howto.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-guide

[PATCH v5 00/18] dynamic_debug fixes, cleanups, features, export

2020-07-19 Thread Jim Cromie
this is v5, changes from previous: - moved a chunk from patch 13 to 12, per Jason - shorten logging prefix to "dyndbg", drop __func__ - now with more commit-log advocacy - shuffle EXPORT_GPL(ddebug_exec_queries) last. - v4+ series Acked-by: jba...@akamai.com v4: https://lore.kernel.org/lkml/2

[PATCH v5 04/18] dyndbg: refine debug verbosity; 1 is basic, 2 more chatty

2020-07-19 Thread Jim Cromie
The verbose/debug logging done for `cat $MNT/dynamic_debug/control` is voluminous (2 per control file entry + 2 per PAGE). Moreover, it just prints pointer and sequence, which is not useful to a dyndbg user. So just drop them. Also require verbose>=2 for several other debug printks that are a bit

[PATCH v5 03/18] dyndbg: drop obsolete comment on ddebug_proc_open

2020-07-19 Thread Jim Cromie
commit 4bad78c55002 ("lib/dynamic_debug.c: use seq_open_private() instead of seq_open()")' The commit was one of a tree-wide set which replaced open-coded boilerplate with a single tail-call. It therefore obsoleted the comment about that boilerplate, clean that up now. Signed-off-by: Jim Cromie

[PATCH v5 13/18] dyndbg: accept 'file foo.c:func1' and 'file foo.c:10-100'

2020-07-19 Thread Jim Cromie
Accept these additional query forms: echo "file $filestr +_" > control path/to/file.c:100 # as from control, column 1 path/to/file.c:1-100 # or any legal line-range path/to/file.c:func_A# as from an editor/browser path/to/file.c:drm_* # wildcards s

[PATCH v5 10/18] dyndbg: make ddebug_tables list LIFO for add/remove_module

2020-07-19 Thread Jim Cromie
loadable modules are the last in on this list, and are the only modules that could be removed. ddebug_remove_module() searches from head, but ddebug_add_module() uses list_add_tail(). Change it to list_add() for a micro-optimization. Signed-off-by: Jim Cromie --- lib/dynamic_debug.c | 2 +- 1

[PATCH v5 09/18] dyndbg: prefer declarative init in caller, to memset in callee

2020-07-19 Thread Jim Cromie
ddebug_exec_query declares an auto var, and passes it to ddebug_parse_query, which memsets it before using it. Drop that memset, instead initialize the variable in the caller; let the compiler decide how to do it. Signed-off-by: Jim Cromie --- lib/dynamic_debug.c | 3 +-- 1 file changed, 1 inse

[PATCH v5 05/18] dyndbg: rename __verbose section to __dyndbg

2020-07-19 Thread Jim Cromie
dyndbg populates its callsite info into __verbose section, change that to a more specific and descriptive name, __dyndbg. Also, per checkpatch: simplify __attribute(..) to __section(__dyndbg) declaration. and 1 spelling fix, decriptor Signed-off-by: Jim Cromie --- include/asm-generic/vmlinux

[PATCH v5 15/18] dyndbg: combine flags & mask into a struct, simplify with it

2020-07-19 Thread Jim Cromie
flags & mask are used together everywhere, and are passed around together between multiple functions; they belong together in a struct, call that struct flag_settings. Use struct flag_settings to rework 3 functions: - ddebug_exec_query - declares query and flag-settings, call

[PATCH v5 17/18] dyndbg: shorten our logging prefix, drop __func__

2020-07-19 Thread Jim Cromie
For log-message output, reduce column space consumed by current pr_fmt by dropping __func__ and shortening "dynamic_debug" to "dyndbg". This improves readability on narrow consoles, and better matches other kernel boot info messages. Signed-off-by: Jim Cromie --- lib/dynamic_debug.c | 2 +- 1 f

[PATCH v5 16/18] dyndbg: allow anchored match on format query term

2020-07-19 Thread Jim Cromie
This should work: echo module=amd* format=^[IF_TRACE]: +p >/proc/dynamic_debug/control consider drivers/gpu/drm/amd/display/include/logger_types.h: It has 11 defines like: #define DC_LOG_IF_TRACE(...) pr_debug("[IF_TRACE]:"__VA_ARGS__) These defines are used 804 times at recent count; they

[PATCH v5 06/18] dyndbg: fix overcounting of ram used by dyndbg

2020-07-19 Thread Jim Cromie
during dyndbg init, verbose logging prints its ram overhead. It counted strlens of struct _ddebug's 4 string members, in all callsite entries, which would be approximately correct if each had been mallocd. But they are pointers into shared .rodata; for example, all 10 kobject callsites have ident

[PATCH v5 18/18] dyndbg: export ddebug_exec_queries

2020-07-19 Thread Jim Cromie
Export ddebug_exec_queries() for use by modules. This will allow module authors to control all their *pr_debug*s dynamically. And since ddebug_exec_queries() is what implements "echo $query >control", it gives the same per-callsite control. Virtues of this: - simplicity. just an export. - full c

[PATCH v5 08/18] dyndbg: fix pr_err with empty string

2020-07-19 Thread Jim Cromie
this pr_err attempts to print the string after the OP, but the string has been parsed and chopped up, so looks empty. Signed-off-by: Jim Cromie --- lib/dynamic_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index 0cb5679f6c54

[PATCH v5 12/18] dyndbg: refactor parse_linerange out of ddebug_parse_query

2020-07-19 Thread Jim Cromie
Make the code-block reusable to later handle "file foo.c:101-200" etc. This is a 99% code move, with reindent, function wrap&call, +pr_debug. no functional changes. Signed-off-by: Jim Cromie --- lib/dynamic_debug.c | 63 ++--- 1 file changed, 36 insertion

[PATCH v5 14/18] dyndbg: accept query terms like file=bar and module=foo

2020-07-19 Thread Jim Cromie
Current code expects "keyword" "arg" as 2 words, space separated. Change to also accept "keyword=arg" form as well, and drop !(nwords%2) requirement. Then in rest of function, use new keyword, arg variables instead of word[i], word[i+1] Signed-off-by: Jim Cromie --- .../admin-guide/dynamic-debu

[PATCH v5 11/18] dyndbg: use gcc ?: to reduce word count

2020-07-19 Thread Jim Cromie
reduce word count via gcc ?: extension, no actual code change. Signed-off-by: Jim Cromie --- lib/dynamic_debug.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index e879af4e66e0..6d0159075308 100644 --- a/lib/dynamic_debug.c

Re: [PATCH] MAINTAINERS: mark usbvision as obsolete

2020-07-19 Thread Joe Perches
On Sun, 2020-07-19 at 14:04 -0400, bkkarthik wrote: > mark staging/media/usbvision as obsolete so > checkpatch tells people not to send patches. > > Signed-off-by: bkkarthik This needs to have a full name before the email address. > --- > MAINTAINERS | 2 +- > 1 file changed, 1 insertion(+), 1

[PATCH v5 07/18] dyndbg: fix a BUG_ON in ddebug_describe_flags

2020-07-19 Thread Jim Cromie
ddebug_describe_flags() currently fills a caller provided string buffer, after testing its size (also passed) in a BUG_ON. Fix this by replacing them with a known-big-enough string buffer wrapped in a struct, and passing that instead. Also simplify ddebug_describe_flags() flags parameter from a s

Re: [PATCH 03/10] ASoC: audio-graph: Support Codec with multiple endpoints

2020-07-19 Thread Kuninori Morimoto
Hi Sameer > If a Codec port has multiple endpoints, only first endpoint gets parsed > and remaining are ignored. This can be fixed by removing 'dup_codec' flag > passed to graph_dai_link_of_dpcm() and thus it loops over all endpoints > of Codec. Similarly graph_count_dpcm() is updated as well. >

FOR YOUR PERUSAL

2020-07-19 Thread Alex
Hence you did not respond to my prior email with regards to you sharing same name with my late client, I have decided to email you again; but further detail will be communicated to you upon my receipt of your response.

Re: [PATCH] copy_xstate_to_kernel: Fix typo which caused GDB regression

2020-07-19 Thread Dave Airlie
Just adding Linus, as Al is oft distracted. Dave. > > This commit fixes a regression encountered while running the > gdb.base/corefile.exp test in GDB's test suite. > > In my testing, the typo prevented the sw_reserved field of struct > fxregs_state from being output to the kernel XSAVES area. Th

Re: [locking/qspinlock] 45877ea393: BUG:spinlock_already_unlocked_on_CPU

2020-07-19 Thread Waiman Long
On 7/17/20 3:39 AM, kernel test robot wrote: Greeting, FYI, we noticed the following commit (built with gcc-9): commit: 45877ea3934b977dd4fd9fa8b4b7e9a2a8925d38 ("[PATCH v2 4/5] locking/qspinlock: Make qspinhlock store lock holder cpu number") url: https://github.com/0day-ci/linux/commits/Wai

Re: [PATCH v3 2/3] powerpc/powernv/idle: Rename pnv_first_spr_loss_level variable

2020-07-19 Thread Nicholas Piggin
Excerpts from Pratik Rajesh Sampat's message of July 18, 2020 4:53 am: > Replace the variable name from using "pnv_first_spr_loss_level" to > "pnv_first_fullstate_loss_level". > > As pnv_first_spr_loss_level is supposed to be the earliest state that > has OPAL_PM_LOSE_FULL_CONTEXT set, however as

Re: [PATCH v3 1/3] powerpc/powernv/idle: Replace CPU features checks with PVR checks

2020-07-19 Thread Nicholas Piggin
Excerpts from Pratik Rajesh Sampat's message of July 18, 2020 4:53 am: > As the idle framework's architecture is incomplete, hence instead of > checking for just the processor type advertised in the device tree CPU > features; check for the Processor Version Register (PVR) so that finer > granulari

Re: [PATCH v3 3/3] powerpc/powernv/idle: Exclude mfspr on HID1,4,5 on P9 and above

2020-07-19 Thread Nicholas Piggin
Excerpts from Pratik Rajesh Sampat's message of July 18, 2020 4:53 am: > POWER9 onwards the support for the registers HID1, HID4, HID5 has been > receded. > Although mfspr on the above registers worked in Power9, In Power10 > simulator is unrecognized. Moving their assignment under the > check for

Re: [PATCH] m68k: Replace HTTP links with HTTPS ones

2020-07-19 Thread Finn Thain
On Sun, 19 Jul 2020, Alexander A. Klimov wrote: > Just tell me either of these: > > * You'll apply these changes of mine as-is > * You won't apply these changes of mine at all > * I shall undo particular changes (which ones?) and/or change the commit > message (how?) before you apply the others

Re: [PATCH 09/10] arm64: tegra: Audio graph header for Tegra210

2020-07-19 Thread Kuninori Morimoto
Hi Sameer > +&tegra_admaif { > + admaif_port: port { > + admaif0: endpoint@0 { > + remote-endpoint = <&xbar_admaif0>; > + }; > + admaif1: endpoint@1 { > + remote-endpoint = <&xbar_admaif1>; > + }; (snip)

[PATCH] f2fs: segment.h: delete a duplicated word

2020-07-19 Thread Randy Dunlap
Drop the repeated word "the" in a comment. Signed-off-by: Randy Dunlap Cc: Jaegeuk Kim Cc: Chao Yu Cc: linux-f2fs-de...@lists.sourceforge.net --- fs/f2fs/segment.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200717.orig/fs/f2fs/segment.h +++ linux-next-20200717/f

[PATCH] cifs: delete duplicated words in header files

2020-07-19 Thread Randy Dunlap
Drop repeated words in multiple comments. (be, use, the, See) Signed-off-by: Randy Dunlap Cc: Steve French Cc: linux-c...@vger.kernel.org Cc: samba-techni...@lists.samba.org --- fs/cifs/cifsacl.h |4 ++-- fs/cifs/cifsglob.h |2 +- fs/cifs/smb2pdu.h |2 +- 3 files changed, 4 insert

[PATCH] ceph: super.h: delete a duplicated word

2020-07-19 Thread Randy Dunlap
Drop the repeated word "the" in a comment. Signed-off-by: Randy Dunlap Cc: Jeff Layton Cc: Ilya Dryomov Cc: ceph-de...@vger.kernel.org --- fs/ceph/super.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200717.orig/fs/ceph/super.h +++ linux-next-20200717/fs/ceph/supe

[PATCH] ext2: ext2.h: fix duplicated word + typos

2020-07-19 Thread Randy Dunlap
Change the repeated word "the" in "it the the" to "it is the". Fix typo "recentl" to "recently". Fix verb "give" to "gives". Signed-off-by: Randy Dunlap Cc: Jan Kara Cc: linux-e...@vger.kernel.org --- fs/ext2/ext2.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- linux-next-20

[PATCH] jfs: delete duplicated words in header files

2020-07-19 Thread Randy Dunlap
Drop the repeated words "allocation" and "if" in comments. Signed-off-by: Randy Dunlap Cc: Dave Kleikamp Cc: jfs-discuss...@lists.sourceforge.net --- fs/jfs/jfs_extent.h |2 +- fs/jfs/jfs_logmgr.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- linux-next-20200717.orig/fs/j

[PATCH] reiserfs: reiserfs.h: delete a duplicated word

2020-07-19 Thread Randy Dunlap
Drop the repeated word "than" in a comment. Signed-off-by: Randy Dunlap Cc: Jan Kara Cc: Jeff Mahoney Cc: reiserfs-de...@vger.kernel.org --- fs/reiserfs/reiserfs.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200717.orig/fs/reiserfs/reiserfs.h +++ linux-next-20200

[PATCH] nfsd: netns.h: delete a duplicated word

2020-07-19 Thread Randy Dunlap
Drop the repeated word "the" in a comment. Signed-off-by: Randy Dunlap Cc: "J. Bruce Fields" Cc: Chuck Lever Cc: linux-...@vger.kernel.org --- fs/nfsd/netns.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200717.orig/fs/nfsd/netns.h +++ linux-next-20200717/fs/nfsd/

[PATCH] ntfs: layout.h: delete duplicated words

2020-07-19 Thread Randy Dunlap
Drop the repeated words "the" and "in" in comments. Signed-off-by: Randy Dunlap Cc: Anton Altaparmakov Cc: linux-ntfs-...@lists.sourceforge.net --- fs/ntfs/layout.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- linux-next-20200717.orig/fs/ntfs/layout.h +++ linux-next-2020071

[PATCH] ubifs: misc.h: delete a duplicated word

2020-07-19 Thread Randy Dunlap
Drop the repeated word "as" in a comment. Signed-off-by: Randy Dunlap Cc: Richard Weinberger Cc: linux-...@lists.infradead.org --- fs/ubifs/misc.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200717.orig/fs/ubifs/misc.h +++ linux-next-20200717/fs/ubifs/misc.h @@ -1

[PATCH] ocfs2: suballoc.h: delete a duplicated word

2020-07-19 Thread Randy Dunlap
Drop the repeated word "is" in a comment. Signed-off-by: Randy Dunlap Cc: Mark Fasheh Cc: Joel Becker Cc: Joseph Qi Cc: ocfs2-de...@oss.oracle.com --- fs/ocfs2/suballoc.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200717.orig/fs/ocfs2/suballoc.h +++ linux-next-

[PATCH] udf: osta_udf.h: delete a duplicated word

2020-07-19 Thread Randy Dunlap
Drop the repeated word "struct" in a comment. Signed-off-by: Randy Dunlap Cc: Jan Kara --- fs/udf/osta_udf.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200717.orig/fs/udf/osta_udf.h +++ linux-next-20200717/fs/udf/osta_udf.h @@ -226,7 +226,7 @@ struct sparingTable

[PATCH] xfs: xfs_btree_staging.h: delete duplicated words

2020-07-19 Thread Randy Dunlap
Drop the repeated words "with" and "be" in comments. Signed-off-by: Randy Dunlap Cc: "Darrick J. Wong" Cc: linux-...@vger.kernel.org --- fs/xfs/libxfs/xfs_btree_staging.h |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- linux-next-20200717.orig/fs/xfs/libxfs/xfs_btree_staging

Re: KMSAN: uninit-value in __skb_checksum_complete (4)

2020-07-19 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:14525656 compiler.h: reinstate missing KMSAN_INIT git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=16a7c82710 kernel config: https://syzkaller.appspot.

RE: linux-next: not-present page at swap_vma_readahead()

2020-07-19 Thread Huang, Ying
Hi, Sorry for late reply. I found a problem in the swap readahead code. Can you help to check whether it can fix this? Best Regards, Huang, Ying From: Qian Cai [c...@lca.pw] Sent: Tuesday, June 16, 2020 9:13 AM To: Huang, Ying Cc: Linux-MM; LKML; Mincha

io_uring kthread_use_mm / mmget_not_zero possible abuse

2020-07-19 Thread Nicholas Piggin
When I last looked at this (predating io_uring), as far as I remember it was not permitted to actually switch to (use_mm) an mm user context that was pinned with mmget_not_zero. Those pins were only allowed to look at page tables, vmas, etc., but not actually run the CPU in that mm context. spa

[PATCH v7 4/4] dt-bindings: mmc: mediatek: Add document for mt6779

2020-07-19 Thread Chun-Hung Wu
Add compatible node for mt6779 mmc. Signed-off-by: Chun-Hung Wu --- Documentation/devicetree/bindings/mmc/mtk-sd.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.txt b/Documentation/devicetree/bindings/mmc/mtk-sd.txt index 8a532f4..0c9cf6a 100

[PATCH v7 1/4] mmc: mediatek: add MT6779 MMC driver support

2020-07-19 Thread Chun-Hung Wu
Add new code to support MT6779 mmc driver. Signed-off-by: Chun-Hung Wu --- drivers/mmc/host/mtk-sd.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c index 39e7fc5..ed37a3c 100644 --- a/drivers/mmc/host/mtk-sd.c +++ b/driver

[PATCH v7 0/4] mmc: mediatek: add mmc cqhci support

2020-07-19 Thread Chun-Hung Wu
This series provides MediaTek cqhci implementations as below: - Refine msdc timeout api to reduce redundant code - MediaTek command queue support - dt-bindings for mt6779 v1 -> v2: - Add more patch details in commit message - Separate msdc timeout api refine to individual patch v2 -> v3

[PATCH v7 2/4] mmc: mediatek: refine msdc timeout api

2020-07-19 Thread Chun-Hung Wu
Extract msdc timeout api common part to have better code architecture and avoid redundant code. Signed-off-by: Chun-Hung Wu --- drivers/mmc/host/mtk-sd.c | 32 ++-- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc

[PATCH v7 3/4] mmc: mediatek: command queue support

2020-07-19 Thread Chun-Hung Wu
Support command queue for mt6779 platform. a. Add msdc_set_busy_timeout() to calculate emmc write timeout. b. Connect mtk msdc driver to cqhci driver through host->cq_host->ops = &msdc_cmdq_ops; c. msdc_cmdq_irq() will link up with cqchi_irq(). Besides, it provides more irq error messages lik

Re: Oops build error...Linux 5.8-rc6

2020-07-19 Thread Bhaskar Chowdhury
On 16:03 Sun 19 Jul 2020, Linus Torvalds wrote: Things continue to look very normal, even if this is a big release. rc6 is pretty much par for the course, and nothing in here stands out size-wise or otherwise. The stats all look normal, with a fairly flat diffstat (so no huge hotspots, no big sc

Re: [PATCH] docs: admin-guide/index.rst: Add pstore-blk.rst

2020-07-19 Thread Kees Cook
On Sat, Jul 18, 2020 at 01:51:03PM -0300, Daniel W. S. Almeida wrote: > From: Daniel W. S. Almeida > > Fix the following warning: > > Documentation/admin-guide/pstore-blk.rst: > WARNING: document isn't included in any toctree > > By adding 'pstore-blk.rst' to the index > > Signed-off-by: Danie

[PATCH v2] perf evsel: Don't set sample_regs_intr/sample_regs_user for dummy event

2020-07-19 Thread Jin Yao
Since commit 0a892c1c9472 ("perf record: Add dummy event during system wide synthesis"), a dummy event is added to capture mmaps. But if we run perf-record as, # perf record -e cycles:p -IXMM0 -a -- sleep 1 Error: dummy:HG: PMU Hardware doesn't support sampling/overflow-interrupts. Try 'perf

Re: [PATCH v2] f2fs: add F2FS_IOC_SEC_TRIM_FILE ioctl

2020-07-19 Thread Chao Yu
On 2020/7/18 14:15, Daeho Jeong wrote: > From: Daeho Jeong > > Added a new ioctl to send discard commands or/and zero out > to selected data area of a regular file for security reason. > > The way of handling range.len of F2FS_IOC_SEC_TRIM_FILE: > 1. Added -1 value support for range.len to secur

Re: [PATCH] docs: process/index.rst: Fix reference to nonexistent document

2020-07-19 Thread Kees Cook
On Sat, Jul 18, 2020 at 01:50:59PM -0300, Daniel W. S. Almeida wrote: > From: Daniel W. S. Almeida > > Fix the following warning: > > WARNING: toctree contains reference to nonexistent document > 'process/unaligned-memory-access' > > The path to the document was wrong. > > Signed-off-by: Danie

Re: [PATCH -next] hsr: Convert to DEFINE_SHOW_ATTRIBUTE

2020-07-19 Thread miaoqinglang
在 2020/7/18 3:46, David Miller 写道: From: Qinglang Miao Date: Thu, 16 Jul 2020 16:47:28 +0800 Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: Qinglang Miao This does not apply to the net-next tree. . Hi David, I'm sorry but​ this patch is based on linux-next rathe

Re: [PATCH net-next v7 0/4] net: enetc: remove bootloader dependency

2020-07-19 Thread David Miller
From: Michael Walle Date: Mon, 20 Jul 2020 00:03:32 +0200 > These patches were picked from the following series: > https://lore.kernel.org/netdev/1567779344-30965-1-git-send-email-claudiu.man...@nxp.com/ > They have never been resent. I've picked them up, addressed Andrews > comments, fixed some

Re: [PATCH net-next v1] net: phy: at803x: add mdix configuration support for AR9331 and AR8035

2020-07-19 Thread David Miller
From: Oleksij Rempel Date: Sun, 19 Jul 2020 10:05:30 +0200 > This patch add MDIX configuration ability for AR9331 and AR8035. Theoretically > it should work on other Atheros PHYs, but I was able to test only this > two. > > Since I have no certified reference HW able to detect or configure MDIX,

Re: [PATCH] copy_xstate_to_kernel: Fix typo which caused GDB regression

2020-07-19 Thread Al Viro
On Mon, Jul 20, 2020 at 09:40:14AM +1000, Dave Airlie wrote: > Just adding Linus, as Al is oft distracted. Already in vfs.git#fixes, actually: commit 8d95867c8610c515ffab2913b2cb19b2c7f7f6c1 Author: Kevin Buettner Date: Sat Jul 18 00:20:03 2020 -0700 copy_xstate_to_kernel: Fix typo which c

Re: [f2fs-dev] [PATCH] f2fs: segment.h: delete a duplicated word

2020-07-19 Thread Chao Yu
On 2020/7/20 8:13, Randy Dunlap wrote: > Drop the repeated word "the" in a comment. > > Signed-off-by: Randy Dunlap > Cc: Jaegeuk Kim > Cc: Chao Yu > Cc: linux-f2fs-de...@lists.sourceforge.net Reviewed-by: Chao Yu Thanks,

Re: [PATCH] net: atm: lec_arpc.h: delete duplicated word

2020-07-19 Thread David Miller
From: Randy Dunlap Date: Sun, 19 Jul 2020 11:08:01 -0700 > Delete the doubled word "the" in a comment. > > Signed-off-by: Randy Dunlap Applied to net-next.

Re: [PATCH] net: rds: rdma_transport.h: delete duplicated word

2020-07-19 Thread David Miller
From: Randy Dunlap Date: Sun, 19 Jul 2020 11:08:24 -0700 > Delete the doubled word "be" in a comment. > > Signed-off-by: Randy Dunlap Applied.

Re: [PATCH v2] powerpc/powernv/pci: use ifdef to avoid dead code

2020-07-19 Thread Oliver O'Halloran
On Sun, Jul 19, 2020 at 5:13 AM Greg Thelen wrote: > > Oliver O'Halloran wrote: > > > On Mon, Jun 15, 2020 at 9:33 AM Greg Thelen wrote: > >> > >> Commit dc3d8f85bb57 ("powerpc/powernv/pci: Re-work bus PE > >> configuration") removed a couple pnv_ioda_setup_bus_dma() calls. The > >> only remain

Re: [PATCH] ocfs2: fix remounting needed after setfacl command

2020-07-19 Thread Joseph Qi
On 2020/7/17 10:37, Gang He wrote: > When use setfacl command to change a file's acl, the user cannot > get the latest acl information from the file via getfacl command, > until remounting the file system. > e.g. > setfacl -m u:ivan:rw /ocfs2/ivan > getfacl /ocfs2/ivan > getfacl: Removing leadin

Re: [Ocfs2-devel] [PATCH] ocfs2: suballoc.h: delete a duplicated word

2020-07-19 Thread Joseph Qi
On 2020/7/20 08:14, Randy Dunlap wrote: > Drop the repeated word "is" in a comment. > > Signed-off-by: Randy Dunlap > Cc: Mark Fasheh > Cc: Joel Becker > Cc: Joseph Qi > Cc: ocfs2-de...@oss.oracle.com Acked-by: Joseph Qi > --- > fs/ocfs2/suballoc.h |2 +- > 1 file changed, 1 insertio

Re: sockopt cleanups

2020-07-19 Thread David Miller
From: Christoph Hellwig Date: Fri, 17 Jul 2020 08:23:09 +0200 > this series cleans up various lose ends in the sockopt code, most > importantly removing the compat_{get,set}sockopt infrastructure in favor > of just using in_compat_syscall() in the few places that care. Series applied to net-next

Re: [PATCH] RFC: ACPI / OSI: remove workarounds for hybrid graphics laptops

2020-07-19 Thread Alex Hung
On 2020-07-19 1:50 p.m., Karol Herbst wrote: > On Fri, Jul 17, 2020 at 9:52 PM Alex Hung wrote: >> >> On 2020-07-17 1:05 p.m., Karol Herbst wrote: >>> It's hard to figure out what systems are actually affected and right now I >>> don't see a good way of removing those... >>> >>> But I'd like to se

[PATCH] sparc32: fix a user-triggerable oops in clear_user()

2020-07-19 Thread Al Viro
Back in 2.1.29 the clear_user() guts (__bzero()) had been merged with memset(). Unfortunately, while all exception handlers had been copied, one of the exception table entries got lost. As the result, clear_user() starting at 128*n bytes before the end of page and spanning between 8 and 127 bytes

Re: [PATCH] xfs: xfs_btree_staging.h: delete duplicated words

2020-07-19 Thread Darrick J. Wong
On Sun, Jul 19, 2020 at 05:15:09PM -0700, Randy Dunlap wrote: > Drop the repeated words "with" and "be" in comments. > > Signed-off-by: Randy Dunlap > Cc: "Darrick J. Wong" > Cc: linux-...@vger.kernel.org Ha. Ha. Reviewed-by: Darrick J. Wong Reviewed-by: Darrick J. Wong --D --D > --- > fs

Re: [PATCH v4 09/10] kallsyms: Hide layout

2020-07-19 Thread Kees Cook
On Fri, Jul 17, 2020 at 10:00:06AM -0700, Kristen Carlson Accardi wrote: > This patch makes /proc/kallsyms display in a random order, rather > than sorted by address in order to hide the newly randomized address > layout. Ah! Much nicer. Is there any reason not to just do this unconditionally, reg

Re: [PATCH] tools/memory-model: document the "one-time init" pattern

2020-07-19 Thread Dave Chinner
On Sat, Jul 18, 2020 at 10:08:11AM -0400, Alan Stern wrote: > > This is one of the reasons that the LKMM documetnation is so damn > > difficult to read and understand: just understanding the vocabulary > > it uses requires a huge learning curve, and it's not defined > > anywhere. Understanding the

Re: [PATCH] userfaultfd: avoid the duplicated release for userfaultfd_ctx

2020-07-19 Thread Xu, Yanfei
On 7/20/20 12:57 AM, Al Viro wrote: On Sun, Jul 19, 2020 at 09:58:34PM +0800, Xu, Yanfei wrote: ping Al Viro Could you please help to review this patch? Thanks a lot. That's -next, right? As for the patch itself... Frankly, Yes, it's -next. Daniel's patch looks seriously wrong. Get it

[PATCH] net: ag71xx: add missed clk_disable_unprepare in error path of probe

2020-07-19 Thread Huang Guobin
The ag71xx_mdio_probe() forgets to call clk_disable_unprepare() when of_reset_control_get_exclusive() failed. Add the missed call to fix it. Fixes: d51b6ce441d3 ("net: ethernet: add ag71xx driver") Reported-by: Hulk Robot Signed-off-by: Huang Guobin --- drivers/net/ethernet/atheros/ag71xx.c | 3

Re: [PATCH v4 06/10] powerpc/watchpoint: Set CPU_FTR_DAWR1 based on pa-features bit

2020-07-19 Thread Jordan Niethe
On Fri, Jul 17, 2020 at 2:10 PM Ravi Bangoria wrote: > > As per the PAPR, bit 0 of byte 64 in pa-features property indicates > availability of 2nd DAWR registers. i.e. If this bit is set, 2nd > DAWR is present, otherwise not. Host generally uses "cpu-features", > which masks "pa-features". But "cp

[RFC PATCH 0/2] vfs:9p: fix open-unlink-fstat bug

2020-07-19 Thread Jianyong Wu
how to reproduce: in 9p guest: struct stat *statbuf; int fd; fd = open("tmp", O_RDWR); unlink("tmp"); fstat(fd, statbuf); fstat will fail as "tmp" in 9p server side has been removed. 9p server can't retrieve the file context as the guest has not passed it down. so we should pass the file info do

Re: Oops build error...Linux 5.8-rc6

2020-07-19 Thread Linus Torvalds
On Sun, Jul 19, 2020 at 5:47 PM Bhaskar Chowdhury wrote: > >CLEAN arch/x86/entry/vdso >make[3]: *** arch/x86/platform/sfi/Makefile: Input/output error. >Stop. That _sounds_ like filesystem corruption on your end. EIO isn't exactly the usual "it won't compile" problem.

Re: [PATCH v2 13/16] scripts/kallsyms: move ignored symbol types to is_ignored_symbol()

2020-07-19 Thread Finn Thain
On Sun, 24 Nov 2019, Masahiro Yamada wrote: > Collect the ignored patterns to is_ignored_symbol(). > > Signed-off-by: Masahiro Yamada This commit (887df76de67f5) caused a regression in my powerpc builds as it causes symbol names to disappear from backtraces: [ cut here ]--

[RFC PATCH 1/2] vfs: pass file down when getattr to avoid losing info.

2020-07-19 Thread Jianyong Wu
Currently, getting attribute for a file represented by fd is always by inode or path which may lead to bug for a certain network file system. Adding file struct into struct kstat and assigning file for it in vfs_statx_fd can avoid this issue. This change refers to struct istat. Signed-off-by: Jian

[RFC PATCH 2/2] 9p: retrieve fid from file if it exists when getattr.

2020-07-19 Thread Jianyong Wu
fid should be retrieved from file when it is not NULL in getattr. it denotes that getattr is called by fdstat from userspace when file is exist, which means we should get info from file context not dentry to avoid the failure when the dentry has gone. Signed-off-by: Jianyong Wu --- fs/9p/vfs_ino

Re: [PATCH -next] net: ena: use NULL instead of zero

2020-07-19 Thread wanghai (M)
在 2020/7/18 23:06, Joe Perches 写道: On Sat, 2020-07-18 at 19:56 +0800, Wang Hai wrote: Fix sparse build warning: drivers/net/ethernet/amazon/ena/ena_netdev.c:2193:34: warning: Using plain integer as NULL pointer Better to remove the initialization altogether and move the declaration into th

Re: [PATCH v4] ARM: dts: imx6qdl-gw: add Gateworks System Controller support

2020-07-19 Thread Shawn Guo
On Thu, Jul 16, 2020 at 08:35:55AM -0700, Tim Harvey wrote: > Add Gateworks System Controller support to Gateworks Ventana boards: > - add dt bindings for GSC mfd driver and hwmon driver for ADC's and > fan controllers. > - add dt bindings for gpio-keys driver for push-button and interrupt events

Re: [PATCH 2/4] printk: store instead of processing cont parts

2020-07-19 Thread Sergey Senozhatsky
On (20/07/19 11:27), Linus Torvalds wrote: > On Sun, Jul 19, 2020 at 7:35 AM Sergey Senozhatsky > wrote: > > > > Can we merge lines that we don't want to merge? > > > >pr_cont() -> IRQ -> pr_cont() -> NMI -> pr_cont() > > That pr_cont in either IRQ or NMI context would be a bug. > > You ca

[tip:x86/urgent] BUILD SUCCESS da05b143a308bd6a7a444401f9732678ae63fc70

2020-07-19 Thread kernel test robot
werpc allnoconfig x86_64 randconfig-a005-20200719 x86_64 randconfig-a002-20200719 x86_64 randconfig-a006-20200719 x86_64 randconfig-a001-20200719 x86_64 randconfig-a003-20200719 x86_64 randconfig-a004-20200719

Re: [RFC PATCH 0/2] vfs:9p: fix open-unlink-fstat bug

2020-07-19 Thread Al Viro
On Mon, Jul 20, 2020 at 09:46:20AM +0800, Jianyong Wu wrote: > how to reproduce: > in 9p guest: > > struct stat *statbuf; > int fd; > > fd = open("tmp", O_RDWR); > unlink("tmp"); > fstat(fd, statbuf); > > fstat will fail as "tmp" in 9p server side has been removed. 9p server > can't retrieve the

Re: [PATCH v4 07/10] powerpc/watchpoint: Rename current H_SET_MODE DAWR macro

2020-07-19 Thread Jordan Niethe
On Fri, Jul 17, 2020 at 2:11 PM Ravi Bangoria wrote: > > Current H_SET_MODE hcall macro name for setting/resetting DAWR0 is > H_SET_MODE_RESOURCE_SET_DAWR. Add suffix 0 to macro name as well. > > Signed-off-by: Ravi Bangoria Reviewed-by: Jordan Niethe > --- > arch/powerpc/include/asm/hvcall.h

Re: [PATCH V6 6/6] clk: imx6sl: Fix build warning reported by kernel test robot

2020-07-19 Thread Shawn Guo
On Wed, Jul 15, 2020 at 06:00:17PM -0700, Stephen Boyd wrote: > Quoting Anson Huang (2020-07-06 22:09:39) > > Use readl_relaxed() instead of __raw_readl(), and use BIT(x) > > instead of (1 << X) to fix below build warning reported by kernel > > test robot: > > > > drivers/clk/imx/clk-imx6sl.c:149:

<    1   2   3   4   5   6   >