Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2619939rdb; Fri, 22 Sep 2023 04:13:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEoyiaV2cZsV5bbGb5UD93lulM01BA53DHNt2F8+XTzERrjNaFYr8N5XHjOHxGSgA6nGxUI X-Received: by 2002:a05:6870:2101:b0:1d4:cb38:f19e with SMTP id f1-20020a056870210100b001d4cb38f19emr9251268oae.9.1695381217015; Fri, 22 Sep 2023 04:13:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695381216; cv=none; d=google.com; s=arc-20160816; b=yoQoZSfv0LIg4+XLZPmw5EPO32uF68TPxIwQ6qqlwrZIHYhtIw0KjpxAIfnvFXso9i f3n8CeWTKcGA5OcF7a6TjlUS1tpDmMeptUpVlUu84bnSbyG+JUjefQh6CogYWNHQ1UaH jo1/CG55rrJPcvyM3AplMkkwg544d4DrmaH//HQ/5cZa+5OTQOl6nBpoCyI29wTOa6KI zgCdLR/vmimCB6t8+dkxyHmTQClydvj2L9bu28LhBArRi4q+h+U/0qKzGMc24/O6aO60 GM+ZFMA62x3v5Ze5x+fVpQn31JqNXTmaWssfUn+cjt39kBq0/vnG2LTXuQ9ZHKdFq6DS 4KxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=LGLvEUCLByX56ZHTlqmLlwmZ6pTbCna8gvztcJYDoU8=; fh=WcpGqkVyo9LuGTpGid8iiALc3CxqHt5W+w1W2ODweyE=; b=WtZqiAus9DuuHM2/Avz0Ozx9Z6lMDqS7rI6BW2tPcj7LMWySFHq8X6731OTG/K+Wgg xa84FTuZajZ6OTYRqReOcyRS+ga+kFghGQuoUfMLpLYH0DJAIsbxIivNElQkMMN8gpEu RvazpzJob9pPz1OryVdNVclQ6oyWAM0lWvXU9W4IoZbcz2roC+wE+hAFqHfkuRJusSVG mHEr2ygBVGL2VgZaHEzHJZFpnIsHZipu+zHjt+ciCNoL1E4q12071uXSD5QxIM3ujx0P Ky0xGfHthWItw7RlPGFYw3qu74IDCPBuEiGrav3ZNSI1rl2AzFCXBmB/8sHjZJSV0mMg sYmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=rauudwVU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id x191-20020a6386c8000000b0057d08dac74csi1014019pgd.157.2023.09.22.04.13.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 04:13:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=rauudwVU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id EC2FC8084586; Thu, 21 Sep 2023 14:16:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232607AbjIUVP7 (ORCPT + 99 others); Thu, 21 Sep 2023 17:15:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233116AbjIUVPT (ORCPT ); Thu, 21 Sep 2023 17:15:19 -0400 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAD19A150A for ; Thu, 21 Sep 2023 10:57:20 -0700 (PDT) Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id AA19F3F68C for ; Thu, 21 Sep 2023 06:08:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1695276528; bh=LGLvEUCLByX56ZHTlqmLlwmZ6pTbCna8gvztcJYDoU8=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=rauudwVUP8l7s8SwO4VSe69N7gnmCVEH1jsNY1fFoKehhXjOrLiPmAoeqI7widzy7 ZUxhg4oe+oHsZfKmL/AMw6mjza/a7C4z12xb4eiJ+dfy2KR5I2nipRDHlvAGbxCnWh canQ+lz3VdI78sZMi0Yr86AqHTZJxAVIREWSg5gLp6dut/4Ne+d7F4W7G8Xtw5M+jq IC6PBAWXzjBkgllANmR9e7E1ru5kZ0cJkRwgmeuSWpu/kP7PIlyLwPRCCZdh7Pb3Bs Y3VCQo9nYSaSkQcZC2VDeulP1/JUSxlpXKP4s509rTW/mPkfmwJ0hUIp87GeLa6yEs sEkFWaQd34ztQ== Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-274a28033b2so385172a91.2 for ; Wed, 20 Sep 2023 23:08:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695276527; x=1695881327; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LGLvEUCLByX56ZHTlqmLlwmZ6pTbCna8gvztcJYDoU8=; b=YOPL+wdsvQQiHxGmJuhzsAK1wTP1D5+ovkHwEompdm+fwlViGhoyaJBJX1J4YJ36ru cOCcpe9DFlohSYHmLI7D/KloXUdqZKI6mFBn9pfDWR1U+GQcEXAEMEr3OXbIJ4bPyw+u SCybwCAP8QTxWi2yynh3obI8XhkYDkldjRXCzTS/Bt2uvYNq2pSfkMrwZ+5I00/M1imH Lz108tXO6NeBP19satvX2MHeNCRRu2iOtcdJsnvODxS2OGLnJQ8UN2grX5GZIMUjmGas 967GK8qk8XB0Jj8bTn3K3pCY9CcW31LKswl1QGUH0Ewuo5ca6aKwJV8tvkh27eFVNpjV hRfw== X-Gm-Message-State: AOJu0YwmnneA/hQK1SnZ7caReQM1i3DJ8LlniYHWugPYxxqJkTiTjlr4 w88vdW/+Bad9qsF5prON37n5WO3ZhlwFrcaedsA3pnBASJ3bntQe3vpiGAFD19VlPnkA2BzVmg+ /7UaoRJNs0UG+wc2IYoPgJvcWv0/Aiu8yBq8OXFg7SLPwfv54zwTire1TqRpRlkPl7Q== X-Received: by 2002:a17:90b:60f:b0:271:9237:a07f with SMTP id gb15-20020a17090b060f00b002719237a07fmr4869863pjb.32.1695276527092; Wed, 20 Sep 2023 23:08:47 -0700 (PDT) X-Received: by 2002:a17:90b:60f:b0:271:9237:a07f with SMTP id gb15-20020a17090b060f00b002719237a07fmr4869844pjb.32.1695276526779; Wed, 20 Sep 2023 23:08:46 -0700 (PDT) MIME-Version: 1.0 References: <20230914041806.816741-1-kai.heng.feng@canonical.com> <7b45ac2ed091497b4e21a6a5c19956161175ba16.camel@linux.intel.com> <67c85f083201ed2cda2cab198b40141ad21912a2.camel@linux.intel.com> In-Reply-To: From: Kai-Heng Feng Date: Thu, 21 Sep 2023 14:08:33 +0800 Message-ID: Subject: Re: [PATCH] HID: intel-ish-hid: ipc: Rework EHL OOB wakeup To: "Rafael J. Wysocki" Cc: srinivas pandruvada , "Xu, Even" , "jikos@kernel.org" , "benjamin.tissoires@redhat.com" , "linux-pm@vger.kernel.org" , "linux-pci@vger.kernel.org" , "Lee, Jian Hui" , "Zhang, Lixu" , "Ba, Najumon" , "linux-input@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 21 Sep 2023 14:16:06 -0700 (PDT) On Wed, Sep 20, 2023 at 2:00=E2=80=AFAM Rafael J. Wysocki wrote: > > On Tue, Sep 19, 2023 at 6:54=E2=80=AFPM srinivas pandruvada > wrote: > > > > On Tue, 2023-09-19 at 15:36 +0800, Kai-Heng Feng wrote: > > > On Mon, Sep 18, 2023 at 11:57=E2=80=AFPM srinivas pandruvada > > > wrote: > > > > > > > > Hi Kai-Heng, > > > > On Mon, 2023-09-18 at 09:17 +0800, Kai-Heng Feng wrote: > > > > > Hi Even, > > > > > > > > > > On Mon, Sep 18, 2023 at 8:33=E2=80=AFAM Xu, Even > > > > > wrote: > > > > > > > > > > > > Hi, Kai-Heng, > > > > > > > > > > > > I just got feedback, for testing EHL S5 wakeup feature, you > > > > > > need > > > > > > several steps to setup and access > > > > > > "https://portal.devicewise.com/things/browse" to trigger wake. > > > > > > But currently, our test account of this website are all out of > > > > > > data. > > > > > > So maybe you need double check with the team who required you > > > > > > preparing the patch for the verification. > > > > > > > > > > The patch is to solve the GPE refcount overflow, while > > > > > maintaining S5 > > > > > wakeup. I don't have any mean to test S5 wake. > > > > > > > > > The issue is not calling acpi_disable_gpe(). To reduce the scope of > > > > change can we just add that instead of a adding new callbacks. This > > > > way > > > > scope is reduced. > > > > > > This patch does exactly the same thing by letting PCI and ACPI handle > > > the PME and GPE. > > > Though the change seems to be bigger, it actually reduces the duped > > > code, while keep the S5 wakeup ability intact. > > It may be doing the same. But with long chain of calls without > > verification, I am not comfortable. > > This can be another patch by itself to use the framework. > > I agree. > > Let's change one thing at a time. > > > But you are targeting a fix for overflow issue, which is separate from > > the use of PCI/ACPI framework. > > Yes, let's fix the bug first and make things look nicer separately. Right, please use the fix from Srinivas and I'll send a separate patch to make things looks better. Kai-Heng