[Ubuntu 16.10] CAPI flash (cxlflash) driver and CXL kernel services to support driver event notification

Bug #1592443 reported by bugproxy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Medium
Unassigned
Yakkety
Fix Released
Medium
Unassigned

Bug Description

This adds an afu_driver_ops structure with deliver_event callback. An AFU driver such as cxlflash can fill this out and associate it with a context to enable passing custom AFU specific events to userspace.

This also adds a new kernel API function cxl_context_pending_events(), that the AFU driver can use to notify the cxl driver that new specific events are ready to be delivered, and wake up anyone waiting on the context wait queue.

The current count of AFU driver specific events is stored in the field afu_driver_events of the context structure.

The cxl driver will check the afu_driver_events count during poll, select, read, etc. calls to check if an AFU driver specific event is pending, and will call deliver_event() to deliver that event. This way, the cxl driver takes care of all the usual locking semantics around these calls and handles all the generic cxl events, so that the AFU driver only needs to worry about it's own events.

This is a kernel feature for Ubuntu 16.10

bugproxy (bugproxy)
tags: added: architecture-ppc64le bugnameltc-133692 severity-medium targetmilestone-inin1610
Changed in ubuntu:
assignee: nobody → Taco Screen team (taco-screen-team)
affects: ubuntu → linux (Ubuntu)
Changed in linux (Ubuntu):
assignee: Taco Screen team (taco-screen-team) → Canonical Kernel Team (canonical-kernel-team)
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2016-08-22 14:04 EDT-------
Canonical, all the patches seem to be integrated in kernel 4.8, so, there is no action at your side at this time.

Tim Gardner (timg-tpi)
Changed in linux (Ubuntu Yakkety):
assignee: Canonical Kernel Team (canonical-kernel-team) → nobody
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.