Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp163916ybt; Mon, 6 Jul 2020 06:35:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzk12Dy2I9ft/3rl/pVWH9J/E/vasw2vCVPcr/3cdoPIoIpM/fjxqxBn/6ZKggz6LwGmTpF X-Received: by 2002:aa7:c545:: with SMTP id s5mr43061018edr.19.1594042510434; Mon, 06 Jul 2020 06:35:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594042510; cv=none; d=google.com; s=arc-20160816; b=XR5HIFaJI3SSxmE914uTEpXBR65VVVoObs867GAfmDEUDQNYeay7rgeQXrDEaUypNb L/zwO7bVs/oLQevjCG107Sa3RNenYXQE9+SaBJJ+PrX4sZ4KAVR2BvBKKApg9DsX0T01 5E2U8o+UHFHXAD4T7ORZEClEU44NtWivp2PjQCqCZu6q4VGsKg08OZ1VE8hhZtIXjFac EMckR7Ufs+aDhCb3Rwgz3MPBnyrEqofJALR3tAqmf1KPsfdJ3W4tvV38h9oijF8TPge+ VetMy+Syya5zdbLHowln29knEvZMoRr1syNEx+afUv/xOHsOV7UWIvhsZQ7d+pN7l1X0 eQqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ko2w1+ycEur/pfHrKptDPRv/FO4AoLBCTaMsUEWlZHA=; b=X/NxzJji7FukDLtP87AIpas6mZ7/RLr2Kp5l/mEj3CYwxE7o0Fwv66JtAzBijlGetS ZfQ+kmqsoiQlobG+T32/ECGrhPa4/wyLyOupsBB0pY7OxyZpX3X+rXhHNndWfmUh269N mq5p3VPenFvEG6sKwJRCKtYP81dSn4R+Mjr4ZpYBhXUpxaA/mNqq1l5Yoy4ijjsNSNWT uinNd2tFiMJzNaTt7WPqTib8JEK5KbuyVXviXtlmI8sS9amc/ieOdWD0SY7bYNZFKV0z pfwTrr6inURvrE+LbZxXb1LQWAEz11vXUlwjOgycBMg7jwZ5/04bhTNqfyq3b3fX61EO OMmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=PoaKW+Yz; 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 h5si12797481eji.26.2020.07.06.06.34.47; Mon, 06 Jul 2020 06:35:10 -0700 (PDT) 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=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=PoaKW+Yz; 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 S1729148AbgGFNcY (ORCPT + 99 others); Mon, 6 Jul 2020 09:32:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729021AbgGFNcX (ORCPT ); Mon, 6 Jul 2020 09:32:23 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76C9AC061755 for ; Mon, 6 Jul 2020 06:32:23 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id f18so32874105wrs.0 for ; Mon, 06 Jul 2020 06:32:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ko2w1+ycEur/pfHrKptDPRv/FO4AoLBCTaMsUEWlZHA=; b=PoaKW+Yz+CyO9ACCDiOplerrz2RgUUNWJ232tMWiok4Z7kOpmuuTIx/NfRflNAQmUv mNzSDmrvEmiUnrD9dz78LDRo+SxPWFUA+n+hQTHsaqbpYgZNtBiS6IP6Mvm+kuS8RNaq Cl3rs3xK94dUtlu9FPjnZru4TyqusrmB+5oxKEsIvlEl5WX4YzHuZQYj19Yv2vXVF5mm KapHZS61RNuaZUz/LlDMVLOo+nY9UV/erIZygQ3fcKZfgSeIijFZedXYPqcdIyP/WVva jT1Pngr0Yz0u+oWv/dg6k1qEXqwCKKdjwY5/0A3uXHwD1kaRCg2CBsBU4h+ZiSLdC4Th 1PWA== 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=ko2w1+ycEur/pfHrKptDPRv/FO4AoLBCTaMsUEWlZHA=; b=jRG3h0WbU7WNc5bVZQrFvS28Kxs550JM/8sm8Rl0oJTMOCGC7Gpdjwp46O+gdIYJaO cWKPtBaRbFhncyE3C5BB4ST9pvlIe51fK0tlagALRvAQ3F27uDNdkmlqhorZf6NGdywd F3JBFgZeSoslGWIhUfdNaTk/oJBXcuMeRjZFf4w1gPs3pSmeocJUMXf1zyK7EakXiJ9K Yu3T4ufu1H+eOWLpCVl9DDkQS0QEpASOxn53rjR1syeXu3pBrj8WmLzPvXtxsGxPsvj5 d6CzfEc2olBeX4jLW7DKZKq8x9wVHpdSaGfwbsg0B2j8A7f4PrWAxvzBoxArPbzM7yae 4YuA== X-Gm-Message-State: AOAM532ajn+tR6wEBCc3k0o2lr8RZvDu0IR/pkZUsk7Gfn7ClPbfiZ5J pTGzq97MMsQCwz1UFABsJFfhxiYpD8KV6+1c8bJv2tDz X-Received: by 2002:adf:fe0e:: with SMTP id n14mr47894756wrr.325.1594042342000; Mon, 06 Jul 2020 06:32:22 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Anup Patel Date: Mon, 6 Jul 2020 19:02:10 +0530 Message-ID: Subject: Re: [PATCH] riscv: use 16KB kernel stack on 64-bit To: Andreas Schwab Cc: linux-riscv , "linux-kernel@vger.kernel.org List" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 6, 2020 at 6:02 PM Andreas Schwab wrote: > > With the current 8KB stack size there are frequent overflows in a 64-bit > configuration. > > Signed-off-by: Andreas Schwab > --- > arch/riscv/include/asm/thread_info.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/riscv/include/asm/thread_info.h b/arch/riscv/include/asm/thread_info.h > index 1dd12a0cbb2b..464a2bbc97ea 100644 > --- a/arch/riscv/include/asm/thread_info.h > +++ b/arch/riscv/include/asm/thread_info.h > @@ -12,7 +12,11 @@ > #include > > /* thread information allocation */ > +#ifdef CONFIG_64BIT > +#define THREAD_SIZE_ORDER (2) > +#else > #define THREAD_SIZE_ORDER (1) > +#endif > #define THREAD_SIZE (PAGE_SIZE << THREAD_SIZE_ORDER) > > #ifndef __ASSEMBLY__ > -- > 2.26.2 > > > -- > Andreas Schwab, SUSE Labs, schwab@suse.de > GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 > "And now for something completely different." Looks good to me. Reviewed-by: Anup Patel Regards, Anup