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


Default branch: MAIN


Revision 1.13 / (download) - annotate - [select for diffs], Sat Nov 19 09:05:42 2022 UTC (15 months ago) by yamt
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored)

sunxi_can.c: fix build with MBUFTRACE

Revision 1.12 / (download) - annotate - [select for diffs], Tue Sep 27 06:14:13 2022 UTC (16 months, 3 weeks ago) by skrll
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.11: +3 -4 lines
Diff to previous 1.11 (colored)

malloc -> kmem

Revision 1.1.8.2 / (download) - annotate - [select for diffs], Sat Sep 24 08:10:26 2022 UTC (16 months, 4 weeks ago) by martin
Branch: netbsd-9
Changes since 1.1.8.1: +21 -7 lines
Diff to previous 1.1.8.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

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) - annotate - [select for diffs], Wed Sep 21 20:21:16 2022 UTC (17 months ago) by bouyer
Branch: MAIN
Changes since 1.10: +19 -7 lines
Diff to previous 1.10 (colored)

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) - annotate - [select for diffs], Mon Sep 19 11:21:36 2022 UTC (17 months ago) by bouyer
Branch: MAIN
Changes since 1.9: +4 -3 lines
Diff to previous 1.9 (colored)

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

Revision 1.9 / (download) - annotate - [select for diffs], Sun Sep 18 15:28:01 2022 UTC (17 months ago) by thorpej
Branch: MAIN
Changes since 1.8: +5 -8 lines
Diff to previous 1.8 (colored)

Eliminate use of IFF_OACTIVE.

Revision 1.3.6.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:18 2021 UTC (2 years, 10 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.3: +8 -8 lines
Diff to previous 1.3 (colored) next main 1.4 (colored)

Sync with HEAD.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jan 27 03:10:20 2021 UTC (3 years ago) by thorpej
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.7: +3 -3 lines
Diff to previous 1.7 (colored)

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) - annotate - [select for diffs], Wed Jan 27 02:09:39 2021 UTC (3 years ago) by thorpej
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Use DEVICE_COMPAT_EOL.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jan 25 14:20:39 2021 UTC (3 years ago) by thorpej
Branch: MAIN
Changes since 1.5: +3 -4 lines
Diff to previous 1.5 (colored)

Since we're using designated initialisers for compat data, we should
use a completely empty initializer for the sentinel.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jan 18 02:35:49 2021 UTC (3 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.4: +6 -5 lines
Diff to previous 1.4 (colored)

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) - annotate - [select for diffs], Fri Jan 15 22:47:32 2021 UTC (3 years, 1 month ago) by jmcneill
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

use fdtbus_intr_establish_xname

Revision 1.1.4.1 / (download) - annotate - [select for diffs], Mon Apr 13 08:03:38 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.1: +10 -12 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:18:20 2020 UTC (3 years, 11 months ago) by ad
Branch: ad-namecache
Changes since 1.2: +10 -11 lines
Diff to previous 1.2 (colored) next main 1.3 (colored)

Sync with head.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jan 29 06:05:31 2020 UTC (4 years ago) by thorpej
Branch: 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
Changes since 1.2: +10 -11 lines
Diff to previous 1.2 (colored)

Adopt <net/if_stats.h>.

Revision 1.1.8.1 / (download) - annotate - [select for diffs], Wed Oct 23 19:43:25 2019 UTC (4 years, 4 months ago) by martin
Branch: 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
Changes since 1.1: +2 -3 lines
Diff to previous 1.1 (colored)

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) - annotate - [select for diffs], Mon Oct 21 08:00:58 2019 UTC (4 years, 4 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20191119, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.1: +2 -3 lines
Diff to previous 1.1 (colored)

 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) - annotate - [select for diffs], Thu Mar 15 09:12:02 2018 UTC (5 years, 11 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.1.2.1: +644 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Synch with HEAD

Revision 1.1.2.1, Wed Mar 7 20:55:31 2018 UTC (5 years, 11 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.1: +0 -644 lines
FILE REMOVED

file sunxi_can.c was added on branch pgoyette-compat on 2018-03-15 09:12:02 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Wed Mar 7 20:55:31 2018 UTC (5 years, 11 months ago) by bouyer
Branch: 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.

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>