Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2129543pxf; Sat, 27 Mar 2021 03:25:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHRwc12L03h2JiDWr4Rr9yqxKjCCH9gzVLvalBDJ3JtquNEoXWtHbHc5DMW8l7G4Iq1mLu X-Received: by 2002:a17:906:8043:: with SMTP id x3mr19357408ejw.149.1616840730474; Sat, 27 Mar 2021 03:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616840730; cv=none; d=google.com; s=arc-20160816; b=yYi8diCaDnuVmGdckHFfc6DRKZZflJ/9QKkKOOJimlB0WVzqs02IbZ6t0vT4i0ZBul SwunlFkj3G5TCNLYgF7ue7H5t/VQtrjtF1DJpHJ2PSJVPXkGS96Pbw8yOXzEf1t6oxYo e6haOQniPzz6ma5t8WRTyvrlFsCFOg/lmaY/gn/JF96i2DQ1Llt8SZ3dJk2ZcIShm9WM jOqy96Rhw5qg7QPzgBXLHO9W6W5pggjMpeh/+Wt9lkjFOA/xM4PItF3ZIUbO2FNaIbF/ yTIzaryFZesAWPBO6mZUAS03WaoPtjjjb34QoiyyT20cmOhwH/GFz/0V0LkYfIW+GQih se1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=273x73sg3T+DQJEbfcuIG0YkXOsDtzrhW9AdiSQMOsQ=; b=m4Udg0X9Njq2kXcMQo/DR3QCxaZieSDgnu6cMtWApIbsm+WUugisqmCy3DQ3fchsTK McsOm5L062+6G4p6ZJHEzqJLRNCQDquP/nv/QkXFS+kXv//dLuSPxZXPl/DEVk0UC1tH Wi+oCqL8A4wSPkXggS7BXU1r+tbhkATGKKmFJvUrW4Z87Drgwmta3z85Wi3yRzymRlFu F/wfiKzF75Y4rtC6w29kHVNOXnVGdDpmFVUrDrnJfODWKr1mOTOkg8daBTeMNYElZM9u +D9sQ7dQKty7jICw3uRgwCciQvo6SYEKksl91ietX1xpisKRzfCi4tzxtLgdLZmOB22d nTrQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q5si8964834eds.165.2021.03.27.03.25.07; Sat, 27 Mar 2021 03:25:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gentoo.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230427AbhC0KYk (ORCPT + 99 others); Sat, 27 Mar 2021 06:24:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229875AbhC0KYj (ORCPT ); Sat, 27 Mar 2021 06:24:39 -0400 Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5BB7C0613B1; Sat, 27 Mar 2021 03:24:39 -0700 (PDT) Date: Sat, 27 Mar 2021 10:24:33 +0000 From: Sergei Trofimovich To: John Paul Adrian Glaubitz Cc: linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org, storagedev@microchip.com, linux-scsi@vger.kernel.org, Joe Szczypek , Scott Benesh , Scott Teel , Tomas Henzl , "Martin K. Petersen" , Don Brace Subject: Re: [PATCH] hpsa: fix boot on ia64 (atomic_t alignment) Message-ID: <20210327102433.179ce571@sf> In-Reply-To: <23674602-0f14-0b71-3192-aa0184a34d6e@physik.fu-berlin.de> References: <5532f9ab-7555-d51b-f4d5-f9b72a61f248@redhat.com> <20210312222718.4117508-1-slyfox@gentoo.org> <23674602-0f14-0b71-3192-aa0184a34d6e@physik.fu-berlin.de> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 17 Mar 2021 18:28:31 +0100 John Paul Adrian Glaubitz wrote: > Hi Sergei! > > On 3/12/21 11:27 PM, Sergei Trofimovich wrote: > > The failure initially observed as boot failure on rx3600 ia64 machine > > with RAID bus controller: Hewlett-Packard Company Smart Array P600: > > > > kernel unaligned access to 0xe000000105dd8b95, ip=0xa000000100b87551 > > kernel unaligned access to 0xe000000105dd8e95, ip=0xa000000100b87551 > > hpsa 0000:14:01.0: Controller reports max supported commands of 0 Using 16 instead. Ensure that firmware is up to date. > > swapper/0[1]: error during unaligned kernel access > > > > Here unaligned access comes from 'struct CommandList' that happens > > to be packed. The change f749d8b7a ("scsi: hpsa: Correct dev cmds > > outstanding for retried cmds") introduced unexpected padding and > > un-aligned atomic_t from natural alignment to something else. > > > > This change does not remove packing annotation from struct but only > > restores alignment of atomic variable. > > > > The change is tested on the same rx3600 machine. > > I just gave it a try on my RX2660 and for me, the hpsa driver won't load even > with your patch. > > Can you share your kernel configuration so I can give it a try? Sure! Here is a config from a few days ago: https://dev.gentoo.org/~slyfox/configs/guppy-config-5.12.0-rc4-00016-g427684abc9fd-dirty -- Sergei