Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1594307pxb; Wed, 2 Feb 2022 08:18:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJx3uzlsbQ+oDUo6ktc2C5V+Q1v0xKF7X3vCtUDllXxDZ8iLklba/6r6MCm95ueNe+uM+n4B X-Received: by 2002:a17:907:6d20:: with SMTP id sa32mr25510993ejc.204.1643818711252; Wed, 02 Feb 2022 08:18:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643818711; cv=none; d=google.com; s=arc-20160816; b=rJaeIzQOSAwKxne6jJOEACZUAmDm830cFijZgSRAxnrYiuiQ1RL78ymje9+qoB+Qlg VsijPwd0XJVdvezCdMXEHlDTWhmQrSsFMl3NU+UIrdz1v94lMvI/GAhfXyAw5uQIB7mu Z5pYzblz1Cqo6sdgL0lruqNhXVdJm4B4vz3+3O0cqllmE3BHZeWM775Ab2+Feg51YDzH bsNBnwocWBvSVYr/u9Z2yfq+UPXhB57ORpthsk8agyj1YDMQUzrrB3Ykucl3YF2DBuJ0 TzU0NGZMq7RVRXf7dUcyW5ycleG7w1F/tfmmHbOnTbyhsaap9fDXws5ZVoh1A6bHYUPy isXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=WWwsGqi+NRGxnCYP532R+aZUVKmZ56mL3SC+CquYdxA=; b=WblGgjqZg4XvcewvEl/cR06zEHqLMKQwIKynr3pDtXZrHhivJgscfP92b8w8Z9jdJC NmnbICf5Sqzk21OjOBbRahcSNHuv3BCZD53j7lygSFBREFTifxI70zD2QSpY9N9NYg4X sHMP/BbUXUX1mejWTPAWVaY9VuRgPdoiL4yxTNK4z0LB6yiOBgwLSqeT1np3IZKmVP/p XL8YFS6qgJEqcfwFUS7z31Ax8LydI+WiWv/ZfQ4hybGG7hN4ZQRRsGcpafFX/Q5lOJLe 1Jfnd3xwHEkOtgZfMCMImgtN8XCOMQmHYVxIDADQvSnEJ8G7NeTfcfsFuOc7TYlRvXP8 BjCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@goldelico.com header.s=strato-dkim-0002 header.b=oS0Ye5Ss; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h20si13953974ede.184.2022.02.02.08.18.05; Wed, 02 Feb 2022 08:18:31 -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=@goldelico.com header.s=strato-dkim-0002 header.b=oS0Ye5Ss; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241083AbiBBMRe (ORCPT + 99 others); Wed, 2 Feb 2022 07:17:34 -0500 Received: from mo4-p03-ob.smtp.rzone.de ([85.215.255.101]:45347 "EHLO mo4-p03-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbiBBMRd (ORCPT ); Wed, 2 Feb 2022 07:17:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1643804235; s=strato-dkim-0002; d=goldelico.com; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject:Cc:Date: From:Subject:Sender; bh=WWwsGqi+NRGxnCYP532R+aZUVKmZ56mL3SC+CquYdxA=; b=oS0Ye5SsysbA2dkMwlc985ZOhg25qvwTvi0/RvnmDVMqM+S/MjjNPDdXDNQGD4EmKs P1JHCLFDWG1eu2tGrKHfLDN7M29OWV1ckxYFsscoXfN0CInnQGC79lyv0PMxlWKdnfS+ xrVUgVVckIpbW+W+XEgkXlOOVSttMA3e60qNivYfGiVuFcdT0tBldY9pqbyqvrOikDu6 D59XIImz3wAj3icZ1RE5TKuAwHxllNZsq9+PgQg/Dlj4oivdpMPDc5G4zjNdkIhrt7di aUfU0itAj+RHUFLZxBjdpMgPZ3KyUQqjmN+2KbHB8CfGP9B2qkHoXHZ3RZfBugF8muWd 8/qQ== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj7wpz8NIGH/jrwDCocQ==" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 47.39.0 DYNA|AUTH) with ESMTPSA id L29417y12CHE9xV (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Wed, 2 Feb 2022 13:17:14 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Subject: Re: [PATCH v12 2/9] drm/ingenic: Add support for JZ4780 and HDMI output From: "H. Nikolaus Schaller" In-Reply-To: Date: Wed, 2 Feb 2022 13:17:14 +0100 Cc: Rob Herring , Mark Rutland , Thomas Bogendoerfer , Geert Uytterhoeven , Kees Cook , "Eric W. Biederman" , Miquel Raynal , David Airlie , Daniel Vetter , Neil Armstrong , Robert Foss , Laurent Pinchart , Jernej Skrabec , Harry Wentland , Sam Ravnborg , Maxime Ripard , Hans Verkuil , Liam Girdwood , Mark Brown , Paul Boddie , Andrzej Hajda , Kieran Bingham , devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, letux-kernel@openphoenux.org, Jonas Karlman , dri-devel@lists.freedesktop.org, Ezequiel Garcia Content-Transfer-Encoding: quoted-printable Message-Id: <37CB6D86-4295-4281-BF3E-3E4B40E74196@goldelico.com> References: <6a7b188769a7ad477bf8cb71e1b9bc086b92388d.1643632014.git.hns@goldelico.com> <1F27171F-DFCA-4707-8F50-D1A343F6D78E@goldelico.com> To: Paul Cercueil X-Mailer: Apple Mail (2.3445.104.21) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Paul, > Am 02.02.2022 um 13:06 schrieb Paul Cercueil : >=20 > Hi Nikolaus, >=20 >>>> @@ -446,6 +454,9 @@ static int = ingenic_drm_plane_atomic_check(struct drm_plane *plane, >>>> if (!crtc) >>>> return 0; >>>> + if (plane =3D=3D &priv->f0) >>>> + return -EINVAL; >>> This will break JZ4725B -> JZ4770 SoCs, the f0 plane is perfectly = usable there. >> Hm. I think it was your request/proposal to add this [1]? >=20 > Because otherwise with your current patchset the f0 plane does not = work *on JZ4780*. Not that I am eager to fix that, but... maybe it could be better to fix than having the check and -EINVAL depend = on SoC compatible string (or some new flag in soc_info. plane_f0_not_working)? > It does work on older SoCs. >=20 >> What I have forgotten is why the f0 plane should not be usable for = jz4780. >=20 > We return an error here to prevent userspace from using the f0 plane = until it's effectively working on the JZ4780. Well, what would be not working with that plane if user-space would try = to use it? >=20 > Cheers, > -Paul BR and thanks, Nikolaus=