NishanthMenon changed the topic of #linux-ti to: Linux development for TI SoCs | Logs: https://libera.irclog.whitequark.org/linux-ti/| paste logs in https://pastebin.ubuntu.com/ | Let it rock! Vendor SDK/kernel: Also see e2e.ti.com
goliath has quit [Quit: SIGSEGV]
florian has joined #linux-ti
florian has quit [Ping timeout: 265 seconds]
Peng_Fan has joined #linux-ti
Kubu_work has joined #linux-ti
<indy> hi all, i'm playing with pcie endpoint on beaglebine ai64 and i would like to set following:
<indy> Capabilities: [150 v1] Device Serial Number 00-00-00-00-00-00-00-00
minashamb has quit [Remote host closed the connection]
minashamb has joined #linux-ti
florian has joined #linux-ti
goliath has joined #linux-ti
florian_kc has joined #linux-ti
florian has quit [Ping timeout: 252 seconds]
florian_kc is now known as florian
ikarso has joined #linux-ti
florian has quit [Quit: Ex-Chat]
florian has joined #linux-ti
tomba has joined #linux-ti
sv-ti has joined #linux-ti
<sv-ti> indy, regarding setting the device serial number for pcie (PCIE1 instance), the registers at addresses 0x0D800154 and 0x0D800158 can be written to via devmem2 or setpci utility. 0x0D800154 corresponds to the lower 32 bits of device serial number and 0x0D800158 corresponds to the upper 32 bits of device serial number.
<indy> sv-ti thanks a lot, i completely forgot of setpci
<indy> sv-ti, well setpci will not work probably as i have pcie controller in endpoint mode
<sv-ti> indy, devmem2 can be used in that case. The reset value of those registers is all zeros. You could use devmem2 to set them to a custom value as follows:
<sv-ti> devmem2 0x0D800154 <value-of-lower-32-bits-of-serial-number>
<sv-ti> devmem2 0x0D800158 <value-of-upper-32-bits-of-serial-number>
<indy> sv-ti, thanks, it worked https://dpaste.org/MqmJE :)
<indy> it is a shame that pciutils can't work with pci controller with endpoint mode
<indy> yet :)
<sv-ti> indy, glad to know that it worked :)
sv-ti has quit [Quit: Client closed]
florian has quit [Ping timeout: 252 seconds]
florian has joined #linux-ti
sv-ti has joined #linux-ti
goliath has quit [Quit: SIGSEGV]
sv-ti has quit [Quit: Client closed]
florian has quit [Ping timeout: 248 seconds]
florian has joined #linux-ti