Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp296647lqp; Wed, 22 May 2024 05:09:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUIoFczDGQVCMQo6yEMaUEfVtvRLss9vjlX4Nf/Oc54kSn7Qw0psDWEsvtcx6O5RBJTcYHnZm9VRonC4N+WTmgrUx8hZgp1EjqAbqByXQ== X-Google-Smtp-Source: AGHT+IEwSBpPUhNodl6vBCextle2CmmmvNrUpv2Fd3nN7Jfk5REFodfPQw+X5ZLoVNGToZM8NlS2 X-Received: by 2002:a17:906:bc4e:b0:a5a:896e:d0b4 with SMTP id a640c23a62f3a-a6228083fafmr118115966b.26.1716379793684; Wed, 22 May 2024 05:09:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716379793; cv=pass; d=google.com; s=arc-20160816; b=zel1U6RnswQbIzRgbPhMrsRkN7qMo4BqEl87cMcWxNQv94Tz04Y09pmftEm6nGl5xu N3k9kuNK8njh1gUctfjdtaF5a7GkzBleENQNWBGGKQRwBGe3dqqN9/Wg7xpDeMvokCP4 PR5JBkN9GJhhemJsKmk2UPkF8Zb7qqqSdvSqyDN3d+powNQHtanGjM0zEnuvh532TMq4 AN7N8GSt3ya+laBX13WuGeGjfRypkhU5jpPfPA4GjcxdMt1lZImxDm7Ab6eLDb2lqAon tg4rMRigDDbpL6E29QtkIU/gHL7+EwPEMGGVnCRdQMvs+06cMHnx7b0zh8XMoPNuk68x SvuQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=Whg0Dc1FYMXBytTq0QfKHAfxqeAkThzFIKkCrZ14fSk=; fh=SXLOuyLZosVLCxQ75XmdhY5ARpwOEQAW68fG+Jnn388=; b=lrdGL6oVed1VrUmz20khs5ifc7HyiBZwGFUEspCErr9s0r+lZgiGexDy/AaTznAHZr ceW63ewOHlzdLoXLxK1YYmtxDePqe92z+TcUxi2G6i3fmUu1nV6IW5QYRiqzuLPjN977 Uz5mAWyY/shrgbcPfgKpfhbgHys0mqZb8UsSodjwpmDp6ykTf2EKlg3xg+vNAOLyGr+B IqrlI73alBaFHIS5cTH0rHVOysJCtGQjAUTsnhlf2W24m3WTcx4/bdRMYQ4e9jJy3l15 yNwCICTR2uBAdra1DYYxfxn1rn2n/BEl3TjOdmcSWxUgAoQRUB1bBou9yebmNWAFKlhz gc/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=hEF1BFSU; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-186195-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186195-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17946294si1553927866b.55.2024.05.22.05.09.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 05:09:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186195-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=hEF1BFSU; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-186195-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186195-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4036D1F2423C for ; Wed, 22 May 2024 12:09:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A7E8D13F456; Wed, 22 May 2024 12:08:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="hEF1BFSU" Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (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 AD1CE13D8B5 for ; Wed, 22 May 2024 12:08:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716379737; cv=none; b=WA2iobd4t2/LinVHpaZZE+F0zrXjXF77eyABEjPvgqSOhsvqeiqgZcLeraJJY4iXrswOguUbxkRJQX7FTDfGBiR3gwfjpsaxvlDFNy33f1tlcy5Y5TKgS35si5k0cq+OskffhQOvUarbESVMuMIas+2Hv831O59ncLW5O13/YVM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716379737; c=relaxed/simple; bh=WC5t9WJX9lXcwGywBsZysQERtwOQQGRD77DNGgPmsMU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KdyDE3cXoJn8X2pOaptdIfE708Pf4kYqaxX6K6wYSioY/4RfYE6L/N5GyfFQ2j0IlwK87/SAhOMbvfPSCwK8h2vaMyol7SlzGKSvPbILkuTyEqHVm7Yq/5e6Kmun81XyE9WsezahQokt2C31fVUfZdDXtDL7K2q4Ju/uz1ZyM6s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=hEF1BFSU; arc=none smtp.client-ip=209.85.221.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-354cd8da8b9so697659f8f.0 for ; Wed, 22 May 2024 05:08:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1716379734; x=1716984534; 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=Whg0Dc1FYMXBytTq0QfKHAfxqeAkThzFIKkCrZ14fSk=; b=hEF1BFSUkjw7Fi6o+VHaDSlxfk+vqWBuymhjNbk9iONAJHsVaSW7O37minGc43Aa4x 9/U3S1JJMFAhGB/2tZOnd68CUv8sJccyzhPXFuwHb9aoyTQlojGyT9a1M2Sl88cOYUtI QKQQPzdjqHwB6wU7xHPTgXd22mHejFrMCCWxGy9atetjehvRy5UfPK3rCb+bTnvdjjLz 92Akn9xwY6+245axcjUlnxE/jwwyanLiIP5bJjYPEWfIi+tA3iFXvg0sOa4JLe6GwHpd Zcs+eJQIwAAuQqhrA+Q9EBYz5oTIOvARiLAHnRL0kJ9DYDIMx0WMcN9ogHQeTMP2fKBV AjjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716379734; x=1716984534; 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=Whg0Dc1FYMXBytTq0QfKHAfxqeAkThzFIKkCrZ14fSk=; b=gEcM5M2zzbdzlhobbPpTvRkM3pHPHVTKnN0DbD5I8YFrASl7MaPlYgOuv6sT9iUth2 /8LAO6cs7gNBFG6TYHcamQUM4bmWg16uVwdawdmEsd9UJ5dcUubhMuhs46LokH0JfBTq KkEmsP5h8ZNP44EFGmupGrRdsKuqIRUUojlcBhYksJQfVVOtyiaKwHW4BoypLpDI33TK NeZWKOUgb0U+Dcq6OwR0rKeD6W1SIS/AasccBlhCFVMtgdKNLWiEzLzjfJLSy43d5AzR Yn0uPHc4wnwllHCsY0IZk1Hk1knwZ0vDZIOZOl7rBBfMir6gS+fuZDNJJ0Dk5vvmq37n t40w== X-Forwarded-Encrypted: i=1; AJvYcCUm33RLnW4r1cofnpOqPpFDKnrByEC+FJwf3524KYj5QGAvUbaEFeivBBWsg4qv4ONgyUv5CGNlo8w0/7UvkR3exx29xmtwjjC6PdtA X-Gm-Message-State: AOJu0YzWGtXyoF99T0zj2uaELK5AifbdOySBUuoX5ThjhQ2FO8IFUcnq hBKhGk40bI7qI7V1xjsbLIDaZnoBUOK1lOEpX2t0ayZ6VbQwCwADT//xGJCaPxM= X-Received: by 2002:adf:efc7:0:b0:346:dace:5310 with SMTP id ffacd0b85a97d-354d8d0a89cmr1370629f8f.22.1716379734130; Wed, 22 May 2024 05:08:54 -0700 (PDT) Received: from [127.0.1.1] ([2a01:cb1d:75a:e000:82c7:3445:3b33:6c0b]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-354e720d9afsm999226f8f.113.2024.05.22.05.08.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 05:08:53 -0700 (PDT) From: Bartosz Golaszewski Date: Wed, 22 May 2024 14:08:17 +0200 Subject: [PATCH 3/5] remoteproc: qcom_q6v5_pas: Add support for SA8775p ADSP, CDSP and GPDSP 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: 7bit Message-Id: <20240522-topic-lemans-iot-remoteproc-v1-3-af9fab7b27f0@linaro.org> References: <20240522-topic-lemans-iot-remoteproc-v1-0-af9fab7b27f0@linaro.org> In-Reply-To: <20240522-topic-lemans-iot-remoteproc-v1-0-af9fab7b27f0@linaro.org> To: Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Konrad Dybcio , Manivannan Sadhasivam , Jassi Brar Cc: Bartosz Golaszewski , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Tengfei Fan , Srini Kandagatla , Alex Elder X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4035; i=bartosz.golaszewski@linaro.org; h=from:subject:message-id; bh=8QckCTJd4Kk+SVsJgULozGfhpAdR9WlTYPz4JkRMW+0=; b=owEBbQKS/ZANAwAKARGnLqAUcddyAcsmYgBmTeBQbzW7BWneOlP3mnPM8LDJSoRMlEz9Ai2zs Pn1xUhAmYmJAjMEAAEKAB0WIQQWnetsC8PEYBPSx58Rpy6gFHHXcgUCZk3gUAAKCRARpy6gFHHX cgavD/4uhgPaWaDufEei0vUaW09TZrS/WLFtDUB9dO/lusNrlAQ1tkkU9wOaaEvKx+nlOVJVX1j FxYxLSgB0tJyN/PfssOzb0Nhh7vc+3j8FoKtc3f0KPFolRbEknDK87VMJ1FqrRySjm8i/xWyTrX TdJqCErz0FvSV3BdITQJg54fFgwldS3LifgfRpo3qsypcBLWr7vn18OTh3TzMP5SW8kCjthowEo JS8zWd4Az3hdnvMx0j/4Vc3bBUylJO09PBF8pplCE+IJnP3A57zTVaHlbq67hhatbdQ0dJNldER K3MOQCCeNI3AtbM3zicxCZLJjb3Y/rnoDZuixllrNyXkSTd/IAnV8R+4ZHiUst5euyi0FYtR9yl fJdcfvB0qk2mcKnBi5gCIQrHYdbY5fxADDSd3LbowvkZ6afeAj6575vunMWdX6yWOVfxqWQ/ZBl r4lK51sX4s+7snBHoBXMValtxgq81SI0GpCE8xFjov6yMJNRh0CZDQY81gs1yEnMfLP/J0Aw9UJ 83JW2JprVFPDjHD0ifbUVbrFoKNIpNQugYPrRRPCoPdCg2Srpkh+475/lEanSNRFxXoj4RSnc4G X1+sZfaTmwGYUwmjLAMQ3ZbhQtVxnCB10wenZp9HhoA6ez/zQYsOpUsATuD/QXhxcFbgSjSp9WL 2QfRsROIfxxUMvg== X-Developer-Key: i=bartosz.golaszewski@linaro.org; a=openpgp; fpr=169DEB6C0BC3C46013D2C79F11A72EA01471D772 From: Tengfei Fan Add support for PIL loading on ADSP, CDSP0, CDSP1, GPDSP0 and GPDSP1 on SA8775p SoCs. Signed-off-by: Tengfei Fan Co-developed-by: Bartosz Golaszewski Signed-off-by: Bartosz Golaszewski --- drivers/remoteproc/qcom_q6v5_pas.c | 92 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index 54d8005d40a3..16053aa99298 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -820,6 +820,23 @@ static const struct adsp_data adsp_resource_init = { .ssctl_id = 0x14, }; +static const struct adsp_data sa8775p_adsp_resource = { + .crash_reason_smem = 423, + .firmware_name = "adsp.mdt", + .pas_id = 1, + .minidump_id = 5, + .auto_boot = true, + .proxy_pd_names = (char*[]){ + "lcx", + "lmx", + NULL + }, + .load_state = "adsp", + .ssr_name = "lpass", + .sysmon_name = "adsp", + .ssctl_id = 0x14, +}; + static const struct adsp_data sdm845_adsp_resource_init = { .crash_reason_smem = 423, .firmware_name = "adsp.mdt", @@ -933,6 +950,42 @@ static const struct adsp_data cdsp_resource_init = { .ssctl_id = 0x17, }; +static const struct adsp_data sa8775p_cdsp0_resource = { + .crash_reason_smem = 601, + .firmware_name = "cdsp0.mdt", + .pas_id = 18, + .minidump_id = 7, + .auto_boot = true, + .proxy_pd_names = (char*[]){ + "cx", + "mxc", + "nsp0", + NULL + }, + .load_state = "cdsp", + .ssr_name = "cdsp", + .sysmon_name = "cdsp", + .ssctl_id = 0x17, +}; + +static const struct adsp_data sa8775p_cdsp1_resource = { + .crash_reason_smem = 633, + .firmware_name = "cdsp1.mdt", + .pas_id = 30, + .minidump_id = 20, + .auto_boot = true, + .proxy_pd_names = (char*[]){ + "cx", + "mxc", + "nsp1", + NULL + }, + .load_state = "nsp", + .ssr_name = "cdsp1", + .sysmon_name = "cdsp1", + .ssctl_id = 0x20, +}; + static const struct adsp_data sdm845_cdsp_resource_init = { .crash_reason_smem = 601, .firmware_name = "cdsp.mdt", @@ -1074,6 +1127,40 @@ static const struct adsp_data sm8350_cdsp_resource = { .ssctl_id = 0x17, }; +static const struct adsp_data sa8775p_gpdsp0_resource = { + .crash_reason_smem = 640, + .firmware_name = "gpdsp0.mdt", + .pas_id = 39, + .minidump_id = 21, + .auto_boot = true, + .proxy_pd_names = (char*[]){ + "cx", + "mxc", + NULL + }, + .load_state = "gpdsp0", + .ssr_name = "gpdsp0", + .sysmon_name = "gpdsp0", + .ssctl_id = 0x21, +}; + +static const struct adsp_data sa8775p_gpdsp1_resource = { + .crash_reason_smem = 641, + .firmware_name = "gpdsp1.mdt", + .pas_id = 40, + .minidump_id = 22, + .auto_boot = true, + .proxy_pd_names = (char*[]){ + "cx", + "mxc", + NULL + }, + .load_state = "gpdsp1", + .ssr_name = "gpdsp1", + .sysmon_name = "gpdsp1", + .ssctl_id = 0x22, +}; + static const struct adsp_data mpss_resource_init = { .crash_reason_smem = 421, .firmware_name = "modem.mdt", @@ -1315,6 +1402,11 @@ static const struct of_device_id adsp_of_match[] = { { .compatible = "qcom,qcs404-adsp-pas", .data = &adsp_resource_init }, { .compatible = "qcom,qcs404-cdsp-pas", .data = &cdsp_resource_init }, { .compatible = "qcom,qcs404-wcss-pas", .data = &wcss_resource_init }, + { .compatible = "qcom,sa8775p-adsp-pas", .data = &sa8775p_adsp_resource}, + { .compatible = "qcom,sa8775p-cdsp0-pas", .data = &sa8775p_cdsp0_resource}, + { .compatible = "qcom,sa8775p-cdsp1-pas", .data = &sa8775p_cdsp1_resource}, + { .compatible = "qcom,sa8775p-gpdsp0-pas", .data = &sa8775p_gpdsp0_resource}, + { .compatible = "qcom,sa8775p-gpdsp1-pas", .data = &sa8775p_gpdsp1_resource}, { .compatible = "qcom,sc7180-adsp-pas", .data = &sm8250_adsp_resource}, { .compatible = "qcom,sc7180-mpss-pas", .data = &mpss_resource_init}, { .compatible = "qcom,sc7280-adsp-pas", .data = &sm8350_adsp_resource}, -- 2.43.0