Displaying 1 50 of 639,407 commits (0.134s)

NetBSD — sys/dev/i2c axppmic.c

Use the device_compatible_entry mechanism rather than of_compat_data;
all of the OF / FDT data we need is already in the i2c_attach_args.
Delta File
+16 -23 sys/dev/i2c/axppmic.c
+16 -23 1 file

NetBSD — sys/arch/arm/rockchip rk_cru_composite.c

rk_cru_composite_set_rate: allow selection of parent clocks in different
domains

NetBSD — sys/dev/ic dwc_gmac.c

Write MAC address high register before low register. Apparently the
hardware updates the filter when the low register is written.
Delta File
+5 -5 sys/dev/ic/dwc_gmac.c
+5 -5 1 file

NetBSD — share/man/man9 module.9

The whole point of my recent addition of the specificdata(9) man page
was so it could be cross-referenced here.  So, add the xref.
Delta File
+3 -2 share/man/man9/module.9
+3 -2 1 file

NetBSD — sys/dev/ic dwc_gmac.c

Clear IFF_RUNNING | IFF_OACTIVE when stopping interface.
Delta File
+4 -2 sys/dev/ic/dwc_gmac.c
+4 -2 1 file

NetBSD — sys/arch/x86/x86 fpu.c

Add more KASSERTs, see if they help PR/53383.
Delta File
+6 -2 sys/arch/x86/x86/fpu.c
+6 -2 1 file

NetBSD — usr.bin/patch util.c inp.c

Keep things portable (requested by joerg) by not depending on reallocarr
and instead doing the overflow check ourselves.

NetBSD — sys/arch/macppc/dev deq.c smusat.c, sys/arch/sparc64/dev pcf8591_envctrl.c

- Rename iic_compat_match() to iic_compatible_match() and change it
  to use the new device_compatible_match() routine.  A pointer to
  the matching device_compatible_entry is returned if a match is
  found.
- Adjust iic_use_direct_match() accordingly.
- i2c drivers now provide device_compatible_entry tables when performing
  direct-config matching.
- In the dsrtc driver, take advantage of this new capability to greatly
  simplify model selection.

(I'm coming for you next, of_compat_data...)
Delta File
+103 -114 sys/dev/i2c/ds1307.c
+28 -30 sys/dev/i2c/i2c.c
+9 -4 sys/dev/i2c/adadc.c
+9 -3 sys/dev/i2c/dbcool.c
+9 -3 sys/dev/i2c/max77620.c
+8 -3 sys/dev/i2c/axp20x.c
+155 -58 20 files not shown
+321 -215 26 files

NetBSD — sys/kern subr_autoconf.c

Fix a silly mistake in device_compatible_entry_matches() that I made
while re-factoring this from a prior version.

(I booted the wrong kernel when testing, oops.)
Delta File
+3 -3 sys/kern/subr_autoconf.c
+3 -3 1 file

NetBSD — doc CHANGES-8.0

Tickets #882, #883, #884, #885 and #886
Delta File
+30 -1 doc/CHANGES-8.0
+30 -1 1 file

NetBSD — share/mk bsd.sys.mk

Pull up following revision(s) (requested by christos in ticket #886):

        share/mk/bsd.sys.mk: revision 1.282

The compat build plays games with MAKEOBJDIR and unsets MAKEOBJDIRPREFIX.
Keep using our standard NETBSDOBJDIR if it was set.
Delta File
+4 -1 share/mk/bsd.sys.mk
+4 -1 1 file

NetBSD — sys/dev/ic dwc_gmac.c

Pull up following revision(s) (requested by jmcneill in ticket #885):

        sys/dev/ic/dwc_gmac.c: revision 1.47

Avoid calling bus_dmamap_sync with len=0
Delta File
+9 -7 sys/dev/ic/dwc_gmac.c
+9 -7 1 file

NetBSD — sys/arch/powerpc/powerpc trap.c

Pull up following revision(s) (requested by uwe in ticket #884):

        sys/arch/powerpc/powerpc/trap.c: revision 1.154

In mtmsr emulation ignore PSL_VEC we set in mfmsr emulation just
above, as it freaks out PSL_USEROK_P().  This is also congruent with
how we handle PSL_FP.

PR port-macppc/53360
Delta File
+5 -2 sys/arch/powerpc/powerpc/trap.c
+5 -2 1 file

NetBSD — sys/kern subr_autoconf.c, sys/sys device.h

Add device_compatible_match(), a generalized routine for weighted
matching of device_compatible_entry data to a device's "compatible"
strings.
Delta File
+65 -2 sys/kern/subr_autoconf.c
+6 -1 sys/sys/device.h
+71 -3 2 files

NetBSD — sys/arch/arm/arm psci.c, sys/arch/arm/fdt psci_fdt.c

Pull up following revision(s) (requested by jakllsch in ticket #883):

        sys/arch/arm/fdt/psci_fdt.c: revision 1.5
        sys/arch/arm/arm/psci.c: revision 1.2

Use correct value for PSCI 0.2+ PSCI_CPU_ON.

Fix PSCI 0.1 detection.

NetBSD — usr.sbin/ofctl ofctl.8

Pull up following revision(s) (requested by sevan in ticket #882):

        usr.sbin/ofctl/ofctl.8: revision 1.6
        usr.sbin/ofctl/ofctl.8: revision 1.7

Merge single-letter options. Use more markup.

Document -l, -r, and -w, based on input by jmcneill@

Bump date.
Delta File
+23 -6 usr.sbin/ofctl/ofctl.8
+23 -6 1 file

NetBSD — bin/ed main.c

Prevent shell execution also in the 'r ! dobad' case, pointed out by
Martijn van Duren, thanks!

XXX: pullup-8
Delta File
+5 -8 bin/ed/main.c
+5 -8 1 file

NetBSD — sys/arch/evbarm/include bootconfig.h

Pull in opt_bootconfig.h for DRAM_BLOCKS

NetBSD — sys/dev/i2c gttwsi_core.c

Bail early if gttwsi_send_start() fails in gttwsi_initiate_xfer() to
avoid unexpected state error message later (on Allwinner H5).
Delta File
+5 -3 sys/dev/i2c/gttwsi_core.c
+5 -3 1 file

NetBSD — sys/net if_pppoe.c

Fix to aquire pppoe_softc_list_lock before read and write the list

ok by knakahara at n.o
Delta File
+39 -12 sys/net/if_pppoe.c
+39 -12 1 file

NetBSD — sys/net if_pppoe.c

Fix not to use PPPOE_UNLOCK before acccess to pppoe_softc
to avoid a race condition

According to the locking order of pppoe(4), the access to
pppoe_softc has to follow 5 steps as below.

1. aquire pppoe_softc_list_lock
2. aquire pppoe_softc lock
3. release pppoe_softc_list_lock
4. access to pppoe_softc
5. release pppoe_softc lock

However, pppoe_dispatch_disc_pkt() releases the lock of pppoe_softc
temporarily, and then re-aquires it before step 4 of the adove. So,
it is possible for other contexts to destroy a pppoe_softc in the
interim.
To fix this condition, avoid PPPOE_UNLOCK with the problem.

ok by knakahara at n.o
Delta File
+64 -54 sys/net/if_pppoe.c
+64 -54 1 file

NetBSD — sys/dev/mii e1000phyreg.h makphy.c

- All of Marvell PHY's registers from addr 0x0 to 0xf conforms IEEE 802.3
 specification, so those register definitions are not required. Use mii.h's
 definitions. Note that E1000_ER_PAR_DETECT_FAULT should be 0x0010 instead of
 0x0100(typo).
- Restore code for BMCR_ISO which was removed in makphy.c rev. 1.44
- Whitespace fix.
Delta File
+3 -138 sys/dev/mii/e1000phyreg.h
+26 -20 sys/dev/mii/makphy.c
+29 -158 2 files

NetBSD — sys/dev/mii mii.h

- Rename ENP (Extended Next Page) to XNP.
- Add ANLPAR_XNP bit.
- Add definitions for RF1 and RF2 (for 1000BASE-X) .
- Rename MII_ANNP (Autonegotiation next page transmit) register to MII_ANNPT.
- Add bit definitions for MII_ANNPT and MII_ANLPRNP.
- Remove GTSR_LP_ASM_DIR bit. This is not described in the 802.3 spec now and
  no any NetBSD drivers use the definition.
Delta File
+45 -4 sys/dev/mii/mii.h
+45 -4 1 file

NetBSD — doc TODO.kaslr

todo list for kaslr, with the issues I can think of right now
Delta File
+41 -0 doc/TODO.kaslr
+41 -0 1 file

NetBSD — share/man/man7 sysctl.7

sysctl.7: fix speeling mistake
Delta File
+2 -2 share/man/man7/sysctl.7
+2 -2 1 file

NetBSD — share/man/man3 queue.3

queue.3: deduplicate deduplicate a a word word
Delta File
+2 -2 share/man/man3/queue.3
+2 -2 1 file

NetBSD — share/mk bsd.sys.mk

The compat build plays games with MAKEOBJDIR and unsets MAKEOBJDIRPREFIX.
Keep using our standard NETBSDOBJDIR if it was set.
Delta File
+4 -1 share/mk/bsd.sys.mk
+4 -1 1 file

NetBSD — sys/arch/arm/cortex gtmr.c

Simplify gtmr_delay and don't mix and match usage of the physical and
virtual timers (always use the virtual timer).
Delta File
+10 -18 sys/arch/arm/cortex/gtmr.c
+10 -18 1 file

NetBSD — doc 3RDPARTY

Current sljit version is r381.
Delta File
+2 -2 doc/3RDPARTY
+2 -2 1 file

NetBSD — bin/sh eval.c

NFC: correct typo in a comment.
Delta File
+3 -3 bin/sh/eval.c
+3 -3 1 file

NetBSD — sys/arch/i386/include frameasm.h

i586 and below don't have this 3-byte nop, so use three 1-byte nops,
reported by Nathanial Sloss
Delta File
+3 -3 sys/arch/i386/include/frameasm.h
+3 -3 1 file

NetBSD — sys/sys device.h

Add slightly-more generalized version of the "of_compat_data" structure
called "device_compatible_entry".  It performs a similar function, but
instead of one "compatible" string per entry, it takes an array of
"comaptible" strings per entry.  Also included are macros for initializing
an array of these entries and accessing data embedded in them.
Delta File
+24 -1 sys/sys/device.h
+24 -1 1 file

NetBSD — sys/dev/i2c max77620.c

Fix compilation error pointed out by nishimura@.
Delta File
+3 -3 sys/dev/i2c/max77620.c
+3 -3 1 file

NetBSD — sys/arch/arm/rockchip rk_cru_composite.c rk_cru_gate.c

Make gate enable/disable logic easier to read. NFC.

NetBSD — sys/dev/ic dwc_gmac.c

Avoid calling bus_dmamap_sync with len=0
Delta File
+9 -7 sys/dev/ic/dwc_gmac.c
+9 -7 1 file

NetBSD — sys/arch/arm/rockchip rk_cru.c

Fix soft reset logic
Delta File
+8 -8 sys/arch/arm/rockchip/rk_cru.c
+8 -8 1 file

NetBSD — sys/arch/x86/x86 identcpu.c

Enable eager fpu automatically at boot time if the cpu is affected. Intel
hasn't published a list of its affected products, but it appears that Xen
was given this information since they have a specific detection code.

We could just unconditionally enable eager; but on x86_32 eager may have
a greater performance cost than lazy, and we don't want to lose
performance on unaffected (and ~old) CPUs running NetBSD/i386.

So use the same code as Xen: take Family 6, and whitelist certain models.
Delta File
+50 -2 sys/arch/x86/x86/identcpu.c
+50 -2 1 file

NetBSD — sys/arch/x86/x86 fpu.c

No, I meant to put the panic in fpudna not fputrap. Also appease it: panic
only if the fpu already has a state. We're fine with getting a DNA, what
we're not fine with is if the DNA is received while the FPU is busy.

I believe (even though I couldn't trigger it) that the panic would
otherwise fire if PT_SETFPREGS is used. And also ACPI sleep/wakeup,
probably.
Delta File
+12 -6 sys/arch/x86/x86/fpu.c
+12 -6 1 file

NetBSD — sys/dev/i2c am2315.c

Oops, another one.
Delta File
+2 -3 sys/dev/i2c/am2315.c
+2 -3 1 file

NetBSD — sys/dev/i2c am2315.c

Remove now-unused variable.
Delta File
+2 -3 sys/dev/i2c/am2315.c
+2 -3 1 file

NetBSD — sys/arch/arm/rockchip rk_gmac.c

Enable gpio reset logic
Delta File
+9 -16 sys/arch/arm/rockchip/rk_gmac.c
+9 -16 1 file

NetBSD — sys/dev/fdt dwc2_fdt.c

Match generic snps,dwc2 compat string
Delta File
+6 -2 sys/dev/fdt/dwc2_fdt.c
+6 -2 1 file

NetBSD — sys/arch/arm/rockchip rk3328_cru.c

Replace register numbers with defines, fixing a bunch of typos in the process.
Delta File
+98 -83 sys/arch/arm/rockchip/rk3328_cru.c
+98 -83 1 file

NetBSD — sys/arch/arm/rockchip rk_iomux.c

Remove unused defines
Delta File
+2 -7 sys/arch/arm/rockchip/rk_iomux.c
+2 -7 1 file

NetBSD — sys/dev/i2c ds1307.c

More cleanup to i2c autoconfiguration:

- Get all of the drivers onto the new match quality constants.
- Introduce a new helper function, iic_use_direct_match(), that has
  all of the logic for direct-config matching.  If it returns true,
  the driver returns the match result (which may be 0).  If it returns
  false, the driver does indirect-config matching.
- iic_compat_match() now returns a weighted match quality; matches to
  lower-indexed "compatible" device property are more-specific matches,
  and return a better match quality accordingly.

In addition to the above:
- Add support for direct-config matching this driver based on
  "compatible" properties.
- Address-only matching is now done based on the specific addresses
  the requested model supports.
- "compatible" property can specify to the driver which model is to
  be used, so that using config "flags" directives aren't required
  in the direct-config case.

XXX More changes coming that require re-factoring some other code.
Delta File
+101 -14 sys/dev/i2c/ds1307.c
+101 -14 1 file

NetBSD — sys/dev/i2c hytp14.c

More cleanup to i2c autoconfiguration:

- Get all of the drivers onto the new match quality constants.
- Introduce a new helper function, iic_use_direct_match(), that has
  all of the logic for direct-config matching.  If it returns true,
  the driver returns the match result (which may be 0).  If it returns
  false, the driver does indirect-config matching.
- iic_compat_match() now returns a weighted match quality; matches to
  lower-indexed "compatible" device property are more-specific matches,
  and return a better match quality accordingly.

XXX This driver is an odd-ball with respect to the hardware device.
See comments in the match routine.  Unclear how best to handle it.
Delta File
+18 -12 sys/dev/i2c/hytp14.c
+18 -12 1 file

NetBSD — sys/arch/evbmips/loongson/dev stvii.c, sys/arch/hpcarm/dev nbppcon.c

More cleanup to i2c autoconfiguration:

- Get all of the drivers onto the new match quality constants.
- Introduce a new helper function, iic_use_direct_match(), that has
  all of the logic for direct-config matching.  If it returns true,
  the driver returns the match result (which may be 0).  If it returns
  false, the driver does indirect-config matching.
- iic_compat_match() now returns a weighted match quality; matches to
  lower-indexed "compatible" device property are more-specific matches,
  and return a better match quality accordingly.
Delta File
+69 -19 sys/dev/i2c/i2c.c
+26 -37 sys/dev/i2c/lm87.c
+26 -29 sys/dev/i2c/tsl256x.c
+17 -29 sys/dev/i2c/lm75.c
+10 -33 sys/dev/i2c/am2315.c
+15 -25 sys/dev/i2c/adm1021.c
+411 -369 54 files not shown
+574 -541 60 files

NetBSD — external/bsd/nvi/dist/common log.c

Correct previous change to CHAR_T_OFFSET

The intended operation is offsetof(), not alignof().

Noted by <christos>

NetBSD — share/mk bsd.own.mk

check MK{FOO} defaults for $MACHINE as well as $MACHINE_ARCH.
should restore firmware files for some platforms that were
missing them.
Delta File
+2 -2 share/mk/bsd.own.mk
+2 -2 1 file

NetBSD — lib/csu Makefile

Disable MKSANITIZER in lib/csu

These low-level libraries are expected to be not touched by a sanitizer.
Every libc program not using sanitizers cannot work with sanitized csu.
Delta File
+3 -1 lib/csu/Makefile
+3 -1 1 file