Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3236077lqo; Tue, 21 May 2024 10:28:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUE/S+NlFmRwMGJSOnKf7o+4d5zQmDKvdXWPgBlUK4Y6fK7VGqwPjTnBD6a9pmxMWK3V9rimQ8NleWTja054RzvXwwXw2JJJ0lyDPNNog== X-Google-Smtp-Source: AGHT+IHZTnMh6HOtpt25UoRYS93RZWa4OD2lj4lVtx6AsCrsmB6vQum8zgrAngnL6tf9fMhW+8qQ X-Received: by 2002:a17:903:2d1:b0:1ea:201:5843 with SMTP id d9443c01a7336-1ef43c0e8f2mr400779665ad.6.1716312513646; Tue, 21 May 2024 10:28:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716312513; cv=pass; d=google.com; s=arc-20160816; b=SFTGOGA8prPWNPCfbksvZf3vasRTFw8zIzLLndoayBRKfhDjQyioM+bXz9MnU6yEmD KGViV8mDuDDyGNwvsW9P6rX2cW8RyvyjdDBeka+02xlWM1TasB/hqUULKraT9ZDlLdU3 jO+IR9mpHhx/+1HChd7WK1z6DxYR2WHRDJwR32ktCMwybOY88WjBlb39uYtBCJCLjhrL muv12YBBaygBQSr6+kBba2DljY+7OCvTahrP0cKcnNCWvXlQaCZTdhA06ioxkACwolLR 8Sqojg95ZXQG0mDugqQ1+QjrKkvQeif/oHghbGFIlh9vpwesAc40PbQAcLNCpG0adQsL qs8w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=fTdkV/Nb+lhqigMM3Hf6hdTSrxsoAm88nN+jAsX27lc=; fh=MzUl9RE4irE4e6XwiFcvtpkVrOEfPr6hCdJ0nYHJEok=; b=eja5A+HpE4gm+dX/IBVaK1GbGScbhwKhIeXudAj4IXNN7XbxAgf9aVyIqLg3gLhDen MgXkiv51L455q+nzl2webbLgjjuRDXjhRjFVCwRmYCBTXzJTrg5Vr8uBrPN+6ru7LsNj nIJ15PXVeqg9ADnAhwGRsFsgBxiTh347pPd+vja2LNFkP5gCiVJWh5hacpypZhFXb4Io UF49nqk9l+d73cZDUyORuUkWh/IjTft58wCGw02nPRzdJsaaqfX0D6AIeDjHwOlhOawo 48XFyEwElsGYPOU1RhEmVk4bfFb9JILbQRewmZDpT6oD+9snrvQPxrI1ggUNx/kfVjSZ joag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=PdH92bx3; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-185269-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185269-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1f3034b560fsi36104135ad.98.2024.05.21.10.28.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 10:28:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185269-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=PdH92bx3; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-185269-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185269-linux.lists.archive=gmail.com@vger.kernel.org" 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 4812D281C46 for ; Tue, 21 May 2024 17:28:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A4CEB130A58; Tue, 21 May 2024 17:28:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="PdH92bx3" Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 35C031FBB for ; Tue, 21 May 2024 17:28:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716312505; cv=none; b=crHDVVH3iscKoCTa87dxxWiaIXmyEIDMnC79TXQVJrak5SdOceQqtgKmgc+lFQPQgeJsFNRrAG5T5aXPzhSn8KfRq+M71SjRdG9DNfhhepLvQJjTEfDuDQcF1MBxqbcVex3EKw7o+rlvUK+ekjPD9FwhnGR3iOiJuavvT1oKHbk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716312505; c=relaxed/simple; bh=iewX2nOR0j73EGPiG6myHQ0bEelcXu2qU5TdFDSGJLk=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=ZxzEoFiu5T/jcayRUOwQfPTe4rriW+F9fR2MBY88pDAN9Wvb+eU2UfLsz484Rt8iCMKrJeB6h5nSH3JnL02HUZrAEOYIlAc02RMh9LJupa98/oqwVIuw9UYliL3DfJcZPDGtPkN27JJqrcHya4kEVJjfkkdvbprgZh8y+KofG8o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=PdH92bx3; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-420298ff5b1so46619365e9.1 for ; Tue, 21 May 2024 10:28:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1716312501; x=1716917301; 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=fTdkV/Nb+lhqigMM3Hf6hdTSrxsoAm88nN+jAsX27lc=; b=PdH92bx39ZNiOgZdWVS6ROarFUwc+2sE05keBxSkJqidpZH99gyzqQtHxxaZvRCJP8 whugxH6BZRyhwu828X+8aTrzAd9wpJgjj+YQbW3l+ftXDseQTWDLaF2icplcLuITaw0W eW1xKlhvIi86Qrf+pzS98onZpufnYwPcesnmUtQfcuGPyGOnUtW0gyABtKmh1Xzs0lwq q0egQTDS2VXRrnTXigcTuLoVPTkn2TunHQbEFf2SHVuFp3JynaDsbioQxj1fy5BU0k7V qG73fdiO1pie5MEg4n/uvix5g61RO29y+cB42w2OEDUx6BSUnwgI16ckP73IcZRw/OVA xHdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716312501; x=1716917301; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fTdkV/Nb+lhqigMM3Hf6hdTSrxsoAm88nN+jAsX27lc=; b=flo5gRCQneNEzZkU4ioLtTh4yNP39wjLMD5dTx3HHBzI42v2u6sCf4CIXdDN1sCvg/ bkkY/aD9QVtXEH9mFvbNnWzOAsebfUUgf193sRbqDiGWSni9AyQwtJDgCOmnj76TVy3b y9zSxmvU6E7q85R14tKlDhrdaeFAcM1iBYzC6l4GD020twyU5itLnjnmaITH/vtSYyZY 6OXC6BUutYHtc7ISq9+A6J+9w7QFbVZyRunvBteGg1Z2NC7Pg9mK1lfICydrQShoFFcv hrsoMTCZyFDkQA+xziVONYHN3Ly2kKUGN45JIaQH9UWur45AO12kaHJ+DyEXDT2JWfUV e3Zg== X-Forwarded-Encrypted: i=1; AJvYcCU3wBrkMCehXBFxgW4Sy6nyGwWJft2PSHjTzv1XRaCgsM0gVhkMA6UX1C5puNUsR97FGUn8cMvqFoUYFaF32zWqsYtQ5cOX077P6xdy X-Gm-Message-State: AOJu0YzR3xnnNJhvJxs6SdQPX5lZGcgqsQeELa5Xx792BtN/hMInHV16 wRhBusCow7rq6nqkWvxygcxzdANSvWIoXG7J+k2ADnPpLqLj0rkSmuEwYrq563M= X-Received: by 2002:a05:600c:4f93:b0:41e:a90d:1216 with SMTP id 5b1f17b1804b1-41fea9324e4mr286919575e9.3.1716312501561; Tue, 21 May 2024 10:28:21 -0700 (PDT) Received: from [192.168.1.172] ([93.5.22.158]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41fe36f373fsm449115495e9.20.2024.05.21.10.28.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 May 2024 10:28:21 -0700 (PDT) Message-ID: <5b77621c-7a82-4b9f-add7-70bb9bf9de44@baylibre.com> Date: Tue, 21 May 2024 19:28:20 +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: AngeloGioacchino Del Regno , 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> <83bd6797-2214-4962-84a0-fadcfd130717@collabora.com> Content-Language: en-US From: Alexandre Mergnat In-Reply-To: <83bd6797-2214-4962-84a0-fadcfd130717@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 21/05/2024 16:13, AngeloGioacchino Del Regno wrote: > 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) MMMmm you're right, I can't reproduce this time... Sorry for the noise. Reviewed-by: Alexandre Mergnat Tested-by: Alexandre Mergnat -- Regards, Alexandre