Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp224505lqo; Tue, 7 May 2024 19:03:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW+yzWWSc1FWjpRXFSNuSmY9qaU/DiXZhjXHn2jN0N+tmzYSgvuXAqyol/0jM6mFhr/N7Vem4wnluXHLWvD0Tp8lc1DQx3V2iDhQB+paA== X-Google-Smtp-Source: AGHT+IGdNOxeU7K4vFQvK6nfhbGsGfA9aBMPR0+wHbFEGHgbx7gc+0wep9WIHEPdJEbQISKjBW4a X-Received: by 2002:a05:6a20:daa9:b0:1a9:ff21:8862 with SMTP id adf61e73a8af0-1afc8dd3c81mr1597511637.60.1715133829577; Tue, 07 May 2024 19:03:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715133829; cv=pass; d=google.com; s=arc-20160816; b=ms0DT6Ug6j1mMtDX7/k2HNrhDtJW8zhAN4H6J0VFXpShkb3I0wsNo7mj5r/6UBVOGW 7t3tFpKL059TGmdfvIRpz2E5yQVYhtRH3f/P39EiWK7nP+5hWMQP9/xd7KoIlQU3zPFU 7bWWEqCXezaKnv+pDH+YFk9w6WXsNXxpf6NWbiE6sJl+LCLQ7CPDJO+maMEswW9JX1f9 K6U9TvAg8mqz8hnLoYAGs2myrCy5a+W8sjdmnBuaIxyiPHNfTJm+AO7cN/5GBZN1i89a K+oU+CE2Bgcqar3pZ7VthkUCnRlVTBasCaJty4LRqj2O7NNDoHGQLoMRuCkj+Y4UwV7T oLSw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=5v4mknOI4Rq16u2O+eYonzoloAKPsM7UaXurcjJ+KSA=; fh=WIb2YirK2kAoBkkWdCJ/KaF6nXeKMT+FdVw42jCw8xw=; b=af0xMCHt3+CCauIfe9F0ZvDWwgCy6TcVoicvSzs2a4dyRgknPOnRACFf0C9Sa+gpL8 Ls8fXmUJlgwEzFSfe1vKIcGDFvB5ScQ310P9u2Yifq2mbcZ3bXZsOvV239/TK4PdVOXP EXXCR6qn9E+p/GstaNrf6fcHfnS/5NWMQVcF+uFw923bOZ5phzxT/k9j3M+3xdmclrMX dBbHwKIy+Q5xBOdnyEIcEd3jzOj8L7LfSmOhHcNz1Y6lntiWZLk9qelDRhPUFBQMfQqh NZOv8DofY1i2x+cBjgS74xrxa0QVnxe3oOcAIzOq473oocxQyNGoFmxkL/XV6pcOn53e aWuw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tUifaC62; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4382-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4382-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b628fc67e4si344061a91.142.2024.05.07.19.03.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 19:03:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4382-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tUifaC62; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-4382-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4382-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2024728106E for ; Wed, 8 May 2024 02:03:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C13038F6A; Wed, 8 May 2024 02:03:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tUifaC62" X-Original-To: linux-bluetooth@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2AA68C147 for ; Wed, 8 May 2024 02:03:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715133813; cv=none; b=YkTLDutN/mGL9QXoH/ufSHv3L95DfcWAPc72/kL0fRmQ7uWeA1zYs+C3kVKm5G6C2wGDK461vr+YEb4tloxqHMxQTThbKS3i/+uxLVGEojSg1h7xOAclKZoioBtUbEeHWTAAR5XMlHxxQ9TQ9Sngrahu6R899Uv9evf68dsqsN0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715133813; c=relaxed/simple; bh=6OIlaLCOi2eIqKr6NGkyrcDFYwdmXjUkv5Uc/aYMbmY=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=q7NWwBMKUYPgAbXAVrszxMTqgy0f6Gse58SdTgjAMrgCapInVyXyN0+jyFHk0veSo7Gr/P04Xfr1HATCJs/5uXhwbmx6RJm8/lJqIWflBiEt6WqG2+aJ/sDsxJpW0pLeIJjqnQM624Ks1th/hWjPmyn7BSjQ6ALPHj8lu6AFcqs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tUifaC62; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73F5EC2BBFC; Wed, 8 May 2024 02:03:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715133812; bh=6OIlaLCOi2eIqKr6NGkyrcDFYwdmXjUkv5Uc/aYMbmY=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=tUifaC62AiplYk2EsJ7zs86IwYGW6L6+71RL8fqiRvsJOFsmKvR7ECuRUspPa9pog 8NFDQuQsebHiLW+B4kYMxwX/SKBapUYdXHhnft83t/dLF8dy/nrMzBTHIXz/5PxQhm 4Qnour1l/eJjfK5ln9/8jM8eyinEZaNTg3Me15Zsp8h4AopYkrKN0yfwhfL+EygsTU ULxh5/GlxHVwwATprHYXrlkae//xPH7o0G4fyIW7FPvq9Oxn6SThGVi4T494nWdCLL Auu0ciYtUHis/rKR7oqUy7MK0nHDKw2oHpku4Y/4lKNfYG0qvt+4a8/lG2SkB7uj5r 8libgPNr2LjOQ== Date: Tue, 7 May 2024 21:03:30 -0500 From: Bjorn Helgaas To: Kiran K Cc: linux-bluetooth@vger.kernel.org, ravishankar.srivatsa@intel.com, chethan.tumkur.narayan@intel.com, Chandrashekar Subject: Re: [PATCH v1 3/3] Bluetooth: btintel_pcie: Add *setup* function to download firmware Message-ID: <20240508020330.GA1746392@bhelgaas> Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240328111904.992068-3-kiran.k@intel.com> On Thu, Mar 28, 2024 at 04:49:04PM +0530, Kiran K wrote: > Add to support to download firmware. > > Signed-off-by: Kiran K > Co-developed-by: Chandrashekar > Signed-off-by: Chandrashekar > + /* Due to the fw limitation, the type header of the packet should be > + * 4 bytes unlikely 1 byte for UART. In UART, the firmware can reads s/unlikely/unlike/ (I think?) s/can reads/can read/ > + * the first byte to get the packet type and redirect the rest of data > + * packet to the right handler. But for PCIe, THF(Transfer Flow Handler) > + * fetches the 4 bytes of data from DMA memory and by the time it reads > + * the first 4 bytes, it already consumes some part of packet. Thus > + * the packet type indicator for iBT PCIe is 4 bytes. > + * Luckily, when HCI core creates the skb, it allocated 8 bytes of > + * head room for profile and driver use, and before sending the data > + * to the device, append the iBT PCIe packet type in the front. > + */