Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp552169lqr; Wed, 5 Jun 2024 13:47:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXmt9WWyBVwBSyrqsz3tzg3BAiCnpnFlqqfYSZ45YxdsA4wU2bXeQDDH1cQQe5/DVtV8i0Ki+8aJymBv+Zsr+29RgIPz6Rj5K9cckAoCw== X-Google-Smtp-Source: AGHT+IF5hldJocC9U6ySNZIGzDvIsE55g7ReTIng5F/ok9tMEpCewWuuxrLi5oFa4jObAh4voiLT X-Received: by 2002:a2e:868c:0:b0:2e9:881f:66ac with SMTP id 38308e7fff4ca-2eac79bec0fmr20176691fa.21.1717620464499; Wed, 05 Jun 2024 13:47:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717620464; cv=pass; d=google.com; s=arc-20160816; b=oHfYqfG7sseo6BLx29zJiuZSQTbMC0khuvyLUonChnjAOqUgIt03a+gHXVtosb1l+n hpxI0x8kMLJPOOTlT6PwvaPZr5Usg5Yl5yXHRecNFJ+XdehGFj9jjs/d2F6E6fKP+rZP ta1zOtzbqWffbDTixxsiqq+xUtEk1GzyDzT/ogSu10+dS9zbpOCsaCDakgMy/vlvPDhp kRNMUJOu8bc3Keerxhsuz/Vg6nztEba4+yWp87jZ2rhZ5zvAQPq7SMcQik8i5/PGIeaa bHPFxC9S2w4YgaFRV9+U+peiV/reVI2UOUcHK5ZAz4F4lo/n7/ounOeqiQ4cmKSIcG88 8o6g== 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 :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=Q8NQDMCzzDNCiNLexSmAdVkOBdGVVqmgplRKL+n9YEw=; fh=+x+c8Mb7gXMHR5XmuUEapcLbhe5WaI9W9PP1auU9vpM=; b=GypNIH8YNbhiAR0j0MJSSdWeQR+ePOwL6BGFlRORm3yv8e5mNwF96EwEg5VEbl+xFU II1UHw7hjTb82vFNSYbJu3mEGzJioVrv09JUC3eDu0tD+X15F3kEoYQnmk6ChNCWDHrR xCE7ppEEt+TRFd2YweapozZV/ntlG6YlsjLVohDGK70kaNUoghhJ90G/ARuVI1oTEDxa FEnNpfkUH4y1pkGRLgL8meQ3fxhJVqaGgodFlPgEeEdqflRr5wXZjoFa7BinqrLnbZzT 9Yi9dFCLSdw6KGVgswIEBBzmJujhUUakYHYl5yMnXENmWabD9fVz9sYerRo/KYAIIRLP rzxQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ldgo0sg2; 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-203195-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203195-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 4fb4d7f45d1cf-57a31c766f2si6286721a12.367.2024.06.05.13.47.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 13:47:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203195-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=@linaro.org header.s=google header.b=ldgo0sg2; 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-203195-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203195-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 196AD1F23E53 for ; Wed, 5 Jun 2024 20:47:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A8B8E7462; Wed, 5 Jun 2024 20:47:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ldgo0sg2" Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 1098E15F3E6 for ; Wed, 5 Jun 2024 20:47:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717620437; cv=none; b=NupkT5G4r/R1QAi7HKS8fCMfoVn17jOX+KBqA3a17zps7WSb0I8oQGBosYPasT1DZcsPArJRYXi3ifjHSAMXbsbp2QbPUNbOuep2o597DFM+hXfFXEEaMO4nWIIZXUG4ZGbsjhkZPXAVlo2n3Dr+MglUr0q/mEbgjRD7R24lmkA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717620437; c=relaxed/simple; bh=8BI41uCdKVcKWitTctRndkwa07Fn4Wlt8jerH54lAjY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=oUxbYzjxztTiXkJJGpGkk8gjw2b5z1qnyvwG4lGehegxy2tOalYdwRa+2kyZx3JODqYyxbWQge6QEP3rcrcHnrdeVSxnRJL4CCnhdbcUcVEbEVAJx0v1yOtFIG8AYbda9znIeCzp7NRUBdusWXGe4Xc24CU/zsQuVGpmzxIfZtg= 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=ldgo0sg2; arc=none smtp.client-ip=209.85.218.43 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-ej1-f43.google.com with SMTP id a640c23a62f3a-a68c2915d99so23347066b.2 for ; Wed, 05 Jun 2024 13:47:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717620434; x=1718225234; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=Q8NQDMCzzDNCiNLexSmAdVkOBdGVVqmgplRKL+n9YEw=; b=ldgo0sg2MhG3W2mS/0YanwyE9XsF9Quo/L5uHQInKlMt+7Irbql+JECQO4gDwHbNRG WvLdCL+gOzPvPy3QitM1fz3PbCZI4tWbo33XzvDtVPO2dtLAzQfzosTCThzSTp95/i4N O2ov9UHWGwrjymN3cqcRJND9dy3EswIdftE2RuXPlJ3nCOQppD30Pn2zHvX3Cwv8n1Kl g4yvxjHhFMvucH+f51y1YS+mXw9hXlJnYHlVC60EftzsBHa7trSSrl4wSmUTXYChnasj ymTB28ACzXEo0NBgFp1PdDezMXog0d1o6w+c2kVfMo+MGNo+MlwDYyeL4ssp4QrIBjrC UbWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717620434; x=1718225234; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Q8NQDMCzzDNCiNLexSmAdVkOBdGVVqmgplRKL+n9YEw=; b=r/CrrVudC9EA4VZ6aZJtbGX9TZpqH9IS/AaouJO3jR4VqaJm70aL1nks+vsnHu7IA5 q70TqO5Izi61u4lwIVukVMLrAPgnea8l1x99pfkt+Bp/OiZ53im0WYmHIuHSAKY3w5N8 VMEEJMwHGITmkJ6MYecBnBHY0ZGhSFAJh2UtRRyut9LRbx6y7DMGYBnmKkZYZ6jJQL4m rVjMOmnM+KAvTvoSjUKNJEtqyuGHmVWHYz9lPkRAorcNaKvpSY5/XFXk/1YWxLMkV2kh uxxe84pcVGD1+fyVie7Txoj9dVFeElC9xgPBEAQgj900CKUoisIur86S6+B65W5FXiXZ xl1g== X-Forwarded-Encrypted: i=1; AJvYcCXwWNallcDm43u8PC6lEto5Pb68pM7EQyL17xFEsKzKXXtSqH/eEsCLLU0gGmuv7eWUQHJORBGuo8wZKiFxjQf2Q7+Q8dSpXLzgygzO X-Gm-Message-State: AOJu0YysmOHN9OCV0/uewQm6yNd7wBcfH/o2WWLDPBPljiwRxFQsoiEY qeBhFI19vbW1xNAlMxPR+6j3pfSjLdONAa7Oe+hpZVp+nCywtoHyoAzu4YemSlU= X-Received: by 2002:a17:907:3112:b0:a68:795c:8cf6 with SMTP id a640c23a62f3a-a699f87f0b1mr197933766b.38.1717620434343; Wed, 05 Jun 2024 13:47:14 -0700 (PDT) Received: from [192.168.128.139] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a68ae9bf7e2sm705653466b.213.2024.06.05.13.47.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 05 Jun 2024 13:47:13 -0700 (PDT) Message-ID: <3470decf-de1e-45d2-a871-4b77317f9018@linaro.org> Date: Wed, 5 Jun 2024 22:47:11 +0200 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] arm64: dts: qcom: sm8650-hdk: allow more IOMMU SID for the first QUP instance To: Neil Armstrong , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240605-topic-sm8650-upstream-hdk-iommu-fix-v1-1-9fd7233725fa@linaro.org> Content-Language: en-US From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1BtnnBWS06e7x/UEAguj7VHCuymVgpl2Za17d1jj81YN5Rp5L9GXxkV1 aUEwONM3eCI3qcYm5JNc5X+JthZOWsbIPSC1Rhxz3JmWIwP1udr5E3oNRe9u2LIEq+wH/toH kpPDhTeM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J9tb9U/nZvhhdfilEDLe0jKJY0RJErbdRHsalwQCrtq/1ewQpMpsRxXzAjgfRN jc4tgxRWmI+aVTzSRpywNahzZBT695hMz81cVZJoZzaV0KaMTlSnBkrviPz1nIGHYCHJxF9r cIu0GSIyUjZ/7xslxdvjpLth16H27JCWDzDqIQMtg61063gNyEyWgt1qRSaK14JIH/DoYRfn jfFQSC8bffFjat7BQGFz4ZpRavkMUFuDirn5Tf28oc5ebe2cIHp4/kajTx/7JOxWZ80U70mA cBgEeYSrYYnX+UJsSxpzLc/0sT1eRJDEhI4XIQM4ClIzpsCIN5HnVF76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <20240605-topic-sm8650-upstream-hdk-iommu-fix-v1-1-9fd7233725fa@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5.06.2024 1:43 PM, Neil Armstrong wrote: > 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 > --- there's only 24 I2C masters on this soc, surely the board designer couldn't have chosen another one for the charger.. Fixes: 01061441029e ("arm64: dts: qcom: sm8650: add support for the SM8650-HDK board") Reviewed-by: Konrad Dybcio Konrad