The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.26 / (download) - annotate - [select for diffs], Sat Oct 15 11:07:38 2022 UTC (16 months, 2 weeks ago) by jmcneill
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

Use "non-posted" instead of "strongly ordered" to describe nGnRnE mappings

Rename the following defines:
 - _ARM_BUS_SPACE_MAP_STRONGLY_ORDERED to BUS_SPACE_MAP_NONPOSTED
 - PMAP_DEV_SO to PMAP_DEV_NP
 - LX_BLKPAG_ATTR_DEVICE_MEM_SO to LX_BLKPAG_ATTR_DEVICE_MEM_NP
Rename the following option:
 - AARCH64_DEVICE_MEM_STRONGLY_ORDERED to AARCH64_DEVICE_MEM_NONPOSTED

Revision 1.25 / (download) - annotate - [select for diffs], Sun Aug 8 10:28:26 2021 UTC (2 years, 6 months ago) by jmcneill
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.24: +130 -9 lines
Diff to previous 1.24 (colored)

arm: ACPI: Add support for simple sharing of platform interrupts

Allow sharing of platform interrupts provided that the type, ipl, and
mpsafe-ness are the same.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Aug 7 18:40:45 2021 UTC (2 years, 6 months ago) by jmcneill
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

acpi: DMA: Use acpi_resource_parse_any to parse _DMA resources

_DMA resources really should be marked ResourceProducer, so use
acpi_resource_parse_any to pick these up.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Aug 7 16:18:42 2021 UTC (2 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.22: +5 -8 lines
Diff to previous 1.22 (colored)

Merge thorpej-cfargs2.

Revision 1.22.8.1 / (download) - annotate - [select for diffs], Wed Aug 4 16:51:26 2021 UTC (2 years, 6 months ago) by thorpej
Branch: thorpej-cfargs2
Changes since 1.22: +5 -8 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

Adapt to CFARGS().

Revision 1.22 / (download) - annotate - [select for diffs], Sat Apr 24 23:36:25 2021 UTC (2 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-cfargs2
Changes since 1.21: +11 -5 lines
Diff to previous 1.21 (colored)

Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
  actually needed.
- Don't be explicit about what interface attribute is attaching if
  the device only has one.  (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
  situations, making is visibly easier to see when indirect config is
  in play, and allowing for future change in semantics.  (As of now,
  this is just a wrapper around config_match(), but that is an
  implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance.  This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).

Revision 1.21.2.2 / (download) - annotate - [select for diffs], Sat Apr 17 18:03:32 2021 UTC (2 years, 10 months ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.21.2.1: +3 -3 lines
Diff to previous 1.21.2.1 (colored) to branchpoint 1.21 (colored) next main 1.22 (colored)

acpi_md_gtdt_probe(): Fix paste-o in interface attribute name.

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Fri Apr 2 22:17:37 2021 UTC (2 years, 10 months ago) by thorpej
Branch: thorpej-cfargs
Changes since 1.21: +11 -5 lines
Diff to previous 1.21 (colored)

config_found_ia() -> config_found() w/ CFARG_IATTR.

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Mon Dec 14 14:37:47 2020 UTC (3 years, 2 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.20: +2 -7 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Sync w/ HEAD.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Dec 13 20:24:26 2020 UTC (3 years, 2 months ago) by jmcneill
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Changes since 1.20: +2 -7 lines
Diff to previous 1.20 (colored)

Add MI support for attaching drivers to arbitrary System Description
Tables.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Oct 24 07:08:22 2020 UTC (3 years, 4 months ago) by skrll
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

Trailing whitespace

Revision 1.6.4.4 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:32 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.6.4.3: +58 -3 lines
Diff to previous 1.6.4.3 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

Mostly merge changes from HEAD upto 20200411

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

Merge changes from current as of 20200406

Revision 1.18.2.1 / (download) - annotate - [select for diffs], Sat Jan 25 22:38:37 2020 UTC (4 years, 1 month ago) by ad
Branch: ad-namecache
Changes since 1.18: +28 -8 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

Sync with head.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jan 21 11:24:47 2020 UTC (4 years, 1 month ago) by jmcneill
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
Changes since 1.18: +28 -8 lines
Diff to previous 1.18 (colored)

Provide a properly constrained 32-bit DMA tag to ACPI.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Dec 31 17:26:04 2019 UTC (4 years, 2 months ago) by jmcneill
Branch: MAIN
CVS Tags: ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.17: +6 -9 lines
Diff to previous 1.17 (colored)

Rely on 32/64-bit overflow to calculate translation offsets. Store this
as a separate ar_xbase field in acpi_mem instead of having separate
ar_offset and ar_decode fields.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Dec 31 13:54:22 2019 UTC (4 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.16: +92 -56 lines
Diff to previous 1.16 (colored)

Create bus_dma tags for each device node based on _CCA and _DMA properties
found by walking up the device node tree. These tags encode range
restrictions, address translations, and whether or not the device is
cache coherent.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Dec 31 11:42:46 2019 UTC (4 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.15: +29 -8 lines
Diff to previous 1.15 (colored)

The DMA restrictions may not be defined in the direct parent of a device,
so search up the tree for a module device.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Dec 30 19:50:29 2019 UTC (4 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.14: +60 -4 lines
Diff to previous 1.14 (colored)

If a device node is a child of a module device, and the module device declares DMA range restrictions, use them.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Dec 29 23:47:56 2019 UTC (4 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.13: +22 -2 lines
Diff to previous 1.13 (colored)

Allow MD code to provide custom bus_dma tags on a per-node basis. On Arm
this is required to return non-coherent bus_dma tags for device nodes with
_CCA=0

Revision 1.6.6.3 / (download) - annotate - [select for diffs], Sun Dec 29 09:27:10 2019 UTC (4 years, 2 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
Changes since 1.6.6.2: +17 -3 lines
Diff to previous 1.6.6.2 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #586):

	sys/arch/arm/nvidia/tegra_pcie.c: revision 1.27
	sys/arch/aarch64/aarch64/pmap.c: revision 1.57
	sys/arch/aarch64/aarch64/locore.S: revision 1.48
	sys/arch/aarch64/include/armreg.h: revision 1.29
	sys/arch/aarch64/aarch64/pmap.c: revision 1.58
	sys/arch/aarch64/aarch64/locore.S: revision 1.49
	sys/arch/arm/acpi/acpipchb.c: revision 1.14
	sys/arch/aarch64/aarch64/genassym.cf: revision 1.16
	sys/arch/arm/acpi/acpi_machdep.c: revision 1.13
	sys/arch/aarch64/include/pmap.h: revision 1.27
	sys/arch/aarch64/aarch64/genassym.cf: revision 1.17
	sys/arch/aarch64/include/pmap.h: revision 1.28
	sys/arch/arm/fdt/pcihost_fdtvar.h: revision 1.3
	sys/arch/arm/include/bus_defs.h: revision 1.14
	sys/arch/aarch64/aarch64/bus_space.c: revision 1.9
	sys/arch/arm/fdt/pcihost_fdt.c: revision 1.12
	sys/arch/aarch64/conf/files.aarch64: revision 1.15
	sys/arch/aarch64/conf/files.aarch64: revision 1.16
	sys/arch/arm/rockchip/rk3399_pcie.c: revision 1.9

Enable early write acknowledge for device memory mappings.

Do not use Early Write Acknowledge for PCIe I/O and config space.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Dec 28 17:19:43 2019 UTC (4 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.12: +17 -3 lines
Diff to previous 1.12 (colored)

Do not use Early Write Acknowledge for PCIe I/O and config space.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Dec 23 15:34:23 2019 UTC (4 years, 2 months ago) by jmcneill
Branch: MAIN
Changes since 1.11: +4 -6 lines
Diff to previous 1.11 (colored)

Implement acpi_md_intr_mask and acpi_md_intr_unmask

Revision 1.11 / (download) - annotate - [select for diffs], Sun Dec 22 15:57:06 2019 UTC (4 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.10: +16 -2 lines
Diff to previous 1.10 (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.6.6.2 / (download) - annotate - [select for diffs], Mon Aug 12 17:32:09 2019 UTC (4 years, 6 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-0-RC1
Changes since 1.6.6.1: +4 -4 lines
Diff to previous 1.6.6.1 (colored) to branchpoint 1.6 (colored)

Pull up following revision(s) (requested by skrll in ticket #48):

	sys/arch/arm/acpi/acpi_machdep.c: revision 1.9
	sys/arch/arm/acpi/acpi_machdep.c: revision 1.10

Correct the test for writeable memory.  There aren't any users of this at
this point.

Use same style test as acpi_md_OsWritable

Revision 1.10 / (download) - annotate - [select for diffs], Mon Aug 12 15:37:26 2019 UTC (4 years, 6 months ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

Use same style test as acpi_md_OsWritable

Revision 1.9 / (download) - annotate - [select for diffs], Mon Aug 12 15:29:48 2019 UTC (4 years, 6 months ago) by skrll
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Correct the test for writeable memory.  There aren't any users of this at
this point.

Revision 1.6.6.1 / (download) - annotate - [select for diffs], Sun Aug 4 11:37:56 2019 UTC (4 years, 6 months ago) by martin
Branch: netbsd-9
Changes since 1.6: +58 -3 lines
Diff to previous 1.6 (colored)

Pull up following revision(s) (requested by jmcneill in ticket #3):

	sys/stand/efiboot/efiacpi.c: revision 1.4
	sys/stand/efiboot/efifdt.c: revision 1.18
	sys/stand/efiboot/version: revision 1.12
	sys/arch/arm/acpi/acpi_machdep.c: revision 1.7
	sys/arch/arm/acpi/acpi_machdep.c: revision 1.8

Add full UEFI memory map to the /chosen node.

 -

acpi_md_OsMapMemory can be used for both normal and device memory. Use the
UEFI memory map to determine how to map a given region.

Always map ACPI table memory as normal memory. Always map device memory as device memory.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Aug 1 18:59:10 2019 UTC (4 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.7: +20 -10 lines
Diff to previous 1.7 (colored)

Always map ACPI table memory as normal memory. Always map device memory as device memory.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Aug 1 13:13:51 2019 UTC (4 years, 7 months ago) by jmcneill
Branch: MAIN
Changes since 1.6: +48 -3 lines
Diff to previous 1.6 (colored)

acpi_md_OsMapMemory can be used for both normal and device memory. Use the
UEFI memory map to determine how to map a given region.

Revision 1.6.4.2 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:50 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.6.4.1: +283 -0 lines
Diff to previous 1.6.4.1 (colored) to branchpoint 1.6 (colored)

Sync with HEAD

Revision 1.3.2.3 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:17 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.3.2.2: +37 -11 lines
Diff to previous 1.3.2.2 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.6.4.1, Fri Nov 16 23:03:55 2018 UTC (5 years, 3 months ago) by christos
Branch: phil-wifi
Changes since 1.6: +0 -283 lines
FILE REMOVED

file acpi_machdep.c was added on branch phil-wifi on 2019-06-10 22:05:50 +0000

Revision 1.6 / (download) - annotate - [select for diffs], Fri Nov 16 23:03:55 2018 UTC (5 years, 3 months ago) by jmcneill
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, netbsd-9-base, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi, netbsd-9
Changes since 1.5: +15 -8 lines
Diff to previous 1.5 (colored)

Add MD functions for establishing and disestablishing interrupt handlers.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Nov 12 12:56:05 2018 UTC (5 years, 3 months ago) by jmcneill
Branch: MAIN
Changes since 1.4: +8 -2 lines
Diff to previous 1.4 (colored)

Support building kernels with ACPI and no PCI.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Oct 21 13:34:33 2018 UTC (5 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.3: +18 -5 lines
Diff to previous 1.3 (colored)

Don't make assumptions about the order of MADT subtables. Ensure that we
attach CPUs before the interrupt controller driver.

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Sat Oct 20 06:58:24 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.3.2.1: +257 -0 lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored)

Sync with head

Revision 1.3.2.1, Tue Oct 16 16:38:22 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.3: +0 -257 lines
FILE REMOVED

file acpi_machdep.c was added on branch pgoyette-compat on 2018-10-20 06:58:24 +0000

Revision 1.3 / (download) - annotate - [select for diffs], Tue Oct 16 16:38:22 2018 UTC (5 years, 4 months ago) by jmcneill
Branch: MAIN
CVS Tags: pgoyette-compat-1020
Branch point for: pgoyette-compat
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

Fix size calculation in acpi_md_OsUnmapMemory

Revision 1.2 / (download) - annotate - [select for diffs], Mon Oct 15 11:35:03 2018 UTC (5 years, 4 months ago) by jmcneill
Branch: MAIN
Changes since 1.1: +5 -2 lines
Diff to previous 1.1 (colored)

Add ARM ACPI PCI support.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Oct 12 22:12:11 2018 UTC (5 years, 4 months ago) by jmcneill
Branch: MAIN

Add ARM MD ACPI implementation.

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>