From owner-freebsd-current@freebsd.org Tue Dec 13 18:45:35 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7458BC7630F for ; Tue, 13 Dec 2016 18:45:35 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from mail.protected-networks.net (mail.protected-networks.net [IPv6:2001:470:8d59:1::8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protected-networks.net", Issuer "Protected Networks CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D30D91056 for ; Tue, 13 Dec 2016 18:45:33 +0000 (UTC) (envelope-from imb@protected-networks.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= protected-networks.net; h=content-transfer-encoding:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:from:from:references:subject:subject; s=201508; t= 1481654729; bh=vGp3Vq2WnrRB4he84uHEzUwOQFSYlVu2/J4Trpa+rV8=; b=U cD+dMWJ9/RH5V/VGB79yrO1AtewJxoC/b2z8jhAU+Z+CAfSHK+vWhZXqrMJcUXE6 6eoJ37hmvb1qLFxYfjXjV0ZsDWdWVpTOiwhQ8IJR/RfJUAnNxpEXkK53i10D1J+k c9x8qhhyU3ljPL30QD4cERGuI9FWNbt4tipXxLN78w= Received: from toshi.auburn.protected-networks.net (toshi.auburn.protected-networks.net [192.168.1.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: imb@mail.protected-networks.net) by mail.protected-networks.net (Postfix) with ESMTPSA id 3C9541BEF4; Tue, 13 Dec 2016 13:45:29 -0500 (EST) Subject: Re: DRM_I915_GEM_OBJECT_MAX_PIN_COUNT failure on -current To: Konstantin Belousov References: <57abe23a-d7b5-953c-9119-c1d281106db6@protected-networks.net> <20161213170739.GB54029@kib.kiev.ua> Cc: FreeBSD Current From: Michael Butler Message-ID: <6c7a60d3-f46e-c0af-3d8d-ee57f1cb0e44@protected-networks.net> Date: Tue, 13 Dec 2016 13:45:28 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20161213170739.GB54029@kib.kiev.ua> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2016 18:45:35 -0000 On 12/13/16 12:07, Konstantin Belousov wrote: > On Tue, Dec 13, 2016 at 11:49:37AM -0500, Michael Butler wrote: >> I've been bitten by this twice on a KDE desktop in the last 24 hours .. >> same error on both occasions :-( >> >> error: [drm:pid1197:i915_gem_object_pin] *ERROR* WARN ON: obj->pin_count >> == DRM_I915_GEM_OBJECT_MAX_PIN_COUNT >> pid 1197 (Xorg), uid 0: exited on signal 6 (core dumped) >> >> [ .. ] >> >> error: [drm:pid16212:i915_gem_object_pin] *ERROR* WARN ON: >> obj->pin_count == DRM_I915_GEM_OBJECT_MAX_PIN_COUNT >> pid 16212 (Xorg), uid 0: exited on signal 6 (core dumped) >> >> I see only one change in the dev/drm2 sources (r309712) but there have >> been many in the vm code. >> >> Any hints/pointers appreciated, > > This is indeed a bug in r309712, it seems. Please try this. > > diff --git a/sys/dev/drm2/i915/i915_gem.c b/sys/dev/drm2/i915/i915_gem.c > index 2a53ae8f8ed..0fa5249e553 100644 > --- a/sys/dev/drm2/i915/i915_gem.c > +++ b/sys/dev/drm2/i915/i915_gem.c > @@ -1521,7 +1521,7 @@ retry: [ .. ] That seems to have fixed it - thanks for the quick response :-) Michael