From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 6B68D352C5B for ; Fri, 23 Jan 2026 10:08:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769162919; cv=none; b=U7+mLurdfjkpBTB7SaW0LnEI/YuPE722gzJQ1vohVeAXMVNOIn5XtMEjE1xEYtGjNtajNjT5yeArBJEzLedF3oSYk1/Uaf7HZsX+JRW/xysB3+Gy60NKAKo0urHTgWe0ZNHuT85KzrUhaXyFQavCofYgiupHPykt+fI3Ac6qZhk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769162919; c=relaxed/simple; bh=5hvYFZsBIqIjGbr9Ml6H1R2wYB8kasoO6MCg/Dn7FLI=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=ApHJ5bs20zz+ao56tf3yXbbO6Zo+eVJy8RiPVj1wJha0Se4CmqLF/TEVdnTD+gioRgYU7uIP/NuzZT5EeseDA9oSuSDaHZHccRsDYrXtbWjLBzMnJX3NONDUGo09w7hAsCVhSB+r0VS5EWmENK4mNjdFJvRe6oxttBb+Rg6VRkk= 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=Xt1Ois9y; arc=none smtp.client-ip=209.85.128.46 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Xt1Ois9y" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-47edffe5540so23450205e9.0 for ; Fri, 23 Jan 2026 02:08:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769162911; x=1769767711; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=WUCxTM0YhciBvG+Wu0fAfickBYXzp1a3MFu1VYYkG0Q=; b=Xt1Ois9yZd//HV5rA8kuuE6hqbyiOnRa50DQrV8kWOslLehqmdSCncizmPtefV0tVy fFfi8arK4xigLFki2/04mTFs4AW9zWsZVBu3y+Rxl0vgPgHdo7pXOWORJEsTVbXY4MFI EEzMC//qUvthBhMykRfvqdFy4GvvQLPisoc4vJ84M8Y0ES9eP6sugiMTZKvNG6rpq/10 3bw1I3fpn90wNkmUoCjF4YyZ9FFFfUn0ERPn8BTBmEo/A6k6Yoq4JurrxJEgQiEoJSUk mIYpxk+ji4DfGkJH5dBkhtBYxqr4nxlXcICtxBXQDRHI2I8ND1ciKRUPr3wwOlG9J4Yn j72Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769162911; x=1769767711; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WUCxTM0YhciBvG+Wu0fAfickBYXzp1a3MFu1VYYkG0Q=; b=O2X3oXOBCMDY6bD5M0pFPRqEgesWcPLTHPgYMF0SSOpHJWFI3uMfamDF3wpReMm4kT rES76fsUNEQM383SmjsfhbqWz/EUcfPW/HV/oivKe9uuQ2TJPLSF1eL/n5OA4IPMDOft 5yEhQsyXNaqvFa3sHeimdwyNxs4C7C3h9BZstfYTxo3VXAnNlNuuvSUcraHBZYL/F5W5 Qd7IcBMaUkbZZwjd+mzcZeDmiM0pJ33jy3fuo3gpa67vhLwo+E1xcKtI387eFjv2k7j1 YfDXUoEs4yTPym0w3L8XH8MSFt4W/o1opdVFJ5jW3j5hS097H6CnwMYFUmUwp1K6reDb e8fw== X-Forwarded-Encrypted: i=1; AJvYcCXWBH0GQDyZtPgQEQ+iMMQdH7fMk1Y/EjZe7n34m7cGg9Qv6TtKDCkc9f1kWnXRAECSxAeVeVGy2BlZoF0=@vger.kernel.org X-Gm-Message-State: AOJu0Yxqz3gOezk3p8f9MunEvXRw1SV0jS+2UMq7gAbFDMgVc3Vq3nh3 FD0/Mn2cr9nPBpkGJmjRsSzwzDoj/X+yKIw4wnGHc14IPZEz5K3cdQwv X-Gm-Gg: AZuq6aIxIuAhqwkINQ269fGr8ZJVVIMeUCckEe/WGF+sILfMjc4qcUwtuJgoW/GpV6E TODPEVbeYwDjObY08HNxXxRkQ4PI2ZZyNA5unusMHUl/ENErYqbjEDDEoL06brha/GKhgHAak07 CcRqM2eV/Qd4+uXxTFjFfShfJQ7iPyogCK5qxaczXLTZWB0ImhHYyJBL+D1h6LCaByLKiVmNtLj Rbg5N1VhV4GZdTF2nSMZheGUGJRYYkP4fGB0v6w+czgrfpCYV96jtgp0ti5YBZnrR5GKWqyoYuO eqZJ+sBZ14iKDAbeuACXY43ak2DTx28XewxHaYQbZFrvA6ib4uzBxWJjhvd18cxS8aci4Y42Uov fqHtRZr8MUgj+j5kk/gdhs8/sri5mbxM0G2CosfIaBlup/eQn3hIZTI8vXll/yOrx2yZZ9sx/b9 fZylBBwr7+8Lo3FhZwXER7AGkrR6NoMgvvxiGMfh/k6fd+ X-Received: by 2002:a05:600c:548d:b0:480:1c53:208b with SMTP id 5b1f17b1804b1-4804c9cf3c0mr41244535e9.36.1769162910876; Fri, 23 Jan 2026 02:08:30 -0800 (PST) Received: from [10.25.213.222] ([128.77.115.157]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-435b1f7b4d8sm5236892f8f.38.2026.01.23.02.08.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jan 2026 02:08:30 -0800 (PST) Message-ID: <86970fc1-c4c7-4a52-91e4-f9f93be5990b@gmail.com> Date: Fri, 23 Jan 2026 02:08:28 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] bus: imx-aipstz: set default value for opacr registers To: Shengjiu Wang , shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, laurentiu.mihalcea@nxp.com, daniel.baluta@nxp.com, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, shengjiu.wang@gmail.com References: <20260123084844.4051570-1-shengjiu.wang@nxp.com> Content-Language: en-US From: Laurentiu Mihalcea In-Reply-To: <20260123084844.4051570-1-shengjiu.wang@nxp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 1/23/2026 12:48 AM, Shengjiu Wang wrote: > The sdma script app_2_mcu needs the permission to access the peripheral > devices, so need to clear the Supervisor Protect bit of SPBA2, otherwise > the sdma script can't work. > > As the imx-aipstz is a common driver for all apis bus, so set default > value for all opacr registers, that the peripheral does not require > supervisor privilege level for accesses. > > Signed-off-by: Shengjiu Wang > --- > drivers/bus/imx-aipstz.c | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) Hey SJ, I'd be interested in explaining the situation a bit better in the commit message. The 2 most important pieces of information are, in my opinion: 1) SDMA2 transactions are set to user-mode in your particular case. 2) Your script doesn't use the peripheral interface (connected directly to SPBA), which is why the SDMA2-issued transactions are subjected to AIPSTZ5's security-related checks. Of course, please feel free to correct me if I got something wrong. Thanks, Laurentiu