Home | History | Annotate | Download | only in pci
History log of /src/sys/dev/pci/sdhc_pci.c
RevisionDateAuthorComments
 1.21  05-Jan-2023  msaitoh Add quirk setting for some Intel eMMC devices.

On some Intel eMMC controllers, the driver reports "autoconfiguration error:
couldn't enable card: 60" even though they really have eMMC device.
This change fixes the problem on some machines. It might be required more
quirks for newer devices (or HS400 support). At least, this change fixes the
problem on GIGABYTE MA10-ST0.
 1.20  04-Jan-2023  msaitoh Fix typo. No functional change.
 1.19  14-Oct-2022  jmcneill branches: 1.19.2;
Disable ADMA2 on Ricoh SDHCI controllers.

PR# 57015
 1.18  10-Nov-2021  msaitoh Support 64bit BAR.
 1.17  01-Jan-2020  mlelstv Add support for single power writes, and enable for Ricoh 5u823.
 1.16  10-Nov-2019  chs in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.
 1.15  28-Sep-2019  mlelstv Fix typo, remove debug printf.
 1.14  27-Apr-2017  msaitoh branches: 1.14.2; 1.14.10; 1.14.16;
Use {isa,pci}_intr_establish"_xname"() for intrctl(8).
 1.13  17-Feb-2017  nonaka branches: 1.13.4;
sdhc(4): hardware reset support for Intel eMMC controller
 1.12  09-Aug-2015  mlelstv branches: 1.12.2; 1.12.4;
Replace the LOWER_FREQ quirk with the SLOW_SDR50 quirk for the
Ricoh 5U823 controller. This stabilizes SD cards at standard speed
and high speed and also UHS-I SDR50.
 1.11  29-Mar-2014  christos branches: 1.11.6;
make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.
 1.10  20-Dec-2012  jakllsch branches: 1.10.2;
Add detachment support for sdhc_pci.
Tested on an ExpressCard JMicron JMB38[89] with as-of-yet-uncommitted changes.
 1.9  29-Jul-2012  matt branches: 1.9.2;
Add FORCE_DMA quirk for 5U822 (already in lace for 5C822).
 1.8  12-Jul-2012  jakllsch Ricoh R5C822 has working DMA, but does not advertise support for it, use force.
 1.7  02-Mar-2012  nonaka Added Ricoh 5U822/5U823 SD/MMC Controller support.
 1.6  02-Feb-2012  nonaka Use "opt_sdmmc.h" for SDHC_DEBUG.
 1.5  30-Jan-2012  drochner Use pci_aprint_devinfo(9) instead of pci_devinfo+aprint_{normal,naive}
where it looks straightforward, and pci_aprint_devinfo_fancy in a few
others where drivers want to supply their own device names instead
of the pcidevs generated one. More complicated cases, where names
are composed at runtime, are left alone for now. It certainly makes
sense to simplify the drivers here rather than inventing a catch-all API.
This should serve as as example for new drivers, and also ensure
consistent output in the AB_QUIET ("boot -q") case. Also, it avoids
excessive stack usage where drivers attach child devices because the
buffer for the device name is not kept on the local stack anymore.
 1.4  02-Feb-2011  jakllsch branches: 1.4.4; 1.4.8;
Like some other TI SDHCI parts, PCI_PRODUCT_TI_PCIXX12SD also needs the SD
card moved to the SDHCI controller.
 1.3  02-Oct-2009  uebayasi branches: 1.3.2; 1.3.6; 1.3.8; 1.3.10; 1.3.12;
Pass not (struct sdhc_pci_softc *) but (struct sdhc_softc *) to sdhc_intr().
No functional change because struct sdhc_pci_softc has struct sdhc_softc as
the 1st member.
 1.2  29-Jun-2009  hubertf Use PCI IDs from pcidevs, instead of storing them in here.
Compile tested and OK'd by NONAKA Kimihiro.
 1.1  21-Apr-2009  nonaka branches: 1.1.2; 1.1.4; 1.1.6;
Added SD/MMC support from OpenBSD.
tested on i386, amd64 at current-users ML by pgoyette@.
tested on zaurus by myself.
 1.1.6.3  23-Jul-2009  jym Sync with HEAD.
 1.1.6.2  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.1.6.1  21-Apr-2009  jym file sdhc_pci.c was added on branch jym-xensuspend on 2009-05-13 17:20:29 +0000
 1.1.4.4  11-Mar-2010  yamt sync with head
 1.1.4.3  18-Jul-2009  yamt sync with head.
 1.1.4.2  04-May-2009  yamt sync with head.
 1.1.4.1  21-Apr-2009  yamt file sdhc_pci.c was added on branch yamt-nfs-mp on 2009-05-04 08:13:01 +0000
 1.1.2.2  28-Apr-2009  skrll Sync with HEAD.
 1.1.2.1  21-Apr-2009  skrll file sdhc_pci.c was added on branch nick-hppapmap on 2009-04-28 07:35:59 +0000
 1.3.12.1  08-Feb-2011  bouyer Sync with HEAD
 1.3.10.1  06-Jun-2011  jruoho Sync with HEAD.
 1.3.8.2  21-Apr-2010  matt sync to netbsd-5
 1.3.8.1  02-Oct-2009  matt file sdhc_pci.c was added on branch matt-nb5-mips64 on 2010-04-21 00:27:49 +0000
 1.3.6.1  05-Mar-2011  rmind sync with head
 1.3.2.2  28-Oct-2009  bouyer Pull up the following revisions, requested by sborrill in ticket #1114:
share/man/man4/sdhc.4 1.1-1.2
sys/dev/pci/sdhc_pci.c 1.1-1.3
distrib/sets/lists/man/mi patch
share/man/man4/Makefile patch
sys/arch/amd64/conf/GENERIC patch
sys/arch/i386/conf/ALL patch
sys/arch/i386/conf/GENERIC patch
sys/dev/pci/files.pci patch
sys/dev/pci/pcidevs patch
sys/dev/pci/pcidevs.h regen
sys/dev/pci/pcidevs_data.h regen

Add sdhc(4), a driver for SD controllers following the SD Host
Controller Standard Simplified Specification.
 1.3.2.1  02-Oct-2009  bouyer file sdhc_pci.c was added on branch netbsd-5 on 2009-10-28 09:03:42 +0000
 1.4.8.4  06-Mar-2012  mrg sync to -current
 1.4.8.3  06-Mar-2012  mrg sync to -current
 1.4.8.2  04-Mar-2012  mrg sync to latest -current.
 1.4.8.1  18-Feb-2012  mrg merge to -current.
 1.4.4.4  22-May-2014  yamt 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")
 1.4.4.3  23-Jan-2013  yamt sync with head
 1.4.4.2  30-Oct-2012  yamt sync with head
 1.4.4.1  17-Apr-2012  yamt sync with head
 1.9.2.3  03-Dec-2017  jdolecek update from HEAD
 1.9.2.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.9.2.1  25-Feb-2013  tls resync with head
 1.10.2.1  18-May-2014  rmind sync with head
 1.11.6.2  28-Aug-2017  skrll Sync with HEAD
 1.11.6.1  22-Sep-2015  skrll Sync with HEAD
 1.12.4.1  21-Apr-2017  bouyer Sync with HEAD
 1.12.2.1  20-Mar-2017  pgoyette Sync with HEAD
 1.13.4.1  02-May-2017  pgoyette Sync with HEAD - tag prg-localcount2-base1
 1.14.16.3  22-Aug-2023  martin Pull up following revision(s) (requested by msaitoh in ticket #1721):

sys/dev/pci/sdhc_pci.c: revision 1.21

Add quirk setting for some Intel eMMC devices.

On some Intel eMMC controllers, the driver reports "autoconfiguration error:
couldn't enable card: 60" even though they really have eMMC device.

This change fixes the problem on some machines. It might be required more
quirks for newer devices (or HS400 support). At least, this change fixes the
problem on GIGABYTE MA10-ST0.
 1.14.16.2  18-Jan-2023  martin Pull up following revision(s) (requested by msaitoh in ticket #1566):

sys/dev/pci/sdhc_pci.c: revision 1.20
sys/dev/pci/pcidevs: revision 1.1469
sys/dev/pci/pcidevs: revision 1.1470
sys/dev/pci/pcidevs: revision 1.1471
sys/dev/pci/pcidevs: revision 1.1472
sys/dev/pci/pcidevs: revision 1.1473
sys/dev/pci/pcidevs: revision 1.1474
sys/dev/pci/pcidevs: revision 1.1475
sys/dev/pci/pcidevs: revision 1.1476

Add some AMD 17h/9xh devices from OpenBSD.
Add AMD F17/Axh devices.
Add some Xeon Scalable devices from OpenBSD.
Update Intel Elkhart Lake devices.
Add Elkhart Lake Shared SRAM.
Fix typo. s/SSC/SCC/.
Fix typo. No functional change.
add Aquantia (Marvell) AQC113 ethernet devices and the variants
Add AMD Family 19h/1xh devices.
 1.14.16.1  03-Dec-2021  martin Pull up the followin revisions (all via patch), requested by msaitoh
in ticket #1383:

sys/dev/sdmmc/sdhc.c 1.110, 1.112
sys/dev/sdmmc/sdmmc_mem.c 1.74
sys/dev/pci/sdhc_pci.c 1.18

- Support 64bit BAR.
- Use unsigned to avoid undefined behavior in hwrite[12]() and
sdmmc_mem_sd_switch().
- Fix typo in comment.
 1.14.10.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.14.10.1  08-Apr-2020  martin Merge changes from current as of 20200406
 1.14.2.3  22-Aug-2023  martin Pull up following revision(s) (requested by msaitoh in ticket #1889):

sys/dev/pci/sdhc_pci.c: revision 1.21

Add quirk setting for some Intel eMMC devices.

On some Intel eMMC controllers, the driver reports "autoconfiguration error:
couldn't enable card: 60" even though they really have eMMC device.

This change fixes the problem on some machines. It might be required more
quirks for newer devices (or HS400 support). At least, this change fixes the
problem on GIGABYTE MA10-ST0.
 1.14.2.2  18-Jan-2023  martin Pull up following revision(s) (requested by msaitoh in ticket #1783):

sys/dev/pci/sdhc_pci.c: revision 1.20
sys/dev/pci/pcidevs: revision 1.1469
sys/dev/pci/pcidevs: revision 1.1470
sys/dev/pci/pcidevs: revision 1.1471
sys/dev/pci/pcidevs: revision 1.1472
sys/dev/pci/pcidevs: revision 1.1473
sys/dev/pci/pcidevs: revision 1.1474
sys/dev/pci/pcidevs: revision 1.1475
sys/dev/pci/pcidevs: revision 1.1476

Add some AMD 17h/9xh devices from OpenBSD.
Add AMD F17/Axh devices.
Add some Xeon Scalable devices from OpenBSD.
Update Intel Elkhart Lake devices.
Add Elkhart Lake Shared SRAM.
Fix typo. s/SSC/SCC/.
Fix typo. No functional change.
add Aquantia (Marvell) AQC113 ethernet devices and the variants
Add AMD Family 19h/1xh devices.
 1.14.2.1  03-Dec-2021  martin Pull up the following revisions (all via patch), requested by msaitoh
in ticket #1713:

sys/dev/sdmmc/sdhc.c 1.110, 1.112
sys/dev/sdmmc/sdmmc_mem.c 1.74
sys/dev/pci/sdhc_pci.c 1.18

- Support 64bit BAR.
- Use unsigned to avoid undefined behavior in hwrite[12]() and
sdmmc_mem_sd_switch().
- Fix typo in comment.
 1.19.2.2  22-Aug-2023  martin Pull up following revision(s) (requested by msaitoh in ticket #336):

sys/dev/pci/sdhc_pci.c: revision 1.21

Add quirk setting for some Intel eMMC devices.

On some Intel eMMC controllers, the driver reports "autoconfiguration error:
couldn't enable card: 60" even though they really have eMMC device.

This change fixes the problem on some machines. It might be required more
quirks for newer devices (or HS400 support). At least, this change fixes the
problem on GIGABYTE MA10-ST0.
 1.19.2.1  18-Jan-2023  martin Pull up following revision(s) (requested by msaitoh in ticket #50):

sys/dev/pci/sdhc_pci.c: revision 1.20
sys/dev/pci/pcidevs: revision 1.1472
sys/dev/pci/pcidevs: revision 1.1473
sys/dev/pci/pcidevs: revision 1.1474
sys/dev/pci/pcidevs: revision 1.1475
sys/dev/pci/pcidevs: revision 1.1476

Update Intel Elkhart Lake devices.
Add Elkhart Lake Shared SRAM.
Fix typo. s/SSC/SCC/.
Fix typo. No functional change.
add Aquantia (Marvell) AQC113 ethernet devices and the variants
Add AMD Family 19h/1xh devices.

RSS XML Feed