Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4969051rwi; Mon, 17 Oct 2022 13:27:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5tsCnL5QaNk3a9qiqhTse+E2pX8U4IV0AwNnq70ffYqazJQjFIc+xaD24EVBPJhSNcXLor X-Received: by 2002:a17:907:7290:b0:78d:ec20:fe4d with SMTP id dt16-20020a170907729000b0078dec20fe4dmr10187554ejc.528.1666038449340; Mon, 17 Oct 2022 13:27:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666038449; cv=none; d=google.com; s=arc-20160816; b=c0d7gR5X84QV1f0zmc9AP2x6x/w927eL97uqFc6KukjQs3KBmhk2dUOd7VTpS9/cD0 /Kv8j0MS4F7T2vB5+ocOWAQJdit/OPPWzAi39kzY+yAGbCIkzwRC7PNLjIfYQzZ6etop irc5NCjM0NxEUg3kytBpDRCZ+gfdPnghmZy8H6kDV4RqfXvj8Tk6zR69zHlDq75d1DKH KIhnlRaB03IrwRwuPIin4nSohNDziP/vPWJfuF0RfqsVuQpcvPv9wxJ1uSJXTVn4oV7M ibO4MOQkj2FPR+cCyxhRTYNKbq7CgF/5lgnPMB2t/WPFjo1QxvPyX6UAxrDd2idiP/kw sNMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ppFCDIP52kTXbWdVyG8sgqag9kDp+DU5BUqcmjHWKnY=; b=Mh8XHy4Ez1ZmCvePZLu1K9h2oORqxhiSE2XleQT1qQqAfe88vKyK+8qsVZJizAnBjY qkhWQDgihYqXFQseiyit38bVqwfjVsg7ehrVguAHmjgiOzyG0Ltl/+6Vm2p7iZBM3udm h/ECMyedX+L8V6F4AP+iIP4vS3zdYHo7K6N1tv0DXCPzaEfaLnEZRs9cbRHKlHsDukkE gYoNrGYSge8QEoMiReSCN1HdNHs4TzYACD8QMw9X14dxTfOnxBghhlzKSvvVU+4gZbC9 T/7itLniNKsXDBW5u2MfDaB862WyhqGoQu/auZiVTBF4T1y6AitJJB3m6Ul4SKUH1BmK EW7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OBGontD0; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p11-20020a056402500b00b0045d292ef641si9384705eda.493.2022.10.17.13.27.03; Mon, 17 Oct 2022 13:27:29 -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=@redhat.com header.s=mimecast20190719 header.b=OBGontD0; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230418AbiJQT3O (ORCPT + 99 others); Mon, 17 Oct 2022 15:29:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231223AbiJQT2V (ORCPT ); Mon, 17 Oct 2022 15:28:21 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D800B79624 for ; Mon, 17 Oct 2022 12:27:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1666034799; 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=ppFCDIP52kTXbWdVyG8sgqag9kDp+DU5BUqcmjHWKnY=; b=OBGontD0rm3iLVBETrhrBwBJ/+CZ7Q8v8eezk7HaImMjKunVvSfXFBsy4hqhdn/5W0m4Yl gOTxAEKKo+UwX3KyTS+axQP3pdxBOUwk2aE88wJYbGMXkk7KvPAk1K29iWfMXRNmxUc5up 79EmFtpglztENG080NUemOdGUY+vX84= Received: from mail-il1-f198.google.com (mail-il1-f198.google.com [209.85.166.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-209-Sbo-210RNwy_ISEi_TklMA-1; Mon, 17 Oct 2022 15:23:28 -0400 X-MC-Unique: Sbo-210RNwy_ISEi_TklMA-1 Received: by mail-il1-f198.google.com with SMTP id a17-20020a921a11000000b002fadf952565so9902298ila.0 for ; Mon, 17 Oct 2022 12:23:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ppFCDIP52kTXbWdVyG8sgqag9kDp+DU5BUqcmjHWKnY=; b=QhMWGzBXHOgjGzylz06Ej8YyXQhJ064Duludx82wv4k8KnNbT9XWkZaYcwd2Yk+R2N EGPvNWye/29yyHTSeSCdDTnnYYfoGCVhfyShwM4NJ9V9hqbLmAhKKwRFZeqK2qagHsdO vs7WAVj11xlLyAt82LPIWn2G9GB5vkYXhpdrsLNugg6Mu2za7qf0RofihjyzxW7HRKdx WWSqrCETNUtzt2a/xZDe0hoPFb/vFMMcyZHxyzP8Z4Ulbni9H6bZr6Eg3qEgdoV/l+pw f52jT8tVmAqs0ZpsrG2rLo/gWFG+2rfj8IKYxb9H4MUf1fxLhB7Jq+Zx+29N6d2fJLfW N54A== X-Gm-Message-State: ACrzQf2q1X+bk+lAPtEnx1+vtWwqjiTivVgnJUMgcC5uwovTaRj0ZFh2 v0WIV28DA/xh6RXuQyPh/fQWHKxL/2GQzAgqIoSnpVkw3sun6bwkkGabQedLbnZpsSLUiQjYXC1 eFy7gZ2OF4qktJ2cgnJgjS0SZ X-Received: by 2002:a6b:ba84:0:b0:6bb:e801:3d3c with SMTP id k126-20020a6bba84000000b006bbe8013d3cmr5225862iof.15.1666034607942; Mon, 17 Oct 2022 12:23:27 -0700 (PDT) X-Received: by 2002:a6b:ba84:0:b0:6bb:e801:3d3c with SMTP id k126-20020a6bba84000000b006bbe8013d3cmr5225840iof.15.1666034607677; Mon, 17 Oct 2022 12:23:27 -0700 (PDT) Received: from x1 (c-98-239-145-235.hsd1.wv.comcast.net. [98.239.145.235]) by smtp.gmail.com with ESMTPSA id u18-20020a92ccd2000000b002eb1137a774sm201137ilq.59.2022.10.17.12.23.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Oct 2022 12:23:27 -0700 (PDT) Date: Mon, 17 Oct 2022 15:23:25 -0400 From: Brian Masney To: Eric Chanudet , Parikshit Pareek Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Halaney , Shazad Hussain , Johan Hovold Subject: Re: [PATCH v5 0/3] arm64: dts: qcom: add dts for sa8540p-ride board Message-ID: References: <20221003125444.12975-1-quic_ppareek@quicinc.com> <20221004132816.ryhyo5ihwruxspl6@echanude> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221004132816.ryhyo5ihwruxspl6@echanude> User-Agent: Mutt/2.2.7 (2022-08-07) X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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, Oct 04, 2022 at 09:28:16AM -0400, Eric Chanudet wrote: > I followed the instructions above and linux-next-20220930 booted on the > QDrive3 to a prompt. It then hanged after a couple minutes and rebooted > in Sahara mode: > B - 1662280 - Sahara Init > B - 1665422 - Sahara Open > > There seems to be no trace from the kernel, this happened consistently > over 3 boots. > > I asked Brian, he mentioned he only booted to prompt so that may have > happened unbeknownst to him as well. Good catch, Eric! Parikshit: I found a way to reproduce the crash and isolated the issue to the qcom_q6v5_pas driver. Here's how you can reproduce the crash that we're seeing: 1) Use my instructions at [1] to build an upstream kernel with the arm64 defconfg. Today I used linux-next-20221017. 2) Copy the modules to the root filesystem. Before you reboot, mv /lib/modules/6.0.0-next-20221017-xxx to /lib/modules/6.0.0-next-20221017-xxx-old so that the modules are not automatically loaded on startup. 3) Reboot, and run lsmod and verify that no modules are loaded. 4) cd /lib/modules/6.0.0-next-20221017-xxx-old 5) Now load the modules that work as expected that are loaded with the upstream arm64 defconfig: insmod ./kernel/net/rfkill/rfkill.ko insmod ./kernel/arch/arm64/crypto/crct10dif-ce.ko insmod ./kernel/net/qrtr/qrtr.ko insmod ./kernel/drivers/phy/qualcomm/phy-qcom-snps-femto-v2.ko insmod ./kernel/drivers/soc/qcom/llcc-qcom.ko insmod ./kernel/drivers/soc/qcom/qmi_helpers.ko insmod ./kernel/drivers/remoteproc/qcom_sysmon.ko insmod ./kernel/drivers/remoteproc/qcom_q6v5.ko insmod ./kernel/drivers/rpmsg/qcom_glink_smem.ko insmod ./kernel/drivers/soc/qcom/socinfo.ko insmod ./kernel/drivers/remoteproc/qcom_pil_info.ko insmod ./kernel/drivers/remoteproc/qcom_common.ko insmod ./kernel/drivers/watchdog/qcom-wdt.ko insmod ./kernel/fs/fuse/fuse.ko insmod ./kernel/drivers/soc/qcom/mdt_loader.ko 6) Wait a few minutes to be sure that everything is working as expected on the board. 7) Make the board go BOOM: insmod ./kernel/drivers/remoteproc/qcom_q6v5_pas.ko We don't know how or have the tools to analyze the ramdumps from the Qualcomm firmware at Red Hat, so we're flying blind right now. [1] https://lore.kernel.org/lkml/YzsciFeYpvv%2F92CG@x1/ Brian