Page MenuHomeFreeBSD

christos (Christos Margiolis)
User

Projects (1)

User Details

User Since
Jul 2 2021, 4:03 PM (278 w, 6 d)

Recent Activity

Yesterday

christos committed rG43bbd71ac785: snd_hda: wake display audio and restore amplifier settings (authored by David Bidner <david@crap.solutions>).
Thu, Nov 5, 12:30 PM
christos updated the diff for D60517: sound: Document the locking protocol.

Address Mark's comments.

Thu, Nov 5, 12:22 PM
christos added a comment to D60517: sound: Document the locking protocol.

Seems ok. It would be nicer to annotate individual fields like we do for other structures, see struct vm_page for instance.

Thu, Nov 5, 12:22 PM
christos updated the diff for D60514: sound: Busy the device in SNDCTL_DSP_GETCAPS.

Address Mark's comments.

Thu, Nov 5, 12:11 PM
christos retitled D60514: sound: Busy the device in SNDCTL_DSP_GETCAPS from sound: Retire PCM_LOCK in SNDCTL_DSP_GETCAPS
Thu, Nov 5, 12:10 PM
christos updated the diff for D60509: sound: Busy the device in sysctl_dev_pcm_mode().

Address Mark's comments.

Thu, Nov 5, 12:01 PM
christos updated the summary of D60509: sound: Busy the device in sysctl_dev_pcm_mode().
Thu, Nov 5, 12:01 PM
christos requested review of D61224: sound: Hold the topology lock across the remaining registration checks.
Thu, Nov 5, 11:59 AM
christos added inline comments to D60120: sound: Drain the dsp cdev before freeing resources.
Thu, Nov 5, 11:37 AM
christos reclaimed D61133: hwpmc: Decline the AMD PerfMonV2 path when GLOBAL_CTL is absent.

Reopening after discussion in D61141.

Thu, Nov 5, 11:32 AM
christos committed rGdbf51f8ed0a5: snd_envy24ht: Fix out-of-bounds DMA buffer indexing.
Thu, Nov 5, 11:26 AM
christos closed D61155: snd_envy24ht: Fix out-of-bounds DMA buffer indexing.
Thu, Nov 5, 11:26 AM

Wed, Nov 4

christos added inline comments to D60507: sound: Busy devices before giving up the topology lock.
Wed, Nov 4, 2:20 PM
christos added inline comments to D60121: sound: Retire pcm_channel->sleeping.
Wed, Nov 4, 2:10 PM
christos updated the diff for D60120: sound: Drain the dsp cdev before freeing resources.

Address Mark's comments.

Wed, Nov 4, 2:09 PM
christos abandoned D60505: sound: Shut the channels down with the device busied.

Squashed.

Wed, Nov 4, 1:51 PM
christos updated the diff for D61161: netlink: Pre-register the missing devctl event systems.

Remove "KERNEL".

Wed, Nov 4, 11:33 AM

Tue, Nov 3

christos added a comment to D61155: snd_envy24ht: Fix out-of-bounds DMA buffer indexing.

Bug reported is happy with the patch.

Tue, Nov 3, 6:13 PM
christos added inline comments to D61161: netlink: Pre-register the missing devctl event systems.
Tue, Nov 3, 5:39 PM
christos requested review of D61161: netlink: Pre-register the missing devctl event systems.
Tue, Nov 3, 5:13 PM
christos added a comment to D61141: amd64/vmm: Don't advertise AMD PerfMonV2 or performance counters.

Certainly this commit should be MFCed to stable/15 and 14 at minimum.

Tue, Nov 3, 4:47 PM
christos requested review of D61155: snd_envy24ht: Fix out-of-bounds DMA buffer indexing.
Tue, Nov 3, 11:33 AM
christos added a comment to D61141: amd64/vmm: Don't advertise AMD PerfMonV2 or performance counters.

This is fine, but it won't help older versions of FreeBSD which use vmm to boot a newer FreeBSD guest. I think this will still need a workaround in hwpmc, gated on vm_guest == VM_GUEST_BHYVE.

Tue, Nov 3, 9:15 AM
christos committed rG1f94158da648: sound: Let pcm_unregister() tear down a partially initialized device.
Tue, Nov 3, 9:11 AM
christos committed rG06e5b0422f3a: sound tests: Check the return value of close(2).
Tue, Nov 3, 9:11 AM

Mon, Nov 2

christos retitled D61141: amd64/vmm: Don't advertise AMD PerfMonV2 or performance counters from amd64/vmm: Don't advertise AMD PerfMonV2 or counter counts
Mon, Nov 2, 5:53 PM
christos added a comment to D61141: amd64/vmm: Don't advertise AMD PerfMonV2 or performance counters.

@markj I haven't tested this patch yet. If you can spin up a -CURRENT host and try it today please let me know, otherwise I can test it tomorrow.

Mon, Nov 2, 5:53 PM
christos abandoned D61133: hwpmc: Decline the AMD PerfMonV2 path when GLOBAL_CTL is absent.
In D61133#1401454, @kib wrote:

No, I do not think this is right. The problem is that VMM declare the capability while it does not implement it. So the fix must be in bhyve and not in consumers.

Mon, Nov 2, 5:50 PM
christos requested review of D61141: amd64/vmm: Don't advertise AMD PerfMonV2 or performance counters.
Mon, Nov 2, 5:50 PM
christos requested review of D61133: hwpmc: Decline the AMD PerfMonV2 path when GLOBAL_CTL is absent.
Mon, Nov 2, 1:52 PM
christos added a reverting change for rG8dac0bdb4df0: snd_hda: Identify AMD Audio Coprocessor: rG7ef59ccfcc8a: Revert "snd_hda: Identify AMD Audio Coprocessor".
Mon, Nov 2, 12:03 PM
christos committed rG7ef59ccfcc8a: Revert "snd_hda: Identify AMD Audio Coprocessor".
Mon, Nov 2, 12:03 PM

Sun, Nov 1

christos committed rGa1b3329affb9: snd_hda: use the pin ELD to select DisplayPort audio framing (authored by David Bidner <david@crap.solutions>).
Sun, Nov 1, 1:39 PM
christos committed rG9da2c05a748f: kern: Remove unreachable compat_freebsd8 FEATURE.
Sun, Nov 1, 1:34 PM
christos added a comment to D60527: snd_hda: Enable the headset microphone on Framework ALC295 laptops.

Address Ed's comments. Note that hdaa_update_coef() now closely resembles
Linux's equivalent:

static void __alc_update_coefex_idx(struct hda_codec *codec, hda_nid_t nid,
				    unsigned int coef_idx, unsigned int mask,
				    unsigned int bits_set)
{
	unsigned int val = __alc_read_coefex_idx(codec, nid, coef_idx);

	if (val != -1)
		__alc_write_coefex_idx(codec, nid, coef_idx,
				       (val & ~mask) | bits_set);
}

@emaste, could that be a problem?

Also updated the commit message but it doesn't update automatically. I removed
the "Obtained by:" and added the following lines:

Linux commit 5a36767 used as a reference.

See also:       https://github.com/torvalds/linux/commit/5a36767a41650518f35ea0bae9a2d6e775f1aed1
Sun, Nov 1, 1:28 PM

Thu, Oct 29

christos committed rG5760c22a0522: sound: Let pcm_unregister() tear down a partially initialized device.
Thu, Oct 29, 8:43 AM
christos committed rGeb36c35ccf83: sound tests: Check the return value of close(2).
Thu, Oct 29, 8:43 AM
christos closed D60800: sound tests: Check the return value of close(2).
Thu, Oct 29, 8:43 AM
christos closed D60801: sound: Let pcm_unregister() tear down a partially initialized device.
Thu, Oct 29, 8:43 AM
christos committed rG8dac0bdb4df0: snd_hda: Identify AMD Audio Coprocessor.
Thu, Oct 29, 8:43 AM
christos committed rG67d06cf1edca: sound examples: trigger dsp devices via syncgroup (authored by meka_tilda.center).
Thu, Oct 29, 8:41 AM

Wed, Oct 21

christos committed rG8a6a769ddb38: sound: Use GID_WHEEL/0666 instead of GID_AUDIO/0660 to create the mixer cdev.
Wed, Oct 21, 8:24 PM

Mon, Oct 19

christos committed rGd3aa926bffd2: sound examples: trigger dsp devices via syncgroup (authored by meka_tilda.center).
Mon, Oct 19, 9:02 AM
christos closed D60839: sound examples: trigger dsp devices via syncgroup.
Mon, Oct 19, 9:01 AM
christos accepted D60839: sound examples: trigger dsp devices via syncgroup.

LGTM. Did you test that everything works properly now?

Mon, Oct 19, 8:54 AM
christos added inline comments to D60839: sound examples: trigger dsp devices via syncgroup.
Mon, Oct 19, 8:51 AM
christos added inline comments to D60839: sound examples: trigger dsp devices via syncgroup.
Mon, Oct 19, 8:44 AM
christos added a comment to D60839: sound examples: trigger dsp devices via syncgroup.

I renamed the commit "sound examples" instead of just "sound", so make sure to update it in your local tree as well. That being said, unless I'm missing something, the commit message is misleading. You are saying "don't trigger the device unconditionally" but your patch removes triggering altogether. I know the syncgroup will do the triggering itself, but the title suggests that we keep some manual triggering, just not unconditionally, which is not exactly the case.

Mon, Oct 19, 8:36 AM
christos retitled D60839: sound examples: trigger dsp devices via syncgroup from sound: don't trigger the device unconditionally to sound examples: don't trigger the device unconditionally.
Mon, Oct 19, 8:30 AM

Sun, Oct 18

christos added a comment to D60442: sound: Whitespace cleanup.

I am aware of the first 2 MFCs, I'm holding off to commit them along with the 1 month ones.

Sun, Oct 18, 8:19 AM
christos committed rG747ee16a11ad: sound: Lock around mixer_set*() in mixer_init() for consistency.
Sun, Oct 18, 8:14 AM
christos committed rG0fcd6a1c6bbe: sound: Use uint8_t instead of legacy u_char.
Sun, Oct 18, 8:14 AM
christos committed rG4f4531be5e97: sound: Remove unncessary locking in sysctl_hw_snd_hwvol_mixer().
Sun, Oct 18, 8:14 AM
christos committed rG6d1ff70551bf: sound: Improve some mixer return values and their handling.
Sun, Oct 18, 8:14 AM
christos committed rG332d81cd2f0c: sound: Reuse mixer_delete() in mixer_uninit().
Sun, Oct 18, 8:14 AM
christos committed rG03b8055094e8: sound: Do not set a recording source in mixer_uninit().
Sun, Oct 18, 8:14 AM
christos committed rGc712a039e44d: snd_uaudio: drop the default monitor level to 10% (authored by kevans).
Sun, Oct 18, 8:14 AM
christos committed rGde7cd7fe9c91: sound: Retire mixer_hwvol locked variants.
Sun, Oct 18, 8:14 AM
christos committed rG3e19ea7e0500: sound: Use snddev_info->lock in place of snd_mixer->lock.
Sun, Oct 18, 8:14 AM
christos committed rG7ca2e1c92a50: sound: Defer macio codec volume writes to a task.
Sun, Oct 18, 8:13 AM
christos committed rG017cf4b7daf6: sound: Embed mixer cdev in snd_mixer.
Sun, Oct 18, 8:13 AM
christos committed rG2b61245f5a16: sound: Simplify how snd_mixer is fetched and how the cdev is created.
Sun, Oct 18, 8:13 AM
christos committed rG4798ab5050c2: sound: Standardize mixer_init() call order.
Sun, Oct 18, 8:13 AM

Sat, Oct 17

christos requested review of D60801: sound: Let pcm_unregister() tear down a partially initialized device.
Sat, Oct 17, 11:31 AM
christos requested review of D60800: sound tests: Check the return value of close(2).
Sat, Oct 17, 10:13 AM

Thu, Oct 15

christos committed rGa045cfb0c45d: sound: Remove obsolete comment from sound.h.
Thu, Oct 15, 9:22 AM

Wed, Oct 14

christos committed rG29449b3e468c: snd_hda: use the pin ELD to select DisplayPort audio framing (authored by David Bidner <david@crap.solutions>).
Wed, Oct 14, 12:00 PM
christos added a comment to D60120: sound: Drain the dsp cdev before freeing resources.

Friendly bump for this and the rest of the stack.

Wed, Oct 14, 11:26 AM
christos accepted D60554: sound: Revalidate after reacquiring locks when resizing buffers.
Wed, Oct 14, 11:25 AM
christos added a comment to D60553: sound: Check for errors from sndbuf_resize().

Also please include a small paragraph about the chn_resizebuf() changes in the commit message and/or in the code.

Wed, Oct 14, 11:18 AM
christos accepted D60553: sound: Check for errors from sndbuf_resize().
Wed, Oct 14, 11:18 AM
christos accepted D60678: bhyve: Improve HDA stream descriptor validation.

From what I understand, the issue is that because this is not bhyve-internal memory, but entries we read from the guest's memory, we want to make sure these values are read at that point exactly, so that we don't let the compiler re-read them later when the value might have been changed?

Wed, Oct 14, 11:11 AM
christos committed rG680957e950fc: rc.d/mountd: Do not require /etc/exports.
Wed, Oct 14, 9:32 AM
christos committed rGfa4f5cc47d36: pcm.4: Remove DIAGNOSTICS section.
Wed, Oct 14, 9:32 AM

Mon, Oct 12

christos closed D60410: Status/2026Q3/cuse.adoc: Add report.
Mon, Oct 12, 4:29 PM
christos closed D60409: Status/2026Q3/audio.adoc: Add report.
Mon, Oct 12, 4:29 PM
christos committed R9:850fe1262851: Status/2026Q3/cuse.adoc: Add report.
Mon, Oct 12, 4:29 PM
christos committed R9:9ed7f2c29bb4: Status/2026Q3/audio.adoc: Add report.
Mon, Oct 12, 4:29 PM

Sat, Oct 10

christos updated the diff for D60527: snd_hda: Enable the headset microphone on Framework ALC295 laptops.

Address Ed's comments. Note that hdaa_update_coef() now closely resembles
Linux's equivalent:

Sat, Oct 10, 8:24 AM

Fri, Oct 9

christos added a comment to D49002: snd_hda(4): Add quirks for Lenovo ThinkBooks and ASUS TUFs.

I had to add hda_update_coef() for a patch I'm working on (D60527), so we can hold off this one, and rebase it once I commit it.

Fri, Oct 9, 2:43 PM
christos requested review of D60527: snd_hda: Enable the headset microphone on Framework ALC295 laptops.
Fri, Oct 9, 2:40 PM
christos requested review of D60518: sound: Busy the device in mixer_oss_mixerinfo().
Fri, Oct 9, 11:22 AM
christos requested review of D60517: sound: Document the locking protocol.
Fri, Oct 9, 11:07 AM
christos requested review of D60515: sound: Retire PCM_LOCK in sound_oss_card_info().
Fri, Oct 9, 10:11 AM
christos requested review of D60514: sound: Busy the device in SNDCTL_DSP_GETCAPS.
Fri, Oct 9, 10:11 AM
christos requested review of D60513: sound: Protect channels.pcm.opened with the sx alone.
Fri, Oct 9, 9:41 AM
christos requested review of D60512: sound: Stop taking PCM_LOCK to create and destroy channels.
Fri, Oct 9, 9:33 AM
christos requested review of D60509: sound: Busy the device in sysctl_dev_pcm_mode().
Fri, Oct 9, 9:12 AM
christos requested review of D60507: sound: Busy devices before giving up the topology lock.
Fri, Oct 9, 8:48 AM
christos abandoned D60506: sound: Drop the topology lock after busying the device.

Sorry for the noise.

Fri, Oct 9, 8:44 AM
christos requested review of D60506: sound: Drop the topology lock after busying the device.
Fri, Oct 9, 8:41 AM
christos abandoned D60466: sound: Hold the topology lock across dsp_oss_audioinfo().
Fri, Oct 9, 8:41 AM
christos abandoned D60465: sound: Busy the device being inspected, not the caller's.
Fri, Oct 9, 8:41 AM
christos updated the diff for D60465: sound: Busy the device being inspected, not the caller's.

Stop taking the sx unnecessarily for the device the ioctl has been issued on,
and instead take it for every device being inspected when needed.

Fri, Oct 9, 8:40 AM
christos retitled D60465: sound: Busy the device being inspected, not the caller's from sound: Drop the topology lock after busying the device
Fri, Oct 9, 8:39 AM
christos updated the diff for D60410: Status/2026Q3/cuse.adoc: Add report.

Address Joe's comment.

Fri, Oct 9, 8:23 AM
christos requested review of D60505: sound: Shut the channels down with the device busied.
Fri, Oct 9, 7:43 AM

Thu, Oct 8

christos committed rG20381bce4b63: sound: Remove obsolete comment from sound.h.
Thu, Oct 8, 1:12 PM
christos requested review of D60466: sound: Hold the topology lock across dsp_oss_audioinfo().
Thu, Oct 8, 1:10 PM
christos requested review of D60465: sound: Busy the device being inspected, not the caller's.
Thu, Oct 8, 1:09 PM