From owner-freebsd-current@freebsd.org Sun Sep 18 20:15:57 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 EC94ABE0FEF for ; Sun, 18 Sep 2016 20:15:57 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AE2DD9C2; Sun, 18 Sep 2016 20:15:57 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.85) with esmtps (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (envelope-from ) id <1bliVH-000Cad-7Z>; Sun, 18 Sep 2016 22:15:55 +0200 Received: from x5ce124d3.dyn.telefonica.de ([92.225.36.211] helo=thor.walstatt.dynvpn.de) by inpost2.zedat.fu-berlin.de (Exim 4.85) with esmtpsa (TLSv1.2:AES256-GCM-SHA384:256) (envelope-from ) id <1bliVG-003pcm-TP>; Sun, 18 Sep 2016 22:15:55 +0200 Date: Sun, 18 Sep 2016 22:15:48 +0200 From: "O. Hartmann" To: Andriy Gapon Cc: FreeBSD CURRENT Subject: Re: CURRENT: SMBus controller driver for AMD APU GX-412TC SOC Message-ID: <20160918221548.012e9757.ohartman@zedat.fu-berlin.de> In-Reply-To: <7f1aa503-fe9b-279d-7c75-bde1432d406c@FreeBSD.org> References: <20160918160547.188cc061.ohartman@zedat.fu-berlin.de> <7f1aa503-fe9b-279d-7c75-bde1432d406c@FreeBSD.org> Organization: FU Berlin X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.29; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/Elw_+jhs0RRg5/pltwF79lR"; protocol="application/pgp-signature" X-Originating-IP: 92.225.36.211 X-ZEDAT-Hint: A 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: Sun, 18 Sep 2016 20:15:58 -0000 --Sig_/Elw_+jhs0RRg5/pltwF79lR Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Am Sun, 18 Sep 2016 19:56:24 +0300 Andriy Gapon schrieb: > On 18/09/2016 17:05, O. Hartmann wrote: > > Running a recent CURRENT (FreeBSD 12.0-CURRENT #11 r305903: Sat Sep 17 = 20:30:19 CEST > > 2016) on a PCengines APU 2C4, I see no driver adapted to the SMBus of t= he system, > > although I have the driver statically linked into the kernel via > >=20 > > [...] > > # System Management Bus > > device smbus > > device smb # SMB generic I/O device driver > > device ichsmb # Intel ICH SMBus controller driver > > device amdsmb # AMD-8111 SMBus 2.0 controller driver > > device iicsmb # > > device iicbus > > device iicbb > > device iic > > device ic > > [...] > >=20 > > pciconf -lvbp shows up this message: > >=20 > > [...] > > none1@pci0:0:20:0: class=3D0x0c0500 card=3D0x780b1022 chip=3D0x780= b1022 rev=3D0x42 > > hdr=3D0x00 vendor =3D 'Advanced Micro Devices, Inc. [AMD]' > > device =3D 'FCH SMBus Controller' > > class =3D serial bus > > subclass =3D SMBus > >=20 > > So, I guess CURRENT doesn't have a driver covering this type of system?= Or do I miss > > something here? =20 >=20 > First of all, as strange as it may seem, the correct driver in this case = would > be intpm. See its manual page. > Second, the driver doesn't support your hardware yet. Some rather small = changes > are required and I am working on that. First: thanks for the answer. Second: thanks for working on it. Third: As s= trange as it may sound, I would have expected it to reside in amdsmb(4) ;-) >=20 >=20 > > I also see a very strange, mysterious and interesting feature, also not= attached with > > a driver: > >=20 > > none0@pci0:0:8:0: class=3D0x108000 card=3D0x15371022 chip=3D0x153= 71022 rev=3D0x00 > > hdr=3D0x00 vendor =3D 'Advanced Micro Devices, Inc. [AMD]' > > class =3D encrypt/decrypt > > bar [10] =3D type Prefetchable Memory, range 64, base 0xfea00000,= size 131072, > > enabled bar [18] =3D type Memory, range 32, base 0xfe800000, size 104= 8576, enabled > > bar [1c] =3D type Memory, range 32, base 0xfea24000, size 4096, e= nabled > > bar [20] =3D type Memory, range 32, base 0xfe900000, size 1048576= , enabled > > bar [24] =3D type Memory, range 32, base 0xfea20000, size 8192, e= nabled > > cap 11[50] =3D MSI-X supports 2 messages > > Table in map 0x24[0x0], PBA in map 0x24[0x1000] > > cap 08[5c] =3D HT MSI fixed address window enabled at 0xfee00000 > > cap 01[60] =3D powerspec 3 supports D0 D3 current D0 > >=20 > >=20 > > Encrypt/decrypt? What is this? > >=20 > > Thanks for your patience and enlighting me, =20 >=20 > I think that that's this hardware: > http://www.amd.com/en-us/innovations/software-technologies/security > http://www.anandtech.com/show/6007/amd-2013-apus-to-include-arm-cortexa5-= processor-for-trustzone-capabilities >=20 > Linux has a driver for it: > http://www.phoronix.com/scan.php?px=3DMTU4MTM&page=3Dnews_item > http://cateee.net/lkddb/web-lkddb/CRYPTO_DEV_CCP.html >=20 I see ... Linux then ... Kind regards, Oliver --Sig_/Elw_+jhs0RRg5/pltwF79lR Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJX3vX1AAoJEOgBcD7A/5N8U/QH/3JlwT/5GLBHy+WPVWz2FJq/ hLCffN3ezg0xij3Kq0n+FUL0v/JMOV52Iaw6vMLKOF/4N1110ttDk9Hq/0xwY6Cy aS4/9lnMdfNlbXE+nPPCt+mnvHLhtMUIagCkMHpd/2f9F4LBucRFRyb7EtcYXnj1 rASh1f8/mGR5f8pFwGZhuVoK5QziqKGs8Cgy995FIoM4cJ9oMVpL3zf8J0npwiBJ +1bGkOteysi534iw36zTOXwHEcP1wnYE7hg0VupD703JiahdhbAEjlqSHIROD0AM 0R4IyyNdUNhCRXQ8w/AzLslYPRkphRRq61EYGMl+NkFAvQ8baHrdbTOVYOr+Oe4= =L2aV -----END PGP SIGNATURE----- --Sig_/Elw_+jhs0RRg5/pltwF79lR--