From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 57690C07E99 for ; Mon, 12 Jul 2021 18:57:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2D665611AD for ; Mon, 12 Jul 2021 18:57:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230199AbhGLTAF (ORCPT ); Mon, 12 Jul 2021 15:00:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230409AbhGLTAE (ORCPT ); Mon, 12 Jul 2021 15:00:04 -0400 Received: from mail-qk1-x72e.google.com (mail-qk1-x72e.google.com [IPv6:2607:f8b0:4864:20::72e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2251C0613DD for ; Mon, 12 Jul 2021 11:57:15 -0700 (PDT) Received: by mail-qk1-x72e.google.com with SMTP id 9so19020494qkf.3 for ; Mon, 12 Jul 2021 11:57:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-transfer-encoding:thread-index :content-language; bh=8YFSmiXcbPL4BtL1sPq91EzD3+IYQVSEJ7eSXMCRfew=; b=KowMsFvjtFIAdKYs9Ad288KWa08B3QXWGcO7VlTVIf89OvRsDGQ3NkYhohzOSrTO0L aJdfq9zId6xjnjEj+pXfw/+CYQOI3NmHecOE2VhhhopToGKqEMeGHZi6dopK/n1rtgIC z3wDE6zrqpdDtoFMK+ftEF0S71+sgNkSGoMVmqjJ+TYw+LRuv3ZcDM+EVxsmEKMApDpK 6zUvON8nKaeI+cjg7NX66Z8aiKvTxPqgW4imGGoZSyLzATG1XXqORCF+s4meEMa+eDks Nz+QesZACSYnzcayFBDD0drpP5vC758ZX69H0nxuzkIYBhRdYCPFFdMC4Y+NS9Gu0igE K34w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:content-transfer-encoding:thread-index :content-language; bh=8YFSmiXcbPL4BtL1sPq91EzD3+IYQVSEJ7eSXMCRfew=; b=rtLYRVd1KYSlkZ6rGXB2SqUFOF8QlitnmQetSjd3ebWnNBNZP0x/cCZ0smte07Ux22 3naJ9GWI0plh59dfdCpQ0OxOG3VQb/jb6qCFIDtVVKB/mLhCts3QufhRnAxvl91O2GE0 jFPKgXjw14nMIZGm05+S461BW9mBF6VcQPb/XyagyFmYWZy+VtXZ71u0p8OGNcP/iumb H0HWGtvQUvh32dVMbcQK03vZtiJW9M3lYW3+7RZLWfSzt4TQ0svhrooEacxYH6j4nqvi vOhLdSQohcN+Egw/u3yi6y6RVid2f+rWCl6n+p/RRK4qdhHmS4wvl2S7S0sDXzkQBKrr Niwg== X-Gm-Message-State: AOAM533LS5ym6oLqWormndWpdodXFizOm0oJnSC+K6sNe+f6RELGPWZk p+bxOGYZdDAqA9PhNy565VM= X-Google-Smtp-Source: ABdhPJy2lbW3jR4Ug7nxmd2Lo1hH21xLBYdAPeN/dlTfm70wEFZlQ60sgYE5gdWxrELFchWbF5QgxA== X-Received: by 2002:a05:620a:4f5:: with SMTP id b21mr139286qkh.253.1626116235172; Mon, 12 Jul 2021 11:57:15 -0700 (PDT) Received: from DTJQUESENBERRY ([2001:468:c80:a202:1de7:4e01:590a:fc56]) by smtp.gmail.com with ESMTPSA id x20sm7028145qkp.15.2021.07.12.11.57.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Jul 2021 11:57:13 -0700 (PDT) From: "Joshua Quesenberry" To: "'Marc Kleine-Budde'" Cc: "'Patrick Menschel'" , , , References: <016701d7678c$2b3d50c0$81b7f240$@gmail.com> <20210622212818.enfx5fzgghfxfznb@pengutronix.de> <2a99d742-b2dc-4411-acbb-2e23ce7cd132@posteo.de> <029101d76855$fa5ac300$ef104900$@gmail.com> <20210625065626.b7afwhptoyoxoblx@pengutronix.de> <20210625121648.hg4hihfmddss7ptu@pengutronix.de> <020f01d769da$9fac86b0$df059410$@gmail.com> <022d01d769e2$e623cbf0$b26b63d0$@gmail.com> <20210702093110.vzfjk4dgovrrs4mj@pengutronix.de> <006601d77296$68e41d40$3aac57c0$@gmail.com> In-Reply-To: <006601d77296$68e41d40$3aac57c0$@gmail.com> Subject: RE: MCP2518FD Drivers Rarely Working with Custom Kernel 5.10.Y Date: Mon, 12 Jul 2021 14:57:12 -0400 Message-ID: <02be01d7774f$b9c29da0$2d47d8e0$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQKkU7o+qbTtuE7WZsCEE+zhLGrysQHOwZAXAgLTME4A15gpjQI9UoC3AfsMaV4CTizomAGzk0WoAZKSgAIBs/x7BAFwQIEbAfLOJN2pCY+AUA== Content-Language: en-us Precedence: bulk List-ID: X-Mailing-List: linux-can@vger.kernel.org Any thoughts on my recent findings? So far the raspberrypi.org forums = haven't proved fruitful, not sure if there's another more appropriate = place I should take this conversation now that the issue doesn't seem to = be relating to the CAN drivers themselves, but underlying subsystems = conflicting. Thanks! Josh Q -----Original Message----- From: Joshua Quesenberry =20 Sent: Tuesday, July 6, 2021 2:41 PM To: 'Marc Kleine-Budde' Cc: 'Patrick Menschel' ; kernel@pengutronix.de; = linux-can@vger.kernel.org; engnfrc@gmail.com Subject: RE: MCP2518FD Drivers Rarely Working with Custom Kernel 5.10.Y Good Afternoon, Today I was planning to attack this problem from two different angles, = first to detach the HAT and try narrowing down my config.txt to just = what's needed for CAN (HAT wired up by jumper wires) and second to = completely rebuild my OS from scratch in case something went awry during = the upgrades; luckily during narrowing down my config.txt I found the = issue. It appears that when I try to load the I2S subsystem that it's = conflicting with SPI0. Since it's a lesser used feature, I'm guessing = none of you all are testing with it loaded? Any ideas on how to begin = troubleshooting this? I2S is something we need. Current config.txt with two I2S lines (double hash) removed that results = in working CAN on each reboot: -------------------------------------------------------------------------= ----------------------------------------------------------- dtdebug=3D1 disable_splash=3D1 boot_delay=3D0 hdmi_force_mode=3D1 hdmi_group=3D1 hdmi_mode=3D3 # 480p 60Hz H # Uncomment some or all of these to enable the optional hardware = interfaces dtparam=3Di2c_arm=3Don ## dtparam=3Di2s=3Don = dtparam=3Dspi=3Doff enable_uart=3D0 # Enable audio (loads snd_bcm2835) dtparam=3Daudio=3Don # I2S WM8782 Driver ## dtoverlay=3Dhel-wm8782,alsaname=3Dmic [pi4] # Enable DRM VC4 V3D driver on top of the dispmanx display stack = dtoverlay=3Dvc4-fkms-v3d max_framebuffers=3D2 [all] start_x=3D1 gpu_mem=3D512 # GPS dtoverlay=3Duart3 # Reserved for HAT IDs dtoverlay=3Di2c0 dtparam=3Dpins_0_1=3Don dtparam=3Dcombine=3Doff # Power Supervisor, IMU, RPi I2C Bus dtoverlay=3Di2c1 # CAN 0/1 dtoverlay=3Dspi0-cs dtparam=3Dcs0_pin=3D8 dtparam=3Dcs1_pin=3D7 # Reserved dtoverlay=3Dspi5-2cs dtparam=3Dcs0_pin=3D12 dtparam=3Dcs0_spidev=3Ddisabled dtparam=3Dcs1_pin=3D26 dtparam=3Dcs1_spidev=3Ddisabled # CAN 0 dtoverlay=3Dmcp251xfd,spi0-0,interrupt=3D24,oscillator=3D40000000,speed=3D= 20000000 # CAN 1 dtoverlay=3Dmcp251xfd,spi0-1,interrupt=3D25,oscillator=3D40000000,speed=3D= 20000000 -------------------------------------------------------------------------= ----------------------------------------------------------- Thanks, Josh Q -----Original Message----- From: Joshua Quesenberry Sent: Friday, July 2, 2021 10:27 AM To: Marc Kleine-Budde Cc: Patrick Menschel ; kernel@pengutronix.de; = linux-can@vger.kernel.org; Joshua Quesenberry Subject: Re: MCP2518FD Drivers Rarely Working with Custom Kernel 5.10.Y The only other format I have is Saleae's trace format, if you're willing = to install their software, the attached trace should work. I double = checked that the application will load even without the device attached, = and it does, so it should work for you. I was using Logic 1, but = switched to their Logic 2 app and recollected a trace for you. https://www.saleae.com/downloads/ Thanks, Josh Q On Fri, Jul 2, 2021 at 5:31 AM Marc Kleine-Budde = wrote: > > On 25.06.2021 12:55:26, Joshua Quesenberry wrote: > > Forgive me, I forgot can0 =3D spi0.1 and can1 =3D spi0.0 right now=20 > > because I killed my UDEV rule so I was tapped onto the wrong CS=20 > > line. Attached is a snapshot of what I'm seeing AND an export of the = > > data from Saleae which may prove more useful than snapshots. > > Pulseview cannot parse the csv file correctly (see [1]). Can you save=20 > it in a different format? > > Marc > > [1] > https://www.mail-archive.com/sigrok-devel@lists.sourceforge.net/msg037 > 51.html > > > -- > Pengutronix e.K. | Marc Kleine-Budde | > Embedded Linux | https://www.pengutronix.de | > Vertretung West/Dortmund | Phone: +49-231-2826-924 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |