Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2769027imm; Thu, 24 May 2018 15:52:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqABIhP0+S6yx3GhTDz2/0b/ZyKJmGfWbTl6oRqqaUciZB3HW/M2QsSJutKR6SKiUKxTsQR X-Received: by 2002:a63:7741:: with SMTP id s62-v6mr2982131pgc.103.1527202343981; Thu, 24 May 2018 15:52:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527202343; cv=none; d=google.com; s=arc-20160816; b=vOeRGp6H0dtxxkV0xL7QcSlATV9wiPxxTCWr8koDRTLzWQW8l7dyqizrtzM4Tquxjk DKrYxuImA0zbUowg68Yc9/NBmIaMhGMpyPgwcC0SxvrI8fI8V2YH2skFJe8AYfvKj+88 Dn5BUO8aK0LnoBQWvFCzvSSrdPhh6wWveFFFoaPkU/2RK3PKsagXTwF6O9wx3qZmt/tu SZBJe7dnubdKEHoGlI0pO+voAXsyBWYvbRUTwFP5gPmWFEclM1Uhnmzftjr7meRhPFTi 3IWN06l+iiWsbpU5GI2ZyymfS7sFxROE6Cbs+J+ssS5bC2TfgmBYOBgwBeCReezTWrfp XEag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=mm5TROng0oqnicxCgZfNQWDN4X8pE2QU5f1I9BTvIeA=; b=w2Ye1PUyJ382x1MBVkphVHr+MMc4HuyoxNwfLV1oAgrtsgG8lx0NXehcK5rb3pEwdr nEBd3LdukBUr4hjRCmAKIqIbmQ8qsU4hNAwNaEaRx8HuVr8/HMqPoWCpmvk73G626c4j GTdqI17uiWvUmAuheCM0zZGICyYYHd4srolrzCU/PmLAHjZdchWE8gjm4ZxO+mzisXHD C/bSMWGGlZw9A0jKHxMA7VAEPnCcZYYJlLRSHMJLVqC2cC6EWmF0XS4sDWMHgURA3mav rBK2DNK2QekuzcsRKpmNBfWe4Wo0E/j9mny69ZAWg2kokcRUF1IIdGwfsKV3aihC41FO kTew== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=St5ugUHa; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si22571811plh.34.2018.05.24.15.52.08; Thu, 24 May 2018 15:52:23 -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=fail header.i=@ffwll.ch header.s=google header.b=St5ugUHa; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967593AbeEXM6C (ORCPT + 99 others); Thu, 24 May 2018 08:58:02 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:39753 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964789AbeEXM6B (ORCPT ); Thu, 24 May 2018 08:58:01 -0400 Received: by mail-wm0-f65.google.com with SMTP id f8-v6so5008244wmc.4 for ; Thu, 24 May 2018 05:58:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=mm5TROng0oqnicxCgZfNQWDN4X8pE2QU5f1I9BTvIeA=; b=St5ugUHaDH/58VW9H3TEY7ieTS2ISPYrkFWWHD9p3HrHOMXM2jszbubIPmBIhKsbk5 f2lC5PLK8v3GbPsbReHFqy3GiQm4u2Fq0AaELW/2i51tLppovsgHMezv7cDFV0n50uoa pzMM8ReB6Pt42s1Lkgx9Dl+FAt/Tpnv1698KE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=mm5TROng0oqnicxCgZfNQWDN4X8pE2QU5f1I9BTvIeA=; b=mLUxG/wpAlY+V+q3bj0CYP6oAEZzMsT/GPmQpBam6/jkr+Mp6PrJklcmpm4ymOBpfr oNsFdwK349dl7GCbGtDSOM7G9RvRitsdprYagWiUmt+TmES+q4+w8MKk4HLUc1BNNaSr oDfyZ/RMeqq9TIYHQZoLfGIGk1g821JBMdhC/KW1+AQ1hgSEN8/FGQFIjuN5q0lx7heo Ugpyygmo2TO7vR8ZKRBpdrQYe1qhWcB4AdO39HMwkDg35l/4lG6RZhH3DKEwh6Z8YuO8 I5c9qif4k0DCCWJSezSYKeMe7Wf7WsFTwXL4+7Oag0oWee8RKDuyMXu070Mx/Fj8ncQD WJbw== X-Gm-Message-State: ALKqPwc+S0+6W9fAGZvmdDwMvcsQPb65BRPnAcorF2z/mKd6nW89Nf9H MhtXD/efLYJD3DVQmDOQCzj3rw== X-Received: by 2002:a50:a8a2:: with SMTP id k31-v6mr12221390edc.63.1527166679651; Thu, 24 May 2018 05:57:59 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:5628:0:d0c7:bcda:eea:9e5d]) by smtp.gmail.com with ESMTPSA id k51-v6sm11892481eda.35.2018.05.24.05.57.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 May 2018 05:57:58 -0700 (PDT) Date: Thu, 24 May 2018 14:57:56 +0200 From: Daniel Vetter To: Souptick Joarder Cc: Sean Paul , linux-kernel@vger.kernel.org, Matthew Wilcox , dri-devel@lists.freedesktop.org Subject: Re: [PATCH] gpu: drm: vgem: Change return type to vm_fault_t Message-ID: <20180524125756.GO3438@phenom.ffwll.local> Mail-Followup-To: Souptick Joarder , Sean Paul , linux-kernel@vger.kernel.org, Matthew Wilcox , dri-devel@lists.freedesktop.org References: <20180416150232.GA26745@jordon-HP-15-Notebook-PC> <20180510185138.GL33053@art_vandelay> <20180514162617.GD28661@phenom.ffwll.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 4.15.0-3-amd64 User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > _______________________________________________ > 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