Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp869376pxb; Fri, 22 Jan 2021 00:59:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkawepAe1BgsB55JxCA+RmGin7sIFrL1NFJ6vmO35aDeFtFC15ze0G0Be5+HLuwefGCfBY X-Received: by 2002:a50:c94c:: with SMTP id p12mr2375552edh.154.1611305979760; Fri, 22 Jan 2021 00:59:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611305979; cv=none; d=google.com; s=arc-20160816; b=FHTpQhL4/jtraSThcI61sZaBi4mjtfehWlIgXFrhX+6KEZOx+7RPWoP2rfVyCFziQv X8tWrsVxshc5HAV6+B1/88ll92jgoodySA3IKCTNHOg8uiVGQF0SajNUe/4rwqXkK402 /UOawPqY4Zv59KWAdhfMSY17LT6cYIRhZ2lWSnHlxUxunUymrnkLyz2wSl6LtsCSUB4t N8MlFLwK4omRd9KDt/ttSURS/4cg/YvEv5vklcwp+FH0lg4fyf7QKT4n1/fYseq74Pzc 2QOk/jeOq3Mudc4cW5eWBhRV7H3JZ6AHaI82mKCLuc9fj+79U0JxLrTZ5hMxZNNy2E1F YTiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=lBh78Ul9GczjuYP9UDWZfNliAS7jv7SG97xIvLE8KOs=; b=ORUyZw6HiaQJ0dw6/74wuNCAcFqP41Y4AaIhS5CIMfZneW5mnbGEZGiDj3vSGsSbVY tpjmEXPydG0KiCgQzJSn11RPDpGcA0LgUbm5exE19FkyuNGxMKkz55vDhx7sCin3IGO3 ZemCRwWrkffCGzP3wJ4oOGttEDMcugICZPil1UW5ASe5PvMa3oBXyGLVOUIMRNSvkqWo immqXIwuZqjP8+482woqJgzez6rrC1XjII7SlCJHD48sG1KxT4uIK92/0ywBXY06kWpP 0vsZ2kcrz6mMgh6FAIxilwzxqKcLLNZaaMQTvHB5uw3YdUyJKwfb9ioIAV1NRCaAhQg6 G9Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=r+0kcTQP; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l18si2715260eji.492.2021.01.22.00.59.15; Fri, 22 Jan 2021 00:59:39 -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=@google.com header.s=20161025 header.b=r+0kcTQP; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727121AbhAVI4Q (ORCPT + 99 others); Fri, 22 Jan 2021 03:56:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727021AbhAVIzn (ORCPT ); Fri, 22 Jan 2021 03:55:43 -0500 Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62A99C061786 for ; Fri, 22 Jan 2021 00:55:02 -0800 (PST) Received: by mail-qv1-xf2f.google.com with SMTP id et9so2296845qvb.10 for ; Fri, 22 Jan 2021 00:55:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lBh78Ul9GczjuYP9UDWZfNliAS7jv7SG97xIvLE8KOs=; b=r+0kcTQPJqoFhQRPAgQCK5lx9LQFY9iDBMMdWlX22lUS/HUIfLxrGFSxjjMG21I+nq /0wTc6Lm57a855bHPxpvfLa9oGRDFgDGRWv4oW1dY5ETzjmZRe56zpZJSw8VEIz5jLrm XuUCHYAP1/0oo7Naoyvanf+9ysqRbV4dquLnKFIEbnvRga2yp51oAGaDSqPDhIAbWaMk +GlxiKSDrhkL+eAUZusXu7a0F6MfUhfzZlx/uYi0fQm28COmtC1v6agTIV8isZpNwIo3 ryZ99wiA7xipIzaSnip9IyowZqsvGGVdeWuXeIqJe8RcfogzQ6hDpUOJn2btlpYubEZf 8Vlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lBh78Ul9GczjuYP9UDWZfNliAS7jv7SG97xIvLE8KOs=; b=hXgEbVoeMY2laU+nZ2cHelmhlSfJ2KurbT5B2BA61fedeYePoWxRPDwJNz4aD5Ys4E m2LKDmXY/YapbbnmflRf4zAALYRlh9CeYUHlLPzJfW8zaZy/LrNLSettEvyAQ2P5agGa WAtjIMlKaymemmzFo07MgwlANF5iKpX0AydKjLYEbGg05IJ2GZkqiRUkXCBJHrWR/uG+ xZPu1kJ5svq8xruyKVzqBMUwEbUzOyKlFnjCL+l8k6UMwPdkL3wwfDIET8HYX+wnCB84 a1KLO3eRAJFP7Uifg9f6xd3lAw7fLjXgeheoTPYtoNSqfF6TzqD9cnoTCtGtDQq3QzjI PGGg== X-Gm-Message-State: AOAM531/ZFKLdH4Z0+o631Saq4RJh8uDCwyrSU0fsY7R2ynET84k6mnk dSPvhoJJU01DdY57Y0296ag0v8ZFVSwsqBY8l88vdQ== X-Received: by 2002:a0c:e850:: with SMTP id l16mr3705837qvo.38.1611305701379; Fri, 22 Jan 2021 00:55:01 -0800 (PST) MIME-Version: 1.0 References: <1610963802-11042-1-git-send-email-vjitta@codeaurora.org> <2f12a84c-132b-7141-a89e-9e19de0e4b90@infradead.org> In-Reply-To: <2f12a84c-132b-7141-a89e-9e19de0e4b90@infradead.org> From: Alexander Potapenko Date: Fri, 22 Jan 2021 09:54:50 +0100 Message-ID: Subject: Re: [PATCH v5 1/2] lib: stackdepot: Add support to configure STACK_HASH_SIZE To: Randy Dunlap Cc: Vijayanand Jitta , Minchan Kim , Andrew Morton , dan.j.williams@intel.com, broonie@kernel.org, Masami Hiramatsu , LKML , ylal@codeaurora.org, vinmenon@codeaurora.org, Vineet Gupta , "linux-snps-arc@lists.infradead.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 18, 2021 at 11:54 PM Randy Dunlap wrote: > > On 1/18/21 1:56 AM, vjitta@codeaurora.org wrote: > > From: Yogesh Lal > > > > Use CONFIG_STACK_HASH_ORDER to configure STACK_HASH_SIZE. > > > > Aim is to have configurable value for STACK_HASH_SIZE, > > so depend on use case one can configure it. > > > > One example is of Page Owner, default value of > > STACK_HASH_SIZE lead stack depot to consume 8MB of static memory. > > Making it configurable and use lower value helps to enable features like > > CONFIG_PAGE_OWNER without any significant overhead. > > > > Signed-off-by: Yogesh Lal > > Signed-off-by: Vinayak Menon > > Signed-off-by: Vijayanand Jitta > > Hi, > > Did you see > https://lore.kernel.org/lkml/202101050729.cwTd47Yw-lkp@intel.com/ > > It seems that arch/arc/ does not have: > arc-elf-ld: lib/stackdepot.o: in function `filter_irq_stacks': > (.text+0x6): undefined reference to `__irqentry_text_start' > >> arc-elf-ld: (.text+0x6): undefined reference to `__irqentry_text_start' > >> arc-elf-ld: (.text+0x26): undefined reference to `__irqentry_text_end' > >> arc-elf-ld: (.text+0x26): undefined reference to `__irqentry_text_end' > >> arc-elf-ld: (.text+0x34): undefined reference to `__softirqentry_text_start' > >> arc-elf-ld: (.text+0x34): undefined reference to `__softirqentry_text_start' > >> arc-elf-ld: (.text+0x3c): undefined reference to `__softirqentry_text_end' > >> arc-elf-ld: (.text+0x3c): undefined reference to `__softirqentry_text_end' > Hi Randy, Could you try out the following patch? Thanks, Alex diff --git a/arch/arc/kernel/vmlinux.lds.S b/arch/arc/kernel/vmlinux.lds.S index 33ce59d91461..94d3f9620d0b 100644 --- a/arch/arc/kernel/vmlinux.lds.S +++ b/arch/arc/kernel/vmlinux.lds.S @@ -83,6 +83,8 @@ SECTIONS .text : { _text = .; + IRQENTRY_TEXT + SOFTIRQENTRY_TEXT TEXT_TEXT SCHED_TEXT CPUIDLE_TEXT