Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Sep 2016 22:15:48 +0200
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        Andriy Gapon <avg@FreeBSD.org>
Cc:        FreeBSD CURRENT <freebsd-current@FreeBSD.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
--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 <avg@FreeBSD.org> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160918221548.012e9757.ohartman>