Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp8798971pxu; Sun, 27 Dec 2020 20:53:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJx04VH7CvhlzpxBA7PHJFUBLteHrRrIPYzXU/SSqyeUVV96kI926d3EqdRmwV1AsNX7CFOF X-Received: by 2002:a17:906:a2d0:: with SMTP id by16mr39429828ejb.207.1609131220048; Sun, 27 Dec 2020 20:53:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609131220; cv=none; d=google.com; s=arc-20160816; b=OZKjVffbCsR9EL/Ju12gAITB9GdNNdLPWO9Pku+9VH5cOBxDQeSUf1G0dmV8FwIk0P ZVIJyMTZv1MfGFeXaMMP/pbs8bNWRDF9Bo8Venykm/MyEPcKJkhpOrXoUiCeXDAXfVwm 6OkhPjNh+DqlhrPIaA/U2pY1MKLMaHmRqbFACHIxGPwnKkPsEOPaN6eehTmLMYlQT7nr c/twFJe2CQQhNrJobM7UHhr7Xfj+G3RrfeneJUqAtNCwJvXLEACgOl8GWiFLEbBQdeKj T0FG6Wvkxc102eN3X9OS5tAK4HnuQD8fM+doje41PEINyaZRLJZjSH0wnjpJR7+awmSm ql0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dmarc-filter:sender:dkim-signature; bh=BO8IW9Q/PT7UqzydT2jMWi2wLodhoA3BrQp/tn36dPI=; b=fdZfTBUIGKrdUy8neHWVXqz0i4O5w+wnFx2XxkoE8P+6T3oqZ6RYV0LAGKbfvyTo3q wcwWXh0WE8/+v69Jn1BCjT6SPlI0DpOFqFY008sxExxeqin4aTzhOtGu83lPcEFQxbzE NiXlVFBaaEvUoge1xZYwfyVCs22nq9YTn2ksLAXAVV0MQmXgNx1vU94M8EPS3WEuOsVL Z/KO8QsFRDcdeuaALLuds5atCfLfvoBHMsyBY/9TFOFcWfvmaiCRoinmuMe2I3hAme3F z+jL4KtHlRbRNKuLI2svn7Vijvh/PdjUyzatRmmPmUXsQfJ/WGCA7KmUng9aiPBXfg8M PyTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=mxKzoTX6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f10si20768970edc.491.2020.12.27.20.53.16; Sun, 27 Dec 2020 20:53:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=mxKzoTX6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727476AbgL1Ewi (ORCPT + 99 others); Sun, 27 Dec 2020 23:52:38 -0500 Received: from so254-31.mailgun.net ([198.61.254.31]:50202 "EHLO so254-31.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727461AbgL1Ewi (ORCPT ); Sun, 27 Dec 2020 23:52:38 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1609131133; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=BO8IW9Q/PT7UqzydT2jMWi2wLodhoA3BrQp/tn36dPI=; b=mxKzoTX68KAtUSKWHJ/uUEc0PJDzDIlj2m/z50+iiY4aFH7aW2CTInWd7I9nXx39hQksfgwW 9igtpnzVakkVV6JyJx4AxrIFp/jgmuuaB0wIaJh89C9a2HiRtkX9IVck5PdV1TXFMvY60VC2 hWyXs/EtNxemFTDgUQqCq3vU6Vo= X-Mailgun-Sending-Ip: 198.61.254.31 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n03.prod.us-west-2.postgun.com with SMTP id 5fe96463cfd94dd3283f000a (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 28 Dec 2020 04:51:47 GMT Sender: vjitta=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id F3EC2C43466; Mon, 28 Dec 2020 04:51:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [192.168.0.106] (unknown [182.18.191.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: vjitta) by smtp.codeaurora.org (Postfix) with ESMTPSA id B5DEBC433C6; Mon, 28 Dec 2020 04:51:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org B5DEBC433C6 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=vjitta@codeaurora.org Subject: Re: [PATCH v3] lib: stackdepot: Add support to configure STACK_HASH_SIZE To: Alexander Potapenko Cc: Minchan Kim , Vincenzo Frascino , dan.j.williams@intel.com, broonie@kernel.org, Masami Hiramatsu , LKML , Andrew Morton , Andrey Konovalov , qcai@redhat.com, ylal@codeaurora.org, vinmenon@codeaurora.org, kasan-dev References: <7f2e171f-fa44-ef96-6cc6-14e615e3e457@codeaurora.org> <601d4b1a-8526-f7ad-d0f3-305894682109@codeaurora.org> <9e0d2c07-af1f-a1d3-fb0d-dbf2ae669f96@codeaurora.org> <48df48fe-dc36-83a4-1c11-e9d0cf230372@codeaurora.org> <6110a26b-dc87-b6f9-e679-aa60917403de@codeaurora.org> From: Vijayanand Jitta Message-ID: Date: Mon, 28 Dec 2020 10:21:31 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/23/2020 8:10 PM, Alexander Potapenko wrote: >> >> Michan, We would still need config option so that we can reduce the >> memory consumption on low ram devices using config. >> >> Alex, On this, >> "I also suppose device vendors may prefer setting a fixed (maybe >> non-default) hash size for low-memory devices rather than letting the >> admins increase it." >> I see kernel param swiotlb does similar thing i.e; '0' to disable and >> set a value to configure size. >> >> I am fine with either of the approaches, >> >> 1. I can split this patch into two >> i) A bool variable to enable/disable stack depot. >> ii) A config for the size. > > I still believe this is a more appropriate solution. > > Thanks in advance! > Thanks, Will work on a patch with above approach. Thanks, Vijay -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation