Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=198.175.65.14 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796055119; b=4a1E9rpHRRwFEqj6G419ryFgbjpDATIt3SiUNmZwo19x/57dF74GbOTZBp1ASHq7aoL4 m1IitydP/Mq9u2vK/dceGplG8a3nr6odcQjESt7keNPIzaMRybKMPRCb6n/t7Pzn38LFC i4EFqDEK3OEPs+gvZxNvsbxcr2w+DLW2Rbb/IzCq8ASX4NJIkTy9REq0G69fL7IMd0x/9 qzYt27Hr3XKVZH02sPq23jQYW7tsywMWZVHJ6nvVgJB7SsHyXHg12QQY8CNKPm5io2IqK sUi2P5c2iZFmdgh7YL9SVYU3AEaJonNWDiBzslNwDe6yDdaW57FxOk1FvCpdDCEuJiQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796055119; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Received: Received:Received:Received:Message-ID:Date:User-Agent:Subject:To: References:Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:X-ClientProxiedBy:MIME-Version: X-MS-PublicTrafficType:X-MS-TrafficTypeDiagnostic: X-MS-Office365-Filtering-Correlation-Id:X-MS-Exchange-SenderADCheck: X-MS-Exchange-AntiSpam-Relay:X-Microsoft-Antispam: X-Microsoft-Antispam-Message-Info:X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-Exchange-RoutingPolicyChecked: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-CrossTenant-Id:X-MS-Exchange-CrossTenant-MailboxType: X-MS-Exchange-CrossTenant-UserPrincipalName: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; bh=2vs6OngvCm5PY7AbsWzWwZh1wWS6XxOTJg0JsIK032g=; b=P3iGfdLDthT4eOOvhe7vl7KTrEAoBPmS/SoLjHJlALY7W2vgAaWXIJZB6qJwduD6nUS0 MgWHiEbEwNH3PF7tftwuHJJu/ssEuaUlvJCqCetnDW3Evi59VK2m904en6KAKEPNc6Bh0 gwe07sj8tS0FOLKTkdTvY+jf/R+XFdLEBsv379qEvhIVIx4yA2uzJsmdsKXIAJhv/8aLT dJFYIUjC6C1qifTkduOblQOao29zBjVWs2wmIAtRQzLHaMvVojW8iy9gaAj3F3nQC4uz9 cFT0fQqgOuWwVPr2XZUJtbKPiEgROLKj17bAzb5x8SNh07k4wfozqBllugg4DWMIOJA== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b="WG+YjzM/"; arc=pass header.oldest-pass=0 smtp.remote-ip=198.175.65.14 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9027C606A320 for ; Mon, 30 Nov 2026 16:11:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9027C606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com 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=WG+YjzM/ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796055119; x=1827591119; h=message-id:date:subject:to:references:from:in-reply-to: content-transfer-encoding:mime-version; bh=2vs6OngvCm5PY7AbsWzWwZh1wWS6XxOTJg0JsIK032g=; b=WG+YjzM/NkEl/oDZlmN/ClaWXeUT2EzmehadJN1RpY16f21mJKa4H8sY tK9X3crf2RsMOdXWB3TjmBvZ0uQ9Yn8oJtn5y4CUfrDIeydcyn5iAjA0X LqmrAl6v6ohachLClj8rTdJt+wurr69auI5oP27BNEIZbB4xLdofuQXuy C2HcxKLzKu65vUV0qFHLhOI+XMHeuIyGO5qsEN0FSfbwciSOkvQpyzU3/ NYDHRpEq0EHMm1SDOfu0MxVd82MKsJZRfg/2VQOjZX3LAfSGIHrBAakvS 7qUu5Bj1dA+j/ipphLhE03Q+4weNCq4o+es/PzJqnZf9ALejX1hDNmIql Q==; X-CSE-ConnectionGUID: tVsS2W8yQ5eJ4Lf6wxBS4g== X-CSE-MsgGUID: tyl7vbx4Rtm1N1wt85xAUA== X-IronPort-AV: E=McAfee;i="6800,10657,11982"; a="4798589" X-IronPort-AV: E=Sophos;i="6.27,243,1787036400"; d="scan'208";a="4798589" Received: from fmviesa012.fm.intel.com ([10.60.135.152]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2026 08:11:58 -0800 X-CSE-ConnectionGUID: uZep7NbMRY6mCV8X+dinYQ== X-CSE-MsgGUID: WFouon6sSI2PJPgc1MfcbA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,243,1787036400"; d="scan'208";a="14644576" Received: from orsmsx902.amr.corp.intel.com ([10.22.229.24]) by fmviesa012.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2026 08:11:58 -0800 Received: from ORSMSX901.amr.corp.intel.com (10.22.229.23) by ORSMSX902.amr.corp.intel.com (10.22.229.24) 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 08:11:57 -0800 Received: from ORSEDG902.ED.cps.intel.com (10.7.248.12) by ORSMSX901.amr.corp.intel.com (10.22.229.23) 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 08:11:57 -0800 Received: from SN4PR0501CU005.outbound.protection.outlook.com (40.93.194.54) by edgegateway.intel.com (134.134.137.112) 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 08:11:56 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=F3G0RoTZRz5l0qCuVINvmXDfkkA+xMmWwthB2gs1oAHT+9xhIOY/vgj0l889+ZgYgoqzEI8bFVQCWvlUadZ2+iZJ0ARg0U04yLEeY4VxH9YeZJ2bk4WhLl4yENfKNNuFP5VGuY2TjuvefWXXEiLPm907cuR2yrn2m0jsyhraL4ZPqmIliu7OjssEZDb0hXBTJn0Kumke17g9n1C4KFWqy7/AaoMK+H/NFwQojq/myO0uH2y08HieiJtsYZ6wovBEVOraOfMPFkkQALhnMO8dOr79hjJN6zGtJcKMeD+F+dZ3AcSIcYJWU/qPbTxZOeRp0r3gU7u7Z2kxA/Rde58i5g== 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=2vs6OngvCm5PY7AbsWzWwZh1wWS6XxOTJg0JsIK032g=; b=c3ljSbkpZnDx9uhB2cPRmjyZ/ImnJS+UsURjJmkPrq6c5CenC2paYWZRsp9t49BApEm9I2C+jTv7yQqBFMwxdNefKMeuDdbp7kEdAMdOmcSkMvy4mlAo48ao5q5SKbEJsUlf1tya6qVB6nVuTwhx+d9WuTBW3zGunYbJR5IBeX2dWUJg8pxz9eh7sT/QK6BfHcC+GZvCpkwIgso5oNv9n4M1G5szvnkomxoRyZ0Hvd3zxDkUkrkTE/oybopvEwE+rVw2jwLprjnOkis8NUC+kiMaaqxOCdW/wCfAtZqhr7VBtTYFrjzbPxX+R7RiWLlchk4l8MjhuucO6vRKcTBI+Q== 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 FT1PR11MB960200.namprd11.prod.outlook.com (2603:10b6:170:25::23) by IA1PR11MB9517.namprd11.prod.outlook.com (2603:10b6:208:5b1::13) 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 16:11:54 +0000 Received: from FT1PR11MB960200.namprd11.prod.outlook.com ([fe80::cfb1:f811:62bb:fa65]) by FT1PR11MB960200.namprd11.prod.outlook.com ([fe80::cfb1:f811:62bb:fa65%5]) with mapi id 15.21.0662.012; Mon, 30 Nov 2026 16:11:54 +0000 Message-ID: <2a839fbf-8ade-4311-b12d-a7f13b33f584@intel.com> Date: Mon, 30 Nov 2026 21:41:47 +0530 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 06/10] drm/xe/hwmon: Enable fan curve control support To: , References: <20261128055923.3316956-1-karthik.poosa@intel.com> <20261128055923.3316956-7-karthik.poosa@intel.com> Content-Language: en-US From: "Poosa, Karthik" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MA5P287CA0009.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:176::13) To FT1PR11MB960200.namprd11.prod.outlook.com (2603:10b6:170:25::23) X-Mailing-List: sashiko-reviews@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: FT1PR11MB960200:EE_|IA1PR11MB9517:EE_ X-MS-Office365-Filtering-Correlation-Id: 2e518cf2-ab82-43a7-08d5-08df4efca647 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|23010399003|1800799024|376014|10067099003|56012099006|261028144727099003|261026121527099003|261026135527099003|261026140227099003|261026130827099003|261022115727099003|261021123027099003|261021121427099003|261021135927099003|261021130227099003|261021133027099003|261102123227099003|261022113327099003|261022105027099003|261022075727099003|261009223027099003|18002099003|22082099003|11063799006|5023799004|4143699003|6133799003; X-Microsoft-Antispam-Message-Info: 3+cgm8oYayrxWV49Im1fQ9uwgXU8tV3D6+0FUHFkWNF0yKWReND3leE4yWcXy88BZBIMj1fUj8xT+l2FHPVFgj+bCLxvB3q46yv4TSGr32l4FmpNrDND3KUQOuFgarZ/VV67CXTehb6hGN3T/1ECiPBrqVjwLAIgfraneIyMaG/NBev4wVE98TDqjtmvHUH23+gsG3ccW5I8mnyP0oB9IamVIySbZKEwLz4nM6np9LiyFgCSN1JOKyFQzR8Opu/bPexq7Dv149dzWQuEIjHmDBvjoUd9m308OUtHZrzpTbJrlCDiCdqc3gesVpjGkI5oqaA7F4d+BoAQeZmEX3VYjRF/y9nhZgRs6sJhHlD5+hjV1qCHwtubbfOHsRNg3t65Ti7C7YAMya1Go013gu8IpLz8cadFOVUkBkuON4qVo+466idZUPqZtpGHovhiteNRnfy1cylKyG6k8RHwehj669kbcMTGQ3aG6zFzJm29hxOMUFRYVhbXA4NqN3xUq0qY7N5VcaJJ+ZsiNgcbKw4XkexRJr6YaROAPeyaWe9X+lLDB+LFWs3VLGcPcEre1vUO1cmN+hP3WwQ6Gd7t6VNzPcMZoOisHFNrF5kaeVC4GeCZj7cSRWQgEcS442uyh9fGl1PCl2BcMuZwlVpu0hHeSpSKb8t8bPCol+GdMlVDJa0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:FT1PR11MB960200.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(23010399003)(1800799024)(376014)(10067099003)(56012099006)(261028144727099003)(261026121527099003)(261026135527099003)(261026140227099003)(261026130827099003)(261022115727099003)(261021123027099003)(261021121427099003)(261021135927099003)(261021130227099003)(261021133027099003)(261102123227099003)(261022113327099003)(261022105027099003)(261022075727099003)(261009223027099003)(18002099003)(22082099003)(11063799006)(5023799004)(4143699003)(6133799003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?QWFzSGtGTDQ5cDNXWldMdVlIQ0NxYklaWERXclVDcUk4eTNqcGJkcTg5cW9x?= =?utf-8?B?MU14Z29pN1kvdkVMOW5GaDZQWVd3Z3R6NkJlYnFjaHhobHZEdnpWU3lrNkRE?= =?utf-8?B?NmRYRjhoRTczTlorT3Q1aTA1Q0FhRnI2c1lFd2hGbSs5VTVVL1pKUTc0RmRr?= =?utf-8?B?VEprMUNVSjBRS01wTnFMbEcwMmRSVlM0bkpiUllQSmNxTDFCUlBpWlBwTkRK?= =?utf-8?B?VHVhclp6TXE3eHhqWURQRHh5T0RIaU9MbVNFVjZ4OHhHc09zVWJQZVNHREQ2?= =?utf-8?B?MDNYM21sZ2NxdHFJeVIvZUZFM1orQWhYdW9IRlVXcitQanM4a3QxUDJiMWdV?= =?utf-8?B?Vk9VQk1jU2lnN09PWlQ0OHhOQXArai9CWEFqUXBUcDdPbH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VqVFNWNEtrZFBTTXNLVmVkRjk1K1M0UEVaM2NLSHZtQ01wM0tDNGM0?= =?utf-8?B?SGgwdFp2MmpBYnlRUWJsejRCUEpWdmlXVU9VZTlJNFdhWmJtbUhGMzdQRVU5?= =?utf-8?B?b0dnZy9GRDhTUGE0ckNSOGgvRGFhQTMxcTBtbXdzMFUxRmJ0SG01dz09?= X-Exchange-RoutingPolicyChecked: TkzOSiR3vov+GwGqVSY2q70z6wPXf8eMA2o1iOWimWUV2yROJ/K9RYWftgPOWD3e19OUXfjXDli/f0GYWzm2NznyQ+aJTD/ahFFshpqy/vnO+y06IyzKdYspSA4wZ6o4dGLARzEHHFNe/rhvvSwM7nNYAmHbUBP5AFw18HdTNBz2lc0vyr6p69nLH3uUePd57XuoK4rPSMmb3QtadV/JJH0o19pFjOT6ufGoTZS3VSwKOYyxbxv/T02nf2OZQkUAgMwqKcyuIY/dumD+psCUhTp7oIXHEDt5BwtsjoIZv9W2aVAtIh3pOhsTlzwfJ9vaZvF2Df/EjHWekntl2DJGyw== X-MS-Exchange-CrossTenant-Network-Message-Id: 2e518cf2-ab82-43a7-08d5-08df4efca647 X-MS-Exchange-CrossTenant-AuthSource: FT1PR11MB960200.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2026 16:11:54.0991 (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: DpbbkEIoAnnqhr1bFXWnGrBtH/TQIYAzot/EfLcHO9mUHeJPYVN0H11VRoKIBZXKb86x3L00H8Ip6YJegihg7Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR11MB9517 X-OriginatorOrg: intel.com On 28-11-2026 11:40, sashiko-bot@kernel.org wrote: > Thank you for your contribution! Sashiko AI review found 4 potential > issues to consider: > - [Medium] drm/xe/hwmon: missing stock table check in > xe_hwmon_curve_attributes_visible() > - [Medium] drm/xe/hwmon: xe_hwmon_pwm_read() returns fcp[0].speed on > user fan curves > - [Low] drm/xe/hwmon: missing ABI documentation update claimed in commit > message > - [Low] drm/xe/hwmon: unhandled XE_FAN_PWM_UNINITIALIZED in curve show > callbacks > -- > > commit 51f62604f9e213b63207cde46fb9f696d1728daf > Author: Karthik Poosa > > drm/xe/hwmon: Enable fan curve control support > > This commit exposes fan curve temperature and PWM control points in hwmon > sysfs via pwm[1-3]_auto_point[1-10]_temp and pwm[1-3]_auto_point[1-10]_pwm, > allowing userspace to stage and commit custom fan curves to PCODE. > >> Update Xe hwmon ABI documentation for pwm auto point temperature >> attributes. >> >> v2: >> - Use xe helpers for dmesg logs. >> - Update kernel version in Xe hwmon documentation. > [Severity: Low] > Was the Documentation/ABI/testing/sysfs-driver-intel-xe-hwmon update > dropped from this patch? The commit message says the ABI documentation is > updated, but this commit only touches drivers/gpu/drm/xe/xe_hwmon.c and > leaves pwm[1-3]_auto_point[1-10]_temp and pwm[1-3]_auto_point[1-10]_pwm > undocumented. Yes it is missed, I shall add it. >> diff --git a/drivers/gpu/drm/xe/xe_hwmon.c b/drivers/gpu/drm/xe/xe_hwmon.c >> index b6214ef933165..4d6eb6f6fbc2f 100644 >> --- a/drivers/gpu/drm/xe/xe_hwmon.c >> +++ b/drivers/gpu/drm/xe/xe_hwmon.c > [ ... ] > >> @@ -1389,6 +1482,312 @@ static int xe_hwmon_set_user_fan_pwm(struct xe_hwmon *hwmon, u8 fan, u8 pwm, boo >> return 0; >> } >> >> +#define XE_CURVE_IDX(fan, point) (((fan) << 8) | (point)) >> +#define XE_CURVE_FAN(idx) ((u8)(((idx) >> 8) & 0xff)) >> +#define XE_CURVE_POINT(idx) ((u8)((idx) & 0xff)) >> + >> +static int >> +xe_hwmon_decode_curve_index(struct xe_hwmon *hwmon, u32 index, u8 *fan, u8 *point) >> +{ >> + u8 local_fan = XE_CURVE_FAN(index); >> + u8 local_point = XE_CURVE_POINT(index); >> + >> + if (local_fan >= FAN_MAX || local_point >= MAX_FAN_CONTROL_POINTS) { >> + xe_dbg(hwmon->xe, "invalid fan curve index 0x%x: fan %u point %u\n", >> + index, local_fan, local_point); >> + return -EINVAL; >> + } >> + >> + *fan = local_fan; >> + *point = local_point; >> + >> + return 0; >> +} >> + >> +static enum fan_table_type xe_hwmon_get_active_fan_table(struct xe_hwmon *hwmon, u8 fan) >> +{ >> + if (hwmon->fi[fan].pwm_enable_mode == XE_FAN_PWM_AUTO_STOCK_TABLE) >> + return STOCK_FAN_TABLE; >> + else >> + return USER_FAN_TABLE; >> +} >> + >> +static ssize_t >> +xe_hwmon_pwm_auto_point_temp_show(struct device *dev, >> + struct device_attribute *attr, char *buf) >> +{ >> + struct sensor_device_attribute *sattr = to_sensor_dev_attr(attr); >> + struct xe_hwmon *hwmon = dev_get_drvdata(dev); >> + enum fan_table_type active_table; >> + struct xe_hwmon_fan_info *fi; >> + u32 point_count; >> + u8 point; >> + u8 temp; >> + int ret; >> + u8 fan; >> + >> + ret = xe_hwmon_decode_curve_index(hwmon, sattr->index, &fan, &point); >> + if (ret) >> + return ret; >> + >> + guard(mutex)(&hwmon->hwmon_lock); >> + >> + fi = &hwmon->fi[fan]; >> + active_table = xe_hwmon_get_active_fan_table(hwmon, fan); > [Severity: Low] > Should xe_hwmon_pwm_auto_point_temp_show() and > xe_hwmon_pwm_auto_point_pwm_show() return -ENODATA when > fi->pwm_enable_mode is XE_FAN_PWM_UNINITIALIZED, the same way > xe_hwmon_pwm_read() does for hwmon_pwm_enable? Right now > xe_hwmon_get_active_fan_table() maps XE_FAN_PWM_UNINITIALIZED to > USER_FAN_TABLE, so after a failed xe_hwmon_fan_set_auto() call the show > callbacks report stale user-table points or 0 instead of an error. yes we can return -ENODATA >> + >> + point_count = fi->fan_table[active_table].point_count; >> + >> + if (point >= point_count) >> + temp = 0; >> + else >> + temp = fi->fan_table[active_table].fcp[point].temp; >> + return sysfs_emit(buf, "%u\n", temp * MILLIDEGREE_PER_DEGREE); >> +} >> + >> +static int xe_hwmon_update_user_fan_point(struct xe_hwmon *hwmon, u8 fan, u32 point, >> + bool is_temp, u8 value) >> +{ >> + struct xe_hwmon_fan_info *fi = &hwmon->fi[fan]; >> + struct fan_table *table; >> + u32 point_count; >> + int ret; >> + >> + table = &fi->fan_table[USER_FAN_TABLE]; >> + >> + if (is_temp) { >> + table->staged_fcp[point].temp = value; >> + table->temp_staged |= BIT(point); >> + } else { >> + table->staged_fcp[point].speed = value; >> + table->speed_staged |= BIT(point); >> + } >> + >> + /* Wait for a complete prefix; (0, 0) ends the curve without becoming a point. */ >> + for (point_count = 0; point_count < MAX_FAN_CONTROL_POINTS; point_count++) { >> + if (!(table->temp_staged & BIT(point_count)) || >> + !(table->speed_staged & BIT(point_count))) >> + return 0; >> + if (!table->staged_fcp[point_count].temp && >> + !table->staged_fcp[point_count].speed) >> + break; >> + } >> + >> + if (point_count < MIN_FAN_CONTROL_POINTS) { >> + xe_dbg(hwmon->xe, "fan %d curve needs at least %d points, got %u\n", >> + fan, MIN_FAN_CONTROL_POINTS, point_count); >> + ret = -EINVAL; >> + goto clear_staged; >> + } >> + >> + ret = xe_hwmon_commit_user_fan_table(hwmon, fan, table->staged_fcp, point_count); >> + if (ret) >> + goto clear_staged; >> + >> + /* Publish the new curve only after firmware accepts its point count. */ >> + memcpy(table->fcp, table->staged_fcp, point_count * sizeof(table->fcp[0])); >> + table->point_count = point_count; >> + fi->pwm_enable_mode = XE_FAN_PWM_MANUAL_USER_TABLE; >> + fi->is_full_speed = false; > [Severity: Medium] > When a multi-point user fan curve is committed here, does reading pwmN in > xe_hwmon_pwm_read() return the wrong PWM value? > > drivers/gpu/drm/xe/xe_hwmon.c:xe_hwmon_pwm_read() { > ... > if (xe_hwmon_get_active_fan_table(hwmon, channel) == STOCK_FAN_TABLE) { > ... > } else { > /* > * pwmN writes set every user-table point to the same speed, > * so the first point gives the cached manual PWM percentage. > */ > xe_dbg(hwmon->xe, "getting active pwm for fan %d from user table cache\n", > channel); > pwm = fi->fan_table[USER_FAN_TABLE].fcp[0].speed; > } > ... > } > > For a custom curve with different speeds across temperature points, > fcp[0].speed is only the speed at the lowest temperature point rather than > the active PWM from PMT telemetry (on Battlemage) or interpolation across > USER_FAN_TABLE. Also, if xe_hwmon_commit_user_fan_table() and its > xe_hwmon_fan_set_auto() fallback both fail, point_count is reset to 0 and > pwm_enable_mode is set to XE_FAN_PWM_UNINITIALIZED, yet xe_hwmon_pwm_read() > still takes this USER_FAN_TABLE branch and returns stale fcp[0].speed. > > [ ... ] This shall be addressed at next revision, We shall return active PWM instead of lowest point. For XE_FAN_PWM_UNINITIALIZED, it will -ENODATA > >> +static umode_t xe_hwmon_curve_attributes_visible(struct kobject *kobj, >> + struct attribute *attr, int index) >> +{ >> + struct device *dev = kobj_to_dev(kobj); >> + struct xe_hwmon *hwmon = dev_get_drvdata(dev); >> + u32 fan = index / XE_CURVE_ATTRS_PER_FAN; >> + >> + if (!hwmon->xe->info.has_fan_control || !IS_FAN_ENABLED(hwmon, fan)) >> + return 0; >> + >> + /* All slots must exist at registration, before the user curve has been staged. */ >> + return attr->mode; >> +} > [Severity: Medium] > Should xe_hwmon_curve_attributes_visible() also check > !hwmon->fi[fan].fan_table[STOCK_FAN_TABLE].point_count like > xe_hwmon_pwm_is_visible() does? > > drivers/gpu/drm/xe/xe_hwmon.c:xe_hwmon_pwm_is_visible() { > if (!hwmon->xe->info.has_fan_control || !IS_FAN_ENABLED(hwmon, channel) || > !hwmon->fi[channel].fan_table[STOCK_FAN_TABLE].point_count) > return 0; > ... > } Yes I think we should, if stock table is valid only, we can use user table, as stock table is fallback option. > > When a fan channel is enabled in fan_enable_mask (such as on DG2, or when > reading the stock table in xe_hwmon_read_fan_control_info() fails or > returns 0 points), pwmN and pwmN_enable are hidden and fi->pwm_enable_mode > stays XE_FAN_PWM_UNINITIALIZED, but all 20 pwmN_auto_point* attributes are > still exposed even though every write to them will fail with -EINVAL. okay, fan curve point nodes pwmN_auto_point* shall be disabled on DG2. >