From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Vetter Subject: Re: [PATCH] drm/i915: Specify bsd rings through exec flag Date: Wed, 6 Aug 2014 09:45:05 +0200 Message-ID: References: <1407225244-6457-1-git-send-email-zhipeng.gong@intel.com> <20140805084444.GG8727@phenom.ffwll.local> <1407288722.2043.66.camel@genxdev-ykzhao.sh.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ie0-f179.google.com (mail-ie0-f179.google.com [209.85.223.179]) by gabe.freedesktop.org (Postfix) with ESMTP id B5F846E5AD for ; Wed, 6 Aug 2014 00:45:05 -0700 (PDT) Received: by mail-ie0-f179.google.com with SMTP id rl12so2432132iec.38 for ; Wed, 06 Aug 2014 00:45:05 -0700 (PDT) In-Reply-To: <1407288722.2043.66.camel@genxdev-ykzhao.sh.intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: "Zhao, Yakui" Cc: "intel-gfx@lists.freedesktop.org" List-Id: intel-gfx@lists.freedesktop.org On Wed, Aug 6, 2014 at 3:32 AM, Zhao, Yakui wrote: > >After the GPU hang occurs on BSD ring during decoding, it needs to > specify the corresponding BSD ring to read the decoding status registers > related with the BSD ring. > > Can this be regarded as one open-source usage scenario? Sure, but I'm not sure whether this is the correct way to do this - if some other libva client does an execbuf in-between couldn't these register get overwritten? It sounds like the kernel should capture these registers for userspace in a race-free way and then provide them with maybe an extension to the reset-stats ioctl? I definitely want to see how this is used in libva before signing up for a new kernel interface. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch