Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp125278ybi; Tue, 2 Jul 2019 17:31:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6JenP3k7nhqOHQnFW0FnnpoTHcD0fnbTRLxfllpdP/gu312YaPWtXZQhr4bs9KagLrTaE X-Received: by 2002:a17:90a:270f:: with SMTP id o15mr8746455pje.56.1562113881621; Tue, 02 Jul 2019 17:31:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562113881; cv=none; d=google.com; s=arc-20160816; b=NPuZqrsMnTkN7fA1MOLw1ePUZPZlegaE0uZbF64/BjsVwH9OjvltOvgamgyeMAskHM 1czFiwJiGVxD3WeZXjh+T/4Mr3K9AUuaT9VGL7p41HALxtyR+X2ivpvjWk9QElG4wN5V PKvXHKi5uN1RhlFaHGWOUd06BFS12HPNnI+w51BickVssARwwKqOG49UPEuoPZxiSGNY CKG/v6EXLA3XUwR2mYUHIq0dmZbvXCStHfOV0WVtcTq2E+Nlso8Joiv2ay9T9OsdzLHz VE0VJEuh4vN46Tp50DrPSj+nXVfUmFB6h918kCNDPM/+ANpLm4HTEDI5b6UskHllepfv PgpQ== 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=BWuzzOxwUVGbMCvFD/kQRaZgbqg2U0ttqAGoU0tIxDc=; b=EFo0VyMx7CO/hm+gzWx/wvCTvcf+Fm1iXWx3oiN5xsQiADmKOc2iRNmGla8EK9uSDi udzTTWJrxam7pVZ7GM4qEKOCaREm70nZPculYRlMYZz9cL8FFgw9/UYUPiVUFJve2tOq AjSlH5rdXPahfw3gk9AGDygpqPyWqH6Kgb+oYD+aHoD8J7Tf42mwZHJqrqToj4bs1qk1 d/TB0NVQ0wlXPW6Hf3/u5Xs4rh95nrt7/ZVpQjnQ99Y8clSgHow6jow2NQFEB1I1D7vr e8sibqwamFErDg7Nqvgciu9VgS+afuoXidRgB7o7fmM7D564RTL4vvmk+fZAGQb74U8Q gbIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WU9xE1Va; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j3si314012pgt.460.2019.07.02.17.31.05; Tue, 02 Jul 2019 17:31:21 -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=@linaro.org header.s=google header.b=WU9xE1Va; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727261AbfGCA2l (ORCPT + 99 others); Tue, 2 Jul 2019 20:28:41 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:44307 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727241AbfGCA2j (ORCPT ); Tue, 2 Jul 2019 20:28:39 -0400 Received: by mail-lf1-f68.google.com with SMTP id r15so391540lfm.11 for ; Tue, 02 Jul 2019 17:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BWuzzOxwUVGbMCvFD/kQRaZgbqg2U0ttqAGoU0tIxDc=; b=WU9xE1VaEDXdGOfDOaQ8eCNlTBcxHe1uPjWOXfL0akhUDkfR9pYxvy2vkEDfni+c8h WMVK/5ptG9BAQJtthbU9xhXp41aX/dRI7O6DGRbzSic+KQYV4r79fr3F33IPwBk4A9/w GB0kyYoceOYaI2Zwrbm6QbIM8AP0naUmdNCuQ2tAPmooOIqjVKYIIcMIkgONM7r947bm Rcb/3dBlykiu3KSgumMs5axcfx87QLCZKcPVy2M8OzJauDqJh5Z1Bo7FTS75GRY0iu0+ IdLBkAJI8wJkTgpnoj96Ri0vBe8IfwgD2+EBl9ikgM/r7w39QRdydkoW0ChmAqm5YMzc LsVA== 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=BWuzzOxwUVGbMCvFD/kQRaZgbqg2U0ttqAGoU0tIxDc=; b=P4ZWGIynu02orPUXm0SVvv4+HdNulUgwIA/DRpmvi17HTgpzZHpvpck5GQJ4XQTmbw G7nvXCYH21/MPtGBXFu99x3mRvAKXRA0voUij1jKgyIdH1JcnxPRgID5oZIlN4cpMOOV BlsLJydj3n5Jy6RXVQHdUhVo6T0Q0I7Dnafg6h6k4D8LD+Fw5xuQyiI0eYpd2iV/Rj28 HvTlrHxN5Hk2gy+j5y6MgOZfF7lyvxXGdHimc2G0P0pJksKoC6YxnMACS8TwUGCRE9t8 aZBL84fdkT6mUDMg8HUDVf9Zc+YhCq3ibs20WemMrZFSC79Ne5zb8KXvc/vULm9Cy88+ 3Wsg== X-Gm-Message-State: APjAAAW37s7KDA3eay1P/tWEkL/c1ptQswRB3/hPEFFM6Ca4sDHJ8Pag btYGt479PXLOR4K7o9A6PJC/2TiaJeXL4qrmVHl3UwXUyMk= X-Received: by 2002:a19:dc0d:: with SMTP id t13mr1324771lfg.152.1562101441838; Tue, 02 Jul 2019 14:04:01 -0700 (PDT) MIME-Version: 1.0 References: <20190617221134.9930-1-f.fainelli@gmail.com> <20190617221134.9930-2-f.fainelli@gmail.com> In-Reply-To: <20190617221134.9930-2-f.fainelli@gmail.com> From: Linus Walleij Date: Tue, 2 Jul 2019 23:03:50 +0200 Message-ID: Subject: Re: [PATCH v6 1/6] ARM: Add TTBR operator for kasan_init To: Florian Fainelli , Russell King Cc: Linux ARM , bcm-kernel-feedback-list , Abbott Liu , Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Jonathan Corbet , Russell King , christoffer.dall@arm.com, Marc Zyngier , Arnd Bergmann , Nicolas Pitre , Vladimir Murzin , Kees Cook , jinb.park7@gmail.com, Alexandre Belloni , Ard Biesheuvel , Daniel Lezcano , Philippe Ombredanne , Rob Landley , Greg KH , Andrew Morton , Mark Rutland , Catalin Marinas , Masahiro Yamada , Thomas Gleixner , thgarnie@google.com, David Howells , Geert Uytterhoeven , Andre Przywara , julien.thierry@arm.com, drjones@redhat.com, philip@cog.systems, mhocko@suse.com, kirill.shutemov@linux.intel.com, kasan-dev@googlegroups.com, Linux Doc Mailing List , "linux-kernel@vger.kernel.org" , kvmarm@lists.cs.columbia.edu, Andrey Ryabinin 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 Hi Florian! thanks for your patch! On Tue, Jun 18, 2019 at 12:11 AM Florian Fainelli wrote: > From: Abbott Liu > > The purpose of this patch is to provide set_ttbr0/get_ttbr0 to > kasan_init function. The definitions of cp15 registers should be in > arch/arm/include/asm/cp15.h rather than arch/arm/include/asm/kvm_hyp.h, > so move them. > > Cc: Andrey Ryabinin > Reported-by: Marc Zyngier > Signed-off-by: Abbott Liu > Signed-off-by: Florian Fainelli > +#include What is this for? I think it can be dropped. This stuff adding a whole bunch of accessors: > +static inline void set_par(u64 val) > +{ > + if (IS_ENABLED(CONFIG_ARM_LPAE)) > + write_sysreg(val, PAR_64); > + else > + write_sysreg(val, PAR_32); > +} Can we put that in a separate patch since it is not adding any users, so this is a pure refactoring patch for the current code? Yours, Linus Walleij