Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1530139pxb; Wed, 2 Feb 2022 07:04:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxwndF63Ex5kmIpD3v9d4FDglOF44zJccQHk6EDgP9Pgos4z0s6Oa7QPoiTmEFpANlWhlI X-Received: by 2002:a17:907:3e8a:: with SMTP id hs10mr25578445ejc.112.1643814257754; Wed, 02 Feb 2022 07:04:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643814257; cv=none; d=google.com; s=arc-20160816; b=WFz5XI+fHYBtG5Ds5TtOVIp5UL7/z1Wn8SVa6A/7o5XgFpQ+rE6Hq06T0UYJjFET/O RGhdJlEBioKL7Qnh2TII+Ai4Vhx8MVvbKU7TS3R7H/hdptcMEa960Asp+xquvcj4XWKk pkpfXYl17OpwQ5VHrb6khZkKjJSzB+ZJXWiCmLSME23Y0FM4EDGL4Vi14S39v5IOvECv cussJfPFg3PNcvwUNvwHCyZyR0kuIG9CQVUptKTkR4kAv1/gGaRz489KE7ISxGgSdi1D wFkfqhnhXd6ZEf1CMKjeMS6DokC8ce3+EQ0XTFHbKnL18hR2+4oDSdrDaHUVVgdMn6BW HyzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=7VueRVXUIZ4PLuv+jNKqynr+SXNuvNQ3b0auGVgVeb4=; b=fgtpvRlA/MhLWlpERERhsc29Sw6HfutlzW4pKAjhxGKINXKlV4dsJFR+77pMH3aenM iIIi9QqK5q2BA7TPO/q6WRBuH8B9LxfkWabyw2FQFBtPO6wSpflWicd+44cftzE1FSYa WfzkpyTQccaWT7EMAIQRAep8vBjYbUFEODJqgp52XNoODSj+KZyIdVxHU+3M6Lq/qIyx lINb08nVofD3jRyMqVWNXW9URWC+jUS+699uJNXQUPwRenrjZweHmYtU77QeJc2qSV8P PsIB77J9QC1MqxMzIGogYXh/Ws1pwilGyB6/BJV37PHOq8VwltdhYvvYI4TjX9aWO8K8 FykA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=m9EHAA2Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t7si11913518edd.599.2022.02.02.07.03.52; Wed, 02 Feb 2022 07:04:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=m9EHAA2Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241461AbiBARXL (ORCPT + 99 others); Tue, 1 Feb 2022 12:23:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229836AbiBARXJ (ORCPT ); Tue, 1 Feb 2022 12:23:09 -0500 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90E90C061714 for ; Tue, 1 Feb 2022 09:23:09 -0800 (PST) Received: by mail-io1-xd2f.google.com with SMTP id 9so22178193iou.2 for ; Tue, 01 Feb 2022 09:23:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7VueRVXUIZ4PLuv+jNKqynr+SXNuvNQ3b0auGVgVeb4=; b=m9EHAA2Qyy592ZIy/XyoM+shRkpriwg9tXfgTsIAFpgsIJZ6PEVHmKGEhQtH8CuFWi I5lzavI/NRKex8bSa4P9FxykKScpxo6lin4p2aginO7Mzy7ysR1E1N42NzOXHrt+Cw1z a0hGA7YIw7XXMX0D7gxuLwEQKPa9jDNy8sU3g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7VueRVXUIZ4PLuv+jNKqynr+SXNuvNQ3b0auGVgVeb4=; b=LA9QkvyDyMxkRmKyf63H8VPUH5Iro3MFfeieHtXMcDxA7tL4N/8wiVhQYMXw/AV8cd lSX4zgdiNd5KaC3fFpSWFlLMFQQoaTKHU/75SUgBOtnxReCjgCOgDQs7sibxpQIPeypq RH3ATo0BuIfgEczkoZsqDbwgqyH4j3nNkTDj+mTVeXl3IojxZC2ck9gKEpX6GWedhx0B 1U7DoMkSXUt9SdyFM00nclFEgTK9k7m0ZUYlSPAvqMMLuGuxVWO6sVawkJtVdCm1baKu Ct4LEuTut0JJEjzs+n1yV6b0B9f3+iC5HfW7XUKZiby7vcgQzq5RXwTJAE1G3avLY9La jrgQ== X-Gm-Message-State: AOAM531d4MGCkPQjSjkAdptmtOa6kkwGSuIK+xtGLuU4EXzq6ajg1StS 42ekJZXsSyBuSgDYil3e/5ixYmFxIm6CkA== X-Received: by 2002:a05:6638:2642:: with SMTP id n2mr10819788jat.47.1643736188599; Tue, 01 Feb 2022 09:23:08 -0800 (PST) Received: from mail-il1-f174.google.com (mail-il1-f174.google.com. [209.85.166.174]) by smtp.gmail.com with ESMTPSA id j14sm19545692ilc.62.2022.02.01.09.23.07 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Feb 2022 09:23:08 -0800 (PST) Received: by mail-il1-f174.google.com with SMTP id w5so14892378ilo.2 for ; Tue, 01 Feb 2022 09:23:07 -0800 (PST) X-Received: by 2002:a05:6e02:1809:: with SMTP id a9mr15721637ilv.27.1643736187426; Tue, 01 Feb 2022 09:23:07 -0800 (PST) MIME-Version: 1.0 References: <20220125135406.1.I62322abf81dbc1a1b72392a093be0c767da9bf51@changeid> <6fdcfbcf-0546-6b4f-b50f-cf2382ad746f@redhat.com> In-Reply-To: From: Doug Anderson Date: Tue, 1 Feb 2022 09:22:55 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drm/panel-edp: Allow querying the detected panel via sysfs To: Daniel Vetter Cc: Javier Martinez Canillas , David Airlie , dri-devel , LKML , Robert Foss , Thierry Reding , jjsu@chromium.org, lschyi@chromium.org, Sam Ravnborg Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Feb 1, 2022 at 9:02 AM Daniel Vetter wrote: > > On Tue, Feb 1, 2022 at 5:42 PM Doug Anderson wrote: > > > > Hi, > > > > On Wed, Jan 26, 2022 at 12:25 AM Javier Martinez Canillas > > wrote: > > > > > > On 1/26/22 00:25, Doug Anderson wrote: > > > > On Tue, Jan 25, 2022 at 2:55 PM Javier Martinez Canillas > > > > wrote: > > > > > > [snip] > > > > > > >> Should this new sysfs entry be documented in Documentation/ABI/ ? > > > > > > > > I'm not sure what the policy is here. I actually don't know that I'm > > > > too worried about this being an ABI. For the purposes of our tests > > > > then if something about this file changed (path changed or something > > > > like that) it wouldn't be a huge deal. Presumably the test itself > > > > would just "fail" in this case and that would clue us in that the ABI > > > > changed and we could adapt to whatever new way was needed to discover > > > > this. > > > > > > > > That being said, if the policy is that everything in sysfs is supposed > > > > to be ABI then I can add documentation for this... > > > > > > > > > > I also don't know the policy, hence the question. But in any case, I > > > think that it could even be done as a follow-up if is needed. > > > > Sounds good. Since it's been pretty silent and I had your review I > > pushed this to drm-misc-next. If there are comments or someone has an > > opinion documenting this as a stable ABI then please yell. > > > > 363c4c3811db drm/panel-edp: Allow querying the detected panel via sysfs > > Generally stuff for tests should be put into debugfs. We print > everything there in various files. > > sysfs is uapi, and so come with the full baggage of you need open > userspace (which for some sysfs stuff might just be a script), and > explicitly not for tests (because that just opens the door to merge > anything binary blobs might want and just slide it all in). So please > retcon at least some plausible deniability here :-) OK, fair enough. It really is just for a test. Let me post a revert then while we discuss more. If someone can add a Reviewed-by to the revert then I'll push that just so we're not in an awkward situation. https://lore.kernel.org/r/20220201092152.1.Ibc65ec6fa05017e9856ba9ef557310268429c3ce@changeid > But if it's really only for a test then maybe dumping this into a > debugfs file (we do have connector directories already) would be much > better. That doable? I did spend a little time looking at how to do this in debugfs and it wasn't at all obvious to me without plumbing in a lot of extra code, but I can spend more time on it if it's a requirement. If you think this is something that should just be easy, I certainly wouldn't say no to a pointer to what I should look at! ;-) -Doug