From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8545323E342 for ; Tue, 14 Apr 2026 05:01:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776142869; cv=none; b=D26Y3wfDQDy56jL+pyOVW0XUMyhUBrUay9FvT6z0MsctG0BKLNuJ071y967+4mUxMigZtP9S2nfvrBGPFO3Ujaza9jUG21/3Rjywl/Nn0lMAkCGiELNyi9cyUDkO98lV69d+zBUHQmBxlB+4toqYjq/BgDwT/dbDRb2PjNHJtmM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776142869; c=relaxed/simple; bh=k/iLL6i9cSC1voO1ylu5486m6OrCS5p/BDSfTTakIQI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aySrsfY7qaoxFJcizs3/qMpUOIYdBM+2c0wA/lI/h98LSZRb8tPSltm2RMlLfREwlN9Sf2v8H+ocuSAfra6ni7lRJ/JDBcLB/189asCIZNO2LEMpeBhKG6BE0FDkmCV8pKQclXXx7juYGR6YVgmnBDLTUIJsS4uj4erAeI4d7Pk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=DycRsYL0; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=cZAQh0/O; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="DycRsYL0"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="cZAQh0/O" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 63DLCZjY280927 for ; Tue, 14 Apr 2026 05:01:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= D6HQxjbDqFuXOrhbP1pIiGDugFED9NzDju7QMGKMoO8=; b=DycRsYL0sKiuQLhu tExU6NTVmWTFp2rblL0HvuAkuRhN7bxsYbVNWev+xqHIm/u0ubNkW4AL8ZTaxAbp 61Xuft3Bmlpy3VbWXnG/J4qjA3CuAGqYUo1+5JPtuuIPEIVNW0/W2LpzFDyD1ezc wk6LhneHicE4nRwjcmBU0WmwAuJx2mI5MVkBbeHCPlOp9ot7DYCTzRxNMxYPafd2 GyKrffOpG93XHzA7qBrCR9eVMm9chpzcfltOFvBpTpTT+7No98dh5nSpEs88r1Re MKFof1RkX97UUHQ9XSoEkRQc/2WUIKJM3IfC1kgjsNhi9BRPtqnxmrjXWNWeTqZT U0fomw== Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dh86vh21k-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 14 Apr 2026 05:01:07 +0000 (GMT) Received: by mail-pl1-f200.google.com with SMTP id d9443c01a7336-2b2ec17dc21so23567925ad.2 for ; Mon, 13 Apr 2026 22:01:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1776142866; x=1776747666; 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=D6HQxjbDqFuXOrhbP1pIiGDugFED9NzDju7QMGKMoO8=; b=cZAQh0/OJ/PbQtv5F3KtB6Dn3Q2ptLUbEjsuawqtIcQUo2UP/5M7sFH8FIPHN2BMaf Nw3KKGHity2EXyxbLKLfClD0glL8eSVJcpMMptP/quAlf0rYOvgBdARm/DNOtN3PLTuP 2fVQvPB8SI51L2LdAOqreMLlbRlgJs33V0Uzxrbr+4+QXJZHf6XFDQLAWbOPzqKyFRIl 29MqnRfb54k3PEng3m9oNfyb7XduiwFKsVfJL3vFrHaLzUgcCLUuseHWQMZjsxHdcPe7 /XRPBkq3aEWfy0Vb8RIPH5wdPJmSGGNXZx8TCSPDjnekJ0ZudeKF+4jreRLDmNwgKbLe haJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776142866; x=1776747666; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=D6HQxjbDqFuXOrhbP1pIiGDugFED9NzDju7QMGKMoO8=; b=fb+1qebGDaVH1TDh6d82HyjB8COW09EfIhM5d+0M+zR72sKU/exOHgCdDgHldSOwPO 0uzJark0haYIfU4pwjWCbfNX95gARfHsuSkf9z+HaJI+/B/bR+HQnOKwAZtRMaaM5uG+ 8dOiyAOVDVsh4rnVOVkAfhWFNOSIlHCHqiPpLnTOsZq4WHNXOSLvttPdIJk77GSGRtM5 bXII6r39tRdOfGmgeI3auZ/2hY4avQ4xa4gu+jWGiXpsEKIlYLtL56w9pBZ9VG3xy7yP k3e0LgH8hYfFsrblPa4QbNq+o6miQxheQU1P2Fv7G7Z+oW2cWUCxVF3rl0R3Ohw6XxLQ GiQQ== X-Forwarded-Encrypted: i=1; AFNElJ/AjjxoGE5AsL8uv6bYiGhKGqm2K0TVQUKhMqTtcrvxKhSfawturf1gleDTtTmsELR79/Np/Z5bDcEqfnU=@vger.kernel.org X-Gm-Message-State: AOJu0YzIY529SmWYtQg2Z0478Y7U75uLqmNl2blcNToS8GWzR2hJRr7+ IKeW+9BH2FJy3eCulECuE+NLi9V/A6nmIKAtZtirVvr36yk9KneFsWHMI9L6ni6JceMwtmR7jF5 t+kiTL3GwT562ziUnKlr+VnXvyZ166+Rocu7zyXc9P2aa+JMdVo5tzOAu9srcyK6kfUM= X-Gm-Gg: AeBDietNVl1K2ShKBGL259EAprK7k8fAl/xeeYLvktuqMYe/Pp87zYXw6zyG4rUxQ+8 SzHMmnCFL3SGGUgF0kFkls2yOHk5gOyTxm4hIe6pc9YvL2y1LgIPBK5mJFZwnRCzmN7dPrurE5j d/kDbMycfXKpvChZZRYQ51KFH51BBA/HNv9IiOXnUrnNhacBZ69MlI/pPSTyqJYeBUCUcZzZhNM zPRSIMkIiDkAQOEK69YAIbrYpDYDfz87m5UusJAGOmRfiwotCjhNU9qRWqQ0BEg3qJv21ezDp5R fVRTBMjQFFH1I+PkeUZCGx1HcdbRWJKKKO+077ZA13Vhgchj3TPKc4fzglY95Aex6QicDV0N2Y9 fVbMuTd4rqzvk1M4y7XR1+xS6pewRrR/2HDqfP6Lv//nyeUncvXq25fU= X-Received: by 2002:a17:903:acb:b0:2b2:4eec:980b with SMTP id d9443c01a7336-2b2d5940ec9mr167893245ad.7.1776142866281; Mon, 13 Apr 2026 22:01:06 -0700 (PDT) X-Received: by 2002:a17:903:acb:b0:2b2:4eec:980b with SMTP id d9443c01a7336-2b2d5940ec9mr167892785ad.7.1776142865748; Mon, 13 Apr 2026 22:01:05 -0700 (PDT) Received: from hu-bvisredd-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b2d4db198asm134678425ad.3.2026.04.13.22.00.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Apr 2026 22:01:05 -0700 (PDT) From: Vishnu Reddy Date: Tue, 14 Apr 2026 10:30:02 +0530 Subject: [PATCH 06/11] media: iris: Fix VM count passed to firmware 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: <20260414-glymur-v1-6-7d3d1cf57b16@oss.qualcomm.com> References: <20260414-glymur-v1-0-7d3d1cf57b16@oss.qualcomm.com> In-Reply-To: <20260414-glymur-v1-0-7d3d1cf57b16@oss.qualcomm.com> To: Bryan O'Donoghue , Vikash Garodia , Dikshita Agarwal , Abhinav Kumar , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joerg Roedel , Will Deacon , Robin Murphy , Bjorn Andersson , Konrad Dybcio , Stefan Schmidt , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, Vishnu Reddy , stable@vger.kernel.org X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1776142821; l=1298; i=busanna.reddy@oss.qualcomm.com; s=20260216; h=from:subject:message-id; bh=k/iLL6i9cSC1voO1ylu5486m6OrCS5p/BDSfTTakIQI=; b=IDdYjVDuPd+/LIcDpu0hs7fw68aCaSf03QnL4XqN5BY6zxcLwqtD/gxA7DiQ6KxUkJXTgnuW0 jr1xLST8M7hCVpscA3WPXDA5mCtM9B4AJB0TyCukzzaeACVFzkD3gOX X-Developer-Key: i=busanna.reddy@oss.qualcomm.com; a=ed25519; pk=9vmy9HahBKVAa+GBFj1yHVbz0ey/ucIs1hrlfx+qtok= X-Proofpoint-GUID: TDavc0ZpIt0g2RWxh5A1eC6sJUXKih6q X-Authority-Analysis: v=2.4 cv=cffiaHDM c=1 sm=1 tr=0 ts=69ddca13 cx=c_pps a=IZJwPbhc+fLeJZngyXXI0A==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=nrYi3PkkErC94SPB-twA:9 a=QEXdDO2ut3YA:10 a=uG9DUKGECoFWVXl0Dc02:22 X-Proofpoint-ORIG-GUID: TDavc0ZpIt0g2RWxh5A1eC6sJUXKih6q X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDE0MDA0NSBTYWx0ZWRfXx/CIfKhfiRhW N7/ioHRwUz1ncgAxBO7YHJHh2s+K2Ear1SGDDtmNwJdMVz1nkij8IcDnp8JaxP4WQ5BgXaGlojt 43naeiNR3YN0PEfV/SRT+s39kaXJ+us8XDGjGG7l4aNxbkV+CUfkx4vjLl+Q+eWbfC/9P943gf4 +bkqizFmSm+T836MB3pBai+Ryu8VtSUQX/DfbSE5Gk40cOK5SRNh48O5FIwFKxGV+CRivHydjBK v0tWwKNMyC62mfejEKAVJAgbbypx+8xCwpvSrBGsde8beBuJHk5xzFg9pyDsFvYIAjrJmBEKNy7 gZsxfk/3mWpdeZ8tug4gb8MXu+O65a02DzclF/u6EbtyFTJOiSstRrDQeLMMrFSxZAmrvRxiauV D4lWydu6LFbHXLvP9yD8pGJllxt1JsrbKZBIA5l4FAYaEcNkiP7S2xCK+c+ubccB1cc4y1ApoXJ BqPGLLwhZZlGxWyCx8w== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-04-14_01,2026-04-13_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 impostorscore=0 adultscore=0 malwarescore=0 bulkscore=0 clxscore=1015 lowpriorityscore=0 suspectscore=0 spamscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604070000 definitions=main-2604140045 On Glymur, firmware interprets the value written to CPU_CS_SCIACMDARG3 as the number of virtual machines (VMs) and internally adds 1 to it. Writing 1 causes firmware to treat it as 2 VMs. Since only one VM is required, remove this write to leave the register at its reset value of 0. This does not affect other platforms as only Glymur firmware uses this register, earlier platform firmwares ignore it. Fixes: abf5bac63f68a ("media: iris: implement the boot sequence of the firmware") Cc: stable@vger.kernel.org Signed-off-by: Vishnu Reddy --- drivers/media/platform/qcom/iris/iris_vpu_common.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/platform/qcom/iris/iris_vpu_common.c b/drivers/media/platform/qcom/iris/iris_vpu_common.c index 548e5f1727fd..bfd1e762c38e 100644 --- a/drivers/media/platform/qcom/iris/iris_vpu_common.c +++ b/drivers/media/platform/qcom/iris/iris_vpu_common.c @@ -78,7 +78,6 @@ int iris_vpu_boot_firmware(struct iris_core *core) iris_vpu_setup_ucregion_memory_map(core); writel(ctrl_init, core->reg_base + CTRL_INIT); - writel(0x1, core->reg_base + CPU_CS_SCIACMDARG3); while (!ctrl_status && count < max_tries) { ctrl_status = readl(core->reg_base + CTRL_STATUS); -- 2.34.1