Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp14973lqi; Wed, 6 Mar 2024 08:50:26 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXL+n7eRZu0dpxu/Jvp8T44RpXwtroCvsTbKYJFd8552RJv63DX5RkaFNOsu456wKXFcmThEbS3gp/AlhcnXvR29L43vT9K4c9fBqLLHA== X-Google-Smtp-Source: AGHT+IGQSFmwYcHAOxeJDPb8E+00/ssqY602GuamAw/Je1DFnSVD856VEJaeoIW7zsEixkfQM7hH X-Received: by 2002:a17:906:7ca:b0:a45:aacb:349b with SMTP id m10-20020a17090607ca00b00a45aacb349bmr3513758ejc.16.1709743826587; Wed, 06 Mar 2024 08:50:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709743826; cv=pass; d=google.com; s=arc-20160816; b=e5X6LIIEipWbYESR6r54KYiXFC1wFQ/eJLcPw8d0Pz9IVS5K76CN0kVQ7fQoYFYgdM z0TL7ULdIKQED1h3xrO/DQnj69jMPSLm0cG9HJAbJx4wifMEFAuc3mBapeJfoDh5ZdyO lfvmYzDhfiiSrQduVKPfnDTWa9EU2/hM9Utm+qHsFgn1kaQ4R33m6xT0iN+1GDHTyD7L /vfUMnEs10l7khUsj+mIEPNfB+muOcRqyknpnePjbLhzQH9J4QSN5zBkWBkjuKXXR8IM 9ChZcfZtKSdtDsF5aE6c9LzUCIzpYb3oJ4t6Sq26+d1Yo5dNP4pQfbkJNY71UO5P8UTX kuVg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=CFwqTj8WPf3w+Wcwvpf0C+CURfpIxKA1IeNu1cFxTn0=; fh=HqFydFgHjA8V+nf0ibXbjnMdKmmOCpd96/AFsskXpHM=; b=hOcKA4caCfjORgzPv8Jn1QVFl1L1h2GIvavbP2FyHM7H3nmtfb95PBxpwrSK89wQVc AT7jYJNrqBf1j9G/5dQIH9wcvcLJ2qq61fzmmign6Y6O/t12SHQ/F1s9/WXlqM3wZLsi tgmluCTHDblO/yQ7qkvr01qTyLSBfKEbrlqyAa7HiKJPhJL0BHf0TnauulljH6F4YmS/ 1kKLPR3ZWgXodG5W4upDRTKm/yfM7Xx5p5alBpGtUjNGxJpy+NFCn78fwlmw6IH9YVPw 0nC6h2D+itbmzbi2NawQ9oR834ddeC5vOBlgqWoMnZ7vnOlIXxCsgKQt2ICLIB/may33 mehA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=S6fZggiT; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-94293-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94293-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gb35-20020a170907962300b00a44d90d6eeesi4198355ejc.1002.2024.03.06.08.50.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 08:50:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94293-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=S6fZggiT; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-94293-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94293-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2B0521F22404 for ; Wed, 6 Mar 2024 16:50:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08197137930; Wed, 6 Mar 2024 16:50:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="S6fZggiT" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8370360250 for ; Wed, 6 Mar 2024 16:50:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709743817; cv=none; b=iTpO36duFawqMuD5JMCxymeAgdAuHhzMn7uMVfWZ12ywhiBWThABBq2mEDJXZqU1ipHW08HjrQPaYIdqDOh4oFgk0czInUQTgZMUnTfCG0knN3BFtyPQradUj56z7DC1OJ8xHAxk69TmJp+cISN0Y3+3ngSKiy0o/Dd7yqzGIKQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709743817; c=relaxed/simple; bh=qnFouHowiUboWqipiYqPdkjQZwx7iQMt65gPiFu8wRk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tmTQDEI/2FbT8oudeh4uG4dAmIHeGlT/RlUaYwFU4ArZkfIcyiaWgAT6oPZuESzUyafzHBKd5GvFG80O+UJEhQmvvbQL9Uqngf9FkUMHY5DUxZm7sFPssn8Jjte0jC3X8DIB7McwAwvGPWDK38eFO2aeEIzr6tvpcBbsRHHOvRk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=S6fZggiT; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709743814; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CFwqTj8WPf3w+Wcwvpf0C+CURfpIxKA1IeNu1cFxTn0=; b=S6fZggiTDJBLoyX1KwwEb9YqlRqbiLwADthoGuedlZIOtWdaPP/CRXP1yreDBkrDR19B0r n6r9I16x4rEo5ZXgZGBuHk1x97Xg1yo6gpMM/1ZCxLVrtVk8awsYRSDXQaxnHTi/6uWQeC SjCsfVyYRO6QlRyYksmrQ5KNFJa8C0k= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-561-27EUneHUOaONty1FC1Wuyg-1; Wed, 06 Mar 2024 11:50:12 -0500 X-MC-Unique: 27EUneHUOaONty1FC1Wuyg-1 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-4129b426bdaso140555e9.0 for ; Wed, 06 Mar 2024 08:50:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709743811; x=1710348611; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=CFwqTj8WPf3w+Wcwvpf0C+CURfpIxKA1IeNu1cFxTn0=; b=r9UkW/w7SYW3MUSVTrvQ5r+1DNZQCmvVUljI9/H1e0SW29TplQPlQogVFRZgvh3VVz n6YGqqOVpnnhzDf3GXunTq01wfIce9a7BVlLQ0IQzIXNpxFAaQLlXud12qO2w1mmEuxN LnNPCJa73muSpY1DV+Yv22ps5BmlCu08B+devPiHApOTQLV3MOHZsk8sDC8gWLHopxVm O2yMT0aiE5zaym3dn48kBkVfTq2iWYiE2Bi7qlGcGuc7lvsm4ZQextBlVUsnu+O3mUzj /i7Hn7oqBBEWh/yzc/47o6VGIgQqvzKg7HS9efAtkZ5fL2ENUAR110fMv4xEv1l3CHGS YMzg== X-Forwarded-Encrypted: i=1; AJvYcCXQp52iq5Hw5S+Xps1xoIkOLH9M+v5YcMkJsszG5mCIVlTklg+E5KwJYww547kYTzKnyHO9KD18PxJiQNzBHLImaDquYqB79Yez49kR X-Gm-Message-State: AOJu0YxOTRQFE2J9llmibBFU2/lCmyrgfz39nDVq8LpwMH8OXNXnlL/R AkAStbpkc6qXTHF2D/ejOqTRrzFMO42C+r15jztvyPR4/mWsfZUgtTdEA3Euv7uHUOoWJyAfWub +8tBBl6f0dnb8pnE7H057U73nVGFI04Yh+RR2B+ug9ukmXpztqRn9eqWi4rz1m1bkm2QGwg== X-Received: by 2002:adf:f546:0:b0:33e:2993:7c81 with SMTP id j6-20020adff546000000b0033e29937c81mr8781292wrp.64.1709743811345; Wed, 06 Mar 2024 08:50:11 -0800 (PST) X-Received: by 2002:adf:f546:0:b0:33e:2993:7c81 with SMTP id j6-20020adff546000000b0033e29937c81mr8781277wrp.64.1709743811003; Wed, 06 Mar 2024 08:50:11 -0800 (PST) Received: from toolbox ([2001:9e8:89a4:b300:8654:3fb5:7140:1e06]) by smtp.gmail.com with ESMTPSA id u11-20020a056000038b00b0033e456848f4sm6522396wrf.82.2024.03.06.08.50.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 08:50:10 -0800 (PST) Date: Wed, 6 Mar 2024 17:50:09 +0100 From: Sebastian Wick To: Maxime Ripard Cc: Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Jonathan Corbet , dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm: Document requirements for driver-specific KMS props in new drivers Message-ID: <20240306165009.GB11561@toolbox> References: <20240229202833.198691-1-sebastian.wick@redhat.com> <20240306-hulking-funky-fox-b9581b@houat> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240306-hulking-funky-fox-b9581b@houat> On Wed, Mar 06, 2024 at 03:14:15PM +0100, Maxime Ripard wrote: > Hi, > > On Thu, Feb 29, 2024 at 09:28:31PM +0100, Sebastian Wick wrote: > > When extending support for a driver-specific KMS property to additional > > drivers, we should apply all the requirements for new properties and > > make sure the semantics are the same and documented. > > > > Signed-off-by: Sebastian Wick > > --- > > Documentation/gpu/drm-kms.rst | 5 +++++ > > 1 file changed, 5 insertions(+) > > > > diff --git a/Documentation/gpu/drm-kms.rst b/Documentation/gpu/drm-kms.rst > > index 13d3627d8bc0..afa10a28035f 100644 > > --- a/Documentation/gpu/drm-kms.rst > > +++ b/Documentation/gpu/drm-kms.rst > > @@ -496,6 +496,11 @@ addition to the one mentioned above: > > > > * An IGT test must be submitted where reasonable. > > > > +For historical reasons, non-standard, driver-specific properties exist. If a KMS > > +driver wants to add support for one of those properties, the requirements for > > +new properties apply where possible. Additionally, the documented behavior must > > +match the de facto semantics of the existing property to ensure compatibility. > > + > > I'm conflicted about this one, really. > > On one hand, yeah, it's definitely reasonable and something we would > want on the long run. > > But on the other hand, a driver getting its technical debt worked on for > free by anyone but its developpers doesn't seem fair to me. Most of the work would have to be done for a new property as well. The only additional work is then documenting the de-facto semantics and moving the existing driver-specific code to the core. Would it help if we spell out that the developers of the driver-specific property shall help with both tasks? > Also, I assume this is in reaction to the discussion we had on the > Broadcast RGB property. We used in vc4 precisely because there was some > userspace code to deal with it and we could just reuse it, and it was > documented. So the requirements were met already. It was not in drm core and the behavior was not documented properly at least. Either way, with Broadcast RGB we were already in a bad situation because it was implemented by 2 drivers independently. This is what I want to avoid in the first place. The cleanup afterwards (thank you!) just exposed the problem. > Maxime