Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3388422rwb; Mon, 5 Sep 2022 10:44:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR68A2dEpDxn6E3zOOPy3zan8SDKAF+BBxhczoqKO5F6KNXw9ylYWv+Fy8RzaqJYVJcFYEUq X-Received: by 2002:a17:903:509:b0:176:8db1:5ac8 with SMTP id jn9-20020a170903050900b001768db15ac8mr11161596plb.54.1662399870157; Mon, 05 Sep 2022 10:44:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662399870; cv=none; d=google.com; s=arc-20160816; b=u7bSrdknwvamL99bAUBSrga0qOM8foWNb69WYYN5+dHHM9Oe7XuDhPBbpJxGcGAPJA rr2+jjWi/cpJThXicmfdXdQUuiVKil2hDUkej3CX6rfXenHYZy8nG95Fz36yT89nTUsF mXjnPqW9OYVm9Asxny40XtZ1za2bSxNqKZzn6TVyg8wvcNi1mf3/s9MHiC4S8sZH0knK /bJ/munwR3IPk+jS8y9mX9Tu8STI1WtBCj1Wso0FM0zi0890vmNSqvKz4QMR9C0y3/5d hViA2R+NaEaP/ssQMSkEGS7LI8/unsp2kt4aH6UlZ33WzDfciu1jlWP0OnIfo7s9L52q 6ejg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=YYfBfAEwjXsdCSfDLY+JGlk9fbvyfif9J3n/bTdG2jE=; b=DLcLWJoiXY0s5ip/014JZrJyyIADpmrQwkAvHoVmPIsXl7qh+M5/VZbLuwRVL8garY loaTwwDLY59FV9R18F+HTzRKP6y9RzQsOcGhGShlKRtqFxs/E+IssQG0RrBnvwj1/QJT ETUAQL9A/JFjdNcXRCZ/Q1N8w49gZSVY2q4Yc9Foj2EDyKTrPs5rt9UDkfbzdzVPaZ/5 9pYUHp2aQ2kxLOfE+5sQ8x2qFxJwAo9aWciVttVNSUVutJRtBW9bVZHAQFOjT/Yz/bk4 sIckvuwzaZbnaC+rjzwP+VNfisXiYsneuLZ+34qGoxJ/CMitfvNMCyfsu9/YBnNspbZs jaBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Pd34kc6G; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i190-20020a6387c7000000b0043087ac1272si6626181pge.586.2022.09.05.10.44.20; Mon, 05 Sep 2022 10:44:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Pd34kc6G; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231859AbiIER10 (ORCPT + 64 others); Mon, 5 Sep 2022 13:27:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230020AbiIER1Z (ORCPT ); Mon, 5 Sep 2022 13:27:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE01C54670 for ; Mon, 5 Sep 2022 10:27:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5A59E61369 for ; Mon, 5 Sep 2022 17:27:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EECAEC433D6; Mon, 5 Sep 2022 17:27:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662398843; bh=fJpAOfJekN2R/5hBZo84bD//9tKTsWRdDFtRLRiqM9g=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Pd34kc6GWu5jRr99i7Y6M5PaRdRSR7joIuJ08yM6veDktvVCm0phfNbZy51iE+c+b KfJN++OszYQJqm45UK6ECO4KhGu1rJhR3X8IBvP6qHpg8K6pdXyejlkuY87mBrG0uz KPsGzAdaOMefYxrfYW7m3xxfvABzkW2k32pmh/l+uO3feOofJZ5z5CW4Lzl8JMAqUs xl1p9PMJmGuAoklfyjKg8OjUDb2VHxr4Hg/XEfo1kGC51zjDQwN+GrS5moPCEjvbcK PtNREKN3ZLej7obmybSMdW80+9atGuTxnXghB4hU+szSwqS5DRnIIl03apJsKw6hHE gRnjjvBHxepRA== From: Kalle Valo To: Ping-Ke Shih Cc: "linux-wireless\@vger.kernel.org" , "ath12k\@lists.infradead.org" Subject: Re: [PATCH 12/50] wifi: ath12k: add dp.h References: <20220812161003.27279-1-kvalo@kernel.org> <20220812161003.27279-13-kvalo@kernel.org> <0eabd6c1b3ca4d8a8152ad5b4f3efee6@realtek.com> Date: Mon, 05 Sep 2022 20:27:20 +0300 In-Reply-To: <0eabd6c1b3ca4d8a8152ad5b4f3efee6@realtek.com> (Ping-Ke Shih's message of "Mon, 15 Aug 2022 01:56:29 +0000") Message-ID: <87leqxag07.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Ping-Ke Shih writes: >> -----Original Message----- >> From: Kalle Valo >> Sent: Saturday, August 13, 2022 12:09 AM >> To: linux-wireless@vger.kernel.org >> Cc: ath12k@lists.infradead.org >> Subject: [PATCH 12/50] wifi: ath12k: add dp.h >> >> From: Kalle Valo >> >> (Patches split into one patch per file for easier review, but the final >> commit will be one big patch. See the cover letter for more info.) >> >> Signed-off-by: Kalle Valo >> --- >> drivers/net/wireless/ath/ath12k/dp.h | 2017 ++++++++++++++++++++++++++++++++++ >> 1 file changed, 2017 insertions(+) >> >> diff --git a/drivers/net/wireless/ath/ath12k/dp.h >> b/drivers/net/wireless/ath/ath12k/dp.h >> new file mode 100644 >> index 000000000000..cf9610dffbb8 >> --- /dev/null >> +++ b/drivers/net/wireless/ath/ath12k/dp.h > > [...] > >> + >> +struct htt_srng_setup_cmd { >> + u32 info0; >> + u32 ring_base_addr_lo; >> + u32 ring_base_addr_hi; >> + u32 info1; >> + u32 ring_head_off32_remote_addr_lo; >> + u32 ring_head_off32_remote_addr_hi; >> + u32 ring_tail_off32_remote_addr_lo; >> + u32 ring_tail_off32_remote_addr_hi; >> + u32 ring_msi_addr_lo; >> + u32 ring_msi_addr_hi; >> + u32 msi_data; >> + u32 intr_info; >> + u32 info2; >> +} __packed; >> + > > Should they be '__le32' instead of 'u32'? > > This struct is used to fill data of ath12k_htc_send(), and the fields of > htc header are __le32: > > struct ath12k_htc_hdr { > __le32 htc_info; > __le32 ctrl_info; > } __packed __aligned(4); > > If above is correct, some struct(s) related to ath12k_htc_send() have > similar problems: > struct htt_ver_req_cmd > struct htt_ppdu_stats_cfg_cmd > struct htt_rx_ring_selection_cfg_cmd > struct htt_ext_stats_cfg_cmd > struct htt_tx_ring_selection_cfg_cmd (miss __packed) Good catch, we'll fix those and the missing __packed. Thanks for the review! -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches