Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3209476pxb; Fri, 4 Feb 2022 03:55:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJzJ3rXZSonuP7+uYDBOufzj60TaDNuIjg72+cAtUYAHoP6xrchE4r0TPIS54TCtN2y1OY9s X-Received: by 2002:a63:1d07:: with SMTP id d7mr2049803pgd.414.1643975755193; Fri, 04 Feb 2022 03:55:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643975755; cv=none; d=google.com; s=arc-20160816; b=N4QsZnz1ChUuWt/akSxlVkZkQEM+JyMsSPLkDH9ADC5ue0Lyk0qiZtmgqXaVE2vQe3 JCtVhLunC6z3lY4A8U1feLoQAC6zOCXU9U47LqiI1BVr/uYdME//cy/CuLN5v429Zb8B ao9Y0Uq5G826wjgN2wPlzPo00F6sInUnAI99HW9lLC52mBamWxcfAQV2Ki03d1Ud7TDT 86hbdAWOO/boaNKbjscWCKT6sbZk1jL+9d7nElVXXCYDeJFwRUa3n1YliG4is/lNAgTK G+L04uw5vBLAVqtYc632Vo9ChU+h5f1kbjLDtKnO4gVSPn0uLpcGRHbYFjU+xAN82aAV yapw== 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:dkim-signature :dkim-signature:date; bh=/eecWjACA0rGMqqEQiDgokZRkG3UepJI5ulPZyG6uO0=; b=wc1a1jCWnjW9LArGWmgzEl/NHURfvCjibO56+VKm6TrU0P65fMGkjRbNNlxsrNWgx1 SzR/18YOONKcIxcYVdm1k4qilaN9nDhJlddWRqH11rGSF4SAiCuCseyxEVMh7NtlgJIH +kp9nm8KNzylP7m32+8+7Y1Dax4E9lu+dVoJor73Qo1tq5iAb417tLJxzoobz7iEL9aK 6DwWU7UNzMwB37/wP1Vkk6K3fdW4QOmduq79dzUH/MHHUktgfnCM0egCpaWWdOotZD06 lO/nMwLollyIhPtvhJCnJJ+2z2llZdugXtA9/6f12UPHTu3/NZhGgd5pDSJ13Fw0j1CB D6pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Kq3E210t; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 34si1642333pgq.376.2022.02.04.03.55.43; Fri, 04 Feb 2022 03:55:55 -0800 (PST) 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=@linutronix.de header.s=2020 header.b=Kq3E210t; dkim=neutral (no key) header.i=@linutronix.de; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235245AbiBDJbv (ORCPT + 99 others); Fri, 4 Feb 2022 04:31:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358880AbiBDJbK (ORCPT ); Fri, 4 Feb 2022 04:31:10 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7804C0613BC; Fri, 4 Feb 2022 01:29:31 -0800 (PST) Date: Fri, 4 Feb 2022 10:29:28 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1643966970; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/eecWjACA0rGMqqEQiDgokZRkG3UepJI5ulPZyG6uO0=; b=Kq3E210trmVV3cpVxMoJ0wqgmkAoAXew8RuSZaqcds1os6QjXpnmgz46wHdKI0PVoeoWZV S0i2vVf5tU2o0cky+cRkS34UDv2oxDo/kALrSY0PIvSbz0SfT2q1i0OuOKP2X/GtSi7YNC raKGH932Jo7zHOOEZuNzw1BjC07lIKJf2tWut7tH745ktB3dAvF65AyZjPH9WkQxw8nvZj oC40ZFV22BsIVWWo4yhtDaq1eiuKbpaCExsHNWl9OqyUKV3qGDVwwqdhaFBA1fO+ToGLCy hl+yYD+Rauk/817C+r5UA0EX6NwVqjr1kxa1b/a3wlH/ASxRRKLe5AlPfrm8FQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1643966970; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/eecWjACA0rGMqqEQiDgokZRkG3UepJI5ulPZyG6uO0=; b=veSy3hJgJZREMiqCtupWodV6mbWqNkewKhr9cAPLZVdJcH2E4cDVZfPvx95cF/mzB5uDPC ezydNgc5y/tjroCw== From: Sebastian Andrzej Siewior To: Valentin Schneider Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rt-users@vger.kernel.org, Catalin Marinas , Will Deacon , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Steven Rostedt , Daniel Bristot de Oliveira , "Paul E. McKenney" , Frederic Weisbecker , Josh Triplett , Mathieu Desnoyers , Davidlohr Bueso , Lai Jiangshan , Joel Fernandes , Anshuman Khandual , Vincenzo Frascino , Steven Price , Ard Biesheuvel , Boqun Feng , Mike Galbraith Subject: Re: [PATCH v4] arm64: mm: Make arch_faults_on_old_pte() check for migratability Message-ID: References: <20220127192437.1192957-1-valentin.schneider@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220127192437.1192957-1-valentin.schneider@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-01-27 19:24:37 [+0000], Valentin Schneider wrote: > arch_faults_on_old_pte() relies on the calling context being > non-preemptible. CONFIG_PREEMPT_RT turns the PTE lock into a sleepable > spinlock, which doesn't disable preemption once acquired, triggering the > warning in arch_faults_on_old_pte(). > > It does however disable migration, ensuring the task remains on the same > CPU during the entirety of the critical section, making the read of > cpu_has_hw_af() safe and stable. > > Make arch_faults_on_old_pte() check cant_migrate() instead of preemptible(). > > Suggested-by: Sebastian Andrzej Siewior > Signed-off-by: Valentin Schneider > Link: https://lore.kernel.org/r/20210811201354.1976839-5-valentin.schneider@arm.com Let me pick that up so I can drop the other two. I hope the ARM64 folks follow my lead ;) Acked-by: Sebastian Andrzej Siewior Sebastian