Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp388468rwr; Thu, 4 May 2023 04:46:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7FJK6qk7aKM8DwCCmrCAlavc31tjdxoLD+H/m8fJrXohNSkaPcROpXgEPZdFL6y8FNw/L2 X-Received: by 2002:a05:6a20:3d20:b0:f8:ea21:7c4b with SMTP id y32-20020a056a203d2000b000f8ea217c4bmr2562773pzi.30.1683200814421; Thu, 04 May 2023 04:46:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683200814; cv=none; d=google.com; s=arc-20160816; b=0j5/FtuvQuIy1TbRiZeEWZ7zd9KLOmLHJ8Mt1Pp4+NzQ9nMwrT8F8OcUNFE9OzqG+I HSOO0ePwP3BR2UzTjFOodJ+sOKtmzPcLFejG9xkAWykxkyWeHlIHUFLmfFrt7avkCX8F RZNT2AJ/Vs7QktIYu2pHgviI+gW67K8jTcb9C8k3VFaIKkAmE8q4o5LyqQUA+KfGeW6n xbJRayA/PafGSM9YKkAkd8aF5SqMICwfAeE5dCUbqzdSFy7j3XGTX5pvgBbB0vzQ3ZxN gmQQ1uHf2fMH0220rI8jzINTp2gJuCHBB9sdczBeEMBtzj1V1I0IsrE99NpFnBbWln07 ntLw== 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=GwcFtadppve4lv74YkqLFXuvB3xgQv6HeO3vLVBicaY=; b=bgVaqvX1jswVsLERsdEeWGlW+JyfxOgWl6J+MKeSVNOtvV4iW1yf58pIlAqZ7X0Hzi gKrFXKYkYwlZNQOka0IwJV0H+I+Ym4R39LvdPUE1HRD67igydAwoctvvTVitVm410ABW s/v1YVbS5IxdF6+9KSCDtKoLMN1E+5c9vmrEFLeGHJMVqNYYvIgTP/uYZ71CWBwatRiT rTSQSdR8oY0P9SS9PBnKgBFcXIkja5Y1sRPMDrsQYHhFR+9NjT0wHkw0cOw6rWTZW1T5 bewl7AvkyNyUSQj829KPge6WpiiG+FtGHKRQiuUwDC5ZNOtU3SmKXejAdO1bmRmDd2Jh FWFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JduoJ8Rj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d34-20020a634f22000000b0052c648ce0b9si3285833pgb.660.2023.05.04.04.46.42; Thu, 04 May 2023 04:46:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JduoJ8Rj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230313AbjEDLkV (ORCPT + 99 others); Thu, 4 May 2023 07:40:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230268AbjEDLkT (ORCPT ); Thu, 4 May 2023 07:40:19 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A5495FD1 for ; Thu, 4 May 2023 04:40:09 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-50be0d835aaso624690a12.3 for ; Thu, 04 May 2023 04:40:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683200407; x=1685792407; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=GwcFtadppve4lv74YkqLFXuvB3xgQv6HeO3vLVBicaY=; b=JduoJ8Rjtc1D98/7qKXamMLBH9gdJ4lv7jY7TegUiAQlOIlOcXU9zDMJfa5P+zy9AW yF1WBZ6JIMXJKg+1E/eHQeBdG3ptizsU220R2ipMNJheb96qpFcinWYPd1lSbxhxxLUP F8fUkrUlH90G+RJPps7pKOJDs/10RRQtvPIvf9oaHkpPBNLW/8x27AbP2ZKNEjChhGw+ NcWhL5H/xSquLxMfQm/181tvRwoTo/kjWFhIqoKWpyIWIC1NQ36JJ9QWWoEvmhRwL1O1 0UBmSthjHsb0sKDZSZwghzMWOIzXmflw0Sw5P8txL+AJ/Dnvb/NhV+uyVpRO89rSu5hb f7pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683200407; x=1685792407; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GwcFtadppve4lv74YkqLFXuvB3xgQv6HeO3vLVBicaY=; b=MZrA2QbfZr3QOQ65HmIWeYU9sqeh+0jMKZO2ve2njBLmHuY0cbpEPYSG2T2k9OImk3 sdcq+4/jHKKOF21K1wTZmTV9Og4Mm5q9c0R2AoBnQE2ApJrO4LeYjgJsqQDUkcCIwRIJ 0/bRE0BYH9cxIHUp0vpOr67PcpcIvRN2M9jvZfP54N/GLXj6z9zKi84bq7n6ifzmpsEd /XG8iggdk5G9/v9UlsOpnGzoiod+RBNV7tCXdisrKm+8Gd5S02H2PKZIflAfGIy8JjVt VJzF0YE5KjdBt1vFMeBb9kImgMciEj5Z2kcGjUsrXvLphc093gCxJxyn4PkpyTUnj+Vo YKHQ== X-Gm-Message-State: AC+VfDxix+GD3lynX/M957fMSBRI3LP+oHQx7KFIn995dqX4rCZA7AeD DCijKaXfL+bvuwvD9gj2AIY2fg== X-Received: by 2002:a17:907:728c:b0:94f:31da:8c38 with SMTP id dt12-20020a170907728c00b0094f31da8c38mr6583700ejc.24.1683200407519; Thu, 04 May 2023 04:40:07 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:cbf1:e7ef:fb81:e912? ([2a02:810d:15c0:828:cbf1:e7ef:fb81:e912]) by smtp.gmail.com with ESMTPSA id vh7-20020a170907d38700b0094f31208918sm18378341ejc.108.2023.05.04.04.40.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 May 2023 04:40:07 -0700 (PDT) Message-ID: <645416da-7cc7-6dd5-3db1-0d3c8d247bab@linaro.org> Date: Thu, 4 May 2023 13:40:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH v3 06/18] soc: qcom: minidump: Add update region support Content-Language: en-US To: Mukesh Ojha , agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, corbet@lwn.net, keescook@chromium.org, tony.luck@intel.com, gpiccoli@igalia.com, catalin.marinas@arm.com, will@kernel.org, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, linus.walleij@linaro.org, linux-gpio@vger.kernel.org, srinivas.kandagatla@linaro.org Cc: linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org References: <1683133352-10046-1-git-send-email-quic_mojha@quicinc.com> <1683133352-10046-7-git-send-email-quic_mojha@quicinc.com> From: Krzysztof Kozlowski In-Reply-To: <1683133352-10046-7-git-send-email-quic_mojha@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/05/2023 19:02, Mukesh Ojha wrote: > Add support to update client's region physical/virtual addresses, > which is useful for dynamic loadable modules, dynamic address > changing clients like if we want to collect current stack > information for each core and the current stack is changing on > each sched_switch event, So here virtual/physical address of > the current stack is changing. So, to cover such use cases > add the update region support in minidump driver. > > Signed-off-by: Mukesh Ojha > --- > drivers/soc/qcom/qcom_minidump.c | 57 ++++++++++++++++++++++++++++++++++++++++ > include/soc/qcom/qcom_minidump.h | 7 +++++ > 2 files changed, 64 insertions(+) > > diff --git a/drivers/soc/qcom/qcom_minidump.c b/drivers/soc/qcom/qcom_minidump.c > index 6d29371..853bdda 100644 > --- a/drivers/soc/qcom/qcom_minidump.c > +++ b/drivers/soc/qcom/qcom_minidump.c > @@ -561,6 +561,63 @@ int qcom_apss_minidump_region_unregister(const struct qcom_apss_minidump_region > } > EXPORT_SYMBOL_GPL(qcom_apss_minidump_region_unregister); > > +/** > + * qcom_apss_minidump_update_region() - Update region in APSS minidump table. Description of the function is exact copy of function name. This is a hint for two things: 1. Your function has wrong name. 2. Your description is not helping. Best regards, Krzysztof