NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
crabbedhaloablut has joined #openocd
Hawk777 has joined #openocd
<olerem> zear: hi, since you are still doing some rounds, not mips32_read_c0_prid() should call mips32_cpu_probe(). It should be other way around. mips32_cpu_probe() calls mips32_read_c0_prid()
nerozero has joined #openocd
dormito has quit [Ping timeout: 240 seconds]
dormito has joined #openocd
<zear> olerem, since mips32_read_c0_prid() gets introduced in the patch preceding mips32_cpu_probe(), if I want to do it the other way around, should I squash both commits into one?
<zear> or should I retain the first patch as-is, and simply change the function that's being called from mips_m4k_debug_entry() to mips32_cpu_probe() in the second patch?
Hawk777 has quit [Quit: Leaving.]
<olerem> zear: yes
<zear> yes for squashing both commits, or preserving the first commit as-is? ;-)
<olerem> zear: preserve first commit
<zear> ack
<zear> also, previously the whole mips32_read_c0_prid() -> mips32_cpu_probe() sequence would only get called once per debug session, because it would return early if ejtag_info->prid is already non-zero. Right now mips32_cpu_probe() will try to identify the CPU every time the probe enters debug mode. Should I also prevent it from being called more than once per session?
<olerem> zear: yes, it would make sense to read it only once per session
<zear> olerem, PaulFertser, new version of the patchset: https://pastebin.com/raw/YNhYrEp0
<olerem> zear: it would read prid reg only once, but running cpu_probe every time we enter debug mode?
<zear> it returns from cpu_probe early if prid reg was already read once
<zear> I assume that the cpu won't change during debug session :)
<olerem> zear: but i requested to make mips32_cpu_probe() call mips32_read_c0_prid(), not other way around. Jist imagine a function called readl() wich runs cpu_probe()
<zear> And mips32_cpu_probe() calls mips32_read_c0_prid().
<zear> but it only calls mips32_read_c0_prid() when prid isn't known yet. Is that what you don't agree with?
<olerem> do i really look to a cirrect pastebin?
<zear> you should be looking at https://pastebin.com/raw/YNhYrEp0
<zear> keep in mind this is two patches catted together
<zear> maybe you're looking only at the first patch
<olerem> ugr... patebin patch managment is much vorse then using gerrit
<zear> you can wget this patch and then `git am pastebin_dump`
<zear> it will apply it as two separate patches nicely
<olerem> zear: why do you make us more work then just configure gerrit one time and use git push instead?
<zear> like I said, I don't want to register
<zear> I don't need to explain myself further there
<olerem> mips32_read_c0_prid() do not need to prevent if is set ejtag_info->prid. It is enough if cpu_probe will check it
<zear> yes, that's why that check is removed in the 2nd patch
<zear> but I guess I should remove it from the first patch as well
Haohmaru has joined #openocd
<zear> actually, I think it's fine the way it is - if someone cherry picks the first patch only, we still want to prevent mips32_read_c0_prid() from running every time probe enters debug mode
<olerem> PaulFertser: can you plase take this latest patch version
<zear> I think PaulFertser needs to push it to gerrit, so the patchset can be read better. The diff strategy went for mixing the code of both functions together, it's hard to read.
<zear> olerem, correct
<zear> thanks for your time
<zear> I'm off to work, ttyl
<PaulFertser> Pushed
snappy has quit [Ping timeout: 250 seconds]
<olerem> zear: if i see it correctly, in current patch version you are calling mips32_cpu_probe()->mips32_read_c0_prid()->mips32_cpu_probe(). even if last mips32_cpu_probe() call will not trigger recursive execution, it is better to fix it
snappy has joined #openocd
Brainzman has joined #openocd
Brainzman has quit [Quit: Brainzman]
marekvrbka has joined #openocd
marekvrbka has quit [Quit: Leaving]
Brainzman has joined #openocd
Hawk777 has joined #openocd
Haohmaru has quit [Ping timeout: 246 seconds]
Hiemer has joined #openocd
<Hiemer> hi
Hiemer has quit [Quit: Client closed]
Brainzman has quit [Ping timeout: 256 seconds]
silurian_invader has joined #openocd
zjason` has joined #openocd
zjason has quit [Ping timeout: 252 seconds]
<zear> olerem, huh, indeed. Somehow I completely missed that. Nice catch!
<zear> I see you've already fixed that on gerrit - thanks
nerozero has quit [Remote host closed the connection]
silurian_invader has quit [Read error: Connection reset by peer]
silurian_invader has joined #openocd
JakeSays_ is now known as JakeSays
<silurian_invader> what's the right way to work around a tap which doesn't put idcode into the ir after reset?
<silurian_invader> I can shift in the idcode instruction manually and read out the correct id
<silurian_invader> but openocd complains that the scan chain is all 0s
<PaulFertser> silurian_invader: it complains but it proceeds anyway
<silurian_invader> yeah, but I see e.g "Bypassing JTAG setup events due to errors"
<PaulFertser> silurian_invader: probably harmless in your case?
<silurian_invader> ok; wasn't sure whether I needed to do anything about that
<PaulFertser> What device is that btw?
<silurian_invader> pxa16x
<PaulFertser> Old stuff
<silurian_invader> yeah
<silurian_invader> customer did a lifetime buy for the processor but not the supporting chips...
<PaulFertser> Was cool back then
<silurian_invader> definitely a very capable chip
<silurian_invader> lotsa errata too :)
<PaulFertser> If you really see any issues with that bypassing, let's discuss. But probably nothing to worry about, and you can rerun manually whatever is needed.
<PaulFertser> Hopefully most of the errata issues have good workaround in today's tools.
crabbedhaloablut has quit []
rkta_ has joined #openocd
rkta_ is now known as rtkta
rtkta is now known as rkta