Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp346430ybj; Wed, 6 May 2020 19:35:43 -0700 (PDT) X-Google-Smtp-Source: APiQypIEE2wp6NnJygxy0zmZJDwiDj7MK/foNBGT6qaMGDTHr71h4iTsI9Ez7TuHXSwy+b9wj05O X-Received: by 2002:aa7:dacc:: with SMTP id x12mr10075672eds.363.1588818943041; Wed, 06 May 2020 19:35:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588818943; cv=none; d=google.com; s=arc-20160816; b=r1ugtbCSqjCQIOEUg6QltAligaXr8LFE12SXbWkZ0ia9d/ujTLYh7Q65OPM5B8HB6f f09zgLtwBVI6uDKjDAxeo7wcRRQm61JG7BGzBfhXc9fvDv4Epy9f1Qc2ePXitIe4RsWT /vWo2EfLHxEBqZwVXL4XD2i0Jsdt64RVgfadVMgWza5VIZZNndRXc2O6TASbLRsUCkle yBshpEyc3zbsfX5ezqdj8AgDFqUTBrbD4tSkeNdSB8e0F6D8RfeCuojCNbGlrAu4AejM 1BjDNc6PaNHZWSdgCX0vcz5xV4eJIS2zV+I4uwv/OCANY6D7x9oP6QQRjcqKByKdXTmN B8Tg== 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:ironport-sdr:ironport-sdr; bh=YXLQz3753Zwi4pGi2xKyOX4wC+MUCJ7GLW8c/TcaQT8=; b=aNtAFIWpWEyaoJQrH4mfigA/0VaN/yFQk1NAJPI+6BBYYE+bcnHqGXu1EntBxxWclQ yUk3F5eBCFHpHDNmTRKwiloBJnDkHUSNvYVgqqje+KESpo6lfTOqgCoCGw0Kxqn8r/9s glf/Yum7X5IXMNf3uJKt8PDxhpH6mFJVSptLPENUmqUJkeEXwnBXFHmLxYqHwyXY8WOt ijcAc02oM21pQ514KPCr4U8kKP2M0qk8hVD4dcPaWz+y2J8Me9f7OmP8UUPF9LI0tWcU cebN12RlpPTA3/G4KYgNtRqtHotqRJl3lC4AEiUfl/XBzEeCC3BPogEVW1G+9P9S/dAW j/jg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b22si2286106eds.109.2020.05.06.19.35.20; Wed, 06 May 2020 19:35:43 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728921AbgEFUdr (ORCPT + 99 others); Wed, 6 May 2020 16:33:47 -0400 Received: from mga07.intel.com ([134.134.136.100]:33389 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727102AbgEFUdq (ORCPT ); Wed, 6 May 2020 16:33:46 -0400 IronPort-SDR: iwj0sBkj/cjFpBhO79fExKo6hqhTLJjIzY9/dVy0zuLVt85sGotipJ12VQOun2+EdxWQ+Lo0ZU iixUW2SnnWLg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2020 13:33:46 -0700 IronPort-SDR: M/8biaEifOtf/KVemcKvoXhaN/dNTMq07DSDleAl9z1EKDvsLY2Gj1/J5kQQSyza0fRBg4vIeY Ynf/+fytsXZg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,360,1583222400"; d="scan'208";a="435017008" Received: from iweiny-desk2.sc.intel.com ([10.3.52.147]) by orsmga005.jf.intel.com with ESMTP; 06 May 2020 13:33:40 -0700 Date: Wed, 6 May 2020 13:33:39 -0700 From: Ira Weiny To: Christoph Hellwig Cc: linux-kernel@vger.kernel.org, Andrew Morton , Christian Koenig , Huang Rui , Thomas Bogendoerfer , "James E.J. Bottomley" , Helge Deller , Benjamin Herrenschmidt , Paul Mackerras , "David S. Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Chris Zankel , Max Filippov , Dan Williams , linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org, linux-xtensa@linux-xtensa.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH V2 08/11] arch/kmap: Ensure kmap_prot visibility Message-ID: <20200506203339.GG1084880@iweiny-DESK2.sc.intel.com> References: <20200504010912.982044-1-ira.weiny@intel.com> <20200504010912.982044-9-ira.weiny@intel.com> <20200506061326.GD5192@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200506061326.GD5192@infradead.org> User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 05, 2020 at 11:13:26PM -0700, Christoph Hellwig wrote: > On Sun, May 03, 2020 at 06:09:09PM -0700, ira.weiny@intel.com wrote: > > From: Ira Weiny > > > > We want to support kmap_atomic_prot() on all architectures and it makes > > sense to define kmap_atomic() to use the default kmap_prot. > > > > So we ensure all arch's have a globally available kmap_prot either as a > > define or exported symbol. > > FYI, I still think a > > #ifndef kmap_prot > #define kmap_prot PAGE_KERNEL > #endif > > in linux/highmem.h would be nicer. Then only xtensa and sparc need > to override it and clearly stand out. That would be nice... But... in this particular patch kmap_prot needs to be in arch/microblaze/include/asm/highmem.h to preserve bisect-ability. So there would be an inversion with this define and the core #ifndef... I like the change but I'm going to add this change as a follow on patch because at the end of the series microblaze no longer needs this. If this is reasonable could I get a review on this patch to add to the next series? Ira