Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp943791imm; Fri, 28 Sep 2018 09:15:55 -0700 (PDT) X-Google-Smtp-Source: ACcGV63/+K8OMEA7nufTZFewg8NAyrp/SomxtF2Ws6Gw24OKtR5amCbewVNPN27V4F5FirdvH7rz X-Received: by 2002:a17:902:2bc5:: with SMTP id l63-v6mr4419931plb.118.1538151355500; Fri, 28 Sep 2018 09:15:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538151355; cv=none; d=google.com; s=arc-20160816; b=ouN1dYStxdIBpw372ziEnVMYJbzBM/D5iLMGD33B7FREPwKHIg6PxAb6ZOXPybh9RI NDaC18IbXfNIkia0Y4jycexJPpOKGTXH4EjEpVKVXQv7tiWVtmbuThgX7h1yDZ51ALdB HjEhMvhCdDF3JgkaFWAOWBzET9at/pjhWFe+H6l9FRRflkDGTDfudGC8q9ewQCgruC7V 0DMhob5LwISRUMOyJSe+xhx+qG6Gu6PJGz3z5rl18S++UIvx46lvRedhs5E9GUHDMflR GqI8l8xBWid4RgGX9nS+khLrHL2Dn2Tph7kblsGZZTNp3acmTDaAPh9WKNQWSKIpNDI/ H40A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=333p9yfI5GRmSYIG0Axly2y8HCgkAoVulKSnmd54I9M=; b=WAh+JQSjxtrNldmkGkvoS0ubPWDXqlWOkniJ5BT/2qtVyuva7IpPIam3sDqEXn5I6T k3S4TaHHwKZR/C08JAKHCDk2vGug2dJne/5qs/ZapJsDfmA3H4OlftiiR40xJv8m63g+ d7aV6E1s0dSimpsOxut7oRmlTCA4v0s84C7tE7bi2nVIpLqhc7ev0a5D+gllSbOlP8Uy I+EQlRDRgkMu2733EemsoMLWxzfkL0cizyzVQPShXMFKDZt+3hROtF2tK4nv/6zFGy2o micW2GDGahYJnbCJoDBXx0Oter32ri5yBgHsTp96xEBnY88aWE6wyLIqKIDEzGgS9wWt rK3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=toKgeUor; 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 r21-v6si4913152pgi.690.2018.09.28.09.15.39; Fri, 28 Sep 2018 09:15:55 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=toKgeUor; 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 S1729397AbeI1Wjl (ORCPT + 99 others); Fri, 28 Sep 2018 18:39:41 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:57828 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728827AbeI1Wjl (ORCPT ); Fri, 28 Sep 2018 18:39:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=333p9yfI5GRmSYIG0Axly2y8HCgkAoVulKSnmd54I9M=; b=toKgeUorlhAGobxKtH2ZINW7H J1RmE6TTMV2kKoF1DnKXU0PdCkd1x3OzUUlD8I55+H2OpjwOUx7vIvCa8LNYyC7giGM9BQdQKnzs1 G2EnPpypiURbKsf5EVQkqgJL0h5JN5NWsWqUMtZeTjMHjzum2c31ktg5htScPNA0Us1vvDi29N79n YAanGYATRvHgThWr/acXAxJ7JfeLqnzGm7CoVI/hKa82tDsZw/KgdbGeOJyF6Udr7B5sZq4B3hIi/ o+n4Fh7yJNKue3wXolQKQy+pnOda9qGBnq/6ae7733iOpdqpASAQyR3wF/1DFIKq1U1qHpKcvCUnB EG9eziGgA==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1g5vQ0-0007HM-C9; Fri, 28 Sep 2018 16:15:04 +0000 Date: Fri, 28 Sep 2018 09:15:03 -0700 From: Christoph Hellwig To: Guo Ren Cc: akpm@linux-foundation.org, arnd@arndb.de, daniel.lezcano@linaro.org, davem@davemloft.net, gregkh@linuxfoundation.org, jason@lakedaemon.net, marc.zyngier@arm.com, mark.rutland@arm.com, mchehab+samsung@kernel.org, peterz@infradead.org, robh@kernel.org, robh+dt@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, devicetree@vger.kernel.org, green.hu@gmail.com Subject: Re: [PATCH V6 04/33] csky: Exception handling and mm-fault Message-ID: <20180928161503.GC19827@infradead.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > +#ifndef CONFIG_CPU_HAS_TLBI > + /* > + * We fault-in kernel-space virtual memory on-demand. The > + * 'reference' page table is init_mm.pgd. > + * > + * NOTE! We MUST NOT take any locks for this case. We may > + * be in an interrupt or a critical region, and should > + * only copy the information from the master page table, > + * nothing more. > + */ > + if (unlikely(address >= VMALLOC_START && address <= VMALLOC_END)) > + { This doesn't fir the kernel style. Please run checkpatch.pl over your code and fix at least all warnings that don't seem clearly bogus.