From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (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 2655415990C; Mon, 12 May 2025 05:17:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747027038; cv=none; b=X90YklUu7/FSjOk9AZo83OVthES3cHPMtqT/Gs9xax6C6ZDoLazRuKgJM2yUfq6XBAWOzXUbiQosU6/8Jtoad56IFybSwUZqZcnG9of6h+dD7s/7zAqWAjFZjkMtLX61PwpsYOc6Tk8tuI2Rrv+izspCUSSAmichsy1eXyk+K+M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747027038; c=relaxed/simple; bh=d1DbIspaborzszuaHHfNpLuHTD+O86chj15Atki5stY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=iUXdLKg+upmbgD6EjqZ4O16hGH2+tvvWTDTIPtRb4sWcOW9TCyjNO4tsl9/LR+C4txEJ4s/sKX4vlO0bl6ant2IkPQG+p+54dH2zrknECyqbxuY5OC7EHQwUIUxYcoHpLItqXEYvjoDClOYNC4GyI0w+bvuMcdc8nc5PqsudnUo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=JqhJnXS3; arc=none smtp.client-ip=198.175.65.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none 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.b="JqhJnXS3" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1747027037; x=1778563037; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=d1DbIspaborzszuaHHfNpLuHTD+O86chj15Atki5stY=; b=JqhJnXS33bAQuu2iFS9HIQOGo6asxNKp9tnmNnAf4eGeOdEmEPkFby8h Z0G14xkqffB5T21b3bQRcj0UyIhqklnZ6dLN55Zb0DIjwBt+aVayf2bZN ikXUY17GDlg1dB5r6W8RKEvBhai0ST9SFCQehoK58fZh64SBp4AtYO87X AXDouqFEwkg8RgpydJO67jlVV+tUz3SjIeYLE0XCDMMV6f9YpJHfCRoqZ sWBSY54MJtj21x3fo3mqimKWe9e13p5HL7jUtgAB5v8AVNvGoqumI68Sh sRH4sFqBGrmHf/xlZe4NXBBVk5UstNuIRqZ9xxpBbZZY2aqu6wFtz8HA0 g==; X-CSE-ConnectionGUID: Snff/t6GTIKiGDxWJsjPQQ== X-CSE-MsgGUID: WTRR1Lo4QFmVlZxFLEfGLQ== X-IronPort-AV: E=McAfee;i="6700,10204,11430"; a="52620528" X-IronPort-AV: E=Sophos;i="6.15,281,1739865600"; d="scan'208";a="52620528" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2025 22:17:16 -0700 X-CSE-ConnectionGUID: XGBJ7UCTRGqvUpUbTFCatQ== X-CSE-MsgGUID: dISN6hk3Qz213K05sVGIxg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,281,1739865600"; d="scan'208";a="137119974" Received: from allen-sbox.sh.intel.com (HELO [10.239.159.30]) ([10.239.159.30]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 May 2025 22:17:13 -0700 Message-ID: <089b2370-23e4-4a22-bf57-886e46247a1f@linux.intel.com> Date: Mon, 12 May 2025 13:12:38 +0800 Precedence: bulk X-Mailing-List: iommu@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [REGRESSION] applespi from 6.12 onwards To: kobarity , Aditya Garg Cc: =?UTF-8?Q?Berkel_J=C3=B6rg?= , Robin Murphy , "linux-input@vger.kernel.org" , "dmitry.torokhov@gmail.com" , "stable@vger.kernel.org" , "regressions@lists.linux.dev" , "linux-spi@vger.kernel.org" , "lukas@wunner.de" , David Woodhouse , "iommu@lists.linux.dev" , Joerg Roedel , Will Deacon References: <4dada48a-c5dd-4c30-9c85-5b03b0aa01f0@bfh.ch> <122a1f90-ddd9-4e74-96d1-57e21e580ae2@linux.intel.com> Content-Language: en-US From: Baolu Lu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 5/11/25 21:31, kobarity wrote: > > Hi > > I'm also experiencing this problem on my MacBookPro14,3. > > Aditya Garg wrote: >> >> Hi Jörg >> >> Can you test the kernel here to see if this fixes your issue: >> >> https://github.com/t2linux/T2-Debian-and-Ubuntu-Kernel/actions/runs/14944200356 >> >> Alternatively you can try compiling your own kernel with this patch: >> >> https://lore.kernel.org/all/0-v1-c26553717e90+65f-iommu_vtd_ss_wo_jgg@nvidia.com/ > > As far as I have tried, this patch did not solve the problem. > > By bisecting, I found that this problem was introduced by commit > 2031c469f816 ("iommu/vt-d: Add support for static identity domain"). > In fact, since this commit, it will panic at startup. This panic was > fixed by commit 6e02a277f1db ("iommu/vt-d: Fix incorrect > pci_for_each_dma_alias() for non-PCI devices"). So I applied commit > 6e02a277f1db on commit 2031c469f816 and confirmed that the keyboard > and touchpad is not working. Have you tried to apply commit 64f792981e35 ("iommu/vt-d: Remove device comparison in context_setup_pass_through_cb")? > > I also found that I can workaround this problem by reverting only the > intel_iommu_attach_device() change in commit 2031c469f816 as in the > attached patch, but I'm not sure if this is a reasonable fix. > Thanks, baolu