From owner-freebsd-stable@FreeBSD.ORG Fri Nov 21 16:48:40 2008 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6ABB71065670 for ; Fri, 21 Nov 2008 16:48:40 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from mail-gw2.york.ac.uk (mail-gw2.york.ac.uk [144.32.128.247]) by mx1.freebsd.org (Postfix) with ESMTP id E18898FC13 for ; Fri, 21 Nov 2008 16:48:39 +0000 (UTC) (envelope-from gavin@FreeBSD.org) Received: from mail-gw7.york.ac.uk (mail-gw7.york.ac.uk [144.32.129.30]) by mail-gw2.york.ac.uk (8.13.6/8.13.6) with ESMTP id mALGmXrJ021954; Fri, 21 Nov 2008 16:48:33 GMT Received: from buffy-128.york.ac.uk ([144.32.128.160] helo=buffy.york.ac.uk) by mail-gw7.york.ac.uk with esmtps (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1L3ZBJ-000378-Je; Fri, 21 Nov 2008 16:48:33 +0000 Received: from buffy.york.ac.uk (localhost [127.0.0.1]) by buffy.york.ac.uk (8.14.2/8.14.2) with ESMTP id mALGmXts042211; Fri, 21 Nov 2008 16:48:33 GMT (envelope-from gavin@FreeBSD.org) Received: (from ga9@localhost) by buffy.york.ac.uk (8.14.2/8.14.2/Submit) id mALGmWAC042210; Fri, 21 Nov 2008 16:48:32 GMT (envelope-from gavin@FreeBSD.org) X-Authentication-Warning: buffy.york.ac.uk: ga9 set sender to gavin@FreeBSD.org using -f From: Gavin Atkinson To: Joerg Wunsch In-Reply-To: <20081121161629.GJ99866@uriah.heep.sax.de> References: <4926BDE5.5020708@icyb.net.ua> <20081121161629.GJ99866@uriah.heep.sax.de> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Fri, 21 Nov 2008 16:48:32 +0000 Message-Id: <1227286112.40570.12.camel@buffy.york.ac.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 FreeBSD GNOME Team Port X-York-MailScanner: Found to be clean X-York-MailScanner-From: gavin@freebsd.org Cc: FreeBSD Stable , Andriy Gapon Subject: Re: smbmsg(8): slave address confusion? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2008 16:48:40 -0000 On Fri, 2008-11-21 at 17:16 +0100, Joerg Wunsch wrote: > As Andriy Gapon wrote: > > > Now: > > > > (0x44 << 1) & 0xff == (0xc4 << 1) & 0xff = 0x88 (looks like RTC) > > (0x50 << 1) & 0xff == (0xd0 << 1) & 0xff = 0xa0 (well known SPD addr) > > (0x52 << 1) & 0xff == (0xd2 << 1) & 0xff = 0xa4 (well known SPD addr) > > (0x80 << 1) & 0xff = 0x0 (mentioned above "global address") > > (0x88 << 1) & 0xff == MIN_I2C_ADDR = 0x10 (something weird) > > > > I think that this demonstrates that FreeBSD smb driver expects slave > > addresses in range 0x0-0x7f. > > Well, the machine I've been writing smbmsg(8) on has been a Sun E450 I > don't have access to any longer, so I cannot post a live example > output. However, I could swear the output did make sense on that > machine, i. e. the typical 0xa0 etc. addresses were populated there. > Basically, the 0xa0 example you can find in the EXAMPLES section of > the man page has been tailored after an actual session transcript made > on said Sun E450. (I'm not completely sure about the 0x70 example > anymore, this could be a hypothetical one.) > > So could that be a backend driver issue, so various backend drivers > use different addressing formats? *shudder* I believe this is the case, yes. See for example, PR kern/100513. It appears that some frivers treat the adfdress one way, and others treat it the other. Gavin