Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp917393pxj; Fri, 11 Jun 2021 15:21:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+EwJcI2YtV9MCMt35GYR9CrcVJcDISy7qYMI7SRfmWxGK9iXw1FUmHN7dAIJWQcyVZiZ+ X-Received: by 2002:a17:906:b294:: with SMTP id q20mr5404566ejz.382.1623450112403; Fri, 11 Jun 2021 15:21:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623450112; cv=none; d=google.com; s=arc-20160816; b=HR2/9JR5fUyTzIUiCArcjI8hCjk/or4aUL6X43ECY7UwUx8n70EaJdNN1zV8qOsjHp sIt5MDy8RpPIXdfi4GlS+3ZY1Qd+eVNYCJ13sSoDzGCclXQ4xm6BSe3oEDSJKSNQjx1m s8Y06MJj6Lji0kKaSHOtfBv54W6tO6stH0lm1klWNYrQYIKAjOFkIBX0vcTGDHd7BnyP fKfFOm6b3Sbv8lHlozF4Aa91ddbr/HlK73EKkqNBfYDxXLAgoaM91A7rUsIbzx5Z6LT6 Dfk1DjvmPrmejiR/vtz65/buhGz1or2vIJ6LPqPeXUkcutu2c644Bv7YghCd1RPjFVtX lFkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=f+uaxMpoRfw650B/Fu2B1fpBr5zfl1LVTkLf2gwVsIw=; b=gOEyD024XWrtGtDmbpzGFagF84nL0srsMyjADYU1vpfgE85mue5WS3D/mF8/Hgao74 yqNQZklST5W9PJvf5AOHPLQUqaEPhQsCitPAFiQj9I4s5SBWF88pfbJMNe9rL3L/QALo X546obD0g9vGFbkGssl/SV1DzlixJdyZ5CYnhBjboGfTBSIYavlyBioeWhcggmIQrSap FnH8mccbNqkExQRkav8e5owDFyCEsxC7x8hPiaE26IauWP3uFymSeqZX7aew9C692mtx 5Ysvfp9Hm8YTeMV8NItQdcl/TcoqIMxcbMzXgKWAggqH6HNSY//S0QX3XQ0+JuS+VAEp Gc0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yh29si2875566ejb.592.2021.06.11.15.21.25; Fri, 11 Jun 2021 15:21:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230252AbhFKWWJ (ORCPT + 99 others); Fri, 11 Jun 2021 18:22:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229777AbhFKWWJ (ORCPT ); Fri, 11 Jun 2021 18:22:09 -0400 Received: from relay07.th.seeweb.it (relay07.th.seeweb.it [IPv6:2001:4b7a:2000:18::168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2707CC061574; Fri, 11 Jun 2021 15:20:10 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (unknown [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 726493F20B; Sat, 12 Jun 2021 00:20:07 +0200 (CEST) Subject: Re: [PATCH 2/2] arm64: dts: qcom: Add support for SONY Xperia 1 / 5 (Kumano platform) To: Konrad Dybcio , ~postmarketos/upstreaming@lists.sr.ht Cc: martin.botka@somainline.org, marijn.suijten@somainline.org, jamipkettunen@somainline.org, Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck References: <20210611203301.101067-1-konrad.dybcio@somainline.org> <20210611203301.101067-2-konrad.dybcio@somainline.org> From: AngeloGioacchino Del Regno Message-ID: <3fec843d-4e99-b7e9-0502-62b89b108038@somainline.org> Date: Sat, 12 Jun 2021 00:20:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <20210611203301.101067-2-konrad.dybcio@somainline.org> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il 11/06/21 22:33, Konrad Dybcio ha scritto: > Add support for SONY Xperia 1 and 5 smartphones, both based on the > Qualcomm SM8150 chipset. There also exist 5G-capable versions of these > devices, but they weren't sold much (if at all) outside Japan. > > The devices are affected by a scary UFS behaviour where sending a certain UFS > command (which is worked around on downstream) renders the device unbootable, > by effectively erasing the bootloader. Therefore UFS AND UFSPHY are strictly > disabled for now. > > Downstream workaround: > https://github.com/kholk/kernel/commit/2e7a9ee1c91a016baa0b826a7752ec45663a0561 > > Signed-off-by: Konrad Dybcio Tested on Xperia 1 (Griffin) with a small initrd system (sorry, no time to flash a full fledged system!) and boots just fine. On a note, I would like to bring to the attention of other developers that we actually tried to get informations about the UFS quirks that all Sony devices require, as they seem to be required "on purpose", meaning that it's not a hardware/firmware bug, but rather an intentional "feature", but nobody has been open to give such informations to us, which made us unable to understand what's the best way to address this kind of quirk here on mainline. If anybody has such informations, or if anybody can give us a hint about how can we properly/cleanly implement the Sony UFS quirks, we're totally open for any kind of suggestion. Thanks! Reviewed-by: AngeloGioacchino Del Regno Tested-by: AngeloGioacchino Del Regno