Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6720864rdb; Fri, 15 Dec 2023 06:45:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFKaOkHmVVYJuwxClErov9cL8jxnbIlmcDEvuX0/yQj0/EvGlXRJqx1WlRILo3wfWP6PCyU X-Received: by 2002:a05:6a00:4b47:b0:6cd:d312:b767 with SMTP id kr7-20020a056a004b4700b006cdd312b767mr12756478pfb.6.1702651530200; Fri, 15 Dec 2023 06:45:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702651530; cv=none; d=google.com; s=arc-20160816; b=fvgf1hsi3BMBpXHkrIzDVlpsRDrDhBZPJBSjeXtjLCqbT5s8vQwQGuWmOe19cTMexh zaMPYUTLO3CVw+VLl6stW9+vWBdH6MrXbOCduCdFtTQhEdzLS3abh8aD73DokwhslaDV sIzv7jlv/lGcDU9SPsjmf9sjhKUwE+no377mkdrl4N64B2068cb+qwbblxykRj0XIKbr j6f/0DDoEl3MeN6KYjElEZwl2LLdicm22qz+SVfL8ArMU4QCBOtxpqyw66vysrCp87D6 XZTBaRFUa1P8u9Lj8ucuDH1ZtRiPCyHZdPjcbFfX1VSZa/+NXltt3cRfVb75jnfzxRTY xK5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=tO1B3XpYtxcwM9eXmTzeGrDkk113ZhQQlZKUmP51M40=; fh=htXSW2xZsQ0KiOaeCUm6zE5c297s2GTUS2ZAmCcDPHs=; b=JVZvnDu4nhb9iG1434EKmCApzwnvmGpFeqc24EJRVAl5265XxsEZb2baxwWLDflCWv ekdExcjVaxkLnpB/P9rTukQVtr90c47RQxjlYz74DHlXS02hhMn7W6oec0uao8+w3HHO g5zWwhCJ14IIUyArqPds3Lr2U7B/TJN2//vno2LUQFgT/AcuE6oPUW3Y/eDDY0Y5Dx1s uW67O0ybzVnF6q8cI3++y5h2t/di7HctYggsMcl6go/rXa02Lk+uk3ZhNSWXx5BGCX/5 CkOWp8cjJXQTwPmhM70FiZAAHikExCtm5VzwAjm7soJpZI3fhKCz7hJXSsN57MrGhC17 R3KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YszneM0I; spf=pass (google.com: domain of linux-kernel+bounces-1127-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1127-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id i185-20020a6254c2000000b006c0e02cdadcsi758546pfb.208.2023.12.15.06.45.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 06:45:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-1127-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=YszneM0I; spf=pass (google.com: domain of linux-kernel+bounces-1127-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-1127-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 603E528693F for ; Fri, 15 Dec 2023 14:44:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C23B36B0A; Fri, 15 Dec 2023 14:44:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="YszneM0I" X-Original-To: linux-kernel@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 753B136AE9; Fri, 15 Dec 2023 14:44:23 +0000 (UTC) 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 (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 3BFCWNg6016704; Fri, 15 Dec 2023 14:44:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:from:to:cc:references :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=tO1B3XpYtxcwM9eXmTzeGrDkk113ZhQQlZKUmP51M40=; b=Ys zneM0IrQNkc8pGMGZokS/jcHSYzU1MYx9o5vQSTz5bpZBZKhwYysE8sVlrFH39UQ lVvuB1/20mCx4pBjhIFtDVbludTa35Do3bo/6Z37rML86gG/aWMYeichSEUECYMK eZ3NOnLWfMbLZ9JFf9uB5j+jBnHUP6iwdqnLXCCY9nViENIbrV6S+WhEJxOPXM9V BtY9HsZyF4AvOJr6olfEcjoyEqAVsHajgq+pAFfNghBGPnTXkvfCJnYS/cLOY15D UszYdeRkAzSSE/fceD+uWYq0X9JpkuotSS/hnTVMNf2aQ2X4l5HDBJV1wtO6qKAi yPmYGunW1vqEpbJr1ITg== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3v0hqch6n3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Dec 2023 14:44:15 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3BFEiFWg004516 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Dec 2023 14:44:15 GMT Received: from [10.216.43.184] (10.80.80.8) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Fri, 15 Dec 2023 06:44:12 -0800 Message-ID: Date: Fri, 15 Dec 2023 20:14:09 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v10 0/4] Misc SCM driver changes Content-Language: en-US From: Mukesh Ojha To: , , , CC: , References: <1698945247-16033-1-git-send-email-quic_mojha@quicinc.com> <653abe51-cc6a-7bb0-6a10-6dc33389cb68@quicinc.com> In-Reply-To: <653abe51-cc6a-7bb0-6a10-6dc33389cb68@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: RQqkOauX4Ue_JGBgtyyLzPZjIKzjFJ0Y X-Proofpoint-GUID: RQqkOauX4Ue_JGBgtyyLzPZjIKzjFJ0Y X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_01,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 mlxscore=0 phishscore=0 adultscore=0 priorityscore=1501 impostorscore=0 lowpriorityscore=0 mlxlogscore=999 clxscore=1015 suspectscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2312150101 On 11/28/2023 1:20 AM, Mukesh Ojha wrote: > Bjorn, > > Any comments on these patches? Just a reminder., in case it got missed. -Mukesh > > -Mukesh > > On 11/2/2023 10:44 PM, Mukesh Ojha wrote: >> First two changes changes are needed to enable download mode on >> chipset like IPQ9574 and IPQ5332 SoCs as for these targets others >> bits in download mode registers are used for different purpose >> and earlier kernel code was mistakenly overwrite the other bits. >> >> First three changes(1/4-3/4) are SCM driver specific while 4/4 from >> pinctrl try to use the introduced API(1/3). >> >> Changes from v9: >> https://lore.kernel.org/lkml/1698648967-974-1-git-send-email-quic_mojha@quicinc.com/ >>   - Added 3/4 new patch. >>   - commit subject modification. >> >> Change from v8: >> https://lore.kernel.org/lkml/1698235506-16993-1-git-send-email-quic_mojha@quicinc.com/ >>   - Introduce enum for dload mode constants as per suggestion from >> [Elliot]. >>   - Rebased on linux-next. >> >> Changes from v7: >> https://lore.kernel.org/lkml/1696440338-12561-1-git-send-email-quic_mojha@quicinc.com/ >>   - Rebased it on next-20231025. >>   - Added reviewed-by tag and take care of comment made about >>     commit text should be in imperative mode. >>   - Modified the name of the API to qcom_scm_io_rmw() as per suggestion >>     made by [Dmitry] >>   - Moved spinlock inside qcom_scm structure. >>   - Corrected the patch order as per subsystem SCM first then pinctrl. >> >> Change from >> minidump-v5(13/17-15/17):https://lore.kernel.org/lkml/1694429639-21484-1-git-send-email-quic_mojha@quicinc.com/ - Removed mistakenly added macros. >> >> https://lore.kernel.org/lkml/9da888dc-401a-4cbb-b616-b4654fa79e35@quicinc.com/ >>   - Added Acked-by tag from Linus.w to 2/3. >> Change from >> minidump-v5(13/17-15/17):https://lore.kernel.org/lkml/1694429639-21484-1-git-send-email-quic_mojha@quicinc.com/ >>   - Removed mistakenly added macros. >> >> https://lore.kernel.org/lkml/9da888dc-401a-4cbb-b616-b4654fa79e35@quicinc.com/ >>   - Added Acked-by tag from Linus.w to 2/3. >> >> Changes in v6: >> https://lore.kernel.org/lkml/1680076012-10785-1-git-send-email-quic_mojha@quicinc.com/ >>   - Rebased it on latest tag available on linux-next >>   - Added missed Poovendhan sign-off on 15/17 and tested-by tag from >>     Kathiravan. Thanks to him for testing and reminding me of missing >> sign-off. >>   - Addressed comments made on dload mode patch v6 version >> >> Changes in v5: >> https://lore.kernel.org/lkml/1680017869-22421-1-git-send-email-quic_mojha@quicinc.com/ >>    - Tried to fix the issue reported by kernel test robot >>      https://lore.kernel.org/lkml/202303280535.acb66sQT-lkp@intel.com/ >> >>    - Applied some of the improvement suggested by [Bjorn.andersson] >> >>      . Dropped 'both' instead support full,mini or mini,full for >> setting download >>      mode to collect both minidump and full dump. >> >>      . logging improvement. >> >> Changes in v4: >> https://lore.kernel.org/lkml/1679935281-18445-1-git-send-email-quic_mojha@quicinc.com/ >>    - val should be shifted within the function [srinivas.kandagatla] >>      i.e new = (old & ~mask) | (val << ffs(mask) - 1); >>    - Added Acked-by [linus.walleij] on pinctrl change. >> >> Changes in v3 : >> https://lore.kernel.org/lkml/1679070482-8391-1-git-send-email-quic_mojha@quicinc.com/ >>   - Removed [1] from the series and sent as a separate patch[2], >> although this series >>     should be applied on top [2]. >>    [1] >> https://lore.kernel.org/lkml/1677664555-30191-2-git-send-email-quic_mojha@quicinc.com/ >>    [2] >> https://lore.kernel.org/lkml/1678979666-551-1-git-send-email-quic_mojha@quicinc.com/ >>   - Introduce new exported symbol on suggestion from >> [srinivas.kandagatla] >>   - Use the symbol from drivers/pinctrl/qcom/pinctrl-msm.c. >>   - Addressed comment given by [dmitry.baryshkov] >>   - Converted non-standard Originally-by to Signed-off-by. >> >> Changes in v2: >> https://lore.kernel.org/lkml/1677664555-30191-1-git-send-email-quic_mojha@quicinc.com/ >>   - Addressed comment made by [bjorn] >>   - Added download mask. >>   - Passed download mode as parameter >>   - Accept human accepatable download mode string. >>   - enable = !!dload_mode >>   - Shifted module param callback to somewhere down in >>     the file so that it no longer need to know the >>     prototype of qcom_scm_set_download_mode() >>   - updated commit text. >> >> >> Mukesh Ojha (4): >>    firmware: qcom: scm: provide a read-modify-write function >>    firmware: qcom: scm: Modify only the download bits in TCSR register >>    firmware: qcom: scm: Rework dload mode availability check >>    pinctrl: qcom: Use qcom_scm_io_rmw() function >> >>   drivers/firmware/qcom/qcom_scm.c       | 50 >> ++++++++++++++++++++++++++++------ >>   drivers/pinctrl/qcom/pinctrl-msm.c     | 10 +++---- >>   include/linux/firmware/qcom/qcom_scm.h |  1 + >>   3 files changed, 47 insertions(+), 14 deletions(-) >>