Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1049292pxm; Wed, 23 Feb 2022 16:50:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPJ0oTQFQlse/nieDx0j0jGuFIb2YQ4EmHKc99N2NSM2dbLfgHoHh4A2g5aGp8Wctqq9jB X-Received: by 2002:a05:6a00:13a4:b0:4ce:118f:a822 with SMTP id t36-20020a056a0013a400b004ce118fa822mr260738pfg.33.1645663842684; Wed, 23 Feb 2022 16:50:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645663842; cv=none; d=google.com; s=arc-20160816; b=pNg8pNknNoBdkUqagkduGEFn9qiPwgTZSYitPmFJoTD0ntHKFAzeyYqPQeDdTWVXcU 8ogtJYeb2ekloKhKd4sjgDocnYU/ziVECWoSEfrd6HiF96+wXWk6dbP3PoPKzXYUnMb4 nyUdEc6wzfq/+LCH8lEj6Yft2p7VDpn7Q4919zuoGQSmAo7Jl9PLJsK7t48uetNBLJpv Xf+2jD+SoCGc1Jatpb80Z4ks65l3cXGAblb4ezPUqGfWOeUbh57fYzqtfYQPuCtXi0df CaL/4rQ6oPtWAr/wCII4PPfq1bREkyW+LIhe2sHOfYvUszanQlzatp9xc2xrvlsh67+C Epig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Yo2ytKpA3VOoGcTJcIF+nUQnoJtYda9W4uGcSx2cJUs=; b=MKm41QMh/cr3H5um7sxP4uLI63shme0TCywIs5DGdX2oG5ONpiwhfg2xwz09ovmPPv znVBfXcdDULeoZs5yxZjdHUZN34jf4yRwY4qipKH3owoO8iv4eV1Le00OPwNo90ekRrX KCs9/HYBQoOfmA3r7lgBjqPZi7ojAT2NJ24V2QZyetxxQjKPGF+yXSPOhLk/H1YMPgQi L7Q99rvHJEcArl3D/7XaBs7CWFHl4aoFT484/agaDm/4mpC9tOiEFurHN6Pd5CRSE/Tz ye8oZ7km7c4B5IJ4pFLyhYRlbAavHjgZdS5Gt5w1XEgETw+3jLgRoN+GRMcyPosm8+k3 PmpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="KFo/K9a/"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id e129si1038073pgc.691.2022.02.23.16.50.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 16:50:42 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="KFo/K9a/"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B4C4BF94C7; Wed, 23 Feb 2022 16:45:41 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231268AbiBWSfP (ORCPT + 99 others); Wed, 23 Feb 2022 13:35:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237880AbiBWSfO (ORCPT ); Wed, 23 Feb 2022 13:35:14 -0500 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A1D44EA1C for ; Wed, 23 Feb 2022 10:34:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645641286; x=1677177286; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=hYE64FDl6K6kQJWJlpwZ7YzJ0HVW33P+k3nNd98unpw=; b=KFo/K9a/92LisZ0H82snw2yT4s6eJdsXN5Z11cXsF/s2vXvRTMa29XPh j0PsLbWq75tNMQZb89b3nYyRxAq/nHaJ3vK6Rz0RE0FJVrbLhi0ypCGtF XsVUCKVPPFRbBVhmSo4Ij1wDgwkS0Td2Hn2OLarQl/sdp/mKQuBp3692V wNWG5n6RkGCBLqt4tmU/4e1RWLRwoFL03kGoWhSK+msAZKkIeQwzZ3XuC daPpuU6YRL6K6DpSRevdw610Ky9IOcZc05aBl+V4xOfwoCz2/WVfzDTBp q/QObEDggWeGl5/i3bAj208KlWAf6B62Eu6FR8c1fcdhraPdYZwfGeB/D A==; X-IronPort-AV: E=McAfee;i="6200,9189,10267"; a="232673549" X-IronPort-AV: E=Sophos;i="5.88,391,1635231600"; d="scan'208";a="232673549" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2022 10:34:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,391,1635231600"; d="scan'208";a="628190773" Received: from lkp-server01.sh.intel.com (HELO 788b1cd46f0d) ([10.239.97.150]) by FMSMGA003.fm.intel.com with ESMTP; 23 Feb 2022 10:34:42 -0800 Received: from kbuild by 788b1cd46f0d with local (Exim 4.92) (envelope-from ) id 1nMwTJ-0001hU-Nb; Wed, 23 Feb 2022 18:34:41 +0000 Date: Thu, 24 Feb 2022 02:34:29 +0800 From: kernel test robot To: Vijendar Mukunda , broonie@kernel.org, alsa-devel@alsa-project.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Alexander.Deucher@amd.com, Sunil-kumar.Dommati@amd.com, krisman@collabora.com, wtli@nuvoton.com, Vijendar Mukunda , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Pierre-Louis Bossart , open list Subject: Re: [PATCH 1/9] ASoC: amd: vg: fix for pm resume callback sequence Message-ID: <202202240237.RkL3TEe3-lkp@intel.com> References: <20220223071959.13539-1-Vijendar.Mukunda@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220223071959.13539-1-Vijendar.Mukunda@amd.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Vijendar, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on broonie-sound/for-next] [also build test WARNING on v5.17-rc5 next-20220222] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Vijendar-Mukunda/ASoC-amd-vg-fix-for-pm-resume-callback-sequence/20220223-152636 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next config: x86_64-randconfig-a014 (https://download.01.org/0day-ci/archive/20220224/202202240237.RkL3TEe3-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/43c5f728cf59371b29569d941fb2ef2bdc3a279d git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Vijendar-Mukunda/ASoC-amd-vg-fix-for-pm-resume-callback-sequence/20220223-152636 git checkout 43c5f728cf59371b29569d941fb2ef2bdc3a279d # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash sound/soc/amd/vangogh/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> sound/soc/amd/vangogh/acp5x-pcm-dma.c:430:20: warning: variable 'frmt_val' set but not used [-Wunused-but-set-variable] u32 val, reg_val, frmt_val; ^ >> sound/soc/amd/vangogh/acp5x-pcm-dma.c:430:11: warning: variable 'reg_val' set but not used [-Wunused-but-set-variable] u32 val, reg_val, frmt_val; ^ 2 warnings generated. vim +/frmt_val +430 sound/soc/amd/vangogh/acp5x-pcm-dma.c 361414dc1f07b7 Vijendar Mukunda 2021-07-21 425 361414dc1f07b7 Vijendar Mukunda 2021-07-21 426 static int __maybe_unused acp5x_pcm_resume(struct device *dev) 361414dc1f07b7 Vijendar Mukunda 2021-07-21 427 { 361414dc1f07b7 Vijendar Mukunda 2021-07-21 428 struct i2s_dev_data *adata; 43c5f728cf5937 Vijendar Mukunda 2022-02-23 429 struct i2s_stream_instance *rtd; 361414dc1f07b7 Vijendar Mukunda 2021-07-21 @430 u32 val, reg_val, frmt_val; 361414dc1f07b7 Vijendar Mukunda 2021-07-21 431 361414dc1f07b7 Vijendar Mukunda 2021-07-21 432 reg_val = 0; 361414dc1f07b7 Vijendar Mukunda 2021-07-21 433 frmt_val = 0; 361414dc1f07b7 Vijendar Mukunda 2021-07-21 434 adata = dev_get_drvdata(dev); 361414dc1f07b7 Vijendar Mukunda 2021-07-21 435 361414dc1f07b7 Vijendar Mukunda 2021-07-21 436 if (adata->play_stream && adata->play_stream->runtime) { 43c5f728cf5937 Vijendar Mukunda 2022-02-23 437 rtd = adata->play_stream->runtime->private_data; 361414dc1f07b7 Vijendar Mukunda 2021-07-21 438 config_acp5x_dma(rtd, SNDRV_PCM_STREAM_PLAYBACK); 43c5f728cf5937 Vijendar Mukunda 2022-02-23 439 acp_writel((rtd->xfer_resolution << 3), rtd->acp5x_base + ACP_HSTDM_ITER); 43c5f728cf5937 Vijendar Mukunda 2022-02-23 440 if (adata->tdm_mode == TDM_ENABLE) { 43c5f728cf5937 Vijendar Mukunda 2022-02-23 441 acp_writel(adata->tdm_fmt, adata->acp5x_base + ACP_HSTDM_TXFRMT); 43c5f728cf5937 Vijendar Mukunda 2022-02-23 442 val = acp_readl(adata->acp5x_base + ACP_HSTDM_ITER); 43c5f728cf5937 Vijendar Mukunda 2022-02-23 443 acp_writel(val | 0x2, adata->acp5x_base + ACP_HSTDM_ITER); 43c5f728cf5937 Vijendar Mukunda 2022-02-23 444 } 43c5f728cf5937 Vijendar Mukunda 2022-02-23 445 } 43c5f728cf5937 Vijendar Mukunda 2022-02-23 446 if (adata->i2ssp_play_stream && adata->i2ssp_play_stream->runtime) { 43c5f728cf5937 Vijendar Mukunda 2022-02-23 447 rtd = adata->i2ssp_play_stream->runtime->private_data; 43c5f728cf5937 Vijendar Mukunda 2022-02-23 448 config_acp5x_dma(rtd, SNDRV_PCM_STREAM_PLAYBACK); 43c5f728cf5937 Vijendar Mukunda 2022-02-23 449 acp_writel((rtd->xfer_resolution << 3), rtd->acp5x_base + ACP_I2STDM_ITER); 43c5f728cf5937 Vijendar Mukunda 2022-02-23 450 if (adata->tdm_mode == TDM_ENABLE) { 43c5f728cf5937 Vijendar Mukunda 2022-02-23 451 acp_writel(adata->tdm_fmt, adata->acp5x_base + ACP_I2STDM_TXFRMT); 43c5f728cf5937 Vijendar Mukunda 2022-02-23 452 val = acp_readl(adata->acp5x_base + ACP_I2STDM_ITER); 43c5f728cf5937 Vijendar Mukunda 2022-02-23 453 acp_writel(val | 0x2, adata->acp5x_base + ACP_I2STDM_ITER); 361414dc1f07b7 Vijendar Mukunda 2021-07-21 454 } 361414dc1f07b7 Vijendar Mukunda 2021-07-21 455 } 361414dc1f07b7 Vijendar Mukunda 2021-07-21 456 361414dc1f07b7 Vijendar Mukunda 2021-07-21 457 if (adata->capture_stream && adata->capture_stream->runtime) { 43c5f728cf5937 Vijendar Mukunda 2022-02-23 458 rtd = adata->capture_stream->runtime->private_data; 361414dc1f07b7 Vijendar Mukunda 2021-07-21 459 config_acp5x_dma(rtd, SNDRV_PCM_STREAM_CAPTURE); 43c5f728cf5937 Vijendar Mukunda 2022-02-23 460 acp_writel((rtd->xfer_resolution << 3), rtd->acp5x_base + ACP_HSTDM_IRER); 43c5f728cf5937 Vijendar Mukunda 2022-02-23 461 if (adata->tdm_mode == TDM_ENABLE) { 43c5f728cf5937 Vijendar Mukunda 2022-02-23 462 acp_writel(adata->tdm_fmt, adata->acp5x_base + ACP_HSTDM_RXFRMT); 43c5f728cf5937 Vijendar Mukunda 2022-02-23 463 val = acp_readl(adata->acp5x_base + ACP_HSTDM_IRER); 43c5f728cf5937 Vijendar Mukunda 2022-02-23 464 acp_writel(val | 0x2, adata->acp5x_base + ACP_HSTDM_IRER); 361414dc1f07b7 Vijendar Mukunda 2021-07-21 465 } 361414dc1f07b7 Vijendar Mukunda 2021-07-21 466 } 43c5f728cf5937 Vijendar Mukunda 2022-02-23 467 if (adata->i2ssp_capture_stream && adata->i2ssp_capture_stream->runtime) { 43c5f728cf5937 Vijendar Mukunda 2022-02-23 468 rtd = adata->i2ssp_capture_stream->runtime->private_data; 43c5f728cf5937 Vijendar Mukunda 2022-02-23 469 config_acp5x_dma(rtd, SNDRV_PCM_STREAM_CAPTURE); 43c5f728cf5937 Vijendar Mukunda 2022-02-23 470 acp_writel((rtd->xfer_resolution << 3), rtd->acp5x_base + ACP_I2STDM_IRER); 361414dc1f07b7 Vijendar Mukunda 2021-07-21 471 if (adata->tdm_mode == TDM_ENABLE) { 43c5f728cf5937 Vijendar Mukunda 2022-02-23 472 acp_writel(adata->tdm_fmt, adata->acp5x_base + ACP_I2STDM_RXFRMT); 43c5f728cf5937 Vijendar Mukunda 2022-02-23 473 val = acp_readl(adata->acp5x_base + ACP_I2STDM_IRER); 43c5f728cf5937 Vijendar Mukunda 2022-02-23 474 acp_writel(val | 0x2, adata->acp5x_base + ACP_I2STDM_IRER); 43c5f728cf5937 Vijendar Mukunda 2022-02-23 475 } 361414dc1f07b7 Vijendar Mukunda 2021-07-21 476 } 361414dc1f07b7 Vijendar Mukunda 2021-07-21 477 acp_writel(1, adata->acp5x_base + ACP_EXTERNAL_INTR_ENB); 361414dc1f07b7 Vijendar Mukunda 2021-07-21 478 return 0; 361414dc1f07b7 Vijendar Mukunda 2021-07-21 479 } 361414dc1f07b7 Vijendar Mukunda 2021-07-21 480 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org