RE: [PATCH 12/20] drm/amdgpu:impl mm_r/weg_nokiq

2017-02-07 Thread Yu, Xiangliang
> > +uint32_t amdgpu_mm_rreg_nokiq(struct amdgpu_device *adev, uint32_t > > reg, > > + bool always_indirect) > > +{ > > + uint32_t ret; > > + > > + if ((reg * 4) < adev->rmmio_size && !always_indirect) > > + ret = readl(((void __iomem *)adev->rmmio) + (reg * 4)); > >

RE: [PATCH 12/20] drm/amdgpu:impl mm_r/weg_nokiq

2017-02-07 Thread Deucher, Alexander
> -Original Message- > From: amd-gfx [mailto:amd-gfx-boun...@lists.freedesktop.org] On Behalf > Of Monk Liu > Sent: Tuesday, February 07, 2017 1:11 AM > To: amd-gfx@lists.freedesktop.org > Cc: Liu, Monk > Subject: [PATCH 12/20] drm/amdgpu:impl mm_r/weg_nokiq > &g

[PATCH 12/20] drm/amdgpu:impl mm_r/weg_nokiq

2017-02-06 Thread Monk Liu
some registers are pf&vf copy, and we can safely use mmio method to access them. and some time we are forbid to use kiq to access register like in INTR context. Change-Id: Ie6dc323dc86829a4a6ceb7073c269b106b534c4a Signed-off-by: Monk Liu --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 10 +