From owner-freebsd-current@FreeBSD.ORG Wed Oct 22 12:26:52 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 77EBE298 for ; Wed, 22 Oct 2014 12:26:52 +0000 (UTC) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 01C48C4F for ; Wed, 22 Oct 2014 12:26:51 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.9/8.14.9) with ESMTP id s9MCQgWU060372 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 22 Oct 2014 15:26:42 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.9.2 kib.kiev.ua s9MCQgWU060372 Received: (from kostik@localhost) by tom.home (8.14.9/8.14.9/Submit) id s9MCQewe060371; Wed, 22 Oct 2014 15:26:40 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 22 Oct 2014 15:26:40 +0300 From: Konstantin Belousov To: Adam McDougall Subject: Re: Ver 2 of the patch [was: Re: i915 driver update testing] Message-ID: <20141022122640.GL1877@kib.kiev.ua> References: <54315D3A.3090902@egr.msu.edu> <20141005170007.GZ26076@kib.kiev.ua> <5433260C.5050901@egr.msu.edu> <20141007042043.GG26076@kib.kiev.ua> <5433E408.2010601@egr.msu.edu> <20141007164419.GB2153@kib.kiev.ua> <20141007180106.GD2153@kib.kiev.ua> <54344766.1040700@egr.msu.edu> <20141008170525.GH2153@kib.kiev.ua> <54358C88.2080501@egr.msu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54358C88.2080501@egr.msu.edu> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tom.home Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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: Wed, 22 Oct 2014 12:26:52 -0000 On Wed, Oct 08, 2014 at 03:12:08PM -0400, Adam McDougall wrote: > On 10/08/2014 13:05, Konstantin Belousov wrote: > > There are more occurences of the bug I fixed once in patch version 2. > > Also, since pmap changes were committed in modified form, please try > > the updated patch at https://www.kib.kiev.ua/kib/drm/i915.3.patch . > > > > No apparent change: > http://www.egr.msu.edu/~mcdouga9/i915-patch3-1.txt cite> (kgdb) p *(struct drm_i915_private *)(dev_private) cite> No symbol "dev_private" in current context. This is p *(struct drm_i915_private *)(dev->dev_private) I regenerated patch after recent merges and changes in KPI on HEAD. https://www.kib.kiev.ua/kib/drm/i915.4.patch Please apply it, I think the issue should be there still. Then apply the following debugging patch, and set kenv drm.debug=0x3 before loading i915kms.ko. I want to see the same debugging information, and dmesg from the moment of loading the driver. diff --git a/sys/dev/drm2/i915/intel_sdvo.c b/sys/dev/drm2/i915/intel_sdvo.c index 74e479a..e1f1d09 100644 --- a/sys/dev/drm2/i915/intel_sdvo.c +++ b/sys/dev/drm2/i915/intel_sdvo.c @@ -1952,8 +1952,10 @@ intel_sdvo_select_i2c_bus(struct drm_i915_private *dev_priv, sdvo->i2c = intel_gmbus_get_adapter(dev_priv, pin); intel_gmbus_set_speed(sdvo->i2c, GMBUS_RATE_1MHZ); intel_gmbus_force_bit(sdvo->i2c, true); +printf("i915: select i2c pin %d priv %p i2c %p\n", pin, dev_priv, sdvo->i2c); } else { sdvo->i2c = intel_gmbus_get_adapter(dev_priv, GMBUS_PORT_DPB); +printf("i915: select i2c DPB %d priv %p i2c %p\n", pin, dev_priv, sdvo->i2c); } } @@ -2601,6 +2603,7 @@ bool intel_sdvo_init(struct drm_device *dev, uint32_t sdvo_reg, bool is_sdvob) intel_sdvo = malloc(sizeof(struct intel_sdvo), DRM_MEM_KMS, M_WAITOK | M_ZERO); +printf("i915: intel_sdvo %p\n", intel_sdvo); intel_sdvo->sdvo_reg = sdvo_reg; intel_sdvo->is_sdvob = is_sdvob;