The NetBSD Project

CVS log for src/sys/arch/arm/sunxi/sunxi_can.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / arch / arm / sunxi

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Nov 19 09:05:42 2022 UTC (2 years ago) by yamt
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-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, HEAD
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -2 lines
sunxi_can.c: fix build with MBUFTRACE

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Sep 27 06:14:13 2022 UTC (2 years, 2 months ago) by skrll
Branches: MAIN
CVS tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -4 lines
malloc -> kmem

Revision 1.1.8.2: download - view: text, markup, annotated - select for diffs
Sat Sep 24 08:10:26 2022 UTC (2 years, 2 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE
Diff to: previous 1.1.8.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.8.1: +21 -7 lines
Pull up following revision(s) (requested by bouyer in ticket #1533):

	sys/arch/arm/sunxi/sunxi_can.c: revision 1.10,1.11 (via patch)

Don't process RX if SUNXI_CAN_INT_DATA_OR is pending. Seems to fix occasional
RX stalls

Just skipping sunxi_can_rx_intr() if the DATA_OR flag is set isn't enough
to properly recover from overrrun in all case. So go the linux way and reset
the hardware.

Don't write SUNXI_CAN_INT_RX_FLAG to SUNXI_CAN_INT_REG, this could race
with hardware and clear the interrupt while there are new packets received.
SUNXI_CAN_INT_RX_FLAG clears automatically when all pending packets have been
read, so when no more packets are pending just read SUNXI_CAN_INT_REG again
and process other interrupts, if any (or RX if there are new packets pending).

With this change it seems I get overruns less often in my use case.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Sep 21 20:21:16 2022 UTC (2 years, 2 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +19 -7 lines
Just skipping sunxi_can_rx_intr() if the DATA_OR flag is set isn't enough
to properly recover from overrrun in all case. So go the linux way and reset
the hardware.

Don't write SUNXI_CAN_INT_RX_FLAG to SUNXI_CAN_INT_REG, this could race
with hardware and clear the interrupt while there are new packets received.
SUNXI_CAN_INT_RX_FLAG clears automatically when all pending packets have been
read, so when no more packets are pending just read SUNXI_CAN_INT_REG again
and process other interrupts, if any (or RX if there are new packets pending).
With this change it seems I get overruns less often in my use case.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Mon Sep 19 11:21:36 2022 UTC (2 years, 2 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -3 lines
Don't process RX if SUNXI_CAN_INT_DATA_OR is pending. Seems to fix occasional
RX stalls

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Sep 18 15:28:01 2022 UTC (2 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +5 -8 lines
Eliminate use of IFF_OACTIVE.

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

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Jan 27 03:10:20 2021 UTC (3 years, 10 months ago) by thorpej
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.7: preferred, colored
Changes since revision 1.7: +3 -3 lines
Rename of_match_compat_data() to of_compatible_match().  Similarly,
rename of_search_compatible() to of_compatible_lookup().

Standardize on of_compatible_match() for driver matching, and adapt
all call sites.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Jan 27 02:09:39 2021 UTC (3 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +3 -3 lines
Use DEVICE_COMPAT_EOL.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Jan 25 14:20:39 2021 UTC (3 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -4 lines
Since we're using designated initialisers for compat data, we should
use a completely empty initializer for the sentinel.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Jan 18 02:35:49 2021 UTC (3 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +6 -5 lines
Remove "struct of_compat_data" and replace its usage with
"struct device_compatible_entry"; they are ABI-compatible.

Fix several "loses const qualifier" bugs encountered during
this conversion.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Jan 15 22:47:32 2021 UTC (3 years, 10 months ago) by jmcneill
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -4 lines
use fdtbus_intr_establish_xname

Revision 1.1.4.1: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:03:38 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +10 -12 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.2.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:18:20 2020 UTC (4 years, 9 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +10 -11 lines
Sync with head.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Jan 29 06:05:31 2020 UTC (4 years, 10 months ago) by thorpej
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3
Branch point for: thorpej-futex
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +10 -11 lines
Adopt <net/if_stats.h>.

Revision 1.1.8.1: download - view: text, markup, annotated - select for diffs
Wed Oct 23 19:43:25 2019 UTC (5 years, 1 month ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -3 lines
Pull up following revision(s) (requested by msaitoh in ticket #371):

	sys/dev/ic/i82586.c: revision 1.86
	sys/arch/arm/ep93xx/epe.c: revision 1.45
	sys/dev/pcmcia/if_cnw.c: revision 1.66
	sys/arch/mac68k/nubus/if_netdock_nubus.c: revision 1.31
	sys/arch/arm/sunxi/sunxi_can.c: revision 1.2
	sys/dev/qbus/if_il.c: revision 1.36
	sys/dev/pcmcia/if_ray.c: revision 1.95
	sys/dev/qbus/if_qt.c: revision 1.24

 if_ipackets is incremented in can_input(), so don't increment it in
sunxi_can_rx_intr to prevent double count. OK'd by bouyer@.

 if_percpuq(9) automatically increments if_ipackets, so don't increment it in
the driver itself to prevent double count.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Oct 21 08:00:58 2019 UTC (5 years, 1 month ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20191119, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -3 lines
 if_ipackets is incremented in can_input(), so don't increment it in
sunxi_can_rx_intr to prevent double count. OK'd by bouyer@.

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Thu Mar 15 09:12:02 2018 UTC (6 years, 8 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
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: +644 -0 lines
Synch with HEAD

Revision 1.1.2.1
Wed Mar 7 20:55:31 2018 UTC (6 years, 9 months ago) by pgoyette
Branches: pgoyette-compat
FILE REMOVED
Changes since revision 1.1: +0 -644 lines
file sunxi_can.c was added on branch pgoyette-compat on 2018-03-15 09:12:02 +0000

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Mar 7 20:55:31 2018 UTC (6 years, 9 months ago) by bouyer
Branches: MAIN
CVS tags: phil-wifi-base, phil-wifi-20190609, 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, netbsd-9-base, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi, pgoyette-compat, netbsd-9
fdt-ise the allwinner can and lradc drivers.

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>