lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250207083616.1442887-1-alexander.stein@ew.tq-group.com>
Date: Fri,  7 Feb 2025 09:36:05 +0100
From: Alexander Stein <alexander.stein@...tq-group.com>
To: Rob Herring <robh@...nel.org>,
	Krzysztof Kozlowski <krzk+dt@...nel.org>,
	Conor Dooley <conor+dt@...nel.org>,
	Shawn Guo <shawnguo@...nel.org>,
	Sascha Hauer <s.hauer@...gutronix.de>,
	Pengutronix Kernel Team <kernel@...gutronix.de>,
	Fabio Estevam <festevam@...il.com>,
	Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
Cc: Alexander Stein <alexander.stein@...tq-group.com>,
	devicetree@...r.kernel.org,
	imx@...ts.linux.dev,
	linux-arm-kernel@...ts.infradead.org,
	linux-kernel@...r.kernel.org
Subject: [PATCH v2 00/10] Make i.MX8M OCOTP work as accessing controller

Hi,

inspired by [1] this adds the accessing controller feature to i.MX8M.
The OCOTP eFuse has bits which can disable particular peripherals, such as
GPU, MIPI-DSI oder USB.

In OCOTP driver, the nodes under "/" will be iterated, and checked
if property "#access-controllers" exsits. If not allow access, detach
the node.

I successfully used this on a i.MX8M Nano DualLite which has GPU disabled.
Without this patchset the default DT completly freezes the SoC if GPU
is accessed.
Using this patchset the GPU is disabled without any DT modification from
bootloader:
> imx_ocotp 30350000.efuse: /soc@...pu@...00000: disabled by fuse, device driver will not be probed

Changes in v2:
* Encode all addresses and bit offsets into DT directly
  This eliminates the need for platform specific code in imx-ocotp
* Added support for imx8mm, imx8mp and imx8mq as well

Best regards,
Alexander

[1] https://lore.kernel.org/all/20250204-imx-ocotp-v8-0-01be4a4bb045@nxp.com/

Alexander Stein (10):
  nvmem: imx-ocotp: Sort header alphabetically
  nvmem: imx-ocotp: Support accessing controller for i.MX8M
  arm64: dts: imx8mn: Add i.MX8M Nano OCOTP disable fuse definitions
  arm64: dts: imx8mn: Add access-controller references
  arm64: dts: imx8mp: Add i.MX8M Plus OCOTP disable fuse definitions
  arm64: dts: imx8mp: Add access-controller references
  arm64: dts: imx8mm: Add i.MX8M Mini OCOTP disable fuse definitions
  arm64: dts: imx8mm: Add access-controller references
  arm64: dts: imx8mq: Add i.MX8M OCOTP disable fuse definitions
  arm64: dts: imx8mq: Add access-controller references

 arch/arm64/boot/dts/freescale/imx8mm-ocotp.h | 31 ++++++++
 arch/arm64/boot/dts/freescale/imx8mm.dtsi    | 13 ++++
 arch/arm64/boot/dts/freescale/imx8mn-ocotp.h | 26 +++++++
 arch/arm64/boot/dts/freescale/imx8mn.dtsi    |  8 +++
 arch/arm64/boot/dts/freescale/imx8mp-ocotp.h | 42 +++++++++++
 arch/arm64/boot/dts/freescale/imx8mp.dtsi    | 26 +++++++
 arch/arm64/boot/dts/freescale/imx8mq-ocotp.h | 37 ++++++++++
 arch/arm64/boot/dts/freescale/imx8mq.dtsi    | 15 ++++
 drivers/nvmem/Kconfig                        |  3 +
 drivers/nvmem/imx-ocotp.c                    | 76 +++++++++++++++++++-
 10 files changed, 275 insertions(+), 2 deletions(-)
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-ocotp.h
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mn-ocotp.h
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-ocotp.h
 create mode 100644 arch/arm64/boot/dts/freescale/imx8mq-ocotp.h

-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ