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


Keyword substitution: kv
Default branch: MAIN


Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Nov 21 23:22:23 2023 UTC (17 months ago) by gutteridge
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +17 -17 lines
pci_machdep.c & pci_msi_machdep.c: comment fixes

Correct spelling and grammar in some comments.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat May 13 11:27:10 2023 UTC (23 months, 2 weeks ago) by andvar
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +6 -6 lines
s/requied/required/ in comments (likely grammar should be also improved in the
future).

Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon May 23 15:03:05 2022 UTC (2 years, 11 months ago) by bouyer
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-1-RELEASE, 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
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +26 -18 lines
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 - view: text, markup, annotated - select for diffs
Sun Dec 5 04:56:39 2021 UTC (3 years, 4 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -3 lines
s/futher/further/ in comment.

Revision 1.14.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:28:41 2021 UTC (4 years ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14: +3 -3 lines
Sync with HEAD.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Mar 14 08:10:23 2021 UTC (4 years, 1 month ago) by skrll
Branches: 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
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3 lines
Remoave an extra space from a comment

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Jul 19 14:27:07 2020 UTC (4 years, 9 months ago) by jdolecek
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +18 -2 lines
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 - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:50 2017 UTC (7 years, 4 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.13.2.1: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.2.1: +659 -0 lines
update from HEAD

Revision 1.5.2.5: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:51:56 2017 UTC (7 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.5.2.4: preferred, colored; branchpoint 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5.2.4: +17 -8 lines
Sync with HEAD

Revision 1.13.2.1
Fri Jul 28 14:26:50 2017 UTC (7 years, 8 months ago) by jdolecek
Branches: tls-maxphys
FILE REMOVED
Changes since revision 1.13: +0 -659 lines
file pci_msi_machdep.c was added on branch tls-maxphys on 2017-12-03 11:36:50 +0000

Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Jul 28 14:26:50 2017 UTC (7 years, 8 months ago) by maxv
Branches: 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-4-RELEASE, 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
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -3 lines
Don't include malloc.h.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Jun 1 02:45:08 2017 UTC (7 years, 10 months ago) by chs
Branches: MAIN
CVS tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-3-RELEASE, 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
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -7 lines
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 - view: text, markup, annotated - select for diffs
Wed Apr 26 02:53:09 2017 UTC (8 years ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.9.2.1: preferred, colored; branchpoint 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9.2.1: +17 -2 lines
Sync with HEAD

Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:53:39 2017 UTC (8 years ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +17 -2 lines
Sync with HEAD

Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Apr 14 09:34:46 2017 UTC (8 years ago) by knakahara
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, bouyer-socketcan-base1
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +17 -2 lines
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 - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:28 2017 UTC (8 years, 3 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +12 -2 lines
Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.5.2.4: download - view: text, markup, annotated - select for diffs
Mon Dec 5 10:54:59 2016 UTC (8 years, 4 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.5.2.3: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.3: +12 -2 lines
Sync with HEAD

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Nov 28 05:00:41 2016 UTC (8 years, 4 months ago) by knakahara
Branches: 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
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +12 -2 lines
fix build of amd64/i386 with NO_PCI_MSI_MSIX option.

Revision 1.5.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:05:54 2015 UTC (9 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.5.2.2: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.2: +18 -67 lines
Sync with HEAD

Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Aug 17 06:16:03 2015 UTC (9 years, 8 months ago) by knakahara
Branches: 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
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +10 -9 lines
Add kernel code to support intrctl(8).

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Aug 13 04:39:33 2015 UTC (9 years, 8 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +7 -58 lines
- 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 - view: text, markup, annotated - select for diffs
Tue Aug 11 04:04:36 2015 UTC (9 years, 8 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -2 lines
 Add missing opt_intrdebug.h.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Jun 22 03:57:01 2015 UTC (9 years, 10 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -4 lines
Don't check PCI_FLAGS_"MSI"_OKAY in pci_"msix"_alloc_common().
OK'd by knakahara.

Revision 1.5.2.2: download - view: text, markup, annotated - select for diffs
Sat Jun 6 14:40:04 2015 UTC (9 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.5.2.1: preferred, colored; branchpoint 1.5: preferred, colored
Changes since revision 1.5.2.1: +689 -0 lines
Sync with HEAD

Revision 1.5.2.1
Fri May 15 08:36:41 2015 UTC (9 years, 11 months ago) by skrll
Branches: nick-nhusb
FILE REMOVED
Changes since revision 1.5: +0 -689 lines
file pci_msi_machdep.c was added on branch nick-nhusb on 2015-06-06 14:40:04 +0000

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri May 15 08:36:41 2015 UTC (9 years, 11 months ago) by knakahara
Branches: MAIN
CVS tags: nick-nhusb-base-20150606
Branch point for: nick-nhusb
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +28 -28 lines
pci_msi_string() must be used by MD code only.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri May 15 08:29:33 2015 UTC (9 years, 11 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +140 -136 lines
refactor: change function names and move them.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri May 15 08:26:44 2015 UTC (9 years, 11 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +15 -18 lines
unify INTx, MSI and MSI-X APIs without alloc. (alloc API is under discussion)

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri May 8 04:27:48 2015 UTC (9 years, 11 months ago) by knakahara
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +18 -16 lines
add a const qualifier to struct pci_attach_args *pa argument

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Apr 27 07:03:58 2015 UTC (10 years ago) by knakahara
Branches: MAIN
add x86 MD MSI/MSI-X support code.

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>