Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1926546imj; Sun, 17 Feb 2019 18:41:37 -0800 (PST) X-Google-Smtp-Source: AHgI3IalgdzP/I6SvGC8NnrV6WLTyt4uhg0m8GVxlAMq2adU+vGRXtfcj8sFhvFFps75FcRODxyP X-Received: by 2002:a62:c302:: with SMTP id v2mr22054809pfg.155.1550457696990; Sun, 17 Feb 2019 18:41:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550457696; cv=none; d=google.com; s=arc-20160816; b=Y2fPHk80sW/QYUWLld7jue3YATMMGPYp0ynpyGAFgy27saVxHNLAEpMfOT794BoqMU Fkicmok7O1QSVSl9HaT/QWjUk5xNApFTXFJ/XSuUNAeE4CiLOGr/ETl7QYSRWedsP0b7 siq+y7B2wVUl67RjFeN2j8r6drI+wN0kxfh+ZQh4IXqgfqYG5CApdLYd55e1twhOrUWT xk7j5EemvlrJnf6SmZD9rscr6BHucqO6mmEjamogoAY0hhrKcLoTrfsVcBdEgijy7NFE psC7oiSxuv1bXD0vhM4RK/dMJwRNR+/2SMYBRJY0YrRo5Gy/m5bDpmzbHHFxD77Exy+b 2B1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=ky9nTBrqRcVrry4YPQr0tHlcXRiFuQI7RDgITON56+E=; b=kEYCaAdeZ/tiBbxJ1HOKVLRYPWq6I3HS3QIHRBpCur5q7PYNnrAthMjLo8kghvo0Nt YyX4ghiIUlCXJAF28C+6xtnb2MzhzVepmORoQfRBekfnosmou5YpwpgwTbBHNN1JJFwu Ec/MudAsb3A1WzyJ0XIrFK3fkOvq3Qu2Y24AGw9ppsXwxbrZgTee8NfV8xexpBQqdenG uheMuybB51BeDUzPGZDrVeTMTU2He54oznN75rY40UESPd1T2hrF4agzXKJ2/TIpMNEY j2plgs6lZsIgLioH65c8vkZlp+is46GMaI2RIS7TiCUP+a5VDKtH8FmAgZIiip3j2+xd yRNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l4si11414282pgr.346.2019.02.17.18.41.21; Sun, 17 Feb 2019 18:41:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727947AbfBRClN (ORCPT + 99 others); Sun, 17 Feb 2019 21:41:13 -0500 Received: from eddie.linux-mips.org ([148.251.95.138]:52104 "EHLO cvs.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727266AbfBRClN (ORCPT ); Sun, 17 Feb 2019 21:41:13 -0500 Received: (from localhost user: 'macro', uid#1010) by eddie.linux-mips.org with ESMTP id S23992066AbfBRClLV9TIn (ORCPT + 1 other); Mon, 18 Feb 2019 03:41:11 +0100 Date: Mon, 18 Feb 2019 02:41:11 +0000 (GMT) From: "Maciej W. Rozycki" To: Alexandre Oliva cc: Aaro Koskinen , Tom Li , James Hogan , Jiaxun Yang , Huacai Chen , Ralf Baechle , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC] On the Current Troubles of Mainlining Loongson Platform Drivers In-Reply-To: Message-ID: References: <20190208083038.GA1433@localhost.localdomain> <20190211125506.GA21280@localhost.localdomain> <20190211230614.GB22242@darkstar.musicnaut.iki.fi> <20190217235951.GA20700@darkstar.musicnaut.iki.fi> User-Agent: Alpine 2.21 (LFD 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 17 Feb 2019, Alexandre Oliva wrote: > That's a reasonable guess, but I don't think so. I do have PATA_AMD > enabled as a module indeed, but it's not even loaded, much as I can > tell, whereas PATA_CS5536 is built into the kernel image, and dmesg > says: > > [ 4.460000] scsi host0: pata_cs5536 > [ 4.464000] scsi host1: pata_cs5536 > [ 4.464000] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0x4c60 irq 14 > [ 4.464000] ata2: DUMMY > [ 4.464000] pcnet32: [...] > [ 4.644000] random: [...] > [ 5.908000] irq 14: nobody cared (try booting with the "irqpoll" option) Is there an MMIO completion barrier missing there somewhere by any chance causing an IRQ that has been handled already to be redelivered because an MMIO write meant to clear the IRQ at its origin at handler's completion has not reached its destination before interrupts have been reenabled in the issuing CPU? Just a thought. Maciej