Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2828395rdb; Mon, 12 Feb 2024 19:53:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXlo5yTvZ94tWUPqvFhlYbrpgHQ1RZ9SE3YgXbuz+Ys6JdzJUlsjA7WWdIEsk40cASugpHcckZ2ajQ3nrp9CA00Dj87uyFurWL/8Ywf0w== X-Google-Smtp-Source: AGHT+IEj2yEgheW0vCVKXP0KCshyFWdLrrb1PmxCaibq2jR5f1m0APbvjNt+7x8XkvB45SkWKhgF X-Received: by 2002:a05:6402:3594:b0:561:ce5d:1a94 with SMTP id y20-20020a056402359400b00561ce5d1a94mr2179582edc.1.1707796402421; Mon, 12 Feb 2024 19:53:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707796402; cv=pass; d=google.com; s=arc-20160816; b=F62uHO3k64X04pkMxqbFlG1cDq6qTGx6SkWVEJA2s6FXlyNilEp/A9XBkM+pmAPXmX vx7EIL+5RrvTjGocSSLcHUZ3QG3KNpQSCsGr8qsg2vseSdpzbs/r47FxAcXiRYf4Ia9m mFddlOMhFjlK8MUjo1olj/mCthU9KlBouWrAXow96+OCnSo/ImJqhZGI53G4hECrFQA/ 7ITaDrmMfabH8DtfgEHYOafTjVB9P7JYkd9gyx8jyL4/vKdcjFCE8TqFt3g0LnGkIsz8 VqsSZSfh/ZMv1ZpI8tRUv/nHbtITR7IwkaGKD9HBdpR0Pc3zA+AaVE8FEzpIwoQp49Yd /3jw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=9l07FK8iA3FHEksQiWuc9dxFREf//NDwM0FUVNltkCo=; fh=Oi4x0f5ZvNj3pwlTjQWQ/naVjAOLgPiCilASM3VfBuk=; b=yk9SGxhqNcpV39abyb5ko3SEgK7Fjh2rjaneC2Y2FPw2YglHVEWV7rM5+N6VG8mjvv e3sajGZsSyijHfBIZMNCcDJRxuj/qO49RgMv+4hHzQAtPD0g1MqPVtoG4kYCqDG7WQHN iL/eE+9f46NYyv4m+ybsMZW69P+NFzqnG/LNqbn9tfxEAMwmxrILw1EA64yGGjCdgN7g m7XZaMF7DnC5CQGQxTiZ7uIcNy1R/8BIAf/wjOAcQ+5p1uKDDE0SXXan8Yz60SHActMS uadO5OG34yUxO5+7FD9uaslzFKWa0SIc6/r29iVeFHOLwSrfSPcsfqiP9zUS0L3sSmkb qjCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=kfEOYefG; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-62922-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62922-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com X-Forwarded-Encrypted: i=2; AJvYcCV7j2B/9Q8omAzRUgvjyaEvcDigS23k4MqYdtNJBOauvE28CAJuAnOLRFNVDId7bx3T/Ol1bX4uDBCFlfuDKqhBaJC7sz16Z4xiTBaX7A== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id w3-20020a056402268300b00561f6b46b1asi147675edd.587.2024.02.12.19.53.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 19:53:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62922-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=@quicinc.com header.s=qcppdkim1 header.b=kfEOYefG; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-62922-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62922-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com 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 2BC101F23539 for ; Tue, 13 Feb 2024 03:53:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A68BAD24; Tue, 13 Feb 2024 03:53:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="kfEOYefG" 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 10B8233F2; Tue, 13 Feb 2024 03:53: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=1707796390; cv=none; b=XrNap9e4HCmuNdM9bN2DUZKGVSErcTCFtPC7H2aTZa7su5Xs0NhCrsqmZL19J2p+oKFRAY0biiZlfMKYkrxEC1Usjq73xyPZhLhW0c9XKdf/PWqJubowvMLkX9r+c3JW7Iyoli28vqpHPEWNeku24o1lGyBn+9RUkO7uAkvznss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707796390; c=relaxed/simple; bh=0vaubSGu7gCAoSqrp4lajT42MHYD3qmoQox23k+o7mM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=JgTdCPMoTh3Kj0JuYqf0r0EMfQ5rK9RjtpwWXSJUb3/jOL+TIL1VEg6eb81q5o7fvnszECzGfr1KEOoaW3yguCUs4SaXKDkYEDOqCwze879BrcUOVrqe4TUzfFao4YDZcOo7qBle2FnecMPryJcqLhTvQBJn00Q7aILE5OlINzk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=kfEOYefG; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41D2w0IX000471; Tue, 13 Feb 2024 03:52:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= qcppdkim1; bh=9l07FK8iA3FHEksQiWuc9dxFREf//NDwM0FUVNltkCo=; b=kf EOYefGbMFPyGF5PlzUHT4wpxq6T7Hy5P6MJJ9YJzmjDft0sEZN9Euhe7Irth1vdh Yb/ghLJdCKbu9b30asfvVNWw/do6BVt8qDlC9sj20AS7lPsRfZPJdRaIg6FTrRIu FI3FZrbemHv+oocCO1kNmXaerPO3vqhg/BMY64kaOnQJBijjkLvVzd6cJe0rjMRt yd9yYCoxjUxDZHiS0LMBisKek636FJTqqkMU/QSeTf4+n1DOdpyD/pwVuXnIypoY w5BPhVpcRBljRmG4sayryfQ9h6fOJgZHTDW/+jG5tk/sEo27zxa6X09CzlpuE2F1 YOjkP7+IfJyIweSd3xbg== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3w7ww5r8r4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Feb 2024 03:52:53 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41D3qDo0032663 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Feb 2024 03:52:13 GMT Received: from hu-subbaram-lv.qualcomm.com (10.49.16.6) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Mon, 12 Feb 2024 19:52:12 -0800 From: Subbaraman Narayanamurthy To: CC: , , , , , , , Subject: Re: [PATCH v3] soc: qcom: rpmh-rsc: Enhance check for VRM in-flight request Date: Mon, 12 Feb 2024 19:52:03 -0800 Message-ID: <20240213035203.2492516-1-quic_subbaram@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240212-rpmh-rsc-fixes-v3-1-1be0d705dbb5@quicinc.com> References: <20240212-rpmh-rsc-fixes-v3-1-1be0d705dbb5@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: nalasex01b.na.qualcomm.com (10.47.209.197) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: n8nnk09KEUI1r4MUoFc9KOOQmLitkdWT X-Proofpoint-ORIG-GUID: n8nnk09KEUI1r4MUoFc9KOOQmLitkdWT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-12_20,2024-02-12_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 impostorscore=0 mlxscore=0 phishscore=0 mlxlogscore=322 bulkscore=0 spamscore=0 adultscore=0 clxscore=1011 lowpriorityscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402130027 Hi Maulik, > +bool cmd_db_match_resource_addr(u32 addr1, u32 addr2) > +{ > + if (SLAVE_ID(addr1) == CMD_DB_HW_VRM > + && VRM_ADDR(addr1) == VRM_ADDR(addr2)) > + return true; > + else if (addr1 == addr2) > + return true; > + else > + return false; Minor..it would be better if you modify it as following. + if (addr1 == addr2) + return true; + else if (SLAVE_ID(addr1) == CMD_DB_HW_VRM + && VRM_ADDR(addr1) == VRM_ADDR(addr2)) + return true; + + return false; -Subbaraman -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.