From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 0A2DC2EE262 for ; Thu, 4 Sep 2025 09:18:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756977494; cv=none; b=TvEtKgvl7eFEfAvnMf3XMsCZ1kikESn779nALTyO4jfGvzacAAlakHviIFunBaVzdSB1rs0fgVvfzONex13VQhm44qcnuPo7aaKt9r/OxkQIZh/H9d0F+Rff2F/AZFUv+Cruaz5YCpWPNk9WvOKvQNQY2/n2dPdwJGa4X5YxA3Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756977494; c=relaxed/simple; bh=okyI9VENEpsFeL+2iWfOIXetanLtRHN5I9oZ9851xAs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sZe+nQ+qXoNsn4GdVR2rCyx/sHJCuQ8x9jB689Jp/JoTtY8tsEbIUvGxhtpaYCe0S7kpyxVdBSSS0Dvon9I3vaR+MZ7vQS1zaj606tn8y3RgtYOuZl/ahz7qRMte0LmGaV+b6sbD6b3R0/uSN790aGadz/d5VI3h5Bm4OeUggfs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=IwYl+urh; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="IwYl+urh" Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 5849885V008775 for ; Thu, 4 Sep 2025 09:18:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to; s=qcppdkim1; bh=qmq9wf97WQ04RGKWFb6wkMRy x7DWCe5tA3lTLApTcbI=; b=IwYl+urhBylpm0TjNvP5v4UPRxAb7tjWGHc2T/hH H24q5AaNp9gCrWh5uktCFyDs6sR+xxPMoNw5dKfzdVuRwyKkpYxaxJldIbJ0gfod PZu2vKPAWYJ9lRhHFGYJl1fmnAAsv5p4O90t+/U5qMGfyOmE9SmLs59EYrl+LZ51 BKTHIYSHTSRcWXCFzry4EfbK5FWmebldbhXwB7qcGeQ/p9dGJw3avYSzxaA6aHCW FhbYZ/oVnta+j5jPOG4LhaoXo6V9kKtwRO8Wscv0UYHcBMHgozrQtvBkDhs0Augf qXTfak72aahvzG1/06p11o9lXmyGIY+7vUmA9c6csBhPYg== Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 48uscv7364-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 04 Sep 2025 09:18:10 +0000 (GMT) Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-244581ce13aso18451675ad.2 for ; Thu, 04 Sep 2025 02:18:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756977490; x=1757582290; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qmq9wf97WQ04RGKWFb6wkMRyx7DWCe5tA3lTLApTcbI=; b=Y/Zl8aWKZkHsxe0IhYfMYaQ81YV0FIorQJFR2hh/0Cp1fpVNBLq0zPBbXigxs8HmfA OVG6waS96Liepqv51BLsfM2KTJWWRLQpthRw0RiCG/EBMp06Yu4I0FBfsds+tEtSA6yq C41T+/NfT36CX181q9h1BMOoJAcYTsozfFRU3O2KAcVYIVHfZdVzKc2hWzNY7FWJ/xfg 82b3ZM1lYtLocksnum+WHMi6rPyjb4VQgMXRKy6hlIZ7Xh0FCxWLQ0hYlj0KqibWztns UjtK5rHLh5mjcFv7OFRWVWxqyA+U+sdlhBHQyk8qNvVuzamZY24bnRGcD9dihCAwv+Vw Skfw== X-Forwarded-Encrypted: i=1; AJvYcCUG+caNUZSWLSAghNkwfzzkBcZRRsH7DRjg4mv0zLCZzMGOGWoEuJlD6RXdkKDJzY9bNY2fBr7XPf1AegU=@vger.kernel.org X-Gm-Message-State: AOJu0YzYg2hHava0K2lvWVlZE7g/udoAX66SrjOGEz3Wx2ZKzpprNxhx 7O9SUfDMvHwlbuAKtOWKjX8r3A0y/m+bmKGxn98XsdjQEbUAqey/LkIZbvoU3Sbwn6XGrM9SbBJ q3PZfABDxMcZD0nVK7oEB8q10JZ1gFfnRd1vjRHc2nq8aG35F+JtP79YptWpLtqhlzVE= X-Gm-Gg: ASbGncvHkcw3kk1hAHYXOqRucV5/gBtT9AlhKPmKAD0uFD7CEg/tsrJjKOecL6m3k44 Jcaba4j3rmm2senmqZ9S2x6nAoEC2GEe426JrpY/iUVjU7RKPJH7214rS6U6+dxqXx4O5S/cAKO 7hUkQNzw5ceHBkCzCyCXwMVBGWhtUkf480ZrIA6pYseoIBlhLoN0+kGaO3wIUoQH4w7C7R7FKmK Ismj1QyclOgWA10X5MXHMml7hq5FOhGy/YnKXwb+GCOH9EZWxpvqAPk1kvEQGdZJQ+FlpHpC7Ym KL40wLy13riClgGLgKmu4JQmh+FhMXwurbzFq5rXz+4hF8+QZTLpzU+NZdm+7ezf1cauwMIDfg= = X-Received: by 2002:a17:903:2f0d:b0:249:f16:f080 with SMTP id d9443c01a7336-24944afb3ccmr234248795ad.52.1756977489607; Thu, 04 Sep 2025 02:18:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG1YA8b/X0kiXwOjhDTMCW5oJYVAsU0R0JJ1m0N74tbsJnxiIQuGYYqpZFLwCSpwS0SH0XTgA== X-Received: by 2002:a17:903:2f0d:b0:249:f16:f080 with SMTP id d9443c01a7336-24944afb3ccmr234248365ad.52.1756977489073; Thu, 04 Sep 2025 02:18:09 -0700 (PDT) Received: from hu-pkondeti-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-24b11448a5asm74820385ad.54.2025.09.04.02.18.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Sep 2025 02:18:08 -0700 (PDT) Date: Thu, 4 Sep 2025 14:48:03 +0530 From: Pavan Kondeti To: Neil Armstrong Cc: hrishabh.rajput@oss.qualcomm.com, Bjorn Andersson , Konrad Dybcio , Wim Van Sebroeck , Guenter Roeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] Add support for Gunyah Watchdog Message-ID: References: <20250903-gunyah_watchdog-v1-0-3ae690530e4b@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwODMwMDAzMSBTYWx0ZWRfXySAbr7KRN/if R7Kg6GC7+gwvQm5WRkyObVw6lvBhn2ELJWLJWqlkzLlabBmlbOuGEP1iHbD/VX9cNX78pBqcqpB UNP7cTfr7VPvTHzLht1ljBbeHpkIyGU7NruOTCvfGZw8lBCCgJGNpMy7wY+6UpN1/pR8c7ZlD8K lnIicfoYZg+Px28O29oVveIX2yQGsO17FZEGg0Sfe/TONppZGTUS5WWMOI6Ebg2EEj3rxV/4HGm IntWBwjYNrkY9PxUf59K1mcih2RnTj84Ev/4aR5Hb/8bCj2CU7NVPZVLSjci+YrzwagvzZq7RKg COdKz+R+9uEtOmCOqXOmnXSN1KhXXfOYqkUl/HBZfHkhddyVZmqMI3vtIwngdVdW/e4W3RB75I4 wWdxnVSM X-Authority-Analysis: v=2.4 cv=A8xsP7WG c=1 sm=1 tr=0 ts=68b95952 cx=c_pps a=MTSHoo12Qbhz2p7MsH1ifg==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=kj9zAlcOel0A:10 a=yJojWOMRYYMA:10 a=bjUImR_lD7Cc3jxH_h0A:9 a=CjuIK1q_8ugA:10 a=GvdueXVYPmCkWapjIL-Q:22 X-Proofpoint-ORIG-GUID: 5-dOsUqMiGcvoHFMief0CUp_Qguuhlb2 X-Proofpoint-GUID: 5-dOsUqMiGcvoHFMief0CUp_Qguuhlb2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-09-04_03,2025-08-28_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 spamscore=0 impostorscore=0 bulkscore=0 clxscore=1015 suspectscore=0 malwarescore=0 priorityscore=1501 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2507300000 definitions=main-2508300031 On Thu, Sep 04, 2025 at 09:13:23AM +0200, Neil Armstrong wrote: > On 03/09/2025 21:33, Hrishabh Rajput via B4 Relay wrote: > > Gunyah is a Type-I hypervisor which was introduced in the patch series > > [1]. It is an open source hypervisor. The source repo is available at > > [2]. > > > > The Gunyah Hypervisor doesn't allow its Virtual Machines to directly > > access the MMIO watchdog. It either provides the fully emulated MMIO > > based watchdog interface or the SMC-based watchdog interface depending > > on the hypervisor configuration. > > The SMC-based watchdog follows ARM's SMC Calling Convention (SMCCC) > > version 1.1 and uses Vendor Specific Hypervisor Service Calls space. > > > > This patch series adds support for the SMC-based watchdog interface > > provided by the Gunyah Hypervisor. The driver supports start/stop > > operations, timeout and pretimeout configuration, pretimeout interrupt > > handling and system restart via watchdog. > > > > This series is tested on SM8750 platform. > > Would this driver work on older platforms like SM8550 & SM8650 ? > This driver should work on 8550 and 8650 too as long as the hypervisor overlay is applied to the device tree which happens in the bootloader. I remember porting some hypercalls to 8550 upstream kernel to induce the watchdog bite in panic to collect the dumps. one of the biggest benefit w/ this driver is that we can collect dumps upon kernel panic. since we won't be able to pet the watchdog upon panic, the bite would eventually happens and device enters dump collection mode. Thanks, Pavan