Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp502522rdb; Tue, 5 Dec 2023 11:06:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IFzGZZp4TBYIQML0k3sFY7vMGYdGH2EwIlFNhFfdVOi94NLuB2Wsh1Je9WCRBxq2B7kz1gZ X-Received: by 2002:a17:902:a603:b0:1d0:6ffd:f222 with SMTP id u3-20020a170902a60300b001d06ffdf222mr3153099plq.120.1701803193355; Tue, 05 Dec 2023 11:06:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701803193; cv=none; d=google.com; s=arc-20160816; b=lY+tL9aCfQEzdghRT7GiTVy0C9zoBx11mPGUh1SOmHB1vW33qM0AHVpOgI5UgbTz6s F54ZccTRvFCaumA8pWTQ0Z7nNXjE0o2Dag+3OL7v23xREJuE4bog64IQJmj/jz2odpE3 O94I7aWf8wlBnuqVhzQ+rx9ud4Nm74FBcZdQZu9GiO9d4TcBFXINDHQF8/vF4MecNRq2 HIJ3QX+C5gSEBGH6MRxAvYQ5lc5sKu4z8+VP7LsvUROYfhvqnHZnAn6Mf0TmixAQbepp e2Lf8iPJdpDyA7ji6bIcc86Hi9HLrDkYsFa7EZuIhsFzSnv0EqqXmGVNpxeURDqD+LnH u93w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=P1pAlpuH5Xa5SLoWkygT7UiOceoXCeggodj1re8Nc1s=; fh=cm8iQv+l3n7Vzpz9n2O+aqmEtLgRt7JOEGig+T+ixco=; b=uKWOMVrunthxBNPNcboj1gmQJti96OHuP3YwZZlcw5pY8twJlqsp5+IlnWWyaBaAqK 2XMA7Pv7CQT1tVHfd9aR6KvZSwdqyxPUZ6iSExNKCFCMDmIEcirizj6BLuKiTRY+aI5j QZRmxlEuYwyVwirGtHZAtpqe/5xXBMVHZxxEIk2RrdEdL3dgJiSAFitPEQMDtmfp0xLB B2QiturxxYWgyxqvUU+Q+3wq8FOipwp1ygqLof2Xpwjm189OFhbthOnq11Pg0MW+mixv TiwyXDxWCwCP7vfye7SaH3zbU0nIrg8SedXBPbjbqzrOOlBIG8KJrx6FxWVQOX/DZJ+L 9waA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=S8QtKoWC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id y9-20020a170902b48900b001cc59201d1esi9990677plr.172.2023.12.05.11.06.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 11:06:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=S8QtKoWC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 5419A80AD50C; Tue, 5 Dec 2023 11:06:22 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229569AbjLETGG (ORCPT + 99 others); Tue, 5 Dec 2023 14:06:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232425AbjLETGE (ORCPT ); Tue, 5 Dec 2023 14:06:04 -0500 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCA35129; Tue, 5 Dec 2023 11:06:09 -0800 (PST) Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-5c68b5cf14bso1701129a12.0; Tue, 05 Dec 2023 11:06:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701803169; x=1702407969; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=P1pAlpuH5Xa5SLoWkygT7UiOceoXCeggodj1re8Nc1s=; b=S8QtKoWCpIV5inwhdQ+T3t+2ZF5hrYMe0AsiKcdw6WlDE0QgyAXutomhYqqdTfrlUA 7kOw0EMWMoYo+p+SUlNqnj/6TtLEZ7TQPCd9ZVnVUrWSv52hF4pUkwEHHaDqFuQOJMfh 0rWOlUod7+geT+w9d95kJ295wCC0icNgvYGT+q1mvDmFak1SHUs/757QCUxbyk3InBe4 I3YFXNritC+nx+o/LGVFxYyCTXdgSlWCzobY8A171GN1gUKSsgj12xkN1wZRuDXyQYb1 W5iYhO2CuAdcf7Arx5WKGNpEz+x1ahSXQU1evEUMpq06lZu1QnPvAYMtNWhiQEYzFNZg nwHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701803169; x=1702407969; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=P1pAlpuH5Xa5SLoWkygT7UiOceoXCeggodj1re8Nc1s=; b=dJ4oGn+SD0CSVRERLSDlOCK+ZqDVsQjSaMtamc4rFsaulnU+pSL+D5qnITKqIS42pJ JvFFdvQvCcwu3Cj9W+rvqTZI5DwvP+sWTAW1kdi+sGmr0e7bLZmhw7ck6FsJ7onKFa5t kaCVaWKQXgsrHi2o9T+LYY2GU2oP0WPkHUmJI1qojpx0ZGufg63Arajon6/nh8HNsHhm aRiYNkMo3oPbmyYU5dVNIjNYbUT3qAKcIIxYfe4SHR5Rnnz4dO1eLjRlMoykNgfhgD3Y tL8WAw+zGXep6U1HMeOWvHaLMVB4bnrDTlcpyb3I9nwxlusHFJqSFjh6FRXHMg7heqYj hcyg== X-Gm-Message-State: AOJu0YxEeUCGb3ccH9pTY0Ju+8h7wOmzrCb4aQXx27bClzukC6RDn+4B qtR1a/FgYTUA0jZL4DLF+/eIjdxPwY4= X-Received: by 2002:a17:90b:4b52:b0:286:bdb5:d073 with SMTP id mi18-20020a17090b4b5200b00286bdb5d073mr1420677pjb.42.1701803169102; Tue, 05 Dec 2023 11:06:09 -0800 (PST) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id gb2-20020a17090b060200b00286c1a13ed9sm3110511pjb.56.2023.12.05.11.06.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Dec 2023 11:06:08 -0800 (PST) Message-ID: Date: Tue, 5 Dec 2023 11:06:07 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/4] memory: brcmstb_dpfe: introduce best-effort API detection Content-Language: en-US To: Markus Mayer , Krzysztof Kozlowski , Florian Fainelli , Rob Herring , Conor Dooley Cc: Linux ARM Kernel List , Device Tree Mailing List , Linux Kernel Mailing List References: <20231205184741.3092376-1-mmayer@broadcom.com> <20231205184741.3092376-5-mmayer@broadcom.com> From: Florian Fainelli In-Reply-To: <20231205184741.3092376-5-mmayer@broadcom.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 05 Dec 2023 11:06:22 -0800 (PST) On 12/5/23 10:47, Markus Mayer wrote: > Add a best-effort probe function that tries all known DPFE versions to > see if one might actually work. This helps in cases where device tree > doesn't provide the proper version information for whatever reason. In > that case, the driver may still be able to register if one of the known > API versions ends up working. > > Caveat: we have to skip "v1" during our best effort attempts. This is > due to the fact that attempting a firmware download as required by v1 > will result in a memory access violation on anything but v1 hardware. > This would crash the kernel. Since we don't know the HW version, we need > to play it safe and skip v1. > > Signed-off-by: Markus Mayer Reviewed-by: Florian Fainelli -- Florian