From owner-svn-src-head@freebsd.org Sat Dec 23 20:32:46 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 29FDEE9D2CA; Sat, 23 Dec 2017 20:32:46 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-it0-f54.google.com (mail-it0-f54.google.com [209.85.214.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 77DFA741D6; Sat, 23 Dec 2017 20:32:45 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-it0-f54.google.com with SMTP id t1so17596913ite.5; Sat, 23 Dec 2017 12:32:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=iDbhSd5VRxxx4f9SC5Y8IBr9uw0FgsW+yzP3yEcBJuU=; b=jUj2Iav/qebe1EXYeYh0AAEeGTj6dIFXufnqlp65thTzzqeSes9BI1lSQzxkfqmX1N 2wN0ayHXLHDXCTZWI3tHE9v12WTT1xQMPp9T6sDiDHhbRHj+xxcCigjLKAT6PpiIe3qC EhUm7pPfoErjBEQ3zi4KcjTR7lDj/DhH4LqgT65s/jhQxtiioAad1rbQ99wqr7BZ22Q4 rdTRWqDpy5oZcWWXYtWj2/1973e/7SSvISJ1B4vzZIXYctdze2iz+KraX5dlc+tl705k PV4Jz22U4gtxzy/rFJokkpr51oVwA94rZpfxYXIOiYPu+hxc4hRcQD4heIBcTlLX20C6 AgPw== X-Gm-Message-State: AKGB3mJGmTp+zB8jApBgyWcNu4LZU3Ixwb4rbOKVAPHU4gCS7Q5HPRRk UWD1MT9pr9iB/k/nBmRwDTTRbYWV X-Google-Smtp-Source: ACJfBovQmISwGyXD48CHHpMICDna40QhqeYhxgeaZ8ZA6q+7slqG3vLulQCPz4tZjUQlUlcvNJ6Vdw== X-Received: by 10.36.176.9 with SMTP id d9mr24407278itf.125.1514060818844; Sat, 23 Dec 2017 12:26:58 -0800 (PST) Received: from mail-io0-f175.google.com (mail-io0-f175.google.com. [209.85.223.175]) by smtp.gmail.com with ESMTPSA id l83sm9422486ioi.79.2017.12.23.12.26.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Dec 2017 12:26:58 -0800 (PST) Received: by mail-io0-f175.google.com with SMTP id e204so27766586iof.12; Sat, 23 Dec 2017 12:26:58 -0800 (PST) X-Received: by 10.107.181.147 with SMTP id e141mr23056800iof.117.1514060818389; Sat, 23 Dec 2017 12:26:58 -0800 (PST) MIME-Version: 1.0 Reply-To: cem@freebsd.org Received: by 10.2.15.193 with HTTP; Sat, 23 Dec 2017 12:26:57 -0800 (PST) In-Reply-To: <201712222044.vBMKiLPd033739@repo.freebsd.org> References: <201712222044.vBMKiLPd033739@repo.freebsd.org> From: Conrad Meyer Date: Sat, 23 Dec 2017 12:26:57 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r327094 - in head/sys/dev: ahci usb/controller To: Alexander Motin Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Dec 2017 20:32:46 -0000 I see similar devices on my AMD TR + X399 system that should be added as well. I don't have time to reboot/test a patch right now, but here are the device ids: pci1 ahci0 pnpinfo vendor=0x1022 device=0x43b6 subvendor=0x1b21 subdevice=0x1062 class=0x010601 at slot=0 function=1 dbsf=pci0:1:0:1 handle=\_SB_.PCI0.D0A0.P101 xhci0 pnpinfo vendor=0x1022 device=0x43ba subvendor=0x1b21 subdevice=0x1142 class=0x0c0330 at slot=0 function=0 dbsf=pci0:1:0:0 handle=\_SB_.PCI0.D0A0.PTXH (0x43b61022 for ahci0, 0x43ba1022 for xhci0.) If no one else commits them, I'll get to it eventually. Best, Conrad On Fri, Dec 22, 2017 at 12:44 PM, Alexander Motin wrote: > Author: mav > Date: Fri Dec 22 20:44:21 2017 > New Revision: 327094 > URL: https://svnweb.freebsd.org/changeset/base/327094 > > Log: > Add AHCI/XHCI device IDs found on AMD Ryzen+B350 system. > > MFC after: 2 weeks > > Modified: > head/sys/dev/ahci/ahci_pci.c > head/sys/dev/usb/controller/xhci_pci.c > > Modified: head/sys/dev/ahci/ahci_pci.c > ============================================================================== > --- head/sys/dev/ahci/ahci_pci.c Fri Dec 22 19:10:19 2017 (r327093) > +++ head/sys/dev/ahci/ahci_pci.c Fri Dec 22 20:44:21 2017 (r327094) > @@ -68,6 +68,7 @@ static const struct { > AHCI_Q_ATI_PMP_BUG | AHCI_Q_1MSI}, > /* Not sure SB8x0/SB9x0 needs this quirk. Be conservative though */ > {0x43951002, 0x00, "AMD SB8x0/SB9x0", AHCI_Q_ATI_PMP_BUG}, > + {0x43b71022, 0x00, "AMD 300 Series", 0}, > {0x78001022, 0x00, "AMD Hudson-2", 0}, > {0x78011022, 0x00, "AMD Hudson-2", 0}, > {0x78021022, 0x00, "AMD Hudson-2", 0}, > > Modified: head/sys/dev/usb/controller/xhci_pci.c > ============================================================================== > --- head/sys/dev/usb/controller/xhci_pci.c Fri Dec 22 19:10:19 2017 (r327093) > +++ head/sys/dev/usb/controller/xhci_pci.c Fri Dec 22 20:44:21 2017 (r327094) > @@ -97,6 +97,10 @@ xhci_pci_match(device_t self) > uint32_t device_id = pci_get_devid(self); > > switch (device_id) { > + case 0x145c1022: > + return ("AMD KERNCZ USB 3.0 controller"); > + case 0x43bb1022: > + return ("AMD 300 Series USB 3.0 controller"); > case 0x78141022: > return ("AMD FCH USB 3.0 controller"); > >