Linux 4.9.246

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

Re: Linux 4.4.246

2020-11-24 Thread Greg Kroah-Hartman
diff --git a/Makefile b/Makefile index 2d9e5c4688a4..c42ada4e8846 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 4 -SUBLEVEL = 245 +SUBLEVEL = 246 EXTRAVERSION = NAME = Blurry Fish Butt diff --git a/arch/arm/boot/dts/imx50-evk.dts

Linux 4.4.246

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

Re: [PATCH v11 4/9] mm: introduce memfd_secret system call to create "secret" memory areas

2020-11-24 Thread Mike Rapoport
On Tue, Nov 24, 2020 at 10:59:48AM +, Catalin Marinas wrote: > Hi Mike, > > On Tue, Nov 24, 2020 at 11:25:51AM +0200, Mike Rapoport wrote: > > +static vm_fault_t secretmem_fault(struct vm_fault *vmf) > > +{ > > + struct address_space *mapping = vmf->vma->vm_file->f_mapping; ... > > + > >

Re: kernel BUG at fs/ext4/inode.c:LINE!

2020-11-24 Thread Hugh Dickins
On Mon, 23 Nov 2020, Hugh Dickins wrote: > On Mon, 23 Nov 2020, Linus Torvalds wrote: > > > > IOW, why couldn't we just make the __test_set_page_writeback() > > increment the page count if the writeback flag wasn't already set, and > > then make the end_page_writeback() do a put_page() after it

Re: [PATCH] syscalls: Document OCI seccomp filter interactions & workaround

2020-11-24 Thread Christoph Hellwig
On Tue, Nov 24, 2020 at 03:08:09PM +0100, Florian Weimer wrote: > Do you categorically reject the general advice, or specific instances as > well? All of the above. Really, if people decided to use seccompt to return nonsensical error codes we should not work around that in new kernel ABIs.

Re: [PATCH] syscalls: Document OCI seccomp filter interactions & workaround

2020-11-24 Thread Christoph Hellwig
On Tue, Nov 24, 2020 at 03:08:05PM +0100, Mark Wielaard wrote: > For valgrind the issue is statx which we try to use before falling back > to stat64, fstatat or stat (depending on architecture, not all define > all of these). The problem with these fallbacks is that under some > containers

Re: [PATCH 2/2] mm/madvise: add process_madvise MADV_DONTNEER support

2020-11-24 Thread Suren Baghdasaryan
On Tue, Nov 24, 2020 at 5:42 AM Oleg Nesterov wrote: > > On 11/23, Suren Baghdasaryan wrote: > > > > + if (madvise_destructive(behavior)) { > > + /* Allow destructive madvise only on a dying processes */ > > + if (!signal_group_exit(task->signal)) { > >

Re: [PATCH 2/2] mm/vmalloc: rework the drain logic

2020-11-24 Thread Uladzislau Rezki
> >> >> > >> >> That's the typical long latency avoidance method. > >> >> > >> >> > The question is, which value we should use as a batch_threshold: 100, > >> >> > 1000, etc. > >> >> > >> >> I think we can do some measurement to determine it? > >> >> > >> > Hmm.. looking at it one more time i

Re: [PATCH v1] spi: fix client driver breakages when using GPIO descriptors

2020-11-24 Thread Mark Brown
On Tue, Nov 24, 2020 at 04:21:48PM +0100, Linus Walleij wrote: > > What people think they were sold was the idea that they shouldn't have > > to write driver code or upstream things, something with more AML like > > capabilities (not realising that AML works partly because ACPI hugely > >

Re: [PATCH] soc: qcom: Introduce debugfs interface to smem

2020-11-24 Thread Bjorn Andersson
On Tue 24 Nov 09:34 CST 2020, Vinod Koul wrote: > On 22-11-20, 23:21, Bjorn Andersson wrote: > > Every now and then it's convenient to be able to inspect the content of > > SMEM items. Rather than carrying some hack locally let's upstream a > > driver that when inserted exposes a debugfs

Re: [PATCH] usbnet: ipheth: fix connectivity with iOS 14

2020-11-24 Thread Jakub Kicinski
On Tue, 24 Nov 2020 11:41:40 +0100 Yves-Alexis Perez wrote: > On Sat, 2020-11-21 at 14:03 -0800, Jakub Kicinski wrote: > > Applied to net with the typo fixed, thanks! > > Thanks! > > Is there any chance it'll be in 5.10 or will it have to wait for the 5.11 > merge window? It'll be in

[FEATURE REQUEST] tracing: Have event filters handle dynamic arrays

2020-11-24 Thread Steven Rostedt
Hi Tom, Daniel asked about filtering bitmasks, something like: cpumask != 0xff Looking into the code, I realized that bitmasks are dynamic arrays, and there's no logic in the filter code to handle dynamic arrays of anything other than 'char' type (which are dynamic strings). If you have any

Re: [PATCH] drm/amd/powerplay: fix spelling mistake "smu_state_memroy_block" -> "smu_state_memory_block"

2020-11-24 Thread Alex Deucher
Applied. Thanks! Alex On Mon, Nov 23, 2020 at 7:42 PM Quan, Evan wrote: > > [AMD Official Use Only - Internal Distribution Only] > > Reviewed-by: Evan Quan > > -Original Message- > From: Colin King > Sent: Monday, November 23, 2020 6:54 PM > To: Deucher, Alexander ; Koenig, Christian

Re: [PATCH v5 0/9] "Task_isolation" mode

2020-11-24 Thread Tom Rix
On 11/23/20 9:42 AM, Alex Belits wrote: > This is an update of task isolation work that was originally done by > Chris Metcalf and maintained by him until > November 2017. It is adapted to the current kernel and cleaned up to > implement its functionality in a more complete and cleaner manner.

Re: How to enable auto-suspend by default

2020-11-24 Thread Greg KH
On Tue, Nov 24, 2020 at 05:02:18PM +0100, Bastien Nocera wrote: > On Wed, 2020-11-11 at 17:32 +0100, Greg KH wrote: > > On Wed, Nov 11, 2020 at 04:03:30PM +, Limonciello, Mario wrote: > > > > > > Given we're effectively ending up with the combination of > > > > > > runtime PM turned > > > > >

Re: [PATCH 40/40] drm/amd/amdgpu/gmc_v9_0: Suppy some missing function doc descriptions

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:21 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:382:23: warning: > ‘ecc_umc_mcumc_status_addrs’ defined but not used [-Wunused-const-variable=] > drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:720: warning:

Re: kernel BUG at fs/ext4/inode.c:LINE!

2020-11-24 Thread Hugh Dickins
On Tue, 24 Nov 2020, Matthew Wilcox wrote: > On Mon, Nov 23, 2020 at 08:07:24PM -0800, Hugh Dickins wrote: > > > > Then on crashing a second time, realized there's a stronger reason against > > that approach. If my testing just occasionally crashes on that check, > > when the page is reused for

Re: [PATCH 5/6] media: uvcvideo: Use dma_alloc_noncontiguos API

2020-11-24 Thread Robin Murphy
On 2020-11-24 15:38, Ricardo Ribalda wrote: On architectures where the is no coherent caching such as ARM use the dma_alloc_noncontiguos API and handle manually the cache flushing using dma_sync_single(). With this patch on the affected architectures we can measure up to 20x performance

Re: [PATCH 39/40] drm/amd/amdgpu/gmc_v9_0: Remove unused table 'ecc_umc_mcumc_status_addrs'

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:20 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c:382:23: warning: > ‘ecc_umc_mcumc_status_addrs’ defined but not used [-Wunused-const-variable=] > > Cc: Alex Deucher > Cc: "Christian König" > Cc:

Re: [PATCH v2 04/10] seccomp: Migrate to use SYSCALL_WORK flag

2020-11-24 Thread Dmitry Osipenko
16.11.2020 20:42, Gabriel Krisman Bertazi пишет: > When one the generic syscall entry code, use the syscall_work field in > struct thread_info and specific SYSCALL_WORK flags to setup this syscall > work. This flag has the advantage of being architecture independent. > > Users of the flag

RE: Linux 5.10-rc4; graphics alignment

2020-11-24 Thread David Laight
From: David Laight > Sent: 20 November 2020 15:39 > > From: Thomas Zimmermann > > Sent: 20 November 2020 13:42 > ... > > I did a diff from v5.10-rc4 to drm-tip to look for suspicious changes. > > Some candidates are > > > >8e3784dfef8a ("drm/ast: Reload gamma LUT after changing primary > >

Re: [PATCH 37/40] drm/amd/amdgpu/gmc_v8_0: Fix more issues attributed to copy/paste

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:21 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c:618: warning: Function parameter or > member 'flush_type' not described in 'gmc_v8_0_flush_gpu_tlb_pasid' > drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c:618:

Re: [PATCH 36/40] drm/amd/amdgpu/gmc_v7_0: Add some missing kernel-doc descriptions

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:20 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c:433: warning: Function parameter or > member 'flush_type' not described in 'gmc_v7_0_flush_gpu_tlb_pasid' > drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c:433:

Re: [PATCH v2 2/6] genirq: Allow an interrupt to be marked as 'raw'

2020-11-24 Thread Peter Zijlstra
On Tue, Nov 24, 2020 at 02:14:45PM +, Marc Zyngier wrote: > Some interrupts (such as the rescheduling IPI) rely on not going through > the irq_enter()/irq_exit() calls. To distinguish such interrupts, add > a new IRQ flag that allows the low-level handling code to sidestep the > enter()/exit()

Re: [PATCH v2 1/1] ath10k: add option for chip-id based BDF selection

2020-11-24 Thread Doug Anderson
Hi, On Tue, Nov 24, 2020 at 1:19 AM Rakesh Pillai wrote: > > > -Original Message- > > From: Doug Anderson > > Sent: Tuesday, November 24, 2020 6:27 AM > > To: Abhishek Kumar > > Cc: Kalle Valo ; Rakesh Pillai > > ; LKML ; ath10k > > ; Brian Norris ; > > linux-wireless ; David S. Miller

Re: [PATCH 4/6] Drivers: hv: vmbus: Avoid use-after-free in vmbus_onoffer_rescind()

2020-11-24 Thread Wei Liu
On Wed, Nov 18, 2020 at 03:36:47PM +0100, Andrea Parri (Microsoft) wrote: > When channel->device_obj is non-NULL, vmbus_onoffer_rescind() could > invoke put_device(), that will eventually release the device and free > the channel object (cf. vmbus_device_release()). However, a pointer > to the

What to do with `BERT: Error records from previous boot`?

2020-11-24 Thread Paul Menzel
Dear Linux folks, On the Intel Tiger Lake Dell XPS 13 9310 Linux 5.9.9 from Debian sid/unstable logged the messages below. Please find the whole log in the Linux bug tracker [1]. ``` kernel: BERT: Error records from previous boot: kernel: [Hardware Error]: event severity: fatal kernel:

Re: [PATCH] hv_netvsc: Validate number of allocated sub-channels

2020-11-24 Thread Wei Liu
On Wed, Nov 18, 2020 at 05:37:15PM -0800, Jakub Kicinski wrote: > On Wed, 18 Nov 2020 16:33:10 +0100 Andrea Parri (Microsoft) wrote: > > Lack of validation could lead to out-of-bound reads and information > > leaks (cf. usage of nvdev->chan_table[]). Check that the number of > > allocated

Re: [PATCH 2/2] remoteproc: qcom_q6v5_mss: map/unmap MBA region before/after use

2020-11-24 Thread Bjorn Andersson
On Wed 04 Nov 01:03 CST 2020, Sibi Sankar wrote: > The application processor accessing the MBA region after assigning it to > the remote Q6 would lead to an XPU violation. Fix this by un-mapping the > MBA region post firmware copy and MBA text log dumps. > > Signed-off-by: Sibi Sankar

Re: [PATCH 34/40] drm/amd/amdgpu/uvd_v4_2: Add one and remove another function param description

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:20 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c:448: warning: Function parameter or > member 'flags' not described in 'uvd_v4_2_ring_emit_fence' > drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c:448: warning:

Re: [PATCH 33/40] drm/amd/amdgpu/cik_sdma: Add one and remove another function param description

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:20 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/cik_sdma.c:282: warning: Function parameter or > member 'flags' not described in 'cik_sdma_ring_emit_fence' > drivers/gpu/drm/amd/amdgpu/cik_sdma.c:282: warning:

Re: [RFC PATCH 00/18] Microsoft Hypervisor root partition ioctl interface

2020-11-24 Thread Wei Liu
On Fri, Nov 20, 2020 at 04:30:19PM -0800, Nuno Das Neves wrote: > This patch series provides a userspace interface for creating and running > guest > virtual machines while running on the Microsoft Hypervisor [0]. > > Since managing guest machines can only be done when Linux is the root >

Re: [EXT] Re: [PATCH v1 1/2] mmc: Support kmsg dumper based on pstore/blk

2020-11-24 Thread Christoph Hellwig
On Tue, Nov 24, 2020 at 03:40:21PM +0100, Ulf Hansson wrote: > It looks like Christoph is planning for some rewrite of the pstore > code, so let's see what that means in regards to this. Here is what I posted last month: http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/pstore

Re: [PATCH 30/40] drm/amd/include/dimgrey_cavefish_ip_offset: Mark top-level IP_BASE as __maybe_unused

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:20 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > In file included from > drivers/gpu/drm/amd/amdgpu/dimgrey_cavefish_reg_init.c:28: > drivers/gpu/drm/amd/amdgpu/../include/dimgrey_cavefish_ip_offset.h:151:29: > warning: ‘UMC_BASE’ defined

[RFC v2 1/1] vfio/platform: add support for msi

2020-11-24 Thread Vikas Gupta
MSI support for platform devices. Signed-off-by: Vikas Gupta --- drivers/vfio/platform/vfio_platform_common.c | 99 ++- drivers/vfio/platform/vfio_platform_irq.c | 260 +- drivers/vfio/platform/vfio_platform_private.h | 16 ++ include/uapi/linux/vfio.h

[RFC, v2 0/1] msi support for platform devices

2020-11-24 Thread Vikas Gupta
This RFC adds support for MSI for platform devices. MSI block is added as an ext irq along with the existing wired interrupt implementation. Changes from: - v1 to v2: 1) IRQ allocation has been implemented as below:

Re: [RFC PATCH 12/18] virt/mshv: run vp ioctl and isr

2020-11-24 Thread Wei Liu
On Fri, Nov 20, 2020 at 04:30:31PM -0800, Nuno Das Neves wrote: [...] > diff --git a/virt/mshv/mshv_main.c b/virt/mshv/mshv_main.c > index c9445d2edb37..7ddb66d260ce 100644 > --- a/virt/mshv/mshv_main.c > +++ b/virt/mshv/mshv_main.c > @@ -17,6 +17,7 @@ > #include > #include > #include >

Re: [PATCH 29/40] drm/amd/include/vangogh_ip_offset: Mark top-level IP_BASE as __maybe_unused

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:20 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > In file included from drivers/gpu/drm/amd/amdgpu/vangogh_reg_init.c:28: > drivers/gpu/drm/amd/amdgpu/../include/vangogh_ip_offset.h:210:29: warning: > ‘USB_BASE’ defined but not used

Re: [PATCH 28/40] drm/amd/include/sienna_cichlid_ip_offset: Mark top-level IP_BASE as __maybe_unused

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:20 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > In file included from > drivers/gpu/drm/amd/amdgpu/sienna_cichlid_reg_init.c:28: > drivers/gpu/drm/amd/amdgpu/../include/sienna_cichlid_ip_offset.h:186:29: > warning: ‘USB0_BASE’ defined

Re: [PATCH 27/40] drm/amd/include/navi12_ip_offset: Mark top-level IP_BASE as __maybe_unused

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:20 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > In file included from drivers/gpu/drm/amd/amdgpu/navi12_reg_init.c:27: > drivers/gpu/drm/amd/amdgpu/../include/navi12_ip_offset.h:179:29: warning: > ‘USB0_BASE’ defined but not used

Re: [PATCH -tip 19/32] entry/idle: Enter and exit kernel protection during idle entry and exit

2020-11-24 Thread Peter Zijlstra
On Tue, Nov 17, 2020 at 06:19:49PM -0500, Joel Fernandes (Google) wrote: > Add a generic_idle_{enter,exit} helper function to enter and exit kernel > protection when entering and exiting idle, respectively. > > While at it, remove a stale RCU comment. > > Reviewed-by: Alexandre Chartre >

Re: [PATCH 26/40] drm/amd/include/navi14_ip_offset: Mark top-level IP_BASE as __maybe_unused

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:20 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > In file included from drivers/gpu/drm/amd/amdgpu/navi14_reg_init.c:27: > drivers/gpu/drm/amd/amdgpu/../include/navi14_ip_offset.h:179:29: warning: > ‘USB0_BASE’ defined but not used

Re: [PATCH 25/40] drm/amd/include/arct_ip_offset: Mark top-level IP_BASE definition as __maybe_unused

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:20 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > In file included from drivers/gpu/drm/amd/amdgpu/arct_reg_init.c:27: > drivers/gpu/drm/amd/amdgpu/../include/arct_ip_offset.h:227:29: warning: > ‘DBGU_IO_BASE’ defined but not used

Re: [PATCH 24/40] drm/amd/include/navi10_ip_offset: Mark top-level IP_BASE as __maybe_unused

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:20 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > In file included from drivers/gpu/drm/amd/amdgpu/navi10_reg_init.c:27: > drivers/gpu/drm/amd/amdgpu/../include/navi10_ip_offset.h:127:29: warning: > ‘UMC_BASE’ defined but not used

Re: [PATCH 23/40] drm/amd/include/vega20_ip_offset: Mark top-level IP_BASE definition as __maybe_unused

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:20 AM Lee Jones wrote: > > In file included from drivers/gpu/drm/amd/amdgpu/vega20_reg_init.c:27: > drivers/gpu/drm/amd/amdgpu/../include/vega20_ip_offset.h:154:29: warning: > ‘XDMA_BASE’ defined but not used [-Wunused-const-variable= > 154 | static const struct

[PATCH v4 3/3] thermal: power allocator: change the 'k_*' always in estimate_pid_constants()

2020-11-24 Thread Lukasz Luba
The PID coefficients should be estimated again when there was a change to sustainable power value made by user. This change removes unused argument 'force' and makes the function ready for such updates. Signed-off-by: Lukasz Luba --- drivers/thermal/gov_power_allocator.c | 28

[PATCH v4 2/3] thermal: power allocator: refactor sustainable power estimation

2020-11-24 Thread Lukasz Luba
The sustainable power value might come from the Device Tree or can be estimated in run time. The sustainable power might be updated by the user via sysfs interface, which should trigger new estimation of PID coefficients. There is no need to estimate it every time when the governor is called and

Re: [PATCH 22/40] drm/amd/amdgpu/dce_v6_0: Fix formatting and missing parameter description issues

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:20 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/dce_v6_0.c:192: warning: Function parameter or > member 'async' not described in 'dce_v6_0_page_flip' > drivers/gpu/drm/amd/amdgpu/dce_v6_0.c:1050: warning:

REASON FOR WRITING YOU

2020-11-24 Thread Mary Jane Kallon
Dear, How is everything with you today? I got your contact from a directory and picked interest to communicate you by faith, though we have not met before, I believe we can achieve something together. My husband died few years ago after battling with brain cancer, before his death, he

[PATCH v4 1/3] thermal: power allocator: change the 'k_i' coefficient estimation

2020-11-24 Thread Lukasz Luba
Intelligent Power Allocation (IPA) is built around the PID controller concept. The initialization code tries to setup the environment based on the information available in DT or estimate the value based on minimum power reported by each of the cooling device. The estimation will have an impact on

[PATCH v4 0/3] Improve the estimations in Intelligent Power Allocation

2020-11-24 Thread Lukasz Luba
is in an abstract scale. Do the estimation of sustainable power only once and avoid expensive calculation every time the IPA is called. Do the estimation of PID constants when there was user update via sysfs to sustainable power. The patch set should apply on top next-20201124 Changes: v4: - added new

Re: [PATCH -tip 18/32] kernel/entry: Add support for core-wide protection of kernel-mode

2020-11-24 Thread Peter Zijlstra
On Tue, Nov 17, 2020 at 06:19:48PM -0500, Joel Fernandes (Google) wrote: > Core-scheduling prevents hyperthreads in usermode from attacking each > other, but it does not do anything about one of the hyperthreads > entering the kernel for any reason. This leaves the door open for MDS > and L1TF

Re: [PATCH 21/40] drm/amd/amdgpu/uvd_v3_1: Fix-up some documentation issues

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:20 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c:91: warning: Function parameter or > member 'job' not described in 'uvd_v3_1_ring_emit_ib' > drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c:91: warning:

Re: [PATCH 117/141] rtl8xxxu: Fix fall-through warnings for Clang

2020-11-24 Thread Gustavo A. R. Silva
On Fri, Nov 20, 2020 at 04:39:42PM -0500, Jes Sorensen wrote: > On 11/20/20 1:38 PM, Gustavo A. R. Silva wrote: > > In preparation to enable -Wimplicit-fallthrough for Clang, fix > > multiple warnings by replacing /* fall through */ comments with > > the new pseudo-keyword macro fallthrough;

Re: [PATCH 16/40] drm/amd/amdgpu/si_dma: Fix a bunch of function documentation issues

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:19 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/si_dma.c:92: warning: Function parameter or > member 'addr' not described in 'si_dma_ring_emit_fence' > drivers/gpu/drm/amd/amdgpu/si_dma.c:92: warning: Function

Re: [PATCH 17/40] drm/amd/amdgpu/gfx_v6_0: Supply description for 'gfx_v6_0_ring_test_ib()'s 'timeout' param

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:19 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c:1903: warning: Function parameter or > member 'timeout' not described in 'gfx_v6_0_ring_test_ib' > > Cc: Alex Deucher > Cc: "Christian König" > Cc:

Re: [PATCH 09/40] drm/amd/amdgpu/gfx_v7_0: Clean-up a bunch of kernel-doc related issues

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:20 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c:1590: warning: Function parameter or > member 'instance' not described in 'gfx_v7_0_select_se_sh' > drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c:1788:

Re: [PATCH 08/40] drm/amd/amdgpu/cik_sdma: Supply some missing function param descriptions

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:19 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/cik_sdma.c:226: warning: Function parameter or > member 'job' not described in 'cik_sdma_ring_emit_ib' > drivers/gpu/drm/amd/amdgpu/cik_sdma.c:226: warning:

Re: [PATCH 1/3] perf/core: Flush PMU internal buffers for per-CPU events

2020-11-24 Thread Liang, Kan
On 11/24/2020 12:42 AM, Madhavan Srinivasan wrote: On 11/24/20 10:21 AM, Namhyung Kim wrote: Hello, On Mon, Nov 23, 2020 at 8:00 PM Michael Ellerman wrote: Namhyung Kim writes: Hi Peter and Kan, (Adding PPC folks) On Tue, Nov 17, 2020 at 2:01 PM Namhyung Kim wrote: Hello, On

Re: How to enable auto-suspend by default

2020-11-24 Thread Bastien Nocera
On Wed, 2020-11-11 at 17:32 +0100, Greg KH wrote: > On Wed, Nov 11, 2020 at 04:03:30PM +, Limonciello, Mario wrote: > > > > > Given we're effectively ending up with the combination of > > > > > runtime PM turned > > > > > on by udev rules, do we need something like this for that ID: > > > > >

Re: [PATCH 07/40] drm/amd/amdgpu/dce_v8_0: Supply description for 'async'

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:19 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/dce_v8_0.c:185: warning: Function parameter or > member 'async' not described in 'dce_v8_0_page_flip' > > Cc: Alex Deucher > Cc: "Christian König" > Cc: David

Re: [PATCH 1/1] tools/bpftool: fix error return value in build_btf_type_table()

2020-11-24 Thread Yonghong Song
On 11/24/20 2:41 AM, Zhen Lei wrote: An appropriate return value should be set on the failed path. Reported-by: Hulk Robot Signed-off-by: Zhen Lei LGTM. Acked-by: Yonghong Song Also this is a bug fix. It should probably be targeted to bpf tree. So, Fixes: 4d374ba0bf30 ("tools:

[PATCH v2 net] ptp: clockmatrix: bug fix for idtcm_strverscmp

2020-11-24 Thread min.li.xe
From: Min Li Feed kstrtou8 with NULL terminated string. Changes since v1: -Use sscanf to get rid of adhoc string parse. Signed-off-by: Min Li --- drivers/ptp/ptp_clockmatrix.c | 53 +++ 1 file changed, 18 insertions(+), 35 deletions(-) diff --git

Re: [PATCH 06/40] drm/amd/amdgpu/uvd_v4_2: Fix some kernel-doc misdemeanours

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:19 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c:157: warning: Function parameter or > member 'handle' not described in 'uvd_v4_2_hw_init' > drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c:157: warning: Excess

Re: [Freedreno] [PATCH 3/3] drm/msm/dpu: add support for clk and bw scaling for display

2020-11-24 Thread Amit Pundir
Hi Kalyan, On Tue, 24 Nov 2020 at 18:27, wrote: > > On 2020-11-08 23:25, Amit Pundir wrote: > > On Tue, 4 Aug 2020 at 21:09, Rob Clark wrote: > >> > >> On Thu, Jul 16, 2020 at 4:36 AM Kalyan Thota > >> wrote: > >> > > >> > This change adds support to scale src clk and bandwidth as > >> > per

[PATCH v3 1/2] fpga: dfl: refactor cci_enumerate_feature_devs()

2020-11-24 Thread matthew . gerlach
From: Matthew Gerlach In preparation of looking for dfls based on a vendor specific pcie capability, move code that assumes Bar0/offset0 as start of DFL to its own function. Signed-off-by: Matthew Gerlach --- v3: no change v2: remove spurious blank lines rename find_dfl_in_bar0 to

[PATCH v3 0/2] fpga: dfl: optional VSEC for start of dfl

2020-11-24 Thread matthew . gerlach
From: Matthew Gerlach The start of a Device Feature List (DFL) is currently assumed to be at Bar0/Offset 0 on the PCIe bus by drivers/fpga/dfl-pci.c. This patchset adds support for the start one or more DFLs to be specified in a Vendor-Specific Capability (VSEC) structure in PCIe config space.

[PATCH v3 2/2] fpga: dfl: look for vendor specific capability

2020-11-24 Thread matthew . gerlach
From: Matthew Gerlach A DFL may not begin at offset 0 of BAR 0. A PCIe vendor specific capability can be used to specify the start of a number of DFLs. Signed-off-by: Matthew Gerlach --- v3: Add text and ascii art to documentation. Ensure not to exceed PCIe config space in loop. v2:

Re: [PATCH v6 17/17] RFC: mm: add mmu_notifier argument to follow_pfn

2020-11-24 Thread Jason Gunthorpe
On Tue, Nov 24, 2020 at 03:28:14PM +0100, Daniel Vetter wrote: > On Fri, Nov 20, 2020 at 02:30:29PM -0400, Jason Gunthorpe wrote: > > On Thu, Nov 19, 2020 at 03:41:46PM +0100, Daniel Vetter wrote: > > > @@ -4805,21 +4824,15 @@ EXPORT_SYMBOL(follow_pte_pmd); > > > * Return: zero and the pfn at

Re: How to enable auto-suspend by default

2020-11-24 Thread Bastien Nocera
On Tue, 2020-11-24 at 14:37 +0200, Mathias Nyman wrote: > > I don't think we are ready to enable runtime pm as default for all > Intel xHCI controllers. > The risk of xHCI not waking up when user plugs a mouse/keyboard, > making the system unusable > just seems too high compared to the

Re: [PATCH 04/40] drm/amd/amdgpu/amdgpu_virt: Correct possible copy/paste or doc-rot misnaming issue

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:20 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:115: warning: Function parameter or > member 'adev' not described in 'amdgpu_virt_request_full_gpu' > drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c:115:

Re: [PATCH 01/40] drm/radeon/radeon_device: Consume our own header where the prototypes are located

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:19 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/radeon/radeon_device.c:637:6: warning: no previous prototype > for ‘radeon_device_is_virtual’ [-Wmissing-prototypes] > > Cc: Alex Deucher > Cc: "Christian König" > Cc:

[PATCH v4 14/14] arm64: Remove logic to kill 32-bit tasks on 64-bit-only cores

2020-11-24 Thread Will Deacon
The scheduler now knows enough about these braindead systems to place 32-bit tasks accordingly, so throw out the safety checks and allow the ret-to-user path to avoid do_notify_resume() if there is nothing to do. Signed-off-by: Will Deacon --- arch/arm64/kernel/process.c | 14 +-

[PATCH v4 13/14] arm64: Implement arch_task_cpu_possible_mask()

2020-11-24 Thread Will Deacon
Provide an implementation of arch_task_cpu_possible_mask() so that we can prevent 64-bit-only cores being added to the 'cpus_mask' for compat tasks on systems with mismatched 32-bit support at EL0, Signed-off-by: Will Deacon --- arch/arm64/include/asm/mmu_context.h | 13 + 1 file

[PATCH v4 11/14] sched: Reject CPU affinity changes based on arch_task_cpu_possible_mask()

2020-11-24 Thread Will Deacon
Reject explicit requests to change the affinity mask of a task via set_cpus_allowed_ptr() if the requested mask is not a subset of the mask returned by arch_task_cpu_possible_mask(). This ensures that the 'cpus_mask' for a given task cannot contain CPUs which are incapable of executing it, except

[PATCH v4 12/14] arm64: Prevent offlining first CPU with 32-bit EL0 on mismatched system

2020-11-24 Thread Will Deacon
If we want to support 32-bit applications, then when we identify a CPU with mismatched 32-bit EL0 support we must ensure that we will always have an active 32-bit CPU available to us from then on. This is important for the scheduler, because is_cpu_allowed() will be constrained to 32-bit CPUs for

Re: [PATCH 05/40] drm/amd/amdgpu/cik_ih: Supply description for 'ih' in 'cik_ih_{get, set}_wptr()'

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:19 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/cik_ih.c:189: warning: Function parameter or > member 'ih' not described in 'cik_ih_get_wptr' > drivers/gpu/drm/amd/amdgpu/cik_ih.c:274: warning: Function

[PATCH v4 10/14] sched: Introduce arch_task_cpu_possible_mask() to limit fallback rq selection

2020-11-24 Thread Will Deacon
Asymmetric systems may not offer the same level of userspace ISA support across all CPUs, meaning that some applications cannot be executed by some CPUs. As a concrete example, upcoming arm64 big.LITTLE designs do not feature support for 32-bit applications on both clusters. On such a system, we

[PATCH v4 09/14] cpuset: Don't use the cpu_possible_mask as a last resort for cgroup v1

2020-11-24 Thread Will Deacon
If the scheduler cannot find an allowed CPU for a task, cpuset_cpus_allowed_fallback() will widen the affinity to cpu_possible_mask if cgroup v1 is in use. In preparation for allowing architectures to provide their own fallback mask, just return early if we're not using cgroup v2 and allow

[PATCH v4 08/14] arm64: exec: Adjust affinity for compat tasks with mismatched 32-bit EL0

2020-11-24 Thread Will Deacon
When exec'ing a 32-bit task on a system with mismatched support for 32-bit EL0, try to ensure that it starts life on a CPU that can actually run it. Signed-off-by: Will Deacon --- arch/arm64/kernel/process.c | 42 - 1 file changed, 41 insertions(+), 1

[PATCH v4 07/14] sched: Introduce restrict_cpus_allowed_ptr() to limit task CPU affinity

2020-11-24 Thread Will Deacon
Asymmetric systems may not offer the same level of userspace ISA support across all CPUs, meaning that some applications cannot be executed by some CPUs. As a concrete example, upcoming arm64 big.LITTLE designs do not feature support for 32-bit applications on both clusters. Although userspace

[PATCH v4 05/14] arm64: Advertise CPUs capable of running 32-bit applications in sysfs

2020-11-24 Thread Will Deacon
Since 32-bit applications will be killed if they are caught trying to execute on a 64-bit-only CPU in a mismatched system, advertise the set of 32-bit capable CPUs to userspace in sysfs. Reviewed-by: Greg Kroah-Hartman Signed-off-by: Will Deacon --- .../ABI/testing/sysfs-devices-system-cpu

[PATCH v4 04/14] arm64: Kill 32-bit applications scheduled on 64-bit-only CPUs

2020-11-24 Thread Will Deacon
Scheduling a 32-bit application on a 64-bit-only CPU is a bad idea. Ensure that 32-bit applications always take the slow-path when returning to userspace on a system with mismatched support at EL0, so that we can avoid trying to run on a 64-bit-only CPU and force a SIGKILL instead.

[PATCH v4 06/14] arm64: Hook up cmdline parameter to allow mismatched 32-bit EL0

2020-11-24 Thread Will Deacon
Allow systems with mismatched 32-bit support at EL0 to run 32-bit applications based on a new kernel parameter. Signed-off-by: Will Deacon --- Documentation/admin-guide/kernel-parameters.txt | 7 +++ arch/arm64/kernel/cpufeature.c | 7 +++ 2 files changed, 14

[PATCH v4 01/14] arm64: cpuinfo: Split AArch32 registers out into a separate struct

2020-11-24 Thread Will Deacon
In preparation for late initialisation of the "sanitised" AArch32 register state, move the AArch32 registers out of 'struct cpuinfo' and into their own struct definition. Signed-off-by: Will Deacon --- arch/arm64/include/asm/cpu.h | 44 +++-- arch/arm64/kernel/cpufeature.c |

[PATCH v4 03/14] KVM: arm64: Kill 32-bit vCPUs on systems with mismatched EL0 support

2020-11-24 Thread Will Deacon
If a vCPU is caught running 32-bit code on a system with mismatched support at EL0, then we should kill it. Acked-by: Marc Zyngier Signed-off-by: Will Deacon --- arch/arm64/kvm/arm.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kvm/arm.c

[PATCH v4 00/14] An alternative series for asymmetric AArch32 systems

2020-11-24 Thread Will Deacon
Hello folks, Here's version four of the wonderful patches I previously posted here: v1: https://lore.kernel.org/r/20201027215118.27003-1-w...@kernel.org v2: https://lore.kernel.org/r/20201109213023.15092-1-w...@kernel.org v3: https://lore.kernel.org/r/20201113093720.21106-1-w...@kernel.org

[PATCH v4 02/14] arm64: Allow mismatched 32-bit EL0 support

2020-11-24 Thread Will Deacon
When confronted with a mixture of CPUs, some of which support 32-bit applications and others which don't, we quite sensibly treat the system as 64-bit only for userspace and prevent execve() of 32-bit binaries. Unfortunately, some crazy folks have decided to build systems like this with the

Re: [PATCH 03/40] drm/amd/amdgpu/amdgpu_ib: Provide docs for 'amdgpu_ib_schedule()'s 'job' param

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:19 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c:127: warning: Function parameter or > member 'job' not described in 'amdgpu_ib_schedule' > > Cc: Alex Deucher > Cc: "Christian König" > Cc: David

Re: [RFC PATCH v2] tracing: Remove duplicate `type` field from regmap `regcache_sync` trace event

2020-11-24 Thread Steven Rostedt
On Tue, 24 Nov 2020 08:57:30 -0500 Philippe Duplessis-Guindon wrote: > I have an error saying that `regcache_sync` has 2 fields named `type` > while using libtraceevent. > > Erase the `int field` type, which is not assigned. This field is > introduced by mistake and this commit removes it. > >

Re: [PATCH 02/40] drm/amd/amdgpu/amdgpu_ttm: Add description for 'page_flags'

2020-11-24 Thread Alex Deucher
On Mon, Nov 23, 2020 at 6:19 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c:1214: warning: Function parameter or > member 'page_flags' not described in 'amdgpu_ttm_tt_create' > > Cc: Alex Deucher > Cc: "Christian König" >

Re: [PATCH][next] i3c/master: Fix uninitialized variable next_addr

2020-11-24 Thread Nicolas Pitre
On Tue, 24 Nov 2020, Colin King wrote: > From: Colin Ian King > > The variable next_addr is not initialized and is being used in a call > to i3c_master_get_free_addr as a starting point to find the next address. > Fix this by initializing next_addr to 0 to avoid an uninitialized garbage >

Re: [Intel-wired-lan] [PATCH] e1000e: Assign DPM_FLAG_SMART_SUSPEND and DPM_FLAG_MAY_SKIP_RESUME to speed up s2ram

2020-11-24 Thread Paul Menzel
Dear Chen, Thank you for the patch. Am 24.11.20 um 16:32 schrieb Chen Yu: The NIC is put in runtime suspend status when there is no wire connected. As a result, it is safe to keep this NIC in runtime suspended during s2ram because the system does not rely on the NIC plug event nor WOL to wake

Re: [PATCH] sparc64: Use arch_validate_flags() to validate ADI flag

2020-11-24 Thread Khalid Aziz
On 11/20/20 11:01 AM, Catalin Marinas wrote: Hi Khalid, On Fri, Oct 23, 2020 at 11:56:11AM -0600, Khalid Aziz wrote: diff --git a/arch/sparc/include/asm/mman.h b/arch/sparc/include/asm/mman.h index f94532f25db1..274217e7ed70 100644 --- a/arch/sparc/include/asm/mman.h +++

RE: [PATCH] net: phy: fix auto-negotiation in case of 'down-shift'

2020-11-24 Thread David Laight
From: Russell King > Sent: 24 November 2020 15:17 ... > That said, _if_ the PHY has a way to read the resolved state rather > than reading the advertisement registers, that is what should be > used (as I said previously) rather than trying to decode the > advertisement registers ourselves. That is

Re: [PATCH -tip 14/32] sched: migration changes for core scheduling

2020-11-24 Thread Peter Zijlstra
On Mon, Nov 23, 2020 at 12:36:10PM +0800, Li, Aubrey wrote: > >> +#ifdef CONFIG_SCHED_CORE > >> + /* > >> + * Skip this cpu if source task's cookie does not match > >> + * with CPU's core cookie. > >> + */ > >> + if

[PATCH] Makefile.extrawarn: remove -Wnested-externs warning

2020-11-24 Thread Arnd Bergmann
From: Arnd Bergmann The -Wnested-externs warning has become useless with gcc, since this warns every time that BUILD_BUG_ON() or similar macros are used. With clang, the warning option does nothing to start with, so just remove it entirely. Suggested-by: Nathan Chancellor Signed-off-by: Arnd

Re: [PATCH 2/5] memory: renesas-rpc-if: Make rpcif_enable/disable_rpm() as static inline

2020-11-24 Thread Geert Uytterhoeven
Hi Prabhakar, On Tue, Nov 24, 2020 at 12:27 PM Lad Prabhakar wrote: > Define rpcif_enable_rpm() and rpcif_disable_rpm() as static > inline in the header instead of exporting it. > > Suggested-by: Pavel Machek > Signed-off-by: Lad Prabhakar Thanks for your patch, which is an improvement. >

Re: [PATCH 1/2] Makefile.extrawarn: move -Wcast-align to W=3

2020-11-24 Thread Arnd Bergmann
On Mon, Nov 23, 2020 at 12:18 PM Masahiro Yamada wrote: > > Applied to linux-kbuild. Thanks. > > But, I think people already tend to ignore W=2 warnings. Yes, this is what I was trying to change with this series and a couple of other patches I sent. When all the warnings from commonly included

<    3   4   5   6   7   8   9   10   11   12   >