Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp228647rdb; Wed, 14 Feb 2024 20:04:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWBTCIVL8SUG7fqD4UMknkCofUiaPB2KMADEthHjswTekBsis6IotDv4tsdj9yQ6HJzMIIEHLdpOnFDrXcGBSdR7N4ZwVWqB9Jbov9GHA== X-Google-Smtp-Source: AGHT+IGNr753q0pAIeL9kpSUDKeGwbBwYO+6vrRmNtgp8OVzfaSd/cvx99YjFlVmmN9TuZlNX4N+ X-Received: by 2002:a05:6402:1843:b0:561:e966:3a28 with SMTP id v3-20020a056402184300b00561e9663a28mr558054edy.12.1707969871223; Wed, 14 Feb 2024 20:04:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707969871; cv=pass; d=google.com; s=arc-20160816; b=ugqoeW3ndx5OCxJzOu7ljWStXXYUgFmFBgLOuRG/qr0fBa1FQ3nMB2sFEZFs4zJ1Wy MXvIzWnshPRaXo83+8HRqtAa9i5L4HeN+y3jXGdXkibomVmzW9+YFGaRkfU7l6dldCSL TCoIuiNas+mTNAJzy3QYrNKWCstqAgK0Yva2qQLzbRNOQyZPuVx9adk6tgjr2CpPXxB4 NcuW/9hkqqcXhHodIOlj3Pi+YrhEu8uUwwu0dWZt9TvtROCjqHND0Z1CSezADlRXAD2R 7Izel1d3zPIAea/E/GLWI6Kt5yi7/sbod0wgjGmoR8/IRttGne3JoyLSFFm0Z15fQRo1 Uwhg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=f7k56waSwZU1/raGuiM6+PWOOQ15l5pdc9NJUhAc9Kk=; fh=KeBufhZhK9zs3qvz9yqICAOrfBSoaNVpr0Soi+rURe4=; b=kiXMfSP/VsYOzHXKEbySqzEdBQwfhbc+NRG9Yp3ZBl4HMapkFyxZ2s5+1ZXEK+Dzk+ E6RSHSUsQtWGc/6f5BPC1Nke5mjkqOGIBrOiOalLQcYNx6IAHkTH+cQHWHRIOKz/bxWj GDWknUh4g4ZNSq9GJPXRwxW+79m+zGck6TtIEwhqcU5GkR0eXwiagvH4iRqcQu00CI1O wTRNw6G4taS2KYULJvs1Tjr0Z4GyU4IAD4fKcGvzjxKIpC5XYnoofh/pe7t/NF56+Yee MVSni+Ct8vkZ9VFaukHn661D4s3x/LsOFa8DzsjyjFUIrquarUKIuopv4D8F1MIaxOrS nwRw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="ZYs0/pYw"; 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-66275-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66275-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r14-20020aa7c14e000000b00562183c45f6si236680edp.453.2024.02.14.20.04.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 20:04:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66275-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="ZYs0/pYw"; 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-66275-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66275-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 E49F81F28523 for ; Thu, 15 Feb 2024 04:04:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5FC8079DF; Thu, 15 Feb 2024 04:04:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="ZYs0/pYw" 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 0E5B73FC7; Thu, 15 Feb 2024 04:04:17 +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=1707969859; cv=none; b=geKuyBaP0xQQrT5GpOJe/MeXiev4+WXA/oPu4pT19tSSDtW6yxDzpwRZUmZGs01sbjPhsT/kaVGK0ylGYrMfgjrxei77KgRVeflP11UFV9cchYatTiN6WRK2UG1qdm5kK5UROt2MYTvgM5Nim5ysA1r7HsQ/IvXa6Txs1+BsFsI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707969859; c=relaxed/simple; bh=+UkB74KnQ+CPKtYsHqYIdrZogH/5dsaFX79eK8yEAHI=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=H5QJ5vaCIUx92MgssWYlfTWwpZ4wzdpIsT61wqbi59ufll9CI/aDI8ahKTe6NVwI98ReeJW9jtbKr42S1FNt5bc911akVTVWpWzAvmBf/9dBQ/BeaXVcCsgM4bbaDoI8xk7mSjrT4nc8n1wH0k1e4WzdgvRqfVv20AKR+5iyDP8= 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=ZYs0/pYw; 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 41F3wlU0019253; Thu, 15 Feb 2024 04:04:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=f7k56waSwZU1/raGuiM6+PWOOQ15l5pdc9NJUhAc9Kk=; b=ZY s0/pYwUXeDRjUzRROZjim2DFkFrplE0x0J3T6S6KhmeKkoUJAIISzZE6TXvAHJYf qIvZIwkOtBgKHvDOWJJ/XRlWxUdHjwP2YeGYvl1Nr5a4EyIBnUVOjAatZx7HFjQc 0QjYR6RP0aPldi1eW//eqSj0ltdOXuAK3o9G0DSOyrszu6mIMrXQqSwcmFUWuvwV BogpQv/oh43ZgU6BsTJTRv24XT6wdupctB0v3qpYzXmXbsS3sgQsVEX95RdwaPaR wkR01xcus9aYAPPVx4Zw8dby4Je3a6d3l7BnWgJgZqVtEa/5k4vwdsu/32GlFiR+ lHyuUlX28UdfZEvw7dpA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3w9435rqm2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Feb 2024 04:04:14 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41F44D3Y031042 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Feb 2024 04:04:13 GMT Received: from [10.217.198.224] (10.80.80.8) 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; Wed, 14 Feb 2024 20:04:10 -0800 Message-ID: Date: Thu, 15 Feb 2024 09:34:10 +0530 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 v3] soc: qcom: rpmh-rsc: Enhance check for VRM in-flight request Content-Language: en-US To: Bjorn Andersson , Konrad Dybcio , , , , , References: <20240212-rpmh-rsc-fixes-v3-1-1be0d705dbb5@quicinc.com> <20240214105605460-0800.eberman@hu-eberman-lv.qualcomm.com> From: "Maulik Shah (mkshah)" In-Reply-To: <20240214105605460-0800.eberman@hu-eberman-lv.qualcomm.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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: Qt-S78wifUcsIkfI_b55f_P2g-n0psS5 X-Proofpoint-ORIG-GUID: Qt-S78wifUcsIkfI_b55f_P2g-n0psS5 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-15_03,2024-02-14_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 lowpriorityscore=0 mlxscore=0 suspectscore=0 spamscore=0 priorityscore=1501 malwarescore=0 adultscore=0 bulkscore=0 mlxlogscore=999 clxscore=1015 phishscore=1 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402150029 Hi, On 2/15/2024 12:29 AM, Elliot Berman wrote: > On Wed, Feb 14, 2024 at 12:08:43AM -0600, Bjorn Andersson wrote: >> On Mon, Feb 12, 2024 at 10:18:08AM +0530, Maulik Shah wrote: >>> Each RPMh VRM accelerator resource has 3 or 4 contiguous 4-byte aligned >>> addresses associated with it. These control voltage, enable state, mode, >>> and in legacy targets, voltage headroom. The current in-flight request >>> checking logic looks for exact address matches. Requests for different >>> addresses of the same RPMh resource as thus not detected as in-flight. >>> >>> Add new cmd-db API cmd_db_match_resource_addr() to enhance the in-flight >>> request check for VRM requests by ignoring the address offset. >>> >>> This ensures that only one request is allowed to be in-flight for a given >>> VRM resource. This is needed to avoid scenarios where request commands are >>> carried out by RPMh hardware out-of-order leading to LDO regulator >>> over-current protection triggering. >>> >>> Fixes: 658628e7ef78 ("drivers: qcom: rpmh-rsc: add RPMH controller for QCOM SoCs") >>> cc: stable@vger.kernel.org >>> Reviewed-by: Konrad Dybcio >>> Signed-off-by: Elliot Berman >>> Signed-off-by: Maulik Shah >> >> This says, "Elliot first certified the origin of the patch, then Maulik >> took and certified the origin of the patch". But according to the From: >> the author of the patch is you, Maulik. >> >> How was Elliot able to certify the patch's origin before you, when >> you're the author? >> >> If the two of you collaborated, also add Co-developed-by: Elliot above >> his s-o-b. >> > > Even my Co-developed-by is being generous :-) All I had done was copy > the commit and resolve couple merge conflicts. > > Maulik, you can swap my S-o-B for a: > > Tested-by: Elliot Berman # sm8650-qrd > Addressed in v4 to change to tested-by. Thanks, Maulik