diff options
| author | Dave Airlie <airlied@redhat.com> | 2020-02-28 15:40:26 +1000 | 
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2020-02-28 15:40:26 +1000 | 
| commit | a2ae604da74dcf9ae674d3c03efad80574952800 (patch) | |
| tree | 0e232e6cbb76c0bc48d315d5d8269de108acceef /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | 4825b61a3d39eceef7db723808103aa60fc24520 (diff) | |
| parent | c6385e503aeaf99511bc5f67c4cdf5d7926df45b (diff) | |
Merge tag 'amd-drm-next-5.7-2020-02-26' of git://people.freedesktop.org/~agd5f/linux into drm-next
amd-drm-next-5.7-2020-02-26:
amdgpu:
- Rework VM update handling in preparation for HMM support
- HDCP srm support
- PSR fixes
- DC watermark fixes
- OLED panel support
- SR-IOV fixes
- BACO fixes
- Optimize debugging vram access
- RAS fixes
- Use BACO for runtime pm
- HDCP fixes
- XGMI fixes
- DDC fixes
- DC clock programming optimizations and fixes
- PSP fw loading sequence updates
- Drop DRIVER_USE_AGP
- Remove legacy drm load and unload callbacks
amdkfd:
- Add runtime pm support
radeon:
- Drop DRIVER_USE_AGP
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Alex Deucher <alexdeucher@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200227043142.4075-1-alexander.deucher@amd.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 11 | 
1 files changed, 7 insertions, 4 deletions
| diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index a52a084158b1..f397ff97b4e4 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c @@ -651,16 +651,19 @@ out:  static int amdgpu_cs_sync_rings(struct amdgpu_cs_parser *p)  { +	struct amdgpu_fpriv *fpriv = p->filp->driver_priv;  	struct amdgpu_bo_list_entry *e;  	int r;  	list_for_each_entry(e, &p->validated, tv.head) {  		struct amdgpu_bo *bo = ttm_to_amdgpu_bo(e->tv.bo);  		struct dma_resv *resv = bo->tbo.base.resv; +		enum amdgpu_sync_mode sync_mode; -		r = amdgpu_sync_resv(p->adev, &p->job->sync, resv, p->filp, -				     amdgpu_bo_explicit_sync(bo)); - +		sync_mode = amdgpu_bo_explicit_sync(bo) ? +			AMDGPU_SYNC_EXPLICIT : AMDGPU_SYNC_NE_OWNER; +		r = amdgpu_sync_resv(p->adev, &p->job->sync, resv, sync_mode, +				     &fpriv->vm);  		if (r)  			return r;  	} @@ -1211,7 +1214,7 @@ static int amdgpu_cs_submit(struct amdgpu_cs_parser *p,  	job = p->job;  	p->job = NULL; -	r = drm_sched_job_init(&job->base, entity, p->filp); +	r = drm_sched_job_init(&job->base, entity, &fpriv->vm);  	if (r)  		goto error_unlock; | 
