Home | History | Annotate | Download | only in pci
History log of /src/sys/dev/pci/hdaudio_pci.c
RevisionDateAuthorComments
 1.13  13-Sep-2022  msaitoh Add Intel 600 series PCH-LP devices support.
 1.12  21-Mar-2022  jmcneill hdaudio: pci: PCIe config space fixes and Intel PCH snoop support

The HD audio specification does not cover PCI config space, and this
driver was unconditionally writing to a vendor specific register. Reduce
scope of config space accesses based on PCI IDs.

With this cleaned up, add support for Intel PCH devices which require
some additional vendor specific configuration to bypass no snoop mode.
 1.11  28-Oct-2021  msaitoh Support devices that the PCI subclass is not PCI_SUBCLASS_MULTIMEDIA_HDAUDIO.

- Not tested well.
- If audioX is not attached, add HDAUDIO_ENABLE_DISPLAYPORT and
HDAUDIO_ENABLE_HDMI to your kernel config.
 1.10  12-Sep-2018  mrg use pa_dmat64 if pci_dma64_available().
 1.9  12-Sep-2018  mrg use pci_mapreg_type() instead of assuming PCI_MAPREG_TYPE_MEM.
suggested by riastradh@.

fixes hdaudio on thinkpad P51 where the registers are mapped
over 4GB range. probably fixes intel X10-based systems that
map hdaudio high as well, but i was able to work around that
in the BIOS. not so for the P51.

XXX: pullup-7, pullup-8.
 1.8  04-Jun-2017  pgoyette branches: 1.8.4; 1.8.6; 1.8.8;
Move the hdaudio_cd out of the hdaudio_pci module and into the main
hdaudio module. Rearrange the inter-module dependencies accordingly.

Should resolve (my) PR kern/49836

XXX Pull-ups needed for netbsd-8 branch
 1.7  27-Apr-2017  msaitoh branches: 1.7.2;
Use {isa,pci}_intr_establish"_xname"() for intrctl(8).
 1.6  31-Jan-2017  khorben branches: 1.6.4;
Always allow hdaudio(4) to suspend

Sometimes hdaudio(4) can fail to attach, but the device remains in the
tree. Even though the PMF registration is performed, it is explicitly
de-registered in the code path for errors - therefore preventing suspending
later. This patch makes sure PMF registration is performed accordingly upon
errors as well.

No objection on tech-kern@.

Tested on a Lenovo ThinkPad T440s (amd64).

XXX pull-up to netbsd-7
 1.5  16-Dec-2016  nonaka branches: 1.5.2;
hdaudio(4): Use pci_intr_alloc(9)/pci_intr_release(9).
 1.4  14-Jul-2016  msaitoh branches: 1.4.2;
KNF. No functional change.
 1.3  07-Jul-2016  msaitoh KNF. Remove extra spaces. No functional change.
 1.2  05-Jul-2015  nonaka Deregister pmf hook when attach failed.
 1.1  28-Mar-2015  jmcneill branches: 1.1.2;
Split hdaudio and PCI attach glue. Even though the driver was written with
this separation in mind, all of the code lived in sys/dev/pci/hdaudio. Move
common parts to sys/dev/hdaudio and PCI attach glue to sys/dev/pci.
 1.1.2.7  28-Aug-2017  skrll Sync with HEAD
 1.1.2.6  05-Feb-2017  skrll Sync with HEAD
 1.1.2.5  05-Oct-2016  skrll Sync with HEAD
 1.1.2.4  09-Jul-2016  skrll Sync with HEAD
 1.1.2.3  22-Sep-2015  skrll Sync with HEAD
 1.1.2.2  06-Apr-2015  skrll Sync with HEAD
 1.1.2.1  28-Mar-2015  skrll file hdaudio_pci.c was added on branch nick-nhusb on 2015-04-06 15:18:10 +0000
 1.4.2.2  20-Mar-2017  pgoyette Sync with HEAD
 1.4.2.1  07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.5.2.1  21-Apr-2017  bouyer Sync with HEAD
 1.6.4.1  02-May-2017  pgoyette Sync with HEAD - tag prg-localcount2-base1
 1.7.2.2  23-Sep-2018  martin Pull up following revision(s) (requested by mrg in ticket #1022):

sys/dev/pci/hdaudio_pci.c: revision 1.9
sys/dev/pci/hdaudio_pci.c: revision 1.10

use pci_mapreg_type() instead of assuming PCI_MAPREG_TYPE_MEM.
suggested by riastradh@.

fixes hdaudio on thinkpad P51 where the registers are mapped
over 4GB range. probably fixes intel X10-based systems that
map hdaudio high as well, but i was able to work around that
in the BIOS. not so for the P51.

XXX: pullup-7, pullup-8.

use pa_dmat64 if pci_dma64_available().
 1.7.2.1  05-Jun-2017  snj Pull up following revision(s) (requested by pgoyette in ticket #6):
sys/dev/hdaudio/hdaudio.c: revision 1.5
sys/dev/pci/hdaudio_pci.c: revision 1.8
Move the hdaudio_cd out of the hdaudio_pci module and into the main
hdaudio module. Rearrange the inter-module dependencies accordingly.
Should resolve (my) PR kern/49836
 1.8.8.1  10-Jun-2019  christos Sync with HEAD
 1.8.6.1  30-Sep-2018  pgoyette Ssync with HEAD
 1.8.4.2  03-Dec-2017  jdolecek update from HEAD
 1.8.4.1  04-Jun-2017  jdolecek file hdaudio_pci.c was added on branch tls-maxphys on 2017-12-03 11:37:07 +0000

RSS XML Feed