Merge branch 'drm-next-5.2' of git://people.freedesktop.org/~agd5f/linux into drm-next
amdgpu: - Switch to HMM for userptr (reverted until HMM fixes land) - New experimental SMU 11 replacement for powerplay for vega20 (not enabled by default) - Initial RAS support for vega20 - BACO support for vega12 - BACO fixes for vega20 - Rework IH handling for page fault and retry interrupts - Cleanly split CPU and GPU paths for GPUVM updates - Powerplay fixes - XGMI fixes - Rework how DC interacts with atomic for planes - Clean up and simplify DC/Powerplay interfaces - Misc cleanups and bug fixes amdkfd: - Switch to HMM for userptr (reverted until HMM fixes land) - Add initial RAS support - MQD fixes ttm: - Unify DRM_FILE_PAGE_OFFSET handling - Account for kernel allocations in kernel zone only - Misc cleanups Signed-off-by: Dave Airlie <airlied@redhat.com> From: Alex Deucher <alexdeucher@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190402170820.22197-1-alexander.deucher@amd.com
This commit is contained in:
@@ -202,8 +202,6 @@ int vbox_dumb_mmap_offset(struct drm_file *file,
|
||||
struct drm_device *dev,
|
||||
u32 handle, u64 *offset);
|
||||
|
||||
#define DRM_FILE_PAGE_OFFSET (0x10000000ULL >> PAGE_SHIFT)
|
||||
|
||||
int vbox_mm_init(struct vbox_private *vbox);
|
||||
void vbox_mm_fini(struct vbox_private *vbox);
|
||||
|
||||
|
@@ -156,7 +156,7 @@ int vbox_mm_init(struct vbox_private *vbox)
|
||||
ret = ttm_bo_device_init(&vbox->ttm.bdev,
|
||||
&vbox_bo_driver,
|
||||
dev->anon_inode->i_mapping,
|
||||
DRM_FILE_PAGE_OFFSET, true);
|
||||
true);
|
||||
if (ret) {
|
||||
DRM_ERROR("Error initialising bo driver; %d\n", ret);
|
||||
return ret;
|
||||
@@ -357,14 +357,8 @@ int vbox_bo_push_sysram(struct vbox_bo *bo)
|
||||
|
||||
int vbox_mmap(struct file *filp, struct vm_area_struct *vma)
|
||||
{
|
||||
struct drm_file *file_priv;
|
||||
struct vbox_private *vbox;
|
||||
|
||||
if (unlikely(vma->vm_pgoff < DRM_FILE_PAGE_OFFSET))
|
||||
return -EINVAL;
|
||||
|
||||
file_priv = filp->private_data;
|
||||
vbox = file_priv->minor->dev->dev_private;
|
||||
struct drm_file *file_priv = filp->private_data;
|
||||
struct vbox_private *vbox = file_priv->minor->dev->dev_private;
|
||||
|
||||
return ttm_bo_mmap(filp, vma, &vbox->ttm.bdev);
|
||||
}
|
||||
|
Reference in New Issue
Block a user