martin
44d63857d1
Removy now unused {s,f}uword
2015-11-22 10:18:14 +00:00
martin
536e060075
remove all MD uses of suword(), replace by copyout()
2015-11-22 09:32:34 +00:00
pgoyette
28b908ec33
Fix return-code handling for execve and chdir wrappers.
...
Fixes PR kern/50309
2015-11-22 01:20:52 +00:00
jmcneill
e2e02058ba
enable tegrasoctherm
2015-11-21 22:55:46 +00:00
jmcneill
0af3fdefa2
Add SOC_THERM temperature sensor driver:
...
# envstat -d tegrasoctherm0
Current CritMax WarnMax WarnMin CritMin Unit
CPU0: 27.500 degC
CPU1: 27.500 degC
CPU2: 29.500 degC
CPU3: 29.000 degC
MEM0: 26.500 degC
MEM1: 27.000 degC
GPU: 27.000 degC
PLLX: 28.000 degC
2015-11-21 22:55:32 +00:00
jmcneill
e7f77e44de
Apply initial fuse offset in tegra_fuse_read instead of in each reg def
2015-11-21 22:52:31 +00:00
jakllsch
77011a5640
Add error interrupt handler to for Tegra MC.
2015-11-21 16:50:29 +00:00
jakllsch
81bc32ac74
Add a bunch of hopefully-useful Tegra MC register bits.
2015-11-21 16:48:33 +00:00
martin
0d8f679638
Fix an off by one in the bit definition for RX store and forward mode.
...
Pointed out by ganbold.
While there add a few other bits of the same register.
2015-11-21 16:04:11 +00:00
maxv
a84a9bb93c
Remove the amd64 implementation of fuword and suword. They are not used in
...
the MI+amd64 code - Christos replaced them yesterday by copy*.
They are both buggy:
- suword does not properly check the userspace limit: 64 bits are copied,
but the max address checked is VM_MAXUSER_ADDRESS-4, which means that 4
bytes may overflow. Reported by Ed Schouten.
- fuword is supposed to be symmetrical with suword. But it uses 32bit
registers, so it stores 32bit values! Spotted by Chuck (chs@).
2015-11-21 12:34:48 +00:00
jmcneill
fd21f708a1
Try to reboot with the PMIC if available, falling back to PMC.
...
When the PMIC watchdog is armed and we reboot via PMC, the watchdog stays
armed on the next boot (and we end up being reset mid-boot the second time).
By rebooting with PMIC, we can ensure that the watchdog is not armed after
reset.
2015-11-21 12:22:25 +00:00
jmcneill
b1573d55e6
expose pmic reset functionality
2015-11-21 12:19:47 +00:00
jmcneill
b2b0f53c9f
Add FUSE driver, use it to determine maximum CPU frequency for the board.
...
Retire CPUFREQ_BOOT option and always use highest available CPU frequency.
2015-11-21 12:09:39 +00:00
jmcneill
853a0aa0c8
add sysmon_wdog dependency to as3722pmic
2015-11-21 10:57:32 +00:00
jmcneill
6d134f2ab4
add watchdog support
2015-11-21 10:56:40 +00:00
mlelstv
92be9a2428
Provide additional flags to control alternate functions
...
and interrupts.
2015-11-21 09:06:03 +00:00
pgoyette
eb9db23cbe
If a second call to the SET_FD ioctl occurs, release the reference we
...
hold on the earlier outout file.
2015-11-21 07:45:30 +00:00
mlelstv
f59d56db18
Add drivers to access the clock manager and pulse width modulator.
2015-11-21 07:41:29 +00:00
pgoyette
eab5fcbc7e
The correct default return value from a module's xxx_modcmd() routine
...
is ENOTTY, not EOPNOTSUPP! The former will allow the module to be
auto-unloaded, while the latter will prevent it.
Note that manual unloading of the filemon module is unaffected, as
that is controlled by actual usage of the module.
2015-11-21 03:34:28 +00:00
jmcneill
e79a56c90e
Add watchdog timer support.
2015-11-21 00:54:57 +00:00
christos
bfad2cbbc6
kill subyte.
2015-11-20 19:09:23 +00:00
christos
8b8cf48b88
get rid of the suword {m,j}umbo and check return of copyout.
2015-11-20 18:34:17 +00:00
bouyer
5221e2003b
Turn off more bits when turning off the display. Saves about 50ma on the
...
5V supply.
2015-11-20 18:32:13 +00:00
jakllsch
5157d96810
Fix up tegrausbphy attach args and stuff from previous.
...
From jmcneill.
2015-11-20 16:44:23 +00:00
christos
b27365e960
use copyout instead of suword.
2015-11-20 14:56:56 +00:00
maxv
5b63704f89
A few changes:
...
- remove cpu_id and cpu_brand_id (unused)
- copy a comment from i386 about fillkpt
- define PDE_SIZE (i386)
2015-11-20 11:58:00 +00:00
ozaki-r
a84874a1a0
Remove an ifnet object from the global list before destructing it
2015-11-20 08:10:36 +00:00
pgoyette
53ffed1b78
Ensure that the PID specified in the FILEMON_SET_PID ioctl() call
...
belongs to the caller or one of its descendants.
2015-11-20 02:58:19 +00:00
pgoyette
e0b2ceba2b
Remove extra ')' (bad cut&paste)
2015-11-20 01:33:59 +00:00
pgoyette
77a2d6cbf8
Don't allow setting the PID-to-trace if the target has a non-native
...
emulation.
2015-11-20 01:21:05 +00:00
pgoyette
e019cfbdd6
Install wrapper functions only in native emulation.
...
(This also removes the dependency on curproc, which may not be available
at the time that built-in kernel modules are initialized.)
2015-11-20 01:16:04 +00:00
pgoyette
96cae660f4
Don't initialize twice.
2015-11-20 01:12:38 +00:00
jmcneill
ce4ce06889
aprint_verbose_dev -> aprint_debug_dev
2015-11-19 22:26:48 +00:00
jmcneill
2dce92d18e
Remove HOST1X and AHB_A2 from pmap_devmap
2015-11-19 22:09:16 +00:00
christos
963a11e790
regen
2015-11-19 19:16:28 +00:00
christos
5432203721
Add another le board.
2015-11-19 19:16:10 +00:00
bouyer
9f64bc24a4
Turn off video output on WSDISPLAYIO_SVIDEO.
...
For LCD/LVDS, just stop the tcon0.
For HDMI, turn off tcon and hdmi (so that the monitor goes to sleeo)
if the audio output is inactive.
For this, add a lock-protected refcount in awin_hdmi, incremented when
audio and/or video is active.
Tested with an audio-enabled HDMI display.
2015-11-19 18:48:22 +00:00
christos
6ca9f36467
long line police
2015-11-19 17:04:01 +00:00
christos
2b793cea0d
Enable the VLAN mtu capability and check for the adjusted packet size
...
(Jean-Jacques.Puig at espci.fr).
Factor out the packet-size checking function for clarity.
2015-11-19 17:01:40 +00:00
christos
88b3ee5eb5
Add handling of VLAN packets in if_bridge where the parent interface supports
...
them (Jean-Jacques.Puig@espci.fr ). Factor out the vlan_mtu enabling and
disabling code.
2015-11-19 16:23:54 +00:00
marty
bf9db215fe
add 5422 gic handling to attach code
2015-11-19 05:44:41 +00:00
ozaki-r
53e3e4714d
Restore softnet_lock and KERNEL_LOCK for rtrequest and rtfree
...
We still need them for rt operations.
2015-11-19 03:03:04 +00:00
ozaki-r
0edb16352e
Call icmp6_error2 after releasing ln
...
This is a restructuring for coming changes.
From FreeBSD
2015-11-19 03:02:10 +00:00
christos
35bfced80d
Put these back. They are used.
2015-11-19 00:40:43 +00:00
phx
c835c55cd9
Patch by hannken@ to fix a bug which has been introduced with 1.71.
...
The kernel crashed with uvm fault when mounting an ados file system.
2015-11-18 22:06:25 +00:00
skrll
ed7c71fc9a
Remove unused files.
2015-11-18 20:25:02 +00:00
jakllsch
e26793fb01
Add support for the AR5BHB63 ath(4) (the only ath(4) in Half Mini Card
...
form that isn't supported by athn(4)).
2015-11-18 18:04:45 +00:00
jakllsch
8c719f5f2b
Note the interrupt for Tegra MC in the locators list.
2015-11-18 17:12:06 +00:00
jakllsch
009c795f13
Complete the interrupt definitions list from the Tertiary Interrupt
...
Controller range of the Tegra K1.
2015-11-18 17:01:39 +00:00
msaitoh
87c2fc6098
Delete #ifdef __HAVE_PCI_MSI_MSIX and use pci_intr_allo()/pci_intr_release()
...
on any systems. The third argument of pci_intr_alloc() is left because we will
use the code to support MSI-X in future.
2015-11-18 10:26:57 +00:00