From nobody Sun Feb 8 02:56:14 2026 Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) (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 A171F3242C2 for ; Sun, 11 Jan 2026 12:34:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768134893; cv=none; b=K8l/fLS3ATBSNDewUwmAehWeCr2s62frq7m7xrxGowhn1BaQdFssiuNhqNWgjUbQYlSAkbpkXb7+G/l++esVXDuNLmcoutAB3qOf93UxOE90yhudxW6Mlrg6FYKoRSGll7OlHiOEVrNeR6yF2YeM+UIM7KxfMCgBXW08InnSNjI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768134893; c=relaxed/simple; bh=uTtXZvrZwmKdVa3qaEIhedrfh/N3MCCbTvuMLgQc258=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=c9q412TZarCBf+GDpGvBsvbQ15cSF4Fl00pcj4CPOMMJDBAp7XRfh0kSytIgahLrHsQo6o8tFjC4G0nwa3n4xd0YYzxi67XpM50Ez8h3pqiTs7RvnecC92DeJS72f2ehmVt+pPPldL6DEJoDNY/Zl96qVk7cx6I7n16yGyD53AQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=df+QQL2j; arc=none smtp.client-ip=209.85.215.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="df+QQL2j" Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-c47ee987401so1887986a12.1 for ; Sun, 11 Jan 2026 04:34:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768134892; x=1768739692; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=V6E74DSec59yu+ZnArwwPAAGN3RHG1/BS0in/WsrVyE=; b=df+QQL2j7nEDC/IuIFzfPKnmhlXU+xR0HWat4Jl69KXj0MTKxDQzW7mU9gPTaSdFvN MKweHDx+FX9q/OIvBwFRSlrADCoZ598siMCLfpg1WyqyYEFeD4yFeh41Xiho98ybiEJ5 qbQA4A7/gqyiTyGJMFdWX3PU6Wbt034AaCnjf1xNwISwhjniNN6ydH7Q6MfvLKBp7zbJ iuvJBRdyJ2tAQb3EEXGDV2pRvfC8MZS/JduUz/QH/9S89Ce1MAuKud4305XSb++eVsGg su8cH7vDEZp98PZUlhU6Om+MvLMi48GCs/zHOrOhZ9UhPcrUoa3IKhGVxvMHJws9AXE9 vChg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768134892; x=1768739692; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=V6E74DSec59yu+ZnArwwPAAGN3RHG1/BS0in/WsrVyE=; b=LbxuLGxdOOV95s05rwWbxigPtH9VKxhCwLg5hWYy6OgGlFzf+3S7QJS1heYfakwZhS ilNHuEtxdr77svy6TMzuJaSzoly1kVkWaYNBxr5SErRZaYNkLvBe2gvluKVzAAy8j0G1 IPGTcDRpKy5mwiTQPsZsv0PNZY23aIaYv9jLuYpxDvGMRHVLrfHIxf7k/9ePmUeSArRf VnuQFh1VMGE4OiQ1qaAGkwS3NYh0rRJzx7xn8783HHheuyGFRdsL86mNzPkxFViVtM6T tgYnx1k7qLhiaZ0iX5vEAcu+Ha5U/aeQVfg+zwZPmzTUsNf4w/BwByUkLbbwCQXXeEG3 CRzQ== X-Forwarded-Encrypted: i=1; AJvYcCUJQNDDnomSQGjWrMue/gtIoOx9FRfCaTl3iZoxnWDsE/GhShvcehbhKFgSLIkVfzBK+JVZg/1AZKiqC9s=@vger.kernel.org X-Gm-Message-State: AOJu0YzCEn3khIUjo//aZ8NXvQ/F5Yzo9drcST53VXFRtearDEEHWo2P NNZgFAKHz6o7JKWHE7hPg5XCKvRdHsvBRLowEE8Rc6WB1PGQQt8UtYkcfPjfjg== X-Gm-Gg: AY/fxX7QXf/yPRlDqLV8H6l7ywz7mPbnwPY7XqTtdoCIpXAKhdP5oGHmdTtRf+qFRST fAy21AhtbvJKT/nLDP0v0652i84qXxC6MMNWyBtqxxuQ621WSeQTZbqQ5BBGnjtTRs9axi4sqkk V6ROQOD1iT5GqKNUHAK46JS4UOOBnVkZG4kR7ntZne90JtHTZge4yi64kEpfGZ+edigKfJqLQ3H rQfoEMakLaDMPf3duwWFJtKZkg6XQXK2m55FZ7oEvLKRl6FTYSQUR009VpMuyh/eltQJlsUY9G4 Fb2HeTVTVzyCB3poDCLxLBZ0uS0jmCzH6109yo73izaTOpMUXg6JZH7XjQcrcE60Kn2zLcGjyRd drgXZvKQsxYFFZG/8OAgA3xDNJ9mBIqwB6d0rbtdwsuqSI54duZ9qwyi3M0nkBYdnthl9EjVmxZ 7OuCanZu1jtdA+Nt94ILaFhKoH72wFjY9Q3/3ndIB3HHIp X-Google-Smtp-Source: AGHT+IFzlkIgyhNkgGw/SUJ8HJehdl5WcfhYzM5eBYPMO8aJ4Cz3oCCEuySX87MYb6s5zDv83c131w== X-Received: by 2002:a05:6a21:3397:b0:347:4aa1:ddec with SMTP id adf61e73a8af0-3898eaadcf8mr14442351637.25.1768134891850; Sun, 11 Jan 2026 04:34:51 -0800 (PST) Received: from C-PF5BVJTJ.vpn.alcatel-lucent.com ([167.103.6.164]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c4cc95d5f10sm14707097a12.26.2026.01.11.04.34.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Jan 2026 04:34:51 -0800 (PST) From: Karthikeyan K S To: hminas@synopsys.com, gregkh@linuxfoundation.org Cc: gregory.herrero@intel.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Karthikeyan K S Subject: [PATCH v2] usb: dwc2: add missing SLAB_CACHE_DMA flag for desc_hsisoc_cache Date: Sun, 11 Jan 2026 12:32:18 +0000 Message-ID: <20260111123218.15972-1-karthiproffesional@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The desc_hsisoc_cache kmem_cache is used to allocate DMA descriptors for High-Speed isochronous transfers. These descriptors are passed to the hardware via dma_map_single() in dwc2_desc_list_alloc(). The desc_gen_cache, which serves the same purpose for other transfer types, correctly specifies SLAB_CACHE_DMA. However, desc_hsisoc_cache was created without this flag, despite both caches being used identically for DMA descriptor allocation. Add the missing SLAB_CACHE_DMA flag to desc_hsisoc_cache for consistency and correctness on platforms with DMA zone restrictions. This also protects against future allocations from this cache that might omit GFP_DMA. Fixes: 3b5fcc9ac2f4 ("usb: dwc2: host: use kmem cache to allocate descripto= rs") Signed-off-by: Karthikeyan K S --- v2: Resend with proper formatting (previous was corrupted by email client) --- drivers/usb/dwc2/hcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c index 30eb85066..556d6ab36 100644 --- a/drivers/usb/dwc2/hcd.c +++ b/drivers/usb/dwc2/hcd.c @@ -5273,7 +5273,7 @@ int dwc2_hcd_init(struct dwc2_hsotg *hsotg) =20 hsotg->desc_hsisoc_cache =3D kmem_cache_create("dwc2-hsisoc-desc", sizeof(struct dwc2_dma_desc) * - MAX_DMA_DESC_NUM_HS_ISOC, 512, 0, NULL); + MAX_DMA_DESC_NUM_HS_ISOC, 512, SLAB_CACHE_DMA, NULL); if (!hsotg->desc_hsisoc_cache) { dev_err(hsotg->dev, "unable to create dwc2 hs isoc desc cache\n"); --=20 2.43.0