Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp234408lqr; Wed, 5 Jun 2024 04:44:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXNIzVUGSC1IuvozHMDLJJZQKuQMGd4Aq7QJzfXkgZZ0MEu4IjkFR6irSEDm/awcY5oqYxf0QhvUJGL/+Pj59Jrf44beKXEcgGPpx6ZwQ== X-Google-Smtp-Source: AGHT+IE3mO4e6nOO7uNb/vOWGsh2x57PzhcHgwmupSRwbDnDtT7cDBQw6pfwmFhzVSFnFbmTfynK X-Received: by 2002:ac8:7f4a:0:b0:43e:1ae6:dcec with SMTP id d75a77b69052e-4402b6bda23mr30179981cf.55.1717587896702; Wed, 05 Jun 2024 04:44:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717587896; cv=pass; d=google.com; s=arc-20160816; b=gtf/EWYknEbvIG9tr50X3VxjXrXn3FW53HOPlJePfnP/Kr38s57YQBe3VGBztywU9B Lfkaf6YIkiRxxoEu4NOH0FktjzJN77wS8/V2WaTi20i5gMXyrWQksHV6pvkJrOPYPvUI tVyzL0QwoB6SpyBd5REee7+/8U0Y0hL4vTRzUNadVuX6EVxSFX1lGZrPJVmdR/cpY3Cw RpkYKxUGPrbYIslTgKMldsT+6iZs/b400iXtiDgcpYIs6+HFRtc57I2F/mKfUg1k7c8S 3W94JZ6emLncQrk3uT8ZF+VFs30di4iHuSE9kVvgPEiUXeyB/Z1cjn+a7m3Tc5rPF/z4 nkYg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=3j6XQTmAPHANze14GjdABlxabfBKYaZBM898HcyxrWw=; fh=+rbfwSOq1nIyNo6XSvqKnmcwWhxiYsGjpvHgMA7F/DU=; b=LLeQnIMKzA03i55GqNMdTmHWMlUJPh4OgvkaRj8DYVrMnyR6sPvoltiGPN5BnF1AnO qkXRoE5Pu1N5NSsB22j19ymhQwSa3CdABMunLJ4ph1OJJjTH01JEWX/IP9i5uQaFDHS5 vkDd9uWGyK29qXd1uAFwmzZOqTON5smeHWn3JPDFgqaEr12of8a4I2749kKVKsotY8SI zOdxybrZgYolzwaekZvjndcY3MBBBH8R1gGoP9Q6ubyeCh9uxTgxWJ6bW7pAaFDz4/4D Kv1D0I/2x8k4IQa/9Ga/UifNqblO9Lf2FvZ4/ifKmbzjxJuSgF+4oFE+QkeSvwX/oink xSfA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eYV0gazN; 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-202289-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202289-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43ff25843basi35024741cf.543.2024.06.05.04.44.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 04:44:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202289-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eYV0gazN; 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-202289-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202289-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5F5A21C22EB3 for ; Wed, 5 Jun 2024 11:44:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B03F193076; Wed, 5 Jun 2024 11:43:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="eYV0gazN" 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 718D984E1C for ; Wed, 5 Jun 2024 11:43:35 +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=1717587817; cv=none; b=WtFKnk6YTRBI6KyV/2QMhhIgnCyXtWXeRzj9BPmLn9pkGaapN7CbvizNIC/uuq4P6O6BSEh1gHQCyvyZY1ePCRq0ay6QexDKPMWyTMklCCVHoRvQ0gGhc0wsuqfIx0LxYh3Kv93SfsfgT9zayPpgt8TCxA2eT1vft2EDduhfEZw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717587817; c=relaxed/simple; bh=0GIPaRevDNRx/wPrHhuPUBfNf5OKm7cQz515RQ5q9iQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=Y7pu9QUmwER4r7lq2FdeckNqiWyq0xDtgseOLQo+AbrC36TplAIQgY3UQg0ZQgfjDqdzHwuZ6HHmqhzkH/wf6LgI+WuopT5OBrruKnRcubqseySY1Rq00SbbDc+95yji/VwK9aGS4AmF1xaI0j4Qs2y+Yj0C04ekiW5zYhGYCFQ= 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=eYV0gazN; arc=none smtp.client-ip=209.85.221.42 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-wr1-f42.google.com with SMTP id ffacd0b85a97d-35dc04717a1so4984613f8f.2 for ; Wed, 05 Jun 2024 04:43:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717587814; x=1718192614; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=3j6XQTmAPHANze14GjdABlxabfBKYaZBM898HcyxrWw=; b=eYV0gazNfe3MrgHj3eRSkcrH5/HMFcKXRwfLvHhl4zvUJGml7iIWDPNmU0F5OMlmdi vElgggpgyj9GzuPniq04BUQ5F+pab+zcJizvVLHI79XR+DCtO0Puq3T6NKO+91+j9E9G 8J8DKa34KOYFvkQszYtTOuQoBYiK6CbKXCpzS8/gH9fafgXHATI4W8T9OEDi/Mcm6LNs XpjKpGoL5L1A7QjiY2j4SDkS376/jfldHGRxEcYZuoPKpJ1zmb2IHXiqfmaR4PYUdY+I PHqd/9B7SX+zANE9zpPbgRyCXIceHrpIYTfpCMiRbvPOhcuYWlmHKgf5nWdVpRo0vXBk ED6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717587814; x=1718192614; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3j6XQTmAPHANze14GjdABlxabfBKYaZBM898HcyxrWw=; b=HPxMeg+enXGszrgCVLgcNygrlQI9VGubBUCj1ABIBqeA3yvuO1aU/Lh1mel5pvH6U8 n+kL37cdInLLmRq/7+zeFIXTEcmNv91tIQOOzFxQvtZfcm39JCPUPEA6yEUqzs6HNty7 VROmfUNHoM6SHfDLa2GzPgvWiR6G7wvebAxDz5evpDpw8Vs1T2FsoHom6VYTfD9iZf3s 9pmuNhWhwFOzgE5zhbPy7nnXKkaaBJqB12bHFStw5YKHmzzQ79vEoEw7R6b/cj32qm+o 0o9wQkzTMtCe+MY7VIPf5F3/W26Cv5/j+z7POFz4l+1h6IoSULIypl5ivKE7QaqmKanI NjHQ== X-Forwarded-Encrypted: i=1; AJvYcCU6vn3rbPfdFySwxCmEZ8uS8BfNY1Rx49i7Gw2or7+YnXAK2Atau9rBQsNGaAyLKX/buh++1k6cU2FUxd90fa22jy5ZrJ5nGTdWHDt4 X-Gm-Message-State: AOJu0YwNoEYPQnOMvSKk4njlXi32jzSvvIGO+fbV4GirC+NEdPW2h5v1 thZW4ef3RE6CaFL8VtRROFIkxQ9Vir2vCiM8q/MFVSAb4jd5FUtAHkmLPVOAmUg= X-Received: by 2002:adf:a1d5:0:b0:34c:f507:84b6 with SMTP id ffacd0b85a97d-35e8ef1b8dcmr1744590f8f.41.1717587813594; Wed, 05 Jun 2024 04:43:33 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35e7dea1c3esm4851633f8f.66.2024.06.05.04.43.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 04:43:33 -0700 (PDT) From: Neil Armstrong Date: Wed, 05 Jun 2024 13:43:30 +0200 Subject: [PATCH] arm64: dts: qcom: sm8650-hdk: allow more IOMMU SID for the first QUP instance 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: <20240605-topic-sm8650-upstream-hdk-iommu-fix-v1-1-9fd7233725fa@linaro.org> X-B4-Tracking: v=1; b=H4sIAGFPYGYC/x2NQQqDMBAAvyJ77sIasqHtV0oPEte6lJiQVSmIf 2/wOHOYOcCkqhg8uwOq7Gqalwb9rYM4D8tHUMfG4Mh5CsS45qIRLd0DE27F1ipDwnn8ouaUNpz 0h+xd6B8UOHqGVipVmr4ur/d5/gFeWorgdQAAAA== To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1614; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=0GIPaRevDNRx/wPrHhuPUBfNf5OKm7cQz515RQ5q9iQ=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBmYE9kMjrsnWiE7WNIsOTxBIT23x8cQNKw63fdqRV0 N8aPqS+JAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZmBPZAAKCRB33NvayMhJ0U0rEA CIAr0gdIreDfpQx/XyHMz7lbQl8x/UanWbfUkmzalRCEaEZAlBWxi/4UOCyur2voJhc/SPMaDh4495 nr0cZPngFtJcWIH+eTEFydDO9TU07k0FpJv80SJXPxtsevNbCQRCLFbaXHEZ3Mif+K2KxXQgWCWp1I OWAkX3GQmin4S//a2E47UFCAD3HKQ7ZAyoG92Lzc66WNmBj37qjY+kyqlyymSEcWKQejqc+OMrNG5t 0D38zv/WoAtiO5kHQJQUmVa7sSBmHgS5/nHaRA51VmuDbRufaUQ4O/R5RYtX1AfX9wvpVB1GtFa7io 19ngbVh+Ihj7ZIwUYZA1eB2HprmtxkNC9t4Elg+Cdlhr5Z8TWCgItSEmFD/omzS5y8GRoQNBIVX0R7 eFqxRRYI6eYnASqO9hHpwRvgLFHkvI5W9IjKQdhg5g2ovTM6YEnLQumH1/4v7wgx3R/K4OVm/YwRJ5 Z+nMnMlIGKipmAYBbImQj8qN27SIeIi3t1PNiRu3pf7JkLIEWImoXwWa3vCG/+EVgHkNbT+dla3BeL 06bPKaf2Kw2zyyuE4u2PNImyFdb6ZDajjQ8g3P78ZJX7uXk2xamuAC3ZKRFV1tCxyONxSqSBL8dtia nB8StI1o1/YhLd02p2Bs2aN4LBjOOr+bxH6qw9uE9IN3yVav/8ZEoXj9z9LA== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE When triggering I2S SE DMA transfers on the 6th Serial Element, we get some timeouts and finally a fatal SMMU crash because the I2C6 lines are shared with the secure firmware in order to handle the SMB1396 charger from the secure side. In order to make thing work flawlessly we need to allow more SIDs while running our SE DMA transfers, thus add the 0x3 mark to allow the 0xa0 SID to trigger while we trigger an 0xa3 SID from Linux. This crash doesn't happen on the QRD platform since the SE6 is configured differently, with FIFO mode disabled, thus GPI DMA is used and we cannot exercise SE DMA on this interface. The crash only happens when large tranfers occurs (>32 bytes) since the driver is designed to use the SE DMA in this case, and there's no way to mark the SE DMA as disabled or mark the GPI DMA as preferred since the FIFO/SE DMA will be used is FIFO is not disabled. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/qcom/sm8650-hdk.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8650-hdk.dts b/arch/arm64/boot/dts/qcom/sm8650-hdk.dts index 182864a3b6bd..5887d265a077 100644 --- a/arch/arm64/boot/dts/qcom/sm8650-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8650-hdk.dts @@ -991,6 +991,8 @@ &qup_i2c3_data_clk { }; &qupv3_id_0 { + iommus = <&apps_smmu 0xa3 0x3>; + status = "okay"; }; --- base-commit: 234cb065ad82915ff8d06ce01e01c3e640b674d2 change-id: 20240605-topic-sm8650-upstream-hdk-iommu-fix-542619065c45 Best regards, -- Neil Armstrong