Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp2947060img; Mon, 25 Mar 2019 00:02:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPoP3NQT5NR6jkppH3XE7nLzPFjwDC5656yAecJ9uZhyjL6xY3iBvANlMXWUdOHnQBz2dF X-Received: by 2002:a17:902:b618:: with SMTP id b24mr22300939pls.73.1553497377140; Mon, 25 Mar 2019 00:02:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553497377; cv=none; d=google.com; s=arc-20160816; b=NkC/tqTuRd0nxYIgEo2IkCmKSmFwj/Eqsjm8VHftRtMYhkqcPdn4w9bkQ5OaZeMOXn EfbHsvwMPlrm5H1wkq7AaszA7glu53dg0Kn6L8IRbLTGPKYNHjBAkRQ5fXZoBKD2oFDW /r7BAfy22al74TXQSc3VKnfZJXvuyReQSeMKe88ej4FnjhqAFdYclq0SPS6E2Sfft5r4 Nl0mazoKIiavX8MyTpPHl28XFGdZZ0C5DyXV7KINAdocDqPNqKNmkuOpRfa2cNpOMkGC iIdzWTkojmTXHkHTLk/ZsOifTNEF+xvn9sGlKhhMDcYdTRBHoUayE6zJuHooyJ5cYWRH fzJg== 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=KvnJRariGhCONlRkbXzdF6w8C5rUCgeKPJ0uWv2M9Us=; b=hwlW039blWZi32J8dfLE9WH4UVH1s5J77DnQh03ZMMoYQgSKFy/uK/Edrr8UVvIWXr Nym/GOnug4feRECGfNMtRQQQChlu58j8J0TIYOqDkCgLCamlKledrR881ibjapna6i1l wQVVSHXJYjEC+MvUVXmINywaPwCX/8T4IyoC8KTsasqwbNBWwlHrOHC4YjP1NwMi2AVB ciI0qCfCXr567O6h1AGxnTElKm3hg2ZqlF6HvxniF0Gz1HrI5IJG4DyW7MCO/64YgMk5 +/AqlavJFNlmMBro2yDcy39G1H4InhIUqamvPfY8aTh8CGLAbvmfPFWQbFEE9VqnF2gs s1FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=LYcxUCWN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k10si7067499pfj.132.2019.03.25.00.02.41; Mon, 25 Mar 2019 00:02:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@brainfault-org.20150623.gappssmtp.com header.s=20150623 header.b=LYcxUCWN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729755AbfCYHB6 (ORCPT + 99 others); Mon, 25 Mar 2019 03:01:58 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:33642 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729230AbfCYHB6 (ORCPT ); Mon, 25 Mar 2019 03:01:58 -0400 Received: by mail-wm1-f65.google.com with SMTP id z6so8862233wmi.0 for ; Mon, 25 Mar 2019 00:01:56 -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=KvnJRariGhCONlRkbXzdF6w8C5rUCgeKPJ0uWv2M9Us=; b=LYcxUCWN8lPhtX8z9/qSmsIAUJgGbIW0MtmpLmAxpuELSkMFJkCs1poGCedAZpt+sk coWZo/PoxNoZd7Ztu2/NgRfWqIN02d95xLNCri2ZuWVFHTUNhI0n7jKUZh/WBTJRFz5Z L1JOxmsqvnFPTKGkqDZ20PN2UUYVMNaFmTyi2EhTgWJ+GKPIJWHnmSCNmC1pQutj7FAS M08cqXenzQSW8eU5E0+VNi7bvsOdzeZeNGHk2dRkVq0NBjjv6wUsFJB2XUn6TS2szisb 01zeGln5gOd5dOUmks3Y/jqZ7fFbo1Sa/utYBfYrs2eJm2RkJQVLT2DDbcswuoSBh4q6 Y/1g== 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=KvnJRariGhCONlRkbXzdF6w8C5rUCgeKPJ0uWv2M9Us=; b=h040sKJNyR/xpVC3e6OVkeGLdy27MDSFPr60KremxBY4Gu4xFnpY2ONQuWTXlgHApj aVkcQ/YPrLXJu47jZULDG2bhyptyYDHI7M/yb/ZLyNHHb5RWXKW4fDG8PQuoj4TTQnHe PSjL/TjDe0pYzWsn/9+1mtewU0/fVArDWS7nChq6COhdi/uq4QMvb30furkfLDrfkiQq 5X1J1dJHhiN3PrkzL/6C7mMrHjx9jqXmsE96nhHPR6NTNrcWuYdPbfiUWt4N7sN8CIwX l/c+vnE902pwSwoaXvBwCvSK83WKgW+XPxPu6NVpSpXWda8U3yMxtJrJssHmXqfon+gf ZfrA== X-Gm-Message-State: APjAAAVzCjpgLBPspFmaS3Nud21Pg05AAzrvnNIFuI5r8GnQwKA0luPT PJQuGIdXnUOboCcohveS9xj+lbPY9Tn+chmDtqzS1A== X-Received: by 2002:a7b:cf18:: with SMTP id l24mr2412100wmg.132.1553497316107; Mon, 25 Mar 2019 00:01:56 -0700 (PDT) MIME-Version: 1.0 References: <20190325033648.16171-1-anup.patel@wdc.com> <20190325052550.GA30996@andestech.com> <20190325064826.GA29111@infradead.org> In-Reply-To: <20190325064826.GA29111@infradead.org> From: Anup Patel Date: Mon, 25 Mar 2019 12:31:45 +0530 Message-ID: Subject: Re: [PATCH v2] RISC-V: Always compile mm/init.c with cmodel=medany To: Christoph Hellwig Cc: Alan Kao , Anup Patel , Palmer Dabbelt , Albert Ou , "linux-kernel@vger.kernel.org" , Mike Rapoport , Atish Patra , Paul Walmsley , "linux-riscv@lists.infradead.org" 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, Mar 25, 2019 at 12:18 PM Christoph Hellwig wrote: > > On Mon, Mar 25, 2019 at 01:25:50PM +0800, Alan Kao wrote: > > Hi Anup, > > > > Sorry for being late to the party. I think one more thing should > > move together with setup_vm(): > > Ah, I wonded about that yesterday but wasn't sure. Maybe notrace > is a little cleaner? Either way we should probably document both > the mcmodel and notrace assumptions in source comments for the next > person touching this code. The setup_vm() should be allowed to call other functions within mm/init.c so let's go with file-level notrace (just like how it was done) for kernel/setup.c I certainly add comments for setup_vm() based on all our findings so far. Regards, Anup