Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1280018pxb; Mon, 11 Oct 2021 02:27:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVHPZFivpRAtK/u8RsDQYaAGEvsBnAfE5Z13Fw5FJry4xe6L1c0KG2XEyAt+3qCKZ3mUow X-Received: by 2002:a17:90b:3b8e:: with SMTP id pc14mr29714208pjb.180.1633944451497; Mon, 11 Oct 2021 02:27:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633944451; cv=none; d=google.com; s=arc-20160816; b=qylAVAlp1s2pr8F6/gwvmuG3UDRgJ1dyb/dSDaj1AJGvGmYV0xCoecxa2LQKRggQfr S57GNdVAEPaOpbdgo4yecvDQfaR08IqJQk7p1TpuPRJYVfCEGLhxrOJ8gCIVv2AAKqsp SqXkWCKVR3dPToURKbFj937h6hqSlOqSEplv/CjTGOAOL4JmPIOsDZbV3plfaYew3ttg +gWCrN1FvtBav5VNZRrpUQadbntUS83h/6rszEZEr2Ed0edHmTbKN7aOo3XWcAYbCoYq 9YGZQrLEzpSh4u3HZqJSKZmluGcrhVz3EmcykTEEW/Y8q/KHPp8AL+JsfOZrrgGxpYcf hA9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dmarc-filter:sender :dkim-signature; bh=QydTH4waEaVfOlxGLPlSurpSmfn0ZSIvUJE3zRI+o74=; b=o7jnYx8W/JRKgvt7hr6MiWFAemLe/rsXH6+OZZQckRsrSe5pIB3okgzq5by5grp9dB uLuYBDzKbze4bdYpj/3t2rny1HKnYrEwMfPh2NOyDM6slkP7EFPtvcXqKALlOpEO+y/6 OskId6XC57OGnv3lXlHbDnX07lDovS3dDr7nyJjhcizhLRPIxs1UHq3DkyRMw6ov/nvR 2h4ZAKTbjEOAs/gMaB/1dqC2yjNzZ4dKa+dmclKnUjgQgI0q8XP0EtZlL/GbfRVkVetP c1roUOcCsef0aeR3a+JwyYmcgl6CjztvhpTMVBBtkiPdBvdVPW1LZ5T6KGoqmRL0r29W b+9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=s5DYRsGn; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w17si10177109ply.116.2021.10.11.02.27.15; Mon, 11 Oct 2021 02:27:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=s5DYRsGn; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235517AbhJKJ0h (ORCPT + 76 others); Mon, 11 Oct 2021 05:26:37 -0400 Received: from so254-9.mailgun.net ([198.61.254.9]:54720 "EHLO so254-9.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235476AbhJKJ0Q (ORCPT ); Mon, 11 Oct 2021 05:26:16 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1633944256; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=QydTH4waEaVfOlxGLPlSurpSmfn0ZSIvUJE3zRI+o74=; b=s5DYRsGnphhLv6rqb891dLXQxRT2nMpWhZ8LXazaXXMM6lImiTGjPOswtpbffqrudIYLO4Oz /kS9OO1Bw/JhRlc7LBxlYXaRU5ahUzFJGE6+sw0tS+6T3s1RPXqHQow39mbwxArz114bzfyH fmIjI57Qx9JTT7oEekd5XM4Nk6s= X-Mailgun-Sending-Ip: 198.61.254.9 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n03.prod.us-east-1.postgun.com with SMTP id 616402b1a45ca75307bf4c7a (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 11 Oct 2021 09:24:01 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 9D832C43618; Mon, 11 Oct 2021 09:24:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from tykki (tynnyri.adurom.net [51.15.11.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 282FAC4338F; Mon, 11 Oct 2021 09:23:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 282FAC4338F Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=codeaurora.org From: Kalle Valo To: Brian Norris Cc: Ping-Ke Shih , tony0620emma@gmail.com, linux-wireless@vger.kernel.org, steventing@realtek.com, David Miller , Jakub Kicinski Subject: wireless: guidelines for user space interfaces References: <20210422030413.9738-1-pkshih@realtek.com> <20210422030413.9738-2-pkshih@realtek.com> Date: Mon, 11 Oct 2021 12:23:54 +0300 In-Reply-To: (Brian Norris's message of "Fri, 11 Jun 2021 15:57:19 -0700") Message-ID: <87mtnf52z9.fsf_-_@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org (changing subject, was "Re: [PATCH v2 2/2] rtw88: add debugfs to force lowest basic rate") Brian Norris writes: > BTW, if we have clear guidelines on debugfs, module parameters, etc., > maybe those should be going on the wiki? I know this came up before: > > https://lore.kernel.org/linux-wireless/87d09u7tyr.fsf@codeaurora.org/ > > At this point, I'm willing to write such guidelines, if I get an ack > from the relevant folks (I guess that's just Kalle?). It probably > belongs somewhere in this tree: > > https://wireless.wiki.kernel.org/en/developers/documentation > > similar to this: > https://wireless.wiki.kernel.org/en/developers/documentation/nl80211#vendor-specific_api > except it's not really an nl80211 thing. Suggestions welcome. I think this is a very good idea. Having general guidelines for wireless drivers using user space interfaces would help both people submitting patches and also people like me reviewing the patches. We should try to get an ack for the guidelines at least from Johannes, but I would prefer also involve Jakub and Dave (CCed) as they might have some input from the network subsystem point of view. Just to get this started, here's a draft list I came up of different user space interfaces upstream wireless drivers are using: * generic nl80211 (excluding testmode and vendor commands) * nl80211 testmode commands * nl80211 vendor commands * sysfs[1] * debugfs * relayfs * configfs[1] * module parameters * thermal subsystem * firmware_request() I'm not saying that we need to document all these in the first version, I'm just trying to come up a comprehensive overview how wireless drivers interact with the user space. And I'm sure I missed something. so please do fill in. > Side note: it could really use some cleanup -- like this page: > https://wireless.wiki.kernel.org/en/developers/process Heh, that is old information. TBH in practise I maintain only the submittingpatches page (link in the signature), other pages I rarely touch. And naturally I also look after ath10k and ath11k pages. Any volunteers to clean that up? [1] Actually I don't know if there are any valid use cases for sysfs and configfs at the moment, but I'll include them in the list for completeness. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches