Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp563990pxf; Wed, 17 Mar 2021 10:34:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwy3XLdEt+avKwaNJuOt8Rip/7TZXxQwwo1SkPAJmOzNWYNoeJ1caAzzlbCnxQsxAOPVh7m X-Received: by 2002:aa7:c345:: with SMTP id j5mr42329973edr.338.1616002441916; Wed, 17 Mar 2021 10:34:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616002441; cv=none; d=google.com; s=arc-20160816; b=garBRmBL08RT8fU7T7QJbK4BpexLCKej68YPtoiC1GQRTXBpWFhnhB6AJfhrmAk6Ao ftVDn6pHgjVW4/lkvr9ZBeUwo2MWv4H1qSRWS3vkvDsOpvUivNU2y2D2bs/J4ppsS9aP SfvgFckdmyRcBiiDGQ6NdJrMz68M74deB/x9zuTO9ppHLbcv9ecAvdw59Sq1uppK+Ofy 7YLesvUidqbo5PHSib6PAOOF07bI1kyRSW7JcoK5PWJBJWj10pvN3aS/x1h8DF0U1a5O f7Ix2WlR7A5S1omQXuJBUp4et6tvf9qzNKuoVR8Q5aYMK81vLtBjnMhi1VX9mIp55emt 7qyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=dIRI0vsh0GWoqNAAqBJ16iIQme6ql/jaBi2Bgqvq0KE=; b=b+PJe6dyuBtJDtQHUtyA4naC3AQTMsAFKmpPee7iWqFD9LlmGppuL27yn7aRqALi9O J0AtqxW0BZ2UzXffvn8lnBuunhAAnMDdOgtcb2jHfQ5Wi7Uw9A+Bcau4WfM30VE7jNy+ vb3eNGaRkyGV58p08REaDQFv5BgbVlA6ApPRWHfgXGZGu2WJMBECHA7bCGIjh6BqCMD1 WkOgx6iCBONeQpL1nO3IUQl4OvKKyr/O6+clkT6i8FnI2rlAQ0NKdKubI3RLvJT3sQ/c 9wCRQGwgDeh1G/XgFEwoB4ijQr6gOT3kyBX6dtnoZNWnpgyuk/Odk9/4sK1+hDIR8j5f Vrjg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cc4si16995136edb.347.2021.03.17.10.33.35; Wed, 17 Mar 2021 10:34:01 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231657AbhCQR2z (ORCPT + 99 others); Wed, 17 Mar 2021 13:28:55 -0400 Received: from outpost1.zedat.fu-berlin.de ([130.133.4.66]:44407 "EHLO outpost1.zedat.fu-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231184AbhCQR2n (ORCPT ); Wed, 17 Mar 2021 13:28:43 -0400 Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.94) with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1lMZyC-002jNS-LK; Wed, 17 Mar 2021 18:28:32 +0100 Received: from p5b13a966.dip0.t-ipconnect.de ([91.19.169.102] helo=[192.168.178.139]) by inpost2.zedat.fu-berlin.de (Exim 4.94) with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (envelope-from ) id 1lMZyC-003vpV-EX; Wed, 17 Mar 2021 18:28:32 +0100 Subject: Re: [PATCH] hpsa: fix boot on ia64 (atomic_t alignment) To: Sergei Trofimovich , linux-kernel@vger.kernel.org Cc: 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 References: <5532f9ab-7555-d51b-f4d5-f9b72a61f248@redhat.com> <20210312222718.4117508-1-slyfox@gentoo.org> From: John Paul Adrian Glaubitz Message-ID: <23674602-0f14-0b71-3192-aa0184a34d6e@physik.fu-berlin.de> Date: Wed, 17 Mar 2021 18:28:31 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210312222718.4117508-1-slyfox@gentoo.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 91.19.169.102 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaubitz@debian.org `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913