From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) (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 E6C1919922D; Wed, 30 Apr 2025 09:45:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=60.244.123.138 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746006358; cv=none; b=HcVQudgVFkDTwwHci5GW80O/EqDvUIu5FqUyq6VfkI/ygKNTW+xhITZUmW+TQelELMIOG6If2j7M6BpfiCqzi0d6unzyEPL18K7m4XbshyiZdAzbMz7VPoG0pRhdkbOhV2vtrDAGSw4ouxLW0sOWOPu1sDM0clZOcoyw/NOVXRs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746006358; c=relaxed/simple; bh=lWl8r2zz5MhoQzLdQuQ6ruQoDzgLeOHyaPlZIXCJiL8=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=BibmfEJPRJ9o3YEvV+zi2X4pg3zg61Ztp1ZRb1g9g3qQUg+PZvLXWbt2qE/83k2dkn63eFV+MAED+24F8dGZwxWbb+JSJ61PX2VmeJyZ0D7RVTEzNyLigPN6DeJOdXiPpBMkwHMGaTbUK2tiJvhzFDhATbJwa626OZnfVHHzBQQ= 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=JS8HjIk1; arc=none smtp.client-ip=60.244.123.138 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="JS8HjIk1" X-UUID: e59d109425a711f0813e4fe1310efc19-20250430 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=RgF+kEyKGe4B668qjJycW9k15+dqR/9KWV3ws7/XLdc=; b=JS8HjIk1GLg/V7ljHChP7IBGFJz05/1T4nzLfvsp+srkxPFWlIGAoTrQOSNGHCQSlpA6FZVc0JGFq+40neFhvxaMa0QrTiMo/YwSW6ZNOqxKumOi9liVdQlT757h55ZDKmrAZjCFWRLdlE3HJE242kMGWwmf0xXxJvdFaAr/i4M=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.2.1,REQID:46ac65f0-0a2d-46a4-8071-ef915dcc5cbd,IP:0,UR L:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION:r elease,TS:0 X-CID-META: VersionHash:0ef645f,CLOUDID:4939c57f-99e0-42db-8543-075f2c30d73f,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_ULS,TF_CID_SPAM_SNR X-UUID: e59d109425a711f0813e4fe1310efc19-20250430 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 574614042; Wed, 30 Apr 2025 17:45:49 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs13n1.mediatek.inc (172.21.101.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.39; Wed, 30 Apr 2025 17:45:47 +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.39 via Frontend Transport; Wed, 30 Apr 2025 17:45:47 +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 v7 0/2] Add SMI reset and clamp for MediaTek MT8188 SoC Date: Wed, 30 Apr 2025 17:45:29 +0800 Message-ID: <20250430094545.23932-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-20250429, 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 v7: - Remove the 'devm_pm_runtime_enable' change. v6: https://lore.kernel.org/lkml/20250408033206.12176-2-friday.yang@mediatek.com/ https://lore.kernel.org/lkml/20250408033206.12176-3-friday.yang@mediatek.com/ https://lore.kernel.org/lkml/20250408-bulky-optimistic-lobster-69ed77@shite/ 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 | 19 +++ drivers/memory/mtk-smi.c | 133 ++++++++++++++++++ 3 files changed, 154 insertions(+) -- 2.46.0