The NetBSD Project

CVS log for src/sys/arch/x86/acpi/acpi_machdep.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / x86 / acpi

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.34.2.1 / (download) - annotate - [select for diffs], Wed Oct 18 15:14:24 2023 UTC (4 months, 2 weeks ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Changes since 1.34: +5 -4 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

Pull up following revision(s) (requested by bouyer in ticket #425):

	sys/arch/x86/pci/pci_machdep.c: revision 1.96
	sys/arch/x86/acpi/acpi_machdep.c: revision 1.36
	sys/arch/x86/x86/hyperv.c: revision 1.16
	sys/arch/x86/x86/genfb_machdep.c: revision 1.21
	sys/arch/x86/acpi/acpi_wakeup.c: revision 1.56
	sys/arch/x86/include/genfb_machdep.h: revision 1.6

Declare
int acpi_md_vesa_modenum;
int acpi_md_vbios_reset;
struct vcons_screen x86_genfb_console_screen;

in genfb_machdep.h instead of locally as extern in various .c files.

Revision 1.36 / (download) - annotate - [select for diffs], Mon Oct 16 17:27:02 2023 UTC (4 months, 2 weeks ago) by bouyer
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.35: +5 -4 lines
Diff to previous 1.35 (colored)

Declare
int acpi_md_vesa_modenum;
int acpi_md_vbios_reset;
struct vcons_screen x86_genfb_console_screen;

in genfb_machdep.h instead of locally as extern in various .c files.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Jan 24 09:35:20 2023 UTC (13 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.34: +14 -14 lines
Diff to previous 1.34 (colored)

x86/acpi/acpi_machdep.c: Nix trailing whitespace.

No functional change intended.

Revision 1.34 / (download) - annotate - [select for diffs], Fri Oct 28 21:58:27 2022 UTC (16 months ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base
Branch point for: netbsd-10
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

x86/acpi: Mark acpica interrupt handlers MP-safe.

acpica has its own internal locking, and the interrupt handlers we
install with AcpiInstall*Handler (gpe, notify, &c.) also have their
own locking.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Aug 20 23:48:50 2022 UTC (18 months, 1 week ago) by riastradh
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.32: +3 -2 lines
Diff to previous 1.32 (colored)

x86: Split most of pmap.h into pmap_private.h or vmparam.h.

This way pmap.h only contains the MD definition of the MI pmap(9)
API, which loads of things in the kernel rely on, so changing x86
pmap internals no longer requires recompiling the entire kernel every
time.

Callers needing these internals must now use machine/pmap_private.h.
Note: This is not x86/pmap_private.h because it contains three parts:

1. CPU-specific (different for i386/amd64) definitions used by...

2. common definitions, including Xenisms like xpmap_ptetomach,
   further used by...

3. more CPU-specific inlines for pmap_pte_* operations

So {amd64,i386}/pmap_private.h defines 1, includes x86/pmap_private.h
for 2, and then defines 3.  Maybe we should split that out into a new
pmap_pte.h to reduce this trouble.

No functional change intended, other than that some .c files must
include machine/pmap_private.h when previously uvm/uvm_pmap.h
polluted the namespace with pmap internals.

Note: This migrates part of i386/pmap.h into i386/vmparam.h --
specifically the parts that are needed for several constants defined
in vmparam.h:

VM_MAXUSER_ADDRESS
VM_MAX_ADDRESS
VM_MAX_KERNEL_ADDRESS
VM_MIN_KERNEL_ADDRESS

Since i386 needs PDP_SIZE in vmparam.h, I added it there on amd64
too, just to keep things parallel.

Revision 1.31.6.1 / (download) - annotate - [select for diffs], Mon May 31 22:15:16 2021 UTC (2 years, 9 months ago) by cjep
Branch: cjep_staticlib_x
Changes since 1.31: +2 -4 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

sync with head

Revision 1.31.4.1 / (download) - annotate - [select for diffs], Thu May 13 00:47:29 2021 UTC (2 years, 9 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.31: +2 -4 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Sync with HEAD.

Revision 1.32 / (download) - annotate - [select for diffs], Wed May 12 23:22:33 2021 UTC (2 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1
Changes since 1.31: +2 -4 lines
Diff to previous 1.31 (colored)

- Define a device call for PCI bus instances to fetch a direct child's
  device handle given the device's device/function #s (extracted from
  a pcitag_t).  Use it to associate the handle with the child device
  at config_found() time.
- Implement this device call for ACPI and OpenFirmware.
- Enable the OpenFirmware variant for evbarm FDT, macppc, ofppc, sparc64.
- Obsolete acpi_device_register(); it is no longer needed.
- Obsolete setting the OpenFirmware handle in PCI devices in the
  sparc64 device_register(); it is no longer needed.

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:41 2021 UTC (2 years, 10 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.30: +4 -2 lines
Diff to previous 1.30 (colored) next main 1.31 (colored)

Sync with HEAD.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Feb 4 23:54:48 2021 UTC (3 years ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base, thorpej-cfargs, cjep_staticlib_x-base
Branch point for: thorpej-i2c-spi-conf, cjep_staticlib_x
Changes since 1.30: +4 -2 lines
Diff to previous 1.30 (colored)

Call acpi_device_register() as appropriate.

Revision 1.30 / (download) - annotate - [select for diffs], Sat May 2 16:44:35 2020 UTC (3 years, 10 months ago) by bouyer
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.29: +13 -2 lines
Diff to previous 1.29 (colored)

Introduce Xen PVH support in GENERIC.
This is compiled in with
options XENPVHVM
x86 changes:
- add Xen section and xen pvh entry points to locore.S. Set vm_guest
  to VM_GUEST_XENPVH in this entry point.
  Most of the boot procedure (especially page table setup and switch to
  paged mode) is shared with native.
- change some x86_delay() to delay_func(), which points to x86_delay() for
  native/HVM, and xen_delay() for PVH

Xen changes:
- remove Xen bits from init_x86_64_ksyms() and init386_ksyms()
  and move to xen_init_ksyms(), used for both PV and PVH
- set ISA no-legacy-devices property for PVH
- factor out code from Xen's cpu_bootconf() to xen_bootconf()
  in xen_machdep.c
- set up a specific pvh_consinit() which starts with printk()
  (which uses a simple hypercall that is available early) and switch to
  xencons when we can use pmap_kenter_pa().

Revision 1.19.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:11 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.19.2.2: +60 -2 lines
Diff to previous 1.19.2.2 (colored) to branchpoint 1.19 (colored) next main 1.20 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.19.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:58 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.19.2.1: +14 -2 lines
Diff to previous 1.19.2.1 (colored) to branchpoint 1.19 (colored)

Merge changes from current as of 20200406

Revision 1.29 / (download) - annotate - [select for diffs], Sun Dec 22 15:57:07 2019 UTC (4 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.28: +14 -2 lines
Diff to previous 1.28 (colored)

Add acpi_intr_mask() and acpi_intr_unmask() which, following the pre-existing
ACPI software layering model, are wrappers around acpi_md_intr_mask() and
acpi_md_intr_unmask(), which in turn are wrappers around intr_mask() and
intr_unmask().

XXX ARM and IA64 implementations of acpi_md_intr_mask() and
acpi_md_intr_unmask() are just stubs for now.

Revision 1.18.6.2 / (download) - annotate - [select for diffs], Mon Sep 23 14:36:17 2019 UTC (4 years, 5 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE
Changes since 1.18.6.1: +12 -4 lines
Diff to previous 1.18.6.1 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored)

Apply patch, requested by manu in ticket #1380: add EFI specific guids
here locally for XEN (solved differently in HEAD by including more efi
support code in XEN kernels for PVHVM).

Revision 1.18.6.1 / (download) - annotate - [select for diffs], Wed Sep 18 16:30:33 2019 UTC (4 years, 5 months ago) by martin
Branch: netbsd-8
Changes since 1.18: +62 -4 lines
Diff to previous 1.18 (colored)

Pull up following revision(s) (requested by manu in ticket #1380):

	sys/arch/x86/acpi/acpi_machdep.c: revision 1.27,1.28 (patch)

Attempt to obtain ACPI RSDP from the hypervisor for Xen PV
There are three possible way of obtaining the ACPI RSDP

- From Extended BIOS Data Area (EBDA) when kernel or Xen was booted from
  BIOS bootstrap
- From EFI SystemTable when kernel is booted from EFI bootstrap
- When Xen is booted from EFI bootstrap, EBDA is not mapped, and EFI
  SystemTable is not passed to the kernel. The only way to go is to
  obtain ACPI RSDP trhough an hypercall.

Note: EFI bootstrap support for booting Xen has not yet been committed.

Cast physical addresses via uintptr_t to ACPI_PHYSICAL_ADDRESS to deal
with all size variants of the types used here in different builds.

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Tue Sep 17 19:41:45 2019 UTC (4 years, 5 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.26: +62 -4 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Pull up following revision(s) (requested by manu in ticket #204):

	sys/arch/x86/acpi/acpi_machdep.c: revision 1.27
	sys/arch/x86/acpi/acpi_machdep.c: revision 1.28

Attempt to obtain ACPI RSDP from the hypervisor for Xen PV

There are three possible way of obtaining the ACPI RSDP

- From Extended BIOS Data Area (EBDA) when kernel or Xen was booted from
  BIOS bootstrap
- From EFI SystemTable when kernel is booted from EFI bootstrap
- When Xen is booted from EFI bootstrap, EBDA is not mapped, and EFI
  SystemTable is not passed to the kernel. The only way to go is to
  obtain ACPI RSDP trhough an hypercall.

Note: EFI bootstrap support for booting Xen has not yet been committed.

Cast physical addresses via uintptr_t to ACPI_PHYSICAL_ADDRESS to deal
with all size variants of the types used here in different builds.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Sep 12 14:28:08 2019 UTC (4 years, 5 months ago) by martin
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.27: +6 -6 lines
Diff to previous 1.27 (colored)

Cast physical addresses via uintptr_t to ACPI_PHYSICAL_ADDRESS to deal
with all size variants of the types used here in different builds.
Patch from manu@.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Sep 12 00:52:22 2019 UTC (4 years, 5 months ago) by manu
Branch: MAIN
Changes since 1.26: +62 -4 lines
Diff to previous 1.26 (colored)

Attempt to obtain ACPI RSDP from the hypervisor for Xen PV

There are three possible way of obtaining the ACPI RSDP
- From Extended BIOS Data Area (EBDA) when kernel or Xen was booted from
  BIOS bootstrap
- From EFI SystemTable when kernel is booted from EFI bootstrap
- When Xen is booted from EFI bootstrap, EBDA is not mapped, and EFI
  SystemTable is not passed to the kernel. The only way to go is to
  obtain ACPI RSDP trhough an hypercall.

Note: EFI bootstrap support for booting Xen has not yet been committed.

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:06:53 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.19: +89 -54 lines
Diff to previous 1.19 (colored)

Sync with HEAD

Revision 1.26 / (download) - annotate - [select for diffs], Wed May 1 07:26:28 2019 UTC (4 years, 10 months ago) by mlelstv
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base
Branch point for: netbsd-9
Changes since 1.25: +55 -32 lines
Diff to previous 1.25 (colored)

Handle ISA/EISA interrupts like isa_machdep.c.

Revision 1.25 / (download) - annotate - [select for diffs], Sat Mar 9 10:04:41 2019 UTC (4 years, 11 months ago) by kre
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.24: +4 -5 lines
Diff to previous 1.24 (colored)


In acpi_md_OsRemoveInterruptHandler() redir and mpflags are only
relevant to the NIOAPIC > 0 case (not used without that).  Rearrange
#if's slightly to make that happen (avoid "set but not used" warnings
(aka errors) when NIOAPIC == 0 (or undefined)).

Revision 1.24 / (download) - annotate - [select for diffs], Sat Mar 9 08:42:25 2019 UTC (4 years, 11 months ago) by maxv
Branch: MAIN
Changes since 1.23: +4 -4 lines
Diff to previous 1.23 (colored)

Start replacing the x86 PTE bits.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Mar 3 17:33:33 2019 UTC (5 years ago) by maxv
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

Fix bug, PG_W is 'wired', not 'writable'.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:32 2019 UTC (5 years ago) by cherry
Branch: MAIN
Changes since 1.21: +6 -6 lines
Diff to previous 1.21 (colored)

We reorganise definitions for XEN source support as follows:

XEN - common sources required for baseline XEN support.
XENPV - sources required for support of XEN in PV mode.
XENPVHVM - sources required for support for XEN in HVM mode.
XENPVH - sources required for support for XEN in PVH mode.

Revision 1.18.12.2 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:28 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.18.12.1: +30 -17 lines
Diff to previous 1.18.12.1 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.21 / (download) - annotate - [select for diffs], Thu Nov 22 15:06:00 2018 UTC (5 years, 3 months ago) by jmcneill
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126
Changes since 1.20: +28 -36 lines
Diff to previous 1.20 (colored)

Apply MADT interrupt source overrides to interrupts established via
acpi_md_intr_establish.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Nov 16 23:03:55 2018 UTC (5 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.19: +23 -2 lines
Diff to previous 1.19 (colored)

Add MD functions for establishing and disestablishing interrupt handlers.

Revision 1.18.12.1 / (download) - annotate - [select for diffs], Thu Mar 22 01:44:47 2018 UTC (5 years, 11 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.18: +5 -4 lines
Diff to previous 1.18 (colored)

Synch with HEAD, resolve conflicts

Revision 1.19 / (download) - annotate - [select for diffs], Tue Mar 20 12:14:52 2018 UTC (5 years, 11 months ago) by bouyer
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322
Branch point for: phil-wifi
Changes since 1.18: +5 -4 lines
Diff to previous 1.18 (colored)

Allow registering ACPI interrupt handlers with a xname.
AcpiOsInstallInterruptHandler(), part of ACPICA API, doesn't allow passing
the xname. I extend the API with AcpiOsInstallInterruptHandler_xname()
for this purpose, and change acpi_md_OsInstallInterruptHandler() to
accept and use the xname (ia64 doens't use it).
The xname was hardcoded to "acpi SCI" in the
x86 acpi_md_OsInstallInterruptHandler(), so I make
AcpiOsInstallInterruptHandler() call
AcpiOsInstallInterruptHandler_xname with xname = "acpi SCI".

Now 'vmstat -i' shows the device's name instead of "acpi SCI" for for i2c HID
interrupts.

Proposed on tech-kern@ on Dec 29.

Revision 1.3.6.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:50 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.3.6.3: +150 -3 lines
Diff to previous 1.3.6.3 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

update from HEAD

Revision 1.8.4.6 / (download) - annotate - [select for diffs], Mon Aug 28 17:51:56 2017 UTC (6 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.8.4.5: +28 -53 lines
Diff to previous 1.8.4.5 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

Sync with HEAD

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:39 2017 UTC (6 years, 10 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.14: +13 -5 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Sync with HEAD

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:22 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.12.2.1: +13 -5 lines
Diff to previous 1.12.2.1 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

Sync with HEAD

Revision 1.18 / (download) - annotate - [select for diffs], Tue Feb 14 13:29:09 2017 UTC (7 years ago) by nonaka
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-compat-base, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: pgoyette-compat, netbsd-8
Changes since 1.17: +4 -2 lines
Diff to previous 1.17 (colored)

Handle persistent memory. Currently only debug output.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Feb 14 13:23:50 2017 UTC (7 years ago) by nonaka
Branch: MAIN
Changes since 1.16: +26 -52 lines
Diff to previous 1.16 (colored)

x86: make btinfo_memmap from btinfo_efimemmap for to reduce mem_cluster_cnt.

should fix PR/51953.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Feb 9 11:56:40 2017 UTC (7 years ago) by nonaka
Branch: MAIN
Changes since 1.15: +3 -4 lines
Diff to previous 1.15 (colored)

efi_md::md_virt always uses uint64_t.

Revision 1.8.4.5 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:23 2017 UTC (7 years ago) by skrll
Branch: nick-nhusb
Changes since 1.8.4.4: +53 -20 lines
Diff to previous 1.8.4.4 (colored) to branchpoint 1.8 (colored)

Sync with HEAD

Revision 1.15 / (download) - annotate - [select for diffs], Tue Jan 24 11:09:14 2017 UTC (7 years, 1 month ago) by nonaka
Branch: MAIN
CVS Tags: nick-nhusb-base-20170204
Changes since 1.14: +53 -20 lines
Diff to previous 1.14 (colored)

Initial commit of native amd64 EFI boot loader.

Revision 1.8.4.4 / (download) - annotate - [select for diffs], Mon Dec 5 10:54:59 2016 UTC (7 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.8.4.3: +4 -4 lines
Diff to previous 1.8.4.3 (colored) to branchpoint 1.8 (colored)

Sync with HEAD

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:06 2016 UTC (7 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.12: +38 -4 lines
Diff to previous 1.12 (colored)

Sync with HEAD

Revision 1.14 / (download) - annotate - [select for diffs], Sat Oct 15 16:46:14 2016 UTC (7 years, 4 months ago) by jdolecek
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20161204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored)

provide intr xname

Revision 1.8.4.3 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:36 2016 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.8.4.2: +36 -2 lines
Diff to previous 1.8.4.2 (colored) to branchpoint 1.8 (colored)

Sync with HEAD

Revision 1.13 / (download) - annotate - [select for diffs], Wed Sep 21 00:00:06 2016 UTC (7 years, 5 months ago) by jmcneill
Branch: MAIN
CVS Tags: nick-nhusb-base-20161004
Changes since 1.12: +36 -2 lines
Diff to previous 1.12 (colored)

Set hw.acpi.sleep.vbios when a non-HW accelerated VGA driver attaches.
If the VGA_POST option is present in the kernel the default value is 2,
otherwise 1. PR kern/50781

Reviewed by:    agc, mrg

Revision 1.8.4.2 / (download) - annotate - [select for diffs], Sat Mar 19 11:30:06 2016 UTC (7 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.8.4.1: +15 -3 lines
Diff to previous 1.8.4.1 (colored) to branchpoint 1.8 (colored)

Sync with HEAD

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jan 28 23:50:04 2016 UTC (8 years, 1 month ago) by htodd
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.11: +4 -2 lines
Diff to previous 1.11 (colored)

Fix build break.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jan 28 01:09:56 2016 UTC (8 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.10: +13 -3 lines
Diff to previous 1.10 (colored)

Add support for grub to find the ACPI root table pointer via a bootinfo entry
from grub.
    From: https://mail-index.netbsd.org/tech-kern/2014/05/22/msg017119.html

Revision 1.8.4.1 / (download) - annotate - [select for diffs], Sun Dec 27 12:09:44 2015 UTC (8 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.8: +95 -2 lines
Diff to previous 1.8 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.10 / (download) - annotate - [select for diffs], Tue Oct 6 15:06:05 2015 UTC (8 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20151226
Changes since 1.9: +4 -3 lines
Diff to previous 1.9 (colored)

CID/1325751: Avoid possible 32 bit overflow.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Oct 2 05:22:52 2015 UTC (8 years, 5 months ago) by msaitoh
Branch: MAIN
Changes since 1.8: +94 -2 lines
Diff to previous 1.8 (colored)

PCI Extended Configuration stuff written by nonaka@:
- Add PCI Extended Configuration Space support into x86.
- Check register offset of pci_conf_read() in MD part. It returns (pcireg_t)-1
  if it isn't accessible.
- Decode Extended Capability in PCI Extended Configuration Space.
  Currently the following extended capabilities are decoded:
   - Advanced Error Reporting
   - Virtual Channel
   - Device Serial Number
   - Power Budgeting
   - Root Complex Link Declaration
   - Root Complex Event Collector Association
   - Access Control Services
   - Alternative Routing-ID Interpretation
   - Address Translation Services
   - Single Root IO Virtualization
   - Page Request
   - TPH Requester
   - Latency Tolerance Reporting
   - Secondary PCI Express
   - Process Address Space ID
   - LN Requester
   - L1 PM Substates
  The following extended capabilities are not decoded yet:
   - Root Complex Internal Link Control
   - Multi-Function Virtual Channel
   - RCRB Header
   - Vendor Unique
   - Configuration Access Correction
   - Multiple Root IO Virtualization
   - Multicast
   - Resizable BAR
   - Dynamic Power Allocation
   - Protocol Multiplexing
   - Downstream Port Containment
   - Precision Time Management
   - M-PCIe
   - Function Reading Status Queueing
   - Readiness Time Reporting
   - Designated Vendor-Specific

Revision 1.3.6.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:29 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.3.6.2: +3 -1 lines
Diff to previous 1.3.6.2 (colored) to branchpoint 1.3 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:11 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.7: +4 -2 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Rebase.

Revision 1.2.4.3 / (download) - annotate - [select for diffs], Thu May 22 11:40:13 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.2.4.2: +91 -35 lines
Diff to previous 1.2.4.2 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.6.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:29 2014 UTC (9 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.6: +5 -3 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

sync with head

Revision 1.8 / (download) - annotate - [select for diffs], Mon May 12 11:51:34 2014 UTC (9 years, 9 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, rmind-smpnet-nbase, rmind-smpnet-base, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.7: +4 -2 lines
Diff to previous 1.7 (colored)

acpi_md_findoverride is only used when NIOAPIC > 0, so don't provide it
otherwise.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Oct 6 16:34:48 2013 UTC (10 years, 4 months ago) by jakllsch
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Correct acpi_md_OsWritable() logic so that it can return TRUE.
From Masanori Kanaoka in PR 47571.

Revision 1.3.6.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:14 2013 UTC (10 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.3.6.1: +88 -34 lines
Diff to previous 1.3.6.1 (colored) to branchpoint 1.3 (colored)

resync from head

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Sun Mar 31 20:32:01 2013 UTC (10 years, 11 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1
Changes since 1.3.2.1: +88 -34 lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

Pull up following revision(s) (requested by chs in ticket #855):
	sys/arch/x86/acpi/acpi_machdep.c: revision 1.5
	sys/arch/x86/acpi/acpi_machdep.c: revision 1.6
	sys/arch/x86/x86/mpacpi.c: revision 1.97
redo the ACPI interrupt handler setup again, this time handling
MADT overrides that change the pin as well as the polarity.
fixes PR 47648.
yet more fixes for PR 47648 / PR 47016:
when using a temporary mp_intr_map, initialize the "flags" field
as well as "redir" since apic_set_redir() uses both.  fix how
the flags field is change when applying an override, the trigger
and polarity sub-fields aren't just one bit like they are in redir.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Mar 31 19:34:24 2013 UTC (10 years, 11 months ago) by chs
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900
Branch point for: rmind-smpnet
Changes since 1.5: +5 -2 lines
Diff to previous 1.5 (colored)

yet more fixes for PR 47648 / PR 47016:
when using a temporary mp_intr_map, initialize the "flags" field
as well as "redir" since apic_set_redir() uses both.  fix how
the flags field is change when applying an override, the trigger
and polarity sub-fields aren't just one bit like they are in redir.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Mar 25 01:30:37 2013 UTC (10 years, 11 months ago) by chs
Branch: MAIN
Changes since 1.4: +85 -34 lines
Diff to previous 1.4 (colored)

redo the ACPI interrupt handler setup again, this time handling
MADT overrides that change the pin as well as the polarity.
fixes PR 47648.

Revision 1.3.2.1 / (download) - annotate - [select for diffs], Thu Nov 22 00:39:00 2012 UTC (11 years, 3 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RC2, netbsd-6-1-RC1
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

Pull up following revision(s) (requested by chs in ticket #683):
	sys/arch/ia64/include/acpi_machdep.h: revision 1.6
	sys/arch/x86/include/acpi_machdep.h: revision 1.11
	sys/dev/acpi/acpi.c: revision 1.255
	sys/arch/x86/acpi/acpi_machdep.c: revision 1.4
	sys/arch/x86/x86/mpacpi.c: revision 1.95
	sys/arch/x86/x86/mpacpi.c: revision 1.96
	sys/arch/ia64/acpi/acpi_machdep.c: revision 1.6
locate PCI buses and determine their bus numbers using the info
previously extracted from ACPICA rather than trying to figure it out again.
allow PCI buses that don't have a _PRT method.
as a workaround for PR 47016, call ioapic_reenable() at the end of
ACPI interrupt routing to fix the settings for the SCI interrupt.
the problem is that after my recent changes, the SCI handler is
installed before the MADT info is parsed, so we don't know what
polarity it should have.  the real fix for this will be to rearrange
the ACPI initialization so that everything is done in a more sensible
order, but that will take some more time.

Revision 1.3.6.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:01:51 2012 UTC (11 years, 3 months ago) by tls
Branch: tls-maxphys
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:20:32 2012 UTC (11 years, 4 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.2.4.1: +4 -4 lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored)

sync with head

Revision 1.4 / (download) - annotate - [select for diffs], Sun Sep 23 00:31:05 2012 UTC (11 years, 5 months ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, agc-symver-base, agc-symver
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

locate PCI buses and determine their bus numbers using the info
previously extracted from ACPICA rather than trying to figure it out again.
allow PCI buses that don't have a _PRT method.

Revision 1.2.4.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:07:05 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.2: +4 -5 lines
Diff to previous 1.2 (colored)

sync with head

Revision 1.2.8.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:33:33 2012 UTC (12 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.2: +4 -5 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

merge to -current.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jan 30 21:47:24 2012 UTC (12 years, 1 month ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10
Branch point for: tls-maxphys, netbsd-6
Changes since 1.2: +4 -5 lines
Diff to previous 1.2 (colored)

acpi_md_ncpus: use kcpuset_attached instead.

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Sat Aug 27 15:59:49 2011 UTC (12 years, 6 months ago) by jym
Branch: jym-xensuspend
Changes since 1.2.2.1: +297 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Add/remove files, like in HEAD.

Revision 1.2.2.1, Fri Jul 1 18:22:39 2011 UTC (12 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.2: +0 -297 lines
FILE REMOVED

file acpi_machdep.c was added on branch jym-xensuspend on 2011-08-27 15:59:49 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jul 1 18:22:39 2011 UTC (12 years, 8 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jym-xensuspend-nbase, jym-xensuspend-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jym-xensuspend, jmcneill-usbmp
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

#include <sys/bus.h> instead of <machine/bus.h>.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Thu Jun 23 14:19:47 2011 UTC (12 years, 8 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.1.2.1: +297 -0 lines
Diff to previous 1.1.2.1 (colored) next main 1.2 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.1.2.1, Sun Jun 12 11:31:31 2011 UTC (12 years, 8 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.1: +0 -297 lines
FILE REMOVED

file acpi_machdep.c was added on branch cherry-xenmp on 2011-06-23 14:19:47 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jun 12 11:31:31 2011 UTC (12 years, 8 months ago) by jruoho
Branch: MAIN
Branch point for: cherry-xenmp

Follow IA-64 with the x86-specific ACPI MD functions and move these where
they belong to. Remove an unused function. Minor KNF. No functional change.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>