| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Add an amd64-only, Intel-only diagnostic driver that reads ME Host
Firmware Status registers from PCI configuration space without mapping the messaging BAR.
Select the HFS register count per device generation, decode sparse
HFS1 state, mode, and error fields, and expose raw and summarized
status via sysctl. Register an ISA-side hfstsfd probe for supported
RCBA/FD2 generations so firmware-hidden HECI functions can be diagnosed.
Reviewed by: kbowling, adrian
Differential Revision: https://reviews.freebsd.org/D58863
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add driver for Intel Power Management Controller (PMC) found on Sunrise Point PCH chipsets.
This device exposes S0ix sleep state residency counters and power management status.
Sysctls provided:
dev.intelpmc.0.slp_s0_residency_us - Time in deepest sleep (us)
dev.intelpmc.0.ltr_ignore - LTR ignore mask
dev.intelpmc.0.pm_cfg - PM configuration register
dev.intelpmc.0.pm_sts - PM status register
dev.intelpmc.0.access_denied - Firmware lock status
Supported devices for now:
- Sunrise Point-LP (0x9D21)
- Sunrise Point-H (0xA121)
Note: Later PCH generations (Cannon Lake, Tiger Lake, ect.) have different PMC register layouts according to the datasheet and would need per-generation tables.
I avoided adding untested hardware in case they have a quirk.
Reviewed by: olce, adrian
Differential Revision: https://reviews.freebsd.org/D54881
|
| |
|
|
|
|
|
|
| |
Add PCI device IDs for Nova Lake-generation LPSS peripheral SPI
controllers.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D59013
|
| |
|
|
|
|
|
|
| |
Add PCI device IDs for Panther Lake-generation LPSS peripheral SPI
controllers.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D59012
|
| |
|
|
|
|
|
|
| |
Add PCI device IDs for Wildcat Lake-generation LPSS peripheral SPI
controllers.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D59011
|
| |
|
|
|
|
|
|
| |
Add PCI device IDs for Lunar Lake-generation LPSS peripheral SPI
controllers.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D59010
|
| |
|
|
|
|
|
|
| |
Add PCI device IDs for Arrow Lake-generation LPSS peripheral SPI
controllers.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D59009
|
| |
|
|
|
|
|
|
| |
Add PCI device IDs for Meteor Lake-generation LPSS peripheral SPI
controllers.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D59008
|
| |
|
|
|
|
|
|
| |
Add PCI device IDs for Raptor Lake-generation LPSS peripheral SPI
controllers.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D59007
|
| |
|
|
|
|
|
|
| |
Add PCI device IDs for Alder Lake-generation LPSS peripheral SPI
controllers.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D59006
|
| |
|
|
|
|
|
|
| |
Add PCI device IDs for Elkhart Lake-generation LPSS peripheral SPI
controllers.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D59005
|
| |
|
|
|
|
|
|
| |
Add PCI device IDs for Tiger Lake-generation LPSS peripheral SPI
controllers.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D59004
|
| |
|
|
|
|
|
|
| |
Add PCI device IDs for Jasper Lake-generation LPSS peripheral SPI
controllers.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D59003
|
| |
|
|
|
|
|
|
| |
Add PCI device IDs for Ice Lake-generation LPSS peripheral SPI
controllers.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D59002
|
| |
|
|
|
|
|
|
| |
Add PCI device IDs for Lakefield-generation LPSS peripheral SPI
controllers.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D59001
|
| |
|
|
|
|
|
|
| |
Add PCI device IDs for Comet Lake-generation LPSS peripheral SPI
controllers.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D59000
|
| |
|
|
|
|
|
|
| |
Add PCI device IDs for Cannon Lake-generation LPSS peripheral SPI
controllers.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D58999
|
| |
|
|
|
|
|
|
| |
Add PCI device IDs for Apollo Lake-generation LPSS peripheral SPI
controllers.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D58998
|
| |
|
|
|
|
|
|
| |
Add PCI device IDs for Broxton-generation LPSS peripheral SPI
controllers.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D58997
|
| |
|
|
|
|
|
|
| |
Sort the existing LPSS peripheral SPI controller PCI ID table by
numeric device ID so new entries have an unambiguous insertion point.
Reviewed by: wulf
Differential Revision: https://reviews.freebsd.org/D58996
|
| |
|
|
|
|
|
|
| |
Add Gemini Lake LPSS SPI controller PCI IDs (0x31c2, 0x31c4, 0x31c6)
to intelspi_pci_devices[].
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D58868
|
| |
|
|
|
|
|
|
|
| |
This id is for SPI flash instead of spi bus
Fixes: 39e297bf54a5 ("ig4iic: Add PantherLake IDs")
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Sponsored by: Framework Computer Inc
|
| |
|
|
|
|
| |
MFC after: 2 weeks
Sponsored by: Framework Computer Inc
Signed-off-by: Daniel Schaefer <dhs@frame.work>
|
| |
|
|
|
|
|
| |
While here, check for errors from bus_generic_detach and move it to
the start of detach if necessary.
Differential Revision: https://reviews.freebsd.org/D47969
|
| |
|
|
|
|
|
| |
This function never fails similar to bus_attach_children.
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D47677
|
| |
|
|
| |
Sponsored by: Netflix
|
| |
|
|
| |
MFC after: 2 weeks
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.
Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/
Sponsored by: Netflix
|
| |
|
|
| |
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Required for Apple and Microsoft -compatible HID-over-SPI drivers.
Most logic was already implemented in commit 3c0867343819
"spibus: extend API: add cs_delay ivar, KEEP_CS and NO_SLEEP flags".
It dissallowed driver sleeps in the interrupt context. This commit
extends this feature to handle ddb/kdb context with following:
- Skip driver locking if SPI functions were called from kdb/ddb.
- Reinitialize controller if kdb/ddb initiated SPI transfer has
interrupted another already running one. Does not work very
reliable yet.
Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D41247
|
| |
|
|
|
|
|
|
| |
MacBookPro 14.1 SPI controller requires that to start functioning.
MFC after: 1 week
Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D41245
|
| |
|
|
|
|
|
|
| |
There is no reason to store it multiple times.
MFC after: 1 week
Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D41244
|
| |
|
|
|
|
|
|
| |
That allows intelspi grandchildren to allocate IRQs
MFC after: 1 week
Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D41242
|
| |
|
|
|
|
| |
MFC after: 1 week
Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D41241
|
| |
|
|
|
|
| |
Fixes: 1f40866feb21 ("intelspi: add PCI attachment (Lynx/Wildcat/Sunrise Point)")
MFC after: 1 week
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Also adds fixups and cleanups:
- apply the child's mode/speed
- implement suspend/resume support
- use RF_SHAREABLE interrupts
- use bus_delayed_attach_children since the transfer can use interrupts
- add support for newly added spibus features (cs_delay and flags)
Operation tested on Broadwell (Wildcat Point) MacBookPro12,1.
Attachment also tested on Kaby Lake (Sunrise Point) Pixelbook.
Reviewed by: wulf
MFC after: 1 month
Differential revision: https://reviews.freebsd.org/D29249
|
| | |
|
| |
|
|
|
| |
Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after: 2 weeks
|
| |
|
|
|
|
|
|
| |
Probably just copy-paste errors that slipped in.
PR: 253915
Reported by: Michal Vanco <michal.vanco@gmail.com>
MFC after: 1 week
|
| |
|
|
|
|
|
|
| |
PR: 249047
Reported by: Dries Michiels <driesm.michiels at gmail.com>
Notes:
svn path=/head/; revision=365050
|
| |
|
|
|
|
|
| |
Differential Revision: https://reviews.freebsd.org/D24077
Notes:
svn path=/head/; revision=359479
|
| |
|
|
|
|
|
|
|
|
| |
when _CID match.
Reviewed by: jhb, imp
Differential Revision:https://reviews.freebsd.org/D16468
Notes:
svn path=/head/; revision=339754
|
| |
|
|
|
|
|
|
|
|
| |
Submitted by: Yuri Pankov
MFC after: 1 week
Approved by: re (gjb)
Differential revision: https://reviews.freebsd.org/D17076
Notes:
svn path=/head/; revision=338534
|
| |
|
|
|
|
|
|
|
| |
Submitted by: Yuri Pankov <yuripv@yuripv.net>
Approved by: re (kib)
MFC after: 1 week
Notes:
svn path=/head/; revision=338528
|
|
|
Add SPI mode (PIO-only) support for Intel Synchronous Serial Port that
can be found in several Intel's products starting from PXA family.
Most of implementations have slight differences in behavior and in
addresses for registers subset. This driver covers only BayTrail SoC
implementation for it's the only hardware I have to test it on.
Driver attaches to ACPI bus only and does not have PCI or FDT support
for now due to lack of hardware to test it on.
"intelspi" is the best name I've managed to come up with. Linux driver
name (spi-pxa2xx) does not make sense because current implementation
does not support actual PXA2xx SoCs. And as far as I know there is no
codename assigned to Intel SSP chip.
Reviewed by: br, manu
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D8896
Notes:
svn path=/head/; revision=310645
|