old unused leftover

2013-07-04 Thread Artturi Alm
Hi, old has been old and unused for some time already. - Artturi Index: kern_timeout.c === RCS file: /cvs/src/sys/kern/kern_timeout.c,v retrieving revision 1.35 diff -u -p -u -p -r1.35 kern_timeout.c --- kern_timeout.c2 Jun

Re: Allwinner wip

2013-07-20 Thread Artturi Alm
On 07/20/13 15:20, Martin Pieuchot wrote: On 20/07/13(Sat) 14:10, Artturi Alm wrote: Hi, work-in-progress-quality 'port' to add support for Allwinner A10, tested on cubieboard only. Nice work. For what I've seen this port is really similar to the beagle one. Do you think it's possible

Re: working ral(4) driver with Ralink 35xx chipset.

2013-07-24 Thread Artturi Alm
On 07/25/13 02:20, Nathan Goings wrote: On 7/24/2013 5:26 AM, Mark Kettenis wrote: Well, that will certainly break existing support for the RT3090 chips. So a bit more work will be needed. First step would be to provide a proper diff, and show us your dmesg! I made a few debugging changes,

Re: old unused leftover - kern_timeout.c

2013-07-24 Thread Artturi Alm
On 07/04/13 12:54, Artturi Alm wrote: Hi, old has been old and unused for some time already. - Artturi Index: kern_timeout.c === RCS file: /cvs/src/sys/kern/kern_timeout.c,v retrieving revision 1.35 diff -u -p -u -p -r1.35

Re: edgerouter lite ethernet

2013-09-16 Thread Artturi Alm
On 09/17/13 02:29, Jonathan Matthew wrote: Here's the rest of the changes required to get ethernet working on the edgerouter lite, which makes it possible to boot off nfsroot and do exciting stuff like build kernels. - add atphy(4) to configs - allow separate rx and tx clock settings - add phy

Allwinner

2013-10-05 Thread Artturi Alm
Current version attached, extract to /sys/arch/armv7 and read the short notes file, no more out of allwinner/ patches needed thanks to armv7. A20 support still needs a workaround under /sys/arch/arm/cortex/ which i didn't include as i think support is still 'subtly' broken anyway.. And ahci is

Re: Allwinner

2013-10-11 Thread Artturi Alm
On 10/11/13 20:39, Markus Hennecke wrote: On Sat, 5 Oct 2013, Artturi Alm wrote: Current version attached, extract to /sys/arch/armv7 and read the short notes file, no more out of allwinner/ patches needed thanks to armv7. A20 support still needs a workaround under /sys/arch/arm/cortex/ which

Re: Allwinner

2013-10-21 Thread Artturi Alm
On 10/21/13 18:04, Jasper Lievisse Adriaanse wrote: On Fri, Oct 11, 2013 at 11:46:39PM +0300, Artturi Alm wrote: On 10/11/13 20:39, Markus Hennecke wrote: On Sat, 5 Oct 2013, Artturi Alm wrote: Current version attached, extract to /sys/arch/armv7 and read the short notes file, no more out

Re: dhclient ignore

2012-08-18 Thread Artturi Alm
How did it end up looking? Just a reminder really, since I use this already/anyway. :) 2012/7/27 Kenneth R Westerback kwesterb...@rogers.com: I like this on first read. In fact I thought this already existed. I'll actually look more closely at the code tomorrow. Ken On Thu, Jul 26,

octeon usb devs

2016-01-12 Thread Artturi Alm
Likely some other configs have more exhaustive list of devices supported, but even these would be great to have, especially uhub* at uhub?, as ERL physically has only one port limiting it's use to a single umass. -Artturi Index: sys/arch/octeon/conf/GENERIC

misc arm kernel output wonder

2016-06-09 Thread Artturi Alm
Hi, is the toolchain somehow excessively naive only on arm, or is the output like this to be expected, and what other archs are also running with? I'm pointing at the bhi looping back to "mov r3, #0" instead of straight to "str r3, [r1]" as ridiculous by the compiler even if no additional flags

armv7 _AFLT

2016-06-08 Thread Artturi Alm
Hi, i wish you would consider this: diff --git a/sys/arch/arm/arm/cpufunc.c b/sys/arch/arm/arm/cpufunc.c index 00c683e..924cf67 100644 --- a/sys/arch/arm/arm/cpufunc.c +++ b/sys/arch/arm/arm/cpufunc.c @@ -575,7 +575,6 @@ armv7_setup() | CPU_CONTROL_AFE; cpuctrl =

Re: No need to second guess SXIE_ROUNDUP

2016-06-08 Thread Artturi Alm
On Thu, Jun 09, 2016 at 12:04:02AM +0100, Tom Cosgrove wrote: > If (pktlen & 3) == 0, SXIE_ROUNDUP returns pktlen anyway (that's its job): > it's defined as > > #define SXIE_ROUNDUP(size, unit) (((size) + (unit) - 1) & ~((unit) - 1)) > > Thanks > > Tom > Hi, starting w/bikeshed i'd go

Re: sunxi: fix sxipio func mask

2016-02-01 Thread Artturi Alm
On Mon, Feb 01, 2016 at 10:14:38PM +0100, Patrick Wildt wrote: > On Mon, Feb 01, 2016 at 10:51:40PM +0200, Artturi Alm wrote: > > On Mon, Feb 01, 2016 at 09:06:35PM +0100, Patrick Wildt wrote: > > > Hi, > > > > > > in sxipio the mask is incorrect for get- and s

Re: sunxi: fix sxipio func mask

2016-02-01 Thread Artturi Alm
On Tue, Feb 02, 2016 at 10:01:45AM +1100, Jonathan Gray wrote: > On Tue, Feb 02, 2016 at 12:24:02AM +0200, Artturi Alm wrote: > > On Mon, Feb 01, 2016 at 10:14:38PM +0100, Patrick Wildt wrote: > > > On Mon, Feb 01, 2016 at 10:51:40PM +0200, Artturi Alm wrote: > > > >

Re: sunxi: don't use sxitimer on the sun7i/A20

2016-01-31 Thread Artturi Alm
On Sun, Jan 31, 2016 at 10:45:42PM +1100, Jonathan Gray wrote: > On Sun, Jan 31, 2016 at 10:12:05AM +0200, Artturi Alm wrote: > > On Sun, Jan 31, 2016 at 01:14:35AM +0100, Patrick Wildt wrote: > > > Hi, > > > > > > one of the reasons Allwinner A20/sun7i-based

Re: sunxi: don't use sxitimer on the sun7i/A20

2016-01-31 Thread Artturi Alm
On Sun, Jan 31, 2016 at 10:45:42PM +1100, Jonathan Gray wrote: > On Sun, Jan 31, 2016 at 10:12:05AM +0200, Artturi Alm wrote: > > On Sun, Jan 31, 2016 at 01:14:35AM +0100, Patrick Wildt wrote: > > > Hi, > > > > > > one of the reasons Allwinner A20/sun7i-based

Re: sunxi: don't use sxitimer on the sun7i/A20

2016-02-03 Thread Artturi Alm
On Tue, Feb 02, 2016 at 10:55:57AM +1100, Jonathan Gray wrote: > > Thanks, both diffs committed. Any chance you could create another to > move the sxitimer_* globals into the softc? I left out moving of sxitimer_iot and sxitimer_ioh on purpose, as it would make reviewing this alot worse. Now if

Re: sunxi: don't use sxitimer on the sun7i/A20

2016-01-31 Thread Artturi Alm
On Sun, Jan 31, 2016 at 01:14:35AM +0100, Patrick Wildt wrote: > Hi, > > one of the reasons Allwinner A20/sun7i-based boards, like the > Cubieboard 2 or Banana Pi, don't boot is that the sxitimer does > not work for us. We are getting no hardclock ticks and so the > system can't work. > >

Re: sunxi: don't use sxitimer on the sun7i/A20

2016-02-01 Thread Artturi Alm
On Tue, Feb 02, 2016 at 10:55:57AM +1100, Jonathan Gray wrote: > On Mon, Feb 01, 2016 at 02:55:52AM +0200, Artturi Alm wrote: > > On Sun, Jan 31, 2016 at 10:45:42PM +1100, Jonathan Gray wrote: > > > On Sun, Jan 31, 2016 at 10:12:05AM +0200, Artturi Alm wrote: > > > >

Re: Xorg stipple

2016-03-10 Thread Artturi Alm
On Wed, Mar 09, 2016 at 07:40:35PM -0600, joshua stein wrote: > On Thu, 10 Mar 2016 at 03:32:53 +0200, li...@wrant.com wrote: > > Apparently all you guys use laptops with LVDS, but TFT/LCD panels on > > VGA are still widely common in use. You remember the automatic adjust > > functional button on

Re: arm/fdt: ... to prepare for fdt bus

2016-04-08 Thread Artturi Alm
On Fri, Apr 08, 2016 at 01:44:11PM +0200, Patrick Wildt wrote: > Hi, > > with the feedback received on the fdt bus, the fdt stuff will now be > replacing the mainbus. [..snip..] > > Patrick > > [..snip..] Hi, have you planned ahead which route you are going to take with regards to how

nam2blk cleanup

2016-03-19 Thread Artturi Alm
Hi, related to past cleanup for some of the sys/arch/x/x/conf.c. -Artturi Index: sys/arch/alpha/alpha/autoconf.c === RCS file: /cvs/src/sys/arch/alpha/alpha/autoconf.c,v retrieving revision 1.35 diff -u -p -r1.35 autoconf.c ---

armv7 unused vm_page_md members

2016-03-21 Thread Artturi Alm
Hi, compile tested. -Artturi Index: sys/arch/arm/include/pmap.h === RCS file: /cvs/src/sys/arch/arm/include/pmap.h,v retrieving revision 1.38 diff -u -p -u -r1.38 pmap.h --- sys/arch/arm/include/pmap.h 19 Mar 2016 09:36:57 -

iic.9

2016-05-19 Thread Artturi Alm
hi, this was not mentioned even in the relevant headers under /sys/dev/i2c/, non-native and all, i guess someone will come up w/better diff if it is seen improving anything. -Artturi diff --git a/share/man/man9/iic.9 b/share/man/man9/iic.9 index 7fd3855..e37b160 100644 ---

Re: usbtv driver port (questions)

2016-05-25 Thread Artturi Alm
On Wed, May 25, 2016 at 08:45:29AM -0400, Ian Darwin wrote: > On 2016-05-25 7:57 AM, Marcus Glocker wrote: > > On Tue, May 24, 2016 at 04:46:57PM -0700, patrick keshishian wrote: > > > > > Hi, > > > > > > I have a "mostly working" driver port for Fushicai Audio-Video > > > Grabber (vendor 0x1b71

pmapassert

2016-07-28 Thread Artturi Alm
Hi, personally, i like running w/pmap asserts w/o DEBUG too, and this would allow just that, effortless switching between KDASSERT/assert. -Artturi Index: sys/arch/arm/include/pmap.h === RCS file:

Re: arm: pmap uvm_fault findings

2016-07-27 Thread Artturi Alm
On Wed, Jul 27, 2016 at 08:06:57PM +0200, Patrick Wildt wrote: > On Tue, Jul 26, 2016 at 06:43:18PM +0200, Patrick Wildt wrote: > > Hi, > > > > I've been trying to debug a pmap issue on ARM. I have no solution, but > > I would like to share my findings so far. > > > > First of all, the

Re: arm: pmap uvm_fault findings

2016-07-30 Thread Artturi Alm
On Sat, Jul 30, 2016 at 03:10:45PM +0200, Mark Kettenis wrote: > > From: Philip Guenther > > Date: Fri, 29 Jul 2016 15:41:48 -0700 > > > > On Fri, Jul 29, 2016 at 3:31 PM, Mark Kettenis > > wrote: > > >> Date: Thu, 28 Jul 2016 09:47:42 +0200 > > >>

Re: Use m_devget(9) in smsc(4)

2016-07-31 Thread Artturi Alm
On Sun, Jul 31, 2016 at 01:55:31PM +0200, Claudio Jeker wrote: > On Sat, Jul 30, 2016 at 10:03:33PM +0200, Mark Kettenis wrote: > > Removes a couple of lines of code from the driver. > > > > ok? > > This is the right use of m_devget. OK claudio@ > Another one. (2 dlg@, this was the m_*() i was

armv7/sxipio ofw_gpio

2016-08-10 Thread Artturi Alm
Hi, what's the plan for solving ordering issues for these devices? could this be attached 'manually' from sunxi_platform_init_mainbus() or something? What's acceptable? I'd like to have this for carddetect before moving forward with that. -Artturi diff --git a/sys/arch/armv7/conf/GENERIC

Re: armv7 Cortex-A7 fix

2016-08-10 Thread Artturi Alm
On Wed, Aug 10, 2016 at 10:53:03PM -0300, Daniel Bolgheroni wrote: > On Thu, Aug 11, 2016 at 02:30:59AM +0200, Mark Kettenis wrote: > > Finally found the pmap bug that kept Cortex-A7 from working. Turns > > out we have to flush the TLB when removing a L1 slot as well. Already > > committed the

Re: sxitimer(4) fixes

2016-07-18 Thread Artturi Alm
On Mon, Jul 18, 2016 at 02:41:10PM +0200, Mark Kettenis wrote: > Currently on my Olimex A10s-Olinuxino Micro, the kernel hangs after > printing: > > simplebus0 at mainbus0: "soc" > sxiuart0 at simplebus0 > sxie0 at simplebus0, address 02:d3:08:c1:74:6f > sxiuart1 at simplebus0: console > sxiuart2

daily dose of arm/pmap7 wtf

2016-07-18 Thread Artturi Alm
Hi -Artturi diff --git a/sys/arch/arm/arm/pmap7.c b/sys/arch/arm/arm/pmap7.c index eea49fe..c208924 100644 --- a/sys/arch/arm/arm/pmap7.c +++ b/sys/arch/arm/arm/pmap7.c @@ -710,13 +710,6 @@ pmap_free_l1(pmap_t pm) vaddr_t va; uint npg; -{ - u_int cur_ttb; - - __asm

arm/pmap7 _enter and PV_BEEN_xD()

2016-07-19 Thread Artturi Alm
Hi, #define PV_BEEN_EXECD(f) (((f) & (PVF_REF | PVF_EXEC)) == (PVF_REF | PVF_EXEC)) #define PV_BEEN_REFD(f) (((f) & PVF_REF) != 0) and from pmap.h: * The PVF_MOD and PVF_REF flags are stored in the mdpage for each * page. PVF_WIRED, PVF_WRITE, and PVF_NC are kept in individual *

armv7/ _clean_page cleanup

2016-07-16 Thread Artturi Alm
Hi, replaces inlined inline, continue feels safer for (pv->pv_flags & PVF_NC) case, and fixes possible (harmless, i guess) bug w/flags usage in the loop. to anyone reviewing, I suggest taking a peek at pmap.c also, as it will show ie. from what flags |= ..->pv_flags is inherited of. -Artturi

ratecheck.9 example

2016-07-13 Thread Artturi Alm
i like2be able2cpypaste -Artturi diff --git a/share/man/man9/ratecheck.9 b/share/man/man9/ratecheck.9 index 4e36e33..1e22053 100644 --- a/share/man/man9/ratecheck.9 +++ b/share/man/man9/ratecheck.9 @@ -106,7 +106,7 @@ drv_errhandler(int err1, int err2) ...

u-boot ffs supp.

2016-07-18 Thread Artturi Alm
iHi, optimistic as always, this would be one item off the list making me own this shit.:) octeon might benefit also, but haven't tested on one. didn't figure out how to make a proper diff for ports/sysutils/u-boot/ against cvs, so here is diff to be applied directly on top of recent u-boot

armv7/ _get_l2_bucket inline dedup

2016-07-16 Thread Artturi Alm
Hi, inline pmap_get_l2_bucket dedup. -Artturi diff --git a/sys/arch/arm/arm/pmap7.c b/sys/arch/arm/arm/pmap7.c index eea49fe..513ff09 100644 --- a/sys/arch/arm/arm/pmap7.c +++ b/sys/arch/arm/arm/pmap7.c @@ -398,7 +398,6 @@ u_int pmap_modify_pv(struct vm_page *, pmap_t, vaddr_t,

Re: u-boot ffs supp.

2016-07-18 Thread Artturi Alm
On Mon, Jul 18, 2016 at 12:25:27PM +0200, Mark Kettenis wrote: > > Date: Mon, 18 Jul 2016 11:52:15 +0300 > > From: Artturi Alm <artturi@gmail.com> > > > > iHi, > > > > optimistic as always, this would be one item off the list making me own

Re: arm: replace sxiuart with com(4)

2016-08-03 Thread Artturi Alm
On Wed, Aug 03, 2016 at 03:33:21PM -0600, Theo de Raadt wrote: > > I don't think the com(4) part of the diff is quite right. This busy > > indicator feature seems to be specific to the Designware core. I > > can't find the original NS16750 datasheet (was there ever one?), but > > it isn't

Re: armv7 pmap: get rid if pmap_fault_fixup

2016-08-24 Thread Artturi Alm
On Wed, Aug 24, 2016 at 11:51:56AM +0200, Mark Kettenis wrote: > The pmap_fault_fixup() functions does a number of different fixups: > > 1. page modified emulation > > 2. page access emulation > > 3. entering level-1 entries for level-2 page tables > > Since it is a generic function that gets

armv7 void x_intr() vs int x_intr()

2017-07-31 Thread Artturi Alm
Hi, i've been annoyed by this inconsistency for years, and was wondering if someone would have the time to explain why it is the way it is, or give me any advice towards the correct fixes. i'll just copypaste some lines of code that should show what i mean: #define ARM_IRQ_HANDLER arm_intr

Re: armv7 void x_intr() vs int x_intr()

2017-08-01 Thread Artturi Alm
On Tue, Aug 01, 2017 at 08:09:01PM -0600, Theo de Raadt wrote: > > (i'm not pointing out the obvious hz*2 'issue' here i think we have on > > armv7;). > > You are missing another detail. > hmmph, and that is? puzzled. -Artturi

/sys/dev/fdt/dwmmc.c missing char

2017-08-17 Thread Artturi Alm
Hi, trying to clean/minimalize another diff adding things, and this is rather irrelevant to it, so, even if harmless, i'd like to see +| there. thanks, in advance:) -Artturi diff --git a/sys/dev/fdt/dwmmc.c b/sys/dev/fdt/dwmmc.c index e24e6dd1685..1f1d484afc4 100644 --- a/sys/dev/fdt/dwmmc.c

Re: armv7 _dcache_wbinv_all, or _dcache_wb_all ?

2017-07-13 Thread Artturi Alm
On Fri, Jul 14, 2017 at 03:28:25AM +0300, Artturi Alm wrote: > Hi, > > i'm having hard time choosing, between this diff, and the one that > renames it to for what it does, which would likely incur cleanup > elsewhere. current is just wrong.. but i'm open to be taught on this

armv7 _dcache_wbinv_all, or _dcache_wb_all ?

2017-07-13 Thread Artturi Alm
Hi, i'm having hard time choosing, between this diff, and the one that renames it to for what it does, which would likely incur cleanup elsewhere. current is just wrong.. but i'm open to be taught on this matter anyway. -Artturi diff --git a/sys/arch/arm/arm/cpufunc.c

crossing makegap.sh

2017-07-16 Thread Artturi Alm
Hi, quite certain i won't come up w/anything better than what i have now, can't get over my loathe towards Makefiles So, given above, i guess this is just for the archives, but if anyone is up for fixing it for real, you'll have my thanks. :) -Artturi diff --git a/sys/conf/makegap.sh

armv7 sunxi i2c+pmic(=shutdown -p)

2017-07-09 Thread Artturi Alm
v/null +++ b/sys/dev/fdt/axp20x.c @@ -0,0 +1,160 @@ +/* + * Copyright (c) 2014,2016 Artturi Alm + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice

armv7 fix for one of the XXXs in pmap7.c

2017-07-09 Thread Artturi Alm
Hi, the diff below moves l1_ttable into struct pmap, the XXX does mention maybe using a pool too, but for a struct of three fields w/one of them being the _link, i don't think it would make _any_ sense, just like the current list of L1 tables, when there is exactly one L1table per pmap, i left

Re: urndis issues

2017-07-10 Thread Artturi Alm
On Sun, Jul 09, 2017 at 09:57:34AM +0300, Artturi Alm wrote: > Hi, > > anyone else having issues w/urndis(android)? > victim of circumstances, i have to rely on it at times during the summer. > When i plug phone into usb, and enable usb tethering or w/e it is called, > i never g

armv7 small XXX fix

2017-07-10 Thread Artturi Alm
Hi, this does clutter my diffs, and the XXX comment is correct, currently used _C_LABEL() is nothing, and i find it's usage directly rather pointless/weird, this does atleast make x .globl, so there is benefit to the added characters in written code be it _C_LABEL() or C_OBJECT() instead of just

Re: armv7 small XXX fix

2017-07-12 Thread Artturi Alm
On Wed, Jul 12, 2017 at 06:12:34PM +0200, Mark Kettenis wrote: > > Date: Mon, 10 Jul 2017 23:18:59 +0300 > > From: Artturi Alm <artturi@gmail.com> > > > > Hi, > > > > this does clutter my diffs, and the XXX comment is correct, > > It prob

Re: armv7 sunxi i2c+pmic(=shutdown -p)

2017-07-14 Thread Artturi Alm
On Sun, Jul 09, 2017 at 08:34:29PM +0300, Artturi Alm wrote: > Hi, > > revived the diff below, i2c tested via pmic's shutdown(), for working > "shutdown -p now" operation. > there was only two i2c's w/"status: 'okay'" in the FDT, so not all of > them

Re: armv7 small XXX fix

2017-07-13 Thread Artturi Alm
On Wed, Jul 12, 2017 at 04:21:11PM -0400, Dale Rahn wrote: > On Wed, Jul 12, 2017 at 11:06:23PM +0300, Artturi Alm wrote: > > On Wed, Jul 12, 2017 at 06:12:34PM +0200, Mark Kettenis wrote: > > > > Date: Mon, 10 Jul 2017 23:18:59 +0300 > > > > From: A

Re: arm/sysreg.h use in C

2017-07-13 Thread Artturi Alm
On Sat, Jul 01, 2017 at 10:53:14AM +0300, Artturi Alm wrote: > Hi, > > just in case i didn't make it clear what it is for, here's diff "fixing" > current uses below, compile-tested. > > -Artturi > Hi, ping? Noone up for bikeshedding, or seen useless/worse than h

Re: armv7 _dcache_wbinv_all, or _dcache_wb_all ?

2017-07-17 Thread Artturi Alm
On Fri, Jul 14, 2017 at 03:33:32AM +0300, Artturi Alm wrote: > On Fri, Jul 14, 2017 at 03:28:25AM +0300, Artturi Alm wrote: > > Hi, > > > > i'm having hard time choosing, between this diff, and the one that > > renames it to for what it does, which would likely

Re: armv7 sunxi i2c+pmic(=shutdown -p)

2017-07-17 Thread Artturi Alm
On Sun, Jul 16, 2017 at 11:13:35PM +0200, Mark Kettenis wrote: > > Date: Sun, 9 Jul 2017 20:34:29 +0300 > > From: Artturi Alm <artturi@gmail.com> > > > > Hi, > > > > revived the diff below, i2c tested via pmic's shutdown(), for working > > &qu

armv7 bs retry, for comments 1/5.

2017-07-09 Thread Artturi Alm
Hi, ok, the previous version of this was crap, i must admit having gone through what i sent, since i got no comments for it. i'll retry w/version i think should be simple enough, with almost no cleanup done, so rather minimal, for the simple review needed, for the comment that's enough for me to

armv7 bs retry, for comments 3/5.

2017-07-09 Thread Artturi Alm
replaces the early bus space map support with ways more elegant approach, by checking in the one-and-only bus_space_map function used by armv7 (simplebus_bs_map essentially uses the the same *bs_map()). also removes the unnecessary bs_protos(bs_notimpl); from

armv7 bs retry, for comments 2/5.

2017-07-09 Thread Artturi Alm
remove duplicate bus_dma_tags, and convert to using the existing mainbus_dma_tag, now exported via arm/mainbus/mainbus.h, to allow the death of arm/armv7/armv7var.h, eventually, i hope. diff --git a/sys/arch/arm/cortex/cortex.c b/sys/arch/arm/cortex/cortex.c index

armv7 bs retry, for comments 4/5.

2017-07-09 Thread Artturi Alm
opyright (c) 2004, Miodrag Vallat. + * Copyright (c) 2017 Artturi Alm. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright

armv7 bs retry, for comments 5/5.

2017-07-09 Thread Artturi Alm
use COM_CONSOLE define as trigger for 'a4x bus space', and enable for build. This is likely the most controversial part of the diffs to bring in the inline bus space support.. diff --git a/sys/arch/armv7/conf/GENERIC b/sys/arch/armv7/conf/GENERIC index c9e893358a9..85a12ec21eb 100644

armv7 arm/pmap.h unused defines/variables.

2017-07-09 Thread Artturi Alm
Hi, might have sent this before. at best (or worst, depends how you look at things), these could help hide a bug that'd be able to bring everything down in flames, altho. i'm not suggesting so, and have in the past ran w/asserts to make sure these were invariant, fwiw., now there is more of

urndis issues

2017-07-09 Thread Artturi Alm
Hi, anyone else having issues w/urndis(android)? victim of circumstances, i have to rely on it at times during the summer. When i plug phone into usb, and enable usb tethering or w/e it is called, i never get ip on first try, i have nothing but "dhcp" in /etc/hostname.urndis0, so i just ^C on the

Re: armv7 static vectors

2017-07-20 Thread Artturi Alm
On Wed, Jul 19, 2017 at 05:37:49AM +0300, Artturi Alm wrote: > On Mon, Jul 10, 2017 at 04:19:12PM +0300, Artturi Alm wrote: > > Hi, > > > > > > this diff does seem bigger than it is, because this does move the exception > > handler entrys from arm/exceptions.S

Re: armv7 arm/pmap.h unused defines/variables.

2017-07-18 Thread Artturi Alm
On Sun, Jul 09, 2017 at 12:50:47PM +0300, Artturi Alm wrote: > Hi, > > might have sent this before. at best (or worst, depends how you look at > things), these could help hide a bug that'd be able to bring everything > down in flames, altho. i'm not suggesting so, and have in t

Re: armv7 sunxi i2c+pmic(=shutdown -p)

2017-07-18 Thread Artturi Alm
On Sun, Jul 16, 2017 at 11:13:35PM +0200, Mark Kettenis wrote: > > Date: Sun, 9 Jul 2017 20:34:29 +0300 > > From: Artturi Alm <artturi@gmail.com> > > > > Hi, > > > > revived the diff below, i2c tested via pmic's shutdown(), for working > > &qu

Re: armv7 static vectors

2017-07-18 Thread Artturi Alm
On Mon, Jul 10, 2017 at 04:19:12PM +0300, Artturi Alm wrote: > Hi, > > > this diff does seem bigger than it is, because this does move the exception > handler entrys from arm/exceptions.S to arm/vectors.S, while removing > a round of useless indirection that was needed more

armv7 cpu_switchto

2017-07-20 Thread Artturi Alm
Hi, i think w/this it'll be more readable w/o the unnecessary branch and associated legacy fat. comments? 6 files changed, 35 insertions(+), 146 deletions(-) from teh optimizing 'less is more'-diff dept.. -Artturi diff --git a/sys/arch/arm/arm/cpufunc.c b/sys/arch/arm/arm/cpufunc.c index

Re: armv7 -pmap_prefer

2017-07-20 Thread Artturi Alm
On Thu, Jul 20, 2017 at 11:50:55PM +0300, Artturi Alm wrote: > Hi, > > one of the removals of mine i never understood why it was there to > begin w/, given it's not in our pmap.9, nor really doing anything. > > -Artturi > Took a better look, and this might actually be

armv7 dumpconf()/dumpsys()

2017-07-21 Thread Artturi Alm
Hi, i think something equivalent to this diff got lost in the past, in some diff i haven't seen myself, and don't care to go digging cvs history, if there's any explanation for why not. comments? boot tested cubie2, too busy to make 'em dump right now. -Artturi diff --git

Re: armv7 bootstrap-only variables

2017-07-21 Thread Artturi Alm
On Thu, Jul 06, 2017 at 06:55:17PM +0300, Artturi Alm wrote: > Hi, > > is/has anyone been working on a diff that would collect these > into a structure, so that those could easier get gotten rid of once > bootstrap is done? Or have i missed something about this new bootstrap >

armv7 more pliable boot? rootdev != bootdev

2017-07-24 Thread Artturi Alm
Hi, i'm finding the boot as is too restricted, for no good reason, imo.. I'm not sure about what part of the bootstrap to blame this for, but almost certain that making this better will require touching efiloader too. I was quite surprised to findout it didnt work when i tried to have my cubie

armv7 -pmap_prefer

2017-07-20 Thread Artturi Alm
Hi, one of the removals of mine i never understood why it was there to begin w/, given it's not in our pmap.9, nor really doing anything. -Artturi diff --git a/sys/arch/arm/arm/pmap7.c b/sys/arch/arm/arm/pmap7.c index f99ee582e00..d47d8058736 100644 --- a/sys/arch/arm/arm/pmap7.c +++

Re: urndis issues

2017-07-12 Thread Artturi Alm
On Tue, Jul 11, 2017 at 12:32:30PM +0200, Mike Belopuhov wrote: > On Sun, Jul 09, 2017 at 09:57 +0300, Artturi Alm wrote: > > Hi, > > > > anyone else having issues w/urndis(android)? > > victim of circumstances, i have to rely on it at times during the summer. >

arm/sysreg.h use in C

2017-06-30 Thread Artturi Alm
Hi, saw something like this missing: diff --git a/sys/arch/arm/include/sysreg.h b/sys/arch/arm/include/sysreg.h index c2aab7d6667..f41a3b362ec 100644 --- a/sys/arch/arm/include/sysreg.h +++ b/sys/arch/arm/include/sysreg.h @@ -269,4 +269,20 @@ */ #define CP15_CBAR(rr) p15, 4, rr,

Re: arm/sysreg.h use in C

2017-07-01 Thread Artturi Alm
Hi, just in case i didn't make it clear what it is for, here's diff "fixing" current uses below, compile-tested. -Artturi diff --git a/sys/arch/arm/arm/cpufunc.c b/sys/arch/arm/arm/cpufunc.c index c91108e7066..fcb56627af7 100644 --- a/sys/arch/arm/arm/cpufunc.c +++ b/sys/arch/arm/arm/cpufunc.c

almost inlined bus space

2017-07-01 Thread Artturi Alm
s/arch/arm/mainbus/mainbus.c b/sys/arch/arm/mainbus/mainbus.c index 3d36366c95b..5bf6ba14ab2 100644 --- a/sys/arch/arm/mainbus/mainbus.c +++ b/sys/arch/arm/mainbus/mainbus.c @@ -2,6 +2,7 @@ /* * Copyright (c) 2016 Patrick Wildt <patr...@blueri.se> * Copyright (c) 2017 Mark Kettenis <kette...@op

armv7 alignment faults

2017-07-03 Thread Artturi Alm
Hi, i think i've noted about this before, around 13months ago freebsd first disabled alignment faults, and they haven't enabled them since. deja vu, or not, i don't recall if the last diff like below did go anywhere, nor if it got discussed about, so i'm sorry in advance, if i'm banging my head

Re: armv7 alignment faults

2017-07-04 Thread Artturi Alm
On Tue, Jul 04, 2017 at 05:14:00AM +0200, Jeremie Courreges-Anglas wrote: > Artturi Alm <artturi@gmail.com> writes: > > > Hi, > > > > i think i've noted about this before, around 13months ago freebsd > > first disabled alignment faults, and they hav

armv7 small bootstrap improvement/simplification

2017-07-04 Thread Artturi Alm
Hi, instead of messing w/bs_tags, use the fact pmap_kernel()->pm_refs is going to be 0 until pmap_bootstrap() has ran. tmp_bs_tag was unused, and bootstrap_bs_map doesn't need/use the void *t-arg when being ran indirectly via armv7_bs_map(). the whole existence of bootstrap_bs_map is another

armv7 bus space fixes

2017-07-02 Thread Artturi Alm
Hi, diff to get rid of bus_space_asm_generic.S, changing a4x bus space to use armv7 bs, which might be considered a bug fix, since generic_ misses the v7 "dsb sy"s, and does add the six missing ones to a4x. unfortunately some less useless bus_dma_tags fixes snuck in. -Artturi diff --git

armv7 a4x dsb fix

2017-07-02 Thread Artturi Alm
Hi, just the bug fix, so this diff leaves the unused relics around and so, but better than current/nothing, and hopefully small enough to get looked at. -Artturi diff --git a/sys/arch/arm/armv7/armv7_a4x_io.S b/sys/arch/arm/armv7/armv7_a4x_io.S index 3fa09faa4c2..5e9db421853 100644 ---

arm/armv7 KNF - sad shit.

2017-07-02 Thread Artturi Alm
Hi, would anyone be willing to accept diffs to recover from this? I mean the overlooking of this from style(9), that's making my eyes bleed: "There should be no space between the function name and the argument list." ^about prototypes. tbh., i wanted to punch someone in the

Re: armv7 small bootstrap improvement/simplification

2017-07-05 Thread Artturi Alm
On Wed, Jul 05, 2017 at 02:27:46AM +0300, Artturi Alm wrote: > Hi, > > instead of messing w/bs_tags, use the fact pmap_kernel()->pm_refs is going > to be 0 until pmap_bootstrap() has ran. tmp_bs_tag was unused, and > bootstrap_bs_map doesn't need/use the void *t-arg when be

Re: armv7 small bootstrap improvement/simplification

2017-07-06 Thread Artturi Alm
On Wed, Jul 05, 2017 at 09:40:41PM +0300, Artturi Alm wrote: > > diff --git a/sys/arch/armv7/armv7/armv7_machdep.c > b/sys/arch/armv7/armv7/armv7_machdep.c > index aa1c549b29b..105fbf1 100644 > --- a/sys/arch/armv7/armv7/armv7_machdep.c > +++ b/sys/arch/armv7/arm

armv7 bootstrap-only variables

2017-07-06 Thread Artturi Alm
Hi, is/has anyone been working on a diff that would collect these into a structure, so that those could easier get gotten rid of once bootstrap is done? Or have i missed something about this new bootstrap split-up to locore/0.S, i mean, is the gap alone good enough to leave these around, or is

Re: armv7 small bootstrap improvement/simplification

2017-07-05 Thread Artturi Alm
On Wed, Jul 05, 2017 at 11:27:06AM +0200, Mark Kettenis wrote: > > Date: Wed, 5 Jul 2017 09:34:59 +0300 > > From: Artturi Alm <artturi@gmail.com> > > > > On Wed, Jul 05, 2017 at 02:27:46AM +0300, Artturi Alm wrote: > > > Hi, > > > > > &g

Re: armv7 small bootstrap improvement/simplification

2017-07-05 Thread Artturi Alm
On Wed, Jul 05, 2017 at 04:05:16PM +0300, Artturi Alm wrote: > On Wed, Jul 05, 2017 at 11:27:06AM +0200, Mark Kettenis wrote: > > > Date: Wed, 5 Jul 2017 09:34:59 +0300 > > > From: Artturi Alm <artturi@gmail.com> > > > > > > On Wed, Jul 05

Re: armv7 small bootstrap improvement/simplification

2017-07-04 Thread Artturi Alm
On Wed, Jul 05, 2017 at 02:27:46AM +0300, Artturi Alm wrote: > Hi, > > instead of messing w/bs_tags, use the fact pmap_kernel()->pm_refs is going > to be 0 until pmap_bootstrap() has ran. tmp_bs_tag was unused, and > bootstrap_bs_map doesn't need/use the void *t-arg when be

reach dwc2_debug via usb.c

2017-08-08 Thread Artturi Alm
Hi, small diff below for what the subject suggests. Now i'm unsure if arm64 does really ever use the uhci it has on pci*, but something like this would work for atleast octeon && armv7 i think? -Artturi diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c index 8139db6a4ae..f4462fe71fe 100644 ---

bcm_dwctwo to dwctwo_fdt + some rockchip support for it

2017-08-19 Thread Artturi Alm
Hi, first step allowing dwctwo to attach fdt? w/rockchip, which might, or might not work already for ie. rk3288, compile tested on panda. any comments? possible testers? i'm waiting for u-boot to stabilize a bit and regressions on rk3188 to get fixed until i can/care to test myself. -Artturi

Re: bcm_dwctwo to dwctwo_fdt + some rockchip support for it

2017-08-19 Thread Artturi Alm
On Sun, Aug 20, 2017 at 09:56:29AM +1000, Jonathan Gray wrote: > On Sat, Aug 19, 2017 at 06:43:11PM +0300, Artturi Alm wrote: > > Hi, > > > > first step allowing dwctwo to attach fdt? w/rockchip, which might, or > > might not work already for ie. rk3288, compile te

move identical dwctwo_cd's from under arch/.../ into dev/usb/dwc2/dwc2.c

2017-08-20 Thread Artturi Alm
Hi, i think i saw this done similarly in some other driver, and thought why not, but i'm unsure about the needs-flag in files.x? -Artturi diff --git a/sys/arch/arm64/dev/bcm2835_dwctwo.c b/sys/arch/arm64/dev/bcm2835_dwctwo.c index d6cfe61fd2a..9242e9ea65e 100644 ---

Re: include pine64 firmware in install media

2017-08-20 Thread Artturi Alm
On Sun, Aug 20, 2017 at 12:24:20AM +1000, Jonathan Gray wrote: > With the atf-allwinner port and u-boot patch on ports@ we can now build > and include an open firmware for the Pine64 without boot0. > > The arm64 snapshot for the 19th of August includes an older version of > this patch which

partial compat checking w/OF_is_compatible() ?

2017-08-22 Thread Artturi Alm
Hi, i came across dwc2 usb node like this: usb@101c { compatible = "snps,dwc2"; reg = <0x101c 0x4>; interrupts = <0x0 0x11 0x4>; clocks = <0x2 0x1c9>; clock-names = "otg"; dr_mode

Re: armv7 a few tc_counter_mask fixes

2017-09-18 Thread Artturi Alm
On Mon, Sep 18, 2017 at 11:19:09AM +0100, Stuart Henderson wrote: > On 2017/09/18 04:28, Artturi Alm wrote: > > Do i really need to reference datasheets, or would someone explain to me > > the value of this MSB robbing? > > I think, if you're proposing a change, y

armv7 inlined bus_space, was Re: armv7 bs retry, for comments 1/5.

2017-09-16 Thread Artturi Alm
On Sun, Jul 09, 2017 at 11:37:44AM +0300, Artturi Alm wrote: > Hi, > > ok, the previous version of this was crap, i must admit having gone > through what i sent, since i got no comments for it. > i'll retry w/version i think should be simple enough, with almost > no clean

Re: armv7 a few tc_counter_mask fixes

2017-09-18 Thread Artturi Alm
On Mon, Sep 18, 2017 at 03:41:56PM +0300, Artturi Alm wrote: > On Mon, Sep 18, 2017 at 11:19:09AM +0100, Stuart Henderson wrote: > > On 2017/09/18 04:28, Artturi Alm wrote: > > > Do i really need to reference datasheets, or would someone explain to me > > > th

  1   2   3   >