Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1831842rwo; Wed, 2 Aug 2023 23:44:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlFo85usA2i2sLfH8kPWD+9mAIW0j6Cqo9n7KPAJ9Ocb+cC5dIduqUbQThqPL72eQ/F7vCt7 X-Received: by 2002:a05:6402:334:b0:522:3cf4:9d86 with SMTP id q20-20020a056402033400b005223cf49d86mr6466429edw.33.1691045065186; Wed, 02 Aug 2023 23:44:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691045065; cv=none; d=google.com; s=arc-20160816; b=j/Ey7Z2Nr/yLr/CKy7mysEmSG7E9q6u4nYB1eFQqdVdeDh8W71QdQ/dJ/4nN8zVkLa NzZEjnshpcJqgkceZRD72oo7z2KlCvG8HyisQHAjm/UZuciVOF61Q1rMoT+K0F1nTxFU R63zS7u9SfXAs1biJNISCjMUrcNIcQL9pQgzCxtO3/Usr90K+tMfPqbo180R8v5ieiZG +bGqVqX9v8iwnsrhBJXOf20ZMoGIy26k5MDQZR/i6Xj6PHKxj7s3KZ+lBSEJS/e6zZ2H pCoTxs+cW9d4sDz4T7eGgbqylH/yUggd5vv5kXl+jPs5tq5eOsqKnAmSPYFY/8sQYK0R YP+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Kbb2JZnOoYwJQEVsEHkhrWIFo2t2y3dRXR/1y8A+CJo=; fh=8u11NBAqs6tBqEdG193rH6ku+1A1BgUApUzqlumcBwY=; b=TdktaQFNsooWMgGUgGYzav/WrmtuXJYxigyXa5SRWEGi0rNklhnhdeIPFfkcQ9/nq8 yjZ/6sOZA0OpeEkDMft9toclYw9ohlpqphutdqoGZ/KHoLRcAGXoCE+fCOxEZGacI1sZ /q3fCF1chPJ6K9GLV/GRQsyeAHa3u/ASluX6IFUNfbdzuw2FLy8qIV91QiOlVawxTG2Y 8bTmbi6U3pwMV5n6/8Exk/Cc6LTkdWAAYzmY5vmIPU9mnzegJvooCGe92kCWJkxNX8on qFWnH9YCwjP2Qc5MTA36xpLwjd7OGT7UZ2ps2Ag3+HWz08pwFNMK/qkZ1/kylZPplKkR OCeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FAHFSban; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h15-20020aa7de0f000000b005223842d65fsi10931695edv.222.2023.08.02.23.44.01; Wed, 02 Aug 2023 23:44:25 -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=@intel.com header.s=Intel header.b=FAHFSban; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232929AbjHCGY5 (ORCPT + 99 others); Thu, 3 Aug 2023 02:24:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232177AbjHCGYz (ORCPT ); Thu, 3 Aug 2023 02:24:55 -0400 Received: from mgamail.intel.com (unknown [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8650010FB for ; Wed, 2 Aug 2023 23:24:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691043887; x=1722579887; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=5dHLhZfkM4fPP4ODNsxE3CV5Tq4sdvHjv7CD0L/AoHo=; b=FAHFSbanMaAiaBuFdSAfI3SAEiP9YVwlsVqTJ4bv0FhEodZuqXQW+89p SENZKtLJXJQhsn3gG5uGYX5LuPPMR/1ybhiDb8qgj+NAYJlSul6+LArB7 CL7QEgBIVs5WHTsgm/F56eZ1I+VRRMzIpecDrjKBe5cKh36Twc3rCiTJJ mC6EPBT6Py3f/+Xq8uohhVf6ktyzT/Rz1mW5qlX8Uf9yC5ISZ1ii4OP+v wTwQgoE4JoQDu+ugsvOrbyThrZeX3mkUx1JEZaC3OwxTVkLHFf+OHx3Eo R4LahTaBRNz2/5QdHhpMHJa0DIYY5Ti0TdmJKLOc75NOKqZUKMRjdj0+L A==; X-IronPort-AV: E=McAfee;i="6600,9927,10790"; a="350075218" X-IronPort-AV: E=Sophos;i="6.01,251,1684825200"; d="scan'208";a="350075218" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2023 23:23:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10790"; a="1060117879" X-IronPort-AV: E=Sophos;i="6.01,251,1684825200"; d="scan'208";a="1060117879" Received: from bard-ubuntu.sh.intel.com ([10.239.185.57]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2023 23:23:57 -0700 From: Bard Liao To: alsa-devel@alsa-project.org, vkoul@kernel.org Cc: vinod.koul@linaro.org, linux-kernel@vger.kernel.org, pierre-louis.bossart@linux.intel.com, bard.liao@intel.com Subject: [PATCH 0/2] soundwire: improve pm_runtime handling Date: Thu, 3 Aug 2023 14:52:18 +0800 Message-Id: <20230803065220.3823269-1-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 This patchset improves the pm_runtime behavior in rare corner cases identified by the Intel CI in the last 6 months. a) in stress-tests, it's not uncommon to see the following type of warnings when the codec reports as ATTACHED "rt711 sdw:0:025d:0711:00: runtime PM trying to activate child device sdw:0:025d:0711:00 but parent (sdw-master-0) is not active" This warning was not correlated with any functional issue, but it exposed a design issue on when to enable pm_runtime. The recommended practice in the pm_runtime documentation is to keep the devices in 'suspended' mode and mark them as 'active' when they are really functional. Pierre-Louis Bossart (2): soundwire: intel_auxdevice: enable pm_runtime earlier on startup soundWire: intel_auxdevice: resume 'sdw-master' on startup and system resume drivers/soundwire/intel_auxdevice.c | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) -- 2.25.1