Received: by 2002:a05:7208:2202:b0:86:316c:7444 with SMTP id s2csp673106rbb; Fri, 31 May 2024 14:25:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWjAjcQ+9hQ39pjrMsFpUm5WH+DKQ44gvVG5bPlZ9gFLCOYpESSI+8dc5JJ4eT63Rq8erd044ezZWsuRFrSHZQgS3XLCIv8+d+SKq7o+g== X-Google-Smtp-Source: AGHT+IHOgq+Qhrs4y2/baEHzCEfvB6oKE9Wh8ZrxhKHjZYcBhmgw1PMGOR3YIzYOrfnTtANq1lHX X-Received: by 2002:a67:fa43:0:b0:47a:2cab:75ad with SMTP id ada2fe7eead31-48bc2181d44mr3347186137.14.1717190709776; Fri, 31 May 2024 14:25:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717190709; cv=pass; d=google.com; s=arc-20160816; b=ouKt48Zz1pORKl4C13aSkvO29p5QTKPTGUMIdXwuMj9Fska+xQCAyJikF4W6KaITBt CueBcoaJ7wSqrwkZ5ROKnjgY5Ivi/wSDBeQ17bDEJ57+nnRP6oZ5e9BpUH9iff5TIcLp q/fTq7m0nh7tfJBGAaw6LIIVmWrO6TyST0JWKmQH9JV8MzBaOyxyJStaVa7XyJ5NQMgE nNkZhz6K7EUnKajU3tEdi+XKbSFLP1S/v4eB/9qEoHIHy8IHkGqMIQ2t4U4Y7giCW4n7 ka5QYDCEGwbtTTVfqiHrAkAmSmpXoflYVeO2nlfpOIeDQX7hzqIXY8PJ7S3AmpjbrzO8 n7sA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:message-id:references:in-reply-to:subject :cc:to:from:date:dkim-signature:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=Jww2qZI1db4LLxX4ddTJs3O/960dbOvvlMlYQYu9OhE=; fh=uaoIvGRyPj1+Tcat7fquEl/mgxeyvm258FHC8F8/cCM=; b=U3Y+NTv4nfIZSCBQNnO308oqLJmaviIcIWZFfaupGgaI9qwrqx4Nt+1IiEPugpx0PG Os4X6yCIUPqXls8VqybvGvXKIrdPn4XP5sYGYL4bOuqwjo2eH9bVcYCZJAzn7fQvYPEa zCjiQMRZNKX8m27m2VP4qgXohZ/Sx1YJKKFi0BfmjbS40zGqJANUDKDiYwBsJeaw91Fr r4+PjaneCRLv40PSQ0XCmJkniz+c0vo3hveS886bp2ANy4a3jCAyxJC441EWsz49E1r0 8/f2Ww6VEJsl054UoxSwT3hI6F8Jjy5oXsD6XegI6YqARdNmzYqpLhezXL5cv1BkrH0k 2V+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@manjaro.org header.s=2021 header.b=lY00Jlkh; arc=pass (i=1 spf=pass spfdomain=manjaro.org dkim=pass dkdomain=manjaro.org dmarc=pass fromdomain=manjaro.org); spf=pass (google.com: domain of linux-kernel+bounces-197503-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197503-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=manjaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-794f32a59a9si263113185a.614.2024.05.31.14.25.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 14:25:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-197503-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=@manjaro.org header.s=2021 header.b=lY00Jlkh; arc=pass (i=1 spf=pass spfdomain=manjaro.org dkim=pass dkdomain=manjaro.org dmarc=pass fromdomain=manjaro.org); spf=pass (google.com: domain of linux-kernel+bounces-197503-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-197503-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=manjaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 755B81C25626 for ; Fri, 31 May 2024 21:25:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB93F79949; Fri, 31 May 2024 21:25:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=manjaro.org header.i=@manjaro.org header.b="lY00Jlkh" Received: from mail.manjaro.org (mail.manjaro.org [116.203.91.91]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E4D811CAA6; Fri, 31 May 2024 21:25:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=116.203.91.91 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717190705; cv=none; b=J+A1tsDxQskyjMmP3FZ+zsbK07cm+7cMAsguoIznp+c0MwRd/HimvhvNuqyQX/EMceT5Qnz4l01lZD8Sc0IZsc/u+m47UXvSLa6CUNSfUcxMGkKAPc/DZ2PNGP+zBnAs8mB6+gue8AtGytGfKPSmOnNj4+iRZW7oWGs7xaXuThQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717190705; c=relaxed/simple; bh=VF5huSIXEGspnsYcYrVm6cTWXK90solzuMmSiSuO6uY=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type; b=BDTtXj3kVPqMGEgG+QPcs2ZYAen4gjF9mefPpv9sh1nM6YJFaHa1IMo31Uayn65swX4SmzYNhL0sr0d3PgsL+oTPXfGj8ZTKDNkYb7qacpjl5I1jvRckskmi3LHbisW+kJPYsSjodjEXKfoLJDTiRDXu9CaJaxUHQPL/ub+l73E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=manjaro.org; spf=pass smtp.mailfrom=manjaro.org; dkim=pass (2048-bit key) header.d=manjaro.org header.i=@manjaro.org header.b=lY00Jlkh; arc=none smtp.client-ip=116.203.91.91 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=manjaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=manjaro.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=manjaro.org; s=2021; t=1717190694; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Jww2qZI1db4LLxX4ddTJs3O/960dbOvvlMlYQYu9OhE=; b=lY00JlkhEeFaQAD6/CPV34Box50rDsxRCnJhPcrckinMIimIB2a+vL0dC2/10rznzsFNTM HpicKiI70a8tubn7YogGYe4aVV5iJY4gMVHOA1kLWpzW6RfkpjWioyrZ+pN0dMdDjbT1hi 0scxBkRlDJ7B5znOVfryeCtRcBd4CvvWJNDkZB6Rk/u34Ep/9jtkFXWGRIE07Dp5JTlJvC BpZvNk6Xwu11785eyHPD7KUmyNxwlUNKy57BXqr53H/h1f3sEhC2E+fiFQvzrg8Tm7wi9n QsgiyHgZ2FP8zCwMTuRfnEytkZJU6SVZAYW4ItOHwVAlYZdzEtayK4AV5yvuTg== Date: Fri, 31 May 2024 23:24:53 +0200 From: Dragan Simic To: Jonas Karlman Cc: Alexey Charkov , 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 Subject: Re: [RFC PATCH] arm64: dts: rockchip: Make preparations for per-RK3588-variant OPPs In-Reply-To: <607f4da8-99b2-4379-9567-4bfd2744eab3@kwiboo.se> References: <673dcf47596e7bc8ba065034e339bb1bbf9cdcb0.1716948159.git.dsimic@manjaro.org> <8f8623e29a479c4108141302e708dc3b@manjaro.org> <166cc4e46f31644a50306625b2ab18a6@manjaro.org> <82db817a908b761d8c3d73ea04714314@manjaro.org> <607f4da8-99b2-4379-9567-4bfd2744eab3@kwiboo.se> Message-ID: <66677077acf4e970444cea829436fd0a@manjaro.org> X-Sender: dsimic@manjaro.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Authentication-Results: ORIGINATING; auth=pass smtp.auth=dsimic@manjaro.org smtp.mailfrom=dsimic@manjaro.org Hello Jonas, On 2024-05-31 13:27, Jonas Karlman wrote: > On 2024-05-30 21:31, Dragan Simic wrote: > [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. Thanks for this confirmation! > 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. Nice, thanks for working on that. :) > 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. Just checking, you're referring to disabling the rkvdec core only, for the latter case? > 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 Thanks again for these nice details!