Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2473241pxp; Mon, 21 Mar 2022 21:46:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmF6eLgUqMjAvnwvcpz8vXUE/wrBiG8oK6xZmMmFB035wa7Ux2U4NreGC+vQroiG4zLy5C X-Received: by 2002:a17:903:41c7:b0:154:25bf:7d20 with SMTP id u7-20020a17090341c700b0015425bf7d20mr15867879ple.113.1647924368478; Mon, 21 Mar 2022 21:46:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647924368; cv=none; d=google.com; s=arc-20160816; b=MxlT9xwDo9RjFZYNrJ/aV4okn+LSCow1ui1b+h1IJcRFBXGxv6LtXGXd0WudKX1bwe CrsdusBEndDDuUlmeRZDXk620vycYwzwQVUfoPy02wKZsTUcwyxxAylucFlweb/Jn7Pq u11ujZHSYX2yPixBFTRHeKuGg5jQGVRdco0DE0cZD+LRLAMQ5OtevXWDt0oVG4AyPf55 QxZVxjVSRsSVGzyubMEf7Gys9qMeDi8R/hlgl051R5mhqyKTCcUhmcCrMaxrsPeaNUIN Q+n6UE0+c3zKXTMJKDCs5DkYZwnoCCsyoE6fgScVaf71o0CfDdxEWgG+Jc6PaLofKLCn 2jSg== 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=YF27/o9OojcIlWSRXUYvT844QPtgp8LqnE9dm5viGDQ=; b=rJvipJkN/DAxjitfHKB5/1p9rlkyLJJWtS0cm+mLt6B8NvV//mRgg79R7TLq4w3sfi 8ix9JUJ9AiW3vgGLQmYgUueqyoLNsHXReabS49+6F1Ts0OcPfCcD4mKXL2XJVaUsoA1X CkywBeJLlfr/Dhf7q72z0cVEGCOFXIOY6oQLKrj9b9RoHuS4pSSWxMMZ/5JI8BrYGCAc hCxVsYqAKcZZPK0nwfyyaMW2hUhX6NDrU+BToZleZdXdMog54adChF9gpguiOIdxMmTp vVKnc9Zpr1YXcMU/qge8gvaWyoqnkwFG/GQRTkH2yDVmiMokmud3tKfR8NifYSTMIrp3 niGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ln3p25fv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i20-20020a17090a7e1400b001c6560c94b4si1176288pjl.29.2022.03.21.21.46.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 21:46:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ln3p25fv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2DBF610FF6; Mon, 21 Mar 2022 21:10:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236354AbiCVELn (ORCPT + 99 others); Tue, 22 Mar 2022 00:11:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230213AbiCVELk (ORCPT ); Tue, 22 Mar 2022 00:11:40 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AE98443E1; Mon, 21 Mar 2022 21:10:12 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id o3-20020a17090a3d4300b001c6bc749227so1080116pjf.1; Mon, 21 Mar 2022 21:10:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=YF27/o9OojcIlWSRXUYvT844QPtgp8LqnE9dm5viGDQ=; b=ln3p25fvXLz32myeqm5t0hBcUE6tyk/PEExo8WqpnsfcP5zlqpV1ll671d9e8ZulpU lqusXemHq030YWLjogGgWnDGnYL0cm48TsOkP3kJ+Ppu09gPxXQR6O8pCqHds+7TJITD NaQ9KpeM5/G3c23uTqF2SHe/SF/5rBIaZ2uoM3yqKWz8h8l8wxtagttGDbq3rwY3g6Jg NLL2W5/Gym4XWW5+xpEsUWRIEEcmIIGtidxZwXe/7LkHIP+huczI1wrWMfMVE/Nv+76a YEsWTOvlvfCbnrWOA+E7H/WtgT82LDtjHDHfDWlU0jOk3iLi0o77i7cXOLCn93Ww39Ln WzIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=YF27/o9OojcIlWSRXUYvT844QPtgp8LqnE9dm5viGDQ=; b=utDLmObtwKGbirY/juADl7hjmFqFpuCENl8cvfxdLi0mo/v0Qea59W+9RxVviZBYzr S0LQK7DIDAppKk6DOu1mjyEtWjY8bM0rknqf3itt6/au1vBPFCgcIZ7jsPhg5vUgIdWS lH6l4tT49lhUKsVs4NEifSy2ScorNg1lJryJamCKOqbZT0xqOnPw2VaGXeXb86eyATpn o12bCX1c77naXDU8ppBL7rHwlhrDPGG1Zw5VhFGWD7COlRwbkhR1X0pVenOEmHWMz1bB VdF2vLet2kSeeBG8ywsboYhmBF4HDkEIwQ9OGBupAY7WAHzyORq9K5PYIUsy/585D3PH o26w== X-Gm-Message-State: AOAM533ee5cSdGnZHTx6u8JM7s/rl8Di9NlTp8Uv8pj6tbhn3SwBBu/W ljKrDvXqL6li/IVbs6DQuXM= X-Received: by 2002:a17:90b:1a8a:b0:1c5:f707:93a6 with SMTP id ng10-20020a17090b1a8a00b001c5f70793a6mr2699198pjb.110.1647922211988; Mon, 21 Mar 2022 21:10:11 -0700 (PDT) Received: from localhost ([2409:10:24a0:4700:e8ad:216a:2a9d:6d0c]) by smtp.gmail.com with ESMTPSA id t71-20020a63784a000000b00380a9f7367asm16932561pgc.77.2022.03.21.21.10.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 21:10:10 -0700 (PDT) Date: Tue, 22 Mar 2022 13:10:08 +0900 From: Stafford Horne To: Guo Ren Cc: Palmer Dabbelt , linux-riscv , Peter Zijlstra , Jonas Bonn , Stefan Kristiansson , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , Paul Walmsley , Palmer Dabbelt , Albert Ou , Arnd Bergmann , jszhang@kernel.org, Kefeng Wang , Openrisc , Linux Kernel Mailing List , linux-arch Subject: Re: [PATCH 3/5] openrisc: Move to ticket-spinlock Message-ID: References: <20220316232600.20419-1-palmer@rivosinc.com> <20220316232600.20419-4-palmer@rivosinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Tue, Mar 22, 2022 at 11:29:13AM +0800, Guo Ren wrote: > On Tue, Mar 22, 2022 at 7:23 AM Stafford Horne wrote: > > > > On Wed, Mar 16, 2022 at 04:25:58PM -0700, Palmer Dabbelt wrote: > > > From: Peter Zijlstra > > > > > > We have no indications that openrisc meets the qspinlock requirements, > > > so move to ticket-spinlock as that is more likey to be correct. > > > > > > Signed-off-by: Palmer Dabbelt > > > > > > --- > > > > > > I have specifically not included Peter's SOB on this, as he sent his > > > original patch > > > > > > without one. > > > --- > > > arch/openrisc/Kconfig | 1 - > > > arch/openrisc/include/asm/Kbuild | 5 ++--- > > > arch/openrisc/include/asm/spinlock.h | 3 +-- > > > arch/openrisc/include/asm/spinlock_types.h | 2 +- > > > 4 files changed, 4 insertions(+), 7 deletions(-) > > > > Hello, > > > > This series breaks SMP support on OpenRISC. I haven't traced it down yet, it > > seems trivial but I have a few places to check. > > > > I replied to this on a kbuild warning thread, but also going to reply here with > > more information. > > > > https://lore.kernel.org/lkml/YjeY7CfaFKjr8IUc@antec/#R > > > > So far this is what I see: > > > > * ticket_lock is stuck trying to lock console_sem > > * it is stuck on atomic_cond_read_acquire > > reading lock value: returns 0 (*lock is 0x10000) > > ticket value: is 1 > > * possible issues: > > - OpenRISC is big endian, that seems to impact ticket_unlock, it looks > All csky & riscv are little-endian, it seems the series has a bug with > big-endian. Is that all right for qemu? (If qemu was all right, but > real hardware failed.) Hi Guo Ren, OpenRISC real hardware and QEMU are both big-endian. It fails on both. I replied on patch 1/5 with a suggested patch which fixes the issue for me. Please have a look. BTW. now I can look into the sparse warnings. -Stafford