Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4252420pxu; Mon, 12 Oct 2020 13:47:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyj7nU41fmS0S/kMXixN7LTNY7onILVYZ6hkO+IqDNVpzxFae/vl/LWRMdGgoBhve2d5GkX X-Received: by 2002:a05:6402:2070:: with SMTP id bd16mr16342110edb.358.1602535656372; Mon, 12 Oct 2020 13:47:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602535656; cv=none; d=google.com; s=arc-20160816; b=k0HPOJdadquQkWFvfspcUyNw9rIws0dBpglCIVCJtqEcaXHq5S8smAeQdo6Nd04FFS 2RRvzyF51nkdSsQTcAB1Za/qp6ldTIeIipk06WsO9pdvKjVPG9vm0V/5VI1pEyIEWQBA oyiLGyObbBeQmUd/0LKa/MbLT4eZgOysEgufhcls5GXRe0zKT6aK/j4DNx1JrjcXuFrk G36/XlzLslMNnLAJdsxRJK3o1qaMDrPcEs1/Ck1qwzu03QgZtCZ8oQgY3H8Q9NZifhN4 /mb3k8qEeYuhYZvx25H5Nu341+m2Ysnn/0Qd18WijWPn5O9c/xjM6M32jjhUXwLJcqDr gMcg== 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; bh=9jagGr4LDj9u/z4jIqK49/fZjdAJVtADN8CummtB9ck=; b=XzTu6b36sCf/zmLO+9WbmX3utXtla8/LYPzdDEzwDWvNsYkRa4XcF/D64WRBZRvUDi ki/BobFbkzdsQMmfsx4Mf3GX1GuzECAQegDCAqtVMsWUjScYs6MRXQxcp6x/Ti8gbQoq eEL4y0jKqbws/aSPxf1kefflHm/oXVW9BdfrQmWR2foksa1lb8ImUaPb0D4cnFYk6Kd7 NWDRIMCFiTcQsbz8fLKwBdzLbq87fT4M4QrhXqhV6DbDq6LLMFvOvd/clppzEL33I6Ye zMQl1C+8jbrr30iXmCEsLmqHLsh3DsWtvBAQLISmb2jycpslt3f3v1hCiQoFE8fw7lGn GjAg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e6si13042775ejq.395.2020.10.12.13.47.13; Mon, 12 Oct 2020 13:47:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387963AbgJLLAl convert rfc822-to-8bit (ORCPT + 99 others); Mon, 12 Oct 2020 07:00:41 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:33668 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387851AbgJLLAl (ORCPT ); Mon, 12 Oct 2020 07:00:41 -0400 Received: by mail-ot1-f68.google.com with SMTP id t15so15520865otk.0; Mon, 12 Oct 2020 04:00:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=1zzGoaY2S/EFy3jNz5H4aQ0+yU4Sr8kmv9ptMMnIcf8=; b=e9RTGE2+RhmJBDmIoHQ7f6HjRY7yZ9NkDHLJRtH65Gu2RyEHV//B4jE6GGZtfAbkPT Hew+hrYmoKMiqr5u6ELTFYXNB3LbF9QVvYXY2NL2aVmfWvFrd2G3m56nZhYsN1CFMM7H pbThAMpWrWpXRqajslMzzEcyvAdaOQv7N9KYD+mkDE01N5yohBxKcyETeg7pCe1hVTXV /1T7ykvfT6DQtpBrpvNawsGGc9bjVBPxkCnBgVvmznPM1FIbJO2Rr8Kqd61EWPR0tyUE BSa22mBaNEYINla4Rj/zPEKHA090RZYdgk63xLDpbbBWcXOVaw6HhvIpY8x7rz2USI1x 3owA== X-Gm-Message-State: AOAM531IbYyaBrA8pxqKvule9703OmXLVSWVdG1xv2a727CL8b4pB3dm OE0UptjUl14q0lYHC2uBUA2Mj/y/vfa1kUlxFO8= X-Received: by 2002:a9d:3626:: with SMTP id w35mr18911107otb.206.1602500439914; Mon, 12 Oct 2020 04:00:39 -0700 (PDT) MIME-Version: 1.0 References: <1a69c5bc-ccc4-68db-7871-af05a70052c9@molgen.mpg.de> <20201007221628.GW1009802@dtor-ws> <7921b792-c99a-659c-730f-ecb25cb7f04b@molgen.mpg.de> In-Reply-To: <7921b792-c99a-659c-730f-ecb25cb7f04b@molgen.mpg.de> From: "Rafael J. Wysocki" Date: Mon, 12 Oct 2020 13:00:28 +0200 Message-ID: Subject: Re: i8042_init: PS/2 mouse not detected with ACPIPnP/PnPBIOS To: Paul Menzel Cc: "Rafael J. Wysocki" , Dmitry Torokhov , "Rafael J. Wysocki" , Len Brown , linux-input@vger.kernel.org, LKML , ACPI Devel Maling List , Hans de Goede Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 12, 2020 at 12:50 PM Paul Menzel wrote: > > Dear Rafael, > > > Am 12.10.20 um 12:39 schrieb Rafael J. Wysocki: > > On Sun, Oct 11, 2020 at 1:08 AM Paul Menzel wrote: > >> > >> Dear Dmitry, dear Rafael, dear Len, > >> > >> > >> Am 08.10.20 um 00:16 schrieb Dmitry Torokhov: > >> > >>> On Wed, Oct 07, 2020 at 11:18:41PM +0200, Paul Menzel wrote: > >> > >>>> On the Asus F2A85-M PRO Linux 5.9-rc8 (and previous versions) does not > >>>> recognize a plugged in PS/2 mouse using the Plug & Play method. The PS/2 > >>>> keyboard is detected fine, and using `i8042.nopnp`, the PS/2 mouse also > >>>> works. > >>>> > >>>>> [ 1.035915] calling i8042_init+0x0/0x42d @ 1 > >>>>> [ 1.035947] i8042: PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1 > >>>>> [ 1.035948] i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp > >>>>> [ 1.036589] serio: i8042 KBD port at 0x60,0x64 irq 1 > >>>>> [ 1.036621] initcall i8042_init+0x0/0x42d returned 0 after 687 usecs > >>>> > >>>> But, the DSDT includes the “mouse device”. From > >>>> > >>>> acpidump > dump.bin; acpixtract dump.bin; iasl -d *dat; more dsdt.dsl > >>>> > >>>> we get > >>>> > >>>> Device (PS2M) > >>>> { > >>>> Name (_HID, EisaId ("PNP0F03") /* Microsoft PS/2-style Mouse */) // _HID: Hardware ID > >>>> Name (_CID, EisaId ("PNP0F13") /* PS/2 Mouse */) // _CID: Compatible ID > >>>> Method (_STA, 0, NotSerialized) // _STA: Status > >>>> { > >>>> If ((IOST & 0x4000)) > >>>> { > >>>> Return (0x0F) > >>>> } > >>>> Else > >>>> { > >>>> Return (Zero) > >>>> } > >>>> } > >>>> > >>>> and the identifiers PNP0F03 and PNP0F13 are both listed in the array > >>>> `pnp_aux_devids[]`. But adding print statements to `i8042_pnp_aux_probe()`, > >>>> I do not see them, so the function does not seem to be called. > >>> > >>> My guess is that _STA returns 0 indicating that the device is not > >>> present. I would try tracking where IOST is being set and figuring out > >>> why it does not have mouse bit enabled. > >> > >> Does the ACPI subsystem allow to track, how ACPI variables(?) like IOST > >> are read and set? > > > > My guess would be that IOST is a field in an operation region which > > would indicate that it is initialized by the bootstrap part of the > > BIOS. > > Thank you for your answer. But how can I verify that? Inspecting the ACPI tables from the system in question could help you to find out whether or not IOST really is a field in an operation region, but its initial value may not be possible to determine this way. > Is there a Linux kernel parameter, that would print it? Not that I know of.