Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1888620imj; Sun, 17 Feb 2019 17:39:39 -0800 (PST) X-Google-Smtp-Source: AHgI3IYvzBWV83qxpiyT/MU8Bi5KKGip97LRYHaz4nBwDb9dEJqXaV3zBPTi6LS8NSDr9smwZBt8 X-Received: by 2002:a17:902:6b4b:: with SMTP id g11mr22184110plt.92.1550453979412; Sun, 17 Feb 2019 17:39:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550453979; cv=none; d=google.com; s=arc-20160816; b=L4P15VXr6TvjzFmKqMbAbAFnYNmQUku8pwJoAjnX46e+J+GiTwiJdUTb2HCuQLB9KB t41I6SwiylNi91bkfeoXGBV5rv5YlMcZVu9aFgzBD6UNcod2MiS3gU/FIWkY/HCP84Zf JH9QWYBNfH7vaFOO4fWblD1fbJw516Y6Omt5ge5D1rk5OobqoJW2kM3kgitF4FMbWDQ3 TuOl+jaGvBlnmq8RgAy644768a0lI77eClfUTuGC77B6maJS4/lzduOSYHn5PAgjIFT/ GQnUmrv/yb+L6wuuBp0q3y4fzGrFTCqG78LJP9/5EW8IJjwcmUqL17d6g/DTezcE1wyL ZfKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:organization :subject:cc:to:from; bh=Cww5dUJzSo3UeJuvuD6LUToZzZwxivWIQ+Bs3LC1eNg=; b=CqCimHQ7BzB5zOpJ987mgKWZpn0bImw+x2wjz9FFJ64wuhGbWXaEyVeHmEaMnroehm nGKLfik9fXBlpBb445Rht0uOZlgFLh0ZNcSHGn7j/ckbOlnDhEgkHRL+PR2t8vDDeRjE Nvrqmyfp8lgh3qM1YZE6/dv0EsRTuIn+MPppwbqiRiexamMaT06eMKIrr5MWF3fBJcMI cPGQ1lCG/KpI0yKMi/D74gOwWvo51nubZ73rfQMSg9p/FLJz/fhEL/Lp2sa3Lx996QLh zRb5ddPmkh9P2jPkTNrKZMaaf3ZBzknZeC3Cuy1mMpiEbO1mO53+IJOM1LhRYcPWLM9A jtlA== 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 e6si11839977pgp.504.2019.02.17.17.39.23; Sun, 17 Feb 2019 17:39:39 -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 S1728156AbfBRBh6 convert rfc822-to-8bit (ORCPT + 99 others); Sun, 17 Feb 2019 20:37:58 -0500 Received: from linux-libre.fsfla.org ([209.51.188.54]:51134 "EHLO linux-libre.fsfla.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726281AbfBRBh6 (ORCPT ); Sun, 17 Feb 2019 20:37:58 -0500 Received: from free.home (home.lxoliva.fsfla.org [172.31.160.164]) by linux-libre.fsfla.org (8.15.2/8.15.2/Debian-3) with ESMTP id x1I1bO7W006827; Mon, 18 Feb 2019 01:37:26 GMT Received: from livre (livre.home [172.31.160.2]) by free.home (8.15.2/8.15.2) with ESMTP id x1I1b4jV007048; Sun, 17 Feb 2019 22:37:04 -0300 From: Alexandre Oliva To: Aaro Koskinen Cc: 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 Organization: Free thinker, not speaking for FSF Latin America References: <20190208083038.GA1433@localhost.localdomain> <20190211125506.GA21280@localhost.localdomain> <20190211230614.GB22242@darkstar.musicnaut.iki.fi> <20190217235951.GA20700@darkstar.musicnaut.iki.fi> Date: Sun, 17 Feb 2019 22:37:03 -0300 In-Reply-To: <20190217235951.GA20700@darkstar.musicnaut.iki.fi> (Aaro Koskinen's message of "Mon, 18 Feb 2019 01:59:52 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Scanned-By: MIMEDefang 2.84 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Feb 17, 2019, Aaro Koskinen wrote: > I tested few older kernels, and it seems that the spurious IRQ issue has > been always there after switching to libata (commit 7ff7a5b1bfff). It has > been unnoticed as the 100000 irq limit wasn't reached during boot. I see, thanks. That would probably make it hard to bisect indeed. >> The kernel still disables irq14 early on, and then runs slow. > This hack works only for CONFIG_PATA_CS5536. You are probably using PATA_AMD. 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) Just to be sure, I added some printks to cs5536_noop_freeze, and here's what I got in dmesg instead: [ 4.452000] pata_cs5536: freeze: checking status... [ 4.452000] pata_cs5536: freeze: checked, clearing... [ 4.452000] pata_cs5536: freeze: cleared [ 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.468000] pata_cs5536: freeze: checking status... [ 4.468000] pata_cs5536: freeze: checked, clearing... [ 4.468000] pata_cs5536: freeze: cleared [ 4.652000] random: [...] [ 5.920000] irq 14: nobody cared (try booting with the "irqpoll" option) now, maybe I just don't understand what effects the patch was supposed to have. The system still feels very slow, but I haven't timed anything; could it be that it had the effect of keeping the IRQ functional after all, but 5.0-rc6 is slower than earlier kernels for other reasons? Like, /proc/irq/14/pata_cs5536/ is there, but I haven't checked whether it was there before the patch. Do you suggest any way to tell whether it had the intended effect? -- Alexandre Oliva, freedom fighter https://FSFLA.org/blogs/lxo Be the change, be Free! FSF Latin America board member GNU Toolchain Engineer Free Software Evangelist Hay que enGNUrecerse, pero sin perder la terGNUra jamás-GNUChe