Commit Graph

248155 Commits

Author SHA1 Message Date
abhinav f1b8958974 Fix spelling of simultaneous. 2017-01-27 10:12:05 +00:00
ozaki-r a18d81bb89 Unbreak builds of rump libraries with RUMP_LOCKDEBUG 2017-01-27 09:50:47 +00:00
nat 712047004e Revert to previous. Audio passes the test properly again. 2017-01-27 05:14:54 +00:00
nat 4ce86a2f75 Audio passes the ver 1.2 of the atf test again. t_pad_outpuut will be
reverted in a follow up commit.
2017-01-27 05:05:51 +00:00
knakahara 85d89047af add comment about txq->txq_lock contentions in wm_nq_transmit(). 2017-01-27 05:04:47 +00:00
christos eb4e2ff6fe rump does not have ucontext32_t 2017-01-27 03:53:01 +00:00
kamil fa3933b2b8 Add new tests signal[67] in t_ptrace_wait{4,6,id,pid}
signal6:
    Verify that masking SIGTRAP in tracee does not stop tracer from
    catching PTRACE_FORK breakpoint

signal7:
    Verify that masking SIGTRAP in tracee does not stop tracer from
    catching PTRACE_VFORK breakpoint

signal6 fails due to PR kern/51918
signal6 fails due to PR kern/51918 and PR kern/51630

Sponsored by <The NetBSD Foundation>
2017-01-27 00:34:52 +00:00
kamil ac522b683c Add new test signal5 in t_ptrace_wait{,3,4,6,id,pid}
signal5:
    Verify that masking SIGTRAP in tracee does not stop tracer from
    catching exec() breakpoint

signal5 is failing and linked with PR kern/51918

Sponsored by <The NetBSD Foundation>
2017-01-26 22:46:19 +00:00
kamil a34102a3aa Add new test signal4 in t_ptrace_wait{,3,4,6,id,pid}
signal4:
    Verify that masking SIGTRAP in tracee does not stop tracer from
    catching single step trap

signal4 is marked as failing and referenced with PR kern/51918.

Sponsored by <The NetBSD Foundation>
2017-01-26 22:32:48 +00:00
skrll 5366c9f585 Fix logic inversion spotted by paulg 2017-01-26 21:38:11 +00:00
skrll cf1b64a79e Make MP-safe and use kmem(9)
Mostly from rmind-smpnet
2017-01-26 21:13:19 +00:00
kamil a17a9cedbb Add new tests signal[23] in t_ptrace_wait{,3,4,6,id,pid}
signal2:
    Verify that masking SIGTRAP in tracee stops tracer from
    catching this raised signal

signal3:
    Verify that masking SIGTRAP in tracee does not stop tracer from
    catching software breakpoints

signal3 is marked as failing and refrenced with PR kern/51918
Currently signal3 requires code for other architectures than x86_64

Sponsored by <The NetBSD Foundation>
2017-01-26 20:15:44 +00:00
ginsbach 27c9fdd3fa Add virtual routing and forwarding 2017-01-26 19:00:13 +00:00
kamil 7da544b6ff Add new test signal1 in t_ptrace_wait{,3,4,6,id,pid}
signal1:
    Verify that masking single unrelated signal does not stop tracer
    from catching other signals

Sponsored by <The NetBSD Foundation>
2017-01-26 17:03:21 +00:00
christos e4cf317682 provide __HAVE_COMPAT_NETBSD32 and fix multiple include protection consistently. 2017-01-26 15:55:08 +00:00
christos 914b3cbf1a use __HAVE_COMPAT_NETBSD32 2017-01-26 15:54:31 +00:00
wiz fed872eca6 Fix a typo, add a comma. 2017-01-26 13:52:29 +00:00
ryoon 91ab8d2322 Add viornd(4) to virtio(4) man page 2017-01-26 13:38:28 +00:00
knakahara 46ddd00677 fix memory leak at wm_detach.
pointed out and reviewed by msaitoh@n.o.
2017-01-26 10:14:52 +00:00
martin ee2ea00dd5 Restrict the forcing of COMPAT_NETBSD32 to _LP64 kernels - this is probably
not the right thing to do, but unbreaks the build for now.
2017-01-26 08:09:27 +00:00
martin d57a70bd13 No COMPAT_NETBSD32 for rump 2017-01-26 07:54:05 +00:00
pgoyette 34fb8cb604 Add comment about possibly prompting for "release" portion of module
path at boot-loader time.
2017-01-26 04:24:20 +00:00
nat 10bab8a3fa Use sc_pr the mixing ring in full not just the first block.
Audio will pass the atf test again.
2017-01-26 04:15:38 +00:00
christos 9be065fb89 For LOCKDEBUG:
Always provide the location of the caller of the lock as __func__, __LINE__.
2017-01-26 04:11:56 +00:00
nat 7257364421 Don't hold the thread_lock between successive calls to sc_intr as it
breaks mixing.

This will help passing the atf test.  Changes to audio.c to ensue this
will be in a followup commit.
2017-01-26 04:10:27 +00:00
christos 655a10972a always compile in the COMPAT32 code; it is tiny and if we don't it breaks
the modules.
2017-01-26 03:54:54 +00:00
christos 46149e83cc don't return early holding a lock! 2017-01-26 03:54:01 +00:00
nonaka 78d84e817e Fix compile failure on i386 with DEBUG_MEMLOAD. 2017-01-26 01:36:35 +00:00
nonaka b1c9a8a10f Fix compile failure on i386 with PAE. 2017-01-26 01:35:51 +00:00
christos 8b431b6f84 Define MODULAR so we can have syscalls autoload after the module autoloads.
XXX: This is toxic, and currently caused LOCKDEBUG crashes.
2017-01-26 01:32:34 +00:00
kamil 8943353e76 Update TODO.ptrace
Added:
 - reiterate over FreeBSD tests and add missing ones if applicable

Sponsored by <The NetBSD Foundation>
2017-01-26 01:12:13 +00:00
kamil a55086ec09 Update TODO.ptrace
Drop:
 - add ATF tests for PIOD_READ_AUXV

Add new entry:
 - research what happens when a tracee masks signals (including SIGTRAP)
   and a breakpoint is triggered

Sponsored by <The NetBSD Foundation>
2017-01-26 01:04:23 +00:00
jakllsch 15a5ead236 Catch netbsd32_copyargs() up to changes in r1.441 src/sys/kern/kern_exec.c 2017-01-25 21:45:39 +00:00
christos 4705defbf3 es_arglen is already in bytes... 2017-01-25 17:57:14 +00:00
christos 44c43f62df The argument length is in bytes; don't use howmany() 2017-01-25 17:56:45 +00:00
christos 908d408b7e PR/51916: Kamil Rytarowski: Don't multiply es_arglen with ptrsz since it is
already in bytes and contains the maximum possible size:
	ELF_AUX_ENTRIES * sizeof(auxv) + MAXPATHLEN + ALIGN
2017-01-25 17:55:47 +00:00
jakllsch d783875ca2 Improve/fix igsfb(4) support for 15BPP.
Use howmany(depth, NBBY) instead of (depth >> 3), so that 15 bits maps
to 2 bytes instead of 1.

While here, in a nearly-identical change, don't hard-code 8BPP into the
CyberPro blitter.
2017-01-25 17:31:55 +00:00
kamil 231f136ce0 Make the PIOD_READ_AUXV operation more clear
Describe how to set piod_offs.

Sponsored by <The NetBSD Foundation>
2017-01-25 17:12:56 +00:00
kamil 905db9de05 Add io_read_auxv1 in t_ptrace_wait{,3,4,6,id,pid}
io_read_auxv1:
    Verify PT_READ_AUXV called for tracee

Sponsored by <The NetBSD Foundation>
2017-01-25 17:01:57 +00:00
jakllsch 59ca1c9f5f Map coprocessor registers before igsfb_hw_setup(), they are needed for
setting up the video mode.
2017-01-25 16:11:54 +00:00
jakllsch f47d73c6a6 igsfb(4): use WSDISPLAY_BORDER_COLOR for overscan color 2017-01-25 15:51:07 +00:00
jakllsch a943ceca49 Double size of WSDISPLAYIO_SFONT name buffer to 32 characters.
We've got a font known as "DejaVu Sans Mono", and that is 17 bytes
by the time it's NUL terminated.
2017-01-25 15:40:31 +00:00
jakllsch 1730769371 Add rasops15_putchar_aa() for greyscale fonts.
Based on rasops8_putchar_aa() and rasops32_putchar_aa().
2017-01-25 14:53:43 +00:00
christos 00db07f741 - don't use their ntoh{l,s}/hton{l,s} implementation
- fix their ntohl/htonl implementations to use unsigned int instead of
  unsigned long so they work on _LP64.
2017-01-25 14:46:16 +00:00
christos d0198d293f new acpica 2017-01-25 13:43:58 +00:00
christos 2525631db5 implement new interfaces 2017-01-25 13:38:40 +00:00
christos 660602a827 merge conflicts 2017-01-25 13:38:21 +00:00
msaitoh 8fb4d0869d Call ixgbe_get_supported_physical_layer() before ixgbe_add_media_types() to
set new media types correctly.
2017-01-25 13:08:31 +00:00
christos 0b89cded03 One more time in the right place...
----------------------------------------
19 January 2017. Summary of changes for version 20170119:

This release is available at https://acpica.org/downloads

1) General ACPICA software:

Entire source code base: Added the 2017 copyright to all source code
legal/licensing module headers and utility/tool signons. This includes
the standard Linux dual-license header. This affects virtually every file
in the ACPICA core subsystem, iASL compiler, all ACPICA utilities, and
the ACPICA test suite.


2) iASL Compiler/Disassembler and Tools:

iASL: Removed/fixed an inadvertent remark when a method argument
containing a reference is used as a target operand within the method (and
never used as a simple argument), as in the example below. Jeffrey Hugo.

    dsdt.asl   1507:    Store(0x1, Arg0)
    Remark   2146 -                ^ Method Argument is never used (Arg0)

All tools: Removed the bit width of the compiler that generated the tool
from the common signon for all user space tools. This proved to be
confusing and unnecessary. This includes similar removal of HARDWARE_NAME
from the generic makefiles (Thomas Petazzoni). Example below.

    Old:
    ASL+ Optimizing Compiler version 20170119-32
    ASL+ Optimizing Compiler version 20170119-64

    New:
    ASL+ Optimizing Compiler version 20170119

----------------------------------------
22 December 2016. Summary of changes for version 20161222:


1) ACPICA kernel-resident subsystem:

AML Debugger: Implemented a new mechanism to simplify and enhance
debugger integration into all environments, including kernel debuggers
and user-space utilities, as well as remote debug services. This
mechanism essentially consists of new OSL interfaces to support debugger
initialization/termination, as well as wait/notify interfaces to perform
the debugger handshake with the host. Lv Zheng.

    New OSL interfaces:
        AcpiOsInitializeDebugger (void)
        AcpiOsTerminateDebugger (void)
        AcpiOsWaitCommandReady (void)
        AcpiOsNotifyCommandComplete (void)

    New OS services layer:
        osgendbg.c -- Example implementation, and used for AcpiExec

Update for Generic Address Space (GAS) support: Although the AccessWidth
and/or BitOffset fields of the GAS are not often used, this change now
fully supports these fields. This affects the internal support for FADT
registers, registers in other ACPI data tables, and the AcpiRead and
AcpiWrite public interfaces. Lv Zheng.

Sleep support: In order to simplify integration of ACPI sleep for the
various host operating systems, a new OSL interface has been introduced.
AcpiOsEnterSleep allows the host to perform any required operations
before the final write to the sleep control register(s) is performed by
ACPICA. Lv Zheng.

    New OSL interface:
        AcpiOsEnterSleep(SleepState, RegisterAValue, RegisterBValue)

    Called from these internal interfaces:
        AcpiHwLegacySleep
        AcpiHwExtendedSleep

EFI support: Added a very small EFI/ACPICA example application. Provides
a simple demo for EFI integration, as well as assisting with resolution
of issues related to customer ACPICA/EFI integration. Lv Zheng. See:

    source/tools/efihello/efihello.c

Local C library: Implemented several new functions to enhance ACPICA
portability, for environments where these clib functions are not
available (such as EFI). Lv Zheng:
    putchar
    getchar
    strpbrk
    strtok
    memmove

Fixed a regression where occasionally a valid resource descriptor was
incorrectly detected as invalid at runtime, and a
AE_AML_NO_RESOURCE_END_TAG was returned.

Fixed a problem with the recently implemented support that enables
control method invocations as Target operands to many ASL operators.
Warnings of this form: "Needed type [Reference], found [Processor]" were
seen at runtime for some method invocations.

Example Code and Data Size: These are the sizes for the OS-independent
acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
debug version of the code includes the debug output trace mechanism and
has a much larger code and data size.

  Current Release:
    Non-Debug Version: 141.5K Code, 58.5K Data, 200.0K Total
    Debug Version:     201.7K Code, 82.7K Data, 284.4K Total
  Previous Release:
    Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total
    Debug Version:     201.3K Code, 82.7K Data, 284.0K Total


2) iASL Compiler/Disassembler and Tools:

Disassembler: Enhanced output by adding the capability to detect and
disassemble ASL Switch/Case statements back to the original ASL source
code instead of if/else blocks. David Box.

AcpiHelp: Split a large file into separate files based upon
functionality/purpose. New files are:
    ahaml.c
    ahasl.c

----------------------------------------
17 November 2016. Summary of changes for version 20161117:


1) ACPICA kernel-resident subsystem:

Table Manager: Fixed a regression introduced in 20160729, "FADT support
cleanup". This was an attempt to remove all references in the source to
the FADT version 2, which never was a legal version number. It was
skipped because it was an early version of 64-bit support that was
eventually abandoned for the current 64-bit support.

Interpreter: Fixed a problem where runtime implicit conversion was
incorrectly disabled for the ASL operators below. This brings the
behavior into compliance with the ACPI specification:
    FromBCD
    ToBCD
    ToDecimalString
    ToHexString
    ToInteger
    ToBuffer

Table Manager: Added a new public interface, AcpiPutTable, used to
release and free an ACPI table returned by AcpiGetTable and related
interfaces. Lv Zheng.

Example Code and Data Size: These are the sizes for the OS-independent
acpica.lib produced by the Microsoft Visual C++ 9.0 32-bit compiler. The
debug version of the code includes the debug output trace mechanism and
has a much larger code and data size.

  Current Release:
    Non-Debug Version: 140.5K Code, 58.5K Data, 198.9K Total
    Debug Version:     201.3K Code, 82.7K Data, 284.0K Total
  Previous Release:
    Non-Debug Version: 140.4K Code, 58.1K Data, 198.5K Total
    Debug Version:     200.7K Code, 82.1K Data, 282.8K Total


2) iASL Compiler/Disassembler and Tools:

Disassembler: Fixed a regression for disassembly of Resource Template.
Detection of templates in the AML stream missed some types of templates.

iASL: Fixed a problem where an Access Size error was returned for the PCC
address space when the AccessSize of the GAS register is greater than a
DWORD. Hoan Tran.

iASL: Implemented several grammar changes for the operators below. These
changes are slated for the next version of the ACPI specification:
    RefOf        - Disallow method invocation as an operand
    CondRefOf    - Disallow method invocation as an operand
    DerefOf      - Disallow operands that use the result from operators
that
                   do not return a reference (Changed TermArg to
SuperName).

iASL: Control method invocations are now allowed for Target operands, as
per the ACPI specification. Removed error for using a control method
invocation as a Target operand.

Disassembler: Improved detection of Resource Templates, Unicode, and
Strings within Buffer objects. These subtypes do not contain a specific
opcode to indicate the originating ASL code, and they must be detected by
other means within the disassembler.

iASL: Implemented an optimization improvement for 32-bit ACPI tables
(DSDT/SSDT). For the 32-bit case only, compute the optimum integer opcode
only after 64-bit to 32-bit truncation. A truncation warning message is
still emitted, however.

AcpiXtract: Implemented handling for both types of line terminators (LF
or CR/LF) so that it can accept AcpiDump output files from any system.
Peter Wu.

AcpiBin: Added two new options for comparing AML files:
    -a: compare and display ALL mismatches
    -o: start compare at this offset into the second file
2017-01-25 13:03:49 +00:00
roy 2ebbf64e54 Document baudrate(3). 2017-01-25 12:42:05 +00:00