Re: [RFC PATCH 3/7] drm/ttm: TTM fault handler helpers

From: Thomas HellstrÃm (VMware)
Date: Fri Sep 13 2019 - 12:23:30 EST


On 9/13/19 3:40 PM, Hillf Danton wrote:
On Fri, 13 Sep 2019 11:32:09 +0200
err = ttm_mem_io_lock(man, true);
- if (unlikely(err != 0)) {
- ret = VM_FAULT_NOPAGE;
- goto out_unlock;
- }
+ if (unlikely(err != 0))
+ return VM_FAULT_NOPAGE;
err = ttm_mem_io_reserve_vm(bo);
- if (unlikely(err != 0)) {
- ret = VM_FAULT_SIGBUS;
- goto out_io_unlock;
- }
+ if (unlikely(err != 0))
+ return VM_FAULT_SIGBUS;

Hehe, no hurry.

Ah. I get the point :) Yes, I'll update. Haven't been looking at these patches for a while.

Thanks,

Thomas