From nobody Wed Jun 29 13:51:42 2022 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3A6B2866191 for ; Wed, 29 Jun 2022 13:51:52 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LY2vC30mvz4bST for ; Wed, 29 Jun 2022 13:51:51 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qv1-xf30.google.com with SMTP id 2so9902121qvc.0 for ; Wed, 29 Jun 2022 06:51:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ftrzZr+cWRbtDt5+TcTePVDSZxsyT9wFJl1YfyC96nQ=; b=OlFRrQp3HSjpKIpSQ2W0FIYz6aclf7k56Sy6I+NZ9fNOll+18HKTV8CVf8PcrCq/xX P1rpaiKvv8vabhm5M3+LKz8JszHeF3CO4S8SPsdsA7nhaD1smu2PZJ3HxaLNtWtpPpm/ SkE7TZktBHYKZBwIqxqh4/vNwq96oJ01NVJUvocSSgVTKi5+f8/wSLgQorfjFiBt+Qcu nRqMUW9rlaSWDh49+wxBeeMgU5lIZjuWMXGT4X8cl2Ijwlf3Ip9/x4Ovvw7Ia6wfQDLo 8DrJBlR9j4X7e4Y6MuPQIFXcbVWatb4ngvf+cXi6pzuzWoRUHPCaqhJsWDYV82iNvEKC g4tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=ftrzZr+cWRbtDt5+TcTePVDSZxsyT9wFJl1YfyC96nQ=; b=KeEG1vkPN9siSeEcCiRrIOGQn/wok0NTM5qU4nq6gwat5hOYiiD4gLYS60GQ9yZR6T SYxnYzgxHN50TpNuYQzPbiME0Bimf6Yu7syaS5NJD8ACxysJdmPnmQz3Vj59flHZ0tM3 sh8GWYxBMDTlJcieAIIzq1fOV28rFLSNzbN6lNpYegRK+bsqDkD3Vc7ic/FzGKAnA2st 7UPnatK7dd6p/mTd1r2Gnfn8UclAg+rJ/8vpoMwBEnKyowoVts3GTFQTe851wekZXiTc DOZ1OtO2s/02/djPE+eycvK323ZXhgurc9u+ty/8B7xjE87LwchUd0Vt8J4rdsBFihj8 4oDg== X-Gm-Message-State: AJIora8Z+O/IXUNvJZg2/U+WRgdJCVDpqEfKKiHzTP3/D9KCKUoV0UTv yU8FV4KuU7VKITGDiwIPiWniodNT8Sg= X-Google-Smtp-Source: AGRyM1tkceUZdK9to56Fapa3lbdLmvJbi0GljhpXSWfYgCEgbM4YYwbfDqBggvon6vwgvzsw5Pkx8w== X-Received: by 2002:ac8:5b88:0:b0:305:340b:6f14 with SMTP id a8-20020ac85b88000000b00305340b6f14mr2495933qta.344.1656510705506; Wed, 29 Jun 2022 06:51:45 -0700 (PDT) Received: from nuc (198-84-189-58.cpe.teksavvy.com. [198.84.189.58]) by smtp.gmail.com with ESMTPSA id bm9-20020a05620a198900b006a73ad95d40sm13018434qkb.55.2022.06.29.06.51.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jun 2022 06:51:44 -0700 (PDT) Date: Wed, 29 Jun 2022 09:51:42 -0400 From: Mark Johnston To: Jake Freeland Cc: freebsd-hackers@freebsd.org Subject: Re: LinuxKPI debugfs Port Message-ID: References: List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4LY2vC30mvz4bST X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=OlFRrQp3; dmarc=none; spf=pass (mx1.freebsd.org: domain of markjdb@gmail.com designates 2607:f8b0:4864:20::f30 as permitted sender) smtp.mailfrom=markjdb@gmail.com X-Spamd-Result: default: False [-0.99 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.71)[0.709]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f30:from]; MLMMJ_DEST(0.00)[freebsd-hackers]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On Tue, Jun 28, 2022 at 05:11:49PM -0500, Jake Freeland wrote: > Mark, > > Your reply clears up a lot. I just forked drm-kmod, applied your Makefile > patch, and added DEBUGFS to kconfig.mk. I am extremely excited to be > back on track, especially now that I know how to proceed. > > Just to clarify, my job is to extend the current debugfs implementation > (debugfs.h and lindebugfs.c) to include the missing functionality required > for i915kms to compile and run successfully? I would ask manu@, but > he has not responded to me in weeks. I think so, yes. That's the shortest path to getting i915's debugfs files available for consumption by the test suite. > I greatly appreciate your explanations about LinuxKPI and lindebugfs. > Extensive documentation is what draws me to FreeBSD, but I struggled > to find any information regarding lindebugfs or LinuxKPI. I plan to write > some of my own when I am done with this project to help others in my > position :). That'd be welcome. This area is definitely under-documented, though it can be difficult to write useful documentation targeting kernel developers. A man page for lindebugfs would be a great start, as would an introductory page for the linuxkpi.