Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2470038rda; Wed, 25 Oct 2023 03:53:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGqgIdtmVoa8us+RjFybSn6+UzxBYso1xnd71S1uyXNKPvzX2V+/2PC9tY1I188QU+WO9Vt X-Received: by 2002:a5b:bc7:0:b0:da0:5933:c62d with SMTP id c7-20020a5b0bc7000000b00da05933c62dmr3085485ybr.28.1698231226197; Wed, 25 Oct 2023 03:53:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698231226; cv=none; d=google.com; s=arc-20160816; b=xYVR83WUrrpU4YySUDdfGZ25TNlKc7CnjFP8ECgIT5jpWS3K8qQi4XKC314VHjn0Ya gia5y+8C0svmUjnwSqSWRp+Wu4QbkVTH0VpQ8x2U3006lxtD+Tz/MhCdH4cJhg9lRHJ2 akZu5E9hxOABs/yf64097WnGGzERvbDrbYostjN5bAl+Vb03uUx+yR5hkTKwZU6CSk7V tCiClsMJI7wl9Zy5546+POB48mYeNOCPZFX6J4PCxkkAHecNQ7tBHOGrudwmjAzzjYrx QxuXrrPHYq3Q2pj7WfJdcRA6x3F/uWBR1cZnqn9uKleYLUmIw+z2zlpjwR7BGJQeGgsn ITGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=Swt7HZr5L+coBuK3ZPFi9h1K1UT18l1wkIvlupoaFRc=; fh=gUIme5rXY/gkRK1CcGxr9Wj1FIu4ED1NaxHPt1AUCoQ=; b=UcPMHD41UyWMxhpgkEZ0i40J8WIeT8Gn5w4hGA00xzBIrLCcdhIwoe57V9CESDUdJM m4W5zIuo/5uheC+zHfA85Ru5NuUChYAjLzRn4J0osT4K+EV94om6VJFjGfzY/XiIjaMG E4jBuM/+Amkj6hCA/tEEU5m1wD3P0vD/IZqprP2CGTrwxW3cjeLi/GuyIW8v0r2nbfYW 3IVCQ8h2kJxpCFJCVG+LWau4wWMqKU1yEnqN78UQBNc4XXBqI34KGBTy29igh4KL5jlD Rs3syuinWZWHugVWk93yKF7MhK0Ay9AJMACLwEmcLcbE13FtDL/eLdPI2xpZ20l6yfNm O3mQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id o127-20020a25d785000000b00d8154eeb642si10409883ybg.413.2023.10.25.03.53.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 03:53:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id CCC7C80FE2B0; Wed, 25 Oct 2023 03:53:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234854AbjJYKx0 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 25 Oct 2023 06:53:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232926AbjJYKxW (ORCPT ); Wed, 25 Oct 2023 06:53:22 -0400 Received: from mail-yw1-f174.google.com (mail-yw1-f174.google.com [209.85.128.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD0DAAC; Wed, 25 Oct 2023 03:53:20 -0700 (PDT) Received: by mail-yw1-f174.google.com with SMTP id 00721157ae682-5a7fb84f6ceso51984277b3.1; Wed, 25 Oct 2023 03:53:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698231200; x=1698836000; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lp/P/2ckLQAwz9y7c2Caj6foLZ4doNpN7qmvBqweg0I=; b=LIOO24fVLKFzpCM2ctyAhaN1FBZ1m8VjU+6OurJUIM7PXi8NYgSKGd8PnpPxOVrOAq w8G+mkWjpfyOBLur5buTF4xJnRL1/zhrTTSzlvFFryz/mm8z7R4sM8YdXQRk335QylUA gNSFwZXGYR/nENjRzkUakCpUS+OwbjMNrFe7lIHpVS8WsXbE3W/4+KRPJyslxXoDbO7F zgRIhE1fA7/4FqgnnfJNDSiKqFRO+XrY3yz+0HL/u2BILshcrwSedwJg/Gi3Lj13UkLK KAgtfuC9UCI/Ya5DUl2KF4ePTj9svlcwzTTrXOL8UNk7RbOF7cw0Mjtn78j+v3p+deT/ SKlw== X-Gm-Message-State: AOJu0YxN4VzW1RddGtx1TK7KtoMRpOHDhDmvL6Iaz25+yOsRNMRZw5bd iYSAgiZ2y9YVBkFdWxX4YsUgbq4v8yz29g== X-Received: by 2002:a05:690c:f05:b0:59b:f899:7bd6 with SMTP id dc5-20020a05690c0f0500b0059bf8997bd6mr17107179ywb.36.1698231199667; Wed, 25 Oct 2023 03:53:19 -0700 (PDT) Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com. [209.85.128.182]) by smtp.gmail.com with ESMTPSA id s124-20020a817782000000b00565271801b6sm4920951ywc.59.2023.10.25.03.53.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Oct 2023 03:53:18 -0700 (PDT) Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-5a7c95b8d14so51752317b3.3; Wed, 25 Oct 2023 03:53:18 -0700 (PDT) X-Received: by 2002:a0d:d752:0:b0:5a7:c01d:268 with SMTP id z79-20020a0dd752000000b005a7c01d0268mr15876069ywd.18.1698231198298; Wed, 25 Oct 2023 03:53:18 -0700 (PDT) MIME-Version: 1.0 References: <20231009130126.697995596@linuxfoundation.org> <2023101057-runny-pellet-8952@gregkh> In-Reply-To: From: Geert Uytterhoeven Date: Wed, 25 Oct 2023 12:53:06 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: renesas_sdhi problems in 5.10-stable was Re: [PATCH 5.10 000/226] 5.10.198-rc1 review To: Pavel Machek Cc: Greg Kroah-Hartman , Wolfram Sang , niklas.soderlund+renesas@ragnatech.se, yoshihiro.shimoda.uh@renesas.com, geert+renesas@glider.be, biju.das.jz@bp.renesas.com, Chris.Paterson2@renesas.com, stable@vger.kernel.org, patches@lists.linux.dev, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, linux@roeck-us.net, shuah@kernel.org, patches@kernelci.org, lkft-triage@lists.linaro.org, jonathanh@nvidia.com, f.fainelli@gmail.com, sudipm.mukherjee@gmail.com, srw@sladewatkins.net, rwarsow@gmx.de, conor@kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 25 Oct 2023 03:53:43 -0700 (PDT) Hi Pavel, On Wed, Oct 25, 2023 at 12:47 PM Geert Uytterhoeven wrote: > On Tue, Oct 24, 2023 at 9:22 PM Pavel Machek wrote: > > > > > And testing failed. So > > > > > > > > > > commit f5799b4e142884c2e7aa99f813113af4a3395ffb > > > > > Author: Wolfram Sang > > > > > Date: Tue Nov 10 15:20:57 2020 +0100 > > > > > > > > > > mmc: renesas_sdhi: populate SCC pointer at the proper place > > > > > > > > > > [ Upstream commit d14ac691bb6f6ebaa7eeec21ca04dd47300ff5b6 ] > > > > > > > > > > seems to be the buggy commit that breaks renesas boards in 5.10. > > > > > > > > This patch was part of a series. Did the other two patches come with it? > > > > > > > > b161d87dfd3d ("mmc: renesas_sdhi: probe into TMIO after SCC parameters have been setup") > > > > > > Yes. > > > > > > > 45bffc371fef ("mmc: renesas_sdhi: only reset SCC when its pointer is populated") > > > > > > No :( > > > > > > > If not, I could imagine that could lead to a crash. No idea why only > > > > with 5.10, though. > > > > > > The above commit is only in 5.11, so newer kernels should be fine. > > > > > > I'll go queue up the one missing patch now, thanks. > > > > Thank you. Patch indeed appears to be in 5.10.199. > > > > But we still have failures on Renesas with 5.10.199-rc2: > > > > https://gitlab.com/cip-project/cip-testing/linux-stable-rc-ci/-/pipelines/1047368849 > > > > And they still happed during MMC init: > > > > 2.638013] renesas_sdhi_internal_dmac ee100000.mmc: Got CD GPIO > > [ 2.638846] INFO: trying to register non-static key. > > [ 2.644192] ledtrig-cpu: registered to indicate activity on CPUs > > [ 2.649066] The code is fine but needs lockdep annotation, or maybe > > [ 2.649069] you didn't initialize this object before use? > > [ 2.649071] turning off the locking correctness validator. > > [ 2.649080] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.10.199-rc2-arm64-renesas-ge31b6513c43d #1 > > [ 2.649082] Hardware name: HopeRun HiHope RZ/G2M with sub board (DT) > > [ 2.649086] Call trace: > > [ 2.655106] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping .... > > [ 2.661354] dump_backtrace+0x0/0x194 > > [ 2.661361] show_stack+0x14/0x20 > > [ 2.667430] usbcore: registered new interface driver usbhid > > [ 2.672230] dump_stack+0xe8/0x130 > > [ 2.672238] register_lock_class+0x480/0x514 > > [ 2.672244] __lock_acquire+0x74/0x20ec > > [ 2.681113] usbhid: USB HID core driver > > [ 2.687450] lock_acquire+0x218/0x350 > > [ 2.687456] _raw_spin_lock+0x58/0x80 > > [ 2.687464] tmio_mmc_irq+0x410/0x9ac > > [ 2.688556] renesas_sdhi_internal_dmac ee160000.mmc: mmc0 base at 0x00000000ee160000, max clock rate 200 MHz > > [ 2.744936] __handle_irq_event_percpu+0xbc/0x340 > > [ 2.749635] handle_irq_event+0x60/0x100 > > [ 2.753553] handle_fasteoi_irq+0xa0/0x1ec > > [ 2.757644] __handle_domain_irq+0x7c/0xdc > > [ 2.761736] efi_header_end+0x4c/0xd0 > > [ 2.765393] el1_irq+0xcc/0x180 > > [ 2.768530] arch_cpu_idle+0x14/0x2c > > [ 2.772100] default_idle_call+0x58/0xe4 > > [ 2.776019] do_idle+0x244/0x2c0 > > [ 2.779242] cpu_startup_entry+0x20/0x6c > > [ 2.783160] rest_init+0x164/0x28c > > [ 2.786561] arch_call_rest_init+0xc/0x14 > > [ 2.790565] start_kernel+0x4c4/0x4f8 > > [ 2.794233] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000014 > > [ 2.803011] Mem abort info: > > > > from https://lava.ciplatform.org/scheduler/job/1025535 > > from > > https://gitlab.com/cip-project/cip-testing/linux-stable-rc-ci/-/jobs/5360973735 . > > > > Is there something else missing? > > I don't have a HopeRun HiHope RZ/G2M, but both v5.10.198 and v5.10.199 > seem to work fine on Salvator-XS with R-Car H3 ES2.0 and Salvator-X > with R-Car M3-W ES1.0, using a config based on latest renesas_defconfig. Sorry, I looked at the wrong log on R-Car M3-W. I do see the issue with v5.10.198, but not with v5.10.199. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds