Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3312397rdb; Wed, 13 Sep 2023 08:24:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE+D/rByUkiO6E5ftyzHbAQMVHHSVrQ13r13oiPMSNKRqiRS40uxnRUv392Oz78Lhb47u4L X-Received: by 2002:a17:903:191:b0:1c3:ed30:ce04 with SMTP id z17-20020a170903019100b001c3ed30ce04mr1860252plg.25.1694618649564; Wed, 13 Sep 2023 08:24:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694618649; cv=none; d=google.com; s=arc-20160816; b=JtmgirzBXJ2QxgReVCTopr6mc+lDslABlm+6jfmZcq9kFEseQJ4MWQfrnkWZ6iDYw0 pHhgWO0iQJTBVHAmzQOwL/egH8Fjm6lGA/YebM3CGOFAvW3EML0Pi4Lm/KWE4tRfV8aJ Xcyxzw3ENSmU7fDYy/P25kZJvehfG+tarouDghp09uMWowE5QLVJt3OspGkQTw9BSMFd Ogzj37xoFD5GfcUpudcjLToeYIzmARFX26VELLI+JSFVYi/DRZwoBY+kV63LjsunQbKF ftypKnKwyu0CPfgHQYIhFhXLL6T8P1VAlx1dYErOJq/aN9hM9QG6jZwGpPh8eTsnmUZ0 XppQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=DMmTuX4BUuWS71fg2UcymHdYuzTLXzic08tXaQHFJkE=; fh=EGNK1AtePOd8Y/00y0ZgOc0/KVxmz+nGVpzS27Wdziw=; b=zZOhK75zF3mGxcVNyZvrU2sy/JUqtOdlNWRtWeGhD0jM6NJCWtVUfvrcqU+dv/1qEe /JoCC1dJFCOn7houpzYHBAB6jVVs27uu04OuBVMCjVbI5rdho5KmIsI2ALuFY5wfyDqB fLegUiqsWGjP+QqbbRUHDOgquZfwS/SWI2IowkNk5gpWyfF7EDn6EgNduCb71rKuNTBJ QilWoWe+bYOSlTAqlD5Rjpl3aPzfsI6Qab/zctiyVxFUPwIvaXhupWSD74iDIaxSXNG7 M5wnY5CBUOlQxHebr3KwwZ8HOcUJVcvX2GiwXUV0SlzzpcnKMy2A2dnrha/yTYy7Wi2O Cxvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WKJFL+yV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id t10-20020a170902e84a00b001bbb56b34e4si11333339plg.331.2023.09.13.08.24.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 08:24:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WKJFL+yV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 46EB680968A8; Wed, 13 Sep 2023 08:20:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233512AbjIMPUH (ORCPT + 99 others); Wed, 13 Sep 2023 11:20:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233184AbjIMPTf (ORCPT ); Wed, 13 Sep 2023 11:19:35 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4412BD; Wed, 13 Sep 2023 08:19:30 -0700 (PDT) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38DEnsnh019322; Wed, 13 Sep 2023 15:18:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=DMmTuX4BUuWS71fg2UcymHdYuzTLXzic08tXaQHFJkE=; b=WKJFL+yVdMYVyWo+0mT5jzwKC14sNMa8xFF3QB8uIZkVOTAGBV+pYc+IHz4T4Ajr+s9R E9qSIkMrLyFXn860cgrx2nqnUJlKlg+UXGukFB7EZQsSYx56AmrdqoB7OKaJC5UPrmcR FVRVPYtVn3uv/34PIPn6qi6tSnZDv++gJnxThPAyw1UAghSI2Qn/VkH9UjK6Gu1CPsFf nRmM9XrE178nMeybkQmS17kclJ4soqJItMluEuit8poP2DsU6xjm9BdD2I1mJNqsyACE EA/kKAkXO6KAYZDhCAu2pi42eC9AEa1IGCoudSHHHEyKrtPozIlWXp16fCbVQucJUyCu PQ== Received: from nasanppmta03.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t2y8q1xfp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Sep 2023 15:18:48 +0000 Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38DFIlhM025985 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Sep 2023 15:18:47 GMT Received: from [10.216.62.56] (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.36; Wed, 13 Sep 2023 08:18:34 -0700 Message-ID: <5e5359d0-6f32-7312-b344-2d84be63d03d@quicinc.com> Date: Wed, 13 Sep 2023 20:48:30 +0530 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 v5 06/17] soc: qcom: Add Qualcomm APSS minidump kernel driver Content-Language: en-US To: Jeff Johnson , Krzysztof Kozlowski , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , , , , References: <1694290578-17733-1-git-send-email-quic_mojha@quicinc.com> <1694290578-17733-7-git-send-email-quic_mojha@quicinc.com> <36d9bd32-7ea4-4d84-b1e9-3cfcc3bec85c@quicinc.com> From: Mukesh Ojha In-Reply-To: <36d9bd32-7ea4-4d84-b1e9-3cfcc3bec85c@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] 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: fZxGkFPM9RluezOm5Frm40HM8FUFEa5k X-Proofpoint-GUID: fZxGkFPM9RluezOm5Frm40HM8FUFEa5k X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-13_08,2023-09-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 adultscore=0 phishscore=0 suspectscore=0 mlxlogscore=999 bulkscore=0 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309130124 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 13 Sep 2023 08:20:46 -0700 (PDT) X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email On 9/12/2023 12:39 AM, Jeff Johnson wrote: > On 9/11/2023 4:07 AM, Krzysztof Kozlowski wrote: >> On 09/09/2023 22:16, Mukesh Ojha wrote: >>> +/** >>> + * qcom_minidump_region_register() - Register region in APSS >>> Minidump table. >>> + * @region: minidump region. >>> + * >>> + * Return: On success, it returns 0 and negative error value on >>> failure. >>> + */ >>> +int qcom_minidump_region_register(const struct qcom_minidump_region >>> *region) >>> +{ >>> +    struct minidump *md; >>> +    int ret; >>> + >>> +    md = qcom_smem_minidump_ready(); >>> +    if (!md) >>> +        return -EPROBE_DEFER; >>> + >>> +    if (!qcom_minidump_valid_region(region)) >>> +        return -EINVAL; >>> + >>> +    mutex_lock(&md->md_lock); >>> +    ret = qcom_md_region_register(md, region); >>> +    if (ret) >>> +        goto unlock; >>> + >>> +    qcom_md_update_elfheader(md, region); >>> +unlock: >>> +    mutex_unlock(&md->md_lock); >>> +    return ret; >>> +} >>> +EXPORT_SYMBOL_GPL(qcom_minidump_region_register); >> >> NAK, there is no user for this. >> >> Drop all exports from minidump drivers. Your upstream driver *must not* >> expose stuff to your vendor drivers. > > Do we not expect that upstream drivers would want to register? As of current version of patch, there is no user. Let's avoid till any upstream QCOM driver uses it . > Mind you, in the downstream code the following was a bad limitation: > #define MAX_NUM_OF_SS           10 I don't think, there is any problem with above macro, instead there is restriction on total number of APSS region can be registered. #define MAX_NUM_ENTRIES 201 -Mukesh > >