The NetBSD Project

CVS log for src/sys/arch/x86/pci/pci_msi_machdep.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.19 / (download) - annotate - [select for diffs], Tue Nov 21 23:22:23 2023 UTC (4 months, 3 weeks ago) by gutteridge
Branch: MAIN
CVS Tags: HEAD
Changes since 1.18: +17 -17 lines
Diff to previous 1.18 (colored)

pci_machdep.c & pci_msi_machdep.c: comment fixes

Correct spelling and grammar in some comments.

Revision 1.18 / (download) - annotate - [select for diffs], Sat May 13 11:27:10 2023 UTC (11 months ago) by andvar
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Changes since 1.17: +6 -6 lines
Diff to previous 1.17 (colored)

s/requied/required/ in comments (likely grammar should be also improved in the
future).

Revision 1.17 / (download) - annotate - [select for diffs], Mon May 23 15:03:05 2022 UTC (22 months, 3 weeks ago) by bouyer
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.16: +26 -18 lines
Diff to previous 1.16 (colored)

Work in progress on MSI/MSI-X on Xen (MSI works on my hardware, more work
needed for MSI-X):
- Xen silently rejects 32 bits writes to MSI configuration registers
  (especially when setting PCI_MSI_CTL_MSI_ENABLE/PCI_MSIX_CTL_ENABLE),
  it expects 16 bits writes. So introduce a pci_conf_write16(),
  only available on XENPV (and working only for mode 1 without
  PCI_OVERRIDE_CONF_WRITE) and use it to enable MSI or MSI-X on XENPV.
- for multi-MSI vectors, Xen allocates all of them in a single hypercall,
  so it's not convenient to do it at intr_establish() time.
  So do it at alloc() time and register the pirqs in the msipic structure.
  xen_pic_to_gsi() now just returns the values cached in the msipic.
  As a bonus, if the PHYSDEVOP_map_pirq hypercall fails we can fail
  the alloc() and we don't need the xen_pci_msi*_probe() hacks.

options NO_PCI_MSI_MSIX still on by default for XEN3_DOM0.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Dec 5 04:56:39 2021 UTC (2 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

s/futher/further/ in comment.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:41 2021 UTC (3 years ago) by thorpej
Branch: thorpej-futex
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Sync with HEAD.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Mar 14 08:10:23 2021 UTC (3 years, 1 month ago) by skrll
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

Remoave an extra space from a comment

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jul 19 14:27:07 2020 UTC (3 years, 8 months ago) by jdolecek
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.13: +18 -2 lines
Diff to previous 1.13 (colored)

for Xen MSI, fallback to INTx when PHYSDEVOP_map_pirq fails for the device

apparently Xen requires VT-d to be enabled in BIOS for PHYSDEVOP_map_pirq
to work, this change makes it work on systems with VT-d disabled or missing

adresses the panic part of PR port-xen/55285 by Patrick Welche

Revision 1.13.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:50 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.13.2.1: +659 -0 lines
Diff to previous 1.13.2.1 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored)

update from HEAD

Revision 1.5.2.5 / (download) - annotate - [select for diffs], Mon Aug 28 17:51:56 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.5.2.4: +17 -8 lines
Diff to previous 1.5.2.4 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Sync with HEAD

Revision 1.13.2.1, Fri Jul 28 14:26:50 2017 UTC (6 years, 8 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.13: +0 -659 lines
FILE REMOVED

file pci_msi_machdep.c was added on branch tls-maxphys on 2017-12-03 11:36:50 +0000

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jul 28 14:26:50 2017 UTC (6 years, 8 months ago) by maxv
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, 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, pgoyette-compat-0315, pgoyette-compat, nick-nhusb-base-20170825, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, 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
Branch point for: tls-maxphys
Changes since 1.12: +2 -3 lines
Diff to previous 1.12 (colored)

Don't include malloc.h.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jun 1 02:45:08 2017 UTC (6 years, 10 months ago) by chs
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.11: +2 -7 lines
Diff to previous 1.11 (colored)

remove checks for failure after memory allocation calls that cannot fail:

  kmem_alloc() with KM_SLEEP
  kmem_zalloc() with KM_SLEEP
  percpu_alloc()
  pserialize_create()
  psref_class_create()

all of these paths include an assertion that the allocation has not failed,
so callers should not assert that again.

Revision 1.9.2.2 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:09 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.9.2.1: +17 -2 lines
Diff to previous 1.9.2.1 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

Sync with HEAD

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:39 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.10: +17 -2 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Sync with HEAD

Revision 1.11 / (download) - annotate - [select for diffs], Fri Apr 14 09:34:46 2017 UTC (7 years ago) by knakahara
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, bouyer-socketcan-base1
Changes since 1.10: +17 -2 lines
Diff to previous 1.10 (colored)

disable msi/msix when the system doesn't detect ioapic. This would fix PR kern/52111.

Some system does not detect ioapic when "boot -1", disable acpi, and so on.
In such cases, msi/msix doesn't work, so disable them.

This patch is implemented by nonaka@n.o, I just commit by proxy, thanks.

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:28 2017 UTC (7 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.9: +12 -2 lines
Diff to previous 1.9 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

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

Sync with HEAD

Revision 1.10 / (download) - annotate - [select for diffs], Mon Nov 28 05:00:41 2016 UTC (7 years, 4 months ago) by knakahara
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320, pgoyette-localcount-20170107, nick-nhusb-base-20170204, nick-nhusb-base-20161204, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.9: +12 -2 lines
Diff to previous 1.9 (colored)

fix build of amd64/i386 with NO_PCI_MSI_MSIX option.

Revision 1.5.2.3 / (download) - annotate - [select for diffs], Tue Sep 22 12:05:54 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.5.2.2: +18 -67 lines
Diff to previous 1.5.2.2 (colored) to branchpoint 1.5 (colored)

Sync with HEAD

Revision 1.9 / (download) - annotate - [select for diffs], Mon Aug 17 06:16:03 2015 UTC (8 years, 8 months ago) by knakahara
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.8: +10 -9 lines
Diff to previous 1.8 (colored)

Add kernel code to support intrctl(8).

Revision 1.8 / (download) - annotate - [select for diffs], Thu Aug 13 04:39:33 2015 UTC (8 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.7: +7 -58 lines
Diff to previous 1.7 (colored)

- Don't take pci_attach_args as an argument in pci_msi[x]_count().
- Move prototypes of pci_msi[x]_count() from x86/x86/pci_machdep_common to
  sys/dev/pci/pcivar.h.
- Move pci_msi[x]_count() from x86/pci/pci_msi_machdep.c to sys/dev/pci/pci.c

Revision 1.7 / (download) - annotate - [select for diffs], Tue Aug 11 04:04:36 2015 UTC (8 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.6: +4 -2 lines
Diff to previous 1.6 (colored)

 Add missing opt_intrdebug.h.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jun 22 03:57:01 2015 UTC (8 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.5: +3 -4 lines
Diff to previous 1.5 (colored)

Don't check PCI_FLAGS_"MSI"_OKAY in pci_"msix"_alloc_common().
OK'd by knakahara.

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:04 2015 UTC (8 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.5.2.1: +689 -0 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored)

Sync with HEAD

Revision 1.5.2.1, Fri May 15 08:36:41 2015 UTC (8 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.5: +0 -689 lines
FILE REMOVED

file pci_msi_machdep.c was added on branch nick-nhusb on 2015-06-06 14:40:04 +0000

Revision 1.5 / (download) - annotate - [select for diffs], Fri May 15 08:36:41 2015 UTC (8 years, 11 months ago) by knakahara
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Branch point for: nick-nhusb
Changes since 1.4: +28 -28 lines
Diff to previous 1.4 (colored)

pci_msi_string() must be used by MD code only.

Revision 1.4 / (download) - annotate - [select for diffs], Fri May 15 08:29:33 2015 UTC (8 years, 11 months ago) by knakahara
Branch: MAIN
Changes since 1.3: +140 -136 lines
Diff to previous 1.3 (colored)

refactor: change function names and move them.

Revision 1.3 / (download) - annotate - [select for diffs], Fri May 15 08:26:44 2015 UTC (8 years, 11 months ago) by knakahara
Branch: MAIN
Changes since 1.2: +15 -18 lines
Diff to previous 1.2 (colored)

unify INTx, MSI and MSI-X APIs without alloc. (alloc API is under discussion)

Revision 1.2 / (download) - annotate - [select for diffs], Fri May 8 04:27:48 2015 UTC (8 years, 11 months ago) by knakahara
Branch: MAIN
Changes since 1.1: +18 -16 lines
Diff to previous 1.1 (colored)

add a const qualifier to struct pci_attach_args *pa argument

Revision 1.1 / (download) - annotate - [select for diffs], Mon Apr 27 07:03:58 2015 UTC (8 years, 11 months ago) by knakahara
Branch: MAIN

add x86 MD MSI/MSI-X support code.

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>