From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52AD8C43463 for ; Sun, 20 Sep 2020 17:43:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0679D20789 for ; Sun, 20 Sep 2020 17:43:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600623797; bh=e88L3mmSMH3SNmz70p5BMsmQ7sOVhS0aufnZ5RV1/fg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:List-ID:From; b=Xo4Eistg65fTW2IRlF6jzo+DVy9kEj3JG/pBKGt7j5KrOsoUNfOyp1UjygMo3mLaA Pvb73ZPxYQLYmuEBRVc0J6Ecy6kyMj76udGHde6QZluqhKWSeZX+dykLNF3bLgmuWs DTUNL78+hZvSYpH2oxa33QuaDcV+Qf4JMrL2M6OM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726178AbgITRnP (ORCPT ); Sun, 20 Sep 2020 13:43:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725858AbgITRnP (ORCPT ); Sun, 20 Sep 2020 13:43:15 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23FD8C061755 for ; Sun, 20 Sep 2020 10:43:15 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id x69so11520872lff.3 for ; Sun, 20 Sep 2020 10:43:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ejz/GOVvBNgiciatH4EjBRwlfy2MnL1tDSObr2BrKeg=; b=cBDZkiv4uiqeUChUbmqRPD8tkvllq4angLGjbI6fcWbyt0pYNQ1SGMQdEdmcewXaXT IE5S9J/GFuNXr/rpY1dC/0Yf7uyzIPTs0u+8f3gLaQ3BI+ak5trluGhkQvuTa+ZLZ3HS UcueGtftJ4Q3p1fqvR6MgwdAfAMUTTFhAr56U= 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=ejz/GOVvBNgiciatH4EjBRwlfy2MnL1tDSObr2BrKeg=; b=MiNZSe+ldL8B9r4wQ5/45CHUYGFbRdEDeAE5DYpY2TwL5HCK912eoiJOeQjOREFuhz Yj8O6uMqQMLyRco5Bd4UMRs4ZtGsYUWnNmpAkpiSQPqCWx0SNaSmDtunxvkb8xJhyNUw uVrJjfSlSTYshrxmkD5Geteq9frZ7HK1XeoXmaJjd5Gkxaaayy/RLsgWGyQJ6sSf25L8 nuRc3KAClNAHy1P76A6/2+oXhmtcqDOBniOXlm9c0eFJ8VpIcprtjP+QL4Knau9Svu8U kNHrnxz3bEO2KZsFphqWnjv7goMfEGRJ4WmtIaHeJLrs5sXp7cx7Yl5SELvGXniL5Mjr 0oFA== X-Gm-Message-State: AOAM532p4Ub0XyHWJjrHsb89yi48t6Wb/tem6aHefwCAkPcM+7IArkq5 8rwfN8SP4TTj7r+UkKOAOYMgmjDo6otF+Q== X-Google-Smtp-Source: ABdhPJw5RmrzR+Hy1U5slri6/0dxn5IHdiHZEznMYl7AgieKoxgU5U83UKnLsc7j1TvamOaBvSDcTQ== X-Received: by 2002:ac2:52ab:: with SMTP id r11mr16144130lfm.118.1600623792940; Sun, 20 Sep 2020 10:43:12 -0700 (PDT) Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com. [209.85.208.173]) by smtp.gmail.com with ESMTPSA id d24sm1948886lfn.140.2020.09.20.10.43.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Sep 2020 10:43:12 -0700 (PDT) Received: by mail-lj1-f173.google.com with SMTP id a15so9203220ljk.2 for ; Sun, 20 Sep 2020 10:43:11 -0700 (PDT) X-Received: by 2002:a2e:84d6:: with SMTP id q22mr13708479ljh.70.1600623791519; Sun, 20 Sep 2020 10:43:11 -0700 (PDT) MIME-Version: 1.0 References: <20200919091751.011116649@linutronix.de> <87mu1lc5mp.fsf@nanos.tec.linutronix.de> <87k0wode9a.fsf@nanos.tec.linutronix.de> <87eemwcpnq.fsf@nanos.tec.linutronix.de> In-Reply-To: <87eemwcpnq.fsf@nanos.tec.linutronix.de> From: Linus Torvalds Date: Sun, 20 Sep 2020 10:42:55 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [patch RFC 00/15] mm/highmem: Provide a preemptible variant of kmap_atomic & friends To: Thomas Gleixner Cc: LKML , linux-arch , Paul McKenney , "the arch/x86 maintainers" , Sebastian Andrzej Siewior , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Will Deacon , Andrew Morton , Linux-MM , Russell King , Linux ARM , Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.org, Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , intel-gfx , dri-devel , Ard Biesheuvel , Herbert Xu , Vineet Gupta , "open list:SYNOPSYS ARC ARCHITECTURE" , Arnd Bergmann , Guo Ren , linux-csky@vger.kernel.org, Michal Simek , Thomas Bogendoerfer , linux-mips@vger.kernel.org, Nick Hu , Greentime Hu , Vincent Chen , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev , "David S. Miller" , linux-sparc Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 20, 2020 at 10:40 AM Thomas Gleixner wrote: > > I think the more obvious solution is to split the whole exercise: > > schedule() > prepare_switch() > unmap() > > switch_to() > > finish_switch() > map() Yeah, that looks much easier to explain. Ack. Linus From mboxrd@z Thu Jan 1 00:00:00 1970 From: Linus Torvalds Date: Sun, 20 Sep 2020 17:42:55 +0000 Subject: Re: [patch RFC 00/15] mm/highmem: Provide a preemptible variant of kmap_atomic & friends Message-Id: List-Id: References: <20200919091751.011116649@linutronix.de> <87mu1lc5mp.fsf@nanos.tec.linutronix.de> <87k0wode9a.fsf@nanos.tec.linutronix.de> <87eemwcpnq.fsf@nanos.tec.linutronix.de> In-Reply-To: <87eemwcpnq.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Thomas Gleixner Cc: Juri Lelli , Peter Zijlstra , Sebastian Andrzej Siewior , dri-devel , linux-mips@vger.kernel.org, Ben Segall , Max Filippov , Guo Ren , linux-sparc , Vincent Chen , Will Deacon , Ard Biesheuvel , linux-arch , Vincent Guittot , Herbert Xu , Michael Ellerman , the arch/x86 maintainers , Russell King , linux-csky@vger.kernel.org, David Airlie , Mel Gorman , "open list:SYNOPSYS ARC ARCHITECTURE" , linux-xtensa@linux-xtensa.org, Paul McKenney , intel-gfx , linuxppc-dev , Steven Rostedt , Rodrigo Vivi , Dietmar Eggemann , Linux ARM , Chris Zankel , Michal Simek , Thomas Bogendoerfer , Nick Hu , Linux-MM , Vineet Gupta , LKML , Arnd Bergmann , Paul Mackerras , Andrew Morton , Daniel Bristot de Oliveira , "David S. Miller" , Greentime Hu On Sun, Sep 20, 2020 at 10:40 AM Thomas Gleixner wrote: > > I think the more obvious solution is to split the whole exercise: > > schedule() > prepare_switch() > unmap() > > switch_to() > > finish_switch() > map() Yeah, that looks much easier to explain. Ack. Linus From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57918C43466 for ; Sun, 20 Sep 2020 17:43:19 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id CB3CA20789 for ; Sun, 20 Sep 2020 17:43:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="cBDZkiv4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CB3CA20789 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 2EE7A6B0081; Sun, 20 Sep 2020 13:43:18 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2C5B56B0082; Sun, 20 Sep 2020 13:43:18 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1DB3B6B0083; Sun, 20 Sep 2020 13:43:18 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0111.hostedemail.com [216.40.44.111]) by kanga.kvack.org (Postfix) with ESMTP id 082C16B0081 for ; Sun, 20 Sep 2020 13:43:18 -0400 (EDT) Received: from smtpin07.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id BB5173628 for ; Sun, 20 Sep 2020 17:43:17 +0000 (UTC) X-FDA: 77284161234.07.wine63_210f2a32713e Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin07.hostedemail.com (Postfix) with ESMTP id A034A1803F9AA for ; Sun, 20 Sep 2020 17:43:17 +0000 (UTC) X-HE-Tag: wine63_210f2a32713e X-Filterd-Recvd-Size: 5583 Received: from mail-lf1-f66.google.com (mail-lf1-f66.google.com [209.85.167.66]) by imf26.hostedemail.com (Postfix) with ESMTP for ; Sun, 20 Sep 2020 17:43:16 +0000 (UTC) Received: by mail-lf1-f66.google.com with SMTP id y2so11496660lfy.10 for ; Sun, 20 Sep 2020 10:43:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ejz/GOVvBNgiciatH4EjBRwlfy2MnL1tDSObr2BrKeg=; b=cBDZkiv4uiqeUChUbmqRPD8tkvllq4angLGjbI6fcWbyt0pYNQ1SGMQdEdmcewXaXT IE5S9J/GFuNXr/rpY1dC/0Yf7uyzIPTs0u+8f3gLaQ3BI+ak5trluGhkQvuTa+ZLZ3HS UcueGtftJ4Q3p1fqvR6MgwdAfAMUTTFhAr56U= 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=ejz/GOVvBNgiciatH4EjBRwlfy2MnL1tDSObr2BrKeg=; b=P1xnoxlhqmad/KiWtK30brjAwvS4c3N8sGzryU1Z47pdgB5bVLdmuvW6eHUNYqNOQD PBYyfrrwEAd0rhNIVoJoSPWK5/e0C2Bd4kq3kvJg90nPr8LgVD1li5jXkfDAGILV+YIG NM2qz7DTXMKc3G47U7oCUWoMsuL6J1doMQgwgbFQuleRBQwmpHJtdmKgFQq6zkW+tSDK 95wei20w16a9RCIOv1vieepHtcgmxYbnITTCxKf+tvqx9wlI4H3QeIb15LBG/9+7EugO XLgyVzpdvhhmLt5W5ClLR1SDd3e77Sqfgobs57M9N3wQSNIPUJDBc0D+XuFjqvJzpkmW uiTg== X-Gm-Message-State: AOAM533a7PM1bzzugt3YchxV7Xb+KeSzRyqsT7/sBoni/vvPQRC8fX1z imVF2Y5tBHCvUC7l0H99OIYb7KvP61OEoQ== X-Google-Smtp-Source: ABdhPJxXNqplgnEAKAexx17PxB/C16K+g6TPGLfIunFRzBu1ASkwOhkO2/qUTFQtfwl8OhoJkZ4gWw== X-Received: by 2002:a05:6512:304d:: with SMTP id b13mr7017672lfb.37.1600623795028; Sun, 20 Sep 2020 10:43:15 -0700 (PDT) Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com. [209.85.208.181]) by smtp.gmail.com with ESMTPSA id z24sm1917611lfe.54.2020.09.20.10.43.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Sep 2020 10:43:12 -0700 (PDT) Received: by mail-lj1-f181.google.com with SMTP id u4so9168115ljd.10 for ; Sun, 20 Sep 2020 10:43:11 -0700 (PDT) X-Received: by 2002:a2e:84d6:: with SMTP id q22mr13708479ljh.70.1600623791519; Sun, 20 Sep 2020 10:43:11 -0700 (PDT) MIME-Version: 1.0 References: <20200919091751.011116649@linutronix.de> <87mu1lc5mp.fsf@nanos.tec.linutronix.de> <87k0wode9a.fsf@nanos.tec.linutronix.de> <87eemwcpnq.fsf@nanos.tec.linutronix.de> In-Reply-To: <87eemwcpnq.fsf@nanos.tec.linutronix.de> From: Linus Torvalds Date: Sun, 20 Sep 2020 10:42:55 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [patch RFC 00/15] mm/highmem: Provide a preemptible variant of kmap_atomic & friends To: Thomas Gleixner Cc: LKML , linux-arch , Paul McKenney , "the arch/x86 maintainers" , Sebastian Andrzej Siewior , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Will Deacon , Andrew Morton , Linux-MM , Russell King , Linux ARM , Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.org, Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , intel-gfx , dri-devel , Ard Biesheuvel , Herbert Xu , Vineet Gupta , "open list:SYNOPSYS ARC ARCHITECTURE" , Arnd Bergmann , Guo Ren , linux-csky@vger.kernel.org, Michal Simek , Thomas Bogendoerfer , linux-mips@vger.kernel.org, Nick Hu , Greentime Hu , Vincent Chen , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev , "David S. Miller" , linux-sparc Content-Type: text/plain; charset="UTF-8" X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Sun, Sep 20, 2020 at 10:40 AM Thomas Gleixner wrote: > > I think the more obvious solution is to split the whole exercise: > > schedule() > prepare_switch() > unmap() > > switch_to() > > finish_switch() > map() Yeah, that looks much easier to explain. Ack. Linus From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A84BC43465 for ; Sun, 20 Sep 2020 17:50:45 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AF8DC20866 for ; Sun, 20 Sep 2020 17:50:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="cBDZkiv4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AF8DC20866 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4BvZqP6jf7zDqcQ for ; Mon, 21 Sep 2020 03:50:41 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linuxfoundation.org (client-ip=2a00:1450:4864:20::541; helo=mail-ed1-x541.google.com; envelope-from=torvalds@linuxfoundation.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=google header.b=cBDZkiv4; dkim-atps=neutral Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4BvZmm2D4TzDqbx for ; Mon, 21 Sep 2020 03:48:21 +1000 (AEST) Received: by mail-ed1-x541.google.com with SMTP id a12so10594842eds.13 for ; Sun, 20 Sep 2020 10:48:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ejz/GOVvBNgiciatH4EjBRwlfy2MnL1tDSObr2BrKeg=; b=cBDZkiv4uiqeUChUbmqRPD8tkvllq4angLGjbI6fcWbyt0pYNQ1SGMQdEdmcewXaXT IE5S9J/GFuNXr/rpY1dC/0Yf7uyzIPTs0u+8f3gLaQ3BI+ak5trluGhkQvuTa+ZLZ3HS UcueGtftJ4Q3p1fqvR6MgwdAfAMUTTFhAr56U= 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=ejz/GOVvBNgiciatH4EjBRwlfy2MnL1tDSObr2BrKeg=; b=RkMZno5Yd+NlkHnu4pLqANR80U8zpIbfjerujIC+cJ8cI4Hvrf50BLNxEth/85a/zq BVxACML8ngEVnWmShXaPFxylxeAe3B9Q6gSWOObYkays20Dof5TXKnr2arC5g2cAhmgg wjo2fvtAHYX2LW1xsIrUSKvmZDq8lVYp6Sy76ZADAPWs6YA1G1ONNKbX8wyadk89OxcL GKxdDUDbF29JQINT5wxcOI38VjlXTLQJ2tBDzfXLgZiEmeT11B7BRNIaMUiU1gFPRcHJ XR3yE3zQSChidQlY0JGZiNEeMVIaGgHw/B5oJn5yFKvHk6ohuWd9+VK0aQwB6vh5dO3z w7mw== X-Gm-Message-State: AOAM533xtYFnk+T0INDnIy9QboHWqzQqKVpgjmo1F57WVSczLP9np5zE +FQkKFCjy+qibPMclkSce9nlwrKOyYKk8Q== X-Google-Smtp-Source: ABdhPJxaN2zy6HbrRGtt8remzYFIMMVol3rUK8FTQ2eALJAfJw9AJ1xhcOv7/C3NOzigFontBCMQWQ== X-Received: by 2002:aa7:d6c6:: with SMTP id x6mr49225254edr.338.1600624098111; Sun, 20 Sep 2020 10:48:18 -0700 (PDT) Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com. [209.85.208.47]) by smtp.gmail.com with ESMTPSA id js16sm7007159ejb.67.2020.09.20.10.48.17 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Sep 2020 10:48:17 -0700 (PDT) Received: by mail-ed1-f47.google.com with SMTP id k14so10719378edo.1 for ; Sun, 20 Sep 2020 10:48:17 -0700 (PDT) X-Received: by 2002:a2e:84d6:: with SMTP id q22mr13708479ljh.70.1600623791519; Sun, 20 Sep 2020 10:43:11 -0700 (PDT) MIME-Version: 1.0 References: <20200919091751.011116649@linutronix.de> <87mu1lc5mp.fsf@nanos.tec.linutronix.de> <87k0wode9a.fsf@nanos.tec.linutronix.de> <87eemwcpnq.fsf@nanos.tec.linutronix.de> In-Reply-To: <87eemwcpnq.fsf@nanos.tec.linutronix.de> From: Linus Torvalds Date: Sun, 20 Sep 2020 10:42:55 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [patch RFC 00/15] mm/highmem: Provide a preemptible variant of kmap_atomic & friends To: Thomas Gleixner Content-Type: text/plain; charset="UTF-8" X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Juri Lelli , Peter Zijlstra , Sebastian Andrzej Siewior , Joonas Lahtinen , dri-devel , linux-mips@vger.kernel.org, Ben Segall , Max Filippov , Guo Ren , linux-sparc , Vincent Chen , Will Deacon , Ard Biesheuvel , linux-arch , Vincent Guittot , Herbert Xu , the arch/x86 maintainers , Russell King , linux-csky@vger.kernel.org, David Airlie , Mel Gorman , "open list:SYNOPSYS ARC ARCHITECTURE" , linux-xtensa@linux-xtensa.org, Paul McKenney , intel-gfx , linuxppc-dev , Steven Rostedt , Jani Nikula , Rodrigo Vivi , Dietmar Eggemann , Linux ARM , Chris Zankel , Michal Simek , Thomas Bogendoerfer , Nick Hu , Linux-MM , Vineet Gupta , LKML , Arnd Bergmann , Daniel Vetter , Paul Mackerras , Andrew Morton , Daniel Bristot de Oliveira , "David S. Miller" , Greentime Hu Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Sun, Sep 20, 2020 at 10:40 AM Thomas Gleixner wrote: > > I think the more obvious solution is to split the whole exercise: > > schedule() > prepare_switch() > unmap() > > switch_to() > > finish_switch() > map() Yeah, that looks much easier to explain. Ack. Linus From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 05A16C43463 for ; Sun, 20 Sep 2020 17:50:38 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9201B20866 for ; Sun, 20 Sep 2020 17:50:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="n33WPHaC"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="cBDZkiv4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9201B20866 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-snps-arc-bounces+linux-snps-arc=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=kRA9J2VkczBHr4+Thtll1ApSMpFOc25wGP7vkWlWDNc=; b=n33WPHaC/STqbMyVqm2VN4o3e Kdz3RyNjT/YUJAFIW6/f8gEEuKJwxRft299SVKcor2waT1udZ6i/ti2tVvzpp60jbMq2kDZtyuxG+ k11dmbEOjnc2hhad4W8CBkYQ2cpsbSoM5JxP5kL+ryEHrqZWI/yJw/K7utAC64vWGVdaD34AoJP9k IjXpoMaXoupwP7p3L7E1f5z3fEbz/WKIKFSs26qd7YfZhmGgEgNMzthgacvtKYDb1KfkT1JH2P+zO Y8s3fNO+qJp6SKZB/nUAdG/xdS50tae/O32xqBEOLY+IbXjm+uNrXPJCva0+zQ0a9qld0ZhhUbpaK +WlGBfvgA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kK3Tw-00087Y-Rh; Sun, 20 Sep 2020 17:50:36 +0000 Received: from mail-ej1-x644.google.com ([2a00:1450:4864:20::644]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kK3Tv-00087B-5l for linux-snps-arc@lists.infradead.org; Sun, 20 Sep 2020 17:50:35 +0000 Received: by mail-ej1-x644.google.com with SMTP id p9so14647618ejf.6 for ; Sun, 20 Sep 2020 10:50:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ejz/GOVvBNgiciatH4EjBRwlfy2MnL1tDSObr2BrKeg=; b=cBDZkiv4uiqeUChUbmqRPD8tkvllq4angLGjbI6fcWbyt0pYNQ1SGMQdEdmcewXaXT IE5S9J/GFuNXr/rpY1dC/0Yf7uyzIPTs0u+8f3gLaQ3BI+ak5trluGhkQvuTa+ZLZ3HS UcueGtftJ4Q3p1fqvR6MgwdAfAMUTTFhAr56U= 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=ejz/GOVvBNgiciatH4EjBRwlfy2MnL1tDSObr2BrKeg=; b=JJM7BA2KO9upjvXT4Ac5KM5+K4BWQOQ8qe/XI/UrcSdt1TcysurLsVyliefcHyvqrS 1aRFzeRV0TZAFtO85vewY1CxoYbl05HOFtRa+3cTGMMWJbT/7BUXhfgnn2EeKXB7uweX /aaU3UfFbpISPvIjzvKPnBkAFaPUqVQqa9WbG6WgAQe5TeU7oBM1lYk9XUHtaTOCOcy8 R9BudqB47zg0hjiIbhQ1Pc/5YRFRJ3pM5hzkmWSGglEMSRuAWS6Ho23vzvr0qNoZwCj3 J44dV7oEXM+oJ8s6Bp3sV4ppqMT3p6Av8Rz3WDPdg29I0ORKixGjI+X1FnrLC+O033XD cUrA== X-Gm-Message-State: AOAM531nBWXq5m62CnJekAmV1/Dw88LUNv8TxSV3z0MdpPTasRUS1cHe NfQfRLW9lLWg6ugdnRLw446zS//tGrNamw== X-Google-Smtp-Source: ABdhPJwt2Zdf8wuHVUgwbMrqfXswlnsQ998tvC4swj2mDxLtXossPQP/lrJhg/3B0GQEaSmaIcHp3w== X-Received: by 2002:a17:907:2173:: with SMTP id rl19mr45406946ejb.514.1600624233756; Sun, 20 Sep 2020 10:50:33 -0700 (PDT) Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com. [209.85.208.49]) by smtp.gmail.com with ESMTPSA id p17sm6959956ejw.125.2020.09.20.10.50.33 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Sep 2020 10:50:33 -0700 (PDT) Received: by mail-ed1-f49.google.com with SMTP id w1so10705608edr.3 for ; Sun, 20 Sep 2020 10:50:33 -0700 (PDT) X-Received: by 2002:a2e:84d6:: with SMTP id q22mr13708479ljh.70.1600623791519; Sun, 20 Sep 2020 10:43:11 -0700 (PDT) MIME-Version: 1.0 References: <20200919091751.011116649@linutronix.de> <87mu1lc5mp.fsf@nanos.tec.linutronix.de> <87k0wode9a.fsf@nanos.tec.linutronix.de> <87eemwcpnq.fsf@nanos.tec.linutronix.de> In-Reply-To: <87eemwcpnq.fsf@nanos.tec.linutronix.de> From: Linus Torvalds Date: Sun, 20 Sep 2020 10:42:55 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [patch RFC 00/15] mm/highmem: Provide a preemptible variant of kmap_atomic & friends To: Thomas Gleixner X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200920_135035_228832_77051461 X-CRM114-Status: GOOD ( 11.97 ) X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Juri Lelli , Peter Zijlstra , Benjamin Herrenschmidt , Sebastian Andrzej Siewior , Joonas Lahtinen , dri-devel , linux-mips@vger.kernel.org, Ben Segall , Max Filippov , Guo Ren , linux-sparc , Vincent Chen , Will Deacon , Ard Biesheuvel , linux-arch , Vincent Guittot , Herbert Xu , Michael Ellerman , the arch/x86 maintainers , Russell King , linux-csky@vger.kernel.org, David Airlie , Mel Gorman , "open list:SYNOPSYS ARC ARCHITECTURE" , linux-xtensa@linux-xtensa.org, Paul McKenney , intel-gfx , linuxppc-dev , Steven Rostedt , Jani Nikula , Rodrigo Vivi , Dietmar Eggemann , Linux ARM , Chris Zankel , Michal Simek , Thomas Bogendoerfer , Nick Hu , Linux-MM , Vineet Gupta , LKML , Arnd Bergmann , Daniel Vetter , Paul Mackerras , Andrew Morton , Daniel Bristot de Oliveira , "David S. Miller" , Greentime Hu Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+linux-snps-arc=archiver.kernel.org@lists.infradead.org On Sun, Sep 20, 2020 at 10:40 AM Thomas Gleixner wrote: > > I think the more obvious solution is to split the whole exercise: > > schedule() > prepare_switch() > unmap() > > switch_to() > > finish_switch() > map() Yeah, that looks much easier to explain. Ack. Linus _______________________________________________ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48F34C43465 for ; Sun, 20 Sep 2020 17:44:42 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D830F20789 for ; Sun, 20 Sep 2020 17:44:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="z8PNTmgN"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="cBDZkiv4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D830F20789 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=FE6wVWcSZIkJ3qt5B6S+hLmXKXTuwZRI2ufN72yQdqE=; b=z8PNTmgNvI/Zp07f9nQCqeIDv TFtAZv1leujx5qaocrnrjb5VZ9YOHCys//egmIkU3UFTw8Z+uFZEgGYaFKOprxeKaaBQCcDj/AdXa 6VLedhdQzZyHQUMgqJuMynix8ddwJKW5txTtXrAI7eGxOdSyly69SPKBVDKqE7+tBCPhPVA/MpwFy J4esEtm9K4/uUrOGoZ03dD36iZb6Ivl/61J5idVEhn8OLuqMsaUFBVHmLN4eOOEjsLEcLFQr8gMyt fcqS0HLiVsO4HG6GlEi/b66l56jD+3b13iqGPiDM7D/2QCCz3N4rLC1Tn1U9HvFlGxr9CoW4gmBoj efqj6sHcw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kK3Ms-0007gC-Re; Sun, 20 Sep 2020 17:43:18 +0000 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kK3Mp-0007fF-IX for linux-arm-kernel@lists.infradead.org; Sun, 20 Sep 2020 17:43:17 +0000 Received: by mail-lj1-x243.google.com with SMTP id k25so9174822ljg.9 for ; Sun, 20 Sep 2020 10:43:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ejz/GOVvBNgiciatH4EjBRwlfy2MnL1tDSObr2BrKeg=; b=cBDZkiv4uiqeUChUbmqRPD8tkvllq4angLGjbI6fcWbyt0pYNQ1SGMQdEdmcewXaXT IE5S9J/GFuNXr/rpY1dC/0Yf7uyzIPTs0u+8f3gLaQ3BI+ak5trluGhkQvuTa+ZLZ3HS UcueGtftJ4Q3p1fqvR6MgwdAfAMUTTFhAr56U= 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=ejz/GOVvBNgiciatH4EjBRwlfy2MnL1tDSObr2BrKeg=; b=Ko13c+KtcVUNy0sPHiCSsFqBb7NoXa/Al54Dk6Xg1WmOc7gpYy4FNJ9iihCH4KLnhU k1UozRTbvvYunhUrIjDEggrgaDG9kCUROAeGWvFOCPtwOjr8SlztEBDsnEy13PxTVuns FFWY9eunTmAdj+ZJRi6V5FgCHDQezoI+T30Uq6WHn1T/HamSl0K1XdWXBScoG9VsBetc pOa/NJ7tw1+uM23dJGdSjPH4sZjclccMimozLXQ1Fin8GmyrxnhGYez87CoHV6692IU3 U2PcKW2s7wcRRTwCNpTc6ejYjXUVRpxcwqmkk52/BAj0662y006q1S5RIhLD5LB1cJEq D4ug== X-Gm-Message-State: AOAM530sJ8ycuUOyxVQHwsREViUbN15/bgrVVgd6baXr5CN/Gdcl68nC PRF406STWkJ8mQ8zzj4OqC7rCHK69lFPag== X-Google-Smtp-Source: ABdhPJzrPBcow0R+ctHrwvd1rwm9ZVEueyiOUCpssL1Z7INN5lot+BfaYCbaubOc0dz+AETAKlUfsQ== X-Received: by 2002:a05:651c:1028:: with SMTP id w8mr15231458ljm.131.1600623793192; Sun, 20 Sep 2020 10:43:13 -0700 (PDT) Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com. [209.85.208.177]) by smtp.gmail.com with ESMTPSA id d9sm2018028lji.87.2020.09.20.10.43.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Sep 2020 10:43:12 -0700 (PDT) Received: by mail-lj1-f177.google.com with SMTP id a22so9140283ljp.13 for ; Sun, 20 Sep 2020 10:43:11 -0700 (PDT) X-Received: by 2002:a2e:84d6:: with SMTP id q22mr13708479ljh.70.1600623791519; Sun, 20 Sep 2020 10:43:11 -0700 (PDT) MIME-Version: 1.0 References: <20200919091751.011116649@linutronix.de> <87mu1lc5mp.fsf@nanos.tec.linutronix.de> <87k0wode9a.fsf@nanos.tec.linutronix.de> <87eemwcpnq.fsf@nanos.tec.linutronix.de> In-Reply-To: <87eemwcpnq.fsf@nanos.tec.linutronix.de> From: Linus Torvalds Date: Sun, 20 Sep 2020 10:42:55 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [patch RFC 00/15] mm/highmem: Provide a preemptible variant of kmap_atomic & friends To: Thomas Gleixner X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200920_134316_046482_9FD8199C X-CRM114-Status: GOOD ( 13.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Juri Lelli , Peter Zijlstra , Benjamin Herrenschmidt , Sebastian Andrzej Siewior , Joonas Lahtinen , dri-devel , linux-mips@vger.kernel.org, Ben Segall , Max Filippov , Guo Ren , linux-sparc , Vincent Chen , Will Deacon , Ard Biesheuvel , linux-arch , Vincent Guittot , Herbert Xu , Michael Ellerman , the arch/x86 maintainers , Russell King , linux-csky@vger.kernel.org, David Airlie , Mel Gorman , "open list:SYNOPSYS ARC ARCHITECTURE" , linux-xtensa@linux-xtensa.org, Paul McKenney , intel-gfx , linuxppc-dev , Steven Rostedt , Jani Nikula , Rodrigo Vivi , Dietmar Eggemann , Linux ARM , Chris Zankel , Michal Simek , Thomas Bogendoerfer , Nick Hu , Linux-MM , Vineet Gupta , LKML , Arnd Bergmann , Daniel Vetter , Paul Mackerras , Andrew Morton , Daniel Bristot de Oliveira , "David S. Miller" , Greentime Hu Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, Sep 20, 2020 at 10:40 AM Thomas Gleixner wrote: > > I think the more obvious solution is to split the whole exercise: > > schedule() > prepare_switch() > unmap() > > switch_to() > > finish_switch() > map() Yeah, that looks much easier to explain. Ack. Linus _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F3D3C43465 for ; Sun, 20 Sep 2020 17:48:52 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9044820789 for ; Sun, 20 Sep 2020 17:48:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="cBDZkiv4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9044820789 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D5ADE899EA; Sun, 20 Sep 2020 17:48:50 +0000 (UTC) Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by gabe.freedesktop.org (Postfix) with ESMTPS id DFD99899EA for ; Sun, 20 Sep 2020 17:48:48 +0000 (UTC) Received: by mail-ej1-x643.google.com with SMTP id r7so14599549ejs.11 for ; Sun, 20 Sep 2020 10:48:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ejz/GOVvBNgiciatH4EjBRwlfy2MnL1tDSObr2BrKeg=; b=cBDZkiv4uiqeUChUbmqRPD8tkvllq4angLGjbI6fcWbyt0pYNQ1SGMQdEdmcewXaXT IE5S9J/GFuNXr/rpY1dC/0Yf7uyzIPTs0u+8f3gLaQ3BI+ak5trluGhkQvuTa+ZLZ3HS UcueGtftJ4Q3p1fqvR6MgwdAfAMUTTFhAr56U= 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=ejz/GOVvBNgiciatH4EjBRwlfy2MnL1tDSObr2BrKeg=; b=eEIE9ZleQTYtqiUIi6ejY3zFj3Bh2JMB1gVr/VrTsG3I6o76woG7ll/WzQDisdt8sN OvOLEQW3/xeKJ//0jHZqfh8JpjAIG5B6yS6cUjEqHvaGSOog7OcuiTOrVaFEtwndLBJJ ePiCeVvwHz/qMac+u8F52MMVC48RjHMETWP1wubWI+9MgoaAe4I57upVaCT4tLSdK+Ur 6ntVfzudXBh7/cqhB5KdqyCjNtMC2AYOOrGXxlgp1eBOwjCpLoj8ug4O4m9Zt66x61tq YDuadjzxwmSjQBKGwe4CbGPt7Gtn6z4420y7C93NVAZfnNozJbRhpyZXE9iWjNHBR2o7 DSqg== X-Gm-Message-State: AOAM531bzYnfxQInmr3Jx/aiNEr7T2YmoQ/H8Cy4kgdqYIGsgJHTEvvb O9mie6Gs7B0OfTWW2Ax2jOv1ITZLuwc9yw== X-Google-Smtp-Source: ABdhPJxxJgemUudg+C+9kZ0Nu4LdKrzmOYMFKTzDqIwkuU05lh880epo5r5PbT7RdGON43MWhdGQMw== X-Received: by 2002:a17:906:a101:: with SMTP id t1mr45248062ejy.203.1600624127282; Sun, 20 Sep 2020 10:48:47 -0700 (PDT) Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com. [209.85.221.52]) by smtp.gmail.com with ESMTPSA id b6sm6963821eds.46.2020.09.20.10.48.46 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Sep 2020 10:48:47 -0700 (PDT) Received: by mail-wr1-f52.google.com with SMTP id z4so10420973wrr.4 for ; Sun, 20 Sep 2020 10:48:46 -0700 (PDT) X-Received: by 2002:a2e:84d6:: with SMTP id q22mr13708479ljh.70.1600623791519; Sun, 20 Sep 2020 10:43:11 -0700 (PDT) MIME-Version: 1.0 References: <20200919091751.011116649@linutronix.de> <87mu1lc5mp.fsf@nanos.tec.linutronix.de> <87k0wode9a.fsf@nanos.tec.linutronix.de> <87eemwcpnq.fsf@nanos.tec.linutronix.de> In-Reply-To: <87eemwcpnq.fsf@nanos.tec.linutronix.de> From: Linus Torvalds Date: Sun, 20 Sep 2020 10:42:55 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [patch RFC 00/15] mm/highmem: Provide a preemptible variant of kmap_atomic & friends To: Thomas Gleixner X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Juri Lelli , Peter Zijlstra , Sebastian Andrzej Siewior , dri-devel , linux-mips@vger.kernel.org, Ben Segall , Max Filippov , Guo Ren , linux-sparc , Vincent Chen , Will Deacon , Ard Biesheuvel , linux-arch , Vincent Guittot , Herbert Xu , Michael Ellerman , the arch/x86 maintainers , Russell King , linux-csky@vger.kernel.org, David Airlie , Mel Gorman , "open list:SYNOPSYS ARC ARCHITECTURE" , linux-xtensa@linux-xtensa.org, Paul McKenney , intel-gfx , linuxppc-dev , Steven Rostedt , Rodrigo Vivi , Dietmar Eggemann , Linux ARM , Chris Zankel , Michal Simek , Thomas Bogendoerfer , Nick Hu , Linux-MM , Vineet Gupta , LKML , Arnd Bergmann , Paul Mackerras , Andrew Morton , Daniel Bristot de Oliveira , "David S. Miller" , Greentime Hu Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Sun, Sep 20, 2020 at 10:40 AM Thomas Gleixner wrote: > > I think the more obvious solution is to split the whole exercise: > > schedule() > prepare_switch() > unmap() > > switch_to() > > finish_switch() > map() Yeah, that looks much easier to explain. Ack. Linus _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3ABD7C43463 for ; Sun, 20 Sep 2020 17:43:20 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E013B20789 for ; Sun, 20 Sep 2020 17:43:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="cBDZkiv4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E013B20789 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 37757899C4; Sun, 20 Sep 2020 17:43:19 +0000 (UTC) Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 52A3F899C4 for ; Sun, 20 Sep 2020 17:43:17 +0000 (UTC) Received: by mail-lj1-x241.google.com with SMTP id u21so9182163ljl.6 for ; Sun, 20 Sep 2020 10:43:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ejz/GOVvBNgiciatH4EjBRwlfy2MnL1tDSObr2BrKeg=; b=cBDZkiv4uiqeUChUbmqRPD8tkvllq4angLGjbI6fcWbyt0pYNQ1SGMQdEdmcewXaXT IE5S9J/GFuNXr/rpY1dC/0Yf7uyzIPTs0u+8f3gLaQ3BI+ak5trluGhkQvuTa+ZLZ3HS UcueGtftJ4Q3p1fqvR6MgwdAfAMUTTFhAr56U= 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=ejz/GOVvBNgiciatH4EjBRwlfy2MnL1tDSObr2BrKeg=; b=DhovtSG8Gck7lfcAS41TROsq+EKVON3njN8x6bJVztXhuGFOCb2CzDYSQOTZqBvgNv EoBd0wxeSR08iW+aC7QIG/pZMxW1F2CO5MmgVdDsK8DuTe6yaeO8yzAhzuW83yXSzIDE HMN4OjVJk/L9uwHi2zW7XdJRr6FLhm9ToxypOhWHvf0OPGTAP+yKvEWxUMsbTm4Wj3Fu DBN7bqNbZFkTEbxP7AMJjfzYbytFEoWl3b0eoz7iXvDRP78G9h4FNgczo+jeoN+7yHHY fWiMOp05wsr1Do4+EmNhcxvzy9fJSjPwFH1OHPeDS5ajyxjTaCj/oV0MyCbfHDC3KQNI 7IRA== X-Gm-Message-State: AOAM531Mu6ByFBwt67k9sy+wsGm1rWGrDbLfDaAG/AqTkmqr2VZMFjNv unukpqLWkDPD0dg/r2N+fFWeXzUaSv265g== X-Google-Smtp-Source: ABdhPJxt8NkJCqaFoxdTGRcIXREk+jUTVitF7iTL5LrfN1vcVA/FNQ1IP8zb2sU62IxHNjFF0hVm0w== X-Received: by 2002:a2e:9b15:: with SMTP id u21mr11320934lji.283.1600623795504; Sun, 20 Sep 2020 10:43:15 -0700 (PDT) Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com. [209.85.167.42]) by smtp.gmail.com with ESMTPSA id f12sm1935316lfp.69.2020.09.20.10.43.12 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Sep 2020 10:43:15 -0700 (PDT) Received: by mail-lf1-f42.google.com with SMTP id y11so11526779lfl.5 for ; Sun, 20 Sep 2020 10:43:12 -0700 (PDT) X-Received: by 2002:a2e:84d6:: with SMTP id q22mr13708479ljh.70.1600623791519; Sun, 20 Sep 2020 10:43:11 -0700 (PDT) MIME-Version: 1.0 References: <20200919091751.011116649@linutronix.de> <87mu1lc5mp.fsf@nanos.tec.linutronix.de> <87k0wode9a.fsf@nanos.tec.linutronix.de> <87eemwcpnq.fsf@nanos.tec.linutronix.de> In-Reply-To: <87eemwcpnq.fsf@nanos.tec.linutronix.de> From: Linus Torvalds Date: Sun, 20 Sep 2020 10:42:55 -0700 X-Gmail-Original-Message-ID: Message-ID: To: Thomas Gleixner Subject: Re: [Intel-gfx] [patch RFC 00/15] mm/highmem: Provide a preemptible variant of kmap_atomic & friends X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Juri Lelli , Peter Zijlstra , Benjamin Herrenschmidt , Sebastian Andrzej Siewior , dri-devel , linux-mips@vger.kernel.org, Ben Segall , Max Filippov , Guo Ren , linux-sparc , Vincent Chen , Will Deacon , Ard Biesheuvel , linux-arch , Herbert Xu , Michael Ellerman , the arch/x86 maintainers , Russell King , linux-csky@vger.kernel.org, David Airlie , Mel Gorman , "open list:SYNOPSYS ARC ARCHITECTURE" , linux-xtensa@linux-xtensa.org, Paul McKenney , intel-gfx , linuxppc-dev , Steven Rostedt , Dietmar Eggemann , Linux ARM , Chris Zankel , Michal Simek , Thomas Bogendoerfer , Nick Hu , Linux-MM , Vineet Gupta , LKML , Arnd Bergmann , Paul Mackerras , Andrew Morton , Daniel Bristot de Oliveira , "David S. Miller" , Greentime Hu Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Sun, Sep 20, 2020 at 10:40 AM Thomas Gleixner wrote: > > I think the more obvious solution is to split the whole exercise: > > schedule() > prepare_switch() > unmap() > > switch_to() > > finish_switch() > map() Yeah, that looks much easier to explain. Ack. Linus _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx