257921 Commits

Author SHA1 Message Date
bouyer
7db592877c A10 and A20 should have the same display hardware, so consistenly support
sun4i-a10 the same way as sun7i-a20.
This would need to be tested on a real A10.
2018-04-03 13:38:13 +00:00
bouyer
4671046966 Add commented out entries for the display drivers. 2018-04-03 12:56:21 +00:00
bouyer
a4d537b2c9 work in progress on porting graphics drivers from arm/allwinner to fdt.
sunxidebe: display backend drivers
sunxitcon: lcd controller driver
sunxihdmi: hdmi controller driver
sunxidep: display engine pipeline driver. Its role is only to parse the
   fdt display-engine node, and activate de backend drivers based on the
   content of allwinner,pipelines

So far HDMI and lvds output works, in dual-framebuffer mode.
It has only been tested on A20. It should be OK on the A10 too, but
will likely need more work for other SoCs.
Console is not handled yet, and it conflicts with the simplefb driver if
it has been activated by u-boot.
2018-04-03 12:52:16 +00:00
bouyer
4b1d4a545c Add connector and panel drivers (panel supports only panel-lvds and
panel-dual-lvds at this time, but can easily be extended to other types
of panels).
Add an API for ports/endpoints.
Proposed on tech-kern@ a few days ago, ok jmcneill@
2018-04-03 12:40:20 +00:00
bouyer
9f70cab6cf external interrupt functions are named "eint<n>" in the sunxi_gpio_pins[]
arrays, while sunxi_gpio_establish() looks for "eint".
Rename eint<n> to eint in sunxi_gpio_pins[]. Tested with an external interrupt
on PH0 on an A20.

XXX others sunxi_gpio_pins[] contains names like px_eint<n>, px being the
name of the port bank. I guess they should be renamed to "eint" too to work
with sunxi_gpio_establish() but I'm not sure the functions are really the
same, and I have no way to test.
2018-04-03 10:10:17 +00:00
maxv
d40270d9c9 Remove ipsec_copy_policy and ipsec_copy_pcbpolicy. No functional change,
since we used only ipsec_copy_pcbpolicy, and it was a no-op.

Originally we were using ipsec_copy_policy to optimize the IPsec-PCB
cache: when an ACK was received in response to a SYN, we used to copy the
SP cached in the SYN's PCB into the ACK's PCB, so that
ipsec_getpolicybysock could use the cached SP instead of requerying it.

Then we switched to ipsec_copy_pcbpolicy which has always been a no-op. As
a result the SP cached in the SYN was/is not copied in the ACK, and the
first call to ipsec_getpolicybysock had to query the SP and cache it
itself. It's not totally clear to me why this change was made.

But it has been this way for years, and after a conversation with Ryota
Ozaki it turns out the optimization is not valid anymore due to
MP-ification, so it won't be re-enabled.

ok ozaki-r@
2018-04-03 09:03:59 +00:00
maxv
9e4ad71de9 Remove unused fields and outdated comment. 2018-04-03 08:46:01 +00:00
tron
7370ecda85 Fix build with "USE_SSP=yes". 2018-04-03 08:18:11 +00:00
maxv
5f47a701b8 bcopy -> memcpy, it's obvious the areas don't overlap. 2018-04-03 08:02:34 +00:00
christos
7f0247b2b9 Rename the DDB IPI IDT vectors for consistency. ok maxv@ 2018-04-03 07:20:52 +00:00
wiz
9ca01900b9 openssh-7.7 out 2018-04-03 06:11:14 +00:00
mrg
e40865c57d convert some spaces into new lines and tabs to make the gcc 6
indent checker happy.
2018-04-02 22:49:48 +00:00
mrg
1983f147ae apply some more vax -O0/-O1. this now builds. 2018-04-02 22:35:26 +00:00
mrg
aedee1a123 handle programs that have 3 outputs in a saner fashion.
hopefully fixes PR 53137.
2018-04-02 22:34:22 +00:00
mlelstv
82789dd893 typo 2018-04-02 22:29:33 +00:00
bouyer
2ddb30cbb2 Add missing A10_RST_LVDS entry
fix sun4i_a10_ac_dig_table[] with values from arm/allwinner/,
audio plays at the right rate again on my lime2
2018-04-02 20:57:18 +00:00
bouyer
5e1ea25394 - sunxi_ccu_lcdxch1_set_rate(): enable parent before calling
sunxi_ccu_div_set_rate(). If it's not enabled get_rate() will return 0 and
  sunxi_ccu_div_set_rate() will fail.
- rework sunxi_ccu_lcdxch0_set_rate() to actually really select the best
  parent.
2018-04-02 20:55:49 +00:00
christos
286dab8d31 use the right end macro: IDTVEC_END(name) instead of END(Xname) 2018-04-02 20:54:47 +00:00
jdolecek
554e919d8c fix typo in comment 2018-04-02 18:25:41 +00:00
maya
3f6bdae5df Add new predicate volatile_mem_operand and use it for jbbssi<mode>
Fixes PR port-vax/53039: GCC/VAX hits ICE building libstdc++

GCC wants to change the label and then doesn't recognise the
new insn, it believes it doesn't satisfy the memory_operand
predicate.

It appears the memory_operand predicate doesn't accept volatile
memory accesses during the RTL generation phase.

The predicate is from rs6000 code.

from krister
2018-04-02 17:45:23 +00:00
rin
b18e9232b7 Remove extra printf duplicate with MI codes. 2018-04-02 11:02:52 +00:00
msaitoh
a7e7d4f084 Fix long standing bug that 82598 SFP+ panics in ixgbe_handle_mod() because
hw->mac.ops.setup_sfp is NULL. This change is a part of FreeBSD r327031.
2018-04-02 10:51:35 +00:00
rin
1182ff84db Use ahc_freedmamem() for consistency. No functional change intended. 2018-04-02 10:44:06 +00:00
rin
d51320e75c Initialize ahc->shared_data_size appropriately. Fix panic when detach. 2018-04-02 10:32:47 +00:00
sevan
7119252bd3 Revert previous change as the typedef should now work as intended.
Thanks christos, martin
2018-04-02 10:30:06 +00:00
nonaka
95e6c1170a efiboot: try to read boot.cfg from /EFI/NetBSD on ESP of the booted disk. 2018-04-02 09:44:18 +00:00
msaitoh
ce5da7e756 Regen. 2018-04-02 07:31:17 +00:00
msaitoh
516c5fb052 Add Intel X299 and Z370 LPC. 2018-04-02 07:30:34 +00:00
ryo
673a795def Add support for aarch64 2018-04-02 05:52:31 +00:00
knakahara
be8dae5598 Avoid issues caused by sending old packets at next link-up time.
This modification consists by the following two parts.
    - drain packets in if_snd queue or corresponding txr->txr_interq
      when link_active == false in ifp->if_start(), ifp->if_transmit(),
      and deferred Tx processing
    - drain packets in if_snd queue and all of txr->txr_interq's
      at link-down time

ok by msaitoh@n.o.
2018-04-02 05:02:55 +00:00
dholland
377ca2b42e Fix bad markup. 2018-04-02 04:26:17 +00:00
christos
6d9827c89d eat NUL's first so that the state machine is not altered by them. 2018-04-02 01:15:31 +00:00
jakllsch
ccf1058491 re-generate 2018-04-02 00:46:07 +00:00
jakllsch
7dcd9b9658 Add Linux Foundation vendor ID, and their root hub device IDs. 2018-04-02 00:45:06 +00:00
christos
f92f386dca remove unused struct tag. 2018-04-01 23:38:02 +00:00
sevan
189f355498 netpgp_t is a structure 2018-04-01 23:25:27 +00:00
christos
fd434df171 add commented out debugging options. 2018-04-01 23:00:40 +00:00
christos
e24b32683b Avoid double frees (thanks asan) 2018-04-01 22:59:57 +00:00
christos
7b335de413 make debugrm compile again. 2018-04-01 22:35:22 +00:00
bouyer
db6d41fb5d Add a round_rate() callback for the sunxi clock domain.
Add a sunxi_ccu_display.c file with helpers for setting up display engine
clocks.
for fractional clocks, rename frac_en to div_en, I got the logic inverted.
Adjust tcon0-ch0, tcon0-ch1, tcon1-ch0 and tcon1-ch1 definitions to
automatically select a parent. tcon0 hardcoded to pll3 and tcon1 to pll7.
Define a round_rate() callback for these clocks, as well as fractional clocks.
Hardcode debe clocks parent to pll5.
2018-04-01 21:19:17 +00:00
bouyer
70d9969940 As discussed on tech-kern@ 10 days ago, add a clk_round_rate() method,
which returns the rate that would be used by this clock if clk_set_rate()
was called. Used by drivers (or other clocks) which have their own divider
and need to know the parent's clock capabilities to compute the best
parameters.
2018-04-01 21:11:01 +00:00
bouyer
10df83e46f Fix lvds output: PD10->19 are for lvds1, not lvds0. But they may be used
by tcon0 when it is set to dual-LVDS mode.
2018-04-01 21:05:55 +00:00
christos
eb23b853bb handle log being before timestamp... 2018-04-01 19:36:13 +00:00
christos
db02d1fb9e Handle new timestamp sequences. 2018-04-01 19:31:16 +00:00
christos
9c17258d23 Add the ability to prepend a timestamp [ sec.nsec] relative to boottime
in kernel messages if KLOG_TIMESTAMP is enabled.
2018-04-01 19:29:43 +00:00
christos
1771523298 Instead of expanding the syslog level into <level> early, defer expansion
inside putchar; extract the actual character addition function to a separate
function.
2018-04-01 19:28:17 +00:00
christos
a579c6a325 Move the add char portion to its own function. 2018-04-01 19:01:08 +00:00
kre
7d5ae540ad PR misc/53145 (Bruce Lilly)
Use ps -A instead of ps -ax (-A means -ax, but -A is posix, -x is not)
Use ps -o args instead of ps -o command (same reason).

This makes no difference when the ps used is /bin/ps on NetBSD, but
can make a difference when some other ps command gets invoked instead.

XXX pullup -8
2018-04-01 18:26:51 +00:00
ryo
7315ff6055 fix build error 2018-04-01 14:33:53 +00:00
maxv
d8123fa2ca Change the check to be <= instead of <. This fixes one occurrence of an
apparently widespread division-by-zero bug in our TCP code: if a user adds
huge IPv6 options with setsockopt, and if the total size of the options
happens to be equal to the available space calculated for the TCP payload,
t_segsz gets set to zero, and given that we then divide several things by
it, the kernel crashes.
2018-04-01 12:58:47 +00:00