Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2869338imm; Thu, 24 May 2018 17:56:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpTnULhdTYJbyWhybsVGhxFfnaTyw+XK+6dzL3dkKGBJ4YwJdPgQpNsqKE3WumP7yQApLSh X-Received: by 2002:a17:902:3181:: with SMTP id x1-v6mr313088plb.198.1527209774770; Thu, 24 May 2018 17:56:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527209774; cv=none; d=google.com; s=arc-20160816; b=aBZ9MCfN6XqxvC1xHad6N6bXS2mKcRm778x+tZjVg7OynZ6XwdxfxvBHMtOuSZrcCm 1FKVgk2pUkWwdoCqSUqR3n86c5yh+7JrBxpX4wSBbD11hua4U5KgCF37Q3er4B+c8k5W Ze0o/1hGcb2e4be/W2PlTy80kvhGCAgNyAmlw4WkLlB262B4VP9/4X6YP3IJTQvCZqwF P1VWitmySTg5ktrzdlx+hpzC/C7CvQrPWJFXldbtYqMqPeQ4YJozl5tKZRTET4yaTW38 4qN7jBIODDqw2CWOMPKe34RQ3/MBXueaFKPzCPz0/ubse9Tt+NRyEz9A/3XJRdHynJ0s w7Ww== 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=hlAMLBhlOjWcMepVAJoovyaLley3E7NCctFBoztLqjc=; b=oJt+PsQV/CzB78BN7U1MZHutUPsItG88aN2H3VibX4Xi5Nn5plO3n5M98tW5NV4ljW hNGDfSt6XxWesbdxn3WcWr+SXGwlpDhuqRtcQT/sN4EkeTJtlH1Di0WH8XLAeonpMVda ukJyfQ/ekARo1mmk9Lk7QmHNLTHTjAdcZWhNyJpdA9g9xsA0rc4C8rgpHST061OiPizp Znu7I8Wbdb5iP29APsLuVIazuafE4/NsPX4VEcPgTHwDtMYzOuPZbPgb0aDHW3QsDXaj n4rh6l0Jp6+DXofkq10UXfeTq+sDcLJZlvb1lFeoIsTtnCGgjBMiPghnvM2L4n6429uy VbWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=d27Td+jh; 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 71-v6si22745877plc.164.2018.05.24.17.55.59; Thu, 24 May 2018 17:56:14 -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=d27Td+jh; 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 S1033172AbeEXOVt (ORCPT + 99 others); Thu, 24 May 2018 10:21:49 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:35006 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033104AbeEXOVm (ORCPT ); Thu, 24 May 2018 10:21:42 -0400 Received: by mail-wr0-f196.google.com with SMTP id i14-v6so3482374wre.2 for ; Thu, 24 May 2018 07:21:41 -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=hlAMLBhlOjWcMepVAJoovyaLley3E7NCctFBoztLqjc=; b=d27Td+jhVI6r/X6ar+bw+eQc5aGxdi4UOOm/YqEJmXQa/FZ3vEzagi1EwIaQtmeFt/ 0i5hAa0ygU7e/0avSKprWNz4lW24SjjAsQg5uGKsMdCNmRQKvthMuj7lMBpfPGDjYFlC olW6e7wGYFM7w+jS54nhtBfEKnmHGlbh62v0JNsUXGe1yH1gS/vzlEdHlCYEG2bM/vzB ddKFxo+dNHu4Gps4Og0cmd1sX2fmdcRLL1Wi3BOZrEBWvziD6aA5dGwaNTTh8r2En3OI vAv1br2lS5nPgbtoZlM6xe8vilegvxGAfjuJqrMxm2ka9moWzGAE4MqrSZTUMnO+uFU5 /nLg== 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=hlAMLBhlOjWcMepVAJoovyaLley3E7NCctFBoztLqjc=; b=XYKCzcwUTQKRjGW+3jHtW1d6efHjQGYH8mT3nVgsx+q+gfQYr6fWyTtyhYOXmDkLK4 /SirChsDMi33MHVOaI8WZdW9du94ayGAdbLufFZoyy1TXqvIpHe8YdFKStzSAaqP2cue 3GApsPkCwBQReluKA8fBzL5Rvg8Oe8XYWcuwls0BL880zKhH3I7XiukkEUexwOr3Yf9W N2WndfOMlvp7VbcN2WsR9Wn0oPOusWAPhYtIG2ssAb6p0hCAf3WOzAuajX+mfs+psVWV sbMmxcMu6VAej93rtiyEm0r3D2YDod624cVHRR5Aw1v75PAfuFgSkbRTnPfz2UK9T8Cs 3s4g== X-Gm-Message-State: ALKqPwdRa0yxsMgYb56suZjEjDY+8SRrxuZjsj/H/aQ7+CpxNnu7JkBY ZTK3ZhJvqWMGkraHknwhXIPy3t6TZS8TfI7k4sw= X-Received: by 2002:a19:9a10:: with SMTP id c16-v6mr4530384lfe.60.1527171700845; Thu, 24 May 2018 07:21:40 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:d885:0:0:0:0:0 with HTTP; Thu, 24 May 2018 07:21:40 -0700 (PDT) In-Reply-To: <20180524125756.GO3438@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> From: Souptick Joarder Date: Thu, 24 May 2018 19:51:40 +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 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 ?