Page MenuHomeFreeBSD

christos (Christos Margiolis)
User

Projects

User Details

User Since
Jul 2 2021, 4:03 PM (204 w, 1 d)

Recent Activity

Yesterday

christos committed rGab9c9443eec5: sound: Deprecate the MIDI sequencer (authored by christos).
sound: Deprecate the MIDI sequencer
Sat, May 31, 7:30 PM

Fri, May 30

christos updated the diff for D50617: sound: Remove dead printfs from midi/mpu401.c.

Remove all dead printfs from this file.

Fri, May 30, 6:58 PM
christos retitled D50617: sound: Remove dead printfs from midi/mpu401.c from sound: Remove unused D() macro from midi/mpu401.c to sound: Remove dead printfs from midi/mpu401.c.
Fri, May 30, 6:58 PM
christos requested review of D50617: sound: Remove dead printfs from midi/mpu401.c.
Fri, May 30, 6:56 PM
christos requested review of D50616: sound: Remove unused midi_cmdname().
Fri, May 30, 6:41 PM
christos requested review of D50615: sound: Remove unnecessary comments from midi/midi.c.
Fri, May 30, 6:36 PM
christos requested review of D50613: sound: Remove duplicate mpu_if.h include.
Fri, May 30, 6:36 PM
christos committed rG799105f53a96: sound: Deprecate the MIDI sequencer (authored by christos).
sound: Deprecate the MIDI sequencer
Fri, May 30, 5:26 PM
christos closed D50606: sound: Deprecate the MIDI sequencer.
Fri, May 30, 5:26 PM
christos retitled D50612: sound: Remove unused mpu_if methods from sound: Remove unused mpu401_if methods to sound: Remove unused mpu_if methods.
Fri, May 30, 5:15 PM
christos requested review of D50612: sound: Remove unused mpu_if methods.
Fri, May 30, 5:14 PM
christos retitled D50611: sound: Retire unused MIDI sysctls from sound: Remove unused MIDI sysctls to sound: Retire unused MIDI sysctls.
Fri, May 30, 5:01 PM
christos requested review of D50611: sound: Retire unused MIDI sysctls.
Fri, May 30, 5:01 PM
christos requested review of D50610: sound: Retire /dev/midistat.
Fri, May 30, 4:46 PM
christos requested review of D50609: sound: Retire midisynth.
Fri, May 30, 4:22 PM
christos updated the diff for D50605: sound: Retire the MIDI sequencer.

Remove some more stuff from midi.c

Fri, May 30, 3:51 PM
christos requested review of D50606: sound: Deprecate the MIDI sequencer.
Fri, May 30, 3:43 PM
christos requested review of D50605: sound: Retire the MIDI sequencer.
Fri, May 30, 3:30 PM

Thu, May 29

christos committed rG99b8be414cbc: sound: Terminate stream properly when closing vchans (authored by christos).
sound: Terminate stream properly when closing vchans
Thu, May 29, 10:52 PM
christos committed rGb760fa5bf0e9: snd_dummy: Make callout stopping more robust (authored by christos).
snd_dummy: Make callout stopping more robust
Thu, May 29, 10:11 PM
christos committed rG0c6aa445ec0c: sound: Terminate stream properly when closing vchans (authored by christos).
sound: Terminate stream properly when closing vchans
Thu, May 29, 10:11 PM
christos committed rG0432b2183f25: snd_dummy: Make callout stopping more robust (authored by christos).
snd_dummy: Make callout stopping more robust
Thu, May 29, 10:26 AM
christos committed rGa946852ff296: sound: Merge pcm_sysinit() with pcm_register() (authored by christos).
sound: Merge pcm_sysinit() with pcm_register()
Thu, May 29, 10:25 AM
christos committed rGf6430bc61df7: sound: Terminate stream properly when closing vchans (authored by christos).
sound: Terminate stream properly when closing vchans
Thu, May 29, 10:25 AM
christos closed D50386: snd_dummy: Make callout stopping more robust.
Thu, May 29, 10:25 AM
christos closed D50488: sound: Terminate stream properly when closing vchans.
Thu, May 29, 10:25 AM
christos closed D50409: sound: Merge pcm_sysinit() with pcm_register().
Thu, May 29, 10:25 AM

Wed, May 28

christos abandoned D50493: virtual_oss: Clean up cuse on exit.

Committed: https://github.com/freebsd/virtual_oss/commit/a0860ca4972c473578c8025d8d0cf400aafaa724

Wed, May 28, 3:51 PM
christos abandoned D50494: virtual_oss: Clean up pthread on exit.

Committed: https://github.com/freebsd/virtual_oss/commit/fcf3d0e7d1e3b351975f444606ba30d1e5106fbf

Wed, May 28, 3:51 PM
christos closed D50492: virtual_oss: Exit main loop cleanly on termination.

Committed: https://github.com/freebsd/virtual_oss/commit/7b833e492e6ab1f112c0f5a88a3c767abc391485

Wed, May 28, 3:50 PM
christos retitled D50492: virtual_oss: Exit main loop cleanly on termination from virtual_oss: Exit main looop cleanly on termination to virtual_oss: Exit main loop cleanly on termination.
Wed, May 28, 3:36 PM
christos updated the diff for D50493: virtual_oss: Clean up cuse on exit.

Remove cuse_uninit() call.

Wed, May 28, 3:31 PM
christos updated the diff for D50494: virtual_oss: Clean up pthread on exit.

Remove atomic_destroy().

Wed, May 28, 3:30 PM
christos abandoned D50495: virtual_oss: Clean up audio delay unit on exit.

Let's not complicate things more since to be complete we also need to clean up every error case as well.

Wed, May 28, 3:28 PM
christos updated the diff for D50386: snd_dummy: Make callout stopping more robust.

Address Mark's comments.

Wed, May 28, 3:18 PM

Tue, May 27

christos added inline comments to D50493: virtual_oss: Clean up cuse on exit.
Tue, May 27, 1:06 PM
christos added inline comments to D50493: virtual_oss: Clean up cuse on exit.
Tue, May 27, 1:05 PM
christos added inline comments to D50494: virtual_oss: Clean up pthread on exit.
Tue, May 27, 12:54 PM
christos updated the diff for D50492: virtual_oss: Exit main loop cleanly on termination.

Define voss_exit as sig_atomic_t.

Tue, May 27, 12:53 PM
christos added inline comments to D50493: virtual_oss: Clean up cuse on exit.
Tue, May 27, 12:51 PM
christos added a comment to D50393: snd_hda: Fix a sporadic panic during kldunload.

I haven't tested this for a few days, but I remember that even without the Makefile change, things worked as expected. Is this not the case?

There are 2 different panics:

  1. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286385#c12
  2. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286385#c26

The first is fixed without the Makefile change. It happens when an interrupt occurs after the child hdacc device has been deleted by the bus_generic_detach call in hdac_detach.

The second happens when an interrupt occurs earlier, during hdaa_pcm_detach. The detach thread holds the channel lock and destroys it in chn_kill while the interrupt thread tries to acquire that lock in chn_intr. I can't reproduce this panic but afaict the Makefile change is needed so hdac_detach is called before hdaa_pcm_detach so the draining happens first.

Tue, May 27, 12:49 PM

Sun, May 25

christos updated the diff for D50495: virtual_oss: Clean up audio delay unit on exit.

Full diff.

Sun, May 25, 4:56 PM
christos updated the diff for D50494: virtual_oss: Clean up pthread on exit.

Full diff.

Sun, May 25, 4:56 PM
christos updated the diff for D50493: virtual_oss: Clean up cuse on exit.

Full diff.

Sun, May 25, 4:56 PM
christos updated the diff for D50492: virtual_oss: Exit main loop cleanly on termination.

Full diff.

Sun, May 25, 4:56 PM
christos added a comment to D50492: virtual_oss: Exit main loop cleanly on termination.

It's quite hard to review this without context lines. Did you import virtual_oss into src, or?

Sun, May 25, 4:49 PM
christos updated the diff for D50386: snd_dummy: Make callout stopping more robust.

Unlock after callout_stop() in the loop.

Sun, May 25, 3:58 PM
christos added a comment to D50386: snd_dummy: Make callout stopping more robust.

The bug D50488 solves could be a reason why the callout was being rescheduled.

It could be, but I still think it's worth being more defensive in making sure we clean things up / stop things right.

Again, the change in the patch introduces a new bug: if callout_stop() returns 0, then the callout thread is blocked on the softc lock, which means that it's waiting for the callout_stop() caller to release the lock, which means that the loop while (callout_stop(&sc->callout) == 0) ; never terminates.

Sun, May 25, 3:58 PM

Fri, May 23

christos added a comment to D50393: snd_hda: Fix a sporadic panic during kldunload.

I haven't tested this for a few days, but I remember that even without the Makefile change, things worked as expected. Is this not the case?

Fri, May 23, 6:44 PM
christos added a comment to D38825: libdtrace: Implement inline function tracing for kinst.

I will spend some time testing this again within a week. My recollection from last time is that there were some edge cases where probes didn't fire when I expected. One thing I didn't test yet but am a bit suspicious will not work properly is stack unwinding -- did you test that the stack() action prints reasonable output when used within an inline function probe?

I will test it in the following days.

Fri, May 23, 6:38 PM · DTrace
christos added a reviewer for D50409: sound: Merge pcm_sysinit() with pcm_register(): adrian.
Fri, May 23, 6:35 PM
christos added a comment to D50386: snd_dummy: Make callout stopping more robust.

The bug D50488 solves could be a reason why the callout was being rescheduled.

It could be, but I still think it's worth being more defensive in making sure we clean things up / stop things right.

Fri, May 23, 6:07 PM
christos updated the diff for D50488: sound: Terminate stream properly when closing vchans.

Address Adrian's comment.

Fri, May 23, 5:28 PM
christos updated the diff for D50492: virtual_oss: Exit main loop cleanly on termination.

Rename signal handler to virtual_sig_exit().

Fri, May 23, 5:20 PM
christos requested review of D50495: virtual_oss: Clean up audio delay unit on exit.
Fri, May 23, 5:16 PM
christos requested review of D50494: virtual_oss: Clean up pthread on exit.
Fri, May 23, 5:15 PM
christos requested review of D50493: virtual_oss: Clean up cuse on exit.
Fri, May 23, 5:15 PM
christos requested review of D50492: virtual_oss: Exit main loop cleanly on termination.
Fri, May 23, 5:14 PM
christos added a comment to D50386: snd_dummy: Make callout stopping more robust.

The bug D50488 solves could be a reason why the callout was being rescheduled.

Fri, May 23, 3:55 PM
christos requested review of D50488: sound: Terminate stream properly when closing vchans.
Fri, May 23, 3:24 PM
christos updated the summary of D50488: sound: Terminate stream properly when closing vchans.
Fri, May 23, 3:24 PM

Thu, May 22

christos updated subscribers of D50070: snd_hda: Implement automatic redirection between associations.
Thu, May 22, 11:21 PM
christos updated the diff for D50070: snd_hda: Implement automatic redirection between associations.
  • Run redirection code only if we are already using the current codec, otherwise we'll be switching automatically to the headphones even when using a different device (e.g., USB).
  • Rename "HDA" devd system to "SND" to make it more general.
  • Rename "REDIR" devd subsystem to "CONN", according to mav@'s suggestion.
Thu, May 22, 11:20 PM
christos committed rG623ccbc4e4f2: sndctl(8): Fix dp->realtime (authored by christos).
sndctl(8): Fix dp->realtime
Thu, May 22, 6:25 PM
christos committed rG2af8f2ad4265: sndctl(8): Allow read-only sysctls (authored by christos).
sndctl(8): Allow read-only sysctls
Thu, May 22, 6:25 PM
christos committed rG0325cd325deb: sndctl(8): Remove unnecessary val variable from sysctl functions (authored by christos).
sndctl(8): Remove unnecessary val variable from sysctl functions
Thu, May 22, 6:25 PM

Wed, May 21

christos committed rGadf77cb48e4c: snd_hda: Add shutdown method (authored by tijl).
snd_hda: Add shutdown method
Wed, May 21, 11:23 PM
christos added reviewers for D50393: snd_hda: Fix a sporadic panic during kldunload: jhb, markj, rrs.
Wed, May 21, 8:05 PM
christos committed rG77521692f4c7: snd_hda: Add shutdown method (authored by tijl).
snd_hda: Add shutdown method
Wed, May 21, 7:45 PM
christos committed rG30fd79b0c0a3: sndctl(8): Fix dp->realtime (authored by christos).
sndctl(8): Fix dp->realtime
Wed, May 21, 7:32 PM
christos closed D50400: sndctl(8): Fix dp->realtime.
Wed, May 21, 7:32 PM
christos committed rG52c426327403: sndctl(8): Allow read-only sysctls (authored by christos).
sndctl(8): Allow read-only sysctls
Wed, May 21, 7:32 PM
christos closed D50398: sndctl(8): Allow read-only sysctls.
Wed, May 21, 7:32 PM
christos committed rGac86e65e0e25: sndctl(8): Remove unnecessary val variable from sysctl functions (authored by christos).
sndctl(8): Remove unnecessary val variable from sysctl functions
Wed, May 21, 7:32 PM
christos closed D50397: sndctl(8): Remove unnecessary val variable from sysctl functions.
Wed, May 21, 7:32 PM
christos added inline comments to D50386: snd_dummy: Make callout stopping more robust.
Wed, May 21, 7:27 PM
christos abandoned D50378: snd_hda: Fix cleanup regression in hdac_detach().

I don't quite follow: hdacc_detach() and hdaa_detach() both call bus_generic_detach().

Wed, May 21, 7:17 PM

Sun, May 18

christos requested review of D50409: sound: Merge pcm_sysinit() with pcm_register().
Sun, May 18, 5:03 PM
christos updated the diff for D50400: sndctl(8): Fix dp->realtime.

Reflect D50398 changes.

Sun, May 18, 4:07 PM
christos updated the diff for D50398: sndctl(8): Allow read-only sysctls.

Address Mark's comments.

Sun, May 18, 4:06 PM

Sat, May 17

christos abandoned D50399: sndctl(8): Do not re-read device at the end.
Sat, May 17, 9:07 PM
christos requested review of D50400: sndctl(8): Fix dp->realtime.
Sat, May 17, 9:05 PM
christos requested review of D50399: sndctl(8): Do not re-read device at the end.
Sat, May 17, 9:04 PM
christos requested review of D50398: sndctl(8): Allow read-only sysctls.
Sat, May 17, 9:04 PM
christos requested review of D50397: sndctl(8): Remove unnecessary val variable from sysctl functions.
Sat, May 17, 9:04 PM
christos accepted D50306: snd_hda: Add shutdown method.
Sat, May 17, 7:30 PM
christos updated subscribers of D50306: snd_hda: Add shutdown method.

LGTM. We'll also need to MFC this to both stable/14 and releng/14.3.
CC @cperciva

Sat, May 17, 7:29 PM
christos added inline comments to D50386: snd_dummy: Make callout stopping more robust.
Sat, May 17, 7:21 PM
christos added a reviewer for D50306: snd_hda: Add shutdown method: adrian.
Sat, May 17, 6:40 PM
christos added a reviewer for D50393: snd_hda: Fix a sporadic panic during kldunload: adrian.
Sat, May 17, 6:40 PM
christos added inline comments to D50386: snd_dummy: Make callout stopping more robust.
Sat, May 17, 6:39 PM
christos added a comment to D50378: snd_hda: Fix cleanup regression in hdac_detach().

The only real difference I can see is that this change causes child devices to be detached in reverse order. Does the order matter for some reason?

Sat, May 17, 6:23 PM
christos added a comment to D50393: snd_hda: Fix a sporadic panic during kldunload.

I didn't know about the Makefile thing. Does the sorting really affect the order in which the detach routines will be called?

Sat, May 17, 5:54 PM
christos added a reviewer for D50386: snd_dummy: Make callout stopping more robust: rrs.
Sat, May 17, 10:19 AM
christos added a comment to D50386: snd_dummy: Make callout stopping more robust.

I ran the test (i.e., load snd_dummy(4), start virtual_oss, kill it and then unload snd_dummy) in a loop for ~1 hour without crashes. Before the patch it would crash during the first minutes.

Sat, May 17, 10:12 AM

Fri, May 16

christos requested review of D50386: snd_dummy: Make callout stopping more robust.
Fri, May 16, 8:53 PM
christos added a reviewer for D50378: snd_hda: Fix cleanup regression in hdac_detach(): imp.
Fri, May 16, 7:59 PM
christos abandoned D49216: sound: Implement /dev/dsp as a router device.

I think this can dropped in favor of D50070 and follow-up patches.

Fri, May 16, 7:32 PM
christos requested review of D50378: snd_hda: Fix cleanup regression in hdac_detach().
Fri, May 16, 3:23 PM

Wed, May 14

christos committed rGaff92a9f3c6c: sound: Call PCM_RELEASE() if pcm_addchan() fails (authored by christos).
sound: Call PCM_RELEASE() if pcm_addchan() fails
Wed, May 14, 2:24 PM