Re: Regressions can bus with MCP2515 on sama5d3 connected over SPI stop working on kernel > 5.4.271

From: Daniel Smolik
Date: Wed Mar 13 2024 - 08:21:30 EST


Hm,
that's what I was worried about.  Main problem is that I can't easy compile kernel around version 5.5 because that always failed with this:

  HOSTLD  scripts/dtc/dtc
/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x20): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[1]: *** [scripts/Makefile.host:116: scripts/dtc/dtc] Error 1
make: *** [Makefile:1260: scripts_dtc] Error 2
make: *** Waiting for unfinished jobs....

I solve this problem  copying  whole scripts dir from 5.5.14 where this issue was solved.
After this  git reset --hard and after this   git bisect good | bad.

Prepare with this:

git clone -o mainline --no-checkout \
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git linux/
cd linux/
git remote add -t master stable \
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
git checkout --detach v5.4


git bisect start
git bisect good v5.4
git bisect bad v5.5

On each iteration I do git reset --hard and copy sctipt direcotry.

Regards
                Dan



Dne 13. 03. 24 v 12:43 Marc Kleine-Budde napsal(a):
On 13.03.2024 12:22:25, Daniel Smolik wrote:
this is my first bisection please be lenient :-) Threse is a result:

marvin@marvin:/usr/src/linux$ git bisect good
Bisecting: 0 revisions left to test after this (roughly 0 steps)
[52f96cd135b160d44db4cb62a5b614b3bca20fbc] net: stmmac: xgmac: Remove
uneeded computation for RFA/RFD
I think you still miss a bisection step.

The commit 52f96cd135b1 ("net: stmmac: xgmac: Remove uneeded computation
for RFA/RFD") is unrelated to CAN problem you described. It's in the
stmmac Ethernet driver.

Marc