From nobody Thu Oct 9 13:19:08 2025 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 987FA281362 for ; Wed, 18 Jun 2025 09:40:43 +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=1750239645; cv=none; b=NHEAFHL7OsRxSAxKQTaOAYURikXrlO0oI6P3HREn7prRTe0bRMSlNyW5EYbp0UC5i9L5Sln5k5P4splZeunRivAG0mh69b01YgLev/+Y6ni5kcERkuiOKXJ62TPRHVoHmg4pVQC4RlrYlns8AqQ9wLxwYAHiZk7nM9cfwPDuEb4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750239645; c=relaxed/simple; bh=w4DlBS740f36wje1cdOalN6Pq2yDbv+aMS8kLGs1coM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oQrOgmp8bv7x7mvPuq2DfIlrxqzjqfn/cg28Cn+b8v6oj0vwwvt/Dqk+b/dzmoIrYLa9BNarev1pfI5ceimQvDW4gCstM2GfIoOzjxmoYFYZG7JQX7dAb2nBR18TqfkMbfskaLD5l9z9G7Hn1mmpzuNuoE/9TiesfPEmXrecR5A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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=A0JPSkf4; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="A0JPSkf4" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1750239642; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Jg05gLn4LYp6QB0cNwt5RW/tA0G9+DCBeUGxTXSbrQE=; b=A0JPSkf4ZQni9NDX46QzgiDwum2r5bex+S/VhBt/KVyThF4g/lnGbtBGX2coWDAgKK2RtO oULeq4hVR0//IVm3mrik32WRDOSfVra2tVQXF/tjK5h+RqVFrvDFj/4n6sQcdKt+NylVgK /b2y3s+FJivnS2fgd3lMgwMKx/dpnTg= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-153-yKyOanwfNWOF19qMVku-9w-1; Wed, 18 Jun 2025 05:40:38 -0400 X-MC-Unique: yKyOanwfNWOF19qMVku-9w-1 X-Mimecast-MFC-AGG-ID: yKyOanwfNWOF19qMVku-9w_1750239636 Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id CA537180136B; Wed, 18 Jun 2025 09:40:35 +0000 (UTC) Received: from hydra.redhat.com (unknown [10.45.225.137]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 9D58519560AF; Wed, 18 Jun 2025 09:40:29 +0000 (UTC) From: Jocelyn Falempe To: Maarten Lankhorst , Jani Nikula , Rodrigo Vivi , Joonas Lahtinen , Tvrtko Ursulin , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , David Airlie , Simona Vetter , Christian Koenig , Huang Rui , Matthew Auld , Matthew Brost , Maxime Ripard , Thomas Zimmermann , intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Jocelyn Falempe Subject: [PATCH v10 01/10] drm/panic: Add a private field to struct drm_scanout_buffer Date: Wed, 18 Jun 2025 11:31:19 +0200 Message-ID: <20250618094011.238154-2-jfalempe@redhat.com> In-Reply-To: <20250618094011.238154-1-jfalempe@redhat.com> References: <20250618094011.238154-1-jfalempe@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 Content-Type: text/plain; charset="utf-8" This allows driver to set some private data in get_scanout_buffer(), and re-use them in set_pixel() callback. Signed-off-by: Jocelyn Falempe --- v10: * Added in v10, to avoid static variables include/drm/drm_panic.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/drm/drm_panic.h b/include/drm/drm_panic.h index 310c88c4d336..ac0e46b73436 100644 --- a/include/drm/drm_panic.h +++ b/include/drm/drm_panic.h @@ -72,6 +72,12 @@ struct drm_scanout_buffer { void (*set_pixel)(struct drm_scanout_buffer *sb, unsigned int x, unsigned int y, u32 color); =20 + /** + * @private: private pointer that you can use in the callbacks + * set_pixel() + */ + void *private; + }; =20 #ifdef CONFIG_DRM_PANIC --=20 2.49.0