From patchwork Thu Nov 7 01:09:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bob Gleitsmann X-Patchwork-Id: 3150301 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AA89DBEEB2 for ; Thu, 7 Nov 2013 01:15:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BE4F5205F5 for ; Thu, 7 Nov 2013 01:15:21 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id D1669205E2 for ; Thu, 7 Nov 2013 01:15:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0E5D63812D; Wed, 6 Nov 2013 17:15:13 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 301 seconds by postgrey-1.32 at gabe; Wed, 06 Nov 2013 17:15:02 PST Received: from fmailhost01.isp.att.net (fmailhost01.isp.att.net [204.127.217.101]) by gabe.freedesktop.org (Postfix) with ESMTP id 58E161316A4 for ; Wed, 6 Nov 2013 17:15:02 -0800 (PST) Received: from [192.168.1.3] (adsl-74-233-29-118.mia.bellsouth.net[74.233.29.118]) by isp.att.net (frfwmhc01) with SMTP id <20131107011000H0100qbvdie>; Thu, 7 Nov 2013 01:10:00 +0000 X-Originating-IP: [74.233.29.118] Message-ID: <1383786599.1296.8.camel@s2895bg> Subject: [Fwd: [Patch] drm/nouveau: nouveau/nouveau_abi16.c does not return offset of allocated notifier] From: Bob Gleitsmann To: dri-devel@lists.freedesktop.org Date: Wed, 06 Nov 2013 20:09:59 -0500 X-Mailer: Evolution 3.8.5 (3.8.5-2.fc19) Mime-Version: 1.0 Cc: bskeggs@redhat.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP I think this may have been overlooked, but it does make a difference. BTW, the comments in the code state that the fence has to be at zero offset in the page. In the course of investigating this problem I found that this is not the case, at least for the 6800 Ultra. I have it located at f80 and it works correctly. Or seems to. Best Wishes, Bob Hi, The following patch fixes problems retrieving query results. I have tested it on nv40 - 6800 Ultra. Best Wishes, Bob if (ret) --- a/drivers/gpu/drm/nouveau/nouveau_abi16.c +++ b/drivers/gpu/drm/nouveau/nouveau_abi16.c @@ -445,6 +445,7 @@ nouveau_abi16_ioctl_notifierobj_alloc(ABI16_IOCTL_ARGS) sizeof(args), &object); if (ret) goto done; + info->offset = ntfy->node->offset; done: