From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Lepore Subject: Re: [PATCH] libfdt: Remove special handling for unaligned reads Date: Tue, 28 Jan 2020 19:15:03 -0700 Message-ID: References: <20200117153106.29909-1-trini@konsulko.com> <20200123091440.GQ2347@umbus.fritz.box> <20200123121650.GV26536@bill-the-cat> <20200127032351.GA1818@umbus.fritz.box> <20200127150434.GJ9259@bill-the-cat> <20200128085918.GO42099@umbus.fritz.box> <20200128134304.GQ13379@bill-the-cat> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:from; bh=3VJ0hhgXN5tPHvB2nQYt3Pw+L1iONeONh57QKip/NZg=; b=PjEkfO4h+BBLpfsAr/4kV5nKTpJvAHGkx4U/sw2WD2PraOUbsvX6JXZrcaaR5LUYwVNPYj4uBRxuE QlDBkE+Ex8lM1M9naMnB0Kw/VX35yK1aGto2uGw/yxZ4dfpwjiWt+Tj9PUMiYGnWQq6b/WOU2asFDE Ipn8bf04locPp0KZMkTsr7xsk3M/xZ+yymnUAymjOqtBY3LIAAWlRS+swk8O4urCzcXQBNm65QTqFO uAhBV39YZNTjsU0VBd7N8zp1nZJTXotsXay6poaILiFpesPleKy2CiZJaf+JEVnyE6TvpPYrmwcLm1 5QoIGw7ckuVvy3LwRgD8hDdn5JZcElg== In-Reply-To: Sender: devicetree-compiler-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Rob Herring , Tom Rini Cc: David Gibson , Devicetree Compiler , Patrice CHOTARD , Patrick DELAUNAY On Tue, 2020-01-28 at 08:08 -0600, Rob Herring wrote: > On Tue, Jan 28, 2020 at 7:43 AM Tom Rini wrote: > > > > [...] > > I still believe you have things wrong. There's not an unaligned access > > problem that libfdt needs to care about. ARM doesn't need help handling > > unaligned accesses. The only problem that's been reported is from when > > a user got themselves so far off in the weeds that nothing else matters. > > I think while the vast majority of DTBs don't have anything that would > cause unaligned accesses, that's not guaranteed by the FDT format. > libfdt needs to handle the worst case. > > What about ARMv5 and v4 which don't universally support unaligned > accesses or any other architecture. Do all mips, openrisc, riscv, arc, > microblaze, xtenza, etc. support unaligned accesses? > Unaligned support is optional even on armv6 and armv7. For quite a long time freebsd ran armv7 chips with strict alignment (mostly because we had no real need to do otherwise until people started complaining that 3rd-party opensource software often failed on freebsd because it's written with the assumption that the whole world is linux, and linux used relaxed alignment). -- Ian