On Dec 18, 2017, at 11:42 AM, Segher Boessenkool segher@kernel.crashing.org wrote:
Hi again,
On Mon, Dec 18, 2017 at 08:05:57AM -0500, Jd Lyons wrote:
dff does:
: xdff " vendor-id" get-my-property IF ABORT THEN decode-int -rot 2drop dup TO x93b 10de <> IF ABORT THEN " device-id" get-my-property IF ABORT THEN ...
so it seems the device-id or vendor-id propertie don't exist, or don't have the right value? Or you don't have a current instance, perhaps.
I don’t know, maybe because we’re only executing the FCode from 4000040, past the part in the Rom where the Device ID is in the PCI Header?
It looks like it just sets the Vendor ID to 10de, but I’m un sure what it does for the Device ID, that seem to be the point where it’s breaking.
(offset) 5
401000d : (compile) [ 0xe05 ] 401000e : (compile) b(endcase) [ 0xc5 ] 401000f : (compile) over [ 0x48 ] 4010010 : (compile) b(to) [ 0xc3 ] 4010014 : (compile) [ 0xe36 ] 4010016 : (compile) encode+ [ 0x112 ] 4010017 : (compile) 2dup [ 0x53 ] 4010018 : (compile) b(to) [ 0xc3 ] 401001b : (compile) b(to) [ 0xc3 ] 401001f : (compile) [ 0xc7b ] 4010021 : (compile) property [ 0x110 ] 4010022 : (compile) b(;) [ 0xc2 ] 4010023 : b(') [ 0x11 ] 4010026 : b(to) [ 0xc3 ] 401002a : [ 0xe34 ] 401002c : [ 0xdff ]
byte-load: exception caught! ok 1 > .properties name "pci10de,141" vendor-id 10de device-id 141
So device-id is set, too.
Is there a current instance? my-self . will show you.
If you have trouble tracking down where the abort / exception is coming from, it often helps to look at memory:
here 200 - 400 dump
Hmmm…..
my-self . 0 ok 1 > here 200 - 400 dump fffa8f44 74 80 3e 71 50 80 08 00 93 01 6c 02 12 05 6e 29 t�>qP�..�.l...n) fffa8f54 60 2a 00 2e 00 2f 20 74 80 3e 71 50 80 08 00 93 `*.../ t�>qP�..� fffa8f64 ff f6 e2 b0 ff f6 e2 e4 ff f6 6c 78 00 00 00 fc ����������lx...� fffa8f74 01 6c 02 12 05 6e 29 60 2a 00 2e 00 2f 20 74 80 .l...n)`*.../ t� fffa8f84 3e 71 50 80 08 00 93 01 6b 02 12 05 6e 29 60 2a >qP�..�.k...n)`* fffa8f94 00 2e 00 2f 20 50 81 08 00 93 01 6b 02 12 05 6e .../ P�..�.k...n fffa8fa4 29 60 2a 00 2e 00 2f 20 74 80 3e 71 50 80 08 00 )`*.../ t�>qP�.. fffa8fb4 93 01 6c 02 12 05 6e 29 60 2a 00 2e 00 2f 20 50 �.l...n)`*.../ P fffa8fc4 81 08 00 93 01 6c 02 12 05 6e 29 60 2a 00 2e 00 �..�.l...n)`*... fffa8fd4 2f 20 74 80 3e 71 50 80 08 00 93 01 6c 02 12 05 / t�>qP�..�.l... fffa8fe4 6e 29 60 2a 00 2e 00 2f 20 50 81 08 00 93 01 6c n)`*.../ P�..�.l fffa8ff4 02 12 05 6e 29 60 2a 00 2e 00 2f 20 74 80 3e 71 ...n)`*.../ t�>q fffa9004 50 80 09 00 93 01 6c 02 12 04 89 05 6e 31 00 32 P�..�.l...�.n1.2 fffa9014 00 33 00 2e 15 74 50 c3 74 50 c3 50 80 01 01 62 .3...tP�tP�P�..b fffa9024 50 81 06 3b 00 3c 00 3d 00 3e 00 3f 00 3a 81 71 P�.;.<.=.>.?.:�q fffa9034 50 80 09 00 13 01 71 02 32 04 89 05 6e 30 00 31 P�....q.2.�.n0.1 fffa9044 00 32 00 33 00 50 81 0a 00 13 01 71 02 32 04 81 .2.3.P�....q.2.� fffa9054 05 2e 30 00 31 00 32 00 33 00 3a 80 74 50 c3 74 ..0.1.2.3.:�tP�t fffa9064 50 c3 71 50 80 06 00 93 01 6b 02 52 ff f6 e2 b0 P�qP�..�.k.R���� fffa9074 ff f6 e2 e4 ff f6 6c 78 00 00 00 6b 04 81 05 6e ������lx...k.�.n fffa9084 3a 80 6e 88 15 00 00 00 00 00 00 25 20 00 00 71 :�n�.......% ..q fffa9094 71 6e 80 08 68 00 ff ff ff df 00 00 00 00 71 6e qn�.h.����....qn fffa90a4 80 28 68 00 ff ff ff cf 00 00 00 00 71 7a 04 13 �(h.����....qz.. fffa90b4 00 00 00 08 00 00 58 00 14 00 00 04 a2 1d a8 a9 ......X.....�.�� fffa90c4 23 1e b7 7f d7 25 c8 c9 16 c2 27 7f 6e 98 10 00 #.��%��.�'n�.. fffa90d4 00 f7 ff ff ff 00 00 00 00 6e 10 13 00 00 ff ff .����....n....�� fffa90e4 ff ff 00 00 00 00 71 00 ff f6 e2 b0 ff f6 e2 e4 ��....q.�������� fffa90f4 ff f6 44 d0 00 00 00 08 ff fa 47 38 ff f6 41 88 ��D�....��G8��A� fffa9104 ff f6 41 58 ff f6 40 d4 ff f8 80 d0 ff f6 4b c0 ��AX��@�������K� fffa9114 ff fa 6d f4 ff f6 e2 e4 ff f6 41 38 ff f6 40 d4 ��m�������A8��@� fffa9124 ff f8 80 e0 ff f6 4b c0 ff f6 40 d4 ff f8 80 d0 ������K���@����� fffa9134 ff f6 4b c0 ff f9 1c 9c ff f6 e4 bc ff f6 40 c4 ��K���.�������@� fffa9144 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffa9154 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffa9164 00 00 00 00 00 34 30 30 66 34 30 30 66 34 30 30 .....400f400f400 fffa9174 66 66 31 32 ff fa 91 76 00 00 00 00 00 00 00 00 ff12���v........ fffa9184 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffa9194 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffa91a4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffa91b4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffa91c4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffa91d4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffa91e4 00 34 30 31 30 34 30 31 30 34 30 31 30 30 63 35 .4010401040100c5 fffa91f4 ff 34 30 31 30 34 30 31 30 34 30 31 30 34 30 31 �401040104010401 fffa9204 30 30 63 33 ff fa 92 06 00 34 30 31 30 34 30 31 00c3���..4010401 fffa9214 30 34 30 31 30 34 30 31 30 30 63 33 ff fa 92 1e 0401040100c3���. fffa9224 00 34 30 31 30 30 63 33 ff fa 92 2a 00 34 30 31 .40100c3���*.401 fffa9234 30 34 30 31 30 34 30 31 66 66 66 61 39 32 33 34 04010401fffa9234 fffa9244 ff fa 92 3c 00 00 00 00 00 00 00 00 00 00 00 00 ���<............ fffa9254 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffa9264 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffa9274 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffa9284 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffa9294 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffa92a4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffa92b4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffa92c4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffa92d4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffa92e4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffa92f4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffa9304 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffa9314 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffa9324 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffa9334 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ok 1 > .properties name "pci10de,141" vendor-id 10de device-id 141 revision-id a2 class-code 30000 interrupts 1 min-grant 0 max-latency 0 devsel-speed 0 subsystem-vendor-id 10de subsystem-id 50 cache-line-size 10 assigned-addresses -- 3c : 02 00 78 10 00 00 00 00 81 00 00 00 00 00 00 00 01 00 00 00 c3 00 78 14 00 00 00 00 90 00 00 00 00 00 00 00 10 00 00 00 83 00 78 1c 00 00 00 00 a0 00 00 00 00 00 00 00 01 00 00 00 reg 00007800 00000000 00000000 00000000 00000000 02007810 00000000 00000000 00000000 01000000 c3007814 00000000 00000000 00000000 10000000 8300781c 00000000 00000000 00000000 01000000 ok 1 >
Not sure, doesn’t look like I dumped the right address range.
Segher