[for-next][PATCH 00/13] tracing: Updates for 5.13

2021-03-19 Thread Steven Rostedt
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next Head SHA1: 9a6944fee68e25084130386c608c5ac8db487581 Cao jin (1): bootconfig: Update prototype of setup_boot_config() Colin Ian King (1): ftrace: Fix spelling mistake "disabed" -> "disabled" Steven

[for-next][PATCH 02/13] ring-buffer: Add a event_stamp to cpu_buffer for each level of nesting

2021-03-19 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Add a place to save the current event time stamp for each level of nesting. This will be used to retrieve the time stamp of the current event before it is committed. Link: https://lkml.kernel.org/r/20210316164113.399089...@goodmis.org Reviewed-by: Tom Zanussi

[for-next][PATCH 01/13] ring-buffer: Separate out internal use of ring_buffer_event_time_stamp()

2021-03-19 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The exported use of ring_buffer_event_time_stamp() is going to become different than how it is used internally. Move the internal logic out into a static function called rb_event_time_stamp(), and have the internal callers call that instead. Link:

[for-next][PATCH 03/13] tracing: Pass buffer of event to trigger operations

2021-03-19 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The ring_buffer_event_time_stamp() is going to be updated to extract the time stamp for the event without needing it to be set to have absolute values for all events. But to do so, it needs the buffer that the event is on as the buffer saves information for the

[for-next][PATCH 04/13] ring-buffer: Allow ring_buffer_event_time_stamp() to return time stamp of all events

2021-03-19 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Currently, ring_buffer_event_time_stamp() only returns an accurate time stamp of the event if it has an absolute extended time stamp attached to it. To make it more robust, use the event_stamp() in case the event does not have an absolute value attached to it.

[for-next][PATCH 05/13] tracing: Use a no_filter_buffering_ref to stop using the filter buffer

2021-03-19 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Currently, the trace histograms relies on it using absolute time stamps to trigger the tracing to not use the temp buffer if filters are set. That's because the histograms need the full timestamp that is saved in the ring buffer. That is no longer the case, as the

[for-next][PATCH 06/13] ring-buffer: Add verifier for using ring_buffer_event_time_stamp()

2021-03-19 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The ring_buffer_event_time_stamp() must be only called by an event that has not been committed yet, and is on the buffer that is passed in. This was used to help debug converting the histogram logic over to using the new time stamp code, and was proven to be very

[for-next][PATCH 07/13] tracing: Add tracing_event_time_stamp() API

2021-03-19 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" Add a tracing_event_time_stamp() API that checks if the event passed in is not on the ring buffer but a pointer to the per CPU trace_buffered_event which does not have its time stamp set yet. If it is a pointer to the trace_buffered_event, then just return the

[for-next][PATCH 08/13] bootconfig: Update prototype of setup_boot_config()

2021-03-19 Thread Steven Rostedt
From: Cao jin Parameter "cmdline" has no use, drop it. Link: https://lkml.kernel.org/r/20210311085213.27680-1-jojin...@gmail.com Acked-by: Masami Hiramatsu Signed-off-by: Cao jin Signed-off-by: Steven Rostedt (VMware) --- init/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[for-next][PATCH 09/13] tools/latency-collector: Remove unneeded semicolon

2021-03-19 Thread Steven Rostedt
From: Xu Wang Fix semicolon.cocci warning: tools/tracing/latency/latency-collector.c:1021:2-3: Unneeded semicolon Link: https://lkml.kernel.org/r/20210308022459.59881-1-vu...@iscas.ac.cn Reviewed-by: Viktor Rosendahl Signed-off-by: Xu Wang Signed-off-by: Steven Rostedt (VMware) ---

[PATCH] clang-format: Update ColumnLimit

2021-03-19 Thread Ansuel Smith
Update ColumnLimit value, changed from 80 to 100. Signed-off-by: Ansuel Smith --- .clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index c24b147cac01..3212542df113 100644 --- a/.clang-format +++ b/.clang-format @@ -52,7 +52,7 @@

Re: [PATCH 0/6] mm: some config cleanups

2021-03-19 Thread Catalin Marinas
On Tue, Mar 09, 2021 at 02:03:04PM +0530, Anshuman Khandual wrote: > This series contains config cleanup patches which reduces code duplication > across platforms and also improves maintainability. There is no functional > change intended with this series. This has been boot tested on arm64 but >

Re: [PATCH] cifsd: fix error handling in ksmbd_server_init()

2021-03-19 Thread kernel test robot
Hi Dan, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on next-20210319] [cannot apply to linus/master v5.12-rc3 v5.12-rc2 v5.12-rc1 v5.12-rc3] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

Re: [PATCH v12 1/2] scsi: ufs: Enable power management for wlun

2021-03-19 Thread Bart Van Assche
On 3/19/21 10:47 AM, Adrian Hunter wrote: It would also be good if you could re-base on linux-next. Hmm ... my understanding is that patches should be prepared on top of the for-next branch of the maintainer a patch is sent to, in this case the for-next branch of

[PATCH] neighbour: Disregard DEAD dst in neigh_update

2021-03-19 Thread Tong Zhu
After a short network outage, the dst_entry is timed out and put in DST_OBSOLETE_DEAD. We are in this code because arp reply comes from this neighbour after network recovers. There is a potential race condition that dst_entry is still in DST_OBSOLETE_DEAD. With that, another neighbour lookup

Re: [PATCH 1/1] ARM: owl: Add Actions Semi Owl S500 SoC machine

2021-03-19 Thread Cristian Ciocaltea
On Fri, Mar 12, 2021 at 11:28:53AM +0200, Cristian Ciocaltea wrote: > Hi Andreas, > > On Fri, Mar 12, 2021 at 09:39:31AM +0100, Andreas Färber wrote: > > Hi Cristian, > > > > On 11.03.21 20:19, Cristian Ciocaltea wrote: > > > Add machine entry for the S500 variant of the Actions Semi Owl SoCs >

Re: [PATCH v1 1/1] ACPI: scan: Use unique number for instance_no

2021-03-19 Thread Andy Shevchenko
On Fri, Mar 19, 2021 at 08:06:18PM +0200, Andy Shevchenko wrote: > On Fri, Mar 19, 2021 at 06:00:38PM +0100, Rafael J. Wysocki wrote: > > On Fri, Mar 12, 2021 at 5:02 PM Andy Shevchenko > > wrote: > > This is a slightly convoluted way of stating that there is a bug in > > acpi_device_del(). > >

Re: [PATCH net-next 4/4] net: ipa: activate some commented assertions

2021-03-19 Thread Andrew Lunn
> @@ -212,7 +213,7 @@ static inline u32 ipa_reg_bcr_val(enum ipa_version > version) > BCR_HOLB_DROP_L2_IRQ_FMASK | > BCR_DUAL_TX_FMASK; > > - /* assert(version != IPA_VERSION_4_5); */ > + ipa_assert(NULL, version != IPA_VERSION_4_5); Hi Alex

[PATCH v2 1/1] ACPI: scan: Use unique number for instance_no

2021-03-19 Thread Andy Shevchenko
Current mechanism of incrementing and decrementing plain integer to get a next free instance_no when creating an ACPI device is buggy. The simple integer and operations line increment and decrement on top of it can't cover the possible gaps during run time. The arbitrary instantiation and

Re: [RFC PATCH v3 2/3] blk-mq: Freeze and quiesce all queues for tagset in elevator_exit()

2021-03-19 Thread Bart Van Assche
On 3/19/21 11:19 AM, John Garry wrote: OK, but TBH, I am not so familiar with srcu - where you going to try this? Hi John, Have you received the following patch: "[PATCH] blk-mq: Fix races between iterating over requests and freeing requests"

Re: [PATCH 06/19] drm/amd/display/dc/calcs/dce_calcs: Move some large variables from the stack to the heap

2021-03-19 Thread Alex Deucher
On Fri, Mar 19, 2021 at 2:26 PM Harry Wentland wrote: > > On 2021-03-19 2:13 p.m., Alex Deucher wrote: > > + Harry, Nick > > > > On Fri, Mar 19, 2021 at 4:24 AM Lee Jones wrote: > >> > >> Fixes the following W=1 kernel build warning(s): > >> > >>

Re: [PATCH] Tools: lib: string: Fix isspace() parameter to avoid undefined behavior

2021-03-19 Thread Arnaldo Carvalho de Melo
Em Fri, Mar 19, 2021 at 09:14:15AM +0900, hyunji-Hong escreveu: > isspace() could be vulnerable in terms of unpredictable results. So, the > parameter of the isspace() should be cast with 'unsigned int'. We found out > that information through these sites. (Microsoft, Stack Overflow) > url:

[PATCH 1/4] dt-bindings: soc: actions: Add Actions Semi Owl socinfo binding

2021-03-19 Thread Cristian Ciocaltea
Add devicetree binding for the Actions Semi Owl SoCs info module. Signed-off-by: Cristian Ciocaltea --- .../bindings/soc/actions/owl-socinfo.yaml | 71 +++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/actions/owl-socinfo.yaml

[PATCH 3/4] arm: dts: owl-s500: Add socinfo support

2021-03-19 Thread Cristian Ciocaltea
Update soc node compatible property to enable support for the Actions Semi Owl soc info driver. Additionally provide memory addresses where the serial number parts are accessible. Signed-off-by: Cristian Ciocaltea --- arch/arm/boot/dts/owl-s500.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1

[PATCH 4/4] MAINTAINERS: Add entry for Actions Semi Owl socinfo binding

2021-03-19 Thread Cristian Ciocaltea
Add an entry for the Actions Semi Owl socinfo binding. Signed-off-by: Cristian Ciocaltea --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 20b8e37ea34c..21d54ddcceb4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1533,6 +1533,7 @@ F:

[PATCH 0/4] Add support for Actions Semi Owl soc info

2021-03-19 Thread Cristian Ciocaltea
This patchset adds a socinfo driver which provides information about Actions Semi Owl SoCs to user space via sysfs: machine, family, soc_id, serial_number. Please note the serial number is currently available only for the S500 SoC variant. This has been tested on the S500 SoC based RoseapplePi

Re: [PATCH v5 5/7] mm: memcontrol: use obj_cgroup APIs to charge kmem pages

2021-03-19 Thread Shakeel Butt
On Fri, Mar 19, 2021 at 9:39 AM Muchun Song wrote: > > Since Roman series "The new cgroup slab memory controller" applied. All > slab objects are charged via the new APIs of obj_cgroup. The new APIs > introduce a struct obj_cgroup to charge slab objects. It prevents > long-living objects from

[PATCH 2/4] soc: actions: Add Actions Semi Owl socinfo driver

2021-03-19 Thread Cristian Ciocaltea
The driver provides information about the Action Semi Owl family of SoCs (S500, S700 and S900) to user space via sysfs: machine, family, soc_id, serial_number. Note the serial number is currently provided only for the S500 SoC variant. Signed-off-by: Cristian Ciocaltea ---

Re: [PATCH v5 1/7] mm: memcontrol: slab: fix obtain a reference to a freeing memcg

2021-03-19 Thread Shakeel Butt
On Fri, Mar 19, 2021 at 9:38 AM Muchun Song wrote: > > The rcu_read_lock/unlock only can guarantee that the memcg will not be > freed, but it cannot guarantee the success of css_get (which is in the > refill_stock when cached memcg changed) to memcg. > > rcu_read_lock() > memcg =

Re: [PATCH 06/19] drm/amd/display/dc/calcs/dce_calcs: Move some large variables from the stack to the heap

2021-03-19 Thread Harry Wentland
On 2021-03-19 2:13 p.m., Alex Deucher wrote: + Harry, Nick On Fri, Mar 19, 2021 at 4:24 AM Lee Jones wrote: Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c: In function ‘calculate_bandwidth’:

Re: [PATCH 08/19] drm/amd/display/dc/dce80/dce80_resource: Make local functions static

2021-03-19 Thread Harry Wentland
On 2021-03-19 4:24 a.m., Lee Jones wrote: Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/dce80/dce80_resource.c:527:17: warning: no previous prototype for ‘dce80_aux_engine_create’ [-Wmissing-prototypes]

Re: [PATCH 08/19] drm/amd/display/dc/dce80/dce80_resource: Make local functions static

2021-03-19 Thread Alex Deucher
On Fri, Mar 19, 2021 at 4:24 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../display/dc/dce80/dce80_resource.c:527:17: > warning: no previous prototype for ‘dce80_aux_engine_create’ > [-Wmissing-prototypes] >

Re: [PATCH v1 1/1] x86/tdx: Add tdcall() and tdvmcall() helper functions

2021-03-19 Thread Dave Hansen
On 3/19/21 10:42 AM, Kuppuswamy, Sathyanarayanan wrote: >>> @@ -4,6 +4,58 @@ >>>   #include >>>   #include >>>   +void tdcall(u64 leafid, struct tdcall_regs *regs) >>> +{ >>> +    asm volatile( >>> +    /* RAX = leafid (TDCALL LEAF ID) */ >>> +    "  movq %0, %%rax;" >>> +

Re: [RFC PATCH v3 2/3] blk-mq: Freeze and quiesce all queues for tagset in elevator_exit()

2021-03-19 Thread John Garry
On 16/03/2021 19:59, Bart Van Assche wrote: On 3/16/21 10:43 AM, John Garry wrote: On 16/03/2021 17:00, Bart Van Assche wrote: I agree that Jens asked at the end of 2018 not to touch the fast path to fix this use-after-free (maybe that request has been repeated more recently). If Jens or

Re: [PATCH v4] mm: cma: support sysfs

2021-03-19 Thread Minchan Kim
On Fri, Mar 19, 2021 at 08:56:06PM +0300, Dmitry Osipenko wrote: > 19.03.2021 19:30, Minchan Kim пишет: > > +static void cma_kobj_release(struct kobject *kobj) > > +{ > > + struct cma_kobject *cma_kobj = container_of(kobj, struct cma_kobject, > > kobj); > > + > > + kfree(cma_kobj); > > +} >

Re: [PATCH net-next 3/4] net: ipa: introduce ipa_assert()

2021-03-19 Thread Andrew Lunn
> It will be much better for everyone if you don't obfuscate existing > kernel primitives and don't hide constant vs. dynamic expressions. > > So any random kernel developer will be able to change the code without > investing too much time to understand this custom logic. > > And constant

Re: [PATCH 2/2] mm: memcontrol: deprecate swapaccounting=0 mode

2021-03-19 Thread Shakeel Butt
On Fri, Mar 19, 2021 at 10:36 AM Johannes Weiner wrote: > > On Fri, Mar 19, 2021 at 06:49:55AM -0700, Shakeel Butt wrote: > > On Thu, Mar 18, 2021 at 10:49 PM Johannes Weiner wrote: > > > > > > The swapaccounting= commandline option already does very little > > > today. To close a trivial

Re: [PATCH V4 05/18] iommu/ioasid: Redefine IOASID set and allocation APIs

2021-03-19 Thread Jacob Pan
Hi Jason, On Fri, 19 Mar 2021 10:54:32 -0300, Jason Gunthorpe wrote: > On Fri, Mar 19, 2021 at 02:41:32PM +0100, Jean-Philippe Brucker wrote: > > On Fri, Mar 19, 2021 at 09:46:45AM -0300, Jason Gunthorpe wrote: > > > On Fri, Mar 19, 2021 at 10:58:41AM +0100, Jean-Philippe Brucker wrote: > > >

Re: [RFC PATCH v2 1/8] arm64: Implement stack trace termination record

2021-03-19 Thread Madhavan T. Venkataraman
On 3/19/21 9:29 AM, Madhavan T. Venkataraman wrote: > > > On 3/19/21 7:30 AM, Mark Brown wrote: >> On Thu, Mar 18, 2021 at 03:26:13PM -0500, Madhavan T. Venkataraman wrote: >>> On 3/18/21 10:09 AM, Mark Brown wrote: >> If we are going to add the extra record there would probably be less

Re: [PATCH v4] mm: cma: support sysfs

2021-03-19 Thread Minchan Kim
On Fri, Mar 19, 2021 at 08:29:29PM +0300, Dmitry Osipenko wrote: > 19.03.2021 19:30, Minchan Kim пишет: > > On Fri, Mar 19, 2021 at 07:24:05PM +0300, Dmitry Osipenko wrote: > >> 19.03.2021 18:50, Greg Kroah-Hartman пишет: > Then initialization order won't be a problem. > >>> I don't

Re: [PATCH 3/7] mm/page_alloc: Add a bulk page allocator

2021-03-19 Thread Vlastimil Babka
On 3/12/21 4:43 PM, Mel Gorman wrote: > This patch adds a new page allocator interface via alloc_pages_bulk, > and __alloc_pages_bulk_nodemask. A caller requests a number of pages > to be allocated and added to a list. They can be freed in bulk using > free_pages_bulk(). > > The API is not

Re: [PATCH v4 7/9] kentry: Add debugging checks for proper kentry API usage

2021-03-19 Thread Thomas Gleixner
On Fri, Mar 19 2021 at 17:17, Thomas Gleixner wrote: > On Wed, Mar 17 2021 at 11:12, Andy Lutomirski wrote: >> + >> +#define DEBUG_ENTRY_WARN_ONCE(condition, format...) do {} while (0) > > So we have a stub for !DEBUG > >> +static __always_inline void kentry_cpu_depth_add(unsigned int n) {} >>

[PATCH v12 8/9] drivers: thermal: tsens: Add support for ipq8064-tsens

2021-03-19 Thread Ansuel Smith
Add support for tsens present in ipq806x SoCs based on generic msm8960 tsens driver. Signed-off-by: Ansuel Smith Reviewed-by: Thara Gopinath --- drivers/thermal/qcom/tsens.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c index

[PATCH v12 7/9] drivers: thermal: tsens: Drop unused define for msm8960

2021-03-19 Thread Ansuel Smith
Drop unused define for msm8960 replaced by generic api and reg_field. Signed-off-by: Ansuel Smith Reviewed-by: Thara Gopinath --- drivers/thermal/qcom/tsens-8960.c | 24 +--- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/drivers/thermal/qcom/tsens-8960.c

[PATCH v12 9/9] dt-bindings: thermal: tsens: Document ipq8064 bindings

2021-03-19 Thread Ansuel Smith
Document the use of bindings used for msm8960 tsens based devices. msm8960 use the same gcc regs and is set as a child of the qcom gcc. Signed-off-by: Ansuel Smith Reviewed-by: Rob Herring --- .../bindings/thermal/qcom-tsens.yaml | 56 --- 1 file changed, 48

[PATCH v12 6/9] drivers: thermal: tsens: Replace custom 8960 apis with generic apis

2021-03-19 Thread Ansuel Smith
Rework calibrate function to use common function. Derive the offset from a missing hardcoded slope table and the data from the nvmem calib efuses. Drop custom get_temp function and use generic api. Signed-off-by: Ansuel Smith Acked-by: Thara Gopinath --- drivers/thermal/qcom/tsens-8960.c | 56

[PATCH v12 5/9] drivers: thermal: tsens: Fix bug in sensor enable for msm8960

2021-03-19 Thread Ansuel Smith
Device based on tsens VER_0 contains a hardware bug that results in some problem with sensor enablement. Sensor id 6-11 can't be enabled selectively and all of them must be enabled in one step. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 23 --- 1

[PATCH v12 4/9] drivers: thermal: tsens: Use init_common for msm8960

2021-03-19 Thread Ansuel Smith
Use init_common and drop custom init for msm8960. Signed-off-by: Ansuel Smith Reviewed-by: Thara Gopinath --- drivers/thermal/qcom/tsens-8960.c | 52 +-- 1 file changed, 1 insertion(+), 51 deletions(-) diff --git a/drivers/thermal/qcom/tsens-8960.c

[PATCH v12 3/9] drivers: thermal: tsens: Convert msm8960 to reg_field

2021-03-19 Thread Ansuel Smith
Convert msm9860 driver to reg_field to use the init_common function. Signed-off-by: Ansuel Smith Acked-by: Thara Gopinath --- drivers/thermal/qcom/tsens-8960.c | 80 ++- 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/qcom/tsens-8960.c

[PATCH v12 1/9] drivers: thermal: tsens: Add VER_0 tsens version

2021-03-19 Thread Ansuel Smith
VER_0 is used to describe device based on tsens version before v0.1. These device are devices based on msm8960 for example apq8064 or ipq806x. Signed-off-by: Ansuel Smith Reviewed-by: Thara Gopinath --- drivers/thermal/qcom/tsens.c | 145 ---

[PATCH v12 2/9] drivers: thermal: tsens: Don't hardcode sensor slope

2021-03-19 Thread Ansuel Smith
Function compute_intercept_slope hardcode the sensor slope to SLOPE_DEFAULT. Change this and use the default value only if a slope is not defined. This is needed for tsens VER_0 that has a hardcoded slope table. Signed-off-by: Ansuel Smith Reviewed-by: Thara Gopinath ---

Re: [Linuxarm] Re: [RFC v2] net: sched: implement TCQ_F_CAN_BYPASS for lockless qdisc

2021-03-19 Thread Cong Wang
On Thu, Mar 18, 2021 at 12:33 AM Yunsheng Lin wrote: > > On 2021/3/17 21:45, Jason A. Donenfeld wrote: > > On 3/17/21, Toke Høiland-Jørgensen wrote: > >> Cong Wang writes: > >> > >>> On Mon, Mar 15, 2021 at 2:07 PM Jakub Kicinski wrote: > > I thought pfifo was supposed to be

arch/mips/kernel/setup.c:47:39: error: conflicting types for '__appended_dtb'

2021-03-19 Thread kernel test robot
Hi Thomas, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 8b12a62a4e3ed4ae99c715034f557eb391d6b196 commit: b83ba0b9df56f8404ccc6ebcc7050fb8294f0f20 MIPS: of: Introduce helper function to get DTB date: 6 weeks

[PATCH v12 0/9] Add support for ipq8064 tsens

2021-03-19 Thread Ansuel Smith
This patchset convert msm8960 to reg_filed, use int_common instead of a custom function and fix wrong tsens get_temp function for msm8960. Ipq8064 SoCs tsens driver is based on 8960 tsens driver. Ipq8064 needs to be registered as a gcc child as the tsens regs on this platform are shared with the

Re: [PATCH 06/19] drm/amd/display/dc/calcs/dce_calcs: Move some large variables from the stack to the heap

2021-03-19 Thread Alex Deucher
+ Harry, Nick On Fri, Mar 19, 2021 at 4:24 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c: In function > ‘calculate_bandwidth’: > drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c:2016:1:

Re: [PATCH v30 01/12] landlock: Add object management

2021-03-19 Thread Kees Cook
On Tue, Mar 16, 2021 at 09:42:41PM +0100, Mickaël Salaün wrote: > From: Mickaël Salaün > > A Landlock object enables to identify a kernel object (e.g. an inode). > A Landlock rule is a set of access rights allowed on an object. Rules > are grouped in rulesets that may be tied to a set of

Re: [PATCH v7 0/6] x86: Improve Minimum Alternate Stack Size

2021-03-19 Thread Len Brown
On Wed, Mar 17, 2021 at 6:45 AM Ingo Molnar wrote: > > > * Ingo Molnar wrote: > > > > > * Chang S. Bae wrote: > > > > > During signal entry, the kernel pushes data onto the normal userspace > > > stack. On x86, the data pushed onto the user stack includes XSAVE state, > > > which has grown over

Re: [PATCH] power: supply: charger-manager: Fix a typo

2021-03-19 Thread Randy Dunlap
On Fri, 19 Mar 2021, Bhaskar Chowdhury wrote: s/systme/system/ Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap --- drivers/power/supply/charger-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/charger-manager.c

Re: [PATCH] SUNRPC: Output oversized frag reclen as ASCII if printable

2021-03-19 Thread kernel test robot
Hi Chris, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on nfs/linux-next] [also build test WARNING on net/master ipvs/master net-next/master nfsd/nfsd-next v5.12-rc3] [cannot apply to next-20210319] [If your patch is applied to the wrong git tree, kindly drop

Re: [PATCH] w1: slaves: Typo fixes

2021-03-19 Thread Randy Dunlap
On Fri, 19 Mar 2021, Bhaskar Chowdhury wrote: s/mesured/measured/ ...twice Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap --- drivers/w1/slaves/w1_therm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/w1/slaves/w1_therm.c

Re: [PATCH RFC 0/3] drivers/char: remove /dev/kmem for good

2021-03-19 Thread Steven Rostedt
On Fri, 19 Mar 2021 15:34:49 +0100 David Hildenbrand wrote: > Let's start a discussion if /dev/kmem is worth keeping around and > fixing/maintaining or if we should just remove it now for good. The last time I used /dev/kmem was in 2003. While in Germany, my home firewall (in the US) got

Re: [PATCH] MIPS: PCI: Fix a typo

2021-03-19 Thread Randy Dunlap
On Fri, 19 Mar 2021, Bhaskar Chowdhury wrote: s/packt/packet/ Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap --- arch/mips/pci/pci-xtalk-bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/pci/pci-xtalk-bridge.c

Re: sparc: clang: error: unknown argument: '-mno-fpu'

2021-03-19 Thread Nick Desaulniers
On Fri, Mar 19, 2021 at 4:56 AM Arnd Bergmann wrote: > > On Fri, Mar 19, 2021 at 12:38 PM John Paul Adrian Glaubitz > wrote: > > On 3/19/21 12:31 PM, Arnd Bergmann wrote: > > > On Fri, Mar 19, 2021 at 8:36 AM Naresh Kamboju > > > wrote: > > >> > > >> Linux mainline master build breaks for sparc

Re: [PATCH] microblaze: Fix a typo

2021-03-19 Thread Randy Dunlap
On Fri, 19 Mar 2021, Bhaskar Chowdhury wrote: s/storign/storing/ Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap --- arch/microblaze/lib/uaccess_old.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/microblaze/lib/uaccess_old.S

arch/powerpc/lib/sstep.c:1172:21: error: variable 'suffix' set but not used

2021-03-19 Thread kernel test robot
Hi Jordan, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 8b12a62a4e3ed4ae99c715034f557eb391d6b196 commit: 650b55b707fdfa764e9f2b81314d3eb4216fb962 powerpc: Add prefixed instructions to instruction data type date:

Re: [PATCH v4 5/9] kentry: Remove enter_from/exit_to_user_mode()

2021-03-19 Thread Thomas Gleixner
On Wed, Mar 17 2021 at 11:12, Andy Lutomirski wrote: > -/** > - * exit_to_user_mode - Fixup state when exiting to user mode > - * > - * Syscall/interrupt exit enables interrupts, but the kernel state is > - * interrupts disabled when this is invoked. Also tell RCU about it. > - * > - * 1) Trace

Re: [PATCH v4] mm: cma: support sysfs

2021-03-19 Thread Matthew Wilcox
On Fri, Mar 19, 2021 at 08:29:29PM +0300, Dmitry Osipenko wrote: > > +static ssize_t alloc_pages_success_show(struct kobject *kobj, > > + struct kobj_attribute *attr, char *buf) > > The indentations are still wrong. > > CHECK: Alignment should match open parenthesis > #321:

Re: [PATCH] sch_red: Fix a typo

2021-03-19 Thread Randy Dunlap
On Fri, 19 Mar 2021, Bhaskar Chowdhury wrote: s/recalcultion/recalculation/ Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap --- include/net/red.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/red.h b/include/net/red.h index

Re: [PATCH v4 4/9] kentry: Simplify the common syscall API

2021-03-19 Thread Thomas Gleixner
On Wed, Mar 17 2021 at 11:12, Andy Lutomirski wrote: > @@ -119,31 +119,12 @@ static inline __must_check int > arch_syscall_enter_tracehook(struct pt_regs *regs > void enter_from_user_mode(struct pt_regs *regs); > > /** > + * kentry_syscall_begin - Prepare to invoke a syscall handler > *

Re: [PATCH v1 1/1] ACPI: scan: Use unique number for instance_no

2021-03-19 Thread Andy Shevchenko
On Fri, Mar 19, 2021 at 06:00:38PM +0100, Rafael J. Wysocki wrote: > On Fri, Mar 12, 2021 at 5:02 PM Andy Shevchenko > wrote: > > > > Current mechanism of incrementing and decrementing plain integer > > to get a next free instance_no when creating an ACPI device is fragile. > > > > In case of hot

Re: [PATCH] dt: rockchip: rk3399: Add dynamic power coefficient for GPU

2021-03-19 Thread Robin Murphy
On 2021-03-19 14:35, Daniel Lezcano wrote: Hi Robin, On 19/03/2021 13:17, Robin Murphy wrote: On 2021-03-19 11:05, Daniel Lezcano wrote: The DTPM framework is looking for upstream SoC candidates to share the power numbers. We can see around different numbers but the one which seems to be

Re: [PATCH] PM/devfreq: event: A typo fix

2021-03-19 Thread Randy Dunlap
On Fri, 19 Mar 2021, Bhaskar Chowdhury wrote: s/devie/device/ Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap --- include/linux/devfreq-event.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/devfreq-event.h b/include/linux/devfreq-event.h

Re: [PATCH 5/6] dma-mapping/iommu: Add dma_set_max_opt_size()

2021-03-19 Thread John Garry
On 19/03/2021 17:00, Robin Murphy wrote: On 2021-03-19 13:25, John Garry wrote: Add a function to allow the max size which we want to optimise DMA mappings for. It seems neat in theory - particularly for packet-based interfaces that might have a known fixed size of data unit that they're

Re: [PATCH v30 12/12] landlock: Add user and kernel documentation

2021-03-19 Thread Kees Cook
On Tue, Mar 16, 2021 at 09:42:52PM +0100, Mickaël Salaün wrote: > From: Mickaël Salaün > > This documentation can be built with the Sphinx framework. Well, yes. :) Maybe describe what the documentation covers instead here. Regardless: yay docs! This is great. > [...] > +Bind mounts and

Re: [PATCH] docs: filesystems: Fix a mundane typo

2021-03-19 Thread Randy Dunlap
On Fri, 19 Mar 2021, Bhaskar Chowdhury wrote: s/provisoned/provisioned/ Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap --- Documentation/filesystems/vfat.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/filesystems/vfat.rst

Re: arm64: compiler_types.h:320:38: error: call to __compiletime_assert_417

2021-03-19 Thread Vlastimil Babka
On 3/19/21 4:19 PM, Naresh Kamboju wrote: > [This email landed to Spam for some reason, sending it again with modified > subject] > > While building arm64 kernel modules the following kernel warnings / > errors noticed on linux next 20210318 tag the gcc version is 7.3.0. > Build PASS with gcc-8,

Re: [PATCH] staging: rtl8188eu: Fix a typo

2021-03-19 Thread Randy Dunlap
On Fri, 19 Mar 2021, Bhaskar Chowdhury wrote: s/pasive/passive/ Also need to s/varable/variable/ Signed-off-by: Bhaskar Chowdhury --- drivers/staging/rtl8188eu/core/rtw_mlme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme.c

Re: [PATCH v10 10/16] KVM: x86: Introduce KVM_GET_SHARED_PAGES_LIST ioctl

2021-03-19 Thread Ashish Kalra
On Thu, Mar 11, 2021 at 12:48:07PM -0800, Steve Rutherford wrote: > On Thu, Mar 11, 2021 at 10:15 AM Ashish Kalra wrote: > > > > On Wed, Mar 03, 2021 at 06:54:41PM +, Will Deacon wrote: > > > [+Marc] > > > > > > On Tue, Mar 02, 2021 at 02:55:43PM +, Ashish Kalra wrote: > > > > On Fri, Feb

Re: [PATCH 3/3] static_call: Fix static_call_update() sanity check

2021-03-19 Thread Steven Rostedt
On Fri, 19 Mar 2021 13:57:38 +0100 Peter Zijlstra wrote: > Jessica, can you explain how !MODULE_UNLOAD is supposed to work? > Alternatives, jump_labels and static_call all can have relocations into > __exit code. Not loading it at all would be BAD. According to the description: " Without this

Re: [PATCH v4 18/19] coresight: sink: Add TRBE driver

2021-03-19 Thread Mathieu Poirier
On Thu, Feb 25, 2021 at 07:35:42PM +, Suzuki K Poulose wrote: > From: Anshuman Khandual > > Trace Buffer Extension (TRBE) implements a trace buffer per CPU which is > accessible via the system registers. The TRBE supports different addressing > modes including CPU virtual address and buffer

Re: [PATCH] blk-mq: Trivial typo fix

2021-03-19 Thread Randy Dunlap
On Fri, 19 Mar 2021, Bhaskar Chowdhury wrote: s/funtion/function/ Signed-off-by: Bhaskar Chowdhury The change is correct, but it doesn't help me when I try to read that function description. :( Acked-by: Randy Dunlap --- block/blk-mq-tag.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH v2 2/2] gpio: Add Realtek Otto GPIO support

2021-03-19 Thread Andy Shevchenko
On Fri, Mar 19, 2021 at 5:51 PM Sander Vanheule wrote: > On Wed, 2021-03-17 at 15:08 +0200, Andy Shevchenko wrote: > > On Mon, Mar 15, 2021 at 11:11 PM Sander Vanheule < > > san...@svanheule.net> wrote: ... > > > +#include > > > > Not sure why you need this? See below. > > > + return

Re: [PATCH] dm: ebs: Several typo fixes

2021-03-19 Thread Randy Dunlap
On Fri, 19 Mar 2021, Bhaskar Chowdhury wrote: s/retrievd/retrieved/ s/misalignement/misalignment/ s/funtion/function/ Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap --- drivers/md/dm-ebs-target.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

Re: [PATCH v30 10/12] selftests/landlock: Add user space tests

2021-03-19 Thread Kees Cook
On Tue, Mar 16, 2021 at 09:42:50PM +0100, Mickaël Salaün wrote: > From: Mickaël Salaün > > Test all Landlock system calls, ptrace hooks semantic and filesystem > access-control with multiple layouts. > > Test coverage for security/landlock/ is 93.6% of lines. The code not > covered only deals

Re: [RESEND PATCH] Kconfig: Move CONFIG_DEBUG_KMEMLEAK_TEST to samples/Kconfig

2021-03-19 Thread Catalin Marinas
On Thu, Mar 18, 2021 at 02:51:07PM +, chenjun (AM) wrote: > From: Chen Jun > > commit 1abbef4f51724fb11f09adf0e75275f7cb422a8a > ("mm,kmemleak-test.c: move kmemleak-test.c to samples dir") > make CONFIG_DEBUG_KMEMLEAK_TEST depend on CONFIG_SAMPLES implicitly. > And the dependency cannot be

Re: [PATCH v4] mm: cma: support sysfs

2021-03-19 Thread Dmitry Osipenko
19.03.2021 19:30, Minchan Kim пишет: > +static void cma_kobj_release(struct kobject *kobj) > +{ > + struct cma_kobject *cma_kobj = container_of(kobj, struct cma_kobject, > kobj); > + > + kfree(cma_kobj); > +} Oh, wait.. I think this kfree wrong since cma_kobj belongs to the array.

Re: [PATCH] average: Mundane typo fix

2021-03-19 Thread Randy Dunlap
On Fri, 19 Mar 2021, Bhaskar Chowdhury wrote: s/funtions/functions/ Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap --- include/linux/average.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/average.h b/include/linux/average.h index

Re: [RESEND 00/53] Rid GPU from W=1 warnings

2021-03-19 Thread Daniel Vetter
On Fri, Mar 19, 2021 at 08:24:07AM +, Lee Jones wrote: > On Thu, 18 Mar 2021, Daniel Vetter wrote: > > > On Wed, Mar 17, 2021 at 9:32 PM Daniel Vetter wrote: > > > > > > On Wed, Mar 17, 2021 at 9:17 AM Lee Jones wrote: > > > > > > > > On Thu, 11 Mar 2021, Lee Jones wrote: > > > > > > > > >

Re: arm64: compiler_types.h:320:38: error: call to __compiletime_assert_417

2021-03-19 Thread Catalin Marinas
On Fri, Mar 19, 2021 at 08:49:07PM +0530, Naresh Kamboju wrote: > [This email landed to Spam for some reason, sending it again with modified > subject] > > While building arm64 kernel modules the following kernel warnings / > errors noticed on linux next 20210318 tag the gcc version is 7.3.0. >

Re: [PATCH] fs/inode.c: Fix a rudimentary typo

2021-03-19 Thread Randy Dunlap
On Fri, 19 Mar 2021, Bhaskar Chowdhury wrote: s/funtion/function/ Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap --- fs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/inode.c b/fs/inode.c index a047ab306f9a..38c2e6b58dc4 100644 --- a/fs/inode.c

Re: [PATCH 02/10] ARM: disable CONFIG_IDE in footbridge_defconfig

2021-03-19 Thread Russell King - ARM Linux admin
On Fri, Mar 19, 2021 at 05:07:53PM +, Russell King - ARM Linux admin wrote: > On Thu, Mar 18, 2021 at 05:56:58AM +0100, Christoph Hellwig wrote: > > footbridge_defconfig enables CONFIG_IDE but no actual host controller > > driver, so just drop it. > > I have been using the Cypress 82C693 IDE

[PATCH v4 1/3] mm: disable LRU pagevec during the migration temporarily

2021-03-19 Thread Minchan Kim
LRU pagevec holds refcount of pages until the pagevec are drained. It could prevent migration since the refcount of the page is greater than the expection in migration logic. To mitigate the issue, callers of migrate_pages drains LRU pagevec via migrate_prep or lru_add_drain_all before

[PATCH v4 3/3] mm: fs: Invalidate BH LRU during page migration

2021-03-19 Thread Minchan Kim
Pages containing buffer_heads that are in one of the per-CPU buffer_head LRU caches will be pinned and thus cannot be migrated. This can prevent CMA allocations from succeeding, which are often used on platforms with co-processors (such as a DSP) that can only use physically contiguous memory. It

[PATCH v4 2/3] mm: replace migrate_[prep|finish] with lru_cache_[disable|enable]

2021-03-19 Thread Minchan Kim
Currently, migrate_[prep|finish] is merely a wrapper of lru_cache_[disable|enable]. There is not much to gain from having additional abstraction. Use lru_cache_[disable|enable] instead of migrate_[prep|finish], which would be more descriptive. note: migrate_prep_local in compaction.c changed

Re: [PATCH tip/core/rcu 1/3] rcu: Provide polling interfaces for Tree RCU grace periods

2021-03-19 Thread Paul E. McKenney
On Fri, Mar 19, 2021 at 02:58:54PM +0100, Frederic Weisbecker wrote: > On Wed, Mar 03, 2021 at 04:26:30PM -0800, paul...@kernel.org wrote: > > From: "Paul E. McKenney" > > > > There is a need for a non-blocking polling interface for RCU grace > > periods, so this commit supplies

Re: [PATCH 1/7] mm/page_alloc: Move gfp_allowed_mask enforcement to prepare_alloc_pages

2021-03-19 Thread Mel Gorman
On Fri, Mar 19, 2021 at 05:11:39PM +0100, Vlastimil Babka wrote: > On 3/12/21 4:43 PM, Mel Gorman wrote: > > __alloc_pages updates GFP flags to enforce what flags are allowed > > during a global context such as booting or suspend. This patch moves the > > enforcement from __alloc_pages to

Re: [PATCH v12 1/2] scsi: ufs: Enable power management for wlun

2021-03-19 Thread Adrian Hunter
On 19/03/21 2:35 am, Asutosh Das wrote: > During runtime-suspend of ufs host, the scsi devices are > already suspended and so are the queues associated with them. > But the ufs host sends SSU to wlun during its runtime-suspend. > During the process blk_queue_enter checks if the queue is not in >

Re: [PATCH v26 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver

2021-03-19 Thread Ben Levinsky
-Original Message- From: Mathieu Poirier Date: Wednesday, March 17, 2021 at 9:27 AM To: Ben Levinsky Cc: "devicet...@vger.kernel.org" , "linux-remotep...@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-ker...@lists.infradead.org" , Michal Simek , "Ed T. Mooring"

Re: [PATCH v4] hwmon: corsair-psu: add support for critical values

2021-03-19 Thread Guenter Roeck
On 3/19/21 1:58 AM, Wilken Gottwalt wrote: > On Thu, 18 Mar 2021 12:01:50 -0700 > Guenter Roeck wrote: > >> On Thu, Mar 18, 2021 at 03:17:14PM +0100, Wilken Gottwalt wrote: >>> Adds support for reading the critical values of the temperature sensors >>> and the rail sensors (voltage and current)

Re: [PATCH v4] mm: cma: support sysfs

2021-03-19 Thread Dmitry Osipenko
19.03.2021 20:41, Dmitry Osipenko пишет: > 19.03.2021 20:29, Dmitry Osipenko пишет: >> +void cma_sysfs_alloc_pages_count(struct cma *cma, size_t count) >> +{ >> +atomic64_add(count, >nr_pages_succeeded); >> +} >> + >> +void cma_sysfs_fail_pages_count(struct cma *cma, size_t count) >> +{ >> +

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