Re: don't base trees on 5.12-rc1

2021-03-09 Thread Maxime Ripard
Hi Dave, On Wed, Mar 10, 2021 at 09:50:29AM +1000, Dave Airlie wrote: > I'm mostly sending this to the -misc maintainers because > drm-misc-fixes is based on rc1 at present. > > This needs to be *rebased* not merged up to 5.12-rc2. Merging will > still have the bad landmine commits in the bisect

[PATCH] drm: mxsfb: Use simple encoder

2021-03-09 Thread Tian Tao
The driver uses empty implementations for its encoders. Replace the code with the generic simple encoder. Signed-off-by: Tian Tao --- drivers/gpu/drm/mxsfb/mxsfb_kms.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/mxsfb/mxsfb_kms.c

[PATCH] drm: writeback: Use simple encoder

2021-03-09 Thread Tian Tao
The driver uses empty implementations for its encoders. Replace the code with the generic simple encoder. Signed-off-by: Tian Tao --- drivers/gpu/drm/drm_writeback.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/drm_writeback.c

[PATCH] drm/amd/display: fix warning comparing pointer to 0

2021-03-09 Thread Jiapeng Chong
Fix the following coccicheck warning: ./drivers/gpu/drm/amd/display/dc/dsc/rc_calc.c:76:14-15: WARNING comparing pointer to 0. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/dc/dsc/rc_calc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH v5 0/7] drm: add simpledrm driver

2021-03-09 Thread nerdopolis
On Friday, September 2, 2016 4:22:38 AM EST David Herrmann wrote: > Hey > > On request of Noralf, I picked up the patches and prepared v5. Works fine with > Xorg, if configured according to: > https://lists.freedesktop.org/archives/dri-devel/2014-January/052777.html > If anyone knows how to

Re: [PATCH 9/9] zsmalloc: remove the zsmalloc file system

2021-03-09 Thread Minchan Kim
On Tue, Mar 09, 2021 at 04:53:48PM +0100, Christoph Hellwig wrote: > Just use the generic anon_inode file system. > > Signed-off-by: Christoph Hellwig Acked-by: Minchan Kim ___ dri-devel mailing list dri-devel@lists.freedesktop.org

Re: [PATCH 1/9] fs: rename alloc_anon_inode to alloc_anon_inode_sb

2021-03-09 Thread Minchan Kim
On Tue, Mar 09, 2021 at 04:53:40PM +0100, Christoph Hellwig wrote: > Rename alloc_inode to free the name for a new variant that does not > need boilerplate to create a super_block first. > > Signed-off-by: Christoph Hellwig > --- > arch/powerpc/platforms/pseries/cmm.c | 2 +- >

Re: Is LLVM 13 (git) really ready for testing/development? libclc didn't compile

2021-03-09 Thread Jan Vesely
hi, sorry the option is actually -cl-no-stdinc. you can add it to 'target_compiler_options'. I should have a patch ready soon(tm), but time is scarce. Jan On Sun, Mar 7, 2021 at 9:51 PM Dieter Nützel wrote: > Hello Jan, > > I very much appreciate your advice. > Tried several places... >

[PATCH] drm: xlnx: call pm_runtime_get_sync before setting pixel clock

2021-03-09 Thread quanyang . wang
From: Quanyang Wang The Runtime PM subsystem will force the device "fd4a.zynqmp-display" to enter suspend state while booting if the following conditions are met: - the usage counter is zero (pm_runtime_get_sync hasn't been called yet) - no 'active' children (no zynqmp-dp-snd-xx node under

Re: [PATCH v7 3/3] drm: Add GUD USB Display driver

2021-03-09 Thread Peter Stuge
Noralf Trønnes wrote: > > The u16 index parameter to gud_usb_transfer() and at least also > > gud_usb_{get,set,get_u8,set_u8}() is eventually passed in u16 value > > in the call to gud_usb_control_msg(), which had me confused for a bit. > > > > What do you think about renaming all of those

Re: make alloc_anon_inode more useful

2021-03-09 Thread Matthew Wilcox
On Tue, Mar 09, 2021 at 04:53:39PM +0100, Christoph Hellwig wrote: > this series first renames the existing alloc_anon_inode to > alloc_anon_inode_sb to clearly mark it as requiring a superblock. > > It then adds a new alloc_anon_inode that works on the anon_inode > file system super block, thus

Re: [PATCH v5 5/8] mm: Device exclusive memory access

2021-03-09 Thread kernel test robot
Hi Alistair, Thank you for the patch! Yet something to improve: [auto build test ERROR on s390/features] [also build test ERROR on linus/master v5.12-rc2 next-20210309] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base

Re: [PATCH v5 1/8] mm: Remove special swap entry functions

2021-03-09 Thread kernel test robot
Hi Alistair, Thank you for the patch! Yet something to improve: [auto build test ERROR on s390/features] [also build test ERROR on kselftest/next linus/master v5.12-rc2 next-20210309] [cannot apply to hnaz-linux-mm/master] [If your patch is applied to the wrong git tree, kindly drop us a note

don't base trees on 5.12-rc1

2021-03-09 Thread Dave Airlie
Hey maintainers, I'm mostly sending this to the -misc maintainers because drm-misc-fixes is based on rc1 at present. This needs to be *rebased* not merged up to 5.12-rc2. Merging will still have the bad landmine commits in the bisect history. This is a very special case. But otherwise to any

[PATCH v5 8/8] nouveau/svm: Implement atomic SVM access

2021-03-09 Thread Alistair Popple
Some NVIDIA GPUs do not support direct atomic access to system memory via PCIe. Instead this must be emulated by granting the GPU exclusive access to the memory. This is achieved by replacing CPU page table entries with special swap entries that fault on userspace access. The driver then grants

[PATCH v5 7/8] nouveau/svm: Refactor nouveau_range_fault

2021-03-09 Thread Alistair Popple
Call mmu_interval_notifier_insert() as part of nouveau_range_fault(). This doesn't introduce any functional change but makes it easier for a subsequent patch to alter the behaviour of nouveau_range_fault() to support GPU atomic operations. Signed-off-by: Alistair Popple ---

Re: [PATCH 1/1] drm/amdkfd: fix build error with AMD_IOMMU_V2=m

2021-03-09 Thread Jean-Philippe Brucker
Hi Felix, On Tue, Mar 09, 2021 at 11:30:19AM -0500, Felix Kuehling wrote: > > I think the proper fix would be to not rely on custom hooks into a > > particular > > IOMMU driver, but to instead ensure that the amdgpu driver can do everything > > it needs through the regular linux/iommu.h

[Bug 212107] Temperature increase by 15°C on radeon gpu

2021-03-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=212107 Martin (martin...@gmx.com) changed: What|Removed |Added Status|RESOLVED|CLOSED -- You may reply to

[Bug 212107] Temperature increase by 15°C on radeon gpu

2021-03-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=212107 Martin (martin...@gmx.com) changed: What|Removed |Added Status|NEW |RESOLVED

[Bug 212107] Temperature increase by 15°C on radeon gpu

2021-03-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=212107 --- Comment #8 from Martin (martin...@gmx.com) --- (In reply to Dieter Nützel from comment #7) > Addendum (@Alex) > Maybe we could do someting about the reported fan speed. > Zero (0) if stopped. > > @Martin > You can verify the fan speed

Re: [PATCH 2/9] fs: add an argument-less alloc_anon_inode

2021-03-09 Thread Gao Xiang
On Tue, Mar 09, 2021 at 04:53:41PM +0100, Christoph Hellwig wrote: > Add a new alloc_anon_inode helper that allocates an inode on > the anon_inode file system. > > Signed-off-by: Christoph Hellwig Reviewed-by: Gao Xiang Thanks, Gao Xiang ___

Re: [PATCH 1/9] fs: rename alloc_anon_inode to alloc_anon_inode_sb

2021-03-09 Thread Gao Xiang
On Tue, Mar 09, 2021 at 04:53:40PM +0100, Christoph Hellwig wrote: > Rename alloc_inode to free the name for a new variant that does not > need boilerplate to create a super_block first. > > Signed-off-by: Christoph Hellwig > --- That is a nice idea as well to avoid sb by introducing an unique

[Bug 211425] [drm:atom_op_jump] *ERROR* atombios stuck in loop for more than 20secs aborting

2021-03-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=211425 Andreas (icedragon...@web.de) changed: What|Removed |Added Kernel Version|5.11.4 |5.11.5 -- You may reply

Re: [PATCH 1/1] drm/amdkfd: fix build error with AMD_IOMMU_V2=m

2021-03-09 Thread Christian König
Am 09.03.21 um 18:59 schrieb Alex Deucher: On Tue, Mar 9, 2021 at 12:55 PM Jean-Philippe Brucker wrote: Hi Felix, On Tue, Mar 09, 2021 at 11:30:19AM -0500, Felix Kuehling wrote: I think the proper fix would be to not rely on custom hooks into a particular IOMMU driver, but to instead ensure

Re: [PATCH v7 3/3] drm: Add GUD USB Display driver

2021-03-09 Thread Noralf Trønnes
Den 09.03.2021 19.07, skrev Noralf Trønnes: > > > Den 09.03.2021 15.02, skrev Peter Stuge: >> Hello Noralf, >> >> I've made some progress with my test device. I'm implementing R1 >> first and once that works I'll test RGB111 as well. Along the way >> I've found a couple of things in the code:

Re: [PATCH v7 3/3] drm: Add GUD USB Display driver

2021-03-09 Thread Noralf Trønnes
Den 09.03.2021 15.02, skrev Peter Stuge: > Hello Noralf, > > I've made some progress with my test device. I'm implementing R1 > first and once that works I'll test RGB111 as well. Along the way > I've found a couple of things in the code: > > Noralf Trønnes wrote: >> +++

Re: [PATCH 1/1] drm/amdkfd: fix build error with AMD_IOMMU_V2=m

2021-03-09 Thread Alex Deucher
On Tue, Mar 9, 2021 at 12:55 PM Jean-Philippe Brucker wrote: > > Hi Felix, > > On Tue, Mar 09, 2021 at 11:30:19AM -0500, Felix Kuehling wrote: > > > I think the proper fix would be to not rely on custom hooks into a > > > particular > > > IOMMU driver, but to instead ensure that the amdgpu

Re: [PATCH] drm: meson_drv add shutdown function

2021-03-09 Thread Kevin Hilman
Neil Armstrong writes: > On 09/03/2021 18:13, Kevin Hilman wrote: >> Hi Neil, >> >> Neil Armstrong writes: >> >>> On 02/03/2021 05:22, Artem Lapkin wrote: Problem: random stucks on reboot stage about 1/20 stuck/reboots // debug kernel log [4.496660] reboot: kernel restart

Re: [PATCH] drm: meson_drv add shutdown function

2021-03-09 Thread Neil Armstrong
On 09/03/2021 18:13, Kevin Hilman wrote: > Hi Neil, > > Neil Armstrong writes: > >> On 02/03/2021 05:22, Artem Lapkin wrote: >>> Problem: random stucks on reboot stage about 1/20 stuck/reboots >>> // debug kernel log >>> [4.496660] reboot: kernel restart prepare CMD:(null) >>> [

Re: [PATCH] drm: meson_drv add shutdown function

2021-03-09 Thread Kevin Hilman
Hi Neil, Neil Armstrong writes: > On 02/03/2021 05:22, Artem Lapkin wrote: >> Problem: random stucks on reboot stage about 1/20 stuck/reboots >> // debug kernel log >> [4.496660] reboot: kernel restart prepare CMD:(null) >> [4.498114] meson_ee_pwrc

Need -fixes commit in drm-misc-next

2021-03-09 Thread Noralf Trønnes
Hi drm-misc maintainers, I have this series: GUD USB Display driver https://patchwork.freedesktop.org/series/87044/#rev3 That depends on this drm-misc-fixes commit: 3a3fe21242a3 ("drm: Use USB controller's DMA mask when importing dmabufs") I would would be nice if it would show up in

Re: make alloc_anon_inode more useful

2021-03-09 Thread Jason Gunthorpe
On Tue, Mar 09, 2021 at 04:53:39PM +0100, Christoph Hellwig wrote: > Hi all, > > this series first renames the existing alloc_anon_inode to > alloc_anon_inode_sb to clearly mark it as requiring a superblock. > > It then adds a new alloc_anon_inode that works on the anon_inode > file system super

[PATCH v2 1/1] drm/amdkfd: fix build error with AMD_IOMMU_V2=m

2021-03-09 Thread Felix Kuehling
Using 'imply AMD_IOMMU_V2' does not guarantee that the driver can link against the exported functions. If the GPU driver is built-in but the IOMMU driver is a loadable module, the kfd_iommu.c file is indeed built but does not work: x86_64-linux-ld: drivers/gpu/drm/amd/amdkfd/kfd_iommu.o: in

Re: [PATCH 5/9] vmw_balloon: remove the balloon-vmware file system

2021-03-09 Thread David Hildenbrand
On 09.03.21 16:53, Christoph Hellwig wrote: Just use the generic anon_inode file system. Signed-off-by: Christoph Hellwig --- drivers/misc/vmw_balloon.c | 24 ++-- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/drivers/misc/vmw_balloon.c

Re: [PATCH 1/1] drm/amdkfd: fix build error with AMD_IOMMU_V2=m

2021-03-09 Thread Felix Kuehling
Am 2021-03-09 um 3:58 a.m. schrieb Arnd Bergmann: > On Tue, Mar 9, 2021 at 4:23 AM Felix Kuehling wrote: >> Using 'imply AMD_IOMMU_V2' does not guarantee that the driver can link >> against the exported functions. If the GPU driver is built-in but the >> IOMMU driver is a loadable module, the

Re: [PATCH 3/9] powerpc/pseries: remove the ppc-cmm file system

2021-03-09 Thread Jason Gunthorpe
On Tue, Mar 09, 2021 at 04:53:42PM +0100, Christoph Hellwig wrote: > Just use the generic anon_inode file system. > > Signed-off-by: Christoph Hellwig > arch/powerpc/platforms/pseries/cmm.c | 27 ++- > 1 file changed, 2 insertions(+), 25 deletions(-) > > diff --git

Re: [PATCH 6/9] virtio_balloon: remove the balloon-kvm file system

2021-03-09 Thread David Hildenbrand
On 09.03.21 16:53, Christoph Hellwig wrote: Just use the generic anon_inode file system. Signed-off-by: Christoph Hellwig --- drivers/virtio/virtio_balloon.c | 30 +++--- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/drivers/virtio/virtio_balloon.c

Re: [PATCH 3/9] powerpc/pseries: remove the ppc-cmm file system

2021-03-09 Thread David Hildenbrand
On 09.03.21 16:53, Christoph Hellwig wrote: Just use the generic anon_inode file system. Signed-off-by: Christoph Hellwig --- arch/powerpc/platforms/pseries/cmm.c | 27 ++- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git

Re: [PATCH 2/9] fs: add an argument-less alloc_anon_inode

2021-03-09 Thread David Hildenbrand
On 09.03.21 16:53, Christoph Hellwig wrote: Add a new alloc_anon_inode helper that allocates an inode on the anon_inode file system. Signed-off-by: Christoph Hellwig --- fs/anon_inodes.c| 15 +-- include/linux/anon_inodes.h | 1 + 2 files changed, 14 insertions(+),

Re: [PATCH 1/9] fs: rename alloc_anon_inode to alloc_anon_inode_sb

2021-03-09 Thread David Hildenbrand
On 09.03.21 16:53, Christoph Hellwig wrote: Rename alloc_inode to free the name for a new variant that does not need boilerplate to create a super_block first. Signed-off-by: Christoph Hellwig --- arch/powerpc/platforms/pseries/cmm.c | 2 +- drivers/dma-buf/dma-buf.c| 2 +-

[Bug 212107] Temperature increase by 15°C on radeon gpu

2021-03-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=212107 --- Comment #7 from Dieter Nützel (die...@nuetzel-hh.de) --- Addendum (@Alex) Maybe we could do someting about the reported fan speed. Zero (0) if stopped. @Martin You can verify the fan speed (raise) if you put load on your gfx card. -- You

[Bug 212107] Temperature increase by 15°C on radeon gpu

2021-03-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=212107 --- Comment #6 from Dieter Nützel (die...@nuetzel-hh.de) --- (In reply to Martin from comment #5) > (In reply to Alex Deucher from comment #4) > > The driver turns off the fans for acoustic reasons if the OEM enabled > > support for the feature

[Bug 212107] Temperature increase by 15°C on radeon gpu

2021-03-09 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=212107 --- Comment #5 from Martin (martin...@gmx.com) --- (In reply to Alex Deucher from comment #4) > The driver turns off the fans for acoustic reasons if the OEM enabled > support for the feature in the vbios. They will still go on when the >

Re: [PATCH 1/2] locking/rwsem: Add down_write_interruptible

2021-03-09 Thread Zack Rusin
On 3/9/21 3:49 AM, Peter Zijlstra wrote: On Mon, Mar 08, 2021 at 03:54:55PM -0500, Zack Rusin wrote: Add an interruptible version of down_write. It's the other side of the already implemented down_read_interruptible. It allows drivers which used custom locking code to support interruptible rw

RE: [PATCH v2 1/2] dt-bindings: drm/bridge: MHDP8546 bridge binding changes for HDCP

2021-03-09 Thread Parshuram Raju Thombare
Hi Rob, Thanks for your comments. >> Add binding changes for HDCP in the MHDP8546 DPI/DP bridge binding. >> This binding is not used in any upstreamed DTS yet, so changing >> index of property 'j721e-intg' should not affect anything. > >TI folks might disagree, but weren't Cc'ed. Kishon and

[syzbot] WARNING in __hrtimer_run_queues

2021-03-09 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:144c79ef Merge tag 'perf-tools-fixes-for-v5.12-2020-03-07'.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16972ea2d0 kernel config: https://syzkaller.appspot.com/x/.config?x=9008fb06fa15d749

Re: [PATCH] drm/msm/dsi: fix check-before-set in the 7nm dsi_pll code

2021-03-09 Thread Dmitry Baryshkov
Rob, Any feedback on this? The patches were sent about two weeks ago. On Thu, 25 Feb 2021 at 01:47, Dmitry Baryshkov wrote: > > Fix setting min/max DSI PLL rate for the V4.1 7nm DSI PLL (used on > sm8250). Current code checks for pll->type before it is set (as it is > set in the

Re: [PATCH v7 3/3] drm: Add GUD USB Display driver

2021-03-09 Thread Peter Stuge
Hello Noralf, I've made some progress with my test device. I'm implementing R1 first and once that works I'll test RGB111 as well. Along the way I've found a couple of things in the code: Noralf Trønnes wrote: > +++ b/drivers/gpu/drm/gud/gud_drv.c .. > +static int gud_probe(struct usb_interface

[RFC v1 6/6] drm/edid: use the new displayid iterator for tile info

2021-03-09 Thread Jani Nikula
Neatly reduce displayid boilerplate in code. Remove excessive debug logging while at it, no other functional changes. The old displayid iterator becomes unused; remove it as well as make drm_find_displayid_extension() static. Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_displayid.c | 6

[RFC v1 5/6] drm/edid: use the new displayid iterator for finding CEA extension

2021-03-09 Thread Jani Nikula
Neatly reduce displayid boilerplate in code. No functional changes. Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 25 + 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index

[RFC v1 4/6] drm/edid: use the new displayid iterator for detailed modes

2021-03-09 Thread Jani Nikula
Neatly reduce displayid boilerplate in code. No functional changes. Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 23 ++- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index

[RFC v1 3/6] drm/displayid: add new displayid section/block iterators

2021-03-09 Thread Jani Nikula
Iterating DisplayID blocks across sections (in EDID extensions) is unnecessarily complicated for the caller. Implement DisplayID iterators to go through all blocks in all sections. Usage example: const struct displayid_block *block; struct displayid_iter iter;

[RFC v1 2/6] drm/displayid: add separate drm_displayid.c

2021-03-09 Thread Jani Nikula
We'll be adding more DisplayID specific functions going forward, so start off by splitting out a few functions to a separate file. We don't bother with exporting the functions; at least for now they should be needed solely within drm.ko. No functional changes. Signed-off-by: Jani Nikula ---

[RFC v1 1/6] drm/edid: make a number of functions, parameters and variables const

2021-03-09 Thread Jani Nikula
If there's no need to change it, it should be const. There's more to be done, but start off with changes that make follow-up work easier. No functional changes. Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_edid.c | 58 ++--- include/drm/drm_displayid.h |

[RFC v1 0/6] drm/edid: overhaul displayid iterator

2021-03-09 Thread Jani Nikula
Iterating DisplayID is overcomplicated as it is, and it's not getting easier when we eventually add support for DisplayID from DDC 0xA4 instead of EDID extensions. Prepare by abstracting the complexities away from EDID code. Untested, let's see what our CI thinks. ;) Jani Nikula (6):

RE: [PATCH] drm/nouveau: fix dma syncing for loops

2021-03-09 Thread Ruhl, Michael J
>-Original Message- >From: dri-devel On Behalf Of >Dave Airlie >Sent: Sunday, March 7, 2021 8:49 PM >To: dri-devel@lists.freedesktop.org >Cc: skeg...@gmail.com >Subject: [PATCH] drm/nouveau: fix dma syncing for loops > >From: Dave Airlie > >The index variable should only be increased

Re: [PATCH] drm/virtio: fix possible leak/unlock virtio_gpu_object_array

2021-03-09 Thread Gerd Hoffmann
On Fri, Mar 05, 2021 at 11:18:19PM +0800, xndcn wrote: > virtio_gpu_object array is not freed or unlocked in some > failed cases. Pushed to drm-misc-next. thanks, Gerd ___ dri-devel mailing list dri-devel@lists.freedesktop.org

Re: [PATCH v5 1/8] mm: Remove special swap entry functions

2021-03-09 Thread Matthew Wilcox
On Tue, Mar 09, 2021 at 11:14:58PM +1100, Alistair Popple wrote: > -static inline struct page *migration_entry_to_page(swp_entry_t entry) > -{ > - struct page *p = pfn_to_page(swp_offset(entry)); > - /* > - * Any use of migration entries may only occur while the > - *

[PATCH v5 6/8] mm: Selftests for exclusive device memory

2021-03-09 Thread Alistair Popple
Adds some selftests for exclusive device memory. Signed-off-by: Alistair Popple Acked-by: Jason Gunthorpe Tested-by: Ralph Campbell Reviewed-by: Ralph Campbell --- lib/test_hmm.c | 126 +- lib/test_hmm_uapi.h| 2 +

[PATCH v5 5/8] mm: Device exclusive memory access

2021-03-09 Thread Alistair Popple
Some devices require exclusive write access to shared virtual memory (SVM) ranges to perform atomic operations on that memory. This requires CPU page tables to be updated to deny access whilst atomic operations are occurring. In order to do this introduce a new swap entry type

[PATCH v5 4/8] mm/rmap: Split migration into its own function

2021-03-09 Thread Alistair Popple
Migration is currently implemented as a mode of operation for try_to_unmap_one() generally specified by passing the TTU_MIGRATION flag or in the case of splitting a huge anonymous page TTU_SPLIT_FREEZE. However it does not have much in common with the rest of the unmap functionality of

[PATCH v5 3/8] mm/rmap: Split try_to_munlock from try_to_unmap

2021-03-09 Thread Alistair Popple
The behaviour of try_to_unmap_one() is difficult to follow because it performs different operations based on a fairly large set of flags used in different combinations. TTU_MUNLOCK is one such flag. However it is exclusively used by try_to_munlock() which specifies no other flags. Therefore

[PATCH v5 2/8] mm/swapops: Rework swap entry manipulation code

2021-03-09 Thread Alistair Popple
Both migration and device private pages use special swap entries that are manipluated by a range of inline functions. The arguments to these are somewhat inconsitent so rework them to remove flag type arguments and to make the arguments similar for both read and write entry creation.

[PATCH v5 1/8] mm: Remove special swap entry functions

2021-03-09 Thread Alistair Popple
Remove the migration and device private entry_to_page() and entry_to_pfn() inline functions and instead open code them directly. This results in shorter code which is easier to understand. Signed-off-by: Alistair Popple Reviewed-by: Ralph Campbell --- v4: * Added pfn_swap_entry_to_page() *

[PATCH v5 0/8] Add support for SVM atomics in Nouveau

2021-03-09 Thread Alistair Popple
This is the fifth version of a series to add support to Nouveau for atomic memory operations on OpenCL shared virtual memory (SVM) regions. The main changes since v4 are a rebase onto v5.12-rc2, the removal of check_device_exclusive_range() and the addition of MMU_NOTIFY_EXCLUSIVE which makes the

Re: [PATCH] drm/komeda: Fix off-by-1 when with readback conn due to rounding

2021-03-09 Thread Brian Starkey
Hi Carsten, (+James for komeda) Thanks for typing this up. On Fri, Mar 05, 2021 at 04:38:53PM +, carsten.haitz...@foss.arm.com wrote: > From: Carsten Haitzler > > When setting up a readback conenctor that writes data back to memory s/readback conenctor/writeback connector/ (similar in the

[PATCH] scsi: csiostor: Assign boolean values to a bool variable

2021-03-09 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/scsi/csiostor/csio_scsi.c:150:9-10: WARNING: return of 0/1 in function 'csio_scsi_itnexus_loss_error' with return type bool. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/scsi/csiostor/csio_scsi.c | 4 ++-- 1 file changed, 2

Re: [PATCH v2] drm/uapi: document kernel capabilities

2021-03-09 Thread Pekka Paalanen
On Mon, 8 Mar 2021 13:34:21 +0100 Simon Ser wrote: > Document all of the DRM_CAP_* defines. > > v2 (Pekka): > - Describe what the bit depth is > - Expand on preferred dumb buffer memory access patterns > - Explain what a PRIME buffer is > - Mention DRM_IOCTL_PRIME_FD_TO_HANDLE and

Re: [PATCH] drm/atomic: Add the crtc to affected crtc only if uapi.enable = true

2021-03-09 Thread Pekka Paalanen
On Mon, 8 Mar 2021 16:52:58 -0800 "Navare, Manasi" wrote: > On Thu, Mar 04, 2021 at 10:42:23AM +0200, Pekka Paalanen wrote: > > On Wed, 3 Mar 2021 12:44:33 -0800 > > "Navare, Manasi" wrote: > > > > > On Wed, Mar 03, 2021 at 10:47:44AM +0200, Pekka Paalanen wrote: > > > > On Tue, 2 Mar

Re: [PATCH 1/1] drm/amdkfd: fix build error with AMD_IOMMU_V2=m

2021-03-09 Thread Arnd Bergmann
On Tue, Mar 9, 2021 at 4:23 AM Felix Kuehling wrote: > > Using 'imply AMD_IOMMU_V2' does not guarantee that the driver can link > against the exported functions. If the GPU driver is built-in but the > IOMMU driver is a loadable module, the kfd_iommu.c file is indeed > built but does not work: >

Re: [PATCH 1/2] locking/rwsem: Add down_write_interruptible

2021-03-09 Thread Peter Zijlstra
On Mon, Mar 08, 2021 at 03:54:55PM -0500, Zack Rusin wrote: > Add an interruptible version of down_write. It's the other > side of the already implemented down_read_interruptible. > It allows drivers which used custom locking code to > support interruptible rw semaphores to switch over > to rwsem.

Re: [PATCH] drm: meson_drv add shutdown function

2021-03-09 Thread Neil Armstrong
On 02/03/2021 05:22, Artem Lapkin wrote: > Problem: random stucks on reboot stage about 1/20 stuck/reboots > // debug kernel log > [4.496660] reboot: kernel restart prepare CMD:(null) > [4.498114] meson_ee_pwrc c883c000.system-controller:power-controller: > shutdown begin > [4.503949]

[PATCH] drm/amd/display: Remove unnecessary conversion to bool

2021-03-09 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c:896:68-73: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c | 2 +- 1 file changed, 1

RE: [PATCH v2 1/2] dt-bindings: drm/bridge: MHDP8546 bridge binding changes for HDCP

2021-03-09 Thread Parshuram Raju Thombare
>> >>> Is this a property of the hardware, that is, are there multiple versions >> >>> of this IP core covered by the same compatible string that support HDCP >> >>> 1.4 only, DHCP 2.2 only or both ? Or is it a way to select what a given >> >>> system will offer ?[] >> >> >> >> MHDP hardware