From patchwork Sat Sep 7 18:48:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13795261 Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (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 ECD10947A for ; Sat, 7 Sep 2024 18:48:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725734904; cv=none; b=qz0UuALEFfs/Hl5zI87Hr6vO3kgaUSeGyaXCpbkSa9ai6eiBlUbd3POuv35wo4y/UUOfbK7EfLxUpDRQ+Cc1cZgpGOEOCVpvRIteHZN78F+SpREEQSbdEFENe69HXQVFzIadCADm1CQVJ18lp7Nd4J/MasUbZfryfIiy03r3Eg4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725734904; c=relaxed/simple; bh=j2MGhLcuLoVLWg4I2MuE84ebYpICQobwJaU/0pV8mPM=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=lKDaoKy2axXzi0Mdd6OIYfx3OWxeOkFl4sNwF3t3NRgI1nGKiDbAZtJSQ8gDxgvBiwaHoQcrFfqoQ0rRcICawVckm6A0rhwy1QsdGfl3OkDupqgYSolroS7tBZN8fbyHf//HLxk1NyuJiZ4EmNHdPb7zUdJ5UaRzeqMb6xp1drs= 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=lrSf4eKe; arc=none smtp.client-ip=209.85.208.176 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="lrSf4eKe" Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2f75c6ed397so6384871fa.2 for ; Sat, 07 Sep 2024 11:48:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725734900; x=1726339700; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=Bp2f3Cd3xUZZx5mV8or2w5DKaQxEUtdkX4okocf5JKQ=; b=lrSf4eKeCGw0Zbt9xC6Ytpy9WweIfTbF0LE9YUJF3knYkZoIf92YhVPTjIasxJEywT uVI8f64tnmx6Y8y4WgVBmtGjyAeHAbvjsqcyzii7N/YUIrPmGedJ3ooh9rbTl+XDu5QA 4Lzgmw/7AkVXaS2ZKIGDvdNbNL+8gjj0s/83IweZtq48F3seUjrpxxkxZ+Cg0PDcB/DW d8oXE3dX8+CZYkGRaM1IKmi8rzKYdJSuYkz17UakWFLkOsfkNdgNbCcAXXr7BDx3/fmm EwhzXBH7nPrSdNA6IXHwva5FQhpc4dW4Q+YWcPrImzP5FDjmMI5PJQOo1JkKq/puRUro Kxng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725734900; x=1726339700; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Bp2f3Cd3xUZZx5mV8or2w5DKaQxEUtdkX4okocf5JKQ=; b=eKQXLhIRBb9EZNFSmMZGh3HpCgFU6LA1qc/1zExseOR6A2EFetc2MxodKGpKYf7Vaa /rE9Xz6gQP5C8co/6v2KjQm+1x/njUohRgLRfcko7OiFGQtb2Rc8sjHMl83rQVeMnMOo YlNlFTH6Omd60uzip+30v68NWMQr9kmgtjqlmQcaMCut3gJ0ejzeNA1iPLw0MmRcbKtk ZFM+3pW3axelFM75UZ9Z0AYJit6jLCL2QdN2otXeqZpmuN7J5fEui6ZamDXvf7boq1Oh /p5Sxrma9DS++eoCSrDjpiT/aFyW7nVWQ7EXaFYMC7MejqGiT3feClNtVa7hZhG4VwSH 5eGg== X-Forwarded-Encrypted: i=1; AJvYcCUzPT5oVrPbPMt1EgnT2ztTjBGGmSN5yKoCi7acGsC69ysUmJBLXyKEW1niFijn2A6E/FkPayvIxLcqZCfs@vger.kernel.org X-Gm-Message-State: AOJu0YxPaQ29GIu3Z5hFZwhpWi13hBcAO2I+kwCwQWbYAld9j9bJbQ4G w0OPqpoXKIag8+fByfLylO6Gis8jhKB5E4lrhEk9YKvLGTvlndmBvb+WmnpA+0A= X-Google-Smtp-Source: AGHT+IGO0WNu0PFOcRrTUtNd5FKi2izDYAt1p3P/Gtjx0bVcVZuQjc3v0I9yiOFDdx9qV8/gFlWDQg== X-Received: by 2002:a2e:4c19:0:b0:2ef:2c0f:283e with SMTP id 38308e7fff4ca-2f751ec89bamr35682181fa.12.1725734899190; Sat, 07 Sep 2024 11:48:19 -0700 (PDT) Received: from umbar.lan ([192.130.178.90]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2f75c0b1af3sm2271861fa.129.2024.09.07.11.48.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Sep 2024 11:48:18 -0700 (PDT) From: Dmitry Baryshkov Subject: [PATCH 0/7] arm64: qcom: sda660-ifc6560: enable GPU and WiFi support Date: Sat, 07 Sep 2024 21:48:11 +0300 Message-Id: <20240907-sdm660-wifi-v1-0-e316055142f8@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAOuf3GYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDEwNj3eKUXDMzA93yzLRM3URTi1QL8ySLNPMUQyWgjoKi1LTMCrBp0bG 1tQAf8W+jXQAAAA== To: Rob Clark , Will Deacon , Robin Murphy , Joerg Roedel , AngeloGioacchino Del Regno , Konrad Dybcio , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: iommu@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, ath11k@lists.infradead.org, Kalle Valo X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1756; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=j2MGhLcuLoVLWg4I2MuE84ebYpICQobwJaU/0pV8mPM=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBm3J/s3aD3giiWStxq0Uq71R3ZAHngRAI9exh4S gvabAQfWrKJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZtyf7AAKCRCLPIo+Aiko 1WpICAClKoPTaFjA24SOWFpGheQP76MScFD8h1Cc7JoNZyGlm/c9t3JtblTAopntkVLPeWJ3e/R weoly+63q++LVTgHBNDieyj/sKCanLvE/GbQdmsaQfZUhorPpYC2nivqtNLjxEduVwDZNQ0Oivd e2g9mjU/97PGn+LIx9M4O8IzAYqd5z125QWqX2An9MwNmzZZkfYd1NsuKzQMFqXSPl0oSU8CnfQ RdgDEKYZJQfPFWInCTMpMc6D68DYCBhrkvC/z0jyFvcOeuXdAGl2xFzObLWF4eK4cWmETcQseuC NgOMqyDQ4aXXsSqhzTnVB0VWFvFE5f7tVAq6VeA9Z2nrxz51 X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Follow the MSM8998 example and limit num_context_banks on SDM630 / SDM660 platforms. This allows Linux to make use of the A2NOC and KGSL SMMU, making it possible to enable GPU and WiFi on those platforms, and, in particular, Inforce IFC6560 SBC. Note, while WiFI starts up and can work for a short amount of time, MSS starts crashing with the following message: qcom-q6v5-mss 4080000.remoteproc: fatal error received: dog_hb.c:266:Task starvation: diag, ping: 4, triage with owner(d.dump 0xde5825 Note2: DTS changes should be applied only after IOMMU chages get merged. If it is not possible to get IOMMU changes into 6.12 in its last days of the merge window, I'd kindly ask for the immutable branch from the iommu subsys to be submerged into MSM tree. Signed-off-by: Dmitry Baryshkov --- Dmitry Baryshkov (7): iommu/arm-smmu-qcom: apply num_context_bank fixes for SDM630 / SDM660 arm64: dts: qcom: sdm630: enable GPU SMMU and GPUCC arm64: dts: qcom: sda660-ifc6560: enable GPU arm64: dts: qcom: sda660-ifc6560: fix l10a voltage ranges arm64: dts: qcom: sdm630: enable A2NOC and LPASS SMMU arm64: dts: qcom: sdm630: add WiFI device node arm64: dts: qcom: sda660-ifc6560: enable mDSP and WiFi devices .../arm64/boot/dts/qcom/sda660-inforce-ifc6560.dts | 32 +++++++++++++++++- arch/arm64/boot/dts/qcom/sdm630.dtsi | 38 ++++++++++++++++++---- drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c | 11 +++++++ 3 files changed, 73 insertions(+), 8 deletions(-) --- base-commit: f70cb2e8ce3f8883a526a28f93b7744d1a1a9ce0 change-id: 20240403-sdm660-wifi-a58e87b8f7d1 Best regards,