Re: [PATCH] drm/prime: Support page array >= 4GB

2023-08-28 Thread Felix Kuehling
On 2023-08-21 16:02, Philip Yang wrote: Without unsigned long typecast, the size is passed in as zero if page array size >= 4GB, nr_pages >= 0x10, then sg list converted will have the first and the last chunk lost. Signed-off-by: Philip Yang The patch looks reasonable to me. I don't have

Re: [PATCH] drm/prime: Support page array >= 4GB

2023-08-23 Thread Felix Kuehling
On 2023-08-23 01:49, Christian König wrote: Am 22.08.23 um 20:27 schrieb Philip Yang: On 2023-08-22 05:43, Christian König wrote: Am 21.08.23 um 22:02 schrieb Philip Yang: Without unsigned long typecast, the size is passed in as zero if page array size >= 4GB, nr_pages >= 0x10, then sg

Re: [PATCH] drm/prime: Support page array >= 4GB

2023-08-22 Thread Christian König
Am 22.08.23 um 20:27 schrieb Philip Yang: On 2023-08-22 05:43, Christian König wrote: Am 21.08.23 um 22:02 schrieb Philip Yang: Without unsigned long typecast, the size is passed in as zero if page array size >= 4GB, nr_pages >= 0x10, then sg list converted will have the first and the la

Re: [PATCH] drm/prime: Support page array >= 4GB

2023-08-22 Thread Philip Yang
On 2023-08-22 05:43, Christian König wrote: Am 21.08.23 um 22:02 schrieb Philip Yang: Without unsigned long typecast, the size is passed in as zero if page array size >= 4GB, nr_pages >= 0x10, then sg li

Re: [PATCH] drm/prime: Support page array >= 4GB

2023-08-22 Thread Christian König
Am 21.08.23 um 22:02 schrieb Philip Yang: Without unsigned long typecast, the size is passed in as zero if page array size >= 4GB, nr_pages >= 0x10, then sg list converted will have the first and the last chunk lost. Good catch, but I'm not sure if this is enough to make it work. Additi

[PATCH] drm/prime: Support page array >= 4GB

2023-08-21 Thread Philip Yang
Without unsigned long typecast, the size is passed in as zero if page array size >= 4GB, nr_pages >= 0x10, then sg list converted will have the first and the last chunk lost. Signed-off-by: Philip Yang --- drivers/gpu/drm/drm_prime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) dif