Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp887909ybz; Fri, 1 May 2020 10:20:16 -0700 (PDT) X-Google-Smtp-Source: APiQypKUS25YqwfISOLHSljEla0+H0dREpSX0GwIYCfEmWNtlgV8OSnAKfp3D5ST645/ZtrELNLM X-Received: by 2002:a17:906:4e02:: with SMTP id z2mr4145614eju.212.1588353616028; Fri, 01 May 2020 10:20:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588353616; cv=none; d=google.com; s=arc-20160816; b=GfVOyl3Cf6cu+LperobYzubQaYO+tSEmN94oC45bRXyC3tRtB/ZeXlHVsgREdbI9DP vum2+7eWMvDXH5CGlbmtUXMxhvbzI3PylrEu7xZI+GWUrFZCAITQG0NhWdm82I72oylH U0mfx9iwpHY5MpGiuA0qYHgYOshvWVKc8jypIpgsATEYeFeGt+PzPVkRS0HaA1yXw+yv ARKqKALK3+P+w2cUsD7pa3qCiNmg0a761A86dvdv0WoqP+Lf1CIS9ygQnQtsSDREk+SY +m480eXRQ8QDeBoCit6hNBCvCpeJqN/GCv0d24PnohmpgkuSnKYgkoALT2CMzr2YgrDA cK4g== 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=THXRdxdAhFv7ZTzygNxNYZT3Vl+beGpmrlzHWn6ZCS0=; b=qswEOXxcyTsvoI0x26zut6f0gQcL6d+2a0iJvbFC9sGqZUTF+r74tc4/r/mMMFHfW3 fkmAiHMeu7G8C3C01vivJlbmzu8akGSZ+87WyQAq3FTScDT5uaTs/5sjMGlB5BhqxCtt fPiVAYCmOKrqcTmwQuQ6H/SyRF6hnkwg7ohwCBoWzXPBMojdyl5C9jAQ2iSZlDP8JCeB z1TPx9KKRYCOmZhhMFMjQsu6gbtpDj+qu/uzYegiY529DepElAH0NRyzZKQpISbfDlWH QDN6X/C6MGiGLHDThBi/pHJE6yhiln+S5r6ZvcjjWLq1gyZv8TSHhVXkUSkWWWD8qhVg vDHw== 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 x17si2505613edi.378.2020.05.01.10.19.53; Fri, 01 May 2020 10:20:16 -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 S1729611AbgEARSb (ORCPT + 99 others); Fri, 1 May 2020 13:18:31 -0400 Received: from mga03.intel.com ([134.134.136.65]:19945 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729202AbgEARSa (ORCPT ); Fri, 1 May 2020 13:18:30 -0400 IronPort-SDR: ShSxVb1kpZgQ2bq7gzOdeZ6IhUReEnIjdgcM1Wj5MQ1RfeGgtXVsamZQNuboQpwKctyBI7Q3gk mqtOU/6lLtcg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 May 2020 10:18:29 -0700 IronPort-SDR: R2OHZlJ5m4ujiSXIVvaGSStL0azGkDVM04Moca/qctbpNzEmR/lPEzkfc2x5+KowINCeguMIHy 4dEJuDVXUKuw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,340,1583222400"; d="scan'208";a="405797056" Received: from iweiny-desk2.sc.intel.com ([10.3.52.147]) by orsmga004.jf.intel.com with ESMTP; 01 May 2020 10:18:28 -0700 Date: Fri, 1 May 2020 10:18:28 -0700 From: Ira Weiny To: Christoph Hellwig Cc: linux-kernel@vger.kernel.org, Andrew Morton , Christian Koenig , Huang Rui , Peter Zijlstra , Dave Hansen , dri-devel@lists.freedesktop.org, "James E.J. Bottomley" , Max Filippov , Paul Mackerras , "H. Peter Anvin" , sparclinux@vger.kernel.org, Thomas Gleixner , Helge Deller , x86@kernel.org, linux-csky@vger.kernel.org, Ingo Molnar , linux-snps-arc@lists.infradead.org, linux-xtensa@linux-xtensa.org, Borislav Petkov , Andy Lutomirski , Dan Williams , linux-arm-kernel@lists.infradead.org, Chris Zankel , Thomas Bogendoerfer , linux-parisc@vger.kernel.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, "David S. Miller" Subject: Re: [PATCH V1 00/10] Remove duplicated kmap code Message-ID: <20200501171828.GA673260@iweiny-DESK2.sc.intel.com> References: <20200430203845.582900-1-ira.weiny@intel.com> <20200501085456.GL27858@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200501085456.GL27858@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 Fri, May 01, 2020 at 01:54:56AM -0700, Christoph Hellwig wrote: > In addition to the work already it the series, it seems like > LAST_PKMAP_MASK, PKMAP_ADDR and PKMAP_NR can also be consolidated > to common code. Agreed, I mentioned in the cover letter there are similarities... > > Also kmap_atomic_high_prot / kmap_atomic_pfn could move into common > code, maybe keyed off a symbol selected by the actual users that > need it. It also seems like it doesn't actually ever need to be > exported. ... but these are not as readily obvious, at least to me. I do see a pattern but the differences seemed subtle enough that it would take a while to ensure correctness. So I'd like to see this series go in and build on it. > > This in turn would lead to being able to allow io_mapping_map_atomic_wc > on all architectures, which might make nouveau and qxl happy, but maybe > that can be left for another series. I agree, that this should be follow on patches. I still need to fix the bisect-ability and I don't want to bog down 0-day with a longer series. Thanks for the review! Ira