Re: pcengines apu boards

2018-01-29 Thread Tom Smyth
Hello
Im not so sure if this is relevant or not but sometimes when installing
6.2.fs onto a usb stick it wont boot in one of the exterior front USB3
Ports, I pretty much dismissed this as an electrical connection issue
but maybe there is more to it ...Unfortunately I only use USB3 for
installing OpenBSD after that I dont really use it at all

On 29 January 2018 at 20:13, Mike Tancsa  wrote:
> On 1/28/2018 8:40 PM, Paul B. Henson wrote:
>> On Wed, Jan 17, 2018 at 12:56:04PM +0100, Christopher Zimmermann wrote:
>>
>>> I have the same problem and have tried to hunt the bug, but failed so
>>> far. Have you already identified the quirks linux and freebsd use to
>>> fix this problem?
>>
>> No :(, I worked on it for a while but kernel hacking isn't my
>
> Not sure if it will help or not, but I recall a timing issue on earlier
> versions of FreeBSD and the APU2/3s where I could work around it by
> loading the xhci module as a kld after the box had fully booted.
>
> ---Mike
> --
> ---
> Mike Tancsa, tel +1 519 651 3400
> Sentex Communications, m...@sentex.net
> Providing Internet services since 1994 www.sentex.net
> Cambridge, Ontario Canada   http://www.tancsa.com/
>



Re: pcengines apu boards

2018-01-29 Thread Mike Tancsa
On 1/28/2018 8:40 PM, Paul B. Henson wrote:
> On Wed, Jan 17, 2018 at 12:56:04PM +0100, Christopher Zimmermann wrote:
> 
>> I have the same problem and have tried to hunt the bug, but failed so
>> far. Have you already identified the quirks linux and freebsd use to
>> fix this problem?
> 
> No :(, I worked on it for a while but kernel hacking isn't my

Not sure if it will help or not, but I recall a timing issue on earlier
versions of FreeBSD and the APU2/3s where I could work around it by
loading the xhci module as a kld after the box had fully booted.

---Mike
-- 
---
Mike Tancsa, tel +1 519 651 3400
Sentex Communications, m...@sentex.net
Providing Internet services since 1994 www.sentex.net
Cambridge, Ontario Canada   http://www.tancsa.com/



Re: pcengines apu boards

2018-01-28 Thread Paul B. Henson
On Wed, Jan 17, 2018 at 12:56:04PM +0100, Christopher Zimmermann wrote:

> I have the same problem and have tried to hunt the bug, but failed so
> far. Have you already identified the quirks linux and freebsd use to
> fix this problem?

No :(, I worked on it for a while but kernel hacking isn't my
speciality. I don't think the specific quirks I was initially trying to
port would have fixed it anyway, as they seemed mainly aimed at data
transfers and I couldn't even get the miniPCI card to get hot plugged
and detected while testing with an external miniPCI to USB adapter
plugged into the internal EHCI header.

I ended up just using the external adapter plugged into the xHCI ports
exposed outside the case. Annoying not to be able to just have it inside
the case, but it works like a champ in this configuration.



Re: pcengines apu boards

2018-01-17 Thread Christopher Zimmermann
On 2017-11-30 "Paul B. Henson"  wrote:
> > From: Base Pr1me
> > Sent: Thursday, November 30, 2017 2:08 PM
> > 
> > I run 5 apu2 devices with no problems. I don't have any apu3 devices ... 
> > yet.  
> 
> Thanks for the feedback. Do you by any chance have any USB type Mini PCI 
> cards installed internally? I initially noticed the issue with a mini PCI LTE 
> modem card. Then I realized it was a more generic USB problem; I believe the 
> apu2 has USB1 and USB2 ports, the apu3 has two USB3 ports externally, and 
> then the mini PCI and a couple of internal headers are USB2. The USB3 ports, 
> using the xHCI driver, work fine, I suppose in the worst case I could use an 
> external Mini PCI to USB adapter and plug the card in outside of the case, 
> but that just seems so kludgy .
> 
> I actually found a friend locally who had a apu2 board, he couldn't get the 
> LTE card to work on the internal mini PCI slot, which also appeared to be 
> EHCI based, and it would sometimes work and sometimes not plugged into the 
> external USB ports. It was really weird, when plugged into the same external 
> port, sometimes the device would show up on the EHCI bus (and not work) and 
> sometimes it would show up on the OHCI bus (and work). He didn't seem to have 
> any trouble with USB flash drives on the EHCI bus on his apu2 though.
> 
> 


Hi,

I have the same problem and have tried to hunt the bug, but failed so
far. Have you already identified the quirks linux and freebsd use to
fix this problem?

Christopher


-- 
http://gmerlin.de
OpenPGP: http://gmerlin.de/christopher.pub
2779 7F73 44FD 0736 B67A  C410 69EC 7922 34B4 2566



Re: pcengines apu boards

2017-12-05 Thread Marko Cupać
On Mon, 4 Dec 2017 12:53:26 -0800
"Paul B. Henson"  wrote:

> > From: Marko Cupac
> > Sent: Monday, December 4, 2017 3:54 AM
> > 
> > I have just ordered one APU3b4, as I wanted to test mobile provider
> > as a backup link. I see it probably won't be any good as OpenBSD
> > router (yet), but at least I'll be able to test and give feedback.  
> 
> Assuming you're planning to use an internal Mini PCI card, unless you
> have more luck than me, it's not going to work :(. I'm hoping I will
> be able to fix the EHCI driver to be more happy with the AMD USB
> chipset, but this point I'm still fumbling with it :).

My APU3b4 has just arrived, hopefully I'll have time to install it with
OpenBSD tomorrow and send feedback.

Regards,
-- 
Before enlightenment - chop wood, draw water.
After  enlightenment - chop wood, draw water.

Marko Cupać
https://www.mimar.rs/



Re: pcengines apu boards

2017-12-04 Thread Paul B. Henson
> From: Marko Cupac
> Sent: Monday, December 4, 2017 3:54 AM
> 
> I have just ordered one APU3b4, as I wanted to test mobile provider as
> a backup link. I see it probably won't be any good as OpenBSD router
> (yet), but at least I'll be able to test and give feedback.

Assuming you're planning to use an internal Mini PCI card, unless you have more 
luck than me, it's not going to work :(. I'm hoping I will be able to fix the 
EHCI driver to be more happy with the AMD USB chipset, but this point I'm still 
fumbling with it :).




Re: pcengines apu boards

2017-12-04 Thread Marko Cupać
On Sat, 2 Dec 2017 20:08:41 -0800
"Paul B. Henson"  wrote:

> On Sat, Dec 02, 2017 at 10:40:14PM +1000, Douglas Ray wrote:
> 
> > On the APU3a4 the internal USB headers were broken.
> > I had email from pcengines (March 2017) saying this would
> > be addressed in the APU3b series., but we went for APU2.  
> 
> I have a APU3b series, they fixed the incorrect pinout on the internal
> usb headers. The internal ECHI ports work fine under both linux and
> freebsd connected to a USB backplate I'm testing with. It's
> definitely a disagreement between the AMD EHCI USB chipset and
> OpenBSD . I'm going to see if I can port some of the
> workarounds and quirks for that chipset from linux/freebsd to the
> openbsd driver and see if I have any luck getting it working; drivers
> aren't my strong suite but we'll see what happens. In the worst case
> I guess I'll use an external miniPCI to USB adapter and connect my
> LTE modem to the external xHCI ports, they seem to work fine under
> OpenBSD.
> 
> Thanks...
> 

I have a bunch of APU2c4's, they play nice with OpenBSD. Actually my
complete fleet (~20) of branch office routers are based on
APU2c4's running various OpenBSD versions (I think the oldest is 5.8).

I have just ordered one APU3b4, as I wanted to test mobile provider as
a backup link. I see it probably won't be any good as OpenBSD router
(yet), but at least I'll be able to test and give feedback.

Regards,
-- 
Before enlightenment - chop wood, draw water.
After  enlightenment - chop wood, draw water.

Marko Cupać
https://www.mimar.rs/



Re: pcengines apu boards

2017-12-02 Thread Paul B. Henson
On Sat, Dec 02, 2017 at 10:40:14PM +1000, Douglas Ray wrote:

> On the APU3a4 the internal USB headers were broken.
> I had email from pcengines (March 2017) saying this would
> be addressed in the APU3b series., but we went for APU2.

I have a APU3b series, they fixed the incorrect pinout on the internal
usb headers. The internal ECHI ports work fine under both linux and
freebsd connected to a USB backplate I'm testing with. It's definitely a
disagreement between the AMD EHCI USB chipset and OpenBSD . I'm
going to see if I can port some of the workarounds and quirks for that
chipset from linux/freebsd to the openbsd driver and see if I have any
luck getting it working; drivers aren't my strong suite but we'll see
what happens. In the worst case I guess I'll use an external miniPCI to
USB adapter and connect my LTE modem to the external xHCI ports, they
seem to work fine under OpenBSD.

Thanks...



Re: pcengines apu boards

2017-12-02 Thread Douglas Ray

On 1/12/17 11:48 AM, Paul B. Henson wrote:

From: Eike Lantzsch
Sent: Thursday, November 30, 2017 3:12 PM

here: APU2C4 with one SATA drive of 6TB and one 4TB via USB3 and an

Hmm, I didn't think the apu2 had USB3, but double checking the specs I see
it does. My friend that said he had an APU2 must actually have an original
APU, as his board doesn't have USB3. Yeah, the external xHCI USB3 ports work
fine on my APU3, it's the EHCI ones that are screwed up, they are only
available via two internal headers or if you use the Mini PCI slot. There
probably aren't very many people that are routing the internal USB headers
to external connectors, so unless somebody is using a USB Mini PCI expansion
card on an APU2/3, they probably aren't using the EHCI controller.

Thanks for the info.



On the APU3a4 the internal USB headers were broken.
I had email from pcengines (March 2017) saying this would
be addressed in the APU3b series., but we went for APU2.

Have you asked pcengines if your internal USB
headers are fully functional?


Douglas Ray



Re: pcengines apu boards

2017-11-30 Thread Paul B. Henson
> From: Eike Lantzsch
> Sent: Thursday, November 30, 2017 3:12 PM
> 
> here: APU2C4 with one SATA drive of 6TB and one 4TB via USB3 and an

Hmm, I didn't think the apu2 had USB3, but double checking the specs I see
it does. My friend that said he had an APU2 must actually have an original
APU, as his board doesn't have USB3. Yeah, the external xHCI USB3 ports work
fine on my APU3, it's the EHCI ones that are screwed up, they are only
available via two internal headers or if you use the Mini PCI slot. There
probably aren't very many people that are routing the internal USB headers
to external connectors, so unless somebody is using a USB Mini PCI expansion
card on an APU2/3, they probably aren't using the EHCI controller.

Thanks for the info.



Re: pcengines apu boards

2017-11-30 Thread Paul B. Henson
> From: Bryan Everly
> Sent: Thursday, November 30, 2017 2:46 PM
> 
> I'm running my primary firewall at home on an apu2...

Cool. Have you ever tried using an internal Mini PCI card in it?



Re: pcengines apu boards

2017-11-30 Thread Paul B. Henson
> From: Base Pr1me
> Sent: Thursday, November 30, 2017 2:08 PM
> 
> I run 5 apu2 devices with no problems. I don't have any apu3 devices ... yet.

Thanks for the feedback. Do you by any chance have any USB type Mini PCI cards 
installed internally? I initially noticed the issue with a mini PCI LTE modem 
card. Then I realized it was a more generic USB problem; I believe the apu2 has 
USB1 and USB2 ports, the apu3 has two USB3 ports externally, and then the mini 
PCI and a couple of internal headers are USB2. The USB3 ports, using the xHCI 
driver, work fine, I suppose in the worst case I could use an external Mini PCI 
to USB adapter and plug the card in outside of the case, but that just seems so 
kludgy .

I actually found a friend locally who had a apu2 board, he couldn't get the LTE 
card to work on the internal mini PCI slot, which also appeared to be EHCI 
based, and it would sometimes work and sometimes not plugged into the external 
USB ports. It was really weird, when plugged into the same external port, 
sometimes the device would show up on the EHCI bus (and not work) and sometimes 
it would show up on the OHCI bus (and work). He didn't seem to have any trouble 
with USB flash drives on the EHCI bus on his apu2 though.




Re: pcengines apu boards

2017-11-30 Thread Emille Blanc

On 30.11.2017 14:08, Base Pr1me wrote:
I run 5 apu2 devices with no problems. I don't have any apu3 devices 
... yet.


On 11/30/17 3:00 PM, Paul B. Henson wrote:
I was wondering if anybody is successfully running openbsd on 
pcengines apu
boards? I have one of their APU3 series, specifically a apu3b4 with 
OpenBSD
6.2 on it but I can't get the USB2 EHCI ports functioning correctly 
(for one
thing, they don't detect a hot plugged device), I'm not sure if it's 
an
issue with the ehci driver and the amd ehci chipset or possibly 
something in
the bios acpi tables. But just as a data point, it would be 
interesting to
know if the problem is specific to my board or endemic to the 
design, so if
anyone has an APU series board with fully functional USB2 ports on 
the ehci

controller, I would much appreciate hearing which board it is, which
specific AMD chipset is driving the controller, and what bios 
version you

are running (and what OpenBSD version too).

Thanks much.



No problems here running on APU and APU2 boards, or their USB ports for 
peripherals and Flash drives - The latter usually a Kingston 
datatraveler.

I too have not yet seen or tried an APU3.



Re: pcengines apu boards

2017-11-30 Thread Eike Lantzsch
On Thursday, November 30, 2017 5:45:32 PM -03 Bryan Everly wrote:
> I'm running my primary firewall at home on an apu2...
> 
> On Thu, 2017-11-30 at 15:08 -0700, Base Pr1me wrote:
> > I run 5 apu2 devices with no problems. I don't have any apu3 devices
> > ... yet.
> > 
> > On 11/30/17 3:00 PM, Paul B. Henson wrote:
> > > I was wondering if anybody is successfully running openbsd on
> > > pcengines apu
> > > boards? I have one of their APU3 series, specifically a apu3b4 with
> > > OpenBSD
> > > 6.2 on it but I can't get the USB2 EHCI ports functioning correctly
> > > (for one
> > > thing, they don't detect a hot plugged device), I'm not sure if
> > > it's an
> > > issue with the ehci driver and the amd ehci chipset or possibly
> > > something in
> > > the bios acpi tables. But just as a data point, it would be
> > > interesting to
> > > know if the problem is specific to my board or endemic to the
> > > design, so if
> > > anyone has an APU series board with fully functional USB2 ports on
> > > the ehci
> > > controller, I would much appreciate hearing which board it is,
> > > which
> > > specific AMD chipset is driving the controller, and what bios
> > > version you
> > > are running (and what OpenBSD version too).
> > > 
> > > Thanks much.
can't say anything about APU3 but ...

here: APU2C4 with one SATA drive of 6TB and one 4TB via USB3 and an adaptor to 
SATA as a home file server. OBSD 6.2 release.
No problems so far

OpenBSD 6.2 (GENERIC.MP) #0: Thu Oct 12 19:53:18 CEST 2017
r...@syspatch-62-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/
GENERIC.MP
real mem = 4261072896 (4063MB)
avail mem = 4124913664 (3933MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xdffb7020 (7 entries)
bios0: vendor coreboot version "88a4f96" date 03/07/2016
bios0: PC Engines apu2
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S2 S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC HEST SSDT SSDT HPET
acpi0: wakeup devices PWRB(S4) PBR4(S4) PBR5(S4) PBR6(S4) PBR7(S4) PBR8(S4) 
UOH1(S3) UOH3(S3) UOH5(S3) XHC0(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD GX-412TC SOC, 998.27 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,
3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 
16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: TSC frequency 998269680 Hz
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD GX-412TC SOC, 998.12 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,
3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 
16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD GX-412TC SOC, 998.12 MHz
cpu2: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,
3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
cpu2: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB 64b/line 
16-way L2 cache
cpu2: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu2: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: AMD GX-412TC SOC, 998.12 MHz
cpu3: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,
3DNOWP,OSVW,IBS,SKINIT,TOPEXT,ITSC,BMI1
cpu3: 32KB 64b/line 2-way I-

Re: pcengines apu boards

2017-11-30 Thread Bryan Everly
I'm running my primary firewall at home on an apu2...

On Thu, 2017-11-30 at 15:08 -0700, Base Pr1me wrote:
> I run 5 apu2 devices with no problems. I don't have any apu3 devices
> ... yet.
> 
> On 11/30/17 3:00 PM, Paul B. Henson wrote:
> > I was wondering if anybody is successfully running openbsd on
> > pcengines apu
> > boards? I have one of their APU3 series, specifically a apu3b4 with
> > OpenBSD
> > 6.2 on it but I can't get the USB2 EHCI ports functioning correctly
> > (for one
> > thing, they don't detect a hot plugged device), I'm not sure if
> > it's an
> > issue with the ehci driver and the amd ehci chipset or possibly
> > something in
> > the bios acpi tables. But just as a data point, it would be
> > interesting to
> > know if the problem is specific to my board or endemic to the
> > design, so if
> > anyone has an APU series board with fully functional USB2 ports on
> > the ehci
> > controller, I would much appreciate hearing which board it is,
> > which
> > specific AMD chipset is driving the controller, and what bios
> > version you
> > are running (and what OpenBSD version too).
> > 
> > Thanks much.
> > 
> 
> 


Re: pcengines apu boards

2017-11-30 Thread Base Pr1me

I run 5 apu2 devices with no problems. I don't have any apu3 devices ... yet.

On 11/30/17 3:00 PM, Paul B. Henson wrote:

I was wondering if anybody is successfully running openbsd on pcengines apu
boards? I have one of their APU3 series, specifically a apu3b4 with OpenBSD
6.2 on it but I can't get the USB2 EHCI ports functioning correctly (for one
thing, they don't detect a hot plugged device), I'm not sure if it's an
issue with the ehci driver and the amd ehci chipset or possibly something in
the bios acpi tables. But just as a data point, it would be interesting to
know if the problem is specific to my board or endemic to the design, so if
anyone has an APU series board with fully functional USB2 ports on the ehci
controller, I would much appreciate hearing which board it is, which
specific AMD chipset is driving the controller, and what bios version you
are running (and what OpenBSD version too).

Thanks much.





pcengines apu boards

2017-11-30 Thread Paul B. Henson
I was wondering if anybody is successfully running openbsd on pcengines apu
boards? I have one of their APU3 series, specifically a apu3b4 with OpenBSD
6.2 on it but I can't get the USB2 EHCI ports functioning correctly (for one
thing, they don't detect a hot plugged device), I'm not sure if it's an
issue with the ehci driver and the amd ehci chipset or possibly something in
the bios acpi tables. But just as a data point, it would be interesting to
know if the problem is specific to my board or endemic to the design, so if
anyone has an APU series board with fully functional USB2 ports on the ehci
controller, I would much appreciate hearing which board it is, which
specific AMD chipset is driving the controller, and what bios version you
are running (and what OpenBSD version too).

Thanks much.