From rea@codelabs.ru  Fri Dec 14 18:27:05 2012
Return-Path: <rea@codelabs.ru>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 496D0D79;
	Fri, 14 Dec 2012 18:27:05 +0000 (UTC)
	(envelope-from rea@codelabs.ru)
Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.6.71])
	by mx1.freebsd.org (Postfix) with ESMTP id D59D78FC08;
	Fri, 14 Dec 2012 18:27:04 +0000 (UTC)
Received: from void.codelabs.ru (void.codelabs.ru [144.206.6.66])
	by 0.mx.codelabs.ru with esmtps (TLSv1:DHE-RSA-AES256-SHA:256)
	id 1TjZyP-000F4q-FA; Fri, 14 Dec 2012 22:27:03 +0400
Message-Id: <20121214182701.0E000DA819@void.codelabs.ru>
Date: Fri, 14 Dec 2012 22:27:01 +0400 (MSK)
From: Eygene Ryabinkin <rea@freebsd.org>
Reply-To: Eygene Ryabinkin <rea@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: jhb@freebsd.org, ed@freebsd.org, jkim@freebsd.org
Subject: Enable detection of Synaptics touchpad for firmware >= 7.5
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         174441
>Category:       kern
>Synopsis:       [psm] [patch] Enable detection of Synaptics touchpad for firmware >= 7.5
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 14 18:30:00 UTC 2012
>Closed-Date:    
>Last-Modified:  Sun Mar 10 05:07:18 UTC 2013
>Originator:     Eygene Ryabinkin
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
Code Labs
>Environment:

System: FreeBSD 10.0-CURRENT amd64

>Description:

Newer Synaptics touchpads with firmware 7.5 don't put 0x47
to the middle byte for commands 0x01 and 0x02.

>How-To-Repeat:

Get a laptop with new Synaptics (mine was Toshiba Z930) and try to
boot with hw.psm.synaptics_support=1 in loader.conf.  Kernel will
respond with the message "Failed to read extended capability bits"
just before the psm0 device information string.

New manual for Synaptics interface,
  http://www.synaptics.com/sites/default/files/511-000275-01_RevB.pdf
is also helpful to understand what is going on.

>Fix:

I had patched psm.c,
  http://codelabs.ru/fbsd/patches/psm/support-synaptics-firmware-7.5.diff

I had tested it briefly on my laptop and no regressions were found
yet.
>Release-Note:
>Audit-Trail:
>Unformatted:
