Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp135894iog; Fri, 24 Jun 2022 00:31:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vq+Zxi/WfD8Azgnwi/bVjuYW7n8XtO27sbhtAXhHWj2kVAfzb0FpQespvu23n7paXY2wYU X-Received: by 2002:a05:6402:3587:b0:435:b9a1:d5c5 with SMTP id y7-20020a056402358700b00435b9a1d5c5mr13698412edc.219.1656055862370; Fri, 24 Jun 2022 00:31:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656055862; cv=none; d=google.com; s=arc-20160816; b=N/G5t3GmHVwFY+rdezT2TNUnUW9ga045X05bT+nkcVZfNA+VQAMQt/VlxLD+KaawC5 dOel8/zCD5zJVhoPTB8d24o6209eKqT9F2JvxctQwiqmudFvYtmKaCnQSchfUPhM5giw rZSGumSOBp6KMPqEOUeUrY07kLdb9VGp6SKE91VtdPSpWg6ZLd6IuAkv7f98osQE87gn isVoXn1MmIew8+o9/KYFwXuz10DItgm18yrOPpMnB35pU/qjTHaSNOXeizYJ9Q0LlI/l CeFB+H6SX98epCqCVEz3bd9bsGLiwEMMwx1y1wZJxM/AAkdIK7Kf4sm4XZX/CD0E2cTk xn1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=qUItCbLc+fuYOTyCd9ZeXriQMp1QuuMgAnNdHWhPNIk=; b=L6xl3nLewD5m2En6hhoEuRMQI7p+vEXjCv9PWRUfjGkUsVP+8WN2Hr9sj3MBarEiwe REU+3U24ViRsZikiDmzuIV4H8+H1rQGhZ75ubl9cQ1IgVVi4MNQ5XKCpmErCagiHGRSs IXC72Ki//c9Xx2yEiT884AKeOOjt3nsN2tuqUCXtPSHsdrIJAPmDce8+0hDgSRMXWcAO lBS12vRFILDIxjWZ7mSkuYci9/50Ysi6g0lH0GpvUvy1wfu2iH1kArMlaH1hbpHF7vHv urPZ5GlLFDXw/tfXiQf36rrocODMpGnwSwmLT8ga1pfun+S6jz4g//FGEQQ6gPQEHNya kqDQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds9-20020a0564021cc900b00435a9115e94si2074784edb.38.2022.06.24.00.30.37; Fri, 24 Jun 2022 00:31:02 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230397AbiFXHXh (ORCPT + 99 others); Fri, 24 Jun 2022 03:23:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbiFXHXg (ORCPT ); Fri, 24 Jun 2022 03:23:36 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E71B4D61E for ; Fri, 24 Jun 2022 00:23:32 -0700 (PDT) Received: from p508fdadf.dip0.t-ipconnect.de ([80.143.218.223] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1o4df4-00074z-Ip; Fri, 24 Jun 2022 09:23:26 +0200 From: Heiko Stuebner To: Brian Norris , Doug Anderson Cc: Daniel Vetter , David Airlie , dri-devel , "open list:ARM/Rockchip SoC..." , LKML , Sandy Huang , Sean Paul Subject: Re: [PATCH] drm/rockchip: vop: Don't crash for invalid duplicate_state() Date: Fri, 24 Jun 2022 09:23:24 +0200 Message-ID: <4196825.8hzESeGDPO@phil> In-Reply-To: References: <20220617172623.1.I62db228170b1559ada60b8d3e1637e1688424926@changeid> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_SCC_BODY_TEXT_LINE,T_SPF_HELO_TEMPERROR autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Freitag, 24. Juni 2022, 01:44:52 CEST schrieb Doug Anderson: > Hi, > > On Fri, Jun 17, 2022 at 5:27 PM Brian Norris wrote: > > > > It's possible for users to try to duplicate the CRTC state even when the > > state doesn't exist. drm_atomic_helper_crtc_duplicate_state() (and other > > users of __drm_atomic_helper_crtc_duplicate_state()) already guard this > > with a WARN_ON() instead of crashing, so let's do that here too. > > > > Signed-off-by: Brian Norris > > --- > > > > drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 3 +++ > > 1 file changed, 3 insertions(+) > > I'm not an expert in this area, but it makes sense to me to match > drm_atomic_helper_crtc_duplicate_state() in this way. Thus: > > Reviewed-by: Douglas Anderson > > I would tend to assume that this would be landed in drm-misc by Heiko > if he's good with it. After several weeks of silence, however, I'll > commit it myself. I do tend to batch up drm-misc patches, as that is always a different workflow but I'll pick that up :-) The interesting question would be, do we want some fixes tag for it? Heiko