[RFC v2 02/12] kunit: test: add kunit_stream a std::stream like logger

2020-10-12 Thread Daniel Latypov
From: Brendan Higgins A lot of the expectation and assertion infrastructure prints out fairly complicated test failure messages, so add a C++ style log library for for logging test results called `struct kunit_stream`. kunit_stream allows us to construct a message before we know whether we want

[RFC v2 04/12] checkpatch: add support for struct MOCK(foo) syntax

2020-10-12 Thread Daniel Latypov
From: Brendan Higgins KUnit will soon add macros for generating mocks from types, the generated mock types are named like `struct MOCK(foo)` (where the base type is struct foo). Add `struct MOCK(foo)` as a NonptrType so that it is recognized correctly in declarations. Signed-off-by: Brendan

[RFC v2 10/12] kunit: mock: add class mocking support

2020-10-12 Thread Daniel Latypov
From: Brendan Higgins Introduce basic class mocking, the ability to automatically generate a Linux C-style class implementation whose behavior is controlled by test cases, which can also set expectations on when and how mocks are called. Co-developed-by: Daniel Latypov Signed-off-by: Daniel

[RFC v2 01/12] Revert "kunit: move string-stream.h to lib/kunit"

2020-10-12 Thread Daniel Latypov
This reverts commit 109fb06fdc6f6788df7dfbc235f7636a38e28fd4. string-stream will be used by kunit mocking code to print messages about mock expectations. It makes the code signifcantly simpler if string-stream objects can be part of structs declared in mocking headers. Signed-off-by: Daniel

[RFC v2 00/12] kunit: introduce class mocking support.

2020-10-12 Thread Daniel Latypov
# Background KUnit currently lacks any first-class support for mocking. For an overview and discussion on the pros and cons, see https://martinfowler.com/articles/mocksArentStubs.html This patch set introduces the basic machinery needed for mocking: setting and validating expectations, setting

Re: [PATCH 00/13] Clean up legacy clock tick users

2020-10-12 Thread Linus Walleij
On Thu, Oct 8, 2020 at 5:47 PM Arnd Bergmann wrote: > When I created the patch removing CONFIG_ARCH_GETTIMEOFFSET, > I also had a look at CONFIG_GENERIC_CLOCKEVENTS, which is > selected by most, but not all, platforms today, each of the > ones that lack it doing the timer tick slightly

[GIT PULL] seccomp updates for v5.10-rc1

2020-10-12 Thread Kees Cook
Hi Linus, Please pull these seccomp updates for v5.10-rc1. The bulk of the changes are with the seccomp selftests to accommodate some powerpc-specific behavioral characteristics. Additional cleanups, fixes, and improvements are also included, noted in the tag description. Thanks! -Kees The

Re: [PATCH 5/5] x86/kvm: Add KVM_FEATURE_MSI_EXT_DEST_ID

2020-10-12 Thread Thomas Gleixner
On Mon, Oct 12 2020 at 21:20, David Woodhouse wrote: > On Mon, 2020-10-12 at 20:38 +0200, Thomas Gleixner wrote: >> Nasty, but way better than what we have now. > > Want me to send that out in email or is the git tree enough for now? > > I've cleaned it up a little and fixed a bug in the I/OAPIC

Re: [PATCH v2 6/7] tracing: Handle synthetic event array field type checking correctly

2020-10-12 Thread Steven Rostedt
On Mon, 12 Oct 2020 15:18:08 -0500 Tom Zanussi wrote: > @@ -630,8 +630,11 @@ static struct synth_field *parse_synth_field(int argc, > const char **argv, > if (field_type[0] == ';') > field_type++; > len = strlen(field_type) + 1; > - if (array) > + if (array) {

Re: [External] Re: [PATCH] mm: proc: add Sock to /proc/meminfo

2020-10-12 Thread Cong Wang
On Mon, Oct 12, 2020 at 2:53 AM Muchun Song wrote: > We are not complaining about TCP using too much memory, but how do > we know that TCP uses a lot of memory. When I firstly face this problem, > I do not know who uses the 25GB memory and it is not shown in the > /proc/meminfo. > If we can know

[PATCH] ath9k: revert "ath9k: hif_usb: fix race condition between usb_get_urb() and usb_kill_anchored_urbs()"

2020-10-12 Thread Brooke Basile
A bug in USB/IP previously caused all syzkaller USB fuzzing instances to return false positives when testing crash reproducers. This patch reverts changes made in commit 03fb92a432ea which, due to this bug, returned false positives when tested and introduced new regressions. Fixes: 03fb92a432ea

Re: [GIT PULL] x86/mm changes for v5.10

2020-10-12 Thread Linus Torvalds
On Mon, Oct 12, 2020 at 10:24 AM Ingo Molnar wrote: > > Do not sync vmalloc/ioremap mappings on x86-64 kernels. > > Hopefully now without the bugs! Let's hope so. If this turns out to work this time, can we do a similar preallocation of the page directories on 32-bit? Because I think now x86-32

Re: [PATCH v2 4/7] tracing: Add synthetic event error logging

2020-10-12 Thread Steven Rostedt
On Mon, 12 Oct 2020 15:18:06 -0500 Tom Zanussi wrote: > +static int cmdstr_append(char *buf, const char *str, int *remaining) > +{ > + int len = strlen(str); > + > + if (len + 1 >= *remaining) { > + synth_err(SYNTH_ERR_CMD_TOO_LONG, 0); > + return -EINVAL; > +

Re: [PATCH v2 2/2] [RFC] CPUFreq: Add support for cpu-perf-dependencies

2020-10-12 Thread Ionela Voinescu
Hey Lukasz, I think after all this discussion (in our own way of describing things) we agree on how the current cpufreq based FIE implementation is affected in systems that use hardware coordination. What we don't agree on is the location where that implementation (that uses the new mask and

Re: [PATCH] ptp: ptp_clockmatrix: initialize variables

2020-10-12 Thread Richard Cochran
On Sun, Oct 11, 2020 at 01:09:55PM -0700, t...@redhat.com wrote: > From: Tom Rix > > Clang static analysis reports this representative problem > > ptp_clockmatrix.c:1852:2: warning: 5th function call argument > is an uninitialized value > snprintf(idtcm->version,

Re: [GIT PULL] RCU changes for v5.10

2020-10-12 Thread Linus Torvalds
On Mon, Oct 12, 2020 at 2:44 PM Paul E. McKenney wrote: > > So that RCU can tell, even in CONFIG_PREEMPT_NONE=y kernels, whether it > is safe to invoke the memory allocator. So in what situation is RCU called from random contexts that it can't even tell? > But either way, please let me know how

Re: [GIT PULL] x86/platform updates for v5.10

2020-10-12 Thread Mike Travis
On 10/12/2020 2:56 PM, Borislav Petkov wrote: On Mon, Oct 12, 2020 at 02:46:10PM -0700, Linus Torvalds wrote: At least "git grep" only shows two assignments to it. Of course, that would miss any cases that play games with preprocessor token pasting etc, so it's not entirely meaningful, but

Re: [PATCH v2 4/7] tracing: Add synthetic event error logging

2020-10-12 Thread Tom Zanussi
Hi Steve, On Mon, 2020-10-12 at 17:49 -0400, Steven Rostedt wrote: > On Mon, 12 Oct 2020 17:42:40 -0400 > Steven Rostedt wrote: > > > On Mon, 12 Oct 2020 15:18:06 -0500 > > Tom Zanussi wrote: > > > > > +static char last_cmd[MAX_FILTER_STR_VAL]; > > > + > > > +static int errpos(const char

Re: [GIT PULL] x86/platform updates for v5.10

2020-10-12 Thread Mike Travis
On 10/12/2020 2:42 PM, Mike Travis wrote: On 10/12/2020 2:27 PM, Borislav Petkov wrote: On Mon, Oct 12, 2020 at 02:15:55PM -0700, Mike Travis wrote: Of course, it also looks like that 'uvh_nmi_mmrx_mask' thing is a write-only variable so it doesn't matter, but can we _please_ get this

Re: [GIT PULL] x86/platform updates for v5.10

2020-10-12 Thread Borislav Petkov
On Mon, Oct 12, 2020 at 02:46:10PM -0700, Linus Torvalds wrote: > At least "git grep" only shows two assignments to it. > > Of course, that would miss any cases that play games with preprocessor > token pasting etc, so it's not entirely meaningful, but it's certainly > a hint.. >From a quick

Re: Regression: epoll edge-triggered (EPOLLET) for pipes/FIFOs

2020-10-12 Thread Michael Kerrisk (man-pages)
On 10/12/20 10:52 PM, Linus Torvalds wrote: > On Mon, Oct 12, 2020 at 1:30 PM Michael Kerrisk (man-pages) > wrote: >> >> [CC += Davide] > > I'm not sure how active Davide is any more.. Yep, I know. But just in case. >> I don't think this is correct. The epoll(7) manual page >> sill carries the

Re: [PATCH v2 4/7] tracing: Add synthetic event error logging

2020-10-12 Thread Steven Rostedt
On Mon, 12 Oct 2020 17:42:40 -0400 Steven Rostedt wrote: > On Mon, 12 Oct 2020 15:18:06 -0500 > Tom Zanussi wrote: > > > +static char last_cmd[MAX_FILTER_STR_VAL]; > > + > > +static int errpos(const char *str) > > +{ > > + return err_pos(last_cmd, str); > > +} > > + > > +static void

Re: [PATCH v2 2/2] kbuild: use interpreters to invoke scripts

2020-10-12 Thread Ujjwal Kumar
On 13/10/20 12:24 am, Bernd Petrovitsch wrote: > Hi all! > diff --git a/arch/ia64/Makefile b/arch/ia64/Makefile index 703b1c4f6d12..86d42a2d09cb 100644 --- a/arch/ia64/Makefile +++ b/arch/ia64/Makefile @@ -27,8 +27,8 @@ cflags-y := -pipe $(EXTRA) -ffixed-r13

Re: [GIT PULL] x86/platform updates for v5.10

2020-10-12 Thread Linus Torvalds
On Mon, Oct 12, 2020 at 2:42 PM Mike Travis wrote: > > It should have been an unsigned long instead of an int as Linus > suggested. I'm not sure it's a write only variable as I think the mask > is used to check if the interrupt occurred (I'll have to look closer). At least "git grep" only shows

Re: [PATCH v4 1/2] PCI/ERR: Call pci_bus_reset() before calling ->slot_reset() callback

2020-10-12 Thread Kuppuswamy, Sathyanarayanan
On 10/12/20 2:05 PM, Raj, Ashok wrote: On Sun, Oct 11, 2020 at 10:03:40PM -0700, sathyanarayanan.nkuppusw...@gmail.com wrote: From: Kuppuswamy Sathyanarayanan Currently if report_error_detected() or report_mmio_enabled() functions requests PCI_ERS_RESULT_NEED_RESET, current

Re: [External] Re: [PATCH] mm: proc: add Sock to /proc/meminfo

2020-10-12 Thread Cong Wang
On Sun, Oct 11, 2020 at 9:22 PM Muchun Song wrote: > > On Mon, Oct 12, 2020 at 2:39 AM Cong Wang wrote: > > > > On Sat, Oct 10, 2020 at 3:39 AM Muchun Song > > wrote: > > > > > > The amount of memory allocated to sockets buffer can become significant. > > > However, we do not display the

[PATCH] NFS: Only reference user namespace from nfs4idmap struct instead of cred

2020-10-12 Thread Sargun Dhillon
The nfs4idmapper only needs access to the user namespace, and not the entire cred struct. This replaces the struct cred* member with struct user_namespace*. This is mostly hygiene, so we don't have to hold onto the cred object, which has extraneous references to things like user_struct. This also

Re: [GIT PULL] RCU changes for v5.10

2020-10-12 Thread Paul E. McKenney
On Mon, Oct 12, 2020 at 01:25:09PM -0700, Linus Torvalds wrote: > On Mon, Oct 12, 2020 at 7:14 AM Ingo Molnar wrote: > > > > Please pull the latest core/rcu git tree from: > > > > RCU changes for v5.10: > > > > - Debugging for smp_call_function() > > - RT raw/non-raw lock ordering fixes > > -

Re: Regression: epoll edge-triggered (EPOLLET) for pipes/FIFOs

2020-10-12 Thread Randy Dunlap
On 10/12/20 1:52 PM, Linus Torvalds wrote: > On Mon, Oct 12, 2020 at 1:30 PM Michael Kerrisk (man-pages) > > I'm busy merging, mind testing this odd patch out? It is _entirely_ > untested, but from the symptoms I think it's the obvious fix. > > I did the same thing for the "reader starting out

Re: [PATCH v2 4/7] tracing: Add synthetic event error logging

2020-10-12 Thread Steven Rostedt
On Mon, 12 Oct 2020 15:18:06 -0500 Tom Zanussi wrote: > +static char last_cmd[MAX_FILTER_STR_VAL]; > + > +static int errpos(const char *str) > +{ > + return err_pos(last_cmd, str); > +} > + > +static void last_cmd_set(char *str) > +{ > + if (!str) > + return; > + > +

Re: [GIT PULL] x86/platform updates for v5.10

2020-10-12 Thread Mike Travis
On 10/12/2020 2:27 PM, Borislav Petkov wrote: On Mon, Oct 12, 2020 at 02:15:55PM -0700, Mike Travis wrote: Of course, it also looks like that 'uvh_nmi_mmrx_mask' thing is a write-only variable so it doesn't matter, but can we _please_ get this code fixed ASAP? Yes, I'll look at it right

Re: [PATCH v2 2/4] time: make getboottime64 aware of time namespace

2020-10-12 Thread Thomas Gleixner
On Mon, Oct 12 2020 at 17:13, J. Bruce Fields wrote: > On Fri, Oct 09, 2020 at 10:08:15PM +0200, Thomas Gleixner wrote: >> You wish. That's clearly wrong because that code is not guaranteed to >> always run in a context which belongs to the root time namespace. > > Argh, right, thanks. > >>

Re: [PATCH] xfs: fix Kconfig asking about XFS_SUPPORT_V4 when XFS_FS=n

2020-10-12 Thread Eric Sandeen
On 10/12/20 4:11 PM, Darrick J. Wong wrote: > From: Darrick J. Wong > > Pavel Machek complained that the question about supporting deprecated > XFS v4 comes up even when XFS is disabled. This clearly makes no sense, > so fix Kconfig. > > Reported-by: Pavel Machek > Signed-off-by: Darrick J.

Re: [PATCH] drm/nouveau/kms: Fix NULL pointer dereference in nouveau_connector_detect_depth

2020-10-12 Thread Lyude Paul
Hi! Thanks for the catch, just one comment down below On Fri, 2020-10-09 at 21:11 +0300, Alexander Kapshuk wrote: > This oops manifests itself on the following hardware: > 01:00.0 VGA compatible controller: NVIDIA Corporation G98M [GeForce G 103M] > (rev a1) > > Oct 09 14:17:46 lp-sasha kernel:

Re: [RFC][PATCH 0/9] [v4][RESEND] Migrate Pages in lieu of discard

2020-10-12 Thread Yang Shi
On Wed, Oct 7, 2020 at 9:17 AM Dave Hansen wrote: > > > Changes since (automigrate-20200818): > * Fall back to normal reclaim when demotion fails > > The full series is also available here: > > https://github.com/hansendc/linux/tree/automigrate-20201007 > > I really just want folks to

Re: [PATCH v10 13/16] s390/vfio-ap: handle host AP config change notification

2020-10-12 Thread Tony Krowiak
On 9/27/20 9:38 PM, Halil Pasic wrote: On Fri, 21 Aug 2020 15:56:13 -0400 Tony Krowiak wrote: Implements the driver callback invoked by the AP bus when the host AP configuration has changed. Since this callback is invoked prior to unbinding a device from its device driver, the vfio_ap

Re: [tip: locking/core] lockdep: Fix lockdep recursion

2020-10-12 Thread Paul E. McKenney
On Mon, Oct 12, 2020 at 11:11:10AM +0800, Boqun Feng wrote: > Hi, > > On Fri, Oct 09, 2020 at 09:41:24AM -0400, Qian Cai wrote: > > On Fri, 2020-10-09 at 07:58 +, tip-bot2 for Peter Zijlstra wrote: > > > The following commit has been merged into the locking/core branch of tip: > > > > > >

Re: [GIT PULL] x86/platform updates for v5.10

2020-10-12 Thread Borislav Petkov
On Mon, Oct 12, 2020 at 02:15:55PM -0700, Mike Travis wrote: > > Of course, it also looks like that 'uvh_nmi_mmrx_mask' thing is a > > write-only variable so it doesn't matter, but can we _please_ get this > > code fixed ASAP? > > Yes, I'll look at it right now. Thanks. As this variable is

Re: [PATCH] arm/build: Always handle .ARM.exidx and .ARM.extab sections

2020-10-12 Thread Kees Cook
On Mon, Oct 12, 2020 at 02:22:03PM -0700, Fāng-ruì Sòng wrote: > On Mon, Oct 12, 2020 at 2:11 PM 'Nick Desaulniers' via Clang Built > Linux wrote: > > > > On Mon, Sep 28, 2020 at 3:49 PM Nathan Chancellor > > wrote: > > > > > > After turning on warnings for orphan section placement, enabling > >

Re: [GIT PULL] performance events updates for v5.10

2020-10-12 Thread pr-tracker-bot
The pull request you sent on Mon, 12 Oct 2020 18:10:49 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-core-2020-10-12 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/3bff6112c80cecb76af5fe485506f96e8adb6122 Thank you! -- Deet-doot-dot, I am

Re: [GIT PULL] Static calls for v5.10

2020-10-12 Thread pr-tracker-bot
The pull request you sent on Mon, 12 Oct 2020 17:55:42 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > core-static_call-2020-10-12 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/dd502a81077a5f3b3e19fa9a1accffdcab5ad5bc Thank you! --

Re: [GIT PULL] EFI changes for v5.10

2020-10-12 Thread pr-tracker-bot
The pull request you sent on Mon, 12 Oct 2020 17:21:19 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git efi-core-2020-10-12 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/e6412f9833db23740ee848ab3d6e7af18dff82a6 Thank you! -- Deet-doot-dot, I am a

Re: [GIT PULL] locking changes for v5.10

2020-10-12 Thread pr-tracker-bot
The pull request you sent on Mon, 12 Oct 2020 15:58:00 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > locking-core-2020-10-12 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/ed016af52ee3035b4799ebd7d53f9ae59d5782c4 Thank you! -- Deet-doot-dot,

Re: [GIT PULL] core/build changes for v5.10: Add orphan section checking for x86, ARM and ARM64

2020-10-12 Thread pr-tracker-bot
The pull request you sent on Mon, 12 Oct 2020 17:34:30 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > core-build-2020-10-12 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/34eb62d868d729e9a252aa497277081fb652eeed Thank you! -- Deet-doot-dot, I

Re: [GIT PULL] scheduler changes for v5.10

2020-10-12 Thread pr-tracker-bot
The pull request you sent on Mon, 12 Oct 2020 15:37:01 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > sched-core-2020-10-12 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/edaa5ddf3833669a25654d42c0fb653dfdd906df Thank you! -- Deet-doot-dot, I

Re: [GIT PULL] perf/kprobes changes for v5.10

2020-10-12 Thread pr-tracker-bot
The pull request you sent on Mon, 12 Oct 2020 18:23:37 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > perf-kprobes-2020-10-12 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/1c6890707eb1438b0fb4e0a10d4afe48a217628b Thank you! -- Deet-doot-dot,

Re: [PATCH] arm/build: Always handle .ARM.exidx and .ARM.extab sections

2020-10-12 Thread Fāng-ruì Sòng
On Mon, Oct 12, 2020 at 2:11 PM 'Nick Desaulniers' via Clang Built Linux wrote: > > On Mon, Sep 28, 2020 at 3:49 PM Nathan Chancellor > wrote: > > > > After turning on warnings for orphan section placement, enabling > > CONFIG_UNWINDER_FRAME_POINTER instead of CONFIG_UNWINDER_ARM causes > >

Re: [PATCH 02/18] dt-bindings: usb: usb-hcd: Add "wireless" maximum-speed property value

2020-10-12 Thread Serge Semin
On Mon, Oct 12, 2020 at 05:41:50PM +0200, Greg Kroah-Hartman wrote: > On Sun, Oct 11, 2020 at 08:53:33PM +0300, Serge Semin wrote: > > On Sun, Oct 11, 2020 at 04:42:36PM +0200, Greg Kroah-Hartman wrote: > > > On Sun, Oct 11, 2020 at 01:41:05AM +0300, Serge Semin wrote: > > > > It appears that the

Re: [GIT PULL] x86/platform updates for v5.10

2020-10-12 Thread Mike Travis
On 10/12/2020 2:10 PM, Linus Torvalds wrote: On Mon, Oct 12, 2020 at 3:10 AM Borislav Petkov wrote: please pull the x86/platform queue. Hmm. I didn't immediately notice this new warning, because it only happens with the clang build that I don't do in between every pull. But this pull

Re: [PATCH v2] mm/hmm: make device private reference counts zero based

2020-10-12 Thread Dan Williams
On Mon, Oct 12, 2020 at 10:46 AM Ralph Campbell wrote: > > ZONE_DEVICE struct pages have an extra reference count that complicates the > code for put_page() and several places in the kernel that need to check the > reference count to see that a page is not being used (gup, compaction, >

[PATCH 3/3] ARM: omap2plus_defconfig: Enable TI eQEP counter driver

2020-10-12 Thread David Lechner
This enables the TI eQEP counter driver that is used by BeagleBone Blue. Signed-off-by: David Lechner --- arch/arm/configs/omap2plus_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/configs/omap2plus_defconfig b/arch/arm/configs/omap2plus_defconfig index

Re: [PATCH v2 2/4] time: make getboottime64 aware of time namespace

2020-10-12 Thread J. Bruce Fields
On Fri, Oct 09, 2020 at 10:08:15PM +0200, Thomas Gleixner wrote: > On Fri, Oct 09 2020 at 09:55, J. Bruce Fields wrote: > > Looking at how it's used in net/sunrpc/cache.c All it's doing is > > comparing times which have all been calculated relative to the time > > returned by getboottime64().

[PATCH 1/3] ARM: dts: am33xx: Add nodes for eQEP

2020-10-12 Thread David Lechner
This adds new nodes for the Texas Instruments Enhanced Quadrature Encoder Pulse (eQEP) module in the PWM subsystem on AM33XX. Signed-off-by: David Lechner --- arch/arm/boot/dts/am33xx-l4.dtsi | 27 +++ 1 file changed, 27 insertions(+) diff --git

[PATCH 0/3] Enable eQEP counter driver on BeagleBone Blue

2020-10-12 Thread David Lechner
This series adds device tree nodes for the eQEP portion of the PWMSS on AM33xx and enables it on BeagleBone Blue. I actually submitted these a year ago, but it looks like these patches never got applied with the actual eQEP driver when it was merged. For reference, there was some previous

[PATCH 2/3] ARM: dts: am335x-boneblue: Enable eQEP

2020-10-12 Thread David Lechner
This enables the Enhanced Quadrature Encoder Pulse (eQEP) module for connectors E1, E2 and E3 on BeagleBone Blue. Signed-off-by: David Lechner --- arch/arm/boot/dts/am335x-boneblue.dts | 54 +++ 1 file changed, 54 insertions(+) diff --git

[PATCH] xfs: fix Kconfig asking about XFS_SUPPORT_V4 when XFS_FS=n

2020-10-12 Thread Darrick J. Wong
From: Darrick J. Wong Pavel Machek complained that the question about supporting deprecated XFS v4 comes up even when XFS is disabled. This clearly makes no sense, so fix Kconfig. Reported-by: Pavel Machek Signed-off-by: Darrick J. Wong --- fs/xfs/Kconfig |1 + 1 file changed, 1

Re: [PATCH] arm/build: Always handle .ARM.exidx and .ARM.extab sections

2020-10-12 Thread Nick Desaulniers
On Mon, Sep 28, 2020 at 3:49 PM Nathan Chancellor wrote: > > After turning on warnings for orphan section placement, enabling > CONFIG_UNWINDER_FRAME_POINTER instead of CONFIG_UNWINDER_ARM causes > thousands of warnings when clang + ld.lld are used: > > $ scripts/config --file

Re: -next: Kconfig asks about XFS formats when I don't have XFS enabled

2020-10-12 Thread Darrick J. Wong
On Mon, Oct 12, 2020 at 12:20:39PM +0200, Pavel Machek wrote: > Hi! > > I don't have XFS enabled, yet I'm asked if I want to support its old > format: > > +config XFS_SUPPORT_V4 > + bool "Support deprecated V4 (crc=0) format" > + default y > > This needs to have dependence on

Re: [GIT PULL] x86/platform updates for v5.10

2020-10-12 Thread Linus Torvalds
On Mon, Oct 12, 2020 at 3:10 AM Borislav Petkov wrote: > > please pull the x86/platform queue. Hmm. I didn't immediately notice this new warning, because it only happens with the clang build that I don't do in between every pull. But this pull causes new warnings from clang:

Re: [PATCH v4 1/2] PCI/ERR: Call pci_bus_reset() before calling ->slot_reset() callback

2020-10-12 Thread Raj, Ashok
On Sun, Oct 11, 2020 at 10:03:40PM -0700, sathyanarayanan.nkuppusw...@gmail.com wrote: > From: Kuppuswamy Sathyanarayanan > > Currently if report_error_detected() or report_mmio_enabled() > functions requests PCI_ERS_RESULT_NEED_RESET, current > pcie_do_recovery() implementation does not do the

Re: [PATCH v5 25/29] arm64: allow LTO_CLANG and THINLTO to be selected

2020-10-12 Thread Kees Cook
On Mon, Oct 12, 2020 at 09:51:09PM +0100, Will Deacon wrote: > On Mon, Oct 12, 2020 at 01:44:56PM -0700, Kees Cook wrote: > > On Mon, Oct 12, 2020 at 09:31:16AM +0100, Will Deacon wrote: > > > On Fri, Oct 09, 2020 at 09:13:34AM -0700, Sami Tolvanen wrote: > > > > Allow CONFIG_LTO_CLANG and

Re: [PATCH] lib: kunit: add test_min_heap test conversion to KUnit

2020-10-12 Thread Brendan Higgins
On Tue, Aug 4, 2020 at 9:22 AM Vitor Massaru Iha wrote: > > Hi Peter, > > On Tue, Aug 4, 2020 at 11:23 AM wrote: > > > > On Tue, Aug 04, 2020 at 10:46:21AM -0300, Vitor Massaru Iha wrote: > > > On Tue, Aug 4, 2020 at 10:25 AM wrote: > > > > On Wed, Jul 29, 2020 at 06:57:17PM -0300, Vitor

Re: [PATCH AUTOSEL 5.8 18/24] net: usb: rtl8150: set random MAC address when set_ethernet_addr() fails

2020-10-12 Thread Petko Manolov
On 20-10-12 12:11:18, Joe Perches wrote: > On Mon, 2020-10-12 at 15:02 -0400, Sasha Levin wrote: > > From: Anant Thazhemadam > > > > [ Upstream commit f45a4248ea4cc13ed50618ff066849f9587226b2 ] > > > > When get_registers() fails in set_ethernet_addr(),the uninitialized > > value of node_id gets

Re: [PATCH v1 net-next] net: stmmac: Enable EEE HW LPI timer with auto SW/HW switching

2020-10-12 Thread Jakub Kicinski
On Fri, 9 Oct 2020 00:11:23 +0800 Voon Weifeng wrote: > From: "Vineetha G. Jaya Kumaran" > > This patch enables the HW LPI Timer which controls the automatic entry > and exit of the LPI state. > The EEE LPI timer value is configured through ethtool. The driver will > auto select the LPI HW

[PATCH 09/18] media: hantro: default regmap to relaxed MMIO

2020-10-12 Thread Adrian Ratiu
This is done to match the pre-regmap membarrier behaviour, ensuring default regmap_write calls in _relaxed() are indeed relaxed while the non-relaxed versions include an explicit mem-barrier call. Signed-off-by: Adrian Ratiu --- drivers/staging/media/hantro/hantro.h| 4

[PATCH 17/18] media: hantro: add dump registers debug option before decode start

2020-10-12 Thread Adrian Ratiu
It is very useful to know the status of all the decoder configuration registers right before starting a decode operation, so add an option to print them if register debugging is enabled (debug bit 7 is set). Signed-off-by: Adrian Ratiu --- drivers/staging/media/hantro/hantro.h | 1 +

[PATCH 13/18] media: hantro: add VC8000D postproc support

2020-10-12 Thread Adrian Ratiu
VC8000D decodes only to 4x4 tiled NV12 format and the attached PP can be used to de-tile its output. This can bo done in two modes: 1. Pipeline mode, using the same decoder "done" irq 2. External mode, with a separate irq and input setup. This adds the relevant postprocessor fields and support

[PATCH 06/18] media: hantro: imx8mq: simplify ctrlblk reset logic

2020-10-12 Thread Adrian Ratiu
The G1 and G2 cores on imx8mq share a common "control block" used to reset and enable the core clocks as well as enable functioning via ctrl FUSE registers (these are not the FUSEs on the VPU cores, they are just used to enable/disable the cores and allow the real VPU FUSE regs to become

[PATCH 10/18] media: hantro: convert G1 h264 decoder to regmap fields

2020-10-12 Thread Adrian Ratiu
Populate the regmap field API for G1 h264 decoding and convert the G1 h264 decoder source to use the new API. This is done because we will add support for the newer VC8000D core which will configure the regmap API fields differently to match its own hwreg layout. Signed-off-by: Adrian Ratiu ---

[PATCH 12/18] media: hantro: add VC8000D h264 decoding

2020-10-12 Thread Adrian Ratiu
VC8000D is a newer core combining both previous G1 and G2 cores into one chip. As a result of this register layouts took a hit but the HW functions mostly the same, so we can use regmap fields to compensate. Signed-off-by: Adrian Ratiu --- .../staging/media/hantro/hantro_g1_h264_dec.c | 29

[PATCH 18/18] media: hantro: document encoder reg fields

2020-10-12 Thread Adrian Ratiu
Even though these fields are currently unused it is still a good idea to have them documented for future encoder implementations. Signed-off-by: Ezequiel Garcia Signed-off-by: Adrian Ratiu --- drivers/staging/media/hantro/hantro_regmap.c | 580 ++-

[PATCH 11/18] media: hantro: convert G1 postproc to regmap

2020-10-12 Thread Adrian Ratiu
Postprocessing used the custom hantro_reg structure but now we have regmap fields which are used for reg layouts which do the same thing, so PP can be moved to regmap. In the future all hantro_reg references can be removed, this is just a beginnig. This converts only the existing G1 PP support,

[PATCH 16/18] media: hantro: rename h264_dec as it's not G1 specific anymore

2020-10-12 Thread Adrian Ratiu
The h264 decoder is now capable of decoding on both G1 and VC8000 and other HW revisions can be added in the future by extending the hantro regmap config, so we rename it to reflect the new status. All other core-specific files like "hantro_g1_mpeg2_dec.c" should be renamed as well after they

[PATCH 15/18] media: hantro: add user-selectable, platform-selectable H264 High10

2020-10-12 Thread Adrian Ratiu
VPU cores starting with VC8000D feature a separate decoding mode named "high10", capable of decoding both 8bit and 10bit streams, alongside the previous (still supported) "normal / classic" h264 decoding mode. The new kernel module param h264_high10 can be used to switch modes, otherwise the

[PATCH 07/18] regmap: mmio: add config option to allow relaxed MMIO accesses

2020-10-12 Thread Adrian Ratiu
On some platforms (eg armv7 due to the CONFIG_ARM_DMA_MEM_BUFFERABLE) MMIO R/W operations always add memory barriers which can increase load, decrease battery life or in general reduce performance unnecessarily on devices which access a lot of configuration registers and where ordering does not

nouveau stalling on stable kernel 5.9.0

2020-10-12 Thread bob
Hello.  I hoped most of the nouveau video driver's problems would be solved by 5.9.0.  Sadly, no. $ uname -a Linux freedom 5.9.0 #1 SMP Sun Oct 11 20:28:07 MDT 2020 x86_64 x86_64 x86_64 GNU/Linux $ dmesg [12170.319495] nouveau :02:00.0: DRM: base-0: timeout [12172.324280] nouveau

[PATCH 05/18] media: hantro: prepare clocks before variant inits are run

2020-10-12 Thread Adrian Ratiu
The fundamental idea is: clocks are prepared in the driver probe() then each use-case will enable/disable them as needed. Some variants like imx8mq need to have the clocks enabled during the HW init phase, so they will benefit from having the clocks prepared before the variant init callback to

[PATCH 08/18] media: hantro: add initial MMIO regmap infrastructure

2020-10-12 Thread Adrian Ratiu
This creates regmaps on top of the memory mapped regions for encoders and decoders and converts the helpers in hantro.h to do their R/W via these regmaps. In itself this indirection layer is quite useless, but the key is the field API also initialized using the regmaps which is currently empty.

[PATCH 03/18] media: hantro: make G1_REG_SOFT_RESET Rockchip specific

2020-10-12 Thread Adrian Ratiu
This register is not documented in either the G1 or VC8000D register maps and on VC8000D there is a conflict because at the same offset the VPU IP defines another register with a very different meaning. What likely happened is the HW integrator which uses only the G1 IP core added some

[PATCH 04/18] media: hantro: add reset controller support

2020-10-12 Thread Adrian Ratiu
Some SoCs might have a reset controller which disables clocks by default in reset state which then drivers need to unreset before being able to ungate a specific clock. In this specific case, the hantro driver needs to ensure the peripheral clock can be properly ungated otherwise MMIO reg values

[PATCH 14/18] media: hantro: make PP enablement logic a bit smarter

2020-10-12 Thread Adrian Ratiu
Now that we support two cores with different PP operations we need to make the condition to enable PP a bit smarter based on what is actually supported by each core. While doing this also move the needs_postproc() test inside the postproc .c file instead of cluttering the header. Signed-off-by:

[PATCH 01/18] media: hantro: document all int reg bits up to vc8000

2020-10-12 Thread Adrian Ratiu
These do not all strictly belong to the g1 core and even the majority of previously documented bits were not used (yet) by the driver irq handlers, but it's still very useful to have an overview of all IRQs, especially since starting with core versions vc8000 and later the irq bits previously used

[PATCH 02/18] media: hantro: make consistent use of decimal register notation

2020-10-12 Thread Adrian Ratiu
This header used a combination of direct hex offsets and decimal register notation - via the G1_SWREG() macro - which is annoying when comparing with the ref manuals which always use the equivalent of G1_SWREG(), so convert the entire file to G1_SWREG() notation. Signed-off-by: Adrian Ratiu ---

[PATCH 00/18] Add Hantro regmap and VC8000 h264 decode support

2020-10-12 Thread Adrian Ratiu
Dear all, This series introduces a regmap infrastructure for the Hantro driver which is used to compensate for different HW-revision register layouts. To justify it h264 decoding capability is added for newer VC8000 chips. This is a gradual conversion to the new infra - a complete conversion

Re: [GIT PULL] x86/asm updates for v5.10

2020-10-12 Thread Linus Torvalds
On Mon, Oct 12, 2020 at 1:22 PM Uros Bizjak wrote: > > No, this fact is not documented, although there are close to zero > chances it will ever change. High registers are independent from their > 8bit lowparts, but they still clobber corresponding 16bit, 32bit and > 64bit representations. I guess

Re: KASAN: use-after-free Read in btrfs_scan_one_device

2020-10-12 Thread Rustam Kovhaev
On Thu, Oct 01, 2020 at 03:35:46PM +0200, David Sterba wrote: > On Thu, Oct 01, 2020 at 03:08:34PM +0200, Dmitry Vyukov wrote: > > On Thu, Oct 1, 2020 at 3:05 PM Dmitry Vyukov wrote: > > > > > > On Wed, Sep 30, 2020 at 8:06 PM David Sterba wrote: > > > > > > > > On Wed, Sep 30, 2020 at

Re: [PATCH v10 13/16] s390/vfio-ap: handle host AP config change notification

2020-10-12 Thread Tony Krowiak
On 9/27/20 9:38 PM, Halil Pasic wrote: On Fri, 21 Aug 2020 15:56:13 -0400 Tony Krowiak wrote: Implements the driver callback invoked by the AP bus when the host AP configuration has changed. Since this callback is invoked prior to unbinding a device from its device driver, the vfio_ap

[PATCH 2/2] arm64: dts: mediatek: mt8516: add auxadc node

2020-10-12 Thread Fabien Parent
Add node for the auxadc IP. The IP is compatible with the one found in MT8173 SoC. Signed-off-by: Fabien Parent --- arch/arm64/boot/dts/mediatek/mt8516.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8516.dtsi

Re: Regression: epoll edge-triggered (EPOLLET) for pipes/FIFOs

2020-10-12 Thread Linus Torvalds
On Mon, Oct 12, 2020 at 1:30 PM Michael Kerrisk (man-pages) wrote: > > [CC += Davide] I'm not sure how active Davide is any more.. > I don't think this is correct. The epoll(7) manual page > sill carries the text written long ago by Davide Libenzi, > the creator of epoll: > > Since even

[PATCH 1/2] dt-bindings: iio: adc: auxadc: add doc for MT8516 SoC

2020-10-12 Thread Fabien Parent
Add documentation for the auxadc binding for MT8516 SoC. Signed-off-by: Fabien Parent --- Documentation/devicetree/bindings/iio/adc/mt6577_auxadc.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iio/adc/mt6577_auxadc.txt

Re: [PATCH v5 25/29] arm64: allow LTO_CLANG and THINLTO to be selected

2020-10-12 Thread Will Deacon
On Mon, Oct 12, 2020 at 01:44:56PM -0700, Kees Cook wrote: > On Mon, Oct 12, 2020 at 09:31:16AM +0100, Will Deacon wrote: > > On Fri, Oct 09, 2020 at 09:13:34AM -0700, Sami Tolvanen wrote: > > > Allow CONFIG_LTO_CLANG and CONFIG_THINLTO to be enabled. > > > > > > Signed-off-by: Sami Tolvanen > >

Re: [PATCH] lib: Convert test_printf.c to KUnit

2020-10-12 Thread Brendan Higgins
On Mon, Oct 12, 2020 at 1:13 PM Brendan Higgins wrote: > > On Fri, Aug 21, 2020 at 5:19 AM Rasmus Villemoes > wrote: > > Sorry about the late reply. I saw activity on this before and thought > it was under control. I only saw the unresolved state now looking > through patchwork. > > > On

Re: [PATCH v14 03/26] x86/fpu/xstate: Introduce CET MSR XSAVES supervisor states

2020-10-12 Thread Yu, Yu-cheng
On 10/12/2020 12:58 PM, Cyrill Gorcunov wrote: On Mon, Oct 12, 2020 at 08:38:27AM -0700, Yu-cheng Yu wrote: ... /* * x86-64 Task Priority Register, CR8 diff --git a/arch/x86/kernel/fpu/xstate.c b/arch/x86/kernel/fpu/xstate.c index 038e19c0019e..705fd9b94e31 100644 ---

[PATCH v5 26/40] kasan: rename print_shadow_for_address to print_memory_metadata

2020-10-12 Thread Andrey Konovalov
This is a preparatory commit for the upcoming addition of a new hardware tag-based (MTE-based) KASAN mode. Hardware tag-based KASAN won't be using shadow memory, but will reuse this function. Rename "shadow" to implementation-neutral "metadata". No functional changes. Signed-off-by: Andrey

[PATCH v5 25/40] kasan: rename addr_has_shadow to addr_has_metadata

2020-10-12 Thread Andrey Konovalov
This is a preparatory commit for the upcoming addition of a new hardware tag-based (MTE-based) KASAN mode. Hardware tag-based KASAN won't be using shadow memory, but will reuse this function. Rename "shadow" to implementation-neutral "metadata". No functional changes. Signed-off-by: Andrey

Re: [PATCH] lib: Convert test_printf.c to KUnit

2020-10-12 Thread Brendan Higgins
On Fri, Aug 21, 2020 at 03:28:49PM +0300, Andy Shevchenko wrote: > On Fri, Aug 21, 2020 at 01:37:10PM +0200, Petr Mladek wrote: > > On Mon 2020-08-17 09:06:32, Rasmus Villemoes wrote: > > > On 17/08/2020 06.30, Arpitha Raghunandan wrote: > > > > Converts test lib/test_printf.c to KUnit. > > > >

[PATCH v5 34/40] kasan, arm64: expand CONFIG_KASAN checks

2020-10-12 Thread Andrey Konovalov
Some #ifdef CONFIG_KASAN checks are only relevant for software KASAN modes (either related to shadow memory or compiler instrumentation). Expand those into CONFIG_KASAN_GENERIC || CONFIG_KASAN_SW_TAGS. Signed-off-by: Andrey Konovalov Signed-off-by: Vincenzo Frascino Reviewed-by: Catalin Marinas

[PATCH v5 37/40] kasan, mm: reset tags when accessing metadata

2020-10-12 Thread Andrey Konovalov
Kernel allocator code accesses metadata for slab objects, that may lie out-of-bounds of the object itself, or be accessed when an object is freed. Such accesses trigger tag faults and lead to false-positive reports with hardware tag-based KASAN. Software KASAN modes disable instrumentation for

[PATCH v5 35/40] kasan, arm64: implement HW_TAGS runtime

2020-10-12 Thread Andrey Konovalov
Provide implementation of KASAN functions required for the hardware tag-based mode. Those include core functions for memory and pointer tagging (tags_hw.c) and bug reporting (report_tags_hw.c). Also adapt common KASAN code to support the new mode. Signed-off-by: Andrey Konovalov Signed-off-by:

[PATCH v5 39/40] kasan: add documentation for hardware tag-based mode

2020-10-12 Thread Andrey Konovalov
Add documentation for hardware tag-based KASAN mode and also add some clarifications for software tag-based mode. Signed-off-by: Andrey Konovalov Signed-off-by: Vincenzo Frascino Reviewed-by: Marco Elver --- Change-Id: Ib46cb444cfdee44054628940a82f5139e10d0258 ---

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