Re: [PATCH] drm/amdgpu: fix the wrong logic checking when secure buffer is created

2020-02-18 Thread Christian König
Am 18.02.20 um 07:12 schrieb Huang Rui: While the current amdgpu doesn't support TMZ, it will return the error if user mode would like to allocate secure buffer. Fixes: 17d907c drm/amdgpu: implement TMZ accessor (v3) Signed-off-by: Huang Rui Reviewed-by: Christian König ---

Re: [PATCH v2] drm/amdgpu: fix the wrong logic checking when secure buffer is created (v2)

2020-02-18 Thread Huang Rui
On Tue, Feb 18, 2020 at 05:15:33PM +0800, Koenig, Christian wrote: > Am 18.02.20 um 09:55 schrieb Huang Rui: > > On Tue, Feb 18, 2020 at 04:50:01PM +0800, Koenig, Christian wrote: > >> Am 18.02.20 um 09:30 schrieb Huang Rui: > >>> While the current amdgpu doesn't support TMZ, it will return the

Re: [PATCH v3] drm/amdgpu: fix the wrong logic checking when secure buffer is created (v3)

2020-02-18 Thread Christian König
Am 18.02.20 um 11:39 schrieb Huang Rui: While the current amdgpu doesn't support TMZ, it will return the error if user mode would like to allocate secure buffer. Fixes: 17d907c drm/amdgpu: implement TMZ accessor (v3) v2: we didn't need this checking anymore. v3: only print message once time.

Re: [PATCH v2] drm/amdgpu: fix the wrong logic checking when secure buffer is created (v2)

2020-02-18 Thread Christian König
Am 18.02.20 um 09:30 schrieb Huang Rui: While the current amdgpu doesn't support TMZ, it will return the error if user mode would like to allocate secure buffer. Fixes: 17d907c drm/amdgpu: implement TMZ accessor (v3) v2: we didn't need this checking anymore. You misunderstood me.

Re: [PATCH v2] drm/amdgpu: fix the wrong logic checking when secure buffer is created (v2)

2020-02-18 Thread Christian König
Am 18.02.20 um 09:55 schrieb Huang Rui: On Tue, Feb 18, 2020 at 04:50:01PM +0800, Koenig, Christian wrote: Am 18.02.20 um 09:30 schrieb Huang Rui: While the current amdgpu doesn't support TMZ, it will return the error if user mode would like to allocate secure buffer. Fixes: 17d907c

Re: [PATCH v2] drm/amdgpu: fix the wrong logic checking when secure buffer is created (v2)

2020-02-18 Thread Huang Rui
On Tue, Feb 18, 2020 at 04:50:01PM +0800, Koenig, Christian wrote: > Am 18.02.20 um 09:30 schrieb Huang Rui: > > While the current amdgpu doesn't support TMZ, it will return the error if > > user > > mode would like to allocate secure buffer. > > > > Fixes: 17d907c drm/amdgpu: implement TMZ

Re: [PATCH v2] drm/amdgpu: fix the wrong logic checking when secure buffer is created (v2)

2020-02-18 Thread Nirmoy
On 2/18/20 9:55 AM, Huang Rui wrote: On Tue, Feb 18, 2020 at 04:50:01PM +0800, Koenig, Christian wrote: Am 18.02.20 um 09:30 schrieb Huang Rui: While the current amdgpu doesn't support TMZ, it will return the error if user mode would like to allocate secure buffer. Fixes: 17d907c

Re: [RFC PATCH v5] drm/amdgpu: Remove kfd eviction fence before release bo

2020-02-18 Thread Christian König
Am 18.02.20 um 04:36 schrieb xinhui pan: No need to trigger eviction as the memory mapping will not be used anymore. All pt/pd bos share same resv, hence the same shared eviction fence. Everytime page table is freed, the fence will be signled and that cuases kfd unexcepted evictions.

Re: [PATCH v2] drm/amdgpu: fix the wrong logic checking when secure buffer is created (v2)

2020-02-18 Thread Huang Rui
On Tue, Feb 18, 2020 at 05:35:35PM +0800, Huang Rui wrote: > On Tue, Feb 18, 2020 at 05:15:33PM +0800, Koenig, Christian wrote: > > Am 18.02.20 um 09:55 schrieb Huang Rui: > > > On Tue, Feb 18, 2020 at 04:50:01PM +0800, Koenig, Christian wrote: > > >> Am 18.02.20 um 09:30 schrieb Huang Rui: > >

Re: [PATCH v2] drm/amdgpu: fix the wrong logic checking when secure buffer is created (v2)

2020-02-18 Thread Christian König
Am 18.02.20 um 10:44 schrieb Huang Rui: On Tue, Feb 18, 2020 at 05:35:35PM +0800, Huang Rui wrote: On Tue, Feb 18, 2020 at 05:15:33PM +0800, Koenig, Christian wrote: Am 18.02.20 um 09:55 schrieb Huang Rui: On Tue, Feb 18, 2020 at 04:50:01PM +0800, Koenig, Christian wrote: Am 18.02.20 um

[PATCH v3] drm/amdgpu: fix the wrong logic checking when secure buffer is created (v3)

2020-02-18 Thread Huang Rui
While the current amdgpu doesn't support TMZ, it will return the error if user mode would like to allocate secure buffer. Fixes: 17d907c drm/amdgpu: implement TMZ accessor (v3) v2: we didn't need this checking anymore. v3: only print message once time. Signed-off-by: Huang Rui ---

Re: [PATCH] drm/amdgpu: fix the wrong logic checking when secure buffer is created

2020-02-18 Thread Huang Rui
On Tue, Feb 18, 2020 at 04:04:15PM +0800, Koenig, Christian wrote: > Am 18.02.20 um 07:12 schrieb Huang Rui: > > While the current amdgpu doesn't support TMZ, it will return the error if > > user > > mode would like to allocate secure buffer. > > > > Fixes: 17d907c drm/amdgpu: implement TMZ

Re: [PATCH v3] drm/amdgpu: fix the wrong logic checking when secure buffer is created (v3)

2020-02-18 Thread Nirmoy
On 2/18/20 11:39 AM, Huang Rui wrote: While the current amdgpu doesn't support TMZ, it will return the error if user mode would like to allocate secure buffer. Fixes: 17d907c drm/amdgpu: implement TMZ accessor (v3) v2: we didn't need this checking anymore. v3: only print message once time.

[PATCH v2] drm/amdgpu: fix the wrong logic checking when secure buffer is created (v2)

2020-02-18 Thread Huang Rui
While the current amdgpu doesn't support TMZ, it will return the error if user mode would like to allocate secure buffer. Fixes: 17d907c drm/amdgpu: implement TMZ accessor (v3) v2: we didn't need this checking anymore. Signed-off-by: Huang Rui --- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 5

Re: [PATCH 8/8] drm/ttm: do not keep GPU dependent addresses

2020-02-18 Thread Christian König
Am 18.02.20 um 19:28 schrieb Thomas Zimmermann: Hi Am 18.02.20 um 19:23 schrieb Christian König: Am 18.02.20 um 19:16 schrieb Thomas Zimmermann: Hi Am 18.02.20 um 18:13 schrieb Nirmoy: On 2/18/20 1:44 PM, Christian König wrote: Am 18.02.20 um 13:40 schrieb Thomas Zimmermann: Hi Am

Re: [Nouveau] [PATCH 8/8] drm/ttm: do not keep GPU dependent addresses

2020-02-18 Thread Daniel Vetter
On Tue, Feb 18, 2020 at 07:37:44PM +0100, Christian König wrote: > Am 18.02.20 um 19:28 schrieb Thomas Zimmermann: > > Hi > > > > Am 18.02.20 um 19:23 schrieb Christian König: > > > Am 18.02.20 um 19:16 schrieb Thomas Zimmermann: > > > > Hi > > > > > > > > Am 18.02.20 um 18:13 schrieb Nirmoy: >

Re: writing custom driver for VGA emulation ?

2020-02-18 Thread Christian König
Hi Yusuf, Is that means driver can do its job without powerplay support ? No, the driver tries to bind to the device but fails to load correctly. You won't get any functionality from this. If so, how does userspace programs like Xorg or as you mentioned Vesa can interact with driver. No,

Re: [PATCH] drm/amdgpu: Add a GEM_CREATE mask and bugfix

2020-02-18 Thread Luben Tuikov
On 2020-02-17 10:08 a.m., Christian König wrote: > Am 17.02.20 um 15:44 schrieb Alex Deucher: >> On Fri, Feb 14, 2020 at 7:17 PM Luben Tuikov wrote: >>> Add a AMDGPU_GEM_CREATE_MASK and use it to check >>> for valid/invalid GEM create flags coming in from >>> userspace. >>> >>> Fix a bug in

Re: writing custom driver for VGA emulation ?

2020-02-18 Thread Yusuf Altıparmak
Hello Christian, Even if powerplay fails, gpu driver seems still working according to output of "lsmod' command. I can see amdgpu there. Is that means driver can do its job without powerplay support ? If so, how does userspace programs like Xorg or as you mentioned Vesa can interact with driver.

Re: [PATCH] drm/amdgpu: Add a GEM_CREATE mask and bugfix

2020-02-18 Thread Luben Tuikov
On 2020-02-17 9:44 a.m., Alex Deucher wrote: > On Fri, Feb 14, 2020 at 7:17 PM Luben Tuikov wrote: >> >> Add a AMDGPU_GEM_CREATE_MASK and use it to check >> for valid/invalid GEM create flags coming in from >> userspace. >> >> Fix a bug in checking whether TMZ is supported at >> GEM create time.

Re: [PATCH] drm/amdgpu: fix the wrong logic checking when secure buffer is created

2020-02-18 Thread Luben Tuikov
On 2020-02-18 3:27 a.m., Huang Rui wrote: > On Tue, Feb 18, 2020 at 04:04:15PM +0800, Koenig, Christian wrote: >> Am 18.02.20 um 07:12 schrieb Huang Rui: >>> While the current amdgpu doesn't support TMZ, it will return the error if >>> user >>> mode would like to allocate secure buffer. >>> >>>

Re: [PATCH] drm/amdgpu: Add a GEM_CREATE mask and bugfix

2020-02-18 Thread Alex Deucher
On Tue, Feb 18, 2020 at 4:36 PM Luben Tuikov wrote: > > On 2020-02-17 9:44 a.m., Alex Deucher wrote: > > On Fri, Feb 14, 2020 at 7:17 PM Luben Tuikov wrote: > >> > >> Add a AMDGPU_GEM_CREATE_MASK and use it to check > >> for valid/invalid GEM create flags coming in from > >> userspace. > >> > >>

回复: [PATCH 3/3] drm/amdgpu: fix colliding of preemption

2020-02-18 Thread Liu, Monk
Hi Hawking The problem is amdgpu_mcbp only controls OS preemption feature, and OS preemption cannot enabled together with world switch MCBP That's why we still need to differentiate them separately Besides, there are some logic handling different between them, you can check the details in my

Re: 回复: [PATCH 3/3] drm/amdgpu: fix colliding of preemption

2020-02-18 Thread Christian König
Hawking is right here. We could just check amdgpu_mcbp during device initialization and forcefully clear it under SRIOV. But why is MCBP and SRIOV mutual exclusive? We are certainly getting the requirement for this sooner or later. Regards, Christian. Am 18.02.20 um 13:29 schrieb Liu, Monk:

Re: [PATCH 8/8] drm/ttm: do not keep GPU dependent addresses

2020-02-18 Thread Thomas Zimmermann
Hi Am 17.02.20 um 16:04 schrieb Nirmoy Das: > GPU address handling is device specific and should be handle by its device > driver. > > Signed-off-by: Nirmoy Das > --- > drivers/gpu/drm/ttm/ttm_bo.c| 7 --- > include/drm/ttm/ttm_bo_api.h| 2 -- > include/drm/ttm/ttm_bo_driver.h | 1

Re: [PATCH 8/8] drm/ttm: do not keep GPU dependent addresses

2020-02-18 Thread Christian König
Am 18.02.20 um 13:40 schrieb Thomas Zimmermann: Hi Am 17.02.20 um 16:04 schrieb Nirmoy Das: GPU address handling is device specific and should be handle by its device driver. Signed-off-by: Nirmoy Das --- drivers/gpu/drm/ttm/ttm_bo.c| 7 --- include/drm/ttm/ttm_bo_api.h| 2 --

RE: [PATCH 3/3] drm/amdgpu: fix colliding of preemption

2020-02-18 Thread Zhang, Hawking
[AMD Official Use Only - Internal Distribution Only] It's some kind of annoying to check vf in every place that is required for mcbp until amdgpu_mcbp is enabled by default. What's more, when amdgpu_mcbp is enabled by default, there will be many unnecessary vf check that can be removed as most

回复: 回复: [PATCH 3/3] drm/amdgpu: fix colliding of preemption

2020-02-18 Thread Liu, Monk
If OS preemption can work with SRIOV world switch I won't provide such patch, I would already clean up those MCBP checking ... To your question: I don't know details, but my guess is that CP use the same interface with KMD (e.g. CE/DE meta) to handle two MCBP type: world switch and OS

回复: [PATCH 3/3] drm/amdgpu: fix colliding of preemption

2020-02-18 Thread Liu, Monk
Even not talking about CE/DE meta and SDMA CS, we still cannot share amdgpu_mcbp with SRIOV case, e.g.: In some place we use "if (amdgpu_mcbp || amdgpu_sriov_vf()" to check, and we do the same thing under that condition, But we cannot do that thing by "if (amdgpu_mcbp)" and set "amdgpu_mcbp"

Re: writing custom driver for VGA emulation ?

2020-02-18 Thread Alex Deucher
On Tue, Feb 18, 2020 at 2:56 AM Yusuf Altıparmak wrote: > > Hello AMD team; > > I have E 9171 GPU and want to use it on a embedded system which has limited > MMIO space on PCIe bus (MAX 512 MB). > > I received feedbacks that I can only use VGA emulation with this memory > space. I was unable to

Re: [PATCH 0/8] do not store GPU address in TTM

2020-02-18 Thread Thomas Zimmermann
Hi, the email's subject line should contain the version of the patchset (e.g, v2, v3, etc). git send-mail adds this with the -v switch Best regards Thomas Am 17.02.20 um 16:04 schrieb Nirmoy Das: > With this patch series I am trying to remove GPU address dependency in > TTM and moving GPU

RE: [PATCH 1/3] drm/amdgpu: cleanup some incorrect reg access for SRIOV

2020-02-18 Thread Zhang, Hawking
[AMD Official Use Only - Internal Distribution Only] Please remove the ticket number from the commit description. With that fixed, the patch is Reviewed-by: Hawking Zhang Regards, Hawking -Original Message- From: amd-gfx On Behalf Of Monk Liu Sent: Tuesday, February 18, 2020 10:54

RE: [PATCH 2/3] drm/amdgpu: fix memory leak during TDR test

2020-02-18 Thread Zhang, Hawking
[AMD Official Use Only - Internal Distribution Only] ! smu->smu_table.max_sustainable_clocks is the preferred coding style. And please also remove internal changelist no from commit description. With above addressed, the patch is Reviewed-by: Hawking Zhang Regards, Hawking -Original

RE: [PATCH 3/3] drm/amdgpu: fix colliding of preemption

2020-02-18 Thread Zhang, Hawking
[AMD Official Use Only - Internal Distribution Only] Ahhh Send it too quickly. Of course, we still need to apply vf check for ce/de-meta, but I think in such way, we can dramatically reduce the amdgpu_sirov_vf check in every mcbp code path. Regards, Hawking -Original Message-

Re: [RFC PATCH v5] drm/amdgpu: Remove kfd eviction fence before release bo

2020-02-18 Thread Felix Kuehling
Hi Xinhui, Two suggestions inline. Looks good to me otherwise. On 2020-02-17 10:36 p.m., xinhui pan wrote: No need to trigger eviction as the memory mapping will not be used anymore. All pt/pd bos share same resv, hence the same shared eviction fence. Everytime page table is freed, the fence

Re: [RFC PATCH v5] drm/amdgpu: Remove kfd eviction fence before release bo

2020-02-18 Thread Pan, Xinhui
> 2020年2月19日 07:10,Kuehling, Felix 写道: > > Hi Xinhui, > > Two suggestions inline. Looks good to me otherwise. > > On 2020-02-17 10:36 p.m., xinhui pan wrote: >> No need to trigger eviction as the memory mapping will not be used >> anymore. >> >> All pt/pd bos share same resv, hence the same

[PATCH] drm/amdgpu: fix a bug NULL pointer dereference

2020-02-18 Thread Dennis Li
check whether the queue of entity is null to avoid null pointer dereference. Change-Id: I08d56774012cf229ba2fe7a011c1359e8d1e2781 Signed-off-by: Dennis Li diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c index 4cc7881f438c..67cca463ddcc

RE: [PATCH] drm/amdgpu: fix a bug NULL pointer dereference

2020-02-18 Thread Zhang, Hawking
[AMD Official Use Only - Internal Distribution Only] Reviewed-by: Hawking Zhang Regards, Hawking -Original Message- From: Dennis Li Sent: Wednesday, February 19, 2020 12:05 To: amd-gfx@lists.freedesktop.org; Deucher, Alexander ; Zhou1, Tao ; Zhang, Hawking ; Chen, Guchun Cc: Li,

回复: 回复: [PATCH 3/3] drm/amdgpu: fix colliding of preemption

2020-02-18 Thread Liu, Monk
Hi Hans For CE/DE meta data, OS preemption would write those credential to a dynamically allocated CSA buffer (one per process), but for SRIOV we only write them to static CSA (one per VF) In windows KMD, the OS Preemption is forced to disabled when SRIOV is enabled Based on above two reason

回复: [PATCH 3/3] drm/amdgpu: fix colliding of preemption

2020-02-18 Thread Liu, Monk
>> I don't want to mix os preemption with world switch here. I'm just trying to >> see whether we can leverage the code path as much as possible, i.e. CSA >> related code path. Yeah, I agree with that >> But I'd like to take another chance to review all the existing mcbp code >> with Jack

Re: writing custom driver for VGA emulation ?

2020-02-18 Thread Christian König
The problem Yusuf runs into is that his platform has multiple PCIe root hubs, but only 512MB of MMIO address space. That is not enough to fit all the BARs of an E9171 into. But without the BARs neither the VGA emulation nor amdgpu not anything else will work correctly. And we already

Re: [PATCH] drm/amdgpu/smu: add a send message lock

2020-02-18 Thread Nirmoy
On 2/18/20 3:31 PM, Alex Deucher wrote: The driver uses a scratch register to communicate with the SMU. Add a lock to make sure we don't try and do this concurrently by accident. Signed-off-by: Alex Deucher Acked-by: Nirmoy Das --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 1 +

Re: [PATCH] drm/amdgpu/smu: add an update table lock

2020-02-18 Thread Alex Deucher
On Mon, Feb 17, 2020 at 10:01 PM Quan, Evan wrote: > > Hi Alex, > > Did you seen any issue caused by this? Seems to help on: https://gitlab.freedesktop.org/drm/amd/issues/1047 I haven't been able to prove to myself that the existing high level locking covers every case. Alex > > Regards, >

Re: [PATCH 0/8] do not store GPU address in TTM

2020-02-18 Thread Nirmoy
On 2/18/20 1:42 PM, Thomas Zimmermann wrote: Hi, the email's subject line should contain the version of the patchset (e.g, v2, v3, etc). git send-mail adds this with the -v switch Thanks Thomas. I over looked that,  will add version tag from my next emails. Nirmoy Best regards Thomas

Re: writing custom driver for VGA emulation ?

2020-02-18 Thread Bridgman, John
[AMD Official Use Only - Internal Distribution Only] Does the VBIOS come up with something like a splash screen, ie is VBIOS able to initialize and drive the card ? If so then another option might be to use a VESA driver rather than VGA. From: amd-gfx on

Re: writing custom driver for VGA emulation ?

2020-02-18 Thread Bridgman, John
[AMD Official Use Only - Internal Distribution Only] >And we already checked, 256MB is unfortunately the minimum you can resize the >VRAM BAR on the E9171 to. Ahh, OK... I didn't realize we had already looked into that. I guess that approach isn't going to work. Yusef, guessing you are using

Re: [PATCH 8/8] drm/ttm: do not keep GPU dependent addresses

2020-02-18 Thread Christian König
Am 18.02.20 um 18:13 schrieb Nirmoy: On 2/18/20 1:44 PM, Christian König wrote: Am 18.02.20 um 13:40 schrieb Thomas Zimmermann: Hi Am 17.02.20 um 16:04 schrieb Nirmoy Das: GPU address handling is device specific and should be handle by its device driver. Signed-off-by: Nirmoy Das ---  

[PATCH] drm/amdgpu/smu: add a send message lock

2020-02-18 Thread Alex Deucher
The driver uses a scratch register to communicate with the SMU. Add a lock to make sure we don't try and do this concurrently by accident. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 1 + drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 1 +

RE: 回复: [PATCH 3/3] drm/amdgpu: fix colliding of preemption

2020-02-18 Thread Fernlund, Hans
[AMD Official Use Only - Internal Distribution Only] At CP level, MCBP and SRIOV are not mutually exclusive. They are used together in some environments. /Hans -Original Message- From: Liu, Monk Sent: Tuesday, February 18, 2020 7:53 AM To: Koenig, Christian ; Zhang, Hawking ;

RE: [PATCH 3/3] drm/amdgpu: fix colliding of preemption

2020-02-18 Thread Zhang, Hawking
[AMD Official Use Only - Internal Distribution Only] Hi Monk, I don't want to mix os preemption with world switch here. I'm just trying to see whether we can leverage the code path as much as possible, i.e. CSA related code path. Specific for the sriov check in your patch, as I mentioned

Re: writing custom driver for VGA emulation ?

2020-02-18 Thread Christian König
Yusef is using an ARM platform. As far as I know he already tried to shuffle the static allocation for the MMIO address spaces around without much luck. The only option I see would be to use the PCIe bridge trick I've mentioned below, but this is really so hacky that I won't recommend that.

Re: writing custom driver for VGA emulation ?

2020-02-18 Thread Yusuf Altıparmak
*Hello Mr. Alex, Mr. Cönig and Mr. Bridgman, * *Mr. Cönig, we have talked about MMIO problem before. You helped me a lot about that and now driver is not giving any error about MMIO. That problem was about bus configuration of my embedded system. It does not proceed more than 4GB besides 0x0

[PATCH v2 4/8] drm/nouveau: don't use ttm bo->offset

2020-02-18 Thread Nirmoy Das
Store ttm bo->offset in struct nouveau_bo instead. Signed-off-by: Nirmoy Das Acked-by: Christian König --- drivers/gpu/drm/nouveau/dispnv04/crtc.c | 6 +++--- drivers/gpu/drm/nouveau/dispnv04/disp.c | 2 +- drivers/gpu/drm/nouveau/dispnv04/overlay.c | 6 +++---

[PATCH v2 1/8] drm/amdgpu: move ttm bo->offset to amdgpu_bo

2020-02-18 Thread Nirmoy Das
GPU address should belong to driver not in memory management. This patch moves ttm bo.offset and gpu_offset calculation to amdgpu driver. Signed-off-by: Nirmoy Das Acked-by: Huang Rui Reviewed-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 22 ++--

[PATCH v2 5/8] drm/qxl: don't use ttm bo->offset

2020-02-18 Thread Nirmoy Das
This patch removes slot->gpu_offset which is not required as VRAM and PRIV slot are in separate PCI bar This patch also removes unused qxl_bo_gpu_offset() Signed-off-by: Nirmoy Das Acked-by: Christian König Acked-by: Gerd Hoffmann --- drivers/gpu/drm/qxl/qxl_drv.h| 6 ++

[PATCH v2 6/8] drm/vram-helper: don't use ttm bo->offset

2020-02-18 Thread Nirmoy Das
Calculate GPU offset within vram-helper without depending on bo->offset Signed-off-by: Nirmoy Das --- drivers/gpu/drm/drm_gem_vram_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_gem_vram_helper.c b/drivers/gpu/drm/drm_gem_vram_helper.c index

[PATCH v2 2/8] drm/radeon: don't use ttm bo->offset

2020-02-18 Thread Nirmoy Das
Calculate GPU offset in radeon_bo_gpu_offset without depending on bo->offset Signed-off-by: Nirmoy Das Reviewed-and-tested-by: Christian König --- drivers/gpu/drm/radeon/radeon.h| 1 + drivers/gpu/drm/radeon/radeon_object.h | 16 +++- drivers/gpu/drm/radeon/radeon_ttm.c

[PATCH v2 7/8] drm/bochs: use drm_gem_vram_offset to get bo offset

2020-02-18 Thread Nirmoy Das
Switch over to GEM VRAM's implementation to retrieve bo->offset Signed-off-by: Nirmoy Das Acked-by: Christian König --- drivers/gpu/drm/bochs/bochs_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bochs/bochs_kms.c b/drivers/gpu/drm/bochs/bochs_kms.c

[PATCH v2 3/8] drm/vmwgfx: don't use ttm bo->offset

2020-02-18 Thread Nirmoy Das
Calculate GPU offset within vmwgfx driver itself without depending on bo->offset Signed-off-by: Nirmoy Das Acked-by: Christian König --- drivers/gpu/drm/vmwgfx/vmwgfx_bo.c | 4 ++-- drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c| 2 +- drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c | 2 +-

Re: [PATCH 8/8] drm/ttm: do not keep GPU dependent addresses

2020-02-18 Thread Thomas Zimmermann
Hi Am 18.02.20 um 18:13 schrieb Nirmoy: > > On 2/18/20 1:44 PM, Christian König wrote: >> Am 18.02.20 um 13:40 schrieb Thomas Zimmermann: >>> Hi >>> >>> Am 17.02.20 um 16:04 schrieb Nirmoy Das: GPU address handling is device specific and should be handle by its device driver.

Re: [PATCH 8/8] drm/ttm: do not keep GPU dependent addresses

2020-02-18 Thread Christian König
Am 18.02.20 um 19:16 schrieb Thomas Zimmermann: Hi Am 18.02.20 um 18:13 schrieb Nirmoy: On 2/18/20 1:44 PM, Christian König wrote: Am 18.02.20 um 13:40 schrieb Thomas Zimmermann: Hi Am 17.02.20 um 16:04 schrieb Nirmoy Das: GPU address handling is device specific and should be handle by its

Re: [PATCH 8/8] drm/ttm: do not keep GPU dependent addresses

2020-02-18 Thread Thomas Zimmermann
Hi Am 18.02.20 um 19:23 schrieb Christian König: > Am 18.02.20 um 19:16 schrieb Thomas Zimmermann: >> Hi >> >> Am 18.02.20 um 18:13 schrieb Nirmoy: >>> On 2/18/20 1:44 PM, Christian König wrote: Am 18.02.20 um 13:40 schrieb Thomas Zimmermann: > Hi > > Am 17.02.20 um 16:04 schrieb

Re: [PATCH 8/8] drm/ttm: do not keep GPU dependent addresses

2020-02-18 Thread Nirmoy
On 2/18/20 7:16 PM, Thomas Zimmermann wrote: Hi Am 18.02.20 um 18:13 schrieb Nirmoy: On 2/18/20 1:44 PM, Christian König wrote: Am 18.02.20 um 13:40 schrieb Thomas Zimmermann: Hi Am 17.02.20 um 16:04 schrieb Nirmoy Das: GPU address handling is device specific and should be handle by its