From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966113AbbDQOV5 (ORCPT ); Fri, 17 Apr 2015 10:21:57 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:50446 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932960AbbDQNcJ (ORCPT ); Fri, 17 Apr 2015 09:32:09 -0400 Date: Fri, 17 Apr 2015 06:32:04 -0700 From: Guenter Roeck To: linux-kernel@vger.kernel.org Cc: Chong Yuan , Wenbo Wang , Jens Axboe Subject: Re: Upstream kernel fails to run on qemu-sparc64 due to commit 889fa31f0 (blk-mq: reduce unnecessary software queue looping) Message-ID: <20150417133204.GA29300@roeck-us.net> References: <20150417063220.GA2871@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150417063220.GA2871@roeck-us.net> User-Agent: Mutt/1.5.23 (2014-03-12) X-Authenticated_sender: guenter@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-CTCH-PVer: 0000001 X-CTCH-Spam: Unknown X-CTCH-VOD: Unknown X-CTCH-Flags: 0 X-CTCH-RefID: str=0001.0A020203.55310B58.017B,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-CTCH-Score: 0.000 X-CTCH-ScoreCust: 0.000 X-CTCH-Rules: X-CTCH-SenderID: linux@roeck-us.net X-CTCH-SenderID-Flags: 0 X-CTCH-SenderID-TotalMessages: 1 X-CTCH-SenderID-TotalSpam: 0 X-CTCH-SenderID-TotalSuspected: 0 X-CTCH-SenderID-TotalConfirmed: 0 X-CTCH-SenderID-TotalBulk: 0 X-CTCH-SenderID-TotalVirus: 0 X-CTCH-SenderID-TotalRecipients: 0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: mailgid no entry from get_relayhosts_entry X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 16, 2015 at 11:32:20PM -0700, Guenter Roeck wrote: > Hi, > > my qemu-sparc64 tests fail to run with kernel v4.0-7245-ga39ef1a7c609. > Bisect points to commit 889fa31f00b ("blk-mq: reduce unnecessary software > queue looping"). Reverting this commit fixes the problem. > > I had a look into the commit, but I have no idea what might be wrong. > > I made the bisect log, images, configuration file, root file system, and directions > on how to run the images available at http://server.roeck-us.net/qemu/sparc64. > > Please let me know if there is any other information I can provide. > As additional information: + * Set the map size to the number of mapped software queues. + * This is more accurate and more efficient than looping + * over all possibly mapped software queues. + */ + map->map_size = hctx->nr_ctx / map->bits_per_word; On my system, hctx->nr_ctx is 1, and map->bits_per_word is 8. Thus map->map_size is set to 0, which doesn't make much sense. The system comes up if I replace the above code with map->map_size = DIV_ROUND_UP(hctx->nr_ctx, map->bits_per_word); I have no idea if that is the correct fix, though. Guenter