Em dom., 3 de abr. de 2022 às 00:38, Jonathan Gray <j...@jsg.id.au> escreveu:
> On Sat, Apr 02, 2022 at 09:45:11AM -0400, Adriano Barbosa wrote: > > Em sex., 1 de abr. de 2022 às 18:46, Jonathan Gray <j...@jsg.id.au> > escreveu: > > > > > On Fri, Apr 01, 2022 at 05:11:35PM -0400, Adriano Barbosa wrote: > > > > Thank you for your help and sorry for the delay. > > > > I had to learn how to compile from source and still not sure if I > did it > > > > correctly or if the patch didn't work. > > > > I downloaded src.tar.gz and sys.tar.gz from 7.0 release, updated to > > > -current > > > > using cvs and applied the patch. Then, followed only step 3 of > release(8) > > > > (which took around 60 minutes to build). I repeated it twice to make > > > sure I > > > > didn't miss any step, but the result was the same, still getting > "Intel > > > 300 > > > > Series cAVS" rev 0x10 at pci0 dev 31 function 3 not configured in > dmesg. > > > > Should I do anything else or anything different? > > > > > > > > Obrigado! > > > > > > I've committed this change. Try a snapshot in a few days time. > > > > > > > > Managed to compile correctly and the audio patch works. > > Thank you very much! > > > > Any hints on the touchpad? Looks like it is configured (Intel 300 Series > > I2C, > > right?), but it doesn't move or click. Any tool to test it? > > > > dwiic0 at pci0 dev 21 function 0 "Intel 300 Series I2C" rev 0x10: apic 2 > > int 16 > > iic0 at dwiic0 > > dwiic1 at pci0 dev 21 function 1 "Intel 300 Series I2C" rev 0x10: apic 2 > > int 17 > > iic1 at dwiic1 > > ihidev0 at iic1 addr 0x2cdwiic1: timed out reading remaining 30 > > , failed fetching initial HID descriptor > > this is less clear, does the following diff to force polling help? > > Index: sys/dev/pci/dwiic_pci.c > =================================================================== > RCS file: /cvs/src/sys/dev/pci/dwiic_pci.c,v > retrieving revision 1.20 > diff -u -p -r1.20 dwiic_pci.c > --- sys/dev/pci/dwiic_pci.c 11 Mar 2022 18:00:45 -0000 1.20 > +++ sys/dev/pci/dwiic_pci.c 3 Apr 2022 04:28:45 -0000 > @@ -212,7 +212,8 @@ dwiic_pci_attach(struct device *parent, > > /* install interrupt handler */ > sc->sc_poll = 1; > - if (pci_intr_map(&sc->sc_paa, &ih) == 0) { > +// if (pci_intr_map(&sc->sc_paa, &ih) == 0) { > + if (0) { > intrstr = pci_intr_string(sc->sc_paa.pa_pc, ih); > sc->sc_ih = pci_intr_establish(sc->sc_paa.pa_pc, ih, > IPL_BIO, > dwiic_intr, sc, sc->sc_dev.dv_xname); > > Thank you again for all the help! I see polling on dmesg, but touchpad still doesn't work: dwiic0 at pci0 dev 21 function 0 "Intel 300 Series I2C" rev 0x10: polling iic0 at dwiic0 dwiic1 at pci0 dev 21 function 1 "Intel 300 Series I2C" rev 0x10: polling iic1 at dwiic1 ihidev0 at iic1 addr 0x2cdwiic1: timed out reading remaining 30 , failed fetching initial HID descriptor 0:21:0: Intel 300 Series I2C 0x0000: Vendor ID: 8086, Product ID: a368 0x0004: Command: 0006, Status: 0010 0x0008: Class: 0c Serial Bus, Subclass: 80 (unknown), Interface: 00, Revision: 10 0x000c: BIST: 00, Header Type: 80, Latency Timer: 00, Cache Line Size: 10 0x0010: BAR mem 64bit addr: 0x00000000a5528000/0x00001000 0x0018: BAR mem 64bit addr: 0x00000000a5527000/0x00001000 0x0020: BAR empty (00000000) 0x0024: BAR empty (00000000) 0x0028: Cardbus CIS: 00000000 0x002c: Subsystem Vendor ID: 1028 Product ID: 0949 0x0030: Expansion ROM Base Address: 00000000 0x0038: 00000000 0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00 0x0080: Capability 0x01: Power Management State: D0 0x0090: Capability 0x09: Vendor Specific Also, although audio output works both on speakers and audio jack, audio recording is not working. Is it supposed to work on this card? I found some info about it on Linux that I suppose can help, but I'm not able to make any change myself: https://lore.kernel.org/all/s5h8rzdjkkf.wl-ti...@suse.de/T/ 0:31:3: Intel 300 Series cAVS 0x0000: Vendor ID: 8086, Product ID: a348 0x0004: Command: 0006, Status: 0010 0x0008: Class: 04 Multimedia, Subclass: 01 Audio, Interface: 00, Revision: 10 0x000c: BIST: 00, Header Type: 00, Latency Timer: 20, Cache Line Size: 10 0x0010: BAR mem 64bit addr: 0x00000000a5518000/0x00004000 0x0018: BAR empty (00000000) 0x001c: BAR empty (00000000) 0x0020: BAR mem 64bit addr: 0x00000000a5200000/0x00100000 0x0028: Cardbus CIS: 00000000 0x002c: Subsystem Vendor ID: 1028 Product ID: 0949 0x0030: Expansion ROM Base Address: 00000000 0x0038: 00000000 0x003c: Interrupt Pin: 01 Line: ff Min Gnt: 00 Max Lat: 00 0x0050: Capability 0x01: Power Management State: D0 0x0080: Capability 0x09: Vendor Specific 0x0060: Capability 0x05: Message Signalled Interrupts (MSI) Enabled: yes I can provide any other information or test any patch.