From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 4CCE71FE44A for ; Mon, 23 Mar 2026 09:31:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774258273; cv=none; b=HbmtoT1YMH//jbKsegqfpH8FYMWHLomufra9UHIJPv6Txqd8CQOylnGuMLKLbPmSAJYK9oyKN/ncluX4MRlk3fxoZuB0NwLp4FENGxiYtGc/T1ORzWYl13ataSrwjkJ7Yrym+CvZorpx5fqSv9FkTFMk089XC3ubPn4X7JZeunc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774258273; c=relaxed/simple; bh=bQi/vmSLbaPv3NMLUMBEH4cgxWyMkAdFkt+EHZdipwM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=pbwo+Byojyrx7ZulslSGrc+6ATnJXuerL/Wk63kjdMCs9iuF37bq/G/3887W9byhz+kNK3oWMd07075phxUfZf/ufoYbLdP0PrSDoMTqk7AI7QlmsmFv4todLjeAQv869ZVBWQCvHfZ6xfXAYxp+GZL6ui1I19KSklfDnDHTs24= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=CPEb3h6p; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=aOK7m7i+; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="CPEb3h6p"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="aOK7m7i+" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 62N72gsu4138099 for ; Mon, 23 Mar 2026 09:31:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= /yC6KqEhBD7nKz1VCwQt+1LTIKX5Jf9ppnuejyB5n6g=; b=CPEb3h6pCL2Imnl4 NXyCTuriP+qCmI2l0o7mc6YjAdrIvnsD+wSYowJQn6Amcdi4EV6BeiC3sgzFrD/+ pMkNFwNPpUK+Qly/B5EQL92h8A/sNwkesmNnxSsL+X2mAsfoNZB2cANP816v0fZw w8MAVsDedYc7g4qShxNIL0HQ0GOIu4pgieMO1nZyQ7lTl4h7j5Jp0uQUsbDllZWM eePTATsM/J18mqM/FUVHawidxne+zfqlMIWg/moJPb6JtjzZqPadHjK+guRKntRp 4/zUPnqgCQBkQxfU6B6oT2v/z+6M9nuT0ktru/vMEfFHz6AgOHTvifAJ8HwEvuN8 HLqHvQ== Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4d1h1e4uw8-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 23 Mar 2026 09:31:11 +0000 (GMT) Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-b62da7602a0so1831965a12.2 for ; Mon, 23 Mar 2026 02:31:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1774258270; x=1774863070; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=/yC6KqEhBD7nKz1VCwQt+1LTIKX5Jf9ppnuejyB5n6g=; b=aOK7m7i+Oqre1Jxb7QgOLBT9CqL3NotkR9TuKIEQGYlbQXBL2E+jWmoeuXx2dxcEhn 64ArpMdIKr+K4irqYi5fgydKrp/P8dgaEUE2NP3zki2TrIaf81Q+0xRwZZfRi11B1F4M G8M0JVOKiqrboKyMCFIAWBFgdizvbP4LqIZF+VNZc7slbYwjw7RuBUjoMynf/FsPJIV7 nCUHbYDKQmlwO/VQHSkaA5IXyRCsUDnCx0OccVkHyZRr/qVEGcUljQYIYdKYE0EsR3GU 4Bw0+TBoP6YIxfzbzKEhv93ZT06mgKThgRzJK+lggDtnPgJl2BMc1KoxW0kPHz9vJPvj Z/og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774258270; x=1774863070; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/yC6KqEhBD7nKz1VCwQt+1LTIKX5Jf9ppnuejyB5n6g=; b=c7yhMnswZEeqiaqeMTM/i/QidxJWa9l6uOqx/TiNCkSIuppBG2nfOroOEY6b88VHV0 l7fQ1dxiS9pxw5KsNYLa/3ea8QduOJacU+5Rb6ImSdtJqfd/1/cvInDSbFvxbp55N5+4 szgwUye1h7JPHoGbFwlHW4QmLTQll4FkZRgjqnwVwl2IcIxtTcjWyA7Yl9oNStjwlU20 qaeZiIu/JaGC/GnAplYa24Te2ugyjJgT5z1I2GrtQM1a3PPtUW1HkFaOEnGekArnwVzu q5Fqga3XAkHGUn7ikoxkuNxvnY0yOPbYBhnyEc1KC1/hPPP0fdVo+FdgwDKBCDx/UYqG P2nw== X-Forwarded-Encrypted: i=1; AJvYcCXfEpOl3OgxmyikvBsE94qSnrAcJdzhcTKf5zvZVsRlnw/g6H+sfcvio9IBmgikEBUnM6hYkFKPeHiPEEOJ/w==@vger.kernel.org X-Gm-Message-State: AOJu0Yw3oQshxs30qP0yHhINYqlQ12ATBGlxlC8GvHeb6cxafJPC31tL n/k0BbCDfl5X3Ef5n0e5bOBEkBEBpcx50EG8TCUHg8PrVYRfTorYaFLowceF0uAajLan9FhNi73 t7iZoLl7gPOHyAmANWmawB/KPYTtuIDReUzB775OTvsK3yR10KLjHzerQ9ZNtcXyMEz3wB08HO0 MUJjk5 X-Gm-Gg: ATEYQzwGDEivbXCtFM08u0SZs5voPxDw1KGa2q4tLDcUSmhtvPpoO11x6lmO5kCZl7X QzBDOHDgKoEKVzlValZcmQMY0avc0nU6ybP0tdEuZOtV2LWH1dSswBtvJupKD/YCb6OI8d6r148 ZZYYS/Wbo8MsBlEAoSZ4ByE7fZFQM8BwGnYp/qhgzchdbtx2nbQKjXYMonPw2yYH4Fw7RyIy9z+ Z4ZiEKupYAuZEycfmDL66JIr3uDyHwJEA+nRcfgGaswLPh0ndpnacB8xh6w42htKesMX1pHOalX TPmG+Uuo2CylhFYQkiHmaUHVuB+7QE1fnC3to4A2U/eJtZdeIW7CjMx7KqRVSvFKI5/cLhfftug CChxuWaraX9D8AMBDN0y8bXeO6j5B1kKxgzZjDmkup5S0sA6V7kwdAWsgowsc8kZTsIYqPzdU3e OnpiCidBzjw7qYyV9axqw= X-Received: by 2002:a05:6a20:1589:b0:398:9403:49f4 with SMTP id adf61e73a8af0-39bcea4434amr9383741637.30.1774258270179; Mon, 23 Mar 2026 02:31:10 -0700 (PDT) X-Received: by 2002:a05:6a20:1589:b0:398:9403:49f4 with SMTP id adf61e73a8af0-39bcea4434amr9383707637.30.1774258269575; Mon, 23 Mar 2026 02:31:09 -0700 (PDT) Received: from [10.133.33.122] (tpe-colo-wan-fw-bordernet.qualcomm.com. [103.229.16.4]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c743a814548sm7195522a12.9.2026.03.23.02.31.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 Mar 2026 02:31:09 -0700 (PDT) Message-ID: Date: Mon, 23 Mar 2026 17:31:03 +0800 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: ath12k: desc_va endianness problem To: Alexander Wilhelm , Jeff Johnson Cc: ath12k@lists.infradead.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org References: From: Baochen Qiang Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-ORIG-GUID: sO-DGFgEsF5yFc8jvlt4mj_qGc7bmMnw X-Authority-Analysis: v=2.4 cv=epXSD4pX c=1 sm=1 tr=0 ts=69c1085f cx=c_pps a=Qgeoaf8Lrialg5Z894R3/Q==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=IkcTkHD0fZMA:10 a=Yq5XynenixoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=aGmKbgPmMnVJ_m3FO8YA:9 a=QEXdDO2ut3YA:10 a=O8hF6Hzn-FEA:10 a=x9snwWr2DeNwDh03kgHS:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMzIzMDA3MiBTYWx0ZWRfX0sukWdlYD9fC H6HZibzHndiTAjuJGEpMZpbsa2RfamuBHHM00oUoXsZ3DwKKlQ2h2sUMHQYBx0u8HaRwMWubSPv rTRgeZKVtD1+2fUXlqzec/zThZeb6ZfB4m+9U3zZgshMtW50NFAYt1gJa2Fp4w/i4/+8HJ4PE4a Ql2rRBviWoqqqkkkPopz89X4DHbw0mGg1klsfWYAigZ1vrbZMtLmiK6sTGBCRAtpOFcuF+OMusW wjAKcgAbQRrH+BBIp4VpQc/cuN4i4TyGLyrvqazkLZdtlMFaGwcKwLtQaVo3/2VKHAZSjUWCsgW 7q+zAjKcR+tS2/Io/GbACM/2UOOrReRNPudhVxqujh1S9Af+5OLUwBB4lFiqF7bTEZoHsNbjdwW kdQP3XsAykGfEj8kryy0dxMrfPxNiJnY2K7ze0b2m6oaU/VHjccNuZEgydlKmBFF/pwLgAvXa7f iPusMn7zMyfDeCKjCfw== X-Proofpoint-GUID: sO-DGFgEsF5yFc8jvlt4mj_qGc7bmMnw X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-03-23_03,2026-03-20_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 spamscore=0 phishscore=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 clxscore=1015 adultscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2603230072 On 3/20/2026 5:52 PM, Alexander Wilhelm wrote: > Hello ath12k developers, > > I have another fix for the big endian platform, but unfortunately the data types > do not match here, so I need your support. The problem is the following: the > structs `hal_reo_dest_ring`, `hal_wbm_completion_ring`, and > `hal_wbm_release_ring_cc_rx` all define the members `buf_va_lo` and `buf_va_hi` > as `__le32`. At first glance this seems correct, because the entire structure > contains only little endian fields. The local variable `desc_va` in each > function (see patch below) is of type `u64`, so it makes sense that I would need > to convert from little endian to CPU endian. Unfortunately, this leads to the > following crashes, in `tx_completion` and `rx_process_wbm`, respectivally: > > > Kernel attempted to read user page (40dcdf) - exploit attempt? (uid: 0) > BUG: Unable to handle kernel data access on read at 0x0040dcdf > Faulting instruction address: 0xe209290c > Oops: Kernel access of bad area, sig: 11 [#1] > BE PAGE_SIZE=4K SMP NR_CPUS=4 CoreNet Generic > Modules linked in: ath12k(O) mac80211(O) cfg80211(O) compat(O) ... > CPU: 1 PID: 10200 Comm: jshn Tainted: G O 6.6.73 #0 > Hardware name: CyBoxAP-A e5500 0x80241021 CoreNet Generic > NIP: e209290c LR: e2092854 CTR: c08d3190 > REGS: dffe3d40 TRAP: 0300 Tainted: G O (6.6.73) > MSR: 00029002 CR: 44004804 XER: 00000000 > DEAR: 0040dcdf ESR: 00000000 > GPR00: e2092854 dffe3e30 c328a500 e2092854 0040dcce 00000008 00070000 cf900000 > GPR08: 00000000 cf900004 40000000 c8e52c4c c08d3190 1002801c 0fcf5000 c0ab85f8 > GPR16: d0d1f7a0 c12a9080 00000001 df7b7f80 00000003 cf900000 e1bc0000 e1ccb988 > GPR24: ffffffff c8ed0000 e1cc0220 00000000 c8ec0000 c8ec0000 c8ec0f50 c8ec0000 > NIP [e209290c] ath12k_dp_tx_completion_handler+0x22c/0x720 [ath12k] > LR [e2092854] ath12k_dp_tx_completion_handler+0x174/0x720 [ath12k] > Call Trace: > [dffe3e30] [e2092854] ath12k_dp_tx_completion_handler+0x174/0x720 [ath12k] (unreliable) > [dffe3e80] [e208fe18] ath12k_dp_service_srng+0x58/0x380 [ath12k] > [dffe3ed0] [e20a1490] ath12k_pci_hif_resume+0x520/0x8a0 [ath12k] > [dffe3f00] [c067404c] __napi_poll+0x4c/0x260 > [dffe3f30] [c06746f8] net_rx_action+0x188/0x340 > [dffe3fa0] [c003a3d8] handle_softirqs+0x128/0x280 > [dffe3ff0] [c00045b0] do_softirq_own_stack+0x30/0x50 > [d0f2fb70] [00000000] 0x0 > [d0f2fb90] [c003a7d0] irq_exit+0x70/0xa0 > [d0f2fba0] [c0000c84] ExternalInput+0x144/0x160 > --- interrupt: 500 at percpu_counter_add_batch+0x9c/0x150 > NIP: c0425e8c LR: c01a5964 CTR: c01764e0 > REGS: d0f2fbb0 TRAP: 0500 Tainted: G O (6.6.73) > MSR: 00029002 CR: 48008802 XER: 20000000 > > GPR00: c01a5a00 d0f2fca0 c328a500 c1db7300 dffc0f20 00000000 fffffffc 00021002 > GPR08: 1e763000 e1091054 00000007 c12b0530 88002808 1002801c 0fcf5000 c0ab85f8 > GPR16: d0d1f7a0 dffc0f20 00000000 000003fe 00000000 f92412bd 00000003 c9525480 > GPR24: d0f2fd74 c8a501f8 c12b0530 00029002 00000007 00000000 0000000b c1db7300 > NIP [c0425e8c] percpu_counter_add_batch+0x9c/0x150 > LR [c01a5964] unmap_page_range+0x484/0x820 > --- interrupt: 500 > [d0f2fca0] [00000001] 0x1 (unreliable) > [d0f2fcd0] [c01a5a00] unmap_page_range+0x520/0x820 > [d0f2fd60] [c01a5d9c] unmap_vmas+0x9c/0xe0 > [d0f2fda0] [c01afef4] exit_mmap+0xb4/0x2a0 > [d0f2fe40] [c0031610] mmput+0x40/0x140 > [d0f2fe60] [c0038df4] do_exit+0x2b4/0x990 > [d0f2feb0] [c00396c4] do_group_exit+0x34/0xa0 > [d0f2fed0] [c0039748] sys_exit_group+0x18/0x20 > [d0f2fee0] [c000dbac] system_call_exception+0xac/0x1f0 > [d0f2ff00] [c00110e8] ret_from_syscall+0x0/0x28 > --- interrupt: c00 at 0xfded438 > NIP: 0fded438 LR: 0ff23958 CTR: 0fd94930 > REGS: d0f2ff10 TRAP: 0c00 Tainted: G O (6.6.73) > MSR: 0002f902 CR: 28002402 XER: 20000000 > > GPR00: 000000ea bff93390 b0316520 00000000 113e8af0 113e8af0 00000000 00000000 > GPR08: 00000000 00000000 00000000 ffffffff b02ccb04 1002801c 100a0000 bfbc4260 > GPR16: 114974b0 00000000 114a4de0 00000000 b02cc900 00000001 00000000 00000001 > GPR24: 0ff239a0 00000000 00000001 00000000 b030f52c fffff000 0ff23958 00000000 > NIP [0fded438] 0xfded438 > LR [0ff23958] 0xff23958 > --- interrupt: c00 > Code: 512a421e 2e140000 512a463e 40f20008 555b9f3e 39350004 754a4000 7c804c2c 41c20224 7c87442c 2c040000 41c20230 <88a40011> 7fc3f378 83a40008 8a640010 > ---[ end trace 0000000000000000 ]--- > > Kernel panic - not syncing: Fatal exception > ---[ end Kernel panic - not syncing: Fatal exception ]--- > > > user@root:~# Kernel attempted to read user page (c011de) - exploit attempt? (uid: 0) > BUG: Unable to handle kernel data access on read at 0x00c011de > Faulting instruction address: 0xe1e3dc44 > Oops: Kernel access of bad area, sig: 11 [#1] > BE PAGE_SIZE=4K SMP NR_CPUS=4 CoreNet Generic > Modules linked in: ... > CPU: 1 PID: 0 Comm: swapper/1 Tainted: G O 6.6.73 #0 > Hardware name: CyBoxAP-A e5500 0x80241021 CoreNet Generic > NIP: e1e3dc44 LR: e1e3dc30 CTR: c08d40e0 > REGS: dffe3ce0 TRAP: 0300 Tainted: G O (6.6.73) > MSR: 00029002 CR: 44004402 XER: 00000000 > DEAR: 00c011de ESR: 00000000 > GPR00: e1e33154 dffe3dd0 c1870000 00000000 cebe0000 00000000 00000000 00c011ce > GPR08: 00000001 00000000 00020000 c30a294c c08d40e0 00000000 00000001 00000000 > GPR16: e1ce2668 c9270000 c9269a18 c92664d0 e1ce26dc 00000000 babababa dffe3df4 > GPR24: 00000040 00000000 c9266480 dffe3dec dffe3e04 c9260000 00c011ce c9269a18 > NIP [e1e3dc44] ath12k_dp_rx_process_wbm_err+0x124/0x600 [ath12k] > LR [e1e3dc30] ath12k_dp_rx_process_wbm_err+0x110/0x600 [ath12k] > Call Trace: > [dffe3dd0] [c0ab8e30] 0xc0ab8e30 (unreliable) > [dffe3e80] [e1e33154] ath12k_dp_service_srng+0x314/0x380 [ath12k] > [dffe3ed0] [e1e44540] ath12k_pci_hif_resume+0x520/0x8a0 [ath12k] > [dffe3f00] [c0674c7c] __napi_poll+0x4c/0x260 > [dffe3f30] [c0675328] net_rx_action+0x188/0x340 > [dffe3fa0] [c003a3d8] handle_softirqs+0x128/0x280 > [dffe3ff0] [c00045b0] do_softirq_own_stack+0x30/0x50 > [c18c7e10] [c12b040c] 0xc12b040c > [c18c7e30] [c003a7d0] irq_exit+0x70/0xa0 > [c18c7e40] [c0000c84] ExternalInput+0x144/0x160 > --- interrupt: 500 at arch_cpu_idle+0x24/0x50 > NIP: c00071f4 LR: c00071f4 CTR: c000fe14 > REGS: c18c7e50 TRAP: 0500 Tainted: G O (6.6.73) > MSR: 0002b002 CR: 84000402 XER: 00000000 > > GPR00: c08cc978 c18c7f40 c1870000 00000005 00000001 40000000 c328becc c12b0530 > GPR08: c12b0530 c000fe14 0098ca91 00154674 24000402 00000000 00000001 00000000 > GPR16: 00000000 00000000 c00119a0 dffee5f0 00000001 00000000 ffffffff c1050254 > GPR24: c12c0000 c0011970 c0011940 c12d0000 00000004 c12b040c c12b0000 00000001 > NIP [c00071f4] arch_cpu_idle+0x24/0x50 > LR [c00071f4] arch_cpu_idle+0x24/0x50 > --- interrupt: 500 > [c18c7f40] [c0a367e0] 0xc0a367e0 (unreliable) > [c18c7f50] [c08cc978] default_idle_call+0x38/0x58 > [c18c7f60] [c007b3b0] do_idle+0xf0/0x130 > [c18c7f80] [c007b580] cpu_startup_entry+0x30/0x40 > [c18c7fa0] [c001325c] start_secondary+0x48c/0x930 > [c18c7ff0] [c0002870] __secondary_start+0x90/0xdc > Code: 7fa3eb78 4bfcba59 7c641b79 41c20144 38a10044 7fa3eb78 4bfcdb85 7c651b79 40c2026c 83c10058 2c1e0000 41c202d0 <813e0010> 7c09b000 41c20010 7e84a378 > ---[ end trace 0000000000000000 ]--- > > Kernel panic - not syncing: Fatal exception > ---[ end Kernel panic - not syncing: Fatal exception ]--- > > > My fix, as shown in the patch below, is to remove the conversion. But then the > member variables `buf_va_lo` and `buf_va_hi` must be `u32`, which is obviously > wrong. Alternatively, `desc_va` must be `__le64`, but that is likely also > incorrect, because the address is simply dereferenced, and this clearly requires > CPU endianness. What I also do not fully understand is who actually fills these > addresses and at which stage this happens. I hope you can help clarify this so > that I can provide a correct patch for this issue afterward. > > hmm, i am not sure here, but can you please try diff --git a/drivers/net/wireless/ath/ath12k/dp.c b/drivers/net/wireless/ath/ath12k/dp.c index 1c82d927d27b..f142759a217b 100644 --- a/drivers/net/wireless/ath/ath12k/dp.c +++ b/drivers/net/wireless/ath/ath12k/dp.c @@ -1246,7 +1246,7 @@ static int ath12k_dp_cc_desc_init(struct ath12k_base *ab) /* Update descriptor VA in SPT */ rx_desc_addr = ath12k_dp_cc_get_desc_addr_ptr(dp, ppt_idx, j); - *rx_desc_addr = &rx_descs[j]; + *rx_desc_addr = (struct ath12k_rx_desc_info *)cpu_to_le64(&rx_descs[j]); } } @@ -1286,7 +1286,7 @@ static int ath12k_dp_cc_desc_init(struct ath12k_base *ab) /* Update descriptor VA in SPT */ tx_desc_addr = ath12k_dp_cc_get_desc_addr_ptr(dp, ppt_idx, j); - *tx_desc_addr = &tx_descs[j]; + *tx_desc_addr = (struct ath12k_tx_desc_info *)cpu_to_le64(&tx_descs[j]); } } spin_unlock_bh(&dp->tx_desc_lock[pool_id]);