> On 14 Jun 2019, at 02:38, Tristan <tris...@delsolit.nl> wrote:
> 
> 
> 
>> On Jun 14, 2019, at 12:00 AM, Tristan <tris...@delsolit.nl> wrote:
>> 
>> 
>> 
>>> On 13 Jun 2019, at 23:47, Bryan Steele <bry...@gmail.com> wrote:
>>> 
>>> On Thu, Jun 13, 2019 at 11:38:24PM +0200, Tristan wrote:
>>>> 
>>>> 
>>>>> On 13 Jun 2019, at 22:34, Tristan <tris...@delsolit.nl> wrote:
>>>>> 
>>>>> 
>>>>> 
>>>>>> On 13 Jun 2019, at 22:25, Bryan Steele <bry...@gmail.com> wrote:
>>>>>> 
>>>>>> On Thu, Jun 13, 2019 at 08:39:48PM +0200, Tristan wrote:
>>>>>>> Hi there,
>>>>>>> 
>>>>>>> I got a new lenovo v330-14 it has an AMD Ryzen 5 2500U and Radeon RX 
>>>>>>> Vega 8
>>>>>>> and so was looking forward to using OpenBSD on this one. I'm currently 
>>>>>>> running a
>>>>>>> snapshot I grabbed today. To get the screen working I had to set 
>>>>>>> machdep.allowaperture=2
>>>>>>> unfortunately, but it works now and great as well. Video seems smooth. 
>>>>>>> Audio works as well
>>>>>> 
>>>>>> You should avoid doing that -- see recent mailing lists post from Mark
>>>>>> Kettenis.
>>>>>> 
>>>>>> https://marc.info/?l=openbsd-misc&m=156029398905090&w=2
>>>>>> 
>>>>>> For Vega graphics you need to recompile your kernel with the amdgpu
>>>>>> driver lines uncommented, alternatively reinstall in UEFI mode to get the
>>>>>> efifb(4) driver instead. This is probably better as amdgpu support is
>>>>>> still a WIP.
>>>>>> 
> This worked really good. Now using efifb without the machdep setting. So 
> thanks for that pointer for sure.
>>>>> 
>>>>> OK yes, I remember seeing something about it. Will give that a try. Much 
>>>>> better then opening up :)
>>>>> 
>>>>> 
>>>>>>> but the touchpad is not working at all. Wireless card does not work 
>>>>>>> either, but using the 
>>>>>>> ethernet port on it for now until I get an USB dongle for it.
>>>>>>> 
>>>>>>> wsconsctl | grep mouse gives me only:
>>>>>>> mouse.type=ps2
>>>>>>> 
>>>>>>> In the dmesg output I can see only:
>>>>>>> wsmouse0 at pms0 mux 0
>>>>>> 
>>>>>> Indeed, there's no pms(4) compatible touchpad on your machine. :-(
>>>>>> 
>>>>>>> "AMDI0010" at acpi0 not configured
>>>>>>> "SYNA2B3F" at acpi0 not configured
>>>>>> 
>>>>>> And instead requires a driver to attach to the I2C HID controler. AMD's
>>>>>> implementation seems to be somewhat compatible with dwiic(4) written by
>>>>>> jcs@, however interrupts are not working-- hangs the machine. It does
>>>>>> work if polling mode is forced.
>>>>>> 
>>>>>> This diff made the touchscreen and touchpad work be detected and mostly
>>>>>> work on my Huawei MateBook D (AMD), however with the touchpad it seems
>>>>>> to be break Tap-To-Drag. I don't know if this is a side effect of the
>>>>>> drivers polling, unlike the pms(4) support-- which is working on that
>>>>>> machine. We have no way to prefer one driver over other, which is why
>>>>>> I haven't sent this diff yet.
>>>>>> 
>>>>>> Let me know if it works at all for you.
>>>>> 
>>>>> Much appreciated, will try this and report the outcome
>>>> 
>>>> Applying this patch gives me the following:
>>>> 
>>>> Hmm...  Looks like a unified diff to me...
>>>> The text leading up to this was:
>>>> --------------------------
>>>> |Index: dwiic_acpi.c
>>>> |===================================================================
>>>> |RCS file: /cvs/src/sys/dev/acpi/dwiic_acpi.c,v
>>>> |retrieving revision 1.8
>>>> |diff -u -p -u -r1.8 dwiic_acpi.c
>>>> |--- sys/dev/acpi/dwiic_acpi.c    1 Jul 2018 11:37:11 -0000    1.8
>>>> |+++ sys/dev/acpi/dwiic_acpi.c    5 Jun 2019 00:25:29 -0000
>>>> --------------------------
>>>> Patching file dwiic_acpi.c using Plan A...
>>>> patch: **** malformed patch at line 9: };
>>> 
>>> Your mail client may have mangled it-- can you try grabbing it
>>> from marc.info? If not, I'll send a direct link.
>>> 
>>> https://marc.info/?l=openbsd-misc&m=156045760827816&q=raw
>>> 
>> 
>> Yes sorry about that false report :) my mistake.
>> 
>> Applied and recompiling at the moment. Will report back soon.
>> 
> This patch gave some life to my touchpad. Unfortunately its more like a slow 
> stuttering zombie :) 
> But yes it has some movement now, but just slow and then jumping forward. The 
> touchpad touch click works as well. 
> Cannot provide any output at the moment, but will send over the dmesg and 
> wsconctl output tomorrow. In case you want to see if there are any other 
> things we could try:
> 
> Thanks again for the help.
> 

Find the output of wsconsctl | grep mouse
wsconsctl: Use explicit arg to view keyboard.map.
mouse.type=usb
mouse.rawmode=1
mouse.scale=0,0,0,0,0,0,0
mouse1.type=ps2

And my dmesg

OpenBSD 6.5-current (CUSTOM) #0: Fri Jun 14 01:44:08 CEST 2019
    tris...@etherios-amd.tristan.itaas.etheria.nl:/sys/arch/amd64/compile/CUSTOM
real mem = 6322868224 (6029MB)
avail mem = 6121222144 (5837MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.1 @ 0x4c44d000 (50 entries)
bios0: vendor LENOVO version "3ECN35WW(V3.02)" date 11/24/2018
bios0: LENOVO 81B1
acpi0 at bios0: ACPI 5.0Undefined scope: \\_SB_.PCI0.GPP2.BCM5

acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP UEFI MSDM SSDT ASF! BOOT HPET APIC MCFG SLIC WSMT SSDT 
CRAT CDIT UEFI VFCT SSDT IVRS SSDT SSDT SSDT SSDT SSDT SSDT FPDT BGRT
acpi0: wakeup devices GPP0(S4) GPP1(S4) GPP2(S4) GPP3(S4) GPP4(S4) GPP5(S4) 
GPP6(S4) XHC0(S3) XHC1(S3) GP18(S4) PWRB(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpihpet0 at acpi0: 14318180 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx, 1996.61 MHz, 17-11-00
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA,IBPB,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu0: 64KB 64b/line 4-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 
8-way L2 cache, 4MB 64b/line 16-way L3 cache
cpu0: ITLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 24MHz
cpu0: mwait min=64, max=64, C-substates=1.1, IBE
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 33 pa 0xfec00000, version 21, 24 pins, can't remap
ioapic1 at mainbus0: apid 34 pa 0xfec01000, version 21, 32 pins, can't remap
acpimcfg0 at acpi0
acpimcfg0: addr 0xf8000000, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (GPP0)
acpiprt2 at acpi0: bus -1 (GPP1)
acpiprt3 at acpi0: bus -1 (GPP2)
acpiprt4 at acpi0: bus -1 (GPP3)
acpiprt5 at acpi0: bus -1 (GPP4)
acpiprt6 at acpi0: bus 1 (GPP5)
acpiprt7 at acpi0: bus 2 (GPP6)
acpiprt8 at acpi0: bus 3 (GP17)
acpiprt9 at acpi0: bus 4 (GP18)
acpiec0 at acpi0
acpicpu0 at acpi0: C2(0@400 io@0x414), C1(0@1 mwait), PSS
acpipwrres0 at acpi0: P0ST, resource for SATA
acpipwrres1 at acpi0: P3ST, resource for SATA
acpipci0 at acpi0 PCI0: 0x00000010 0x00000011 0x00000000
acpicmos0 at acpi0
"VPC2004" at acpi0 not configured
acpibat0 at acpi0: BAT1 model "3549487633295421772" serial 10821 type Li-Ion 
oem "3549453542849793363"
acpibat1 at acpi0: BAT2 not present
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PWRB
"AMDI0030" at acpi0 not configured
dwiic0 at acpi0 I2CD addr 0xfedc5000/0x1000
iic0 at dwiic0
ihidev0 at iic0 addr 0x2c (polling), vendor 0x6cb product 0x8252, SYNA2B3F
ihidev0: 15 report ids
ims0 at ihidev0 reportid 1: 2 buttons
wsmouse0 at ims0 mux 0
hid at ihidev0 reportid 9 not configured
hid at ihidev0 reportid 10 not configured
hid at ihidev0 reportid 11 not configured
hid at ihidev0 reportid 12 not configured
hid at ihidev0 reportid 15 not configured
acpivideo0 at acpi0: VGA_
acpivideo1 at acpi0: VGA_
acpivideo2 at acpi0: VGA_
cpu0: 1996 MHz: speeds: 2000 1700 1600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD AMD64 17h/1xh Root Complex" rev 0x00
"AMD AMD64 17h/1xh IOMMU" rev 0x00 at pci0 dev 0 function 2 not configured
pchb1 at pci0 dev 1 function 0 "AMD AMD64 17h PCIE" rev 0x00
ppb0 at pci0 dev 1 function 6 "AMD AMD64 17h/1xh PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
re0 at pci1 dev 0 function 0 "Realtek 8168" rev 0x15: RTL8168H/8111H (0x5400), 
msi, address 98:29:a6:6f:84:b4
rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0
ppb1 at pci0 dev 1 function 7 "AMD AMD64 17h/1xh PCIE" rev 0x00: msi
pci2 at ppb1 bus 2
vendor "Atheros", unknown product 0x0042 (class network subclass miscellaneous, 
rev 0x31) at pci2 dev 0 function 0 not configured
pchb2 at pci0 dev 8 function 0 "AMD AMD64 17h PCIE" rev 0x00
ppb2 at pci0 dev 8 function 1 "AMD AMD64 17h/1xh PCIE" rev 0x00
pci3 at ppb2 bus 3
"ATI Radeon Vega" rev 0xc4 at pci3 dev 0 function 0 not configured
azalia0 at pci3 dev 0 function 1 "ATI Radeon Vega HD Audio" rev 0x00: msi
azalia0: no supported codecs
ccp0 at pci3 dev 0 function 2 "AMD AMD64 17h/1xh Crypto" rev 0x00
xhci0 at pci3 dev 0 function 3 "AMD AMD64 17h/1xh xHCI" rev 0x00: msi, xHCI 1.10
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 
addr 1
xhci1 at pci3 dev 0 function 4 "AMD AMD64 17h/1xh xHCI" rev 0x00: msi, xHCI 1.10
usb1 at xhci1: USB revision 3.0
uhub1 at usb1 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 
addr 1
azalia1 at pci3 dev 0 function 6 "AMD AMD64 17h/1xh HD Audio" rev 0x00: apic 34 
int 30
azalia1: codecs: Conexant/0x510f
audio0 at azalia1
ppb3 at pci0 dev 8 function 2 "AMD AMD64 17h/1xh PCIE" rev 0x00
pci4 at ppb3 bus 4
ahci0 at pci4 dev 0 function 0 "AMD FCH AHCI" rev 0x61: msi, AHCI 1.3.1
ahci0: port 0: 6.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, SAMSUNG MZ7LN256, MVT0> SCSI3 0/direct 
fixed naa.5002538d42f7e15f
sd0: 244198MB, 512 bytes/sector, 500118192 sectors, thin
"AMD FCH SMBus" rev 0x61 at pci0 dev 20 function 0 not configured
pcib0 at pci0 dev 20 function 3 "AMD FCH LPC" rev 0x51
pchb3 at pci0 dev 24 function 0 "AMD AMD64 17h/1xh Data Fabric" rev 0x00
pchb4 at pci0 dev 24 function 1 "AMD AMD64 17h/1xh Data Fabric" rev 0x00
pchb5 at pci0 dev 24 function 2 "AMD AMD64 17h/1xh Data Fabric" rev 0x00
pchb6 at pci0 dev 24 function 3 "AMD AMD64 17h/1xh Data Fabric" rev 0x00
pchb7 at pci0 dev 24 function 4 "AMD AMD64 17h/1xh Data Fabric" rev 0x00
pchb8 at pci0 dev 24 function 5 "AMD AMD64 17h/1xh Data Fabric" rev 0x00
pchb9 at pci0 dev 24 function 6 "AMD AMD64 17h/1xh Data Fabric" rev 0x00
pchb10 at pci0 dev 24 function 7 "AMD AMD64 17h/1xh Data Fabric" rev 0x00
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
wsmouse1 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: SVM/RVI
efifb0 at mainbus0: 1920x1080, 32bpp
wsdisplay0 at efifb0 mux 1: console (std, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (std, vt100 emulation)
uvideo0 at uhub0 port 1 configuration 1 interface 0 "Chicony Electronics 
Co.,Ltd. Integrated Camera" rev 2.01/0.27 addr 2
video0 at uvideo0
urtwn0 at uhub0 port 3 configuration 1 interface 0 "Realtek 802.11n NIC" rev 
2.00/0.00 addr 3
urtwn0: MAC/BB RTL8188EU, RF 6052 1T1R, address 50:3e:aa:e2:00:00
uhub2 at uhub1 port 2 configuration 1 interface 0 "Genesys Logic USB2.0 Hub" 
rev 2.00/88.32 addr 2
ugen0 at uhub2 port 2 "Atheros Communications product 0xe500" rev 2.01/0.01 
addr 3
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (cfa379aacd19cf3f.a) swap on sd0b dump on sd0b

Reply via email to