Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp871952lqo; Fri, 17 May 2024 04:23:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUme4VgTt7anErpxtMobzCnApNaN+qLtMcDEyRUOWMekPmiRtLKCcp6Ntt5xUbyAX4GEtt36jiKycf+tAN40e0ep1Y7TtnzHBoV+jqamg== X-Google-Smtp-Source: AGHT+IH/4TOgVY+Y/2xhraTPwkXRNNkzLptMaCkeH/rIqwgluao/kfoG5CT1oGwDCHwWXKh1eW1J X-Received: by 2002:a17:903:22c1:b0:1ee:b490:2855 with SMTP id d9443c01a7336-1ef43d18600mr291322685ad.25.1715945027505; Fri, 17 May 2024 04:23:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715945027; cv=pass; d=google.com; s=arc-20160816; b=ys26TgW8i7l9/KLM2KGt/r+t8qxJ0asFbLZYF7gM1I7h0G4FifyzTqpTHgqvgtDPOl KuXqyXT4MFPSLoVGcn3ZdE9jlqPqbvdW4KZqpu/wOTnkU0jnikFAjm/DpzR9QEneuUsr rU+e8tGM9ocRMXez4ZkCsiJftjK39cjTHlHTig2lIpO88UL4vaOQDyIW0KIx4j1DPDlt 6sn8if2+ek/07vUgeAYAR2hsRxyIeTgTKkuEDlR8gtO+3oxKGLP612DvQ5VuMtYUPg36 j/SJCOgvZjuIz2vS+0R0Jx91BmUGOen9+pGspxlmNbVa3FeEdFFZVtve2olO84zwzmJF FjCQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:to :from:subject:message-id:dkim-signature; bh=h+G8DXXFg4cgpZIZxiaSfxT6BbGzCdpGQVw6JN5aAJ8=; fh=3re54qplqH7CjvvP9qf1FwF8PG/80r96ZuZaGU3F4v4=; b=eJ6PLRGAMd+JNKej7CHPMxv7SH1uRkEdLSBRzdk7K189TnxYrsDyvjyPe7bmVyTQbm l7Ata1WI51AVgIyqjCy5rlUkagaXmE5cyhQPUGsOwkn2B55EMuM+tYByZrWoB2d0FuA9 mAE1rDYpfhAZMt+zBDxh1o0G5LU9IgrE04wS0E+UPqQc9YLiR4PLoyDfQl2iaUT7Ai5A zB9vDPKxUGqXByHs0Hl0f+vNkR+cWm/oAo3Sth7UYTD2P4d+4SJryd5Ta7XBG/0h8J5T 9pLYXMS4MlWaJxW9kZ7xLUD6zEwZE2fxKxiCBky2Tvi/9AQMzbJKqh30AZc045Qg8k6v d7PA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=OY57J6Cy; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-7781-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7781-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c0371fdsi24754465ad.330.2024.05.17.04.23.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 04:23:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7781-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=OY57J6Cy; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-7781-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7781-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id EE6EEB23569 for ; Fri, 17 May 2024 11:22:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D42793D541; Fri, 17 May 2024 11:22:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="OY57J6Cy" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 32FD83D39B for ; Fri, 17 May 2024 11:22:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715944960; cv=none; b=tFWPsnWtIEYAwz81/0/bQLp21cWgpOHTbdHx4EM99CxPT1/LNl0WSoESK0hrsPRssw34MQyU6a112zIqqxLXwSRMUj35sdxJGEL9GDqKmWUiMlPuIxmYRRZ5Lyeiyllui3DGlYnwBN1RSDAwXbXbhmZyKfooQVcUF41zgpAQno0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715944960; c=relaxed/simple; bh=h+G8DXXFg4cgpZIZxiaSfxT6BbGzCdpGQVw6JN5aAJ8=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References: Content-Type:MIME-Version; b=hOvaAKSYMnmXvLiHu/0DONKp8f6e7T9fDCK0jYzauj+FwnnEvxFNPbzBqIETe/KN6UzWqdiEMI20B4CwfW0Ki97+V/G2B1kQmBClA/YlJ39Bt7NkVB8o4fbcQ1Hx87EW8dRveBVX5vr6t1DGZo5Bie/L4fpx8SWPH0L0yE+F4Lk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=OY57J6Cy; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:To:From:Subject:Message-ID:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=h+G8DXXFg4cgpZIZxiaSfxT6BbGzCdpGQVw6JN5aAJ8=; t=1715944958; x=1717154558; b=OY57J6CyAeg+YSCdPqRbRr/SfBN5Y+kC7JILpzJu9KYi8OY 4GWXb4Xn5PscOzqCC4fRmuh8yPmNQvs/GgAf94wq+5reRWEXCXnKgfVNehg+0zKej1l+08W/5bCZ/ fT+AprEpp5A5JZxoOiDRJciQO3kCrZDCzAvBqEAEh4B3AD+rKibcxpHe7L08XpyXy61Ufs2dy3SHo x5KFj9VSl0ZXndtj9TvVeCNpfm0f+vGTJvsCEPBx+C/7NGydQanUMtrfaYtIRtzIkLjNMyjvGbpu6 +aqV+PlRLnyhyMx+YuESdgI452n1pIqmf1ZeLCTzTWeQG9d9mmvhHaIdU19mC15Q==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1s7vfW-0000000ApXR-3n3r; Fri, 17 May 2024 13:22:35 +0200 Message-ID: <38abf8474852d1f9b890e1a346f750b7b7b7682a.camel@sipsolutions.net> Subject: Re: iw: alignment issue in print_he_capability() on arm926 From: Johannes Berg To: admin LI , linux-wireless@vger.kernel.org Date: Fri, 17 May 2024 13:22:33 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.4 (3.50.4-1.fc39) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned On Fri, 2024-05-17 at 12:30 +0200, admin LI wrote: > Hello, I'm using iw 5.16 with Yocto kirkstone 4.0.13, kernel 6.1.55 on > SAM9G25 cpu. >=20 > When I execute `iw wlan0 scan` kernel report many Alignment traps, looks = like: > Alignment trap: iw (6376) PC=3D0x00461ff8 Instr=3D0xe1f720b2 > Address=3D0x0048e771 FSR 0x001 > Alignment trap: iw (6376) PC=3D0x00461ff8 Instr=3D0xe1f720b2 > Address=3D0x0048e773 FSR 0x001 > Alignment trap: iw (6376) PC=3D0x004631c8 Instr=3D0xe1d420b0 > Address=3D0x0048e771 FSR 0x001 > Alignment trap: iw (6376) PC=3D0x00463190 Instr=3D0xe1d420b0 > Address=3D0x0048e771 FSR 0x001 >=20 Is that kind of thing not fixed up there? Does it even matter? But I guess if we want to fix it, we'd really want something like get_unaligned_le*() like in the kernel, not manually memcpy() in all the code. johannes