Re: [PATCH] hpsa: fix boot on ia64 (atomic_t alignment)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Arnd Bergmann <arnd@xxxxxxxxxx>
- Subject: Re: [PATCH] hpsa: fix boot on ia64 (atomic_t alignment)
- From: "Martin K. Petersen" <martin.petersen@xxxxxxxxxx>
- Date: Tue, 16 Mar 2021 22:25:30 -0400
- Cc: Don.Brace@xxxxxxxxxxxxx, Sergei Trofimovich <slyfox@xxxxxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>, linux-ia64@xxxxxxxxxxxxxxx, storagedev@xxxxxxxxxxxxx, linux-scsi <linux-scsi@xxxxxxxxxxxxxxx>, jszczype@xxxxxxxxxx, Scott.Benesh@xxxxxxxxxxxxx, Scott.Teel@xxxxxxxxxxxxx, thenzl@xxxxxxxxxx, "Martin K. Petersen" <martin.petersen@xxxxxxxxxx>, John Paul Adrian Glaubitz <glaubitz@xxxxxxxxxxxxxxxxxxx>
- In-reply-to: <CAK8P3a3JYmhbN3TXB2cWGfXGKgsUa9Hg=ZvWckTaL_31OMgbtQ@mail.gmail.com> (Arnd Bergmann's message of "Tue, 16 Mar 2021 19:28:22 +0100")
- Organization: Oracle Corporation
- References: <5532f9ab-7555-d51b-f4d5-f9b72a61f248@redhat.com> <20210312222718.4117508-1-slyfox@gentoo.org> <SN6PR11MB2848561E3D85A8F55EB86977E16B9@SN6PR11MB2848.namprd11.prod.outlook.com> <CAK8P3a3JYmhbN3TXB2cWGfXGKgsUa9Hg=ZvWckTaL_31OMgbtQ@mail.gmail.com>
Arnd,
> Actually that still feels wrong: the annotation of the struct is to
> pack every member, which causes the access to be done in byte units on
> architectures that do not have hardware unaligned load/store
> instructions, at least for things like atomic_read() that does not go
> through a cmpxchg() or ll/sc cycle.
> This change may fix itanium, but it's still not correct. Other
> architectures would have already been broken before the recent change,
> but that's not a reason against fixing them now.
I agree. I understand why there are restrictions on fields consumed by
the hardware. But for fields internal to the driver the packing doesn't
make sense to me.
--
Martin K. Petersen Oracle Linux Engineering
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]