Em dom., 3 de abr. de 2022 às 10:19, Jonathan Gray <j...@jsg.id.au> escreveu: > > On Sun, Apr 03, 2022 at 09:56:09AM -0400, Adriano Barbosa wrote: > > Em dom., 3 de abr. de 2022 às 09:38, Jonathan Gray <j...@jsg.id.au> > > escreveu: > > > > > > On Sun, Apr 03, 2022 at 09:22:24AM -0400, Adriano Barbosa wrote: > > > > 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/ > > > > > > To enable audio recording you will need to change the sysctl value. > > > # sysctl kern.audio.record=1 > > > this can be set at boot by adding kern.audio.record=1 to /etc/sysctl.conf > > > > > > > Sorry, I should have been more explicit about recording not working. I > > meant the audio input is not working. This is my mixerctl output: > > inputs.dac-2:3=126,126 > > inputs.dac-0:1=126,126 > > outputs.spkr_source=dac-2:3 > > outputs.spkr_mute=off > > outputs.spkr_eapd=on > > outputs.hp_source=dac-0:1 > > outputs.hp_mute=off > > outputs.hp_boost=off > > outputs.hp_eapd=on > > outputs.hp_sense=unplugged > > outputs.spkr_muters=hp > > outputs.master=126,126 > > outputs.master.mute=off > > outputs.master.slaves=dac-2:3,dac-0:1,spkr,hp > > record.enable=sysctl > > > > > > > For the dwiic/touchpad problem, drop or revert the previous diff and try > > > > > > 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 13:26:34 -0000 > > > @@ -190,7 +190,8 @@ dwiic_pci_attach(struct device *parent, > > > #if NACPI > 0 > > > /* fetch timing parameters from ACPI, if possible */ > > > node = acpi_pci_match(self, &sc->sc_paa); > > > - if (node != NULL) { > > > +// if (node != NULL) { > > > + if (0) { > > > sc->sc_devnode = node; > > > > > > dwiic_acpi_get_params(sc, "SSCN", &sc->ss_hcnt, > > > &sc->ss_lcnt, > > > > Compiling this patch right now. Is there a way to avoid compiling all > > the stuff every time? > > In my case, each test takes 60-70 minutes compiling base system. > > yes > > cd /sys/arch/amd64/compile/GENERIC.MP > make obj > make config > make > make install > > then reboot
Much less painful! This is the dmesg after last patch: 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 Touchpad still not working.