From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,INCLUDES_PULL_REQUEST, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3619BC433ED for ; Sat, 17 Apr 2021 03:10:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EDEB3610E6 for ; Sat, 17 Apr 2021 03:10:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233892AbhDQDKr (ORCPT ); Fri, 16 Apr 2021 23:10:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231997AbhDQDKr (ORCPT ); Fri, 16 Apr 2021 23:10:47 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86395C061574 for ; Fri, 16 Apr 2021 20:10:21 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id o20so8191494edc.7 for ; Fri, 16 Apr 2021 20:10:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc; bh=85gK/G/W5iMoBK0GkeseBpRLSu6iilna997G3wOYzKA=; b=HZTGTUKH8dKDQI2cGgMS1199JU9pwVvYvJfVz2X/jLUwSNcdlBWa0RFaUmv1m7HrbG z64NOSpbvXOlflEQYZ6uGqMlG1AwvqN+gQumUEt8f1ZQk1Dm2HO6ZhyoJf+M/FC18UmC OwiJXRZnahH0CfG5nXtLVX75mf4BrOIupIPP6WYUKKYhqFixVzS7fe1CfrDOk0ZLl4i+ JE+Z2KBJj+tu+BP72yw3A4pLlfv8F5SWEgWFGHwjAEHJiKRVXwnyCFKwRqR5SxIHRxmp NAlb9m3KZZCQxrMWTIGqNEuawCL32Zt0VZQB7mKOOKgbIjuzFpDpgAqLW0mdgjQLAgda 58Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=85gK/G/W5iMoBK0GkeseBpRLSu6iilna997G3wOYzKA=; b=lxBldDh6h2Pq59I1FWLaRZ78ANFcJTEqsxSPgl9xBTtBwD9I5GvZ42MzMK8DamMjEV zxQkUeU4jxrT+kKmljZ1MTSCs2pBl4nzdM2ZM3wqZn/kDlmzi03p1fPFXYbhxeKPRLUf ruxBb9D7KCOh9GbuMBRqeBfUGhH15h+nHDojh9W1sl3/SsVhpuuMfeKbAb8BYQSB+C8y HkGjsA8P2Klny3g/pz6zxGjKaKyqtrkGXkeAqHIw7jl6Uutnwz+zb3htHmTmQRSQlcuE GHFflvgWRfeNho+hMeNDP1s8sItQBv0VaoZ31gPJozOxpczJF+FEWNL+gTc23ZlyqWs+ psOQ== X-Gm-Message-State: AOAM533B+aSA/5ENWR4h8L8ZhThF/sn579LmIy2BCa7YGQ0+T7x7V+6u DGKTo+GENSLwKwX2J7sw7dBOAeCPEYVYtc9nbtxmyw== X-Google-Smtp-Source: ABdhPJxibDvYnm5jZXB9xL9ugC35IBQa+u4EFVMOU0vRSWJYShmZ2JivPrMhNxQMTyH10JMPgfRru09bLKGrLW14XRc= X-Received: by 2002:a50:e607:: with SMTP id y7mr13698021edm.18.1618629020103; Fri, 16 Apr 2021 20:10:20 -0700 (PDT) MIME-Version: 1.0 From: Dan Williams Date: Fri, 16 Apr 2021 20:10:09 -0700 Message-ID: Subject: [GIT PULL] cxl fixes for v5.12-rc8 / final To: Linus Torvalds Cc: linux-cxl@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-cxl@vger.kernel.org Hi Linus, please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl tags/cxl-fixes-for-5.12-rc8 ...to receive a collection of fixes for the CXL memory class driver introduced in v5.12-rc1. The driver was primarily developed on a work-in-progress QEMU emulation of the interface and we have since found a couple places where it hid spec compat bugs in the driver, or had a spec implementation bug itself. The biggest change here is replacing a percpu_ref with an rwsem to cleanup a couple bugs in the error unwind path during ioctl device init. Lastly there were some minor cleanups to not export the power-management sysfs-ABI for the ioctl device, use the proper sysfs helper for emitting values, and prevent subtle bugs as new administration commands are added to the supported list. The bulk of it has appeared in -next save for the top commit which was found today and validated on a fixed-up QEMU model. --- The following changes since commit a38fd8748464831584a19438cbb3082b5a2dab15: Linux 5.12-rc2 (2021-03-05 17:33:41 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl tags/cxl-fixes-for-5.12-rc8 for you to fetch changes up to fae8817ae804a682c6823ad1672438f39fc46c28: cxl/mem: Fix memory device capacity probing (2021-04-16 18:21:56 -0700) ---------------------------------------------------------------- cxl for 5.12-rc8 - Fix support for CXL memory devices with registers offset from the BAR base. - Fix the reporting of device capacity. - Fix the driver commands list definition to be disconnected from the UAPI command list. - Replace percpu_ref with rwsem to fix initialization error path. - Fix leaks in the driver initialization error path. - Drop the power/ directory from CXL device sysfs. - Use the recommended sysfs helper for attribute 'show' implementations. ---------------------------------------------------------------- Ben Widawsky (1): cxl/mem: Fix register block offset calculation Dan Williams (5): cxl/mem: Use sysfs_emit() for attribute show routines cxl/mem: Fix synchronization mechanism for device removal vs ioctl operations cxl/mem: Do not rely on device_add() side effects for dev_set_name() failures cxl/mem: Disable cxl device power management cxl/mem: Fix memory device capacity probing Robert Richter (1): cxl/mem: Force array size of mem_commands[] to CXL_MEM_COMMAND_ID_MAX drivers/cxl/mem.c | 152 ++++++++++++++++++++++++++++++++---------------------- 1 file changed, 89 insertions(+), 63 deletions(-)