Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1337120rwl; Thu, 10 Aug 2023 09:39:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHhEofTv+mL3SnNzsYwsu3gBYqXgCK9gpuMKsSU6wyVTnXKYV7/7Ep8Ya7PtaYI0ZVNtADq X-Received: by 2002:a17:902:bb8c:b0:1bb:961e:dfbc with SMTP id m12-20020a170902bb8c00b001bb961edfbcmr2601239pls.20.1691685539629; Thu, 10 Aug 2023 09:38:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691685539; cv=none; d=google.com; s=arc-20160816; b=TMon2SS8SiM3ZFgEFoXsDQ56b7uQGLXHpTmelvcvVsOsFnvuv7Un3T3S0uJQHVJJkU DPTS9e9IGxyeGR2jV84zCW/tam9GqYGtNlET2J42Z64/J4GZPTXlHQHe6KX6fds1WLdl WHdSVdppqwjx83wkpN1mo6IS9aJCPeiHhmSQI69pqN9lqdBsk3Ve6SXETGfhqg93eY0d GX8vqq93BNv2skWpMBxjEBstConFuVulWa3DbuOCdUqagLuh+dHhcYfxKGEWgY7cEstl 2qZ5dPl3oHp0z3sEsV4FrJY8C5CVle1ZYQSfQr6hTmfXb+7frUQDrktXliJDQnx6AeOa uTGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hiIZJWDMNiv2gzLUMIYbryzWNVPKrIU6vS93dh6YUgA=; fh=L0urJJ1zQn0VM0PreP0p+Ek05zR2fDwjC5H2D+pOonQ=; b=qL5vo06rc1lqDDmwFIpc2vOaNq9ofv16SNIF1MmSP0ZFUgR6WO6q8nRgepwEmZIv8V zYzFQgDNAlXufr3kiu3K+c9F2juXA6w3fiI4IaHxmrIrjOEQt+AwXq4mb5qzLHQW3O1j bkg0sIngDaVKqvUPfIW2bbzv/JAAWttj9qirYk9DCpy8v8e4LuxVWyJGF+TID7kc9eRo IfCbtKDlji0G5w8gKqznz+wrsKJMGI4yBLalKdEUbDmmqAoNnkUSJBv3EdF9K8nKgBLW MHln0c5QCZ/x/m1/CwtZ4/WWJo+HZQYvusvUwY9+7wKhYSxWWOstE2ZToy2G8Upvfkgs zdXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=obK7Vufl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x4-20020a170902ec8400b001bb6d711625si1810475plg.279.2023.08.10.09.38.46; Thu, 10 Aug 2023 09:38:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=obK7Vufl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236717AbjHJQIR (ORCPT + 99 others); Thu, 10 Aug 2023 12:08:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236462AbjHJQIA (ORCPT ); Thu, 10 Aug 2023 12:08:00 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BECE5257; Thu, 10 Aug 2023 09:06:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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; bh=hiIZJWDMNiv2gzLUMIYbryzWNVPKrIU6vS93dh6YUgA=; b=obK7Vufll0p3NiLUKIGLh71Mvz LoMOvVdhtCXloJ/bs2EGYTiqFibQe8Vq+XkQMIneZxhny/LNv1oyRb/2eHDmTbF8z0ZLp8ri1hZop 7fgysE/f97NB92qJOA3kx1YpP897VNmLTvWviH0qaIc0bW5mBAnAtgt8g1Q2jKuQcbbKRt7Lqsrzb W7le995cvpS+NktKwNyz2LXgD4IZ1cvC2TtP6yg63uobduAJ73McZ16yzetJPKTv+Kcny2iDVuyjX JL/qYgw/aLo4jB5jfWvmQ4rUnUqcB47o1aCTPHoCdD3DGbWTcKgZtugHlXhg8D5is9ltl5hINdaLE y2iZo9pw==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qU8As-0088cE-0p; Thu, 10 Aug 2023 16:06:10 +0000 Date: Thu, 10 Aug 2023 09:06:10 -0700 From: Christoph Hellwig To: Richard Weinberger Cc: linux-mtd@lists.infradead.org, Christoph Hellwig , Stephan Wurm , stable@vger.kernel.org, Miquel Raynal , Vignesh Raghavendra , Oliver Neukum , Ali Akcaagac , Jamie Lenehan , "James E.J. Bottomley" , "Martin K. Petersen" , Ezequiel Garcia , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Subject: Re: [PATCH 1/7] ubi: block: Refactor sg list processing for highmem Message-ID: References: <20230810160019.16977-1-richard@nod.at> <20230810160019.16977-2-richard@nod.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230810160019.16977-2-richard@nod.at> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 10, 2023 at 06:00:12PM +0200, Richard Weinberger wrote: > Currently sg_virt() is used while filling the sg list from LEB data. > This approach cannot work with highmem. > > Refactor ubi_eba_read_leb_sg() to use kmap_atomic() for sg list > access. > Since kmap_atomic() disables preempt a bounce buffer is needed. > kmap_local_page() is not used to allow easy backporting of this patch > to older kernels. > > The followup patches in this series will switch to kmap_sg() > and we can remove our own helper and the bounce buffer. Please just use kmap_local and avoid the bounce buffering.