Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2387214rdb; Mon, 5 Feb 2024 05:14:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IFEkUKEIU0/+1XcWgqSx0J+CFlw2Etow0Xb3+U+h2QBENUQXHTTZk7WAJHItmhj3BzMbnM6 X-Received: by 2002:a17:907:9713:b0:a37:aae7:998f with SMTP id jg19-20020a170907971300b00a37aae7998fmr4032802ejc.27.1707138898960; Mon, 05 Feb 2024 05:14:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707138898; cv=pass; d=google.com; s=arc-20160816; b=j/mIKv24RwFlvggQyJykvOqn8cLZd/wqcOAzv1YmaexnDasks2yr5VJJXMv8+tzRtx GAzQp/ZpdOf4YQqcmctP/kCje+WnejDSdpXe0YO3IkPf+qTa4SZdndRbzUI3xkgBOrOi ZKQF4fMXWkNace4NvSlsFrnEQ0PzB8MDo8J1wlmJNyYOYm1c4zhJ8UyGnRivPC/osfg5 Odll2TsUGJ2hlaGpAzeavWTctqWelu186YV0xU2KWhT0uDZgjZDAy7yGSWckGUoCnv+/ lFFHR3nAcWEFnPk9HmpuEhMKhK5R8ocnYcaprO/Fq3p3+TvCLNLdKHoFUALuQcp3Y6AX 1bHA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=z15Ywji8xO/ips4ilF/Fbhf+BJi3D/GTTWw3/PwWL2Y=; fh=AmnGR3xTzt06Ijr/Q27o8fu6PsuSJvzYmnz/Hnc8dCo=; b=Du0J/qsRbFopGRGCRVNyy2D4tF1m82WSVNC+7Bq/O8VvkI1v9+kEn8UAEz/7fv3yxG 0Ho4WxtfyxSw2y36feRN+sqfHN36uOG6vc9RX7LFBMDMao2LBMZVTLZmnsnrJEhBCwtl LkSabgdKIMb/sUuBlI4VMjHj+f93jeryvTUKSPaMNpT0X1VDZJjkp4LLqV+NV14KQN0k upw8Fpjy0qKD/sJvFzBtPmI1NcDzUFqqh4oa2x0THKQWrC/F/MgKjp9qXjZyCguWQBOU /EPbRWnAhAelpIW6Giwhp8nUg/pSbEbchAtcQOtMTisoU//LcSLBlQeyqRWRqv/+X92V D32Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VM5zXxfp; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-52695-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52695-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCWcFT1ZNeEykevgJWY3qfHjPGRF6emnbAsBiqMJaM+rOyTQ0oEvZkeU36OSeibEMA7DFODT/UDb82HN77D2O3vn/PhVhbyfROnjwNeVPg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ck16-20020a170906c45000b00a376329d92csi2415851ejb.408.2024.02.05.05.14.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 05:14:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52695-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VM5zXxfp; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-52695-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52695-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 43C251F24BBA for ; Mon, 5 Feb 2024 13:13:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F0B061CD0A; Mon, 5 Feb 2024 13:13:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="VM5zXxfp" Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (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 E97B61CAAF for ; Mon, 5 Feb 2024 13:13:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707138799; cv=none; b=kjqIJUr/LNRd+bB1ySotAv3jBORdAtO2Ty2nzMUm0JE/UeP8h0a/mimCwQmHYUrQaTg0SYauiSZC/EMmGv/JF8nPc3fJbGE8ZWziDwKRqzxbitghQbwmkpt5A4FdC0dadKgkZL6hHL/RP3ZB/AA4BSMJGuy4HfualY7NJXcEjqE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707138799; c=relaxed/simple; bh=J7BwmAF4DVPBkEhbPrhiuXp49SxTD95hiSL9JbWUGRc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=fbN6RS1eRp9DikVzxT6BbUYQ0JSikVTpw3nhqqQkDOml9Qw4rRYpzrJn89T/0ZseeK4LgktTZra1OszB+iHU4vNG6Ea+xoOTxREaGMsl8w/b8WzIKNy6SrowVJBpPn4TPDRAJqFevHdMe5QeBAf2/7kSORKS/FFX3KyWSKezUhA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=VM5zXxfp; arc=none smtp.client-ip=209.85.208.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-5606f2107ebso1338782a12.1 for ; Mon, 05 Feb 2024 05:13:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707138796; x=1707743596; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=z15Ywji8xO/ips4ilF/Fbhf+BJi3D/GTTWw3/PwWL2Y=; b=VM5zXxfpETE/r3hY+ccpYKvGustkysZfcmFczu+xpJkj4Ytc0n6N0B8zJHuWoUruwU im/Xn2jCQBPV8tzcP0Bd/icpVNDXMg/q9TgjaWCKa78Bj7dETkZsscDwgoti2C9nCYMN s+RyznRyK6fwSDbqkDoPW5NVhog+S4Ct0yjCWgVYZ7wbJnWCtkKtJynv1+b5uXoehe0J FclnE2v8XulzzoZgfn2pBHZH6keXtNll8GEMKvciozKhlSnmFQvX2EkaLt2RWtlh84B4 u4yi4oTxY2BUQ1uVbX+ppFegVRNfJ4fq9OkNmFWVbcaboTzHJt6MGNP2gac1U9qySEVo A1jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707138796; x=1707743596; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=z15Ywji8xO/ips4ilF/Fbhf+BJi3D/GTTWw3/PwWL2Y=; b=MxeBWzE0EyzHVwbKcCA9x+EPx0VzfTZFduM9hXlN9hXe3t8zMCVlguyuyPD0eq6lGl Bv6I7b7vcXo0NF76YfITa4fW0qhvxBSeec0x6otrUsDVo2gDTrUuCdX328+yVN0/7osb Zo4/fFbp4/jChiYOdLvURXcKGf0GCNrbrUsxbxgy9ssVZAllhaWhBMxxK3u5+VjABxej JNTu8BYSa1eUtzX92yBCSK/Cd3aQVb9LyY8XdQOKKUqs0vbuv8ZCj44LNeXVZk4qc6jh 8DIfwV9EFv3tGurZlPssv9qvFHEd4Xv2qohRVKHWwUww3Dts19JttSSx9lSQ6hQxnwMY DyDQ== X-Gm-Message-State: AOJu0Yx+YBtQDxlAtGEJuMO5VmfFMShJp9eZcj0vZVM/QwLW+rQZHaQf 5L57XkSvRmjazRsjJTUZcd1DOR+9SQe74EBTtPJqCQsQmZbXMaie//aNofySVTA= X-Received: by 2002:a50:9e81:0:b0:55f:cc6d:29b5 with SMTP id a1-20020a509e81000000b0055fcc6d29b5mr5718315edf.21.1707138796095; Mon, 05 Feb 2024 05:13:16 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCUcNhSSjC/PnZCkW+uwlSiLTPpuFGlmfBG2HSCFS3Fpep2Toym0g6k11JP69LQ55H7MnrAlvU6Vu8ml1O1XjI0YjE4zAfRw/GmuPTaZwrgJmog7Z5Ne+4TWkGcH/H7WjY8BX113C/fd08gcfNsZUS+UK6qj4onKJJI0C21tuZ6BHEWXnmBwNwgABTJXA0GnkG/d0rHE0G4LUsTpC211w0d7O/9x2QYMP/Jb8OVKONc8ZbwZYN75yNzhGwTEh0iF+wr5y2nST/uGhKMoxmF6nToo04m3FpMsAOVISIMPZYjuWco/sgVpnL7M9SmNum+AXOc/KmFDrTgRx4MMf9P0ac7fayqzXh57RgLiGKgw5KntFI+1Qpk+03HcEJV1VbC3XUzJ9BvFjNn7htM0WUXhnNMzLorTheJBRYRd+vaC+Jsz6nvpqkvP27CRv2Wnz4oTG8TqL/1jD24rl/r5zlS3mt5jmNEc7CPYK/WJPQiFzJm42VsgfdKclgzizaV6Xu3lUGdsVW0wnGT7Qcg9TVcTMXGAV6oIIRpI4hUEPcEiUvqkBgkMhISasv/UVH5b4yotI5glxAgzZZahgvU5P25Os9zJsOQ1hDTTVWu57qntfxsbN33RlnbSM21fClanNvM= Received: from [192.168.1.20] ([178.197.222.62]) by smtp.gmail.com with ESMTPSA id p26-20020a056402501a00b0056012fe9d4fsm2837141eda.76.2024.02.05.05.13.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 05 Feb 2024 05:13:15 -0800 (PST) Message-ID: <99828589-c0b5-456d-b250-6ad3e6085a91@linaro.org> Date: Mon, 5 Feb 2024 14:13:13 +0100 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 v2 1/2] soc: samsung: exynos-pmu: Add regmap support for SoCs that protect PMU regs Content-Language: en-US To: Peter Griffin Cc: arnd@arndb.de, linux@roeck-us.net, wim@linux-watchdog.org, alim.akhtar@samsung.com, jaewon02.kim@samsung.com, semen.protsenko@linaro.org, kernel-team@android.com, tudor.ambarus@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, linux-fsd@tesla.com, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org References: <20240129211912.3068411-1-peter.griffin@linaro.org> <20240129211912.3068411-2-peter.griffin@linaro.org> From: Krzysztof Kozlowski Autocrypt: addr=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kjheOD4BfWEcVUqa+XdUEciwG/SgNyxBZepj41oVq FPSVE+Ni2tNrW/e16b8mgXNngHSnbsr6pAIXZH3qFW+4TKPMGZ2rZ6zITrMip+12jgw4mGjy 5y06JZvA02rZT2k9aa7i9dUUFggaanI09jNGbRA/ABEBAAHCwXwEGAEKACYCGwwWIQSb0H4O DFH41ZZ3t1Qbk0N9O0FimwUCYDzvagUJFF+UtgAKCRAbk0N9O0Fim9JzD/0auoGtUu4mgnna oEEpQEOjgT7l9TVuO3Qa/SeH+E0m55y5Fjpp6ZToc481za3xAcxK/BtIX5Wn1mQ6+szfrJQ6 59y2io437BeuWIRjQniSxHz1kgtFECiV30yHRgOoQlzUea7FgsnuWdstgfWi6LxstswEzxLZ Sj1EqpXYZE4uLjh6dW292sO+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 01/02/2024 13:51, Peter Griffin wrote: > Hi Krzysztof, > > On Tue, 30 Jan 2024 at 16:01, Krzysztof Kozlowski > wrote: >> >> On 29/01/2024 22:19, Peter Griffin wrote: >>> Some Exynos based SoCs like Tensor gs101 protect the PMU registers for >>> security hardening reasons so that they are only accessible in el3 via an >>> SMC call. >>> >>> As most Exynos drivers that need to write PMU registers currently obtain a >>> regmap via syscon (phys, pinctrl, watchdog). Support for the above usecase >>> is implemented in this driver using a custom regmap similar to syscon to >>> handle the SMC call. Platforms that don't secure PMU registers, get a mmio >>> regmap like before. As regmaps abstract out the underlying register access >>> changes to the leaf drivers are minimal. >>> >>> A new API exynos_get_pmu_regmap_by_phandle() is provided for leaf drivers >>> that currently use syscon_regmap_lookup_by_phandle(). This also handles >>> deferred probing. >>> >>> Signed-off-by: Peter Griffin >>> --- >>> drivers/soc/samsung/exynos-pmu.c | 227 ++++++++++++++++++++++++- >>> include/linux/soc/samsung/exynos-pmu.h | 10 ++ >>> 2 files changed, 236 insertions(+), 1 deletion(-) >>> >>> diff --git a/drivers/soc/samsung/exynos-pmu.c b/drivers/soc/samsung/exynos-pmu.c >>> index 250537d7cfd6..7bcc144e53a2 100644 >>> --- a/drivers/soc/samsung/exynos-pmu.c >>> +++ b/drivers/soc/samsung/exynos-pmu.c >>> @@ -5,6 +5,7 @@ >>> // >>> // Exynos - CPU PMU(Power Management Unit) support >>> >>> +#include >>> #include >>> #include >>> #include >>> @@ -12,20 +13,159 @@ >>> #include >>> #include >>> #include >>> +#include >>> >>> #include >>> #include >>> >>> #include "exynos-pmu.h" >>> >>> +static struct platform_driver exynos_pmu_driver; >> >> I don't understand why do you need it. You can have only one >> pmu_context. The moment you probe second one, previous becomes invalid. >> >> I guess you want to parse phandle and check if just in case if it points >> to the right device, but still the original code is not ready for two >> PMU devices. I say either this problem should be solved entirely, >> allowing two devices, or just compare device node from phandle with >> device node of exynos_pmu_context->dev and return -EINVAL on mismatches. > > Apologies I didn't answer your original question. This wasn't about > having partial support for multiple pmu devices. It is being used by > driver_find_device_by_of_node() in exynos_get_pmu_regmap_by_phandle() > to determine that the exynos-pmu device has probed and therefore a > pmu_context exists and a regmap has been created and can be returned > to the caller (as opposed to doing a -EPROBE_DEFER). > > Is there some better/other API you recommend for this purpose? Just > checking pmu_context directly seems racy, so I don't think we should > do that. Hm, I don't quite get why you cannot use of_find_device_by_node()? Best regards, Krzysztof