From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Anton V. Boyarshinov" Subject: Re: [PATCH] xf86drm.c: add counter for ioctl restarting Date: Mon, 16 Apr 2012 12:54:35 +0400 Message-ID: <20120416125435.6a94f9f9@boyarsh.office.altlinux.ru> References: <20120413172642.4c423352@boyarsh.office.altlinux.ru> <20120413134216.GG4525@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from vint.altlinux.org (vint.altlinux.org [194.107.17.35]) by gabe.freedesktop.org (Postfix) with ESMTP id 9BF309ED24 for ; Mon, 16 Apr 2012 01:54:37 -0700 (PDT) In-Reply-To: <20120413134216.GG4525@phenom.ffwll.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Daniel Vetter Cc: DRI mailing list List-Id: dri-devel@lists.freedesktop.org Hi > Obviously if we have a dead gpu, we need to break out of this loop. But > detecting a dead gpu (and returning an appropriate error like EIO) is the > kernel's job. In my case gpu isn't really dead. It works after some ioctl skip. I understend that it is a driver bug in any case, but i thing that working around this bugs with proper logging (absent in this patch) much better than lockup. Regards, Anton