From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 45D73C433DF for ; Mon, 12 Oct 2020 10:39:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0371220E65 for ; Mon, 12 Oct 2020 10:39:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602499173; bh=f48pDBrUDyK36aPxRtD17FTyi5szeFgKV/m3iTM6u1Y=; h=References:In-Reply-To:From:Date:Subject:To:Cc:List-ID:From; b=idEVapicGnHrXFwElIOFLiWoFgGcH+zLx5xZz9dS/jFvby2+qoxPvM45TTNhXSTan +q2LXdrKL724pimkSqfT3jsBR0skH6jFMT9vOq6cTcNfdFUPnCgJ/seF0D5a3sEXD+ oBQ6RU5aX6fr4pAJsk/1FQPyyoDgqdv3fsR/i2KY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387583AbgJLKjc convert rfc822-to-8bit (ORCPT ); Mon, 12 Oct 2020 06:39:32 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:36171 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387522AbgJLKjc (ORCPT ); Mon, 12 Oct 2020 06:39:32 -0400 Received: by mail-ot1-f66.google.com with SMTP id 32so2243658otm.3; Mon, 12 Oct 2020 03:39:31 -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=opXrJXYgOc86OsjS3+F86ovavBxANA1eFPkkkGV4Wpw=; b=eMR+LwYoxHK4W0lHydMDtRNb+zY/wUOPMRQZwbk8aeDYj95cHvMAF92X6n5DYIK3ev Fhf2dj4vz23EbMbgjcF36dalatMrBYuwv3/gxMAqdoWW5D7lHw2dDltLuzGDIcDWluaT VqYZVp0hyR2downeYJTsSJn7fm5HYCK3FDZzzLageojp0ENPL9Oju9qDRjLujsW4H+bs lqqb2OeNq2NIrq7DYdP3+9ySpMpGhDZqfet/3VP6AcrGA21BXugnr7XHgbDqS2nYK1Xg hOxE6NzFJ5zIOKljc5cR36J2F3NYhOKyhCFAhw5CI+wLjzyh44aHGff9matxUIdn9PxO zJwQ== X-Gm-Message-State: AOAM532O/vWBp3q+zGzmMA7KMRrE+a375bmEfJY3M3DD6R476hIUS3AL fELUow/dXTawts97DcZdk4sjrfPvU+fNAx5kH6E= X-Google-Smtp-Source: ABdhPJwehpaAcH6PNfSoK8/dVThZ4KPPAwj3Q+bSn0tJneTSoVGBQg25bfJFFx67gieCVHfsNZsUog5va/k2bXW30zQ= X-Received: by 2002:a9d:349:: with SMTP id 67mr18661831otv.321.1602499170792; Mon, 12 Oct 2020 03:39:30 -0700 (PDT) MIME-Version: 1.0 References: <1a69c5bc-ccc4-68db-7871-af05a70052c9@molgen.mpg.de> <20201007221628.GW1009802@dtor-ws> In-Reply-To: From: "Rafael J. Wysocki" Date: Mon, 12 Oct 2020 12:39:15 +0200 Message-ID: Subject: Re: i8042_init: PS/2 mouse not detected with ACPIPnP/PnPBIOS To: Paul Menzel Cc: 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-acpi@vger.kernel.org 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.