Re: [PATCH 3/5] drm/amdkfd: Postpone memory mapping flags calculation to mapping time

2019-08-09 Thread Christian König
Am 09.08.19 um 16:21 schrieb Zeng, Oak: Regards, Oak -Original Message- From: Koenig, Christian Sent: Friday, August 9, 2019 8:31 AM To: Zeng, Oak ; amd-gfx@lists.freedesktop.org Cc: Kuehling, Felix ; Keely, Sean Subject: Re: [PATCH 3/5] drm/amdkfd: Postpone memory mapping flags

RE: [PATCH 3/5] drm/amdkfd: Postpone memory mapping flags calculation to mapping time

2019-08-09 Thread Zeng, Oak
Regards, Oak -Original Message- From: Koenig, Christian Sent: Friday, August 9, 2019 8:31 AM To: Zeng, Oak ; amd-gfx@lists.freedesktop.org Cc: Kuehling, Felix ; Keely, Sean Subject: Re: [PATCH 3/5] drm/amdkfd: Postpone memory mapping flags calculation to mapping time Am 09.08.19 um

Re: [PATCH 3/5] drm/amdkfd: Postpone memory mapping flags calculation to mapping time

2019-08-09 Thread Koenig, Christian
Am 09.08.19 um 04:15 schrieb Zeng, Oak: > Some mapping flags are decided by memory mapping destination which is not > know at memory object allocation time. So it is reasonable to decide memory > mapping flags at mapping time, instead of alloc time. Record memory allocation > flags during

[PATCH 3/5] drm/amdkfd: Postpone memory mapping flags calculation to mapping time

2019-08-08 Thread Zeng, Oak
Some mapping flags are decided by memory mapping destination which is not know at memory object allocation time. So it is reasonable to decide memory mapping flags at mapping time, instead of alloc time. Record memory allocation flags during allocation time and calculate mapping flags during

RE: [PATCH 3/5] drm/amdkfd: Postpone memory mapping flags calculation to mapping time

2019-08-08 Thread Zeng, Oak
Hi Felix/Sean, See one comment inline [Oak] Regards, Oak -Original Message- From: Kuehling, Felix Sent: Wednesday, August 7, 2019 12:05 AM To: Zeng, Oak ; amd-gfx@lists.freedesktop.org Cc: Koenig, Christian ; Keely, Sean Subject: Re: [PATCH 3/5] drm/amdkfd: Postpone memory mapping

Re: [PATCH 3/5] drm/amdkfd: Postpone memory mapping flags calculation to mapping time

2019-08-06 Thread Kuehling, Felix
On 2019-08-06 22:31, Zeng, Oak wrote: > Some mapping flags are decided by memory mapping destination which is not > know at memory object allocation time. So it is reasonable to decide memory > mapping flags at mapping time, instead of alloc time. Record memory allocation > flags during allocation

[PATCH 3/5] drm/amdkfd: Postpone memory mapping flags calculation to mapping time

2019-08-06 Thread Zeng, Oak
Some mapping flags are decided by memory mapping destination which is not know at memory object allocation time. So it is reasonable to decide memory mapping flags at mapping time, instead of alloc time. Record memory allocation flags during allocation time and calculate mapping flags during