From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CAFED1E2848; Fri, 21 Feb 2025 07:48:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.61.82.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740124137; cv=none; b=KgzOmtR6u9nnbfS2jAW0tPWaot7xkbo4EWhnzJoL7uDtAAuXGEgmq+yvogG817kDlZFtqNN1+aqzyNz5d8Ue6TqUbBcyF01IH+SvNVJggDI7X4R1HfAyiVcDQexMke5cDaGmUBHXfekANLnkbWh6QbWvpCNMdxbtbJVoC7esK9o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740124137; c=relaxed/simple; bh=ohjYPDbfPKvvy9gTuOdHFoFcKOansuTrm2/P3ZTWNKE=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=R/9PVwf/UvEGbzel1nuqWCBhCIVfyxCCMizjlWau7TZZvZhVGFrO6gkM3rd4+6q168hwvkrMf5O0AqMG2/PH2xzhiH7LMpQTYtNLb1FlgAu080k54fjBkoj+Gj0W9fC1UVPpAb5FsW6j+S6fxoR485Uo+q1ZCX5T578HZWLqQiU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=SdnP3OWg; arc=none smtp.client-ip=210.61.82.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="SdnP3OWg" X-UUID: 49dae2eef02811ef8eb9c36241bbb6fb-20250221 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=+p3u8QpwBGDD06/FRGFqUOiwVFnXjMgtFPrCz59h9Ms=; b=SdnP3OWgLqLq/qoseBLuL+rOHRMT4t8yHjUtMyhsH8iJWfas00RxBj0GTJCO3ShxY9Wh5VGH0nZT5/xzZRfJSf2pddVOuhSZrm6tZt5nA8RxrD14Sm9z1DnoLQ6UX1J44DRSbr/XXFOG/rydoVgL/7DuAXstFBpPGu+Sa0fOX5c=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.46,REQID:f00bb02c-b4ad-41f0-835e-8c8736284788,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:60aa074,CLOUDID:d5cf1529-e0f8-414e-b8c3-b75c08217be8,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0|50,EDM:-3,IP:ni l,URL:1,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES :1,SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_ULS X-UUID: 49dae2eef02811ef8eb9c36241bbb6fb-20250221 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 177390510; Fri, 21 Feb 2025 15:48:50 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by MTKMBS14N1.mediatek.inc (172.21.101.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.28; Fri, 21 Feb 2025 15:48:48 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1258.28 via Frontend Transport; Fri, 21 Feb 2025 15:48:48 +0800 From: Friday Yang To: Yong Wu , Krzysztof Kozlowski , Rob Herring , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Philipp Zabel CC: Friday Yang , , , , , Subject: [PATCH v4 0/2] Add SMI reset and clamp for MediaTek MT8188 SoC Date: Fri, 21 Feb 2025 15:48:30 +0800 Message-ID: <20250221074846.14105-1-friday.yang@mediatek.com> X-Mailer: git-send-email 2.46.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Based on tag: next-20250220, linux-next/master On the MediaTek MT8188 SoC platform, we encountered power-off failures and SMI bus hang issues during camera stress tests. The issue arises because bus glitches are sometimes produced when MTCMOS powers on or off. While this is fairly normal, the software must handle these glitches to avoid mistaking them for transaction signals. What's more, this issue emerged only after the initial upstreaming of SMI driver. The software solutions can be summarized as follows: 1. Use CLAMP to disable the SMI sub-common port after turning off the LARB CG and before turning off the LARB MTCMOS. 2. Use CLAMP to disable/enable the SMI sub-common port. 3. Implement an AXI reset for SMI LARBs. Changes v4: - Use 'devm_reset_control_get_optional_exclusive' instead of 'devm_reset_control_get'. v3: https://lore.kernel.org/lkml/20250121064934.13482-2- friday.yang@mediatek.com/ https://lore.kernel.org/lkml/20250121064934.13482-3- friday.yang@mediatek.com/ friday.yang (2): dt-bindings: memory: mediatek: Add SMI reset and clamp for MT8188 memory: mtk-smi: mt8188: Add SMI reset and clamp for MT8188 .../mediatek,smi-common.yaml | 2 + .../memory-controllers/mediatek,smi-larb.yaml | 20 +++ drivers/memory/mtk-smi.c | 141 +++++++++++++++++- 3 files changed, 159 insertions(+), 4 deletions(-) -- 2.46.0