Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2809448lqt; Tue, 23 Apr 2024 02:10:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+vtQTVYIKHj7MG2b2DQp3nNkp/rK3ODyYvZdQ/CYGZbbBjhy2bkJYQC3WZA4s2hCc6OujNoW+yAyKPWlamHYRKKokoa0FNHDkeJxOGQ== X-Google-Smtp-Source: AGHT+IGugIpAht/KD+WKN5SGqMWaK9vNfTniOinOyUjRMsXcyDVJ69C50yiEbOfyAW8sNwJg711o X-Received: by 2002:a50:c306:0:b0:56e:de1:f427 with SMTP id a6-20020a50c306000000b0056e0de1f427mr7906142edb.25.1713863432445; Tue, 23 Apr 2024 02:10:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713863429; cv=pass; d=google.com; s=arc-20160816; b=W3NwcdoZ+WsWD+ufTCdbHBKH7wa1Xug8HK381zHBXJnBjmF1QPGBa/P0mXkjLlnkdq wr+phEGRAJPHa/ZGAOjtvIZnB5DnWt1piYQtK6dphWoEQjvjGQLWf4QEuCaJnpiIT+JA X34hqkEBCAKOwMC9+HVQTLK4No8BzgwEyix0GGyM5GgrLBzE9ZR0LaNOW6H025eCXwRD wEneYsRVTWcu3oZHQGuZ0UTzd82gVH8TUYTTo01/9sXUvOq4kFRjqK5L6jm9w7jVoE76 fSOKf0GIxMpMKUYf66D8c/iG4YM+aP1JskvidMOX4FGl1rSdhKelumZoK7THgk43iiRn sOMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=55yLjbmlIW8wpn6kdNbs3pFsz8QGhpkZZ8apwfEGnZU=; fh=P3Ymq443RkDlNqilK7kg8ONZzEymD3nszYNRCP//mDk=; b=a8nm1wgxEqlzUzkD76l/PSXdpECadR74QDGZl4rZv3ZoLz6E1xODDht0+GvWpMP31k fSWp13tRxzlmtplPzgIZPTC8B5qKyrMDaHwb+cdZ9ePcB4KnvUD/+ftaPzYyEB6ogjuo MYEuEPqflksG8ttWkmb5YCStmWSH+RAlefXrIIxKzzsrzG7HlE6YmtYZVcdtHZfthsqm ltki0gQ+fwnvNUBOec4va4vHXaehyL5HR1Ysez5jdEsNJpMqGd7PimmtWyq6pRUgt30y d3VKoUIZJ4fy788XkmtBlR0n7Jr8TIdnYWZ82bmy5KKc3bPB3IlOQxPtQmQ8zejg4+ok dFuw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iRlUWBb5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-3903-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3903-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c14-20020a056402100e00b00572227a3538si469937edu.415.2024.04.23.02.10.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 02:10:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-3903-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iRlUWBb5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-3903-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3903-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0BD751F22651 for ; Tue, 23 Apr 2024 09:10:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5800777A1E; Tue, 23 Apr 2024 09:08:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iRlUWBb5" 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 AAF587441E; Tue, 23 Apr 2024 09:08:40 +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=1713863321; cv=none; b=FcG5Cj7jlSDhH40SVE/EAoND9aplRctY1zV47S6OWvomHKYpNkpelU1SWWWX59obtrwjCOH3kFzCjVofnncbj/kh5RnQZ1iTm82V1v/krghU2pVSGpOFhHFuZ+qwh1Rz41zZYyXmh2/4PynKPrUeKy20/GdcZkje2pWQ4AhdrKM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713863321; c=relaxed/simple; bh=15a83D1JMHWclRfM/z678s+f7sq6QGUXYdBCaTmBd8w=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=m0uvwokBtJJIobXxoK9BxA2ZO8ZcZAY85WMcD4uMvJt46IKMtTLSw0tNNcteJ9hNvjDTHqjcQyqM43/WOvR96WVukR2plCYqVA77Y6r+qeUcFuhn6emSLDL49CczpMWWBB36OCkHywXFu0Eh190bEWfidPy7mv3FOnoDfmSrQ8w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iRlUWBb5; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C034EC116B1; Tue, 23 Apr 2024 09:08:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713863320; bh=15a83D1JMHWclRfM/z678s+f7sq6QGUXYdBCaTmBd8w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iRlUWBb50EHmT13m11xXOZt/qv+NF9r1gZSuMiRTkn2aq0AHwO10LHACFR8qUt2Gb qR7BbU69LqMNVN/sycmEM+0/fIlf42BNqkHOmK5Sv7NAF32yDE0iN2I6HrvkYeAdFo svkMcS3cRLaRAd8Gk0UhlxHEj6kTmlednqdmvcyTPOVH79WExHraiwOw4+eFPBL1Pq lvVqIX2pc7QxhHBF96xVH5krgO3GR8BrWKYhgAE/YEKyhM7RxqWXSlLQosDm8eNmYx arbMgT9xseU4Sw2zu4pU1atN6SHAytlMKr2XEYXpzOCMCpLqTD0beQsWERnPx7Sg4a CWhSk32WtHqdQ== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rzC8j-000000003Lp-1TNJ; Tue, 23 Apr 2024 11:08:38 +0200 Date: Tue, 23 Apr 2024 11:08:37 +0200 From: Johan Hovold To: Doug Anderson , Janaki Ramaiah Thota Cc: Johan Hovold , Marcel Holtmann , Luiz Augusto von Dentz , Matthias Kaehlcke , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Stephen Boyd Subject: Re: [PATCH] Bluetooth: qca: fix invalid device address check Message-ID: References: <20240416091509.19995-1-johan+linaro@kernel.org> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Hi Doug and Janaki, On Mon, Apr 22, 2024 at 10:50:33AM -0700, Doug Anderson wrote: > On Tue, Apr 16, 2024 at 2:17 AM Johan Hovold wrote: > > As Chromium is the only known user of the 'local-bd-address' property, > > could you please confirm that your controllers use the 00:00:00:00:5a:ad > > address by default so that the quirk continues to be set as intended? > > I was at EOSS last week so didn't get a chance to test this, but I > just tested it now and I can confirm that it breaks trogdor. It > appears that trogdor devices seem to have a variant of your "default" > address. Instead of: > > 00:00:00:00:5a:ad > > We seem to have a default of this: > > 39:98:00:00:5a:ad > > ...so almost the same, but not enough the same to make it work with > your code. I checked 3 different trogdor boards and they were all the > same, though I can't 100% commit to saying that every trogdor device > out there has that same default address... > > Given that this breaks devices and also that it's already landed and > tagged for stable, what's the plan here? Do we revert? Do we add the > second address in and hope that there aren't trogdor devices out in > the wild that somehow have a different default? This patch is currently queued for 6.10 so there should be time to get this sorted. My fallback plan was to add further (device-specific) default addresses in case this turned out to be needed (e.g. this is what the Broadcom driver does). I assume all Trogdor boards use the same controller, WCN3991 IIUC, but if you're worried about there being devices out there using a different address we could possibly also use the new "qcom,local-bd-address-broken" DT property as an indicator to set the bdaddr quirk. We have Qualcomm on CC here so perhaps Janaki, who should have access to the documentation, can tell us what the default address on these older controllers looks like? Janaki, are there further default addresses out there that we need to consider? Perhaps "39:98" can even be inferred from the hardware id somehow (cf. bcm4377_is_valid_bdaddr())? Doug, could you please also post the QCA version info for Trogdor that's printed on boot? Johan