Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1843001imj; Sun, 17 Feb 2019 16:20:21 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ4Ylpzpl7nUsES5GkSLK46aQWNwD7spwpJuH7Mx3+O5xJQ6sEJFsJWyGYGdJpN14qzqe3V X-Received: by 2002:a17:902:298a:: with SMTP id h10mr22533334plb.312.1550449221189; Sun, 17 Feb 2019 16:20:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550449221; cv=none; d=google.com; s=arc-20160816; b=hGh9jXbjz/KbiOprTekTQZ/pAdZteebZOwzlp+umKVPbendoPz/U6Pr8L5BfTOsfRJ QSnpEmJrqvYVlkSlCHBFmuQOiP1xVYZjz+SR2MptulkRvbu8FKCENC2EzsjRKRu6oJdU uu6D5uQ3c2Tf5vZ/6vKDF7Q0Rny7o2K7drJnWAdQxGFuaqqBNQQNZEvb/tqaDu9PGMPv GuVgHy4deZokW/V6zR207P85/454U9S7K6LRmbGWUuUFmcmmcTDlOXscOePAlWmaPgTB spXGP5337sRZUcMhC57gmrYtih5DK1/c+wy1rPCqZXF9oK1YlxKQwVM1REvXXc56cVQQ 8BdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=z8l7/nZzFwpqHkHKOWt60fYbqQtS7Jwbd6PZ0/g9oHU=; b=p3IhDbUDQDtvUfAUSzbDmO+ZKPXKlaXDPBdhRrjuOu4jwG/4bF5IICUcUrZRBEUwcA jTgITnJ4h/mXQhInI+5YQfSlD7NdiKt8kz+FXjgdrshzkhEp/yYoPdfPn4We6S+6ftwU KONVGhlq+mSaE9vYI7fvaEvk+Hb6z+u6WEgYroJa7gRAi3CsPuRzphvSxCBOFCzPTOkN NrklvRmDoqvCyHsH23SKN8Td8uegBZLdESV0ClmollV4y/jw2oArBOvWA5fy3Vjz5TSI PRJ+xV4PLLsJ+QDxi4pdjgcyEq7TPHbulQ07msEWKPtb8zKxp2JTcWcJWzQkOiAs2gA3 oWWw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u84si2205720pfa.134.2019.02.17.16.19.31; Sun, 17 Feb 2019 16:20:21 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727663AbfBQX7z (ORCPT + 99 others); Sun, 17 Feb 2019 18:59:55 -0500 Received: from emh01.mail.saunalahti.fi ([62.142.5.107]:39720 "EHLO emh01.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726304AbfBQX7y (ORCPT ); Sun, 17 Feb 2019 18:59:54 -0500 Received: from darkstar.musicnaut.iki.fi (85-76-79-75-nat.elisa-mobile.fi [85.76.79.75]) by emh01.mail.saunalahti.fi (Postfix) with ESMTP id 2CAB02001F; Mon, 18 Feb 2019 01:59:52 +0200 (EET) Date: Mon, 18 Feb 2019 01:59:52 +0200 From: Aaro Koskinen To: Alexandre Oliva 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 Message-ID: <20190217235951.GA20700@darkstar.musicnaut.iki.fi> References: <20190208083038.GA1433@localhost.localdomain> <20190211125506.GA21280@localhost.localdomain> <20190211230614.GB22242@darkstar.musicnaut.iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 17, 2019 at 01:59:26AM -0300, Alexandre Oliva wrote: > On Feb 11, 2019, Aaro Koskinen wrote: > > > ATA (libata) CS5536 driver is having issues with spurious IRQs and often > > disables IRQs completely during the boot. You should see a warning > > in dmesg. This was the reason for slowness on my FuLoong mini-PC. A > > workaround is to switch to old IDE driver. > > Thanks. I see a NIEN quirk in ide-iops.c that's enabled for the hard > drive model I've got on my yeeloong, but that's not even compiled in my > freeloong builds. I don't see any changes in libata between 4.19 and > 4.20 that could explain the regression either. 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. But since libata probe is asynchronous some other kernel thread may delay it, and apparently some change in recent kernels adds enough delay to make the IRQ count to hit the limit. > I'm afraid there's no observable change in behavior after installing the > proposed patch at > https://lore.kernel.org/linux-mips/20190106124607.GK27785@darkstar.musicnaut.iki.fi/ > > 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. A.