The NetBSD Project

CVS log for src/sys/arch/powerpc/booke/pci/pq3pci.c

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Jul 22 19:55:38 2022 UTC (2 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, 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, HEAD
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +5 -5 lines
Stop using deprecated proplib functions.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sat May 7 05:08:16 2022 UTC (2 years, 10 months ago) by rin
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +15 -12 lines
Downgrade pq3pci_intrsources_lock and pq3pci_msigroups_lock from
spin to adaptive mutexes.

These locks are typically used during autoconf(9), not from
interrupt context.

Found by LOCKDEBUG.

XXX
I'm not sure whether these locks are really necessary...
Similar codes, e.g. in powerpc/pic/intr.c, do not use any locks.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Tue Jan 11 22:45:56 2022 UTC (3 years, 2 months ago) by andvar
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +4 -4 lines
fix few typos in comments.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat Aug 7 16:19:02 2021 UTC (3 years, 7 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -3 lines
Merge thorpej-cfargs2.

Revision 1.28.8.1: download - view: text, markup, annotated - select for diffs
Wed Aug 4 02:49:40 2021 UTC (3 years, 7 months ago) by thorpej
Branches: thorpej-cfargs2
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +3 -3 lines
Adapt to CFARGS().

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sat Apr 24 23:36:46 2021 UTC (3 years, 10 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-cfargs2
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -3 lines
Merge thorpej-cfargs branch:

Simplify and make extensible the config_search() / config_found() /
config_attach() interfaces: rather than having different variants for
which arguments you want pass along, just have a single call that
takes a variadic list of tag-value arguments.

Adjust all call sites:
- Simplify wherever possible; don't pass along arguments that aren't
  actually needed.
- Don't be explicit about what interface attribute is attaching if
  the device only has one.  (More simplification.)
- Add a config_probe() function to be used in indirect configuiration
  situations, making is visibly easier to see when indirect config is
  in play, and allowing for future change in semantics.  (As of now,
  this is just a wrapper around config_match(), but that is an
  implementation detail.)

Remove unnecessary or redundant interface attributes where they're not
needed.

There are currently 5 "cfargs" defined:
- CFARG_SUBMATCH (submatch function for direct config)
- CFARG_SEARCH (search function for indirect config)
- CFARG_IATTR (interface attribte)
- CFARG_LOCATORS (locators array)
- CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)

...and a sentinel value CFARG_EOL.

Add some extra sanity checking to ensure that interface attributes
aren't ambiguous.

Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark
ports to associate those device handles with device_t instance.  This
will trickle trough to more places over time (need back-end for pre-OFW
Sun OBP; any others?).

Revision 1.27.2.1: download - view: text, markup, annotated - select for diffs
Tue Mar 23 07:14:50 2021 UTC (4 years ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.27: preferred, colored; next MAIN 1.28: preferred, colored
Changes since revision 1.27: +3 -3 lines
Convert config_found_ia() call sites where the device only carries
a single interface attribute to bare config_found() calls.

Revision 1.25.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 14 14:37:59 2020 UTC (4 years, 3 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25: +3 -3 lines
Sync w/ HEAD.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Thu Nov 12 00:44:22 2020 UTC (4 years, 4 months ago) by rin
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-cfargs-base
Branch point for: thorpej-cfargs
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -3 lines
pq3pci_msi_claim(): remove KASSERT that is valid when allocating MSI
vectors, while apparently invalid when freeing them.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu Nov 12 00:37:51 2020 UTC (4 years, 4 months ago) by rin
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -2 lines
Oops, forget to commit local change necessary to support nvme(4) on RB800;
provide pci_intr_setattr(9) (no-op).

Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Jul 7 03:38:48 2020 UTC (4 years, 8 months ago) by thorpej
Branches: MAIN
Branch point for: thorpej-futex
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +10 -9 lines
Overhaul the interface to pci_configure_bus():
- Don't expose how PCI bus configuration resource management is implemented.
  Provide a new resource provider API:

  ==> pciconf_resource_init() -- Initialize a PCI configuration resources
      container.
  ==> pciconf_resource_add() -- Add a PCI configuration resource to the
      container (I/O, MEM, or prefetchable MEM).  Multiple resources of
      each type may be added.
  ==> pciconf_resource_fini() -- Tear down the PCI configurtation resources
      container once the bus has been configured.

  This is much easier to use than the previous method of providing an
  extent map for each kind of resource, and works better for e.g. ACPI
  platforms that provide potentially multiple PCI resources in tables
  provided by firmware.

- Re-implement PCI configuration resource management using vmem arenas,
  rather than extent maps.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Jul 6 09:34:16 2020 UTC (4 years, 8 months ago) by rin
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +8 -6 lines
Style and cosmetic changes. No binary changes intended.

Revision 1.15.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:36:36 2017 UTC (7 years, 3 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.15.2.1: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.2.1: +390 -174 lines
update from HEAD

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

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Jun 1 02:45:07 2017 UTC (7 years, 9 months ago) by chs
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, perseant-stdc-iso10646-base, perseant-stdc-iso10646, 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, 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, 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
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +2 -8 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.17.4.3: download - view: text, markup, annotated - select for diffs
Mon Dec 5 10:54:56 2016 UTC (8 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.17.4.2: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.4.2: +370 -172 lines
Sync with HEAD

Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Fri Nov 4 14:49:03 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +369 -171 lines
Sync with HEAD

Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Oct 19 00:08:41 2016 UTC (8 years, 5 months ago) by nonaka
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20170204, nick-nhusb-base-20161204, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +369 -171 lines
Added MSI/MSI-X and interrupt_distribute(9) support for powerpc.

Revision 1.17.4.2: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:09:40 2015 UTC (9 years, 2 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.17.4.1: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.4.1: +10 -6 lines
Sync with HEAD (as of 26th Dec)

Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri Oct 2 05:22:51 2015 UTC (9 years, 5 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-localcount-base, 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, localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +10 -6 lines
PCI Extended Configuration stuff written by nonaka@:
- Add PCI Extended Configuration Space support into x86.
- Check register offset of pci_conf_read() in MD part. It returns (pcireg_t)-1
  if it isn't accessible.
- Decode Extended Capability in PCI Extended Configuration Space.
  Currently the following extended capabilities are decoded:
   - Advanced Error Reporting
   - Virtual Channel
   - Device Serial Number
   - Power Budgeting
   - Root Complex Link Declaration
   - Root Complex Event Collector Association
   - Access Control Services
   - Alternative Routing-ID Interpretation
   - Address Translation Services
   - Single Root IO Virtualization
   - Page Request
   - TPH Requester
   - Latency Tolerance Reporting
   - Secondary PCI Express
   - Process Address Space ID
   - LN Requester
   - L1 PM Substates
  The following extended capabilities are not decoded yet:
   - Root Complex Internal Link Control
   - Multi-Function Virtual Channel
   - RCRB Header
   - Vendor Unique
   - Configuration Access Correction
   - Multiple Root IO Virtualization
   - Multicast
   - Resizable BAR
   - Dynamic Power Allocation
   - Protocol Multiplexing
   - Downstream Port Containment
   - Precision Time Management
   - M-PCIe
   - Function Reading Status Queueing
   - Readiness Time Reporting
   - Designated Vendor-Specific

Revision 1.17.4.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:00 2015 UTC (9 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +22 -2 lines
Sync with HEAD

Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat Dec 27 16:19:33 2014 UTC (10 years, 2 months ago) by nonaka
Branches: MAIN
CVS tags: nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +22 -2 lines
Preliminary support for P1023.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Dec 20 18:03:17 2014 UTC (10 years, 3 months ago) by nonaka
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +0 -21 lines
Revert previous accidental commit.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Dec 20 17:55:08 2014 UTC (10 years, 3 months ago) by nonaka
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +23 -2 lines
Revert previous commit.

Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:19 2014 UTC (10 years, 7 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +10 -6 lines
Rebase to HEAD as of a few days ago.

Revision 1.16.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:54:05 2014 UTC (10 years, 7 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +4 -2 lines
Rebase.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Jul 30 10:50:54 2014 UTC (10 years, 7 months ago) by joerg
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +4 -2 lines
pq3pci_config_addr_read is only used in a #if 0 block, so hide it under
the same condition.

Revision 1.11.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:03 2014 UTC (10 years, 10 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.11.2.2: preferred, colored; branchpoint 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11.2.2: +8 -6 lines
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")

Revision 1.15.4.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:22 2014 UTC (10 years, 10 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +8 -6 lines
sync with head

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Mar 29 19:28:29 2014 UTC (10 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: tls-earlyentropy
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +8 -6 lines
make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.

Revision 1.11.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:20:10 2012 UTC (12 years, 4 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.11.2.1: preferred, colored; branchpoint 1.11: preferred, colored
Changes since revision 1.11.2.1: +73 -19 lines
sync with head

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Aug 14 13:02:19 2012 UTC (12 years, 7 months ago) by he
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -4 lines
Make this build again by adding a couple of right-parens.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Aug 13 00:52:45 2012 UTC (12 years, 7 months ago) by matt
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +59 -19 lines
Deal with PCIe/PCI hoses with more than one window so the bus_space
encompasses all of it and reserves those portions not assigned so
no one can allocate from them.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Jul 18 19:38:26 2012 UTC (12 years, 8 months ago) by matt
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +16 -2 lines
Add P1025 support to the PCI truth tables.
P1025 only has two PCIe ports, not 3.

Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:06:46 2012 UTC (12 years, 11 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -4 lines
sync with head

Revision 1.11.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:32:52 2012 UTC (13 years, 1 month ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +4 -4 lines
merge to -current.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Jan 27 18:52:59 2012 UTC (13 years, 1 month ago) by para
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -4 lines
converting extent(9) from malloc(9) to kmem(9)
preceding kmem-vmem-pool-uvm patch

releng@ acknowledged

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Fri Oct 14 17:21:26 2011 UTC (13 years, 5 months ago) by matt
Branches: matt-nb5-pq3
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.1: +77 -44 lines
Sync with current pulling P2020 and other newer processor support.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Sep 27 01:02:35 2011 UTC (13 years, 5 months ago) by jym
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +4 -4 lines
Modify *ASSERTMSG() so they are now used as variadic macros. The main goal
is to provide routines that do as KASSERT(9) says: append a message
to the panic format string when the assertion triggers, with optional
arguments.

Fix call sites to reflect the new definition.

Discussed on tech-kern@. See
http://mail-index.netbsd.org/tech-kern/2011/09/07/msg011427.html

Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Aug 17 18:52:00 2011 UTC (13 years, 7 months ago) by matt
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +18 -2 lines
First pass of the new PCI MSI/MSI ABI definitions.  (return EOPNOTSUPP for
now).

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Aug 17 00:59:47 2011 UTC (13 years, 7 months ago) by dyoung
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -4 lines
Redefine PCI_MSI_* and PCI_PCIE_* constants in terms of bits(3).

Use named constants and more conventional variable names in
pci_msi_establish() and pci_msi_disestablish().  Fix a couple of bugs:
pci_msi_establish() returned a pointer to the struct intrhand instead of
to the struct msi_hdl as it was intended to, and pci_msi_disestablish()
did not free(9) the msi_hdl.

Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:19:28 2011 UTC (13 years, 9 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +11 -3 lines
Catchup with rmind-uvmplock merge.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Jun 22 18:06:34 2011 UTC (13 years, 9 months ago) by matt
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +6 -8 lines
Add support pci_intr_setattr.
Export non-inline version of pci api for modules (_MODULE is defined).
Fix definition of pc_conf_hook and pc_conf_interrupt.
Switch to using inlines instead of macros.
Switch ibm4xx to use <powerpc/pci_machdep.h>

Revision 1.3.2.5: download - view: text, markup, annotated - select for diffs
Sun Jun 12 00:24:03 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.3.2.4: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.2.4: +9 -1 lines
sync with head

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Jun 8 05:21:42 2011 UTC (13 years, 9 months ago) by matt
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +11 -3 lines
When delivering MSIs, sometimes after clearing the MSI but before the interrupt
routine get called the MSI reasserts and we loop around and would detect a
spurious interrupt.

So now we keep track of the interrupts we have serviced successfully for this
dispatch loop.  If we have to invoke an interrupt handler and that handler
indicates nothing was serviced, if we previously serviced it it isn't counter
as a spurious interrupt.

Revision 1.1.4.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:06:26 2011 UTC (13 years, 9 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +1480 -0 lines
Sync with HEAD.

Revision 1.3.2.4: download - view: text, markup, annotated - select for diffs
Tue May 31 03:04:13 2011 UTC (13 years, 9 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.3.2.3: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.3: +3 -3 lines
sync with head

Revision 1.6: download - view: text, markup, annotated - select for diffs
Tue May 17 17:34:51 2011 UTC (13 years, 10 months ago) by dyoung
Branches: MAIN
CVS tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +5 -5 lines
PCI_FLAGS_IO_ENABLED and PCI_FLAGS_MEM_ENABLED changed their functional
role in NetBSD (drivers are no longer supposed to write these to
pa_flags) without changing name.  Correct that.

Rename PCI_FLAGS_IO_ENABLED to PCI_FLAGS_IO_OKAY and
PCI_FLAGS_MEM_ENABLED to PCI_FLAGS_MEM_OKAY, thus making their names
consistent with the other PCI flags and poisoning 3rd-party driver
sources that use the flags in the old bad way.

This patch produces no binary changes in this set of PCI kernels when
they are compiled w/o 'options DIAGNOSTIC' and w/ -V MKREPRO=yes:

algor P4032 P5064 P6032
alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE
evbarm-el GUMSTIX HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321
evbarm-el IXDP425 IXM1200 KUROBOX_PRO
evbarm-el LUBBOCK MARVELL_NAS NAPPI NSLU2 SHEEVAPLUG SMDK2800 TEAMASA_NPWR
evbarm-el TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
evbppc OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
iyonix GENERIC
landisk GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sbmips-el GENERIC
sgimips GENERIC32_IP2x GENERIC32_IP3x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC

Revision 1.3.2.3: download - view: text, markup, annotated - select for diffs
Thu Apr 21 01:41:19 2011 UTC (13 years, 11 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.3.2.2: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.2: +5 -4 lines
sync with head

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Apr 4 20:37:52 2011 UTC (13 years, 11 months ago) by dyoung
Branches: MAIN
CVS tags: jym-xensuspend-nbase, jym-xensuspend-base
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +5 -4 lines
Neither pci_dma64_available(), pci_probe_device(), pci_mapreg_map(9),
pci_find_rom(), pci_intr_map(9), pci_enumerate_bus(), nor the match
predicate passed to pciide_compat_intr_establish() should ever modify
their pci_attach_args argument, so make their pci_attach_args arguments
const and deal with the fallout throughout the kernel.

For the most part, these changes add a 'const' where there was no
'const' before, however, some drivers and MD code used to modify
pci_attach_args.  Now those drivers either copy their pci_attach_args
and modify the copy, or refrain from modifying pci_attach_args:

Xen: according to Manuel Bouyer, writing to pci_attach_args in
    pci_intr_map() was a leftover from Xen 2.  Probably a bug.  I
    stopped writing it.  I have not tested this change.

siside(4): sis_hostbr_match() needlessly wrote to pci_attach_args.
    Probably a bug.  I use a temporary variable.  I have not tested this
    change.

slide(4): sl82c105_chip_map() overwrote the caller's pci_attach_args.
    Probably a bug.  Use a local pci_attach_args.  I have not tested
    this change.

viaide(4): via_sata_chip_map() and via_sata_chip_map_new() overwrote the
    caller's pci_attach_args.  Probably a bug.  Make a local copy of the
    caller's pci_attach_args and modify the copy.  I have not tested
    this change.

While I'm here, make pci_mapreg_submap() static.

With these changes in place, I have tested the compilation of these
kernels:

alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-eb NSLU2
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE GUMSTIX
	HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321 IXDP425 IXM1200
	KUROBOX_PRO LUBBOCK MARVELL_NAS NAPPI SHEEVAPLUG SMDK2800 TEAMASA_NPWR
	TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
	OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sgimips GENERIC32_IP2x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC

As of Sun Apr 3 15:26:26 CDT 2011, I could not compile these kernels
with or without my patches in place:

### evbmips-el GDIUM

nbmake: nbmake: don't know how to make /home/dyoung/pristine-nbsd/src/sys/arch/mips/mips/softintr.c. Stop

### evbarm-el MPCSA_GENERIC
src/sys/arch/evbarm/conf/MPCSA_GENERIC:318: ds1672rtc*: unknown device `ds1672rtc'

### ia64 GENERIC

/tmp/genassym.28085/assym.c: In function 'f111':
/tmp/genassym.28085/assym.c:67: error: invalid application of 'sizeof' to incomplete type 'struct pcb'
/tmp/genassym.28085/assym.c:76: error: dereferencing pointer to incomplete type

### sgimips GENERIC32_IP3x

crmfb.o: In function `crmfb_attach':
crmfb.c:(.text+0x2304): undefined reference to `ddc_read_edid'
crmfb.c:(.text+0x2304): relocation truncated to fit: R_MIPS_26 against `ddc_read_edid'
crmfb.c:(.text+0x234c): undefined reference to `edid_parse'
crmfb.c:(.text+0x234c): relocation truncated to fit: R_MIPS_26 against `edid_parse'
crmfb.c:(.text+0x2354): undefined reference to `edid_print'
crmfb.c:(.text+0x2354): relocation truncated to fit: R_MIPS_26 against `edid_print'

Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Mar 16 05:31:04 2011 UTC (14 years ago) by matt
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -4 lines
Fix various nits related to P2020 support.

Revision 1.3.2.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:51:35 2011 UTC (14 years ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.3.2.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.2.1: +1479 -0 lines
sync with head

Revision 1.2.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 8 16:19:34 2011 UTC (14 years, 1 month ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +63 -43 lines
Sync with HEAD

Revision 1.3.2.1
Tue Feb 8 06:19:13 2011 UTC (14 years, 1 month ago) by rmind
Branches: rmind-uvmplock
FILE REMOVED
Changes since revision 1.3: +0 -1479 lines
file pq3pci.c was added on branch rmind-uvmplock on 2011-03-05 20:51:35 +0000

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Feb 8 06:19:13 2011 UTC (14 years, 1 month ago) by matt
Branches: MAIN
CVS tags: uebayasi-xip-base7, bouyer-quota2-nbase, bouyer-quota2-base
Branch point for: rmind-uvmplock
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +63 -43 lines
Add P2020/P2010 truth table definition.
Remove trailing whitespace.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Jan 18 01:02:53 2011 UTC (14 years, 2 months ago) by matt
Branches: MAIN
Branch point for: bouyer-quota2
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1459 -0 lines
Add support for BookE Freescale MPC85xx (e500 core) processors.
Add fast softint support for PowerPC (though only booke uses it).
Redo FPU/VEC support and add e500 SPE support.
Rework trap/intrs to use a common trapframe format.
Support SOFTFLOAT (no hardfloat or fpu emulation) for BookE.

Revision 1.1.2.1: download - view: text, markup, annotated - select for diffs
Fri Jan 7 01:26:20 2011 UTC (14 years, 2 months ago) by matt
Branches: matt-nb5-pq3
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1454 -0 lines
Add mpc85xx support for netbsd-5 (with some incompatible kernel changes).

Revision 1.1
Fri Jan 7 01:26:20 2011 UTC (14 years, 2 months ago) by matt
Branches: MAIN
CVS tags: jruoho-x86intr-base
Branch point for: matt-nb5-pq3, jruoho-x86intr
FILE REMOVED
file pq3pci.c was initially added on branch matt-nb5-pq3.

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>