Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1103892rwb; Fri, 28 Jul 2023 05:02:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlGd9/1+KYhNcUZCck5iXQ3mcYImMocacL4SAX8PwTfuaDQjMB+gdBkdPcL7JxaITIIe2mYH X-Received: by 2002:a17:902:d487:b0:1b6:68bb:6ad0 with SMTP id c7-20020a170902d48700b001b668bb6ad0mr1670325plg.55.1690545724835; Fri, 28 Jul 2023 05:02:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690545724; cv=none; d=google.com; s=arc-20160816; b=FtCi5zfZK12q2LpAX7jf/gaewLzDAPHLJCUDjMKl1S/JUv+AdyovsgG1pL9I1nrMEm DVbgp5ShobHxRAxbRMUkxMTKzv7U6ssBhUGzM6qEb2DzcEClUckX9vs8X9EFJeHsJ+gd 3diQBAtUjO/3bpWEbhG+VnpS9dSSiT2b2axEMTtFSs08B0ddB5/EBxyXdy0lLHvhsn9/ STPZXOhLS4U/ek8BaQA0+fx8b8PpWkkUS+0yRD0qzU3NPWRDpGN1u5s3OTEBt5FLImVI 6BecKibZuIx1Xw/K0Fo8isakw70n5+EEJpBEk57BjEk2VKdSNZPXQY5wxbiV6EDIEwtD FcNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=aNiBGJXE72ww7HkTJtt6PR1CpjKb97wubuBgNaM6XTc=; fh=oLVGgqMWBIR48UpzoIxqcOE5MB310kfFJfZQjVAwolo=; b=qZbdAvDjRvgmBSid4HmJERkR6H3RXfOXGBiMelEdHHoXTsWoX1GYX/3UlAhV3prFW7 WzsE254qPeeHgrnUlrrXFRyhkUVOUktIl/QJKMp9fU1JHKIvJQsj7hoNGZt2fNlurDdx qJSw6bB0UyB7Wwp9XqRWubVVGS5hfbqI8OgSL0gta/eBy/oW7Tr0sw4taLTkXB3wv/kd Y1msqfWBfkxAGy+PK7lWgvtleIZRXt6AsXu7m1geZHDFxOwiaUhkEyT0Q081QuMchmbp 5tu/mrpdeu3Y8Wa+CtL4FNsYu2jw5U7n/cqQQFKvSRAUThO0SlgeTuwEat8BXnapCVjm kBlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=bUgNbXCS; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=wDH39ZHI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ix22-20020a170902f81600b001b89ba65f3dsi2942288plb.193.2023.07.28.05.01.35; Fri, 28 Jul 2023 05:02:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=bUgNbXCS; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=wDH39ZHI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234928AbjG1LKy (ORCPT + 99 others); Fri, 28 Jul 2023 07:10:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236045AbjG1LKw (ORCPT ); Fri, 28 Jul 2023 07:10:52 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A46535A5 for ; Fri, 28 Jul 2023 04:10:44 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id E020C2198B; Fri, 28 Jul 2023 11:10:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1690542642; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=aNiBGJXE72ww7HkTJtt6PR1CpjKb97wubuBgNaM6XTc=; b=bUgNbXCSn6aW185cjmZ6ntotpIY0g1GvcL7gt6L7U8Ry/tRfQitz1pBr44swsRz3z1Ar7h fWrCJHup5E4b0NAkNeFCp8Y++N6QtdUXOCma5Jfh6/OB4Exxu+trczxfZRDohQU7rkG0j/ 8PgDT9JPt732dVNHsbj3mDbxbhEPQ5Q= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1690542642; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=aNiBGJXE72ww7HkTJtt6PR1CpjKb97wubuBgNaM6XTc=; b=wDH39ZHIRFRwI66u5L6Mdmvnao5se0aV582Fr7kBeZw2DhC8WweoAMbfbJkeXrIrxwYryu 4ZSUifapSRz6MNDQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id AAD00133F7; Fri, 28 Jul 2023 11:10:42 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id iMayKDKiw2SPPgAAMHmgww (envelope-from ); Fri, 28 Jul 2023 11:10:42 +0000 Date: Fri, 28 Jul 2023 13:10:42 +0200 Message-ID: <87ila4cmvh.wl-tiwai@suse.de> From: Takashi Iwai To: Stefan Binding Cc: Mark Brown , Jaroslav Kysela , Takashi Iwai , , , Subject: Re: [PATCH v2 00/11] Fix support for System Suspend for CS35L41 HDA In-Reply-To: <87jzupwuo9.wl-tiwai@suse.de> References: <20230721151816.2080453-1-sbinding@opensource.cirrus.com> <87jzupwuo9.wl-tiwai@suse.de> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 24 Jul 2023 11:00:38 +0200, Takashi Iwai wrote: > > On Fri, 21 Jul 2023 17:18:05 +0200, > Stefan Binding wrote: > > > > There have been a couple of customer reports of intermittant issues after > > system resume, where sometimes the DSP firmware stops responding. > > Investigations into this issue show that there is a race between receiving > > a prepare from the HDA core, and the firmware reload which is started by > > the system resume. This can causes the Global Enable on the CS35L41 to be > > enabled during the firmware load, which can sometimes cause issues in the > > DSP. > > > > The existing system resume behaviour also did not resume the audio, if > > audio was previously playing when it was suspended. > > In addition, during investigation, it was found there were additional > > problems in the System Resume sequence, as well as the Playback sequence > > with External Boost, where the driver does not correctly follow its > > enable sequence for this mode. This can cause additional issues such as > > pops and clicks. > > > > This chain intends to correct the sequences for playback and system > > suspend/resume so that the driver: obeys the external boost enable sequence; > > resumes audio on system resume; and avoids the race condition on firmware > > load and playback during system resume. > > > > Changes since v1: > > - Split patch 1 into 2 separate patches > > - Combine Patches 6 and 9 > > > > Stefan Binding (11): > > ALSA: cs35l41: Use mbox command to enable speaker output for external > > boost > > ALSA: cs35l41: Poll for Power Up/Down rather than waiting a fixed > > delay > > ALSA: hda: cs35l41: Check mailbox status of pause command after > > firmware load > > ALSA: hda: cs35l41: Ensure we correctly re-sync regmap before system > > suspending. > > ALSA: hda: cs35l41: Ensure we pass up any errors during system > > suspend. > > ALSA: hda: cs35l41: Move Play and Pause into separate functions > > ALSA: hda: hda_component: Add pre and post playback hooks to > > hda_component > > ALSA: hda: cs35l41: Use pre and post playback hooks > > ALSA: hda: cs35l41: Rework System Suspend to ensure correct call > > separation > > ALSA: hda: cs35l41: Add device_link between HDA and cs35l41_hda > > ALSA: hda: cs35l41: Ensure amp is only unmuted during playback > > Applied all patches now to for-next branch. It seems that this patch set causes occasional freeze at suspend: https://bugzilla.suse.com/show_bug.cgi?id=1213745 Could you take a look? thanks, Takashi