From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damien Lespiau Subject: Re: [PATCH i-g-t 2/2] drv_module_reload: For some reason, vtcon0 has been seen as being fbcon Date: Thu, 10 Jul 2014 14:24:18 +0100 Message-ID: <20140710132418.GD3191@strange.ger.corp.intel.com> References: <1404998263-13851-1-git-send-email-damien.lespiau@intel.com> <1404998263-13851-2-git-send-email-damien.lespiau@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTP id 43A8A6E058 for ; Thu, 10 Jul 2014 06:24:36 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1404998263-13851-2-git-send-email-damien.lespiau@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Thu, Jul 10, 2014 at 02:17:43PM +0100, Damien Lespiau wrote: > Not sure if this was ABI, I vote for no, so just unbind everyone. > > Signed-off-by: Damien Lespiau Meh, this is very wrong, don't look at it. > --- > tests/drv_module_reload | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/tests/drv_module_reload b/tests/drv_module_reload > index 66cd6bb..0e729d3 100755 > --- a/tests/drv_module_reload > +++ b/tests/drv_module_reload > @@ -5,14 +5,17 @@ > # ... we've broken this way too often :( > # > > +set -x > + > SOURCE_DIR="$( dirname "${BASH_SOURCE[0]}" )" > . $SOURCE_DIR/drm_lib.sh > > # no other drm service should be running, so we can just unbind > > # vtcon0 is vga, vtcon1 fbcon and let's pray that won't change due to boot load > -# time changes > -if ! echo 0 > /sys/class/vtconsole/vtcon1/bind ; then > +# time changes. It just did here!, unbind everything, like a boss. > +if ! echo 0 > /sys/class/vtconsole/vtcon0/bind && \ > + echo 0 > /sys/class/vtconsole/vtcon1/bind; then > echo -e "no kms unload support" > echo "please enable CONFIG_VT_HW_CONSOLE_BINDING in the kernel" > exit 77 > -- > 1.8.3.1 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx