Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp380101lqh; Fri, 31 May 2024 04:28:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWe2tEo6YUXVvXn80vJMIORy+xxPt54KmvLM2BJQRaiszpXtauxON0QHmycXtfPpQCEF+A6txoCrBXGOBFkGpWivhiTnrlmii0GsYjbVw== X-Google-Smtp-Source: AGHT+IEOs2W9+0qfGhDpFuDzrzgHetYhCWWE1EvtIoEAE+qW2+mE0LJt+gOn5yJiJElCOP4gJ1SQ X-Received: by 2002:a05:6820:811:b0:5b9:6d4a:3fab with SMTP id 006d021491bc7-5ba05ab6896mr1734625eaf.2.1717154898064; Fri, 31 May 2024 04:28:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717154898; cv=pass; d=google.com; s=arc-20160816; b=IkIYCT1BR+3sB++q9Ea4pmSbsjqj+ZKNVxGah3pOwaY9fCf+5s019VCNSd/Vt7EPRl aew6mZFdgagD3WWMLfSMh9oEx3xZFQJY5WA9jZ1Jg7226/ur9dSmxuTdafOXzQuUHsUZ 2xU4YmFq5KiwVFZsBg0U2YuqzJYpE1ZhLXmGbO8mfRLz6kpvWULuY0ME7Ek4BPeQ4o5J MTxHhHwnN8PBUarEjis5FXU50FVtsqyZ+WslS8XbCULqA/94bTNVPFweBMocRHRS+/AS MMXKdxOwu1eeA7FZXW2MYcGwQ1Q5PNL9CKoh6FxTKBAdIDDjA27aC0hu2O3Yxrdx9TO3 x4Jw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=N2xogLUhalbqd5Rj5JxRpBYbX5aMNbX37zbmgE6qPbM=; fh=NzzV5Kpi5g7P/v0RhahoqeQ7Dm6siESi7qwp7iP3sTg=; b=ItiOx6dcwHIOvzYj4Wsu9blf5qIadCjAD5iBqP02ucRUVhXQvEnatX8DHZsf8S8M5a GTZsAi5mBVPbq7EiwIXdM+E13akaMvOy6XfQApUREwR2HUzwhrE/fZSfVX6BUFAFg2ya EnlmmtSRWtCxz4OgjwvnVwdpcVumXPfH+lGhPSqU4xkq23Iry1USvzPt1Ft78Pa/L8mz MFdPS3/K6CTTEn6ieHCep4KXNvGM+a+X6hO8ICF2MH5kAlGUuc3s+OkG1+xLv6Mht6S8 Hp4mYprBh/FGosiWluOydA2moIo0N7yHBfmjosdWk1f3sfxIb5AhR6Cl2kFkydH4eZP4 SWaQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b=SvhJgXXE; arc=pass (i=1 spf=pass spfdomain=fe-bounces.kwiboo.se dkim=pass dkdomain=kwiboo.se dmarc=pass fromdomain=kwiboo.se); spf=pass (google.com: domain of linux-kernel+bounces-196735-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196735-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kwiboo.se Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43ff23dc39asi18391771cf.225.2024.05.31.04.28.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 04:28:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196735-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kwiboo.se header.s=fe-e1b5cab7be header.b=SvhJgXXE; arc=pass (i=1 spf=pass spfdomain=fe-bounces.kwiboo.se dkim=pass dkdomain=kwiboo.se dmarc=pass fromdomain=kwiboo.se); spf=pass (google.com: domain of linux-kernel+bounces-196735-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196735-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kwiboo.se 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id AC77A1C240FA for ; Fri, 31 May 2024 11:28:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D26E115748B; Fri, 31 May 2024 11:28:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b="SvhJgXXE" Received: from smtp.forwardemail.net (smtp.forwardemail.net [149.28.215.223]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BC00915747A for ; Fri, 31 May 2024 11:28:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=149.28.215.223 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717154883; cv=none; b=f7p6gdo+Sy0lYmlJICclKDQTyueVDRZ6VhVTJqBy1IL3AIkuXkSjNUUxwmgG1iPQcErNxQcXrPSv5CBq2VkK7Ka7+Z0xJo9N/Klya6mNkWeIz3m2seS3FglWtCsMWBp8tOAzv3uVpCEKrYKt9qWAMUwYjA7L9FzeFvrCv4mZRCA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717154883; c=relaxed/simple; bh=7vuGhLrnij2uK2UMUCCnc7HE/x3rx+Ob66hNpdAjkBA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=H8A89EnTKQe2M+ALsHxVnVQT8BaRmgNvDY6+Y80Nt48KTrcha3C99DtfDSKtT3Ps1DebDciPJLHHG3j8h92yLLyTtF4vwZPM9VQIIKQnnirijlDW9CGX7k+tfQFKN+nQAtocYbcnqvUubVez6ucaY03lrldX7Ngz47r+WhgrBMw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kwiboo.se; spf=pass smtp.mailfrom=fe-bounces.kwiboo.se; dkim=pass (2048-bit key) header.d=kwiboo.se header.i=@kwiboo.se header.b=SvhJgXXE; arc=none smtp.client-ip=149.28.215.223 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fe-bounces.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: From: References: Cc: To: Subject: MIME-Version: Date: Message-ID; q=dns/txt; s=fe-e1b5cab7be; t=1717154860; bh=N2xogLUhalbqd5Rj5JxRpBYbX5aMNbX37zbmgE6qPbM=; b=SvhJgXXEbHksx2zo7oz/sG9pvBBV2H5lstqyss23vfvbStqYXWBeuGiE81nb7g5TAzdJ5bI7V CDJWuwszcTQO7FFPGxM0J1P9QOML2y9bRsSYl+Kkx7sYHF2w53zj71m7qIFu+jVr+g0YdrRPAnd sQXxnGT21VHRXPBzjIKewSZgmCtwHoHCvfDOUi20nFxecImYuzhPL1JrGECa0bCvAiQs7P81ozS CuJwucilMKfXkhnPKlqHqU6bIVojFZPp6Iuiba5I15uNlFXTt0apRVYoynqErEn3/M77XghR/dC hQYs0nQ1fXeC1K21B0J8T0ixL7h6CKwJWAiEFjgT7Qlw== Message-ID: <607f4da8-99b2-4379-9567-4bfd2744eab3@kwiboo.se> Date: Fri, 31 May 2024 13:27:31 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH] arm64: dts: rockchip: Make preparations for per-RK3588-variant OPPs To: Dragan Simic , Alexey Charkov Cc: linux-rockchip@lists.infradead.org, heiko@sntech.de, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, robh+dt@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, linux-kernel@vger.kernel.org, quentin.schulz@cherry.de, wens@kernel.org, daniel.lezcano@linaro.org, didi.debian@cknow.org, krzysztof.kozlowski+dt@linaro.org, viresh.kumar@linaro.org References: <673dcf47596e7bc8ba065034e339bb1bbf9cdcb0.1716948159.git.dsimic@manjaro.org> <8f8623e29a479c4108141302e708dc3b@manjaro.org> <166cc4e46f31644a50306625b2ab18a6@manjaro.org> <82db817a908b761d8c3d73ea04714314@manjaro.org> Content-Language: en-US From: Jonas Karlman In-Reply-To: <82db817a908b761d8c3d73ea04714314@manjaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Report-Abuse-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Complaints-To: abuse@forwardemail.net X-ForwardEmail-Version: 0.4.40 X-ForwardEmail-Sender: rfc822; jonas@kwiboo.se, smtp.forwardemail.net, 149.28.215.223 X-ForwardEmail-ID: 6659b429f6613cab14c70b44 Hi Alexey and Dragan, On 2024-05-30 21:31, Dragan Simic wrote: > Hello Alexey, > [snip] >>>>> That way we'll have no roadblocks if, at some point, we end up with >>>>> having >>>>> different OPPs defined for the RK3588 and the RK3588S variants. Or >>>>> maybe >>>>> even for the RK3582, which we don't know much about yet. >>>> >>>> Guess we'll deal with that one once we stumble upon an actual RK3582 >>>> board out in the wild and heading to the mainline kernel tree :) >>> >>> Of course, that was just an example for the future use. >> >> In fact, I've just discovered that Radxa has recently released Rock 5C >> Lite which is based on RK3582, and starts at just $29 for the 1GB >> version, making it interesting for tinkering. Especially given that >> its GPU, one of the big-core clusters and one of the VPU cores seem to >> be disabled in software (u-boot) rather than in hardware, which means >> there is some chance that a particular SoC specimen would actually >> have them in a working condition and possible to re-enable at no cost. >> Ordered myself one to investigate :) > > Yes, I also saw the RK3582-based ROCK 5C Lite a couple of days ago. :) > It seems that the disabled IP blocks are detected as defective during > the manufacturing, which means that they might work correctly, or might > actually misbehave. It seems similar to the way old three-core AMD > Phenom II CPUs could sometimes be made quad-core. > I can confirm that the RK3582 include ip-state in OTP indicating unusable cores, any unusable cpu core cannot be taken online and stalls Linux kernel a few extra seconds during boot. Started working on a patch for U-Boot to remove any broken cpu core and/or cluster nodes, similar to what vendor U-Boot does, adopted to work with a mainline DT for RK3588. On one of my ROCK 5C Lite board one of the cpu cores is unusable, U-Boot removes the related cpu cluster nodes. On another ROCK 5C Lite board one rkvdec core is only marked unusable and all cpu cores can be taken online, U-Boot does nothing in this case. Guessing we should apply similar policy as vendor U-Boot and disable cores anyway. Following commit contains early work-in-progress and some debug output. https://github.com/Kwiboo/u-boot-rockchip/commit/8cdf606e616baa36751f3b4adcfaefc781126c8c Booting ROCK 5C Lite boards using U-Boot generic-rk3588_defconfig: ROCK 5C Lite v1.1 (RK3582 with 1 bad cpu core): cpu-code: 3582 cpu-version: 08 10 data: fe 21 package: 11 specification: 01 ip-state: 10 00 00 bad-state: cpu core 4 ROCK 5C Lite v1.1 (RK3582 with 1 bad rkvdec core): cpu-code: 3582 cpu-version: 08 00 data: fe 21 package: 11 specification: 01 ip-state: 00 80 00 bad-state: rkvdec core 1 Regards, Jonas