From owner-freebsd-hackers@freebsd.org Tue Jun 5 22:27:45 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A9CB1FF9C5D for ; Tue, 5 Jun 2018 22:27:45 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x232.google.com (mail-it0-x232.google.com [IPv6:2607:f8b0:4001:c0b::232]) (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 E42F17860D for ; Tue, 5 Jun 2018 22:27:43 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x232.google.com with SMTP id e20-v6so5503981itc.1 for ; Tue, 05 Jun 2018 15:27:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lkLkYA+BRU55agv5CikEwwt3iOqUzDHz2wJJF9GAgKA=; b=a1EOxgg5Igf2H8vG9p9CkXjOu+q3DQl7V1jsT3uAlGTMNP9wnfZ1G+kvoU3mL81iT+ jpum2XIDpMEdUayDTdJExNWZaq6Bb/6MaHH9NMHfZNreX+EtLztRQ/10scdwSp91N8vu zNZLHAs4S5FkrlIgwSDWamZyrDTuHULxtmUSihisCeU1qAlfdKs/Tei7mIf6qO+KTWvH fMVE+ALvIi6xKv01pfXXwjlCFj6h8UL1ZXMe/5cpVRdtjccr9fcJswH5c9Z6A6NeSh3T sNd4JkBc4Ly3lntLEsZ1LtbvrDkIZy4jpz43CtzNAdG59s3XdqzYE2BtFrQ+cLLz6dq8 1TQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lkLkYA+BRU55agv5CikEwwt3iOqUzDHz2wJJF9GAgKA=; b=UBtQBkc9x7rJU8m7y2QLRxzIt62oUoJM69lJ5otDHnWFI0oOhRBi9tY0cN64zU61kG /HRkysS+/Li4ZbdO1roisFiuwjSnRYEvKzN/PLtaadIFeYKU1P/o9b4RwfptaDTp75mG eipYotrSAnEFXeVP37xRbfIrNhUP17+ysCDWLXvvYWgzTzR/tsSLPnyXYLpRRJ0MALCn 32alixrMLPVNoRkxepqoj2slurl6uEJXO4lc7dNSCWZuz17GLO1Hfl6LV497lQhAkNih MJckW5ziUqNqt9s4ZkFRPl9jlLthVSx7B2nqF6CQWwZcHe/AgqgkfFgE1FIelxRellXH Kd3A== X-Gm-Message-State: APt69E1pZgCMt0Fut+R4CdAdEg+IxTVpGCAJeCos+7B/DfUIhQWu2Hbd NgzZCv6QQxthsWyltmiAdUYdV6asuRtPKCSbnppxxQ== X-Google-Smtp-Source: ADUXVKKOxS6bXTq3ad6phubMHk0aqaAa0gC8alhF+PAwMrqrrn8gITcfCbEJuZW/MKs1B8/eSGs9jgwf1HoJyIKhFkU= X-Received: by 2002:a24:7c8d:: with SMTP id a135-v6mr104080itd.73.1528237662235; Tue, 05 Jun 2018 15:27:42 -0700 (PDT) MIME-Version: 1.0 References: <32229.1528222775@critter.freebsd.dk> <33255.1528231786@critter.freebsd.dk> In-Reply-To: <33255.1528231786@critter.freebsd.dk> From: Warner Losh Date: Tue, 5 Jun 2018 16:27:30 -0600 Message-ID: Subject: Re: cy PCI driver - possible device id's To: Poul-Henning Kamp Cc: "Conrad E. Meyer" , FreeBSD Hackers Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.26 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2018 22:27:45 -0000 On Tue, Jun 5, 2018, 4:57 PM Poul-Henning Kamp wrote: > -------- > In message < > CAG6CVpXKGrN_Ee2tBwyLDNgLL9CFYPhsjn9QLbOBT_zaf55esg@mail.gmail.com>, > Conrad Meyer writes: > > >We already have exactly this =E2=80=94 a precise convention > >("MODULE_PNP_INFO") and tool ("kldxref" for extracting the data, and > >"devmatch" for suggesting matches), initiated by Warner. This work > >has been ongoing, in stops and starts, for years. Lakhan is > >converting non-compliant drivers to the convention. > > Yes, and that's good and great, but it only works if you have > the modules installed on the machine to examine. > > For scenarios like NanoBSD it would be nice if devmatch had a > built-in "fall-back" table (created at compile time) to suggest > modules not present in the local filesystem. > Devmatch can operate on an arbitrary loader.hints file. Just do a GENERIC buildkernel, install it somewhere. Loader.hints gets created. Copy that file to the target system and run devmatch... Warner -- > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 > phk@FreeBSD.ORG | TCP/IP since RFC 956 > FreeBSD committer | BSD since 4.3-tahoe > Never attribute to malice what can adequately be explained by incompetence. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >