From nobody Thu Nov 14 22:10:43 2024 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 4582B145FED for ; Mon, 8 Jul 2024 16:22:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720455748; cv=none; b=exTXwbm7z9k+usSZFKXRP7vQQMwNmzSDdd2krAsoujY1vG3m1MwpyEtjt8mI8QgmSsx/DbnDi6XawfvHqhBk3HP29Vcw/cvhPULqC2+xbWJq0C7pLGk6xsOJytjsK588LQ4a+06vre5sR91GXTLlgX7P+N5n8GBUZtiN6XRv+9M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720455748; c=relaxed/simple; bh=Kb4uD9b3Bqo07piU1hPIoxI9IclEtM1sO7/x460nUdw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Ef6ZqasPvEpLs6JCLN36MuELaf5nEc2gNmtciROGROuE4IocSpOg34WKrO+tk11ZDB5I+mbfhWvIoEr0F/zLW4Xmb9w0nyNOmTtyPxCtqEkbs7g55MtybjdMC87HV5FbcNMDzlwlFyxrfBvFBcIhUuyMqUauLw8zUpJlYH5VXoM= 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=VBQC9k50; arc=none smtp.client-ip=209.85.128.47 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="VBQC9k50" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-42561c16ffeso29568325e9.3 for ; Mon, 08 Jul 2024 09:22:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720455746; x=1721060546; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=4SK/XJxm6s7NT4IUsZERmOXrFSWjVcKdHe6ZMonvKwM=; b=VBQC9k50PeKAm9eTG4YIPyo78icOgl4QZRoT/usEgfJ5VwtWPjQUU5ljGxKMVMGhd5 h/qhBtlf+LQudH4FCu6TvKh3Q7ux6O5pBhe25LKRHW08rTeZaBtBrZsJW4Khhq3RZfLb FT3qFC9rXqAU8ncfB6wKxIV6JITb0YBeNUFqgXcQObX2oFa4D6gCWc5k9cTRInaaE2q4 WlpMaQ3vUS8dPGZFlrkedPfKrf8Q6fbWpDU+lxxnDUkaGAT1TEqE6WAPm4U1hZH/0ptE /BxY/hobHW66Yxw4x2tTcESwiYD2QjUosCMwF9sfDyWp9ARqxKs2eM7x+nMW1k3UQarc im6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720455746; x=1721060546; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4SK/XJxm6s7NT4IUsZERmOXrFSWjVcKdHe6ZMonvKwM=; b=mV9WlmVOHvY2B83k/E+tNZi8pKFpheQzTOAAiVswvC/t2VT3NcLj9WdEnNVdxolN9E 2lQJNzpYYEsqUZrmyNiTegVLAkIZpnI1uvJhq5z7Tpf8Icb+gjRxg8IaBWUrlNSwgemB qzou2gv0u5BMT/MuGmAPyBikfBiTNypWT3qzfUOtG28VVt1WRhPvdJ5ndC2oOqyn0MFn biywkP5bQVhor5AYwPMq73dck0tK6KYNZCo6HA03oJiucqawPdxzgNC7csf3VTqp+GIq /63nxLN5J2cPF1d5Jxn6QlDNvFv2sFprlw0R6erkKZg6UrGI/PiSeD3aFtL2Leno5Y29 G0Qw== X-Forwarded-Encrypted: i=1; AJvYcCWjdWqfy+Am1KNX7eIHZ3Gx4lGrSNWpF4LEjyGha9uyBCxagUn7S9LHYl8gxV2GmNAg3K+kevHx/wdvxMxLfQ/sF4QQhtrnNQsqy37I X-Gm-Message-State: AOJu0YwFfflakNBwt2GO76cYoU42Rh3GEtMWt775DQ0wN+QtlYAFgywy vb7+RDuUDv9pqATOQLt+d8SQ9ZU7mHpRQnrqKKfFVgPwOF15z/Iyh2PNSrUcfl4= X-Google-Smtp-Source: AGHT+IEI6Ya/+5e6ZDEl1UbGIv9OioEdW7NMFi+xRROfoN8e1S4TKdfbKmC4pzXgJ46cY+4nad1RXA== X-Received: by 2002:a05:600c:6c51:b0:426:51e8:5192 with SMTP id 5b1f17b1804b1-426709fac0bmr393605e9.41.1720455745669; Mon, 08 Jul 2024 09:22:25 -0700 (PDT) Received: from [127.0.0.2] ([2a02:2454:ff1f:b240:d237:f5ca:52b6:108c]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4266f6e0b6bsm4466875e9.3.2024.07.08.09.22.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jul 2024 09:22:25 -0700 (PDT) From: Stephan Gerhold Date: Mon, 08 Jul 2024 18:22:09 +0200 Subject: [PATCH 1/2] soc: qcom: pd_mapper: Add X1E80100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240708-x1e80100-pd-mapper-v1-1-854386af4cf5@linaro.org> References: <20240708-x1e80100-pd-mapper-v1-0-854386af4cf5@linaro.org> In-Reply-To: <20240708-x1e80100-pd-mapper-v1-0-854386af4cf5@linaro.org> To: Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov , Abel Vesa , Johan Hovold X-Mailer: b4 0.13.0 X1E80100 has the same protection domains as SM8550, except that MPSS is missing. Add it to the in-kernel pd-mapper to avoid having to run the daemon in userspace for charging and audio functionality. Signed-off-by: Stephan Gerhold Reviewed-by: Dmitry Baryshkov --- drivers/soc/qcom/qcom_pd_mapper.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/soc/qcom/qcom_pd_mapper.c b/drivers/soc/qcom/qcom_pd_m= apper.c index a4c007080665..ff6aa3e521bd 100644 --- a/drivers/soc/qcom/qcom_pd_mapper.c +++ b/drivers/soc/qcom/qcom_pd_mapper.c @@ -517,6 +517,15 @@ static const struct qcom_pdm_domain_data *sm8550_domai= ns[] =3D { NULL, }; =20 +static const struct qcom_pdm_domain_data *x1e80100_domains[] =3D { + &adsp_audio_pd, + &adsp_root_pd, + &adsp_charger_pd, + &adsp_sensor_pd, + &cdsp_root_pd, + NULL, +}; + static const struct of_device_id qcom_pdm_domains[] =3D { { .compatible =3D "qcom,apq8064", .data =3D NULL, }, { .compatible =3D "qcom,apq8074", .data =3D NULL, }, @@ -545,6 +554,7 @@ static const struct of_device_id qcom_pdm_domains[] =3D= { { .compatible =3D "qcom,sm8450", .data =3D sm8350_domains, }, { .compatible =3D "qcom,sm8550", .data =3D sm8550_domains, }, { .compatible =3D "qcom,sm8650", .data =3D sm8550_domains, }, + { .compatible =3D "qcom,x1e80100", .data =3D x1e80100_domains, }, {}, }; =20 --=20 2.44.1 From nobody Thu Nov 14 22:10:43 2024 Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) (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 1E432146000 for ; Mon, 8 Jul 2024 16:22:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720455749; cv=none; b=E55MGrSTDgPLBdxPrNOYQ0ltebPABp2sVoc3VKPjy5lnzM8IhxqfZytcLc28alGlarxIxSvpMUvSh36iPOHmZz+tW6VzIjSj4aVNbeYCrD09YbW/wTM9oT/pTmqP035JRRsPpNFzGPMeyWPVBAH7b5mtaGKtd3f1aUioF6DfqgU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720455749; c=relaxed/simple; bh=Tr62qMYfC0ruz01Dz9fIIR6iv52RtdqzIwTLr7SB9Yc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Wm7VfNoqYFZmsl+vNYRX4C97EbktI8OmL4+d69ELNAagSOcsY7VrwEag42pKSr/nXZ4oVyrRI1uBmxeuU5ek6q+/LeU6aNyFjose/MmglvfLqPMQF0RNZHqPy+KT7svRCNM3qUjFyQV8EGQA2oVvKR/x6T5ZfVW1a6nOtrQZNQc= 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=sRxpj3gI; arc=none smtp.client-ip=209.85.208.172 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="sRxpj3gI" Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-2ee88c4443eso43771161fa.3 for ; Mon, 08 Jul 2024 09:22:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1720455746; x=1721060546; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=ByBG64bnfS7ZhtMwa9DcMP0vWKacmBp78weeYmR9owI=; b=sRxpj3gImKnawMoMM5FlLO6hMCML5qtK4bwkieyzwMHCUv4Val1FD7newBsHXb3peM cy6VMATfF6wiGkbBMf5iCUwnk9ogNw3qZ2jShiCybA06mkSWium9+BWI9bFeAFt4tCUB wLOB1eS5u6mDOZZ3oJ1tsnq+Sy7Z3mOI7Uzxe5RXrXLW/Kd4xxiFDfDX8Swl1OJTub57 o5ZLTXUDDQUmBflCR0gPYGSKlrCHMMMSt+f0OQeRe1pCi/Vn9CV1newKkUS9v04qC6ER 0Cq70eXtn3NRHcK/LcVPHe10Dkyca0M7NneBLYaElskH+p+8Sf9ZJ2mDBzAVH9I3bcSu Iohw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720455746; x=1721060546; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ByBG64bnfS7ZhtMwa9DcMP0vWKacmBp78weeYmR9owI=; b=uFp8GgxoNdhR5QPt1EkP6me0JrQCpCrCJcSNgoyoi4ioWpX/BZDkefqRoqtF+0cvA7 Th+XIgWlw4EJq5WV2G1UCkKGfSedrgG/nTBMwNsnvODAIPlFnMx0Ug2bbMYRTkr2Ieo9 FHKdk95CZXPPwJCNY3TiHquNYqVSq5PXvWKEXjndgC0t2Ep/Ugc1vETIYI1K44PkctLI kPST1Q/q9I8CqUU8iaTg1kpjC+ExwhGg1lEWkKxEI+LD846vOm1rPeCx1sT/miWOt3v/ 9IamAEV62CvcLSsCC/hXvP2OadUeVB9SuFL9M9v7Z+X6AkVGJzHShMwOjHxkvSCVrxZt 8GGA== X-Forwarded-Encrypted: i=1; AJvYcCW/75FxEsZd2NkNjwNGS7kdl+FelYzJytYT7zAPuAnGuHXqIC2zdMseP8lD39bCkfEY0rfrzMNbQtGLhT80M8VmuzWOhNuCIzSLnVcD X-Gm-Message-State: AOJu0YyAU0klIJnnTOcouM0Bm37NoweNVMtOekBs4V9vc+6o/P6w6vH7 yn9SfwK5sCnkONzkkYSjUF30ZjKOHg0W8lAzzfrG6yLuzrmvsg3idhuQj8NrWEs= X-Google-Smtp-Source: AGHT+IESYBQLqgCNV7vA1SHB0F557mIv6mzPAZ83t9fxwalFBTmkwcTPFV0IYIDR+A43AcU6oVUgQg== X-Received: by 2002:a2e:7208:0:b0:2ee:8cb5:6ed9 with SMTP id 38308e7fff4ca-2eeb30febabmr1346711fa.31.1720455746233; Mon, 08 Jul 2024 09:22:26 -0700 (PDT) Received: from [127.0.0.2] ([2a02:2454:ff1f:b240:d237:f5ca:52b6:108c]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4266f6e0b6bsm4466875e9.3.2024.07.08.09.22.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jul 2024 09:22:26 -0700 (PDT) From: Stephan Gerhold Date: Mon, 08 Jul 2024 18:22:10 +0200 Subject: [PATCH 2/2] soc: qcom: pd_mapper: Add more older platforms without domains Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240708-x1e80100-pd-mapper-v1-2-854386af4cf5@linaro.org> References: <20240708-x1e80100-pd-mapper-v1-0-854386af4cf5@linaro.org> In-Reply-To: <20240708-x1e80100-pd-mapper-v1-0-854386af4cf5@linaro.org> To: Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov , Abel Vesa , Johan Hovold X-Mailer: b4 0.13.0 MSM8909, MSM8916 and MSM8939 all do not make use of pd-mapper, add them to the list similar to the other older platforms to avoid the following message in dmesg when booting: "PDM: no support for the platform, userspace daemon might be required." Signed-off-by: Stephan Gerhold Reviewed-by: Dmitry Baryshkov --- drivers/soc/qcom/qcom_pd_mapper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/soc/qcom/qcom_pd_mapper.c b/drivers/soc/qcom/qcom_pd_m= apper.c index ff6aa3e521bd..0b9a149b2953 100644 --- a/drivers/soc/qcom/qcom_pd_mapper.c +++ b/drivers/soc/qcom/qcom_pd_mapper.c @@ -527,11 +527,15 @@ static const struct qcom_pdm_domain_data *x1e80100_do= mains[] =3D { }; =20 static const struct of_device_id qcom_pdm_domains[] =3D { + { .compatible =3D "qcom,apq8016", .data =3D NULL, }, { .compatible =3D "qcom,apq8064", .data =3D NULL, }, { .compatible =3D "qcom,apq8074", .data =3D NULL, }, { .compatible =3D "qcom,apq8084", .data =3D NULL, }, { .compatible =3D "qcom,apq8096", .data =3D msm8996_domains, }, { .compatible =3D "qcom,msm8226", .data =3D NULL, }, + { .compatible =3D "qcom,msm8909", .data =3D NULL, }, + { .compatible =3D "qcom,msm8916", .data =3D NULL, }, + { .compatible =3D "qcom,msm8939", .data =3D NULL, }, { .compatible =3D "qcom,msm8974", .data =3D NULL, }, { .compatible =3D "qcom,msm8996", .data =3D msm8996_domains, }, { .compatible =3D "qcom,msm8998", .data =3D msm8998_domains, }, --=20 2.44.1