[Bug 203781] AMDGPU Radeon VII crashes with dual monitors

2019-08-07 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=203781 Steffen Schröter (stef...@vexar.de) changed: What|Removed |Added CC||stef...@vexar.de --

Re: [PATCH v3 11/41] media/v4l2-core/mm: convert put_page() to put_user_page*()

2019-08-07 Thread Sakari Ailus
On Tue, Aug 06, 2019 at 06:33:10PM -0700, john.hubb...@gmail.com wrote: > From: John Hubbard > > For pages that were retained via get_user_pages*(), release those pages > via the new put_user_page*() routines, instead of via put_page() or > release_pages(). > > This is part a tree-wide conversio

[PATCH v3 20/41] fbdev/pvr2fb: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

Re: [PATCH 15/15] amdgpu: remove CONFIG_DRM_AMDGPU_USERPTR

2019-08-07 Thread Jason Gunthorpe
On Tue, Aug 06, 2019 at 02:58:58PM -0400, Alex Deucher wrote: > On Tue, Aug 6, 2019 at 1:51 PM Kuehling, Felix wrote: > > > > On 2019-08-06 13:44, Jason Gunthorpe wrote: > > > On Tue, Aug 06, 2019 at 07:05:53PM +0300, Christoph Hellwig wrote: > > >> The option is just used to select HMM mirror sup

Re: [PATCH] drm/panfrost: Add "compute shader only" hint

2019-08-07 Thread Alyssa Rosenzweig
> > It's not obvious to me when it actually needs to be enabled. Besides the > > errata, it's only when... device_nr=1 for a compute-only job in kbase? > > > > I'm afraid I don't know nearly enough about how kbase plumbs CL to grok > > the signifiance... > > Figuring out the nr_core_groups was the

Re: [PATCH 1/3] drm: add gem ttm helpers

2019-08-07 Thread Gerd Hoffmann
> > +/** > > + * drm_gem_ttm_mmap_offset() - Returns a GEM ttm object's mmap offset > > + * @gbo: the GEM ttm object > > + * > > + * See drm_vma_node_offset_addr() for more information. > > + * > > + * Returns: > > + * The buffer object's offset for userspace mappings on success, or > > + * 0 if

[PATCH v3 00/39] put_user_pages(): miscellaneous call sites

2019-08-07 Thread john . hubbard
From: John Hubbard Hi, This consolidates everything into a "here's what's remaining for Andrew to add to his tree (for now)" series: * The first patch is an updated version of one that is already in the akpm tree. * The next two patches are already in the akpm tree, included here for complet

[PATCH v3 34/41] goldfish_pipe: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 35/41] kernel/events/core.c: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 12/41] genwqe: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 32/41] crypt: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 hmm 09/11] drm/amdkfd: fix a use after free race with mmu_notifer unregister

2019-08-07 Thread Jason Gunthorpe
From: Jason Gunthorpe When using mmu_notifer_unregister_no_release() the caller must ensure there is a SRCU synchronize before the mn memory is freed, otherwise use after free races are possible, for instance: CPU0 CPU1

[PATCH v3 hmm 05/11] hmm: use mmu_notifier_get/put for 'struct hmm'

2019-08-07 Thread Jason Gunthorpe
From: Jason Gunthorpe This is a significant simplification, it eliminates all the remaining 'hmm' stuff in mm_struct, eliminates krefing along the critical notifier paths, and takes away all the ugly locking and abuse of page_table_lock. mmu_notifier_get() provides the single struct hmm per stru

[PATCH v3 hmm 07/11] RDMA/odp: remove ib_ucontext from ib_umem

2019-08-07 Thread Jason Gunthorpe
From: Jason Gunthorpe At this point the ucontext is only being stored to access the ib_device, so just store the ib_device directly instead. This is more natural and logical as the umem has nothing to do with the ucontext. Signed-off-by: Jason Gunthorpe --- drivers/infiniband/core/umem.c |

Re: [PATCH] drm/panfrost: Add "compute shader only" hint

2019-08-07 Thread Alyssa Rosenzweig
> Why don't we just go ahead and enable JS2? It's not obvious to me when it actually needs to be enabled. Besides the errata, it's only when... device_nr=1 for a compute-only job in kbase? I'm afraid I don't know nearly enough about how kbase plumbs CL to grok the signifiance... signature.asc D

[PATCH v3 hmm 00/11] Add mmu_notifier_get/put for managing mmu notifier registrations

2019-08-07 Thread Jason Gunthorpe
From: Jason Gunthorpe This series introduces a new registration flow for mmu_notifiers based on the idea that the user would like to get a single refcounted piece of memory for a mm, keyed to its use. For instance many users of mmu_notifiers use an interval tree or similar to dispatch notificati

[PATCH v3 11/41] media/v4l2-core/mm: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

Re: [PATCH v2 01/34] mm/gup: add make_dirty arg to put_user_pages_dirty_lock()

2019-08-07 Thread John Hubbard
On 8/6/19 10:39 AM, Ira Weiny wrote: > On Sun, Aug 04, 2019 at 03:48:42PM -0700, john.hubb...@gmail.com wrote: >> From: John Hubbard ... >> - >> /** >> - * put_user_pages_dirty() - release and dirty an array of gup-pinned pages >> - * @pages: array of pages to be marked dirty and released. >> +

Re: [PATCH 08/15] mm: remove the mask variable in hmm_vma_walk_hugetlb_entry

2019-08-07 Thread Jason Gunthorpe
On Tue, Aug 06, 2019 at 07:05:46PM +0300, Christoph Hellwig wrote: > The pagewalk code already passes the value as the hmask parameter. > > Signed-off-by: Christoph Hellwig > mm/hmm.c | 7 ++- > 1 file changed, 2 insertions(+), 5 deletions(-) Reviewed-by: Jason Gunthorpe Jason ___

[PATCH v3 15/41] rapidio: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 hmm 06/11] RDMA/odp: use mmu_notifier_get/put for 'struct ib_ucontext_per_mm'

2019-08-07 Thread Jason Gunthorpe
From: Jason Gunthorpe This is a significant simplification, no extra list is kept per FD, and the interval tree is now shared between all the ucontexts, reducing overhead if there are multiple ucontexts active. Signed-off-by: Jason Gunthorpe --- drivers/infiniband/core/umem_odp.c| 170

[PATCH v3 10/41] media/ivtv: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 27/41] mm/frame_vector.c: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 hmm 10/11] drm/amdkfd: use mmu_notifier_put

2019-08-07 Thread Jason Gunthorpe
From: Jason Gunthorpe The sequence of mmu_notifier_unregister_no_release(), mmu_notifier_call_srcu() is identical to mmu_notifier_put() with the free_notifier callback. As this is the last user of those APIs, converting it means we can drop them. Signed-off-by: Jason Gunthorpe --- drivers/gpu

Re: [PATCH 11/15] mm: cleanup the hmm_vma_handle_pmd stub

2019-08-07 Thread Jason Gunthorpe
On Tue, Aug 06, 2019 at 07:05:49PM +0300, Christoph Hellwig wrote: > Stub out the whole function when CONFIG_TRANSPARENT_HUGEPAGE is not set > to make the function easier to read. > > Signed-off-by: Christoph Hellwig > --- > mm/hmm.c | 18 -- > 1 file changed, 8 insertions(+), 10

[PATCH v3 30/41] mm/madvise.c: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

Re: [PATCH 1/2] drm: add cache support for arm64

2019-08-07 Thread Rob Clark
On Tue, Aug 6, 2019 at 7:35 AM Mark Rutland wrote: > > On Tue, Aug 06, 2019 at 07:11:41AM -0700, Rob Clark wrote: > > On Tue, Aug 6, 2019 at 1:48 AM Christoph Hellwig wrote: > > > > > > This goes in the wrong direction. drm_cflush_* are a bad API we need to > > > get rid of, not add use of it.

[PATCH v3 05/41] net/ceph: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 hmm 11/11] mm/mmu_notifiers: remove unregister_no_release

2019-08-07 Thread Jason Gunthorpe
From: Jason Gunthorpe mmu_notifier_unregister_no_release() and mmu_notifier_call_srcu() no longer have any users, they have all been converted to use mmu_notifier_put(). So delete this difficult to use interface. Signed-off-by: Jason Gunthorpe --- include/linux/mmu_notifier.h | 5 - mm/m

Re: [PATCH 03/15] nouveau: pass struct nouveau_svmm to nouveau_range_fault

2019-08-07 Thread Jason Gunthorpe
On Tue, Aug 06, 2019 at 07:05:41PM +0300, Christoph Hellwig wrote: > We'll need the nouveau_svmm structure to improve the function soon. > For now this allows using the svmm->mm reference to unlock the > mmap_sem, and thus the same dereference chain that the caller uses > to lock and unlock it. >

[PATCH v3 hmm 04/11] misc/sgi-gru: use mmu_notifier_get/put for struct gru_mm_struct

2019-08-07 Thread Jason Gunthorpe
From: Jason Gunthorpe GRU is already using almost the same algorithm as get/put, it even helpfully has a 10 year old comment to make this algorithm common, which is finally happening. There are a few differences and fixes from this conversion: - GRU used rcu not srcu to read the hlist - Unclear

Re: [PATCH 14/15] mm: make HMM_MIRROR an implicit option

2019-08-07 Thread Jason Gunthorpe
On Tue, Aug 06, 2019 at 07:05:52PM +0300, Christoph Hellwig wrote: > Make HMM_MIRROR an option that is selected by drivers wanting to use it > instead of a user visible option as it is just a low-level > implementation detail. > > Signed-off-by: Christoph Hellwig > --- > drivers/gpu/drm/amd/amdg

[PATCH v3 41/41] mm/ksm: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 13/41] scif: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

Re: [PATCH AUTOSEL 5.2 37/59] drm/vgem: fix cache synchronization on arm/arm64

2019-08-07 Thread Rob Clark
please don't queue this one for stable branches.. it was causing problems in intel CI BR, -R On Tue, Aug 6, 2019 at 2:34 PM Sasha Levin wrote: > > From: Rob Clark > > [ Upstream commit 7e9e5ead55beacc6b3fb90b0de6e7cf55a69 ] > > drm_cflush_pages() is no-op on arm/arm64. But instead we can u

[PATCH v3 04/41] net/rds: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 01/41] mm/gup: add make_dirty arg to put_user_pages_dirty_lock()

2019-08-07 Thread john . hubbard
From: John Hubbard Provide a more capable variation of put_user_pages_dirty_lock(), and delete put_user_pages_dirty(). This is based on the following: 1. Lots of call sites become simpler if a bool is passed into put_user_page*(), instead of making the call site choose which put_user_page*() var

[PATCH v3 06/41] x86/kvm: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder versions"). Cc: Joe

[PATCH] drm/panfrost: Add errata descriptions from kbase

2019-08-07 Thread Alyssa Rosenzweig
While newer kbase include only the numbers of errata, older kbase releases included one-line descriptions for each errata, which is useful for those working on the driver. Import these descriptions. Most are from kbase verbatim; a few I edited for clarity. A few issues pertaining to newer models a

[PATCH v3 08/41] drm/i915: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 26/41] futex: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 09/41] drm/radeon: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 37/41] security/tomoyo: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 02/41] drivers/gpu/drm/via: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 29/41] mm/memory.c: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

Re: [PATCH 15/15] amdgpu: remove CONFIG_DRM_AMDGPU_USERPTR

2019-08-07 Thread Jason Gunthorpe
On Tue, Aug 06, 2019 at 07:05:53PM +0300, Christoph Hellwig wrote: > The option is just used to select HMM mirror support and has a very > confusing help text. Just pull in the HMM mirror code by default > instead. > > Signed-off-by: Christoph Hellwig > --- > drivers/gpu/drm/Kconfig

[PATCH v3 31/41] mm/process_vm_access.c: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 33/41] fs/nfs: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 hmm 02/11] mm/mmu_notifiers: do not speculatively allocate a mmu_notifier_mm

2019-08-07 Thread Jason Gunthorpe
From: Jason Gunthorpe A prior commit e0f3c3f78da2 ("mm/mmu_notifier: init notifier if necessary") made an attempt at doing this, but had to be reverted as calling the GFP_KERNEL allocator under the i_mmap_mutex causes deadlock, see commit 35cfa2b0b491 ("mm/mmu_notifier: allocate mmu_notifier in a

[PATCH v3 24/41] orangefs: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 23/41] fs/exec.c: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 18/41] drivers/tee: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 19/41] vfio: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 36/41] fs/binfmt_elf: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: Ira Weiny For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder vers

[PATCH v3 hmm 08/11] drm/radeon: use mmu_notifier_get/put for struct radeon_mn

2019-08-07 Thread Jason Gunthorpe
From: Jason Gunthorpe radeon is using a device global hash table to track what mmu_notifiers have been registered on struct mm. This is better served with the new get/put scheme instead. radeon has a bug where it was not blocking notifier release() until all the BO's had been invalidated. This c

[PATCH v3 38/41] powerpc: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 39/41] mm/mlock.c: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 17/41] staging/vc04_services: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 25/41] uprobes: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH] drm/panfrost: Add "compute shader only" hint

2019-08-07 Thread Alyssa Rosenzweig
Midgard contains two job slots capable of compute jobs, JS1 and JS2. As an optimization, it is preferable to schedule compute-only workloads to JS2, although compute jobs are functionally able to be scheduled to JS1 (barring an obscure errata). Accordingly, we reserve a compute-only hint in the UA

[PATCH v3 21/41] fsl_hypervisor: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

Re: [PATCH v3 00/39] put_user_pages(): miscellaneous call sites

2019-08-07 Thread John Hubbard
On 8/6/19 6:32 PM, john.hubb...@gmail.com wrote: > From: John Hubbard > ... > > John Hubbard (38): > mm/gup: add make_dirty arg to put_user_pages_dirty_lock() ... > 54 files changed, 191 insertions(+), 323 deletions(-) > ahem, yes, apparently this is what happens if I add a few patches while

[PATCH v3 hmm 03/11] mm/mmu_notifiers: add a get/put scheme for the registration

2019-08-07 Thread Jason Gunthorpe
From: Jason Gunthorpe Many places in the kernel have a flow where userspace will create some object and that object will need to connect to the subsystem's mmu_notifier subscription for the duration of its lifetime. In this case the subsystem is usually tracking multiple mm_structs and it is dif

[PATCH v3 hmm 01/11] mm/mmu_notifiers: hoist do_mmu_notifier_register down_write to the caller

2019-08-07 Thread Jason Gunthorpe
From: Jason Gunthorpe This simplifies the code to not have so many one line functions and extra logic. __mmu_notifier_register() simply becomes the entry point to register the notifier, and the other one calls it under lock. Also add a lockdep_assert to check that the callers are holding the loc

[PATCH v3 14/41] vmci: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 40/41] mm/mempolicy.c: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 16/41] oradax: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 28/41] mm/gup_benchmark.c: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 07/41] drm/etnaviv: convert release_pages() to put_user_pages()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 22/41] xen: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

[PATCH v3 03/41] net/xdp: convert put_page() to put_user_page*()

2019-08-07 Thread john . hubbard
From: John Hubbard For pages that were retained via get_user_pages*(), release those pages via the new put_user_page*() routines, instead of via put_page() or release_pages(). This is part a tree-wide conversion, as described in commit fc1d8e7cca2d ("mm: introduce put_user_page*(), placeholder v

Re: [PATCH v3 0/3] Send a hotplug when edid changes

2019-08-07 Thread Lisovskiy, Stanislav
On Tue, 2019-08-06 at 19:43 +0200, Daniel Vetter wrote: > On Tue, Aug 6, 2019 at 4:06 PM Lisovskiy, Stanislav > wrote: > > > > On Tue, 2019-08-06 at 15:51 +0200, Daniel Vetter wrote: > > > On Tue, Aug 06, 2019 at 03:55:48PM +0300, Stanislav Lisovskiy > > > wrote: > > > > This series introduce to

[Bug 110214] Raven Ridge (2400G): xterm scrollback buffer disappears while Shift+PgUp and Shift+PgDn

2019-08-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110214 --- Comment #104 from Pierre-Eric Pelloux-Prayer --- (In reply to Diego Viola from comment #103) > (In reply to Pierre-Eric Pelloux-Prayer from comment #102) > > (In reply to Diego Viola from comment #100) > > > (In reply to Michel Dänzer from

Re: [PATCH 1/3] drm: add gem ttm helpers

2019-08-07 Thread Daniel Vetter
On Wed, Aug 7, 2019 at 9:29 AM Gerd Hoffmann wrote: > > > > +/** > > > + * drm_gem_ttm_mmap_offset() - Returns a GEM ttm object's mmap offset > > > + * @gbo: the GEM ttm object > > > + * > > > + * See drm_vma_node_offset_addr() for more information. > > > + * > > > + * Returns: > > > + * The buf

Re: [PATCH 00/34] put_user_pages(): miscellaneous call sites

2019-08-07 Thread Jan Kara
On Fri 02-08-19 12:14:09, John Hubbard wrote: > On 8/2/19 7:52 AM, Jan Kara wrote: > > On Fri 02-08-19 07:24:43, Matthew Wilcox wrote: > > > On Fri, Aug 02, 2019 at 02:41:46PM +0200, Jan Kara wrote: > > > > On Fri 02-08-19 11:12:44, Michal Hocko wrote: > > > > > On Thu 01-08-19 19:19:31, john.hubb.

Re: [PATCH] video: fbdev:via: Remove dead code

2019-08-07 Thread Souptick Joarder
On Wed, Jul 31, 2019 at 12:59 AM Souptick Joarder wrote: > > This is dead code since 3.15. If there is no plan to use > it further, this can be removed forever. > Any comment on this patch ? > Signed-off-by: Souptick Joarder > --- > drivers/video/fbdev/via/via-core.c | 43 > --

Re: [PATCH] video/fbdev/aty128fb: Remove dead code

2019-08-07 Thread Souptick Joarder
On Wed, Jul 31, 2019 at 12:38 AM Souptick Joarder wrote: > > This is dead code since 3.15. If there is no plan to use it > further, this can be removed forever. Any comment on this patch ? > > Signed-off-by: Souptick Joarder > --- > drivers/video/fbdev/aty/aty128fb.c | 18 --

Re: next-20190806: arm64: adv7511 3-0039: failed to find dsi host

2019-08-07 Thread Hans Verkuil
Adding dri-devel since this appears to be drm specific and not media related. Regards, Hans On 8/7/19 10:17 AM, Naresh Kamboju wrote: > arm64 devices dragonboard 410c (QC410E) and hi6220-hikey running Linux > next-20190806 loading modules causing floods of kernel messages. > > We have e

Re: [PATCH 00/34] put_user_pages(): miscellaneous call sites

2019-08-07 Thread Michal Hocko
On Wed 07-08-19 10:37:26, Jan Kara wrote: > On Fri 02-08-19 12:14:09, John Hubbard wrote: > > On 8/2/19 7:52 AM, Jan Kara wrote: > > > On Fri 02-08-19 07:24:43, Matthew Wilcox wrote: > > > > On Fri, Aug 02, 2019 at 02:41:46PM +0200, Jan Kara wrote: > > > > > On Fri 02-08-19 11:12:44, Michal Hocko w

[PATCH v6 3/3] drm/mediatek: add mipi_tx driver for mt8183

2019-08-07 Thread Jitao Shi
This patch add mt8183 mipi_tx driver. And also support other chips that use the same binding and driver. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/Makefile | 1 + drivers/gpu/drm/mediatek/mtk_mipi_tx.c| 2 + drivers/gpu/drm/mediatek/mtk_mipi_tx.h| 1

[PATCH v6 0/3] Support mipitx for mt8183

2019-08-07 Thread Jitao Shi
Change since v5: - remove mipi_tx->ref_clk - remove mt8183 pll prepare unprepare Change since v4: - fine tune the mipi_tx->ref_clk and mipi_tx->pll sequence 1. Prepare mipi_tx->ref_clk 2. Prepare mipi_tx->pll 3. Enable mipi_tx->ref_clk 4. Enable mipi_tx->pll Changes since v3: - tu

[PATCH v6 1/3] dt-bindings: display: mediatek: update dsi supported chips

2019-08-07 Thread Jitao Shi
Update device tree binding documentation for the dsi for Mediatek MT8183 SoCs. Signed-off-by: Jitao Shi Acked-by: Rob Herring --- .../devicetree/bindings/display/mediatek/mediatek,dsi.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindi

[PATCH v6 2/3] drm/mediatek: separate mipi_tx to different file

2019-08-07 Thread Jitao Shi
Different IC has different mipi_tx setting of dsi. This patch separates the mipi_tx hardware relate part for mt8173. Signed-off-by: Jitao Shi Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/Makefile | 1 + drivers/gpu/drm/mediatek/mtk_mipi_tx.c| 336 ++ dri

Re: [PATCH 1/2] drm: add cache support for arm64

2019-08-07 Thread Daniel Vetter
On Wed, Aug 7, 2019 at 8:25 AM Christoph Hellwig wrote: > On Tue, Aug 06, 2019 at 09:23:51AM -0700, Rob Clark wrote: > > On Tue, Aug 6, 2019 at 8:50 AM Christoph Hellwig wrote: > > > > > > On Tue, Aug 06, 2019 at 07:11:41AM -0700, Rob Clark wrote: > > > > Agreed that drm_cflush_* isn't a great AP

RE: [PATCH AUTOSEL 5.2 51/59] drm/exynos: fix missing decrement of retry counter

2019-08-07 Thread David Laight
From: Sasha Levin > Sent: 06 August 2019 22:33 > > From: Colin Ian King > > [ Upstream commit 1bbbab097a05276e312dd2462791d32b21ceb1ee ] > > Currently the retry counter is not being decremented, leading to a > potential infinite spin if the scalar_reads don't change state. > > Addresses-Coveri

Re: [PATCH 7/8] dma-buf: add reservation_object_fences helper

2019-08-07 Thread Christian König
Am 06.08.19 um 21:24 schrieb Chris Wilson: Quoting Christian König (2019-08-06 16:01:33) Add a new helper to get a consistent set of pointers from the reservation object. While at it group all access helpers together in the header file. Ah, needs to be earlier :) Ah, crap. That got incorrectl

[Bug 111244] amdgpu kernel 5.2 blank display after resume from suspend

2019-08-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111244 --- Comment #16 from csp...@verizon.net --- This commit in xf86-video-amdgpu seem to be where things break https://github.com/freedesktop/xorg-xf86-video-amdgpu/commit/a2b32e72fdaff3007a79b84929997d8176c2d512 Adding amdgpu.dc=1 to kernel options

[Bug 111244] amdgpu kernel 5.2 blank display after resume from suspend

2019-08-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111244 --- Comment #17 from csp...@verizon.net --- Created attachment 144967 --> https://bugs.freedesktop.org/attachment.cgi?id=144967&action=edit xf86-video-amdgpu git bisect -- You are receiving this mail because: You are the assignee for the bug.

[Bug 111244] amdgpu kernel 5.2 blank display after resume from suspend

2019-08-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111244 csp...@verizon.net changed: What|Removed |Added Attachment #144967|text/x-log |text/plain mime type|

[Bug 111244] amdgpu kernel 5.2 blank display after resume from suspend

2019-08-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111244 --- Comment #18 from Michel Dänzer --- (In reply to cspack from comment #16) > Adding amdgpu.dc=1 to kernel options seems fix the issue for me. Presumably you mean amdgpu.dc=0 ? Your findings indicate that the kernel driver DC code doesn't han

[Bug 110865] Rx480 consumes 20w more power in idle than under Windows

2019-08-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=110865 --- Comment #1 from Martin --- My bug is now two months old, do you need more information, or what can I do to get your attention? I think this is a serious issue, because it seems to affect a lot, maybe even all polaris cards. (tested two more

[Bug 109955] amdgpu [RX Vega 64] system freeze while gaming

2019-08-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109955 --- Comment #81 from Pierre-Eric Pelloux-Prayer --- Can anyone provide a apitrace/renderdoc capture that can reliably reproduce the crash/freeze? -- You are receiving this mail because: You are the assignee for the bug.___

[Bug 111244] amdgpu kernel 5.2 blank display after resume from suspend

2019-08-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111244 --- Comment #19 from csp...@verizon.net --- With amdgpu.dc=0, X doesn't start ((EE) AMDGPU(0): No modes.) -- You are receiving this mail because: You are the assignee for the bug.___ dri-devel mailing

Re: [PATCH 1/3] drm: add gem ttm helpers

2019-08-07 Thread Gerd Hoffmann
Hi, > > > Same for this, you're just upcasting to ttm_bo and then downcasting to > > > gem_bo again ... I think just a series to roll out the existing gem > > > helpers everywhere should work? > > > > I don't think so. drm_gem_dumb_map_offset() calls > > drm_gem_create_mmap_offset(), which I th

[PATCH v2 0/3] drm: add gem ttm helpers

2019-08-07 Thread Gerd Hoffmann
Gerd Hoffmann (3): drm: add gem ttm helpers drm/vram: switch vram helpers to use the new ttm helpers. drm/qxl: switch qxl to use the new ttm helpers. drivers/gpu/drm/qxl/qxl_drv.h | 4 +- drivers/gpu/drm/qxl/qxl_object.h | 5 -- include/drm/drm_gem_ttm_helpe

[PATCH v2 2/3] drm/vram: switch vram helpers to use the new ttm helpers.

2019-08-07 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- include/drm/drm_gem_vram_helper.h | 7 +-- drivers/gpu/drm/drm_gem_vram_helper.c | 48 --- .../gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 2 +- drivers/gpu/drm/Kconfig | 1 + 4 files changed, 4 insertio

[PATCH v2 1/3] drm: add gem ttm helpers

2019-08-07 Thread Gerd Hoffmann
Now with ttm_buffer_object being a subclass of drm_gem_object we can easily lookup ttm_buffer_object for a given drm_gem_object, which in turm allows to create common helper functions. This patch starts off with dump mmap helpers. v2: - drop drm_gem_ttm_mmap_offset(). - improve kerneldocs. Sig

[PATCH v2 3/3] drm/qxl: switch qxl to use the new ttm helpers.

2019-08-07 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_drv.h| 4 +--- drivers/gpu/drm/qxl/qxl_object.h | 5 - drivers/gpu/drm/qxl/qxl_drv.c| 2 +- drivers/gpu/drm/qxl/qxl_dumb.c | 17 - drivers/gpu/drm/qxl/qxl_ioctl.c | 5 +++-- drivers/gpu/drm/qxl/Kconfig

[Bug 111244] amdgpu kernel 5.2 blank display after resume from suspend

2019-08-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=111244 --- Comment #20 from Michel Dänzer --- (In reply to cspack from comment #19) > With amdgpu.dc=0, X doesn't start ((EE) AMDGPU(0): No modes.) Right (I realized the amdgpu kernel driver doesn't support display with your GPU without DC), but amdgp

Re: [LKP] [drm/mgag200] 90f479ae51: vm-scalability.median -18.8% regression

2019-08-07 Thread Thomas Zimmermann
Hi Rong Am 06.08.19 um 14:59 schrieb Chen, Rong A: > Hi, > > On 8/5/2019 6:25 PM, Thomas Zimmermann wrote: >> Hi >> >> Am 05.08.19 um 09:28 schrieb Rong Chen: >>> Hi, >>> >>> On 8/5/19 3:02 PM, Feng Tang wrote: Hi Thomas, On Sun, Aug 04, 2019 at 08:39:19PM +0200, Thomas Zimmermann

  1   2   3   >