Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Sep 2016 19:56:24 +0300
From:      Andriy Gapon <avg@FreeBSD.org>
To:        "O. Hartmann" <ohartman@zedat.fu-berlin.de>, FreeBSD CURRENT <freebsd-current@FreeBSD.org>
Subject:   Re: CURRENT: SMBus controller driver for AMD APU GX-412TC SOC
Message-ID:  <7f1aa503-fe9b-279d-7c75-bde1432d406c@FreeBSD.org>
In-Reply-To: <20160918160547.188cc061.ohartman@zedat.fu-berlin.de>
References:  <20160918160547.188cc061.ohartman@zedat.fu-berlin.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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 the system,
> although I have the driver statically linked into the kernel via
> 
> [...]
> # 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
> [...]
> 
> pciconf -lvbp shows up this message:
> 
> [...]
> none1@pci0:0:20:0:      class=0x0c0500 card=0x780b1022 chip=0x780b1022 rev=0x42 hdr=0x00
>     vendor     = 'Advanced Micro Devices, Inc. [AMD]'
>     device     = 'FCH SMBus Controller'
>     class      = serial bus
>     subclass   = SMBus
> 
> So, I guess CURRENT doesn't have a driver covering this type of system? Or do I miss
> something here?

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.


> I also see a very strange, mysterious and interesting feature, also not attached with a
> driver:
> 
> none0@pci0:0:8:0:       class=0x108000 card=0x15371022 chip=0x15371022 rev=0x00 hdr=0x00
>     vendor     = 'Advanced Micro Devices, Inc. [AMD]'
>     class      = encrypt/decrypt
>     bar   [10] = type Prefetchable Memory, range 64, base 0xfea00000, size 131072, enabled
>     bar   [18] = type Memory, range 32, base 0xfe800000, size 1048576, enabled
>     bar   [1c] = type Memory, range 32, base 0xfea24000, size 4096, enabled
>     bar   [20] = type Memory, range 32, base 0xfe900000, size 1048576, enabled
>     bar   [24] = type Memory, range 32, base 0xfea20000, size 8192, enabled
>     cap 11[50] = MSI-X supports 2 messages
>                  Table in map 0x24[0x0], PBA in map 0x24[0x1000]
>     cap 08[5c] = HT MSI fixed address window enabled at 0xfee00000
>     cap 01[60] = powerspec 3  supports D0 D3  current D0
> 
> 
> Encrypt/decrypt? What is this?
> 
> Thanks for your patience and enlighting me,

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

Linux has a driver for it:
http://www.phoronix.com/scan.php?px=MTU4MTM&page=news_item
http://cateee.net/lkddb/web-lkddb/CRYPTO_DEV_CCP.html

-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7f1aa503-fe9b-279d-7c75-bde1432d406c>