Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3119178imm; Tue, 29 May 2018 01:05:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq24XVwCrUcnrxAAelXm8WMn14Ft3kz8sCkevxN7oxgl8BpLd0bOzHT1SWOBaCMcOaY6+is X-Received: by 2002:a17:902:7406:: with SMTP id g6-v6mr16214404pll.90.1527581140508; Tue, 29 May 2018 01:05:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527581140; cv=none; d=google.com; s=arc-20160816; b=WMTR+zmYfeEGBnCyRV2PriTliuQ9OOFuOvCfkUreY+zodHjnKL2GxuQKtV3lYEl0DE ls75Fx14iU3qfC+Hco1eEdMPGj9A23x7Xsq39gsXlU0Vs63/6Wjl6d9wYO/QIlL7DPWn 59RQAwyAInjVYNFi5QFBu0GUUJwFsI3CkFq76CPcRoPMysF7JoYR82Hydg0aaDuYpW13 Hp3bd/+eXtxfGPDWX3tYxa6GiHVFDGevsPZuXNgP0Qplg9I2Q2oQiABeFqwz2n/il2GC 8KhMNw4XWdQnNAcL0zfDJahOuDkGImrCtrpOHGAXZ+5hZCC1x7PkvPd5X/XqGep2r4pK sfOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=uDg9kAVw01H/my+MHBitOjkx7dQ7oydMFued+5G7GXM=; b=Zd47qxdZ2Y+yz1E+tH2NATwezE8tasRmiQv2BVCvUK301ImE7ztgt+/ObD4zYzIuFS SFjI8uBCiwvny0JYD06qLAzJit5FzNCtkeQu2LDTwwf7R+vXQFx2mtoEY+O3Eje+D2FV RsDV7IFr3WxTN/ZNahXcdsSywjYsXiFnBdhPEb8Mj4TWd/2nP8Iy4cKIiRaFQWboWEwS K0WZ6sI1SJeItllZf/Ox6fXo/KGz4I8Mj93LFtygzHG9f1BOZIvXBO7dXkgKhB88d/nB 2QvwDIOn3gdxKNSY2wtFiuk+lcqBULmHi97BEbVYXmaYP/unssXL2twSkdZ25y9pIxAJ 8Y8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mhP3HdK7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w3-v6si25341530pge.89.2018.05.29.01.05.26; Tue, 29 May 2018 01:05:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mhP3HdK7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755249AbeE2IEg (ORCPT + 99 others); Tue, 29 May 2018 04:04:36 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:52415 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755205AbeE2IE3 (ORCPT ); Tue, 29 May 2018 04:04:29 -0400 Received: by mail-wm0-f67.google.com with SMTP id 18-v6so32279122wml.2 for ; Tue, 29 May 2018 01:04:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=uDg9kAVw01H/my+MHBitOjkx7dQ7oydMFued+5G7GXM=; b=mhP3HdK7oed7gGdxOYdo+XUmqN6TR52eTluOG5PXiCvKm0GfUi1+XGWsM4eXXeEN1U /n4W+DfD39lCHVgvi//spZvYFs07PolniCdTWxr19y2v+VeiqKdHEYW1JfJY8bNFGDsc T6cUW25JaSzPXCIP6+WblOhzEFfzlI1QZY7XaiMBUziGyo3XjI0hKdSlEepXRL6uilSv Hmd1UaBRZCAwh6IH/ud/r6WI833JD4Of5fghknf0qeeXIcNFvkH8vtk0wgmYWDBiZuqC ssPvRfHseGYyk0fO2eub1Se/wGF6CUxhdzAYkq+9Pk4ykXTpN0M7CGapxq+Rcd5oJvml P0kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=uDg9kAVw01H/my+MHBitOjkx7dQ7oydMFued+5G7GXM=; b=qGqs/hUKg80yO76CdiPz5g3Zc/aSPb3/5mTXYKCgr9iqHLw2/a3MToODJfJUGcOPHm Mkek0PZTNpro4//V/DUQaruLDOUxiPu6C710BNRP4GhS02XBiC6655X3ccPEK8iN+Lji UA4Pmql7EjlXVDIeHBVLdObZwnGcJTa9f2wNLfi/L2ctVQEiRBvJ5RszGpVa/VIoMbc/ d4w5iaCXn8Fw3euaJKia54quXQgW7eGDXhd5vvFOj/lNyrMUjuu7qm5an0CCiRB6kgcy PfYhTild6uFDdzTWjgULWkiqG4+9kT4MImRoSne/MNxTb+6toeMkFqkk5EwF+6tTi/Kv mnQA== X-Gm-Message-State: ALKqPwdlkyXimeMqtEtPvaq9btnFQDmMaV0gTog3H3xOUOijfpG+PDUG KDlrLqJqFTbDj2h74aHyE3+hhJeyB9qAl995V7o= X-Received: by 2002:a2e:2c01:: with SMTP id s1-v6mr10476174ljs.120.1527581068350; Tue, 29 May 2018 01:04:28 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:d885:0:0:0:0:0 with HTTP; Tue, 29 May 2018 01:04:27 -0700 (PDT) In-Reply-To: <20180529064413.GR3438@phenom.ffwll.local> References: <20180416150232.GA26745@jordon-HP-15-Notebook-PC> <20180510185138.GL33053@art_vandelay> <20180514162617.GD28661@phenom.ffwll.local> <20180524125756.GO3438@phenom.ffwll.local> <20180529064413.GR3438@phenom.ffwll.local> From: Souptick Joarder Date: Tue, 29 May 2018 13:34:27 +0530 Message-ID: Subject: Re: [PATCH] gpu: drm: vgem: Change return type to vm_fault_t To: Souptick Joarder , Sean Paul , linux-kernel@vger.kernel.org, Matthew Wilcox , dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 29, 2018 at 12:14 PM, Daniel Vetter wrote: > On Thu, May 24, 2018 at 07:51:40PM +0530, Souptick Joarder wrote: >> On Thu, May 24, 2018 at 6:27 PM, Daniel Vetter wrote: >> > On Wed, May 23, 2018 at 03:05:35PM +0530, Souptick Joarder wrote: >> >> On Mon, May 14, 2018 at 9:56 PM, Daniel Vetter wrote: >> >> > On Thu, May 10, 2018 at 02:51:38PM -0400, Sean Paul wrote: >> >> >> On Thu, May 10, 2018 at 07:58:11PM +0530, Souptick Joarder wrote: >> >> >> > Hi Sean, >> >> >> > >> >> >> > On Mon, Apr 16, 2018 at 8:32 PM, Souptick Joarder wrote: >> >> >> > > Use new return type vm_fault_t for fault handler. >> >> >> > > >> >> >> > > Signed-off-by: Souptick Joarder >> >> >> > > Reviewed-by: Matthew Wilcox >> >> >> > > --- >> >> >> > > drivers/gpu/drm/vgem/vgem_drv.c | 5 ++--- >> >> >> > > 1 file changed, 2 insertions(+), 3 deletions(-) >> >> >> > > >> >> >> > > diff --git a/drivers/gpu/drm/vgem/vgem_drv.c b/drivers/gpu/drm/vgem/vgem_drv.c >> >> >> > > index 2524ff1..c64a859 100644 >> >> >> > > --- a/drivers/gpu/drm/vgem/vgem_drv.c >> >> >> > > +++ b/drivers/gpu/drm/vgem/vgem_drv.c >> >> >> > > @@ -61,13 +61,13 @@ static void vgem_gem_free_object(struct drm_gem_object *obj) >> >> >> > > kfree(vgem_obj); >> >> >> > > } >> >> >> > > >> >> >> > > -static int vgem_gem_fault(struct vm_fault *vmf) >> >> >> > > +static vm_fault_t vgem_gem_fault(struct vm_fault *vmf) >> >> >> > > { >> >> >> > > struct vm_area_struct *vma = vmf->vma; >> >> >> > > struct drm_vgem_gem_object *obj = vma->vm_private_data; >> >> >> > > /* We don't use vmf->pgoff since that has the fake offset */ >> >> >> > > unsigned long vaddr = vmf->address; >> >> >> > > - int ret; >> >> >> > > + vm_fault_t ret = VM_FAULT_SIGBUS; >> >> >> > > loff_t num_pages; >> >> >> > > pgoff_t page_offset; >> >> >> > > page_offset = (vaddr - vma->vm_start) >> PAGE_SHIFT; >> >> >> > > @@ -77,7 +77,6 @@ static int vgem_gem_fault(struct vm_fault *vmf) >> >> >> > > if (page_offset > num_pages) >> >> >> > > return VM_FAULT_SIGBUS; >> >> >> > > >> >> >> > > - ret = -ENOENT; >> >> >> > > mutex_lock(&obj->pages_lock); >> >> >> > > if (obj->pages) { >> >> >> > > get_page(obj->pages[page_offset]); >> >> >> > > -- >> >> >> > > 1.9.1 >> >> >> > > >> >> >> > >> >> >> > Any further comment on this patch ? >> >> >> >> >> >> Patch looks good to me. My build test fails, though, since vm_fault_t doesn't >> >> >> exist in drm-misc-next yet. >> >> > >> >> > vm_fault_t is already in upstream, just needs Maarten to do a backmerge. >> >> > Which I think he's done by now ... Otherwise nag him more :-) >> >> > -Daniel >> >> > >> >> >> >> >> >> So, for now, >> >> >> >> >> >> Reviewed-by: Sean Paul >> >> >> >> >> >> >> >> >> -- >> >> >> Sean Paul, Software Engineer, Google / Chromium OS >> >> >> _______________________________________________ >> >> >> dri-devel mailing list >> >> >> dri-devel@lists.freedesktop.org >> >> >> https://lists.freedesktop.org/mailman/listinfo/dri-devel >> >> > >> >> > -- >> >> > Daniel Vetter >> >> > Software Engineer, Intel Corporation >> >> > http://blog.ffwll.ch >> >> >> >> Daniel/ Sean, is this patch already merged for 4.18 ? >> > >> > Nope, fell through the cracks. Thanks for the reminder, queued for 4.18 >> > now. >> > -Daniel >> >> Thanks Daniel :). >> Few other similar drm driver patches are also candidates >> for 4.18. Are you the right Maintainer to make a request >> for the same ? > > No, please try to find others. I'm occasionally picking stuff up that fell > through all the cracks, as a last resort, but if I make that a habit then > this doesn't scale. Please check with MAINTAINERS who's more appropriate > to get nag mails from you :-) > Sorry about it, I will ping the right MAINTAINERS :)