From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 76B2F606A31A for ; Mon, 30 Nov 2026 21:00:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=BTr+9UR4 Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 33EFF10E2BA; Mon, 30 Nov 2026 20:59:57 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) by gabe.freedesktop.org (Postfix) with ESMTPS id A50C710E2BA for ; Mon, 30 Nov 2026 20:59:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796072391; x=1827608391; h=date:from:to:cc:subject:message-id:references: in-reply-to:mime-version; bh=c3gw7FGvqhApTGelYM+EjLBJUfrbyKuZ2lKp6HignFY=; b=BTr+9UR4ykVICVZAoe7yrm7PAO9kW5B5ixG5kkpMlsgJWJbkOop2jru8 Tk/vbfA3AEiknD6m44+A5pq2rjEHL9lv/UXSYQC7bFnHQWX1xdhoVso3u dYU7H44SJSQM3zdZ5KUGB6waTRaPkqiS+OaqMGkOXBqQ44O/xGzNX+An+ R1Zv1Q0OW3Mt0/vPPSAQhWDFH/rFy1u6ryQ2pR+kHBUyVLPw7b1lNvVmP 5jfs9rE31Fxgzvf1ig53r6GhybG5W9Y4QAn02G6EFhFX52vlHu7bL8PCb 0Il65y8QP1S85QJVftnX62OfArnaUgw+pvV2vGvQV33c2Rdu+WvkQFazR w==; X-CSE-ConnectionGUID: nGYrsgpoQ6uAAUlX89E4Kg== X-CSE-MsgGUID: iEqjqQNWQLez2u1WTEATrg== X-IronPort-AV: E=McAfee;i="6800,10657,11982"; a="4928772" X-IronPort-AV: E=Sophos;i="6.27,243,1787036400"; d="scan'208";a="4928772" Received: from fmviesa013.fm.intel.com ([10.60.135.153]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2026 12:59:50 -0800 X-CSE-ConnectionGUID: hArnDhOeTMmdQtfcyKhRMw== X-CSE-MsgGUID: 01pKCyFOTnu+9qvbwCDNiA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,243,1787036400"; d="scan'208";a="15037183" Received: from fmsmsx903.amr.corp.intel.com ([10.18.126.92]) by fmviesa013.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2026 12:59:50 -0800 Received: from FMSMSX901.amr.corp.intel.com (10.18.126.90) by fmsmsx903.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Mon, 30 Nov 2026 12:59:49 -0800 Received: from fmsedg901.ED.cps.intel.com (10.1.192.143) by FMSMSX901.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57 via Frontend Transport; Mon, 30 Nov 2026 12:59:49 -0800 Received: from BN1PR04CU002.outbound.protection.outlook.com (52.101.56.26) by edgegateway.intel.com (192.55.55.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Mon, 30 Nov 2026 12:59:49 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=PmTD+bOq6sLwo3r3EOM3yWaZ7uVPsF9ZVEosR0YnjksP0JFwIe/3ObdPcfPsLJbpEdeceg51lXlo3skkHeUIhppeq6J4ce+CR0NwUnE4XuKr8G2Qi5A/YXqYN1dlaXTkKNrdyoFSlvPWG8DRn/AFk1y8XI/WFXROwd6Pq9TrUfEgpng43CNEbG8N9KWIKQPymAzBmGefOLEwAcfReLT0pw7iA2+i+R1sabSANMUHV1x413CNa5V71ZdbgXre++V8fdMiIbBSLGv0lgmzZu9vR4iFlMc59lXNutA6Nb9pkiB5kAoyLxGavf8q0xKtjvar28KBHfOANOhs8DJN+fLprg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=c3gw7FGvqhApTGelYM+EjLBJUfrbyKuZ2lKp6HignFY=; b=oOnW4wXO4FH8NYnv/D4ZNRgyDCMaARN58pbL1PG76mGQl66Upy9786D5hM25X62I/sbv63UTRx982bFgiZds9XWv3Rh1JH3D7sio1VXVNuQjlGPRmPKrXPWODJuO5QoN1FfKP4fdW2hEsj8fbSOZVR0Mwbk8m5PoVugilKLir2aUvBPVm/dRdVguo6KYxBIY4RwrDugJNa77n1ql24cl77wM3gF18dGuAtz4al7Hffc8DTv9BeDmy29hil5ewVetIu6W/w8Zd4+kVlAtyPPuNllg5u6Vm8sOI/rR5rz7vRPcvIzW5dTjqZjNndL0aTJ0WxfhZuXjXzlojO4p81XwgA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS7PR11MB5990.namprd11.prod.outlook.com (2603:10b6:8:71::5) by PH3PPF5A636EDE4.namprd11.prod.outlook.com (2603:10b6:518:1::d21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.12; Mon, 30 Nov 2026 20:59:46 +0000 Received: from DS7PR11MB5990.namprd11.prod.outlook.com ([fe80::133c:5eed:3aec:b899]) by DS7PR11MB5990.namprd11.prod.outlook.com ([fe80::133c:5eed:3aec:b899%3]) with mapi id 15.21.0662.007; Mon, 30 Nov 2026 20:59:46 +0000 Date: Mon, 30 Nov 2026 15:59:42 -0500 From: Rodrigo Vivi To: Karthik Poosa CC: , , , , , , , , Subject: Re: [PATCH v6 03/10] drm/xe/pcode: Add ordered write batch helper Message-ID: References: <20261130185050.36979-1-karthik.poosa@intel.com> <20261130185050.36979-4-karthik.poosa@intel.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261130185050.36979-4-karthik.poosa@intel.com> X-ClientProxiedBy: SJ2P221CA0009.NAMP221.PROD.OUTLOOK.COM (2603:10b6:a03:5db::13) To DS7PR11MB5990.namprd11.prod.outlook.com (2603:10b6:8:71::5) X-Archived-By: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS7PR11MB5990:EE_|PH3PPF5A636EDE4:EE_ X-MS-Office365-Filtering-Correlation-Id: a1c04a2e-4b0a-40a5-83b8-08df4f24dd16 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|1800799024|376014|23010399003|10067099003|56012099006|11063799006|261021121427099003|261026140227099003|261021123027099003|261009223027099003|261026121527099003|261028144727099003|261102123227099003|261022105027099003|22082099003|18002099003|4143699003|3023799007; X-Microsoft-Antispam-Message-Info: PUbTyWneCbokMIwQt9EeD5d6V3SdafgVk1S4gxZ/8+I4j871YQOBGXI7ggg4boYVSa6xR9f7TCptOK6ul5+LsOKAkcVGtsp4yVZ+uj6UULN6Yl6kXqpgaTPcdCYeJP/2W4a+CSxcz/KUeiRYluk+TdU1Z7C97hUAcvO5S/FfFKTW9tsYmMcBs8gNwRjtSFxyg9DLuJduCXkYqx6sHTLtSXch6mdjPFjqlG89UD/L5o8EZREshKB0Q4Cy4qk/k/vn7WLcv1q8Y7XwCyqRhIiyU5fHH8rkGx5UqF6S+uJ0DsZ/JPifrO50MEEwEAeHHy8a2ddtteUDvHQ4UQpcuAo+EvqLzohpRQfL4MTnq7u7czzpRxSndWhrPwg3YL3zyQ6+fQcZQgmkVahnRSVQ9TXTWDFQ1Gp+9QJ4G2DXluQ10dmoPTJ2p8wo5jwY0e431aC7xlohSrFd0nV7gH2JclT/CDCR/BbWSyrU7vP9y/xCpUJtS39KvFhVZtZU6TBxRu1qZqfQOu8D8mLjcGeVeCVVXZlCtETV9uq4lU8BLejeNWLwDEzcNhGUGV2IgOMVEeD+jeRJuxEFgWV+E+QF4qONrm50NvZxkEqsqqYmVQf5mWwvpKwRZsKbdnCoqqBVI/byGCoQ5hKEBROKDhRB5xUNMovzpUGdDsxglypnXDaDgaI= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS7PR11MB5990.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014)(23010399003)(10067099003)(56012099006)(11063799006)(261021121427099003)(261026140227099003)(261021123027099003)(261009223027099003)(261026121527099003)(261028144727099003)(261102123227099003)(261022105027099003)(22082099003)(18002099003)(4143699003)(3023799007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?WrLWciDSKu97kXr5HEJsjZQokG83AQ2sS+U/LNW5HWaegbGssZvnewf5X5dn?= =?us-ascii?Q?3wrtGGBxPs6dgpvx+XP/f79okG3VO9k7/fnIzRbGa2b+y9Fd3mlOApThws4J?= =?us-ascii?Q?NtqdG8NVYzYB4nxhdKga8a6kcHYnLmdwMWLzder1ABEaIRAO1PSj8DfjQUCM?= =?us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3D4WJnPYNNmEtfdM0ukHKEqvj63fgzBAc+3QCRBSA7YbTh48pZOsZK+4QBDRennmexzIEqD+NVi8mGE3REPLnGqrZC7Iv6O8zS9EiD5kE1SvoGvKUeFC6Ee2xQHzmS+qUNJitqrO9r8U4owUj1NhMkZIgQe3KQ== X-MS-Exchange-CrossTenant-Network-Message-Id: a1c04a2e-4b0a-40a5-83b8-08df4f24dd16 X-MS-Exchange-CrossTenant-AuthSource: DS7PR11MB5990.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2026 20:59:45.9162 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: wE7SSO48vGVT7ocDxxxnP9OEOTq6QcMOpxODyusW1/MqxVDc9x7m1JUBAOW6IMAcVK5+vHaf8X5HwwEnR9ABkQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH3PPF5A636EDE4 X-OriginatorOrg: intel.com X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Intel-xe" X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Tue, Dec 01, 2026 at 12:20:43AM +0530, Karthik Poosa wrote: > Add a pcode helper that issues an ordered sequence of mailbox writes > while holding the pcode lock, so no other mailbox command can be > interleaved. > > Some pcode interfaces keep state across mailbox commands. A fan table is > written one point at a time with FSC_WRITE_FAN_TABLE and loaded by a > final FSC_WRITE_NUM_FAN_CONTROL_POINTS write. pcode does not tie the > staged points to a requester, so fan table writes from another caller > in the middle of the sequence can be merged into it, and the commit then > either fails with illegal data or loads a wrong table. > > Serialize all fan control table writes, for every fan, on the pcode > lock rather than per fan. Caller-side locks such as the hwmon lock only > order callers that take them; the pcode lock orders every mailbox user > in the driver. > > Lock hold time is the sum of the pcode response times of the batch. Each > write is bounded by PCODE_DEFAULT_TIMEOUT_MS, and a write that times out > ends the batch, so the worst case is count * PCODE_DEFAULT_TIMEOUT_MS > (110 ms for the largest fan table of 10 points plus the count write). > Other pcode users wait on the lock with mutex_lock() and start their own > mailbox timeout only after acquiring it, so a batch delays them but does > not make them time out. This is in line with existing pcode lock users: > xe_pcode_request() holds the lock for up to its base timeout plus 50 ms, > and xe_pcode_init_min_freq_table() holds it across a loop of writes. > > This will be used to write fan tables atomically with respect to other > pcode users. > > Signed-off-by: Karthik Poosa Reviewed-by: Rodrigo Vivi > --- > > v2: > - Explain why pcode needs the writes without interleaving, and the > lock hold time impact on other pcode users. (sashiko) > > drivers/gpu/drm/xe/xe_pcode.c | 49 +++++++++++++++++++++++++++++++++++ > drivers/gpu/drm/xe/xe_pcode.h | 12 +++++++++ > 2 files changed, 61 insertions(+) > > diff --git a/drivers/gpu/drm/xe/xe_pcode.c b/drivers/gpu/drm/xe/xe_pcode.c > index fa9f45d565cb..f465decbf946 100644 > --- a/drivers/gpu/drm/xe/xe_pcode.c > +++ b/drivers/gpu/drm/xe/xe_pcode.c > @@ -124,6 +124,55 @@ int xe_pcode_write_timeout(struct xe_tile *tile, u32 mbox, u32 data, int timeout > return err; > } > > +/** > + * xe_pcode_write_batch - issue pcode writes in order under the mailbox lock > + * @tile: tile > + * @writes: mailbox/data pairs to write > + * @count: number of entries in @writes > + * > + * Some pcode interfaces keep state across mailbox commands; e.g. a fan table > + * is written point by point and loaded by a final point count write. Holding > + * the pcode lock across all writes keeps each such sequence atomic with > + * respect to every other mailbox user, including fan table writes for any > + * other fan, independent of caller-side locks. > + * > + * The lock is held for the sum of the pcode response times, bounded by > + * @count * PCODE_DEFAULT_TIMEOUT_MS; a write that times out ends the batch. > + * Other pcode users sleep on the lock and start their own mailbox timeout only > + * once they own it, so they are delayed but do not time out. Keep @count small. > + * > + * Stops at the first failure; earlier writes are not reverted. > + * > + * Context: Process context. Takes and releases the pcode lock. > + * Return: 0 on success, negative error code otherwise. > + */ > +int xe_pcode_write_batch(struct xe_tile *tile, const struct xe_pcode_write *writes, > + unsigned int count) > +{ > + unsigned int i; > + int err = 0; > + > + if (!count) > + return -EINVAL; > + > + mutex_lock(&tile->pcode.lock); > + for (i = 0; i < count; i++) { > + u32 data = writes[i].data; > + > + err = pcode_mailbox_rw(tile, writes[i].mbox, &data, NULL, PCODE_DEFAULT_TIMEOUT_MS, > + false, false); > + if (err) { > + xe_err(tile_to_xe(tile), > + "pcode batch write %u/%u failed: mbox 0x%08x data 0x%08x, ret %pe\n", > + i + 1, count, writes[i].mbox, writes[i].data, ERR_PTR(err)); > + break; > + } > + } > + mutex_unlock(&tile->pcode.lock); > + > + return err; > +} > + > int xe_pcode_write64_timeout(struct xe_tile *tile, u32 mbox, u32 data0, u32 data1, int timeout) > { > int err; > diff --git a/drivers/gpu/drm/xe/xe_pcode.h b/drivers/gpu/drm/xe/xe_pcode.h > index 7e43792b0037..c601a12baba6 100644 > --- a/drivers/gpu/drm/xe/xe_pcode.h > +++ b/drivers/gpu/drm/xe/xe_pcode.h > @@ -18,6 +18,16 @@ struct xe_pcode_version { > u32 engg; > }; > > +/** > + * struct xe_pcode_write - single pcode mailbox write > + * @mbox: mailbox command > + * @data: value written to PCODE_DATA0 > + */ > +struct xe_pcode_write { > + u32 mbox; > + u32 data; > +}; > + > #define PCODE_DEFAULT_TIMEOUT_MS 10 > > int xe_pcode_init_early(struct xe_tile *tile); > @@ -28,6 +38,8 @@ int xe_pcode_init_min_freq_table(struct xe_tile *tile, u32 min_gt_freq, > int xe_pcode_read(struct xe_tile *tile, u32 mbox, u32 *val0, u32 *val1); > int xe_pcode_write_timeout(struct xe_tile *tile, u32 mbox, u32 val, > int timeout_ms); > +int xe_pcode_write_batch(struct xe_tile *tile, const struct xe_pcode_write *writes, > + unsigned int count); > int xe_pcode_write64_timeout(struct xe_tile *tile, u32 mbox, u32 data0, > u32 data1, int timeout); > int xe_get_pcode_version(struct xe_device *xe, struct xe_pcode_version *version); > -- > 2.34.1 >