Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1639039rdb; Mon, 8 Jan 2024 06:00:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IF5xn+ujbw7QASGBHFLQjOFRnpKpk8fSzMHPFBMMox7ob0ooxDmSW5Z5KvqQ2AI9B6XXRJO X-Received: by 2002:ac2:51b5:0:b0:50e:a8ca:74cd with SMTP id f21-20020ac251b5000000b0050ea8ca74cdmr1552843lfk.102.1704722425937; Mon, 08 Jan 2024 06:00:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704722425; cv=none; d=google.com; s=arc-20160816; b=IgGM3DOFETwYEuqVqudXsRcfWm82F1HmKtM71ISziizctNIe/AZQ9RJ6HlLjnYnhoc 1L6+FN8+zlm7PJJqcYScr3/SjDppHeBGMChdyBqZgz24mqiUWUtwx2mYsTgtEqcEhCtl w4W2bVRIIBSnob/1T1hDYhN7u6E5Tn71HpUPbHoiOmiCCZI4PO2/UkBBUo1yAHT/dm8S EC6uo0CO2CuIiX4N2+5i/5s9ZpmL91OuRSXCZjnMrwNSICq0pS+JsXGHeYG5B/9YTU6N F0DwjcprRuYguUfqSbBCwSo7jmi1PeZlgugXimynP0QuNHYPb8yfs0FnMycsuHONw3+R 1Xqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=C4Jpu1x2ehrCuoX9MkyxWci4WQ2RVknzin0m1bbF2hU=; fh=Cth1mD5CLrzldyCnPfLwtybS8TUvRMNilL7eafXt0co=; b=q8q9ptzdDknSP3yEncjTJtHRVHDHUXaTBFitZmTS5FzZba+MuKUlytTcNM+qLRFhV9 w8wlZRsYCXjwwHn06Vp64d2xYI3i+jssqzGgtxacXv+K+gyZr9J+hgeLZ1w/r5B2FxIq 8PCbHW8zVNxMzTOBG1a/EIpw51H9vVdQWxSyfmT6BS9Z3HEcFyUrgksMC/JA5xC084kz TZBWymNDroHiEhOIAPEKCFewjFKi2OBmPyEMnj03Az253kMW1rEpn9E4Eqi425MW8ROB SMTLT/+bWL59SutUPKia1A8DXX9KJnzdqXbSxSex8rfOipiaYt3NPCpitvyhX/t9zZSU A9Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FDINmzAj; spf=pass (google.com: domain of linux-kernel+bounces-19659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19659-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ka21-20020a170907921500b00a28ba1f1028si2928677ejb.408.2024.01.08.06.00.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 06:00:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FDINmzAj; spf=pass (google.com: domain of linux-kernel+bounces-19659-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19659-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id A6F551F22E5B for ; Mon, 8 Jan 2024 14:00:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2512C46539; Mon, 8 Jan 2024 14:00:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="FDINmzAj" X-Original-To: linux-kernel@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 E316246527 for ; Mon, 8 Jan 2024 14:00:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704722411; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=C4Jpu1x2ehrCuoX9MkyxWci4WQ2RVknzin0m1bbF2hU=; b=FDINmzAj6TZ5JgNWbljZEbSCtcnKV6bIDsxA3OBckHvDP7wwet8exdjnHapE2g1NXBj/5N zCyePO6n/GtYdFcCNVprHSSopGMrdceJ1qh1KwtqLIBzblf/ZJT/IYhCEgS8+Yt8LZukiQ s2l49hh2irQrAxk9ZaZzzK0ZDd3h+t0= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-608-4tkZdn3fP5GOArgDJQqFOQ-1; Mon, 08 Jan 2024 09:00:10 -0500 X-MC-Unique: 4tkZdn3fP5GOArgDJQqFOQ-1 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-a28fd25ef4fso89519966b.2 for ; Mon, 08 Jan 2024 06:00:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704722409; x=1705327209; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=C4Jpu1x2ehrCuoX9MkyxWci4WQ2RVknzin0m1bbF2hU=; b=KtGmxDg0UEbvsMEy5B6g1TRmW1T5uAz/qIdWOzVQIXCcbp+eXm+mK78HZlzHUcDo3w bCfAaJhwGZotqwOpEzx9/aC9ivlC0V3FFDLWMPGSm6w0ARYOMhALLa0dOdXLw1KuryYs S3KiIXIKJlkPZkqxd6YS3ecbObPI5+G9hV4c/s9XCwBUxFTGAYnha/2Kk1UD6CK8YGfU VwuKTtTCobVhRvmt6Qh/raKqAxsyvXLbfiu+qXGDISZAXxLzIkHVMjk8e45x2ohbkbvY 159uv2LrsDtjeTuDjkm4mdmhAVQqQQLxKvmH/9egWQPIoe23Vu0AqrgQPLwDVuMOyemP dykQ== X-Gm-Message-State: AOJu0YzuTVmOx/q4+WZZvJIHj5WNWhGXXJN44XkP5IO4Ac+rNJEjtQAo 1xGWcw+MkLNWZsO/tOLAOQxqKbe3Fv/hg/KCzftjipzfRhS1/nXmKavrwqc9f8eq6vozDeyEvem VCEaWq30BVcf5PRk+hsATLxsv8kq1N/39 X-Received: by 2002:a17:907:7ba8:b0:a23:5684:6106 with SMTP id ne40-20020a1709077ba800b00a2356846106mr2133710ejc.89.1704722408988; Mon, 08 Jan 2024 06:00:08 -0800 (PST) X-Received: by 2002:a17:907:7ba8:b0:a23:5684:6106 with SMTP id ne40-20020a1709077ba800b00a2356846106mr2133695ejc.89.1704722408612; Mon, 08 Jan 2024 06:00:08 -0800 (PST) Received: from [10.40.98.142] ([78.108.130.194]) by smtp.gmail.com with ESMTPSA id p23-20020a170906785700b00a2b10e20292sm166122ejm.215.2024.01.08.06.00.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Jan 2024 06:00:07 -0800 (PST) Message-ID: <6a56b575-6f08-45bc-801c-54ca01384a20@redhat.com> Date: Mon, 8 Jan 2024 15:00:05 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/4] platform/x86: wmi: Event handling fixes Content-Language: en-US To: Armin Wolf , ilpo.jarvinen@linux.intel.com Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240103192707.115512-1-W_Armin@gmx.de> From: Hans de Goede In-Reply-To: <20240103192707.115512-1-W_Armin@gmx.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Armin, On 1/3/24 20:27, Armin Wolf wrote: > This patch series contains various fixes for the handling of > WMI events. The first patch fixes an issue where the WMI core > would return an error even when a legacy WMI notify handler > was installed successfully. > > The second patch cleans up the last remains of > commit 58f6425eb92f ("WMI: Cater for multiple events with same GUID"), > which is useless now that legacy WMI handlers cannot see duplicated > GUIDS. This however might highlight a potential problem: > > In the email thread concerning aforementioned commit, a (now legacy) > WMI driver was mentioned which depended on this functionality. > I believe this driver is the dell-wmi-aio driver, so this driver is > likely already broken for some time and should be converted to the > new bus-based interface. > > The next patch decouples the legacy WMI notify handlers from the > wmi_block_list, while the last patch fixes a race condition when a > notify callback is called by the WMI core. > > All patches have been tested on a Dell Inspiron 3505 and a > Acer Aspire E1-731. Thank you for your patch series, I've applied this series to my review-hans branch: https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans Note it will show up in my review-hans branch once I've pushed my local branch there, which might take a while. I will include this series in my next fixes pull-req to Linus for the current kernel development cycle. Regards, Hans > Armin Wolf (4): > platform/x86: wmi: Fix error handling in legacy WMI notify handler > functions > platform/x86: wmi: Return immediately if an suitable WMI event is > found > platform/x86: wmi: Decouple legacy WMI notify handlers from > wmi_block_list > platform/x86: wmi: Fix notify callback locking > > drivers/platform/x86/wmi.c | 179 +++++++++++++++++++++++-------------- > 1 file changed, 111 insertions(+), 68 deletions(-) > > -- > 2.39.2 >