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=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 5DDA6C3F2D1 for ; Sun, 1 Mar 2020 18:54:35 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2BBC0246B6 for ; Sun, 1 Mar 2020 18:54:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2BBC0246B6 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=eik.bme.hu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:51104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j8TjW-00073s-BN for qemu-devel@archiver.kernel.org; Sun, 01 Mar 2020 13:54:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40758) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j8Tix-0006aC-5k for qemu-devel@nongnu.org; Sun, 01 Mar 2020 13:53:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j8Tiw-00054T-A7 for qemu-devel@nongnu.org; Sun, 01 Mar 2020 13:53:59 -0500 Received: from zero.eik.bme.hu ([152.66.115.2]:13521) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j8Tit-0004wd-Qj; Sun, 01 Mar 2020 13:53:55 -0500 Received: from zero.eik.bme.hu (blah.eik.bme.hu [152.66.115.182]) by localhost (Postfix) with SMTP id 67D767476D5; Sun, 1 Mar 2020 19:53:53 +0100 (CET) Received: by zero.eik.bme.hu (Postfix, from userid 432) id 4DF4F746383; Sun, 1 Mar 2020 19:53:53 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id 4C761746381; Sun, 1 Mar 2020 19:53:53 +0100 (CET) Date: Sun, 1 Mar 2020 19:53:53 +0100 (CET) From: BALATON Zoltan To: Mark Cave-Ayland Subject: Re: [PATCH 2/2] via-ide: Also emulate non 100% native mode In-Reply-To: Message-ID: References: <32bb2eab213344151ca342bab5db2cf8c2758fb7.1583017348.git.balaton@eik.bme.hu> <57ff6676-5054-d3f6-f4fc-6ff02b09019f@ilande.co.uk> User-Agent: Alpine 2.22 (BSF 395 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 152.66.115.2 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-block@nongnu.org, philmd@redhat.com, qemu-devel@nongnu.org, Aleksandar Markovic , John Snow , Artyom Tarasenko , Richard Henderson Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Sun, 1 Mar 2020, BALATON Zoltan wrote: > is not legacy mode but "not 100% native mode". The prog-if is set to 0x8a > which corresponds to native mode but this is what the Linux fixup function > does, firmware sets it to 0x8f which means native mode. I mean, 0x8a legacy mode and 0x8f native mode, I see firmware poking 0x8f and Amiga like OSes reading that yet expecting legacy interrupts. Linux fixes up prog-if so its driver detects legacy interrupts but still uses ioports from PCI BARs. Regards, BALATON Zoltan