1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00
Mirror of the FreeBSD src repository https://git.FreeBSD.org/src.git .
Go to file
Roger Pau Monné c397b61ea5 vesa: fix panic on suspend
Fix the following panic seen when migrating a FreeBSD guest on Xen:

panic: mtx_lock() of destroyed mutex @ /usr/src/sys/dev/fb/vesa.c:541
cpuid = 0
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe001d2fa4f0
vpanic() at vpanic+0x182/frame 0xfffffe001d2fa570
kassert_panic() at kassert_panic+0x126/frame 0xfffffe001d2fa5e0
__mtx_lock_flags() at __mtx_lock_flags+0x15b/frame 0xfffffe001d2fa630
vesa_bios_save_restore() at vesa_bios_save_restore+0x78/frame 0xfffffe001d2fa680
vga_suspend() at vga_suspend+0xa3/frame 0xfffffe001d2fa6b0
isavga_suspend() at isavga_suspend+0x1d/frame 0xfffffe001d2fa6d0
bus_generic_suspend_child() at bus_generic_suspend_child+0x44/frame
[...]

This is caused because vga_sub_configure (which is called if the VGA adapter
is attached after VESA tried to initialize), points to vesa_configure, which
doesn't initialize the VESA mutex. In order to fix it, make sure
vga_sub_configure points to vesa_load, so that all the needed vesa
components are properly initialized.

Sponsored by:		Citrix Systems R&D
MFC after:		3 days
PR:			209203
Reviewed by:		dumbbell
Differential revision:	https://reviews.freebsd.org/D7196
2016-07-20 09:29:39 +00:00
bin Path generation was not according to collate 2016-07-16 13:26:18 +00:00
cddl zpool(8): update Hot Spares section to mention zfsd(8) 2016-07-13 21:27:10 +00:00
contrib MFV r298167, r300962, r303048: 2016-07-20 03:52:04 +00:00
crypto Revert r301551, which added blacklistd(8) to sshd(8). 2016-06-24 23:22:42 +00:00
etc Start jails non-parallel if jail_parallel_start is NO. This was true 2016-07-14 20:17:08 +00:00
gnu Back out non-collating [a-z] ranges. 2016-07-14 09:47:49 +00:00
include Remove incorrect attributes from posix_memalign(3) declaration. 2016-07-05 22:30:29 +00:00
kerberos5 DIRDEPS_BUILD: Update dependencies 2016-06-14 16:55:05 +00:00
lib 1) Per POSIX (and glibc) GLOB_NOCHECK should return original pattern, 2016-07-20 07:30:44 +00:00
libexec Fix dlsym(RTLD_NEXT) handling to only return the next library in last library cases. 2016-07-15 19:07:00 +00:00
release Make sure we clean up the rdoc and reldoc directories if NODOC 2016-07-18 15:50:54 +00:00
rescue DIRDEPS_BUILD: Fix and hookup rescue/rescue to the build. 2016-05-26 23:20:40 +00:00
sbin Add named dynamic states support to ipfw(4). 2016-07-19 04:56:59 +00:00
secure Revert r301551, which added blacklistd(8) to sshd(8). 2016-06-24 23:22:42 +00:00
share Add myself (stevek) as a src committer and mentor (sjg) to committers-src.dot 2016-07-20 04:25:09 +00:00
sys vesa: fix panic on suspend 2016-07-20 09:29:39 +00:00
targets Add clang-format under WITH_CLANG_EXTRAS. 2016-06-17 16:46:58 +00:00
tests Add PTRACE_VFORK to trace vfork events. 2016-07-18 14:53:55 +00:00
tools Add my beinstall script. 2016-07-18 02:13:57 +00:00
usr.bin Only build makewhatis(1)/apropos(1) with MAN_UTILS. 2016-07-20 00:06:03 +00:00
usr.sbin makefs: sync NetBSD IDs with upstream for changes that we already have 2016-07-19 18:40:54 +00:00
.arcconfig Remove project.name which is a product of a bygone era. 2016-04-21 04:33:07 +00:00
.arclint
COPYRIGHT
LOCKS
MAINTAINERS Add myself to MAINTAINERS. 2016-03-14 16:27:43 +00:00
Makefile Revert r302670 and r302671 for now. 2016-07-13 01:35:53 +00:00
Makefile.inc1 Include makewhatis in ITOOLS when MK_MAN_UTILS is true 2016-07-19 18:05:25 +00:00
Makefile.libcompat WITH_SYSTEM_COMPILER: Avoid using GCC4.8+ logic on native GCC4.2 platforms. 2016-06-29 01:50:30 +00:00
ObsoleteFiles.inc Don't delete usr/share/local/kk_KZ.UTF-8 with "make delete-old" after r302329 2016-07-14 14:16:20 +00:00
README README: remove nonexistent 'games' directory. 2016-05-18 10:43:13 +00:00
UPDATING Revert r302865 and it's sister r302866 as r302865 causes some breakage. 2016-07-15 15:09:48 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree.  See build(7)
and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

The `buildkernel` and `installkernel` targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process.  See build(7), config(8),
and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
for more information.

Note: If you want to build and install the kernel with the
`buildkernel` and `installkernel` targets, you might need to build
world before.  More information is available in the handbook.

The kernel configuration files reside in the sys/<arch>/conf
sub-directory.  GENERIC is the default configuration used in release builds.
NOTES contains entries and documentation for all possible
devices, not just those commonly used.


Source Roadmap:
---------------

bin		System/user commands.

cddl		Various commands and libraries under the Common Development
		and Distribution License.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

rescue		Build system for statically linked /rescue utilities.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tests		Regression tests which can be run by Kyua.  See tests/README
		for additional information.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html