From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.12 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796121181; b=twTwrFBol3jaOt907l5ANa2DyCr9JcZLjmv0fb04qiRP54AwgudmNxUIpve1DPVoOJyP q4z6Wccwzf0HlaRZZMSv+Ek2074MVHRkAPc5mxRQHb528sPmTMtFF2s17n3AnaxpraZf3 WYiU5kLfnjBYuPj4T0yXhNF8vrD1i555GDjr3nPsL+v58IMNvFXaykH+98eK0BImK6xkO McCvdUEoQhOGGHYD4c75Vy50J8C/AenLRfEVxqLwtRxLA23lzGGEMTb6k2ODT0Rt/gwrN U+bLCBksb3XSRr1uHm3VXVmEmcAnwwGF5FaA2uHj28/024hmoXmoDShfmAPfX2ME8jg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796121181; 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:Date:From:To: Cc:Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=nVEFdYI2v3SbDohK3/rmSxcFa+Td1RPnG6COtt8PrrE=; b=DTHGpJ9JEYlbfvk3j2eIVABZ/hzKmB6KpTWDeFp+5Ywu5P79BOMo7K1NnBkpuO4UAS8A w7OWf0Og93JalBbj+AiVYNWzuijukuye6qZ3Qfb+N6j8SZm32qRYa2X+V3ZJgmjf6iCxm cdoF/+gVrsdSpcjGeDa5zayLWASPpUk1TVKQR54RwM6qjOq2Q+b2yHqWzraq8Kopc4c6R LwwEmOcIRgRUz8rMSrrL+udBkaJVQ0Yn8k9H66PrBm5V7+jUaGfGynWCXu0KbzaCvQuih j3ePsxHc7AN3A3gN1AAmaddriwMql/xHOpFzna2SHTLgyWjNz5AsSifqj+KGHTv3TKg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=VmK10kQh; arc=none smtp.remote-ip=198.175.65.12 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) (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 9F5D1606A31A; Tue, 1 Dec 2026 10:33:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9F5D1606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.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=VmK10kQh DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796121181; x=1827657181; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=nVEFdYI2v3SbDohK3/rmSxcFa+Td1RPnG6COtt8PrrE=; b=VmK10kQhcdD7726YUtEmSxSSJ8JbqozYS9NIU6/qDc/6pVerhb+aaM9M g4BHkfuhGj2dqve1WIDSliDMDXJEn4D1kCUlmKZp3Eako7DWk8DsUz32z ucVUIV44PKxpcer2Jo3azHhnUsZCHiAFxvLM+Wm10+Gn635BjdJpF9xk0 lOZL/av5/3lOmAIKZcvvj+ocFMoSqxo9Hu2nxpDrXHK7etbCx3HR9kWGY 7fWWUQxaaXi1hiQOngmLOwg9vSHSzxNDL6aH3FQRHFikGhFZ1cJAoibOL 3nPUe7Sg8lxj4TOj1nOUe4IoDrHLok9kvyt7HaWIde/gCVMPlKLmP1EI+ A==; X-CSE-ConnectionGUID: KryHHTrBSry3BNDzIFb3LQ== X-CSE-MsgGUID: +F1JZsdhQeSsduP75EuVVA== X-IronPort-AV: E=McAfee;i="6800,10657,11982"; a="4899122" X-IronPort-AV: E=Sophos;i="6.27,244,1787036400"; d="scan'208";a="4899122" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2026 02:33:00 -0800 X-CSE-ConnectionGUID: pkw8Mz8IT7ik5apEV+bp+w== X-CSE-MsgGUID: P61lVobzSpioDzzmnTiT6g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,244,1787036400"; d="scan'208";a="13690128" Received: from black.igk.intel.com ([10.91.253.5]) by fmviesa001.fm.intel.com with ESMTP; 01 Dec 2026 02:32:59 -0800 Received: by black.igk.intel.com (Postfix, from userid 1001) id C587698; Tue, 01 Dec 2026 11:32:57 +0100 (CET) Date: Tue, 1 Dec 2026 11:32:57 +0100 From: Mika Westerberg To: logantolarsen@gmail.com Cc: Andi Shyti , Mika Westerberg , linux-i2c@vger.kernel.org, linux-acpi@vger.kernel.org Subject: Re: [PATCH] i2c: acpi: Force ELAN2514 touchscreens to 100 kHz Message-ID: <20261201103257.GW953667@black.igk.intel.com> References: <20261201-i2c-acpi-elan2514-100khz-v1-1-6683009dadfc@gmail.com> X-Mailing-List: linux-i2c@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20261201-i2c-acpi-elan2514-100khz-v1-1-6683009dadfc@gmail.com> Hi, On Tue, Dec 01, 2026 at 12:13:10AM -0700, Logan Larsen via B4 Relay wrote: > From: Logan Larsen > > The ELAN2514 touchscreen (HID ID 04F3:43EF) with pen support on the HP > OmniBook X Flip Laptop 16-as0xxx (BIOS F.20, 04/27/2026) is connected > to the Lunar Lake I2C #4 controller (8086:a850, \_SB.PC00.I2C4). The > DSDT picks the bus speed in TPL1._INI from a BIOS NVS variable, and the > BIOS selects 400 kHz. > > At 400 kHz pen input is badly broken. i2c-hid frequently reads a > corrupted length header and drops the report: > > i2c-ELAN2514:00: i2c_hid_get_input: incomplete report (67/7167) > > With Arch Linux's 7.3.6 kernel, during 45 seconds of continuous drawing > the pen delivered 22 reports/s, with 258 gaps longer than 50 ms, 273 > position jumps of more than 4% of the screen diagonal and 102 of the > above errors. Forcing 1 MHz was no better than 400 kHz. > > Add ELAN2514 to i2c_acpi_force_100khz_device_ids so that it operates at > 100 kHz. > > With this patch on v7.4-rc5 the kernel reports > > DSDT uses known not-working I2C bus speed 400000, forcing it to 100000 > > and the controller runs in Standard Mode (100 kHz). In the same test the > pen delivered 150 reports/s over 17 seconds in range, with 11 gaps > longer than 50 ms (at most 117 ms), no position jumps and none of the > above errors. Finger input is unaffected. > > AI disclosure: this contribution is entirely AI-generated. The AI coding > assistant Claude Code (model Claude Opus 5.5) did all of the technical > work: it diagnosed the problem, wrote the test harness and an ACPI > override used during the investigation, found the existing quirk table, > wrote this patch, built and tested the patched kernel, analysed the > results and wrote this changelog. The submitter did not write any of > the code or text. They only prompted the assistant (roughly: "fix the > pen on this laptop", "finger touch stops working after using the pen", > "make this fix mergeable into the mainline kernel"), ran the commands > that needed root and used the pen and the touchscreen during the > measurements. > > Signed-off-by: Logan Larsen Acked-by: Mika Westerberg (Intel)