Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1091233rwe; Fri, 26 Aug 2022 23:58:38 -0700 (PDT) X-Google-Smtp-Source: AA6agR51NvLgOoMDGUdlfWJV4+ls1H3bzmrzZCXESU0NpLUwhzIXVwczapD1rX8UeCYNX2KbRz9n X-Received: by 2002:a63:cf05:0:b0:429:bf9c:1f71 with SMTP id j5-20020a63cf05000000b00429bf9c1f71mr5983584pgg.178.1661583518146; Fri, 26 Aug 2022 23:58:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661583518; cv=none; d=google.com; s=arc-20160816; b=k3A44+P00RDtwZ7zVSNHAjE+a1V+cqGJZGaljhDFGSwrObdT+Qzzjpe5Rjsiufby6c bAVWackL0YiZsC6jOFDwSLUqy1JuSHM2rR1T3J5BvynlETQevjSP01E3P0UbbJnG5IZ3 lL9HNHsi3XZdMBS0lLwQeRWNqWL7BMxf/Uo0ElHX4E03e/aTcMlxqDjB7bxl773EJUJH b3QNx6Y/v4qKuB8ahcbsdgB5/n97V1UejKy62FIag0lIVCW/jv/qVDyabPCSnymiT92l +NrDG66fHpnx0YJgSACGOgTNDrqXD4DxeUl5MZ6EFwo8lqJHbllvvf10IrJO2En6TJKE EPVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qmU3paAtykBex7YGKV/aqzGRIkXBQc960SgD6HR6SY8=; b=hOptNJ34s51s9bpq6y3PZZa9XjFaH9Vf0HkenvwWc9z/x7rKoYK9q2JC0PrcB/eQqo x7uykj84jiNmIFGBIDpuPIySMeZcukVc1An52g1dw1/G0U4XS/u4d2wvUaiHXKcZMnoA azYppRmRaufY+qpzMvAqEzeEDs6ZrQLVSJyX5Bn19+RjbVR2El0vJBg6oVMmZtyPZLKE QP7lDwi4umihW+nsUXT0xSmw3YfhHifX9k51X+6xnPfws2kbBO1y2njIHYsfuvULcPOu 8rmySKX4fgyd/bPsBPgW+Auq/J5WN9RD4SRJiUxyI2bjH7VY5G82rcTmdRIKyvNL+nYV 04Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="YEHT/bli"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j3-20020aa783c3000000b0052e25aa19d0si3509848pfn.88.2022.08.26.23.58.26; Fri, 26 Aug 2022 23:58:38 -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=@kernel.org header.s=k20201202 header.b="YEHT/bli"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232850AbiH0GdD (ORCPT + 99 others); Sat, 27 Aug 2022 02:33:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231808AbiH0GdB (ORCPT ); Sat, 27 Aug 2022 02:33:01 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEDE8DD763; Fri, 26 Aug 2022 23:33:00 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4B002B82851; Sat, 27 Aug 2022 06:32:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3D65C43140; Sat, 27 Aug 2022 06:32:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661581977; bh=qmU3paAtykBex7YGKV/aqzGRIkXBQc960SgD6HR6SY8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=YEHT/bli5qd1ay+q9HVMBR0oI+9PoTqAAy0yM6hF5kclq8yMNW/F4uefUyffak5sU ypg6p/CyD+jGLvDXIl5lg1S4Z/zONnl3Y7YAGB3qMP/Iw4x8Ox2h2AOkN67BmRhHzu tN9veLAeutSoousW4F7HKg+Svsh5BuwXeKKqkLZEkMWnAu531Qd+pBLVcSSFovwk0P nMKpkmOIe1mUWEDDWhjZRMFR0vR3TiafeqjCcIc0LKpkuXW/cPMfeQcKslxyRg4F2u hIU2Q9mIk45VNGJQrbT1bTD+YihVieLVcv4MgbZyiQDQMBFj61NDFPQ/VmvUJLpQcf 992piLBHt21yA== Received: by mail-wm1-f41.google.com with SMTP id k18-20020a05600c0b5200b003a5dab49d0bso1827828wmr.3; Fri, 26 Aug 2022 23:32:57 -0700 (PDT) X-Gm-Message-State: ACgBeo1V1PsYdOVpo6tTIFD6vlUWzmJC6Q0tKeFxL+abwM4s//APZ5A3 Q8ULSoX6tqoorScAuddTP69pyOib4DenjHbS8ic= X-Received: by 2002:a05:600c:384f:b0:3a6:603c:4338 with SMTP id s15-20020a05600c384f00b003a6603c4338mr1504042wmr.192.1661581976098; Fri, 26 Aug 2022 23:32:56 -0700 (PDT) MIME-Version: 1.0 References: <20220826112327.GA19774@willie-the-truck> <20220826174352.GA20386@willie-the-truck> In-Reply-To: From: Ard Biesheuvel Date: Sat, 27 Aug 2022 08:32:44 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] wait_on_bit: add an acquire memory barrier To: Mikulas Patocka Cc: Will Deacon , Linus Torvalds , Alan Stern , Andrea Parri , Peter Zijlstra , Boqun Feng , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , "Paul E. McKenney" , Akira Yokosawa , Daniel Lustig , Joel Fernandes , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Fri, 26 Aug 2022 at 21:10, Mikulas Patocka wrote: > > > > On Fri, 26 Aug 2022, Ard Biesheuvel wrote: > > > Could you try booting with earlycon? > > > > Just 'earlycon' and if that does not help, > > It doesn't help. > > > 'earlycon=uart8250,mmio32,' [IIRC, mcbin uses 16550 > > compatible UARTs, right?] > > mcbin is the host system (running a stable kernel fine). The crash happens > in a virtual machine. The vm uses /dev/ttyAMA0 as a console: > > Serial: AMBA PL011 UART driver > 9000000.pl011: ttyAMA0 at MMIO 0x9000000 (irq = 45, base_baud = 0) is a PL011 rev1 > printk: console [ttyAMA0] enabled > > I tried earlycon=pl011,mmio32,0x9000000 - but it doesn't help, it hangs > without printing anything. > If you are using pl011, you should drop the mmio32 - it only takes a physical address (and optionally baud rate etc, but QEMU doesn't need those)