Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3110768lqo; Tue, 21 May 2024 07:14:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVLzzoQdQpKOzWUDdMiv35DNDelt18fZQYiMbiZ3B5umxaBpEZAmU58Xq9N7L1FCQADshZXJW7qZCWtWqiUfN/hGz7ekNOT8ocl7lyFsA== X-Google-Smtp-Source: AGHT+IHcv5kUEhWnHxsWcFsJYMXuVI4vSIDvPd2ye55qAkc1fYfUWDtN7mz69HsxlVHhNrlP9t5r X-Received: by 2002:a17:902:f542:b0:1f3:61c:30a2 with SMTP id d9443c01a7336-1f3061c32afmr48542995ad.2.1716300865771; Tue, 21 May 2024 07:14:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716300865; cv=pass; d=google.com; s=arc-20160816; b=XUrNvLi1z+bmLuhZaUZ6W40e9qCnGcySu8BUCQN5v4suIO/VBrFeoJviXEis/WVYxF WYi3CW3y5ocmlik5dBGfig8OTU1vqPahONHlSmag/2DklWG4BOfLHq0YqBu6BQF+cbff YsvXW30Wsu9q2w36l5pygamwfuTOXeMY5OuCYHFm4k9Fiv4XVRk8UYyeDMp0VgpR5THz tVYVCClyX2m+GyrGddi+JE31AKKXwNEc5ZRwbfSeSGCnu/pIx+n9x4k00hd5xxqYf7Et yBNGkbPXspWTSm3x2vdJKXRz2YmvtaCGxO4m1mfTuDUx46F/5lPdXA1yqLqiWl/sMigE Ah5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=fpzRP/fArxV3YR/l+c6IwewXeF18aCwiV+yIi313MU8=; fh=AZWDGET01HMlcw4UBWCCpiWsthkafJepN0q+tIATGWE=; b=vIi9JdVyO6yn6v33m1hmWxsFr7LmWNFE6BpkWmPb8LwAf9JcNjJ4dSHulynu0u4v21 JlIm1+RIXPubzNkHQfYlxu3fdB3AtD6q0b1ajN5CX6SUWC3H7k+txTl7NX0Ua6ekAVnK Z5b2rVymN3CYy2Hk05F1DCCEupLPVqEdcUjE7K6EZFYjXbE8313GT4pThr4EyzUvWDqq Lc0VBVLI/4u0uWW0pduoXAG8DlzvpM42lrnm6wlRTohXNSnyxy4nqRgPKp9i8s8/eK9P 3nIsBF85sNJ7BJ13jpxvodz4GOcKayUIoqNGGAcSbVhLznnIOfrGet4p9SqPqJTCFwdg g9Xw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ImatxZtw; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-185069-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185069-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c03a168si51003535ad.426.2024.05.21.07.14.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 07:14:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185069-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ImatxZtw; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-185069-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185069-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BB9342842AE for ; Tue, 21 May 2024 14:13:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B39597F7C3; Tue, 21 May 2024 14:13:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="ImatxZtw" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 25347535B7; Tue, 21 May 2024 14:13:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716300803; cv=none; b=kel45+fwOqvEyKbNjhoej+4R1KJ1YJgqnkH4vPof7YgH9WvRcuX3ParWkW+uvbZsfM1YB7KbA7T2yOaN7zZi5wXEUZsnWG8HIld/6XBMShX3BEJ2GQkgpMV/6uHkEqOhXyPxQC/V5Dt34zLXlCDC/9f17zPij3VhF4VB2cy5sl8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716300803; c=relaxed/simple; bh=EGiTB2KnXAUa8A/YwetffUP329pdz69fkMErYhXo/SU=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=sUjrcQE6fq2rQnFtl/71N5JcGc0wa65v5deQkM+/0K5G/m8k05ldFNvuWiPNj/Rq9lptuQ7nu0vElWbRwKAWbqBGWEbNsE9gA10Jnb0YGk2OyyRKny8XAb4KGfnq1WJTVJhfHWU9+Vz1rI3E54+qHg72h1c9UMrruOKPsbOK1zE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=ImatxZtw; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1716300800; bh=EGiTB2KnXAUa8A/YwetffUP329pdz69fkMErYhXo/SU=; h=Date:Subject:To:References:From:In-Reply-To:From; b=ImatxZtwO3JKlDBMsO6erBrY7qjUZwihr86gTkYzumxuUoOD/+DBuCwE517WXf/x3 JuoB5k7M4kZHWiCUVqxQKJ9NB9rnBchJG8e6j2lWR1vl9fZSXycEZD2hkQTf7uLpn0 nyJLlnxbhXTWYUqc/2nDJ4AS73202ceaNlfyRhUYMTb+GFHKk15c3YCMfvsxZhLwS0 ilsXHDYxTgQo896PA/poWb2xsEMFr2jwsiz2dIUqC7irKCro9MOj1p+gqqfYl/Epji kemwWgr6lIu4I1Z0QMOr7JcqE5NOfeIA9vkQ4deV8fOoKttZGDmb2od0RYVRl7756J jUcP7PAQvo/fQ== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id AF0EF378001E; Tue, 21 May 2024 14:13:19 +0000 (UTC) Message-ID: <83bd6797-2214-4962-84a0-fadcfd130717@collabora.com> Date: Tue, 21 May 2024 16:13:19 +0200 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 2/4] arm64: dts: mediatek: mt8365: use a specific SCPSYS compatible To: Alexandre Mergnat , Krzysztof Kozlowski , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , MandyJH Liu , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20240518211159.142920-1-krzysztof.kozlowski@linaro.org> <20240518211159.142920-2-krzysztof.kozlowski@linaro.org> <2cc638ca-0add-4c8c-b844-606e22dbd253@linaro.org> <51a47736-ffe8-49e2-b798-d409ca587501@baylibre.com> <75b78eaf-9b13-477c-bf02-4e9837a25dd4@linaro.org> From: AngeloGioacchino Del Regno Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Il 21/05/24 15:26, Alexandre Mergnat ha scritto: > > > On 21/05/2024 10:22, Krzysztof Kozlowski wrote: >> On 20/05/2024 17:23, Alexandre Mergnat wrote: >>> Hello Krzysztof, >>> >>> On 20/05/2024 12:12, AngeloGioacchino Del Regno wrote: >>>> Il 20/05/24 12:03, Krzysztof Kozlowski ha scritto: >>>>> On 20/05/2024 11:55, AngeloGioacchino Del Regno wrote: >>>>>> Il 18/05/24 23:11, Krzysztof Kozlowski ha scritto: >>>>>>> SoCs should use dedicated compatibles for each of their syscon nodes to >>>>>>> precisely describe the block.  Using an incorrect compatible does not >>>>>>> allow to properly match/validate children of the syscon device.  Replace >>>>>>> SYSCFG compatible, which does not have children, with a new dedicated >>>>>>> one for SCPSYS block. >>>>>>> >>>>>>> Signed-off-by: Krzysztof Kozlowski >>>>>> Technically, that's not a SCPSYS block, but called SYSCFG in MT8365, but the >>>>>> meaning and the functioning is the same, so it's fine for me. >>>>> So there are two syscfg blocks? With exactly the same set of registers >>>>> or different? >>>>> >>>> I'm not sure about that, I don't have the MT8365 datasheet... >>>> >>>> Adding Alexandre to the loop - I think he can clarify as he should have the >>>> required documentation. >>> Unfortunately, The SCPSYS (@10006000) isn't documented, but according to the >>> functionnal >>> specification, it seems to have only one block. >>> >>> I don't have the history why SYSCFG instead of SCPSYS. >>> >>> I've tested your serie and have a regression at the kernel boot time: >>> [    7.738117] mtk-power-controller 10006000.syscon:power-controller: Failed to >>> create device link >>> (0x180) with 14000000.syscon >>> >>> It's related to your patch 3/4. >> I don't see how this could be related. The error is mentioning entirely >> different node - mmsys. No driver binds to 10006000.syscon, except the >> MFD syscon of course, so my change should have zero effect on drivers. >> >> The mtk-pm-domains (so child of patch affected in 3/4) only takes regmap >> from the parent, so the cells again are not related. >> >> Just to be sure: you are testing mainline or next, without any other >> patches on top except mine? > > I've tested on next > > * a018995ac19c (HEAD -> temp, me/temp) arm64: dts: mediatek: mt8173-elm: correct > PMIC's syscon reg entry > * 0f118436c61c arm64: dts: mediatek: mt8365: drop incorrect power-domain-cells > * d40e424fe6dc arm64: dts: mediatek: mt8365: use a specific SCPSYS compatible > * d7caa08a4a9b dt-bindings: mfd: mediatek,mt8195-scpsys: add mediatek,mt8365-scpsys > * 82d92a9a1b9e (tag: next-20240515, linux-next/master) Add linux-next specific > files for 20240515 > *   77ba09d6e7cb Merge branch 'next' of > git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux.git > |\ > | * dedcf3a8e704 tools/power turbostat: version 2024.05.10 > | * baac2f4c7f3b tools/power turbostat: Ignore pkg_cstate_limit when it is not > available > | * a0525800e2dc tools/power turbostat: Fix order of strings in > pkg_cstate_limit_strings > | * ffc2e3d90e6f tools/power turbostat: Read Package-cstates via perf > > > I did the test with and without "0f118436c61c arm64: dts: mediatek: mt8365: drop > incorrect power-domain-cells" > > Without this specific patch, no regression. > > Honestly, that makes very little sense to me - that property is useless and it's like it's never been there... at least, no MTK driver is parsing that and there's definitely no power domain in the top node (a child does, but not the parent). Is this a flaky result? Did you actually try to reboot multiple times to check if the platform is *really broken* after that commit? Sorry, it's not mistrust or anything, but I've been in this situation multiple times in the past, usually always on linux-next (because it's constantly broken :P) Cheers Angelo