Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp4656130rwj; Tue, 20 Dec 2022 13:15:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf6l288Dt0EUP6Ss1heZZaiHotegWqW8F3K+anY7/2NmhgINxMleC6E20ubbVqFtUXk5JOsg X-Received: by 2002:a17:907:a64a:b0:7c1:64dc:ac25 with SMTP id vu10-20020a170907a64a00b007c164dcac25mr36053695ejc.23.1671570926256; Tue, 20 Dec 2022 13:15:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671570926; cv=none; d=google.com; s=arc-20160816; b=Wb5AgfPQLYvuy2ikNiTummuDqkGgNg9WkGZpdVUhxIWqrf4cZessabpB4+dX1GXQkz aO3oDWeP0B9FEXFVv5rWNHnK7IUcxiLQLBgZIRp/WpEqO9rOPHUxUVVAkVj0UDsBnlW+ ZHcllE6Ayzcjb8M+x5XC0lKW0UZ5Yvi20OTrH+RX7VXl8dDW3oy4mfEnfPLr9zFUsgDt ezuzEUKeXMZkbRJ0ztzePIdTTiqKQioCthWYxHWVDGUhmWeqZsUpNDqmI0G2K7dQj7V7 cr6SAOhh6LFiNBJzPnt/1+mRiOaMWRev7sbZ6++ISDbYOoaKB/Zf7qT1zx1S8zQ6EQiz yOfw== 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 :dkim-signature; bh=JFJ52Jvif4kqXh2cyc1/ZmoPfPIQip5jewjrb6LAFws=; b=eG/2kcvLQ5GCYPfijMuMVIX9xq2SHQRX63oJah1yMfr8PdYqVu/BSbFlhmzHvomLiY nMnq6MRb2Y6RPipyT5XllkvHOFATtmR9X1OB/tTz1bqBwtefQcU3P1MksWueHq59/7gr YGJaMuhmemmg+/ZTH62QTTekK6M/sVWE9LNe5BZrefY+TYQIE81j98XVBP/zMkNyaQ8r yWbwd7h8z0DlK4TgbtJ4B5m2XdveG4CFHJfxJGXH1WFA7KGPPPkfq86jLkWvCB5Z/+rN OH9LNPHqkSP17+SG7HKLvVXyi/3CjfUFTy5qUXVRUHAYOlI91xNheBcf11Ox/BG9ydxY iQFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Pd4ElttS; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp11-20020a1709071b0b00b007c0a2472f02si14473554ejc.626.2022.12.20.13.15.09; Tue, 20 Dec 2022 13:15:26 -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=@chromium.org header.s=google header.b=Pd4ElttS; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233624AbiLTUoZ (ORCPT + 69 others); Tue, 20 Dec 2022 15:44:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229906AbiLTUoV (ORCPT ); Tue, 20 Dec 2022 15:44:21 -0500 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A202CE1E for ; Tue, 20 Dec 2022 12:44:20 -0800 (PST) Received: by mail-pj1-x1036.google.com with SMTP id gt4so13649263pjb.1 for ; Tue, 20 Dec 2022 12:44:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=JFJ52Jvif4kqXh2cyc1/ZmoPfPIQip5jewjrb6LAFws=; b=Pd4ElttST4MpL9hibF2X3mMy+HUUfHhLj41kwyBAQaoYc1y2g0UHePF5FEZcnSduPY MLmI6S9+QF6SIny/exlAYN4fslzCVAhmMKqn/ZNFhkR3sWXpg9LXaLJ0+FxGo9hAO17v u4a/3gzKxYd16I/oOHmZQCuxu/S5Gihpx6O44= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=JFJ52Jvif4kqXh2cyc1/ZmoPfPIQip5jewjrb6LAFws=; b=V2KDgwpSgkjcjVlumMc4lNr4cU5NIB5MpWGpw96+xoR1zP08NGtvZ08I8YjS2htWd6 8BvuJPKiLJuYzAT0xwcY1FP9uMr+BhMF5eUpFdbDLN/c+btTiHZ65DuqxHtNM7yE9YWl ChJgijfXADa5WeZ+uvrVr12ib4A+AFhzqHm0/bu5dNEUldmyy3w3tacRPhCkKtlUD7Vj 99N3gK+KLvoLSfzAfh8XkOtNMC16ubIptVNVn+XZgjQMKwzxWyXAHYFfHiWnYeP1Vg1T /qHOqjw6y6Sur6xUtW6MH6uUPU8GyWESzGC1bR/jJmZrWss3c+S7gVStiES9w8AkDl+F Cm9w== X-Gm-Message-State: AFqh2kpPXbC3AtQ38cnOqw1052N5zJmyObipL4ANgHRf44TqAzzvIDJ6 /JKjqarIprh/O4RHHhg21w+97RzVdhnBOwCW X-Received: by 2002:a17:902:e845:b0:187:3a79:6038 with SMTP id t5-20020a170902e84500b001873a796038mr20912825plg.18.1671569059685; Tue, 20 Dec 2022 12:44:19 -0800 (PST) Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com. [209.85.216.48]) by smtp.gmail.com with ESMTPSA id o15-20020a170902778f00b001891a17bd93sm9784340pll.43.2022.12.20.12.44.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Dec 2022 12:44:18 -0800 (PST) Received: by mail-pj1-f48.google.com with SMTP id gt4so13649176pjb.1 for ; Tue, 20 Dec 2022 12:44:18 -0800 (PST) X-Received: by 2002:a17:90a:9c09:b0:219:33a1:d05f with SMTP id h9-20020a17090a9c0900b0021933a1d05fmr1883291pjp.116.1671569057656; Tue, 20 Dec 2022 12:44:17 -0800 (PST) MIME-Version: 1.0 References: <20221127-mtk-svs-v1-0-7a5819595838@chromium.org> <52fb6ccf3fe1cb11f3e330ecc4d9c6cf1225c98a.camel@mediatek.com> In-Reply-To: From: Ricardo Ribalda Date: Tue, 20 Dec 2022 21:44:06 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] soc: mediatek: mtk-svs: Enable the IRQ later To: Matthias Brugger Cc: =?UTF-8?B?Um9nZXIgTHUgKOmZuOeRnuWCkSk=?= , "angelogioacchino.delregno@collabora.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-mediatek@lists.infradead.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Hi Roger Thanks for the heads up. This is the tree that I am using to test this: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/= 3918592/7 ( https://chromium.googlesource.com/chromiumos/third_party/kernel/+/3daf57d= 76c9e3d7c73d038ff2e43984412b503a2 ) You can use this tool for kexec: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/3953579 The syntax is kexec-lite --reboot --kernel /boot/Image --cmdline "$(cat /proc/cmdline)" On Tue, 20 Dec 2022 at 15:50, Matthias Brugger wro= te: > > > > On 20/12/2022 12:03, Roger Lu (=E9=99=B8=E7=91=9E=E5=82=91) wrote: > > Hi Matthias Sir, > > > > After applying this patch, SVS probes fail as below on my MT8192 platfo= rm. If > > thing isn't too late, please do not merge this patch. I'll ask Ricardo = how to > > reproduce this issue and give the correct solution. Thanks in advance. > > > > Ok, I just dropped the patch from v6.2-tmp/soc branch. > > Regards, > Matthias > > > #MT8192 platform SVS probe fail log > > [ 10.209430] SVSB_GPU_LOW: init02 completion timeout > > [ 10.214402] mtk-svs 1100b000.svs: svs start fail: -16 > > [ 10.219479] mtk-svs: probe of 1100b000.svs failed with error -16 > > > > Hi Ricardo, > > > > Could you share us how you reproduce this issue? I have MT8192 Chromebo= ok and > > can give it a try to reproduce the issue you encountered. Thanks a lot. > > > > Sincerely, > > Roger Lu. > > > > On Fri, 2022-12-16 at 13:47 +0100, Matthias Brugger wrote: > >> > >> On 30/11/2022 12:00, AngeloGioacchino Del Regno wrote: > >> > Il 27/11/22 21:22, Ricardo Ribalda ha scritto: > >> > > If the system does not come from reset (like when is booted via > >> > > kexec()), the peripheral might triger an IRQ before the data struc= tures > >> > > are initialised. > >> > > > >> > > Fixes: > >> > > > >> > > [ 0.227710] Unable to handle kernel NULL pointer dereference at > >> > > virtual > >> > > address 0000000000000f08 > >> > > [ 0.227913] Call trace: > >> > > [ 0.227918] svs_isr+0x8c/0x538 > >> > > > >> > > Signed-off-by: Ricardo Ribalda > >> > > >> > Reviewed-by: AngeloGioacchino Del Regno < > >> > angelogioacchino.delregno@collabora.com> > >> > > >> > > >> > >> Applied thanks! > >> > > > > ************* MEDIATEK Confidentiality Notice ******************** > > The information contained in this e-mail message (including any > > attachments) may be confidential, proprietary, privileged, or otherwise > > exempt from disclosure under applicable laws. It is intended to be > > conveyed only to the designated recipient(s). Any use, dissemination, > > distribution, printing, retaining or copying of this e-mail (including = its > > attachments) by unintended recipient(s) is strictly prohibited and may > > be unlawful. If you are not an intended recipient of this e-mail, or be= lieve > > that you have received this e-mail in error, please notify the sender > > immediately (by replying to this e-mail), delete any and all copies of > > this e-mail (including any attachments) from your system, and do not > > disclose the content of this e-mail to any other person. Thank you! --=20 Ricardo Ribalda