Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp215307lqp; Thu, 4 Apr 2024 11:00:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWfDgDGi2IsGY5m05uqtL1DwfYvFYsuJYiCppRarme80fpG4aaoBs3dGg+A7TXz5tz0tCQc0V4L25KzngvU69uGqj/1TNiRK8CTxt/rJQ== X-Google-Smtp-Source: AGHT+IFisYtk9r7X/Ft7d0po/FtpQ7L4bRnP/NiVH7rfiX0dru+PBh8V7lJ1Owyzlwn638Ev0K+A X-Received: by 2002:a05:6122:d1d:b0:4d3:34b1:7211 with SMTP id az29-20020a0561220d1d00b004d334b17211mr3369522vkb.3.1712253625572; Thu, 04 Apr 2024 11:00:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712253625; cv=pass; d=google.com; s=arc-20160816; b=z1yZ+HEFyWIHRNNx/IfbzveI2Yo9L6YDAm2l8TtH62C3TfYmnl9B+WoF9Dh6Fewai+ mvhkA8/Sww9xAFiOEqSZEEHOsCv3W+1i83zSQGo922HbWaY1n+KhXxdfXMOLyLzkgsMJ uHcrvenPFo1VkePayn8Tbmh9YQMwAx+5u82DJyH9Qy32Nn7Z2JP7JS2dRTEEEc1uQc6/ ASCTPSsf6cVXmEzuqkb4N1FBWDQqHgjjMCGL5/BC2I2MFchqlZlhNdUjLlkY0+sDMoR3 owmlh63/CxmiJSLgBF8D/jaiKEnEOrMMjM/FyfZ9rzYVtG3DQFhx8C/2vb1GKcGPOm5u UAlQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id :subject:cc:to:date:from:dkim-signature; bh=OVHlK0SMG0qBoQQG+gZsRC+Q+8tU5y/gfXSNtSzLvIs=; fh=zCsyaAlm/7S7JzWe+sq55wonmqK5I4tdrsRacQDl+lk=; b=kBDsT929BAeXR9lCyhY0VG6gXb+Ha2VnHRL7EuUFIdTbhwixrYjmbcFZn+6xlXdWIF yQQISXEsuOZN42J05OQ+TpHpcqteGXErgxLDeayya6JIV3hVUcwl1YADer07Q7oxHxKR RDLaKo856Xnoy4DK+ngHrRoLd7K30uLTWOdr1LhmytoMG0Q7JF1JnAdotpkv9c/pMcyb SBHMhvut0D6cEE84GP7a938tFQmXR2n8JMdwbECkXWwWMA1SaerWq621qNKE2bgaXDpk zrnxDTkOYfkzhQx5dgHBN778pUU/yiHxsu8sqzmoaAE3idZ/y0BDyO5jLec1onseX6nP S24g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bN7JpYg6; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-131928-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131928-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id r14-20020a0c8d0e000000b0068f4b92de8esi16862463qvb.274.2024.04.04.11.00.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 11:00:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131928-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bN7JpYg6; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-131928-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131928-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E45661C27FD7 for ; Thu, 4 Apr 2024 17:59:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 47BCA130A7C; Thu, 4 Apr 2024 17:57:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bN7JpYg6" Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0F3B0136E00; Thu, 4 Apr 2024 17:57:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712253447; cv=none; b=gJPEXX728eHrmMT9I+AFuNI/pcERTmIZKtvby4DWrNC9a2sIsr8XFPZhTaZZPGhWwg4q+ZMPsrcoB3R+7II3oxaMydUxEMpKGY7VfRcgDQvY6UulMrH/SD/dSicPUIyxYaX7YyFL4OEfwBpsSXhZBvlhjBrW1gVzRuys4DvYDiU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712253447; c=relaxed/simple; bh=YhU3sEXSw0D2kdXjvQ7QXDBcZkocQIOBobWOsVQFuAY=; h=From:Date:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=qsux/G/UCZGBXkbYe2SeLjwegI7hULP0+nUspmP26sNU2q9vKIvR6cIqUfrU0IOVcCsoJ/jh94DDMKZNCdKTyDzJ5oXDLl/h0cHCB9+ENf3QEssjo/L1qja6Y4tHl8j/ME1pFBh4GdXK2lz7+F9sIp1jqsnSUIws8Kv90uT0yrc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=bN7JpYg6; arc=none smtp.client-ip=209.85.210.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-6ecbe6dc8c6so1130809b3a.1; Thu, 04 Apr 2024 10:57:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712253445; x=1712858245; darn=vger.kernel.org; h=content-transfer-encoding:content-disposition:mime-version :message-id:subject:cc:to:date:from:from:to:cc:subject:date :message-id:reply-to; bh=OVHlK0SMG0qBoQQG+gZsRC+Q+8tU5y/gfXSNtSzLvIs=; b=bN7JpYg6YSdCznRcRUDJg/4ojbKsU2zWVwPcMW8f/6zaelCwsRLKsvl6TUec8k2Ucv Ont8wfHcUYR8BmpGrS875ymWcXLqaZt6oQ90jKv46NwbY1Kg2hWz5WqQPo5Fjp6oz7BP Olzitb+W0gpmtjyov8xxaDuUVDH5b0a+W40pULYU8Iv+Sc75Oxg//NT6n5vQ1OHyK9Vm uT7/3/dxYm5xZGDmQQjN1t5oNIMIkr8Oqzznh0z2qUPyu1ItNJbCEAFWEndtGJAjL3Dm NVwCZzwMZkYDtgNAmy7e1WgUPafW98hp/5Tk2lInZLLlhB27ySJrdjn1DFcVn0inpIYV kn2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712253445; x=1712858245; h=content-transfer-encoding:content-disposition:mime-version :message-id:subject:cc:to:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OVHlK0SMG0qBoQQG+gZsRC+Q+8tU5y/gfXSNtSzLvIs=; b=cJ0puXxsRBlnv76WjK1jcqqqgJVWtS2SXIxKKC8QmPPs76LaaN44k17ywcF/0p9jhI UIL0NJ2j+3ZYa1fvu9EFbWnLLM+faE2QWqHBInL6gEiTz4Kil7dIX5aKodhs/2mXYYZ7 9U05U8SKBx6VZlTmF9wxTD4EALfqMJjQdL82a3EeB+kCXiZ/yIQ5yX5Pwnhsd0hxYtFw fYWag2GIa4DsKM9QklVINa984tZj3PB9bCRyQ9gqNQqG3kC/4u1QZU0UyVQLN5HBKOBq 0uaUOaqOraMWfQsfJ+6FzPs5yza+51ArwNnFnap1cZHOexvtsmAOCwDhQ2iUxXMDcp+7 44Qg== X-Forwarded-Encrypted: i=1; AJvYcCVrZjHbso3lItrdxKAu8HJclsei45spwP6ZqHDiQVI+IME7HrwKImshXqH9g2cv6m5wSOg0ZLHH09rNTj5oQI+Mn+qDdcsaz49I0637 X-Gm-Message-State: AOJu0YyWchelch/4q7YziLkpLzhOm2BA1wsCsvNVp8o21IBejuAf3qTr adMzvMRZ5d3zkHppJIh5NWcYm5SvW5V7nr0nGFaHlWSI812CRZ8XWEKCxOQJkdE= X-Received: by 2002:a05:6a00:3d0e:b0:6ea:f026:4003 with SMTP id lo14-20020a056a003d0e00b006eaf0264003mr3811250pfb.3.1712253444957; Thu, 04 Apr 2024 10:57:24 -0700 (PDT) Received: from joaog-nb.corp.toradex.com ([201.82.41.210]) by smtp.gmail.com with ESMTPSA id lb25-20020a056a004f1900b006ea918dab9csm14043537pfb.157.2024.04.04.10.57.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 10:57:24 -0700 (PDT) From: "=?utf-8?Q?Jo=C3=A3o_Paulo_Silva_Gon=C3=A7alves?=" X-Google-Original-From: =?utf-8?Q?Jo=C3=A3o_Paulo_Silva_Gon=C3=A7alves?= Date: Thu, 4 Apr 2024 14:57:18 -0300 To: linux-remoteproc@vger.kernel.org, imx@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Peng Fan , Fabio Estevam , Bjorn Andersson , Mathieu Poirier , Shawn Guo , Sascha Hauer , Ulf Hansson , Pengutronix Kernel Team , "Joao Paulo S. Goncalves" Subject: iMX8MP Cortex-M7 Relation to Audio Power Domain Message-ID: <20240404175718.pzcvffpef72dfuoe@joaog-nb.corp.toradex.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Hello all, I was investigating why the kernel freezes on the iMX8MP when attempting to boot the Cortex-M7 processor using the Linux remoteproc interface. However, with v6.5, it started to work, and I was able to pinpoint to commit b86c3afabb4f ('arm64: dts: imx8mp: Add SAI, SDMA, AudioMIX') [1] through bisection. The patch appeared unrelated to remoteproc, and after some time, I realized there is a connection between the functioning of remoteproc and the audio power domain. For instance, adding the audio power domain to the node in the device tree (below) made it work. The same behavior occurs in the downstream kernel. There is a workaround for the problem by setting clkim8mp.mcore_booted=1 in the kernel arguments, but this is not seen as a final solution (it seems to disable all clock gating). imx8mp-cm7 { compatible = "fsl,imx8mp-cm7"; clocks = <&clk IMX8MP_CLK_M7_CORE>; clock-names = "core", "audio"; mbox-names = "tx", "rx", "rxdb"; mboxes = <&mu 0 1 &mu 1 1 &mu 3 1>; memory-region = <&vdevbuffer>, <&vdev0vring0>, <&vdev0vring1>, <&rsc_table>, <&m7_reserved>; rsc-da = <0x55000000>; syscon = <&src>; fsl,startup-delay-ms = <500>; power-domains = <&pgc_audio>; }; Do any of you know anything about the relationship between the audio domain and the Cortex-M7 on iMX8MP? The TRM is not very clear on this, and the only thing I could find is that there are some mailboxes for Cortex-M7/Audio processor communication managed by the audio power domain. Thanks for the help! [1] https://github.com/torvalds/linux/commit/b86c3afabb4f4ea146c206508527eb2a15485bcc Regards, João Paulo S. Goncalves