From nobody Thu Jun 05 00:50:58 2025 X-Original-To: freebsd-multimedia@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bCQql0n4dz5xvTR for ; Thu, 05 Jun 2025 00:51:15 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yw1-x1132.google.com (mail-yw1-x1132.google.com [IPv6:2607:f8b0:4864:20::1132]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bCQqj5RPQz3ScL for ; Thu, 05 Jun 2025 00:51:13 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-70f147b5a52so3032187b3.3 for ; Wed, 04 Jun 2025 17:51:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1749084671; x=1749689471; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=pJTMQ+beEUDRV8gPKUYwg2P+12KtaYwdBm4NhSHo2RY=; b=G+kFKeklvSnhTVqGDTd4DZvCalGkdhw8yTUTTDrBVoVZDeTqSbEdjEwIIvTb3MiI3I GjxCcd4vaJ+G4dupEdjsVgNgtwA6Gu/yLFQV9zpSjAVb3iiOZyLwXi4fykKSfRO+Zf76 9ko2WERPRkMxXDRHOrtbdS06LLWcUquY87IiflmJ3k4HJIhY0PjSPfsNlk8qUfXWcNJD 5uvujOTgn3vrIILsSVHMftaHAAx5L3+Sg3tk8xqgos7HvY+4iFA0hooBNEloGc+M20v0 BNUIpAFDRv5111bG3s/Md+6ZWWtyx2F33HG7IggqVvr5pKYHCEhMJR3qe6g6UpaBAp5Y 4yvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749084671; x=1749689471; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pJTMQ+beEUDRV8gPKUYwg2P+12KtaYwdBm4NhSHo2RY=; b=fcdDHFYJ8RP0NShpWuvprB50emyQP9irq0nvmZ+BCXHYQLM7Fovd3VlXNA2dQjglqw azUpAe8nHOglf0jxPo58lA3kLDDUyeW6lwuJF6c5Wy51kl2hY/UpgK+F5mDnzprXVyMV Ivje4PUsKO+BmM8jFDwBbvBURPTj38iy/bp6n+Z4xpuJuD8l9fFAVN+bn2Ff9dUJ08w0 vDX/roskuV5PsZJtLLe34q5K2ySPWiAl820Ug/yo77iPfEqh19sn/m3GThFZrIpboFR6 CxrIazYiyPk6Sn/RT1HMnp65s2PCvCW1uD7Brov5pknZXa8wAhzVE/qRiySLgiIXU1+W 6mzw== X-Gm-Message-State: AOJu0YxsMQA0s4+QiuTSDH1SjQe9slZlVrdqIWIf3uLfryT5QkM9fJAn YcE5aZDUcy6BWh9xXLqmf4Q6x7+4oH9/mSbytNx6eY9RGZuIx92ud0dKzd8JzT1Nngj0YFoNfNo JunQ= X-Gm-Gg: ASbGncv3RF+/jo6Osf5DZ1vRAi25hPQ1jYJPnzZTiBbyAtwvjN/eTL4C70dqfzzlK2X RTDjKU7Htkz3WyKyFqichOv1o4HF9VLr1msZiLClpezpdrMDTg1ThQdqGGwDiGwIS8pF2hBnB+o L0V8yj5g7J/HtM6zPM5S66xc5lmKR1H7LXjYO/vVDoRfngwOB+gQOB1hYwE0zF3I2KULXu2xPwU GWagzkMsH9AG/Jl0NCX/Pw/ccwxWwZLGwujtUsHjVXIvgEwv96A/QpIEv9QmTQgPCp7A/IiZfoR CK0V8x2N68HRqBaiUdDMnHo8steb2Li35FrrLlGXzBmD3KCAngHEtYV/ACYgz0hGR2tdDAKhnsN 8ddorVcIQuzwe X-Google-Smtp-Source: AGHT+IHr8x888tjv1aVnd7NJADDvVGxgkbvcJXQFwnBLQbWMOHkJn3aNiw/NRR+7jS0Lyx2PyrTK1w== X-Received: by 2002:a05:690c:7006:b0:70c:d256:e7fc with SMTP id 00721157ae682-710d9dabf70mr68286437b3.21.1749084671299; Wed, 04 Jun 2025 17:51:11 -0700 (PDT) Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com. [209.85.128.171]) by smtp.gmail.com with ESMTPSA id 00721157ae682-70f8abef089sm32538367b3.38.2025.06.04.17.51.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Jun 2025 17:51:11 -0700 (PDT) Received: by mail-yw1-f171.google.com with SMTP id 00721157ae682-70e77831d68so5335777b3.2; Wed, 04 Jun 2025 17:51:10 -0700 (PDT) X-Received: by 2002:a05:690c:4b87:b0:70e:719e:75e with SMTP id 00721157ae682-710d9a965acmr67703657b3.9.1749084670130; Wed, 04 Jun 2025 17:51:10 -0700 (PDT) List-Id: Multimedia discussions List-Archive: https://lists.freebsd.org/archives/freebsd-multimedia List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-multimedia@FreeBSD.org MIME-Version: 1.0 References: <20250604175835.GA62203@darkbeer.org> <2350246.viN5riZIyJ@ravel> In-Reply-To: <2350246.viN5riZIyJ@ravel> From: Tomek CEDRO Date: Thu, 5 Jun 2025 02:50:58 +0200 X-Gmail-Original-Message-ID: X-Gm-Features: AX0GCFuUMN_0XT2SEC4XUEDTQBS_LaHBSKD8LsWWw0oEuIrB21HPKGCSDNRvtBI Message-ID: Subject: Re: pulseaudio / alc1220 sound clicks interruptions etc To: Olivier Certner , Amar Takhar Cc: freebsd-multimedia@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4bCQqj5RPQz3ScL X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] On Wed, Jun 4, 2025 at 9:56=E2=80=AFPM Olivier Certner w= rote: > The common denominator of all your reports seems to be Intel Hybrid Archi= tecture (Alder Lake and onwards), which the scheduler does not especially s= upport now. I'm currently working on this support (this is not going to be= ready soon). > > Could you please try the following (preferably 1): > 1. Disable E (Efficiency) cores from your BIOS if possible, reboot, test = again and report. > 2. Pin the application reading audio to a P (Performance) core with cpuse= t, test again and report. To know which cores are performance ones, run 'c= pucontrol -i 0x1a /dev/cpuctlXXX' on your cores and check that the first he= xadecimal value starts with 4 (a 2 indicates an efficiency core). > > If that doesn't show any difference, something else is at play and we'll = then advise. So I have disabled all E cores and this does not help - I even had all USB port hang, and right after reboot there was kernel panic (probably from nvidia driver need to setup serial port for logs sorry). I did not test the E cores only enables though. After that in BIOS I re-enabled all E cores and disabled all power management, intel speed step (basic and advanced), now I cannot see what frequency cores have, system seems to run at max speed all the time, all is smooth.. but still there are micro-freezes in the audio. I have launched ocp-curses with music playing from the console before starting Xorg then in launched VLC so I had two streams to compare, and did some applications launches - OSS from the background had minor glitches (clicks) and freezes (brrrt) when launching bigger applications, while VLC using PulseAudio had silent pauses (far longer than oss glitches). But the system seems more stable right now. Then, on the same power maxed setup I disabled nvidia module, rebooted, configured Xorg to use SCFB, and all works smoothly!!! No audio glitches, no clicks, no hiccups, both in terminal/oss/ocp and xorg/pulseaudio/vlc !! I have only single screen output but surprisingly I have ~160fps on the WM as opposed to ~20fps on the nvidia driver (570.153.02 on FreeBSD-14.2 AMD64). Why we suspect nvidia / drm to be the problem? Because we both with Amar have nvidia gpu, for me on the old hardware the same card was rock solid. I have tested various different WM: Enlightenment, XFCE4, Awesome, KDE6, sometimes after some GL application close computer froze and rebooted, sometimes between WM switch I was able to see kernel panic message in the console right after Xorg shutdown. And SCFB test seems to confirm the problem.. its nvidia or something it uses below in the kernel. By the way I had also whole machine stability problems with AMDGPU DRM this is why I switched to NVIDIA. After CPU/MOBO/RAM replacement problems seems back but with the nvidia this time. Maybe its some sort of general DRM problem then if all works fine on bare metal SCFB where no DRM is involved at all? The problem is SCFB does not support multi screen setup with screen rotation (one of my screens is vertical for better text reading). We are clearly missing a solid fallback in this kind of situations :-( Amar could you please try disabling the nvidia module and running Xorg on SCFB framebuffer to see if that solves problem on your setup? Hope that helps a bit :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info